:root {
  --navy: #002f6c;
  --navy-deep: #001e5a;
  --navy-search: #213b6e;
  --primary: #005594;   /* dark blue */
  --sky: #0089d0;       /* blue */
  --yellow: #fcb700;
  --orange: #f37021;
  --up: #008456;
  --down: #ce2b2b;
  --gray-900: #111827;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --banner: #f2f2f2;
  --body-bg: #fcfcfc;
  --container: 980px;
  --sans: "Figtree", proxima-nova, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --condensed: "Saira Condensed", "Figtree", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: #212529; background: var(--body-bg); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--gray-900); }
button, input { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 1012px) { .container { padding-inline: 0; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* grid children must be allowed to shrink below their content width */
.hero-package > *, .top-stories > *, .split-12 > *, .layout-grid > *, .shows-grid > *, .mega-grid > *, .opinion-grid > *, .trending-grid > *, .video-grid > *, .hub-grid > * { min-width: 0; }

/* shared media box */
.thumb { display: block; position: relative; overflow: hidden; background: var(--gray-200); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.thumb.dark { background: #111; }
a:hover .thumb img, .group:hover .thumb img { transform: scale(1.02); }
a:hover h3, a:hover h4, a:hover .title, a:hover .hero-title, a:hover .hub-title { text-decoration: underline; text-underline-offset: 2px; }

.meta, .mini-meta { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); margin-top: 6px; }
.mini-meta { font-size: 10px; color: var(--gray-400); display: block; margin-top: 4px; }
.meta .sep { margin: 0 6px; color: var(--gray-300); }
.meta .author { color: var(--primary); }

/* ================= HEADER ================= */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; padding: 8px 0 2px; transition: padding .3s ease; }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
.brand { display: inline-flex; align-items: center; color: #fff; }
.brand img, .custom-logo { height: 24px; width: auto; }
.brand-name { font-family: var(--condensed); font-size: 26px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1; color: #fff; }
.header-toolbar { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-search { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 288px; background: var(--navy-search); padding: 6px 12px; transition: background .15s; }
.header-search:hover, .header-search:focus-within { background: #2a4a7a; }
.header-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 14px; outline: none; }
.header-search input::placeholder { color: #fff; opacity: .9; }
.header-search button { border: 0; background: none; color: #fff; padding: 0; cursor: pointer; display: flex; }
.btn-yellow, .btn-ghost { display: inline-flex; align-items: center; padding: 6px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; white-space: nowrap; transition: .15s; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--primary); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.mobile-menu-btn { display: none; border: 0; background: none; color: #fff; cursor: pointer; padding: 4px; }

.nav-row { display: flex; align-items: center; margin-top: 8px; }
.menu-toggle { border: 0; background: transparent; color: #fff; display: flex; align-items: center; padding: 0 0 0 8px; margin-right: 5px; cursor: pointer; }
.menu-toggle:hover { color: var(--yellow); }
.nav-dropdown .dropdown { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 0 10px; padding: 0; text-transform: uppercase; }
.nav-dropdown .dropdown > li { position: relative; font-weight: 600; font-size: 13px; letter-spacing: .05em; }
.nav-dropdown .dropdown li a { display: block; height: 30px; line-height: 30px; padding: 0 20px 0 0; color: #fff; }
.nav-dropdown .dropdown > li:hover > a { box-shadow: inset 0 -4px 0 var(--yellow); }
.nav-dropdown .dropdown > li > a { margin-right: 20px; padding: 0; }
.nav-dropdown .dropdown li ul { position: absolute; left: 0; top: 100%; width: 180px; list-style: none; margin: 0; padding: 0; background: #fff; visibility: hidden; opacity: 0; transition: opacity .3s; z-index: 20; box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.nav-dropdown .dropdown li:hover > ul { visibility: visible; opacity: 1; }
.nav-dropdown .dropdown li ul a { height: 35px; line-height: 35px; padding: 0 10px; font-size: 12px; font-weight: 500; color: var(--navy); border-bottom: 2px solid #f3f5f7; transition: font-weight .3s; }
.nav-dropdown .dropdown li ul a:hover { background: #f3f5f7; font-weight: 800; }
.site-header.is-scrolled { padding: 4px 0 0; }

/* mobile swipeable menu (hidden on desktop) */
.mobile-nav { display: none; }
@media (max-width: 1023px) {
  .mobile-nav { display: block; position: relative; margin-top: 10px; background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.12); }
  .mobile-nav::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px; background: linear-gradient(to left, var(--navy-deep), transparent); pointer-events: none; }
  .mobile-nav ul { display: flex; list-style: none; margin: 0; padding: 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
  .mobile-nav ul::-webkit-scrollbar { display: none; }
  .mobile-nav li { flex: none; scroll-snap-align: start; }
  .mobile-nav a { display: block; padding: 11px 14px 9px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; white-space: nowrap; border-bottom: 3px solid transparent; }
  .mobile-nav li:first-child a { padding-left: 0; }
  .mobile-nav a:hover, .mobile-nav a:active { border-bottom-color: var(--yellow); color: var(--yellow); }
}

/* ================= MEGA MENU ================= */
.mega-menu { position: fixed; inset: 0; z-index: 100; background: var(--navy-deep); color: #fff; overflow-y: auto; padding: 0 20px; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.mega-menu.open { visibility: visible; opacity: 1; }
.mega-inner { max-width: 1536px; margin: 0 auto; padding-bottom: 40px; }
.mega-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.mega-close { display: flex; align-items: center; gap: 12px; border: 0; background: none; color: #fff; cursor: pointer; padding: 8px 0 8px 16px; }
.mega-close span { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.mega-search { display: flex; gap: 12px; padding: 20px 0; }
.mega-search input { width: 100%; max-width: 576px; border: 0; padding: 12px 16px; font-size: 14px; color: var(--navy); }
.mega-search button { border: 0; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 12px 20px; cursor: pointer; }
.mega-search button:hover { background: var(--orange); }
.mega-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.mega-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; align-content: start; }
.mega-col h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.2); }
.mega-col h3 a { color: var(--yellow); }
.mega-col h3 a:hover { color: #fff; }
.mega-col h3 span { margin-left: 8px; }
.mega-col ul, .mega-more ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 8px 0; font-size: 14px; font-weight: 500; line-height: 1.375; color: #fff; }
.mega-col li a:hover, .mega-more a:hover { color: var(--yellow); }
.mega-more { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.2); }
.mega-more p, .mega-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); margin: 0 0 12px; }
.mega-more ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mega-more a { font-size: 14px; }
.mega-quick { display: block; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 16px; margin-bottom: 16px; color: #fff; }
.mega-quick:hover { color: var(--yellow); }
.q-kicker { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); margin: 0 0 4px; }
.q-title { display: block; font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.q-desc { display: block; font-size: 14px; line-height: 1.6; color: var(--gray-300); }
.mega-card { border: 1px solid rgba(255,255,255,.3); padding: 20px; margin-top: 24px; }
.mega-card h4 { color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.mega-card .btn-yellow { padding: 12px 16px; letter-spacing: .1em; }
@media (min-width: 1024px) {
  .mega-menu { padding: 0 48px; }
  .mega-grid { grid-template-columns: 2fr 1fr; }
  .mega-aside { border-left: 1px solid rgba(255,255,255,.2); padding-left: 32px; }
}

/* ================= MARKETS BANNER ================= */
.markets-banner { background: var(--banner); padding: 15px 0 5px; }
.markets-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.markets-tab { border: 0; background: none; padding: 4px 10px; font-size: 14px; font-weight: 800; letter-spacing: .23px; color: #747474; cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; }
.markets-tab.is-active { color: var(--navy); border-color: var(--yellow); }
.markets-cards { display: none; list-style: none; margin: 0; padding: 0 0 10px; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.markets-cards.is-active { display: flex; }
.markets-cards li { flex: 1 0 180px; background: #fff; padding: 10px 14px; border-left: 4px solid var(--up); display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-variant-numeric: tabular-nums; }
.markets-cards li.is-down { border-left-color: var(--down); }
.markets-cards .m-name { grid-column: 1 / -1; font-size: 13px; font-weight: 800; color: var(--navy); text-transform: uppercase; }
.markets-cards .m-value { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.markets-cards .m-change { font-size: 13px; font-weight: 700; align-self: center; }
.is-up .m-change { color: var(--up); }
.is-down .m-change { color: var(--down); }

/* ticker (optional) */
.ticker { background: #fff; border-bottom: 1px solid var(--gray-200); }
.ticker-inner { display: flex; align-items: center; height: 36px; overflow: hidden; }
.ticker-label { flex: none; background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 800; text-transform: uppercase; padding: 0 12px; height: 100%; display: flex; align-items: center; margin-right: 12px; }
.ticker-track { overflow: hidden; flex: 1; }
.ticker-track-inner { display: inline-flex; white-space: nowrap; animation: ticker 45s linear infinite; }
.ticker-item { font-size: 14px; font-weight: 600; color: var(--navy); padding-right: 40px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ================= HOME ================= */
.main-content { padding: 16px 0 0; }
@media (min-width: 768px) { .main-content { padding-top: 24px; } }

.hero-package { display: grid; grid-template-columns: 1fr; gap: 24px; }
.hero-featured { position: relative; display: block; overflow: hidden; height: 420px; background: #111827; }
.hero-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero-featured:hover img { transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.4) 50%, transparent); }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; display: block; }
.hero-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); }
.hero-kicker .bar { width: 32px; height: 2px; background: var(--yellow); }
.hero-title { display: block; font-size: 36px; font-weight: 900; line-height: 1.25; color: #fff; }
.hero-dek { display: block; max-width: 672px; margin-top: 12px; font-size: 16px; line-height: 1.625; color: #e5e7eb; }
.hero-meta { display: block; margin-top: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-300); }
.hero-meta .sep { margin: 0 6px; }
.hero-meta .author { color: var(--yellow); }
.hero-leads { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.hero-lead .thumb { aspect-ratio: 16 / 9; }
.hero-lead h3 { margin: 12px 0 4px; font-size: 20px; font-weight: 800; line-height: 1.375; }

.hero-rail { position: relative; }
.hero-rail-pin { display: flex; flex-direction: column; height: 100%; }
.rail-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--gray-200); padding-bottom: 8px; margin-bottom: 12px; }
.rail-head .bar, .side-head .bar { width: 24px; height: 2px; background: var(--yellow); flex: none; }
.rail-head h2 { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; color: var(--navy); }
.latest-scroll { flex: 1; min-height: 0; max-height: 440px; overflow-y: auto; scrollbar-width: thin; }
.latest-item { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: start; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.latest-item:first-child { padding-top: 0; }
.latest-item .time { grid-column: 1; grid-row: 1; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); line-height: 1; white-space: nowrap; }
.latest-item .thumb { grid-column: 1; grid-row: 2; width: 80px; height: 56px; }
.latest-item .title { grid-column: 2; grid-row: 2; font-size: 15px; font-weight: 700; line-height: 1.375; color: var(--gray-900); }
.latest-fade { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(to top, var(--body-bg), transparent); pointer-events: none; }

@media (min-width: 768px) {
  .hero-package { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero-main { grid-column: span 8; }
  .hero-rail { grid-column: span 4; }
  .hero-rail-pin { position: absolute; inset: 0; }
  .latest-scroll { max-height: none; }
  .latest-fade { display: block; }
}

/* section heading */
.home-section { padding: 32px 0; }
.sec-head { margin-bottom: 24px; }
.sec-bar { display: block; width: 64px; height: 6px; background: var(--yellow); }
.sec-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }
.sec-head h2 { font-size: 30px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; color: var(--navy); line-height: 1.1; }
.sec-head a { flex: none; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; color: var(--primary); }
.sec-head a:hover { color: var(--sky); text-decoration: underline; }

/* top stories */
.top-stories { display: grid; grid-template-columns: 1fr; gap: 32px; }
.ts-main .thumb { aspect-ratio: 16 / 9; }
.ts-main h3 { margin-top: 16px; font-size: 30px; font-weight: 800; line-height: 1.25; }
.ts-main p { margin: 8px 0 0; font-size: 16px; line-height: 1.625; color: var(--gray-600); }
.ts-item { border-bottom: 1px solid var(--gray-200); padding-bottom: 16px; margin-bottom: 16px; }
.ts-item h3 { font-size: 20px; font-weight: 700; line-height: 1.375; }
.ts-item a:hover h3 { text-decoration: underline; }
.mini-label { margin: 0 0 16px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); }
.brief-item { display: flex; gap: 12px; margin-bottom: 16px; }
.brief-item .thumb { width: 80px; height: 80px; flex: none; }
.brief-item h4 { font-size: 14px; font-weight: 700; line-height: 1.375; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brief-item .meta { margin-top: 4px; }
@media (min-width: 1024px) {
  .top-stories { grid-template-columns: 5fr 4fr 3fr; }
  .ts-brief { border-left: 1px solid var(--gray-200); padding-left: 24px; }
}

/* hubs */
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 24px 0; }
.hub-card { display: flex; flex-direction: column; border-top: 6px solid var(--primary); background: #fff; }
.hub-card .thumb { aspect-ratio: 16 / 9; }
.hub-body { display: flex; flex-direction: column; flex: 1; border-bottom: 1px solid var(--gray-300); padding: 20px 24px; }
.hub-kicker { margin-bottom: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.hub-title { font-size: 24px; font-weight: 900; line-height: 1.25; color: var(--navy); }
.hub-link { margin-top: auto; padding-top: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
@media (min-width: 768px) { .hub-grid { grid-template-columns: 1fr 1fr; } }

/* opinion */
.opinion-grid { display: grid; grid-template-columns: 1fr; }
.opinion-item { border-top: 1px solid var(--gray-200); padding: 20px 0; }
.opinion-item .thumb { aspect-ratio: 16 / 9; margin-bottom: 12px; background: var(--gray-100); }
.opinion-item h3 { font-size: 16px; font-weight: 600; line-height: 1.375; }
.opinion-item .meta { margin-top: 16px; color: var(--gray-400); }
.opinion-item .meta .author { color: var(--navy); }
@media (min-width: 640px) {
  .opinion-grid { grid-template-columns: 1fr 1fr; }
  .opinion-item { padding: 20px 24px; }
  .opinion-item:nth-child(odd) { padding-left: 0; }
  .opinion-item:nth-child(even) { border-left: 1px solid var(--gray-200); }
}
@media (min-width: 1024px) {
  .opinion-grid { grid-template-columns: repeat(4, 1fr); }
  .opinion-item { border-left: 1px solid var(--gray-200); padding-left: 24px; }
  .opinion-item:first-child { border-left: 0; padding-left: 0; }
  .opinion-item:last-child { padding-right: 0; }
}

/* split 8/4 */
.split-12 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) {
  .split-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split-8 { grid-column: span 8; }
  .split-4 { grid-column: span 4; border-left: 1px solid var(--gray-200); padding-left: 32px; }
}
.more-news { display: grid; grid-template-columns: 1fr; column-gap: 40px; }
@media (min-width: 768px) { .more-news { grid-template-columns: 1fr 1fr; } }
.more-item { display: flex; gap: 16px; border-bottom: 1px solid var(--gray-200); padding-bottom: 16px; margin-bottom: 16px; }
.more-text { flex: 1; min-width: 0; }
.more-item h3 { font-size: 18px; font-weight: 700; line-height: 1.375; }
.more-item a:hover h3 { text-decoration: underline; }
.more-item .thumb { width: 112px; height: 80px; flex: none; }
.badge { display: inline-block; margin-bottom: 6px; padding: 2px 6px; border-radius: 2px; background: var(--gray-100); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }

.side-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.side-head .bar { width: 40px; height: 4px; }
.side-head h2 { border-bottom: 1px solid var(--gray-200); padding-bottom: 8px; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.025em; color: var(--navy); }
.side-item { display: block; border-bottom: 1px solid var(--gray-200); padding: 16px 0; }
.side-item.is-first { padding-top: 0; }
.side-item .thumb { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.side-item h3 { font-size: 16px; font-weight: 700; line-height: 1.375; }
.side-more { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; color: var(--primary); }
.side-more:hover { color: var(--sky); text-decoration: underline; }

/* trending */
.trending-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.trend-item .thumb { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.trend-item .num { position: absolute; left: 0; bottom: 0; background: var(--yellow); color: var(--navy); padding: 4px 10px; font-size: 24px; font-weight: 900; line-height: 1; }
.trend-item h3 { font-size: 16px; font-weight: 700; line-height: 1.375; }
.trend-item:hover .thumb img { transform: scale(1.05); }
@media (min-width: 640px) { .trending-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trending-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .trending-grid { grid-template-columns: repeat(5, 1fr); } }

/* newsletter */
.newsletter { display: grid; grid-template-columns: 1fr; margin: 40px 0 24px; overflow: hidden; border: 1px solid var(--gray-200); background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.nl-left { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 32px 24px; }
.circle { position: absolute; border-radius: 50%; }
.circle.c1 { right: -64px; top: -64px; width: 192px; height: 192px; border: 1px solid var(--yellow); opacity: .2; }
.circle.c2 { left: -80px; bottom: -80px; width: 208px; height: 208px; border: 1px solid #fff; opacity: .1; }
.nl-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--yellow); }
.nl-kicker .bar { width: 36px; height: 4px; background: var(--yellow); }
.nl-left h2 { font-size: 36px; font-weight: 800; line-height: 1.25; color: #fff; }
.nl-left p { max-width: 384px; margin: 16px 0 0; font-size: 16px; line-height: 1.625; color: #cfd8e2; }
.nl-note { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; opacity: .7; }
.nl-note svg { color: var(--yellow); }
.nl-right { padding: 32px 24px; }
.nl-right h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.nl-right > p { margin: 8px 0 24px; font-size: 14px; line-height: 1.625; color: var(--gray-600); }
.nl-form { display: flex; flex-direction: column; gap: 12px; }
.nl-form input { height: 56px; flex: 1; min-width: 0; border: 1px solid var(--gray-300); background: #f9fafb; padding: 0 20px; font-size: 18px; color: var(--navy); }
.nl-form input:focus { outline: 2px solid var(--sky); border-color: var(--primary); background: #fff; }
.nl-form button { height: 56px; border: 0; background: var(--yellow); color: var(--navy); padding: 0 24px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .025em; cursor: pointer; transition: .2s; }
.nl-form button:hover { background: var(--orange); color: #fff; }
.nl-terms { margin: 20px 0 0; border-top: 1px solid var(--gray-200); padding-top: 16px; font-size: 12px; line-height: 1.625; color: var(--gray-500); }
.nl-terms a { font-weight: 600; color: var(--primary); text-decoration: underline; }
@media (min-width: 640px) { .nl-form { flex-direction: row; } .nl-form input, .nl-form button { height: 48px; } }
@media (min-width: 768px) {
  .newsletter { grid-template-columns: 2fr 3fr; }
  .nl-left { padding: 40px 36px; }
  .nl-left h2 { font-size: 36px; }
  .nl-right { padding: 40px; }
}

/* shows */
.shows-grid { display: grid; grid-template-columns: 1fr; gap: 40px 32px; }
@media (min-width: 640px) { .shows-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .shows-grid { grid-template-columns: repeat(3, 1fr); } }
.show-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--yellow); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .025em; color: var(--gray-900); }
.show-head .arrow { color: var(--gray-400); font-size: 12px; }
.show-head:hover { color: var(--primary); }
.show-main .thumb { aspect-ratio: 16 / 9; }
.show-main:hover .thumb img { transform: scale(1.03); }
.shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.4), transparent); }
.play { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid #fff; }
.play::after { content: ""; position: absolute; left: 14px; top: 10px; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.show-main h3 { margin: 12px 0 4px; font-size: 16px; font-weight: 800; line-height: 1.375; min-height: 2.75em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.show-item { display: flex; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.show-item .thumb { width: 96px; height: 56px; flex: none; }
.show-item h4 { font-size: 13px; font-weight: 700; line-height: 1.375; min-height: 2.75em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* latest videos */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(4, 1fr); } }
.video-item .thumb { aspect-ratio: 16 / 9; }
.duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; padding: 2px 6px; font-size: 10px; font-weight: 700; }
.video-item h4 { margin: 10px 0 4px; font-size: 14px; font-weight: 700; line-height: 1.375; min-height: 2.75em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ================= ARCHIVE / SINGLE (shared) ================= */
.archive-header { text-align: center; margin: 14px 0 28px; }
.archive-header .kicker { display: none; }
.archive-header h1 { display: inline-block; font-size: 32px; font-weight: 700; text-transform: uppercase; color: var(--navy); padding: 0 0 14px; border-bottom: 6px solid var(--yellow); }
.archive-desc { color: var(--gray-500); margin-top: 10px; font-family: var(--serif); }

.layout-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; padding-bottom: 32px; }
@media (min-width: 768px) {
  .layout-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .layout-grid > .rail { border-left: 1px solid var(--gray-200); padding-left: 32px; position: sticky; top: 100px; }
}
.list-stories { display: grid; }
.list-story { display: grid; grid-template-columns: 1fr 240px; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.list-story:first-child { padding-top: 0; }
.list-story > .card-media { order: 2; }
.list-story > div { order: 1; }
.card-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--gray-200); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.list-story:hover .card-media img, .card:hover .card-media img { transform: scale(1.02); }
.card-cat { display: inline-block; margin-bottom: 6px; padding: 2px 6px; border-radius: 2px; background: var(--gray-100); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }
.list-story h3 { font-size: 20px; font-weight: 800; line-height: 1.3; }
.list-story h3 a:hover, .card h3 a:hover { text-decoration: underline; }
.list-story p { margin: 8px 0 0; color: var(--gray-600); font-size: 15px; line-height: 1.6; }
.byline { margin-top: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }
.byline span + span::before { content: "|"; margin: 0 6px; color: var(--gray-300); }
.byline span:nth-child(2) { color: var(--primary); }

.rail { display: grid; gap: 28px; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { border-top: 6px solid var(--navy); padding-top: 6px; font-size: 18px; font-weight: 900; text-transform: uppercase; color: var(--navy); }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li { padding: 8px 0; border-bottom: 1px solid var(--gray-200); font-size: 15px; }
.trending-list { list-style: none; counter-reset: t; margin: 0; padding: 0; }
.trending-list li { counter-increment: t; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.trending-list li::before { content: counter(t); background: var(--yellow); color: var(--navy); font-size: 18px; font-weight: 900; text-align: center; line-height: 32px; }
.trending-list a { font-size: 15px; font-weight: 700; line-height: 1.375; color: var(--gray-900); }
.trending-list a:hover { text-decoration: underline; }
.newsletter-box { background: var(--navy); color: #cfd8e2; padding: 24px; }
.newsletter-box h3 { color: #fff; font-size: 26px; font-weight: 800; }
.newsletter-box h3::before { content: ""; display: block; width: 36px; height: 4px; background: var(--yellow); margin-bottom: 14px; }
.newsletter-box p { font-size: 14px; margin: 8px 0 16px; }
.newsletter-box form { display: grid; gap: 8px; }
.newsletter-box input { border: 0; padding: 12px; }
.newsletter-box button, .btn-primary { display: inline-block; border: 0; background: var(--yellow); color: var(--navy); padding: 12px 18px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.newsletter-box button:hover, .btn-primary:hover { background: var(--orange); color: #fff; }

.single-layout { padding-top: 8px; }
.single-post .kicker { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--navy); letter-spacing: .05em; margin-bottom: 10px; border-bottom: 3px solid var(--yellow); }
.single-post h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; line-height: 1.2; color: var(--gray-900); }
.single-post .dek { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--gray-600); margin: 14px 0 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 18px 0 22px; padding: 12px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); }
.post-meta strong { color: var(--primary); }
.share { display: inline-flex; gap: 8px; margin-left: auto; }
.share a { display: grid; place-items: center; width: 32px; height: 32px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; text-transform: lowercase; }
.share a:hover { background: var(--yellow); color: var(--navy); }
.post-thumbnail { margin: 0 0 24px; }
.post-thumbnail img { width: 100%; }
.post-thumbnail figcaption { font-size: 13px; color: var(--gray-500); padding-top: 8px; }
.entry-content { font-family: var(--serif); font-size: 18px; line-height: 1.75; color: #212529; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2, .entry-content h3 { font-family: var(--sans); font-weight: 800; color: var(--navy); margin: 1.6em 0 .6em; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 6px solid var(--yellow); font-size: 21px; font-style: italic; color: var(--navy); }
.page-post { max-width: 860px; margin: 0 auto 40px; }
.page-post h1 { text-align: center; text-transform: uppercase; color: var(--navy); font-size: 32px; font-weight: 700; padding-bottom: 14px; margin: 16px 0 28px; border-bottom: 6px solid var(--yellow); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-cloud a { padding: 4px 10px; background: var(--gray-100); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--navy); }
.tag-cloud a:hover { background: var(--yellow); }

.block { margin: 24px 0 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card h3 { margin-top: 12px; font-size: 16px; font-weight: 700; line-height: 1.375; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--gray-200); font-weight: 700; font-size: 14px; color: var(--navy); }
.pagination .current, .pagination a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.no-results { padding: 40px 0; }
.no-results h1, .no-results h2 { font-size: 32px; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 18px 0; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 11px 12px; border: 1px solid var(--gray-300); }
.search-form .search-submit { border: 0; background: var(--yellow); color: var(--navy); padding: 0 18px; font-weight: 800; text-transform: uppercase; cursor: pointer; }

/* ================= FOOTER ================= */
.site-footer { margin-top: 32px; padding: 30px 0; background: var(--navy-deep); color: #fff; }
.footer-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.5); }
.footer-logo { padding-bottom: 10px; }
.footer-logo .brand-name { font-size: 22px; }
.footer-logo img { height: 18px; width: auto; }
.social-icons { list-style: none; margin: 10px 0; padding: 0; display: flex; }
.social-icons li { padding: 0 10px; line-height: 1; }
.social-icons li:last-child { padding-right: 0; }
.social-icons a { color: #fff; display: block; transition: color .3s; }
.social-icons a:hover { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-menu-col { grid-column: span 2; } }
@media (min-width: 1280px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-menu, .footer-menu-col ul { list-style: none; margin: 0; padding: 0; }
.footer-menu-col li { display: inline-block; width: 50%; margin-bottom: 10px; vertical-align: top; }
.footer-menu-col li a { font-size: 14px; line-height: 26px; font-weight: 600; padding-right: 10px; }
.footer-menu-col li a:hover, .footer-privacy a:hover { color: var(--yellow); }
.footer-block { padding-right: 12px; }
.footer-block h3 { font-size: 24px; font-weight: 800; color: #fff; }
.footer-block h3.mt { margin-top: 16px; }
.footer-info { font-family: var(--serif); font-size: 14px; line-height: 1.42; margin: 6px 0 14px; color: rgba(255,255,255,.85); }
.btn-light { display: inline-block; background: #f8f9fa; color: #212529; border: 1px solid #f8f9fa; padding: 6px 12px; font-size: 14px; font-weight: 600; border-radius: 4px; transition: .15s; }
.btn-light:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.footer-privacy { margin-top: 30px; font-size: 14px; font-weight: 600; }
.footer-privacy .pipe { padding: 0 10px; }
.footer-bottom-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.footer-copyright { margin: 12px 0 0; font-size: 10px; letter-spacing: .5px; color: rgba(255,255,255,.7); }
.scroll-top { font-size: 14px; font-weight: 600; white-space: nowrap; }
.scroll-top:hover { color: var(--yellow); }

/* ================= RESPONSIVE HEADER ================= */
@media (max-width: 1023px) {
  .header-toolbar, .nav-row { display: none; }
  .mobile-menu-btn { display: flex; }
  .site-header, .site-header.is-scrolled { padding: 10px 0 0; }
  .header-row { padding-top: 0; }
  .mega-sections { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .hero-featured { height: 320px; }
  .hero-copy { padding: 20px; }
  .hero-title { font-size: 24px; }
  .hero-dek { display: none; }
  .hero-leads { grid-template-columns: 1fr; }
  .hero-lead h3 { font-size: 18px; }
  .sec-head h2 { font-size: 24px; }
  .ts-main h3 { font-size: 24px; }
  .mega-sections { grid-template-columns: 1fr; }
  .mega-search { flex-direction: column; }
  .list-story { grid-template-columns: 1fr 112px; gap: 14px; }
  .list-story h3 { font-size: 16px; }
  .list-story p { display: none; }
  .nl-left h2 { font-size: 30px; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
  .share { margin-left: 0; }
  .entry-content { font-size: 17px; }
}

/* ================= HOME v4: Terpopuler, feed, TV, opinion carousel ================= */
.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.popular-list li { border-bottom: 1px solid var(--gray-200); }
.popular-list li:last-child { border-bottom: 0; }
.popular-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 72px; gap: 12px; align-items: center; padding: 12px 0; }
.popular-list li:first-child a { padding-top: 0; }
.popular-list .num { font-size: 30px; font-weight: 900; line-height: 1; color: var(--yellow); text-align: center; }
.popular-list .title { font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--gray-900); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.popular-list .thumb { width: 72px; height: 54px; }

.feed { display: grid; grid-template-columns: minmax(0, 1fr); }
.feed-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.feed > .feed-item:first-child { padding-top: 0; }
.feed-item .thumb { aspect-ratio: 16 / 10; align-self: start; }
.feed-item h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.feed-item a:hover h3 { text-decoration: underline; }
.feed-item p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--gray-600); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-item.is-new { animation: feedIn .45s ease both; }
@keyframes feedIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.feed-block { margin: 24px 0; }

/* Maritim TV */
.tv-block { background: var(--navy-deep); color: #fff; padding: 20px; }
.tv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.2); }
.tv-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--condensed); font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.tv-logo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(252,183,0,.25); }
.tv-head a { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--yellow); }
.tv-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; }
.tv-main .thumb { aspect-ratio: 16 / 9; }
.tv-block h3, .tv-block h4 { color: #fff; }
.tv-main h3 { margin: 12px 0 4px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.tv-list { display: grid; gap: 14px; align-content: start; }
.tv-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
.tv-item .thumb { aspect-ratio: 16 / 9; }
.tv-item h4 { font-size: 13.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-block .mini-meta { color: #93a1b1; }
.play.sm { width: 26px; height: 26px; left: 6px; bottom: 6px; border-width: 1.5px; }
.play.sm::after { left: 9px; top: 6px; border-left-width: 9px; border-top-width: 5.5px; border-bottom-width: 5.5px; }

/* Opinion carousel */
.opinion-block { border-top: 6px solid var(--navy); padding-top: 10px; }
.carousel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.carousel-head h2 { font-size: 22px; font-weight: 900; text-transform: uppercase; color: var(--navy); }
.carousel-nav { display: flex; align-items: center; gap: 6px; }
.carousel-nav a { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--primary); margin-right: 8px; }
.carousel-nav button { width: 34px; height: 34px; border: 1px solid var(--gray-300); background: #fff; color: var(--navy); font-size: 16px; font-weight: 700; cursor: pointer; transition: .15s; }
.carousel-nav button:hover { background: var(--yellow); border-color: var(--yellow); }
.carousel-nav button:disabled { opacity: .35; cursor: default; background: #fff; border-color: var(--gray-300); }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.opinion-card { scroll-snap-align: start; position: relative; display: block; background: #fff; border: 1px solid var(--gray-200); padding-bottom: 14px; }
.opinion-card .thumb { aspect-ratio: 16 / 9; }
.opinion-card .quote { position: absolute; left: 12px; top: calc(56.25% - 22px); width: 40px; height: 40px; background: var(--yellow); color: var(--navy); font-family: var(--serif); font-size: 44px; line-height: 52px; text-align: center; }
.opinion-card h3 { margin: 26px 14px 8px; font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.op-author { display: block; margin: 0 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }

/* Load more */
.load-more-wrap { text-align: center; margin-top: 28px; }
.load-more { min-width: 240px; border: 2px solid var(--navy); background: #fff; color: var(--navy); padding: 13px 28px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: .15s; }
.load-more:hover { background: var(--navy); color: #fff; }
.load-more.is-loading { opacity: .6; cursor: wait; }

.side-sticky { position: sticky; top: 110px; display: grid; gap: 0; }
.side-sticky .newsletter-box { margin-top: 24px; }

@media (max-width: 639px) {
  .feed-item { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .feed-item .thumb { aspect-ratio: 4 / 3; }
  .feed-item h3 { font-size: 16px; }
  .feed-item p { display: none; }
  .tv-block { padding: 16px; margin-inline: -16px; }
  .tv-grid { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: 78%; }
  .popular-list a { grid-template-columns: 30px minmax(0, 1fr) 64px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .carousel-track { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 767px) { .side-sticky { position: static; } }
/* tablet / narrow desktop: keep main left + sidebar right, just tighter */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-featured { height: 360px; }
  .hero-title { font-size: 28px; }
  .split-12 { gap: 24px; }
  .split-4, .layout-grid > .rail { padding-left: 20px; }
  .feed-item { grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
  .feed-item h3 { font-size: 17px; }
  .popular-list a { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .popular-list .thumb { display: none; }
  .popular-list .num { font-size: 24px; }
  .top-stories { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
  .ts-main h3 { font-size: 24px; }
  .ts-item h3 { font-size: 17px; }
  .ts-brief { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--gray-200); padding-top: 16px; }
  .ts-brief .mini-label { grid-column: 1 / -1; }
}

/* ================= Archive spacing and sticky ================= */
/* Sidebar headings: one style everywhere (Terpopuler, Berita Pasar) */
.popular-rail .side-head { margin-bottom: 12px; }

/* Top Stories: calmer lead title */
.ts-main h3 { font-size: 24px; line-height: 1.25; }
@media (min-width: 1024px) { .ts-main h3 { font-size: 26px; } }

/* Opinion card: quote badge sits between image and title, never over the text */
.opinion-card { display: flex; flex-direction: column; }
.opinion-card .quote { position: relative; left: auto; top: auto; z-index: 1; flex: none; margin: -20px 0 0 14px; }
.opinion-card h3 { margin: 10px 14px 8px; }

/* Maritim TV: main video on top, three videos in a row below */
.tv-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tv-main .thumb { aspect-ratio: 16 / 8; }
.tv-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
.tv-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tv-item h4 { -webkit-line-clamp: 2; }
@media (max-width: 639px) {
  .tv-main .thumb { aspect-ratio: 16 / 9; }
  .tv-list { grid-template-columns: minmax(0, 1fr); }
  .tv-item { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
}

/* Footer: four even columns on tablet & desktop */
.footer-grid { gap: 28px; padding-top: 24px; }
.footer-block h3 { font-size: 20px; margin-bottom: 4px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-menu-col { grid-column: auto; }
  .footer-menu-col li { display: block; width: auto; margin-bottom: 6px; }
}
@media (min-width: 640px) and (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* In Brief: wider column, compact square thumbs, aligned rows */
@media (min-width: 1024px) {
  .top-stories { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: 28px; }
  .ts-item h3 { font-size: 18px; }
  .ts-brief { padding-left: 24px; }
}
.ts-brief .mini-label { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-200); }
.brief-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.brief-item:first-of-type { padding-top: 0; }
.brief-item:last-child { border-bottom: 0; }
.brief-item .thumb { width: 64px; height: 64px; }
.brief-item h4 { font-size: 13.5px; line-height: 1.35; -webkit-line-clamp: 3; }
.brief-item .meta { margin-top: 4px; font-size: 10px; }
@media (min-width: 768px) and (max-width: 1023px) {
  .ts-brief .brief-item:nth-of-type(-n+2) { padding-top: 0; }
  .ts-brief .brief-item:nth-last-of-type(-n+2) { border-bottom: 0; }
}

/* ================= Main (left) + sidebar (right) from Top Stories down ================= */
.main-block + .main-block { margin-top: 44px; }
.main-col .top-stories { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.main-col .ts-main h3 { font-size: 24px; }
.main-col .ts-item h3 { font-size: 17px; }
.main-col .ts-item:last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .main-col .top-stories { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .main-col .top-stories { grid-template-columns: minmax(0, 1fr); }
  .main-col .ts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
}
.side-sticky .sidebar-box { margin-top: 24px; }

/* Align hero rail (Terpopuler) with the sidebar column below: same gap, divider and padding */
@media (min-width: 768px) {
  .hero-package { gap: 24px; }
  .popular-rail { border-left: 1px solid var(--gray-200); padding-left: 20px; }
}
@media (min-width: 1024px) {
  .hero-package, .split-12 { gap: 32px; }
  .popular-rail, .split-4 { padding-left: 32px; }
}
@media (min-width: 1024px) {
  .popular-list a { grid-template-columns: 24px minmax(0, 1fr) 60px; gap: 10px; padding: 11px 0; }
  .popular-list .num { font-size: 26px; }
  .popular-list .title { font-size: 14px; -webkit-line-clamp: 4; }
  .popular-list .thumb { width: 60px; height: 45px; }
}

/* ================= Terpopuler: text only ================= */
.popular-list a, .popular-list li:first-child a { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
@media (min-width: 1024px) { .popular-list a { grid-template-columns: 30px minmax(0, 1fr); padding: 13px 0; } .popular-list .title { font-size: 15px; } }
.popular-list .thumb { display: none; }

/* ================= Top Stories closer to the headline ================= */
.hero-package + .split-12 { padding-top: 20px; }
@media (min-width: 768px) { .hero-package + .split-12 { padding-top: 24px; } }

/* ================= Skeleton loading ================= */
@keyframes skeleton { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.thumb, .card-media, .hero-featured, .skeleton-line {
  background-color: #e5e7eb;
  background-image: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 40%, #e5e7eb 80%);
  background-size: 200% 100%;
  animation: skeleton 1.3s ease-in-out infinite;
}
.thumb.dark, .hero-featured { background-color: #1f2937; background-image: linear-gradient(90deg, #1f2937 0%, #374151 40%, #1f2937 80%); }
.thumb.is-ready, .card-media.is-ready, .hero-featured.is-ready { animation: none; background-image: none; }
html.js .thumb img, html.js .card-media img, html.js .hero-featured img { opacity: 0; transition: opacity .35s ease, transform .5s ease; }
html.js img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .thumb, .card-media, .hero-featured, .skeleton-line { animation: none; }
}
/* Placeholder rows shown while "Muat Lebih Banyak" is fetching */
.feed-item.is-skeleton { pointer-events: none; }
.feed-item.is-skeleton .thumb { aspect-ratio: 16 / 10; }
.skeleton-line { display: block; height: 12px; border-radius: 2px; margin-bottom: 10px; }
.skeleton-line.w-20 { width: 20%; height: 10px; }
.skeleton-line.w-90 { width: 90%; height: 18px; }
.skeleton-line.w-60 { width: 60%; height: 18px; }
.skeleton-line.w-30 { width: 30%; height: 10px; margin-top: 6px; }

/* ================= Breadcrumbs (single) ================= */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { text-decoration: underline; }
.author-link:hover strong { text-decoration: underline; }

/* ================= Skeleton preview (?skeleton=1): text turns into shimmer bars too ================= */
html.skeleton-preview :is(.hero-kicker, .hero-title, .hero-meta, .side-head h2, .sec-head h2, .sec-head a,
  .popular-list .num, .popular-list .title, .ts-main h3, .ts-item h3, .feed-item h3, .meta, .badge,
  .side-item h3, .tv-logo, .tv-head a, .tv-block h3, .tv-block h4, .mini-meta, .carousel-head h2, .opinion-card h3, .op-author,
  .markets-cards li span, .newsletter-box h3, .newsletter-box p) {
  color: transparent !important;
  border-radius: 3px;
  background-color: #e5e7eb;
  background-image: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 40%, #e5e7eb 80%);
  background-size: 200% 100%;
  animation: skeleton 1.3s ease-in-out infinite;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html.skeleton-preview :is(.hero-kicker, .hero-title, .hero-meta, .tv-logo, .tv-head a, .tv-block h3, .tv-block h4, .tv-block .mini-meta, .newsletter-box h3, .newsletter-box p) {
  background-color: #374151; background-image: linear-gradient(90deg, #374151 0%, #4b5563 40%, #374151 80%);
}
html.skeleton-preview :is(.hero-title, .ts-main h3, .ts-item h3, .feed-item h3, .popular-list .title, .side-item h3) { display: inline; line-height: 1.6; }
html.skeleton-preview :is(.hero-kicker .bar, .tv-logo .dot, .meta .author) { visibility: hidden; }
html.skeleton-preview .hero-overlay { opacity: .4; }
html.skeleton-preview :is(.hero-meta, .meta, .mini-meta, .popular-list .title) * { color: transparent !important; }

/* ================= Agregasi berita (deliknews.com) ================= */
.agg-block { border-top: 6px solid var(--navy); padding-top: 12px; }
.agg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
.agg-head h2 { font-size: 22px; font-weight: 900; text-transform: uppercase; color: var(--navy); letter-spacing: -0.01em; }
.agg-from { color: var(--gray-400); font-weight: 800; }
.agg-head a { flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.agg-head a:hover { text-decoration: underline; }
.agg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.agg-card .thumb { aspect-ratio: 16 / 10; margin-bottom: 10px; }
.agg-card .badge { margin-bottom: 4px; }
.agg-card h3 { font-size: 15px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.agg-list { list-style: none; margin: 16px 0 0; padding: 0; }
.agg-list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--gray-200); }
.agg-list a { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--gray-900); }
.agg-list a:hover { text-decoration: underline; }
.agg-list time { flex: none; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); }
@media (max-width: 639px) {
  .agg-grid { grid-template-columns: minmax(0, 1fr); }
  .agg-card a { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 14px; }
  .agg-card .thumb { grid-row: 1 / span 2; margin: 0; aspect-ratio: 4 / 3; }
  .agg-card .badge { justify-self: start; }
  .agg-card .meta { margin-left: 134px; }
  .agg-list li { flex-direction: column; gap: 4px; }
}

/* ================= Opini in the sidebar ================= */
.side-opinion { margin-top: 28px; }
.op-item { padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.op-item.is-first { padding-top: 0; }
.op-item a { display: block; position: relative; }
.op-item .thumb { aspect-ratio: 16 / 9; margin-bottom: 0; }
.op-item .quote { display: block; font-family: var(--serif); font-size: 40px; line-height: .8; color: var(--yellow); height: 20px; margin-top: 8px; }
.op-item.is-first .quote { position: relative; width: 36px; height: 36px; margin: -18px 0 0 12px; background: var(--yellow); color: var(--navy); text-align: center; line-height: 46px; font-size: 40px; }
.op-item h3 { margin-top: 6px; font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--gray-900); }
.op-item a:hover h3 { text-decoration: underline; }
.op-item .op-author { margin: 6px 0 0; display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.side-opinion .side-more { margin-top: 12px; }

/* Sidebar is now taller than the viewport, so it scrolls with the page instead of sticking */
.side-sticky { position: static; }

/* ================= Smart sticky sidebar (≥768px) =================
   JS sets `top`: below the header when the sidebar fits the screen,
   otherwise a negative offset so it sticks once its bottom is visible. */
@media (min-width: 768px) {
  .side-sticky, .layout-grid > .rail { position: sticky; top: 110px; transition: top .2s ease; }
}

/* Opini (sidebar) without quote marks */
.op-item h3 { margin-top: 0; }
.op-item.is-first h3 { margin-top: 10px; }

/* First-visit skeleton → content fades in */
@keyframes contentIn { from { opacity: .4; } to { opacity: 1; } }
html.skeleton-done .main-content, html.skeleton-done .markets-banner { animation: contentIn .35s ease; }

/* ================= Archive / category / search ================= */
.archive-head { margin-bottom: 24px; }
.archive-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }
.archive-head h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.1; color: var(--navy); }
.archive-page { flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-400); }
.archive-head .archive-desc { margin-top: 10px; font-family: var(--serif); font-size: 16px; color: var(--gray-600); }
.archive-head .archive-desc p { margin: 0; }

.archive-lead { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.archive-lead .thumb { aspect-ratio: 16 / 9; }
.archive-lead h2 { font-size: 24px; font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; }
.archive-lead h2 a:hover { text-decoration: underline; }
.archive-lead .badge { margin-bottom: 8px; }
@media (min-width: 640px) {
  .archive-lead { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: center; }
  .archive-lead h2 { font-size: 26px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .archive-lead { grid-template-columns: minmax(0, 1fr); }
}
.archive-main .feed > .feed-item:first-child { padding-top: 0; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--gray-300); background: #fff; font-size: 13px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; }
.pagination .page-numbers.dots { border: 0; background: none; }
.pagination .current, .pagination a.page-numbers:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .prev, .pagination .next { padding: 0 16px; }

.no-results h2 { font-size: 26px; }

/* More breathing room between the archive headline and the list below */
.archive-lead { padding-bottom: 32px; margin-bottom: 32px; }
@media (max-width: 639px) { .archive-lead { padding-bottom: 24px; margin-bottom: 24px; } }

/* ================= Live markets banner ================= */
.markets-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.markets-top .markets-tabs { margin-bottom: 0; flex: 1; min-width: 0; }
.markets-status { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); }
.markets-status .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(0,132,86,.5); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(0,132,86,.5); } 70% { box-shadow: 0 0 0 6px rgba(0,132,86,0); } 100% { box-shadow: 0 0 0 0 rgba(0,132,86,0); } }
.markets-cards .m-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.markets-cards li.is-flash { animation: mktFlashUp 1.2s ease; }
.markets-cards li.is-down.is-flash { animation-name: mktFlashDown; }
@keyframes mktFlashUp { 0% { background: #d1fae5; } 100% { background: #fff; } }
@keyframes mktFlashDown { 0% { background: #fee2e2; } 100% { background: #fff; } }
.markets-note { margin: 2px 0 0; font-size: 10.5px; color: var(--gray-400); }
@media (max-width: 639px) {
  .markets-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .markets-cards li { flex-basis: 150px; }
}
@media (prefers-reduced-motion: reduce) { .markets-status .live-dot, .markets-cards li.is-flash { animation: none; } }

/* Mobile: headline image runs edge to edge */
@media (max-width: 767px) {
  .hero-main { margin-inline: -16px; }
  .hero-featured { height: auto; aspect-ratio: 4 / 3; min-height: 300px; }
  .hero-copy { padding: 20px 16px; }
}

/* ================= Mobile header: clean white, sticky ================= */
@media (max-width: 1023px) {
  .site-header, .site-header.is-scrolled {
    position: sticky; top: 0; z-index: 60;
    background: #fff; color: var(--navy);
    padding: 10px 0 0;
    box-shadow: 0 1px 0 var(--gray-200), 0 4px 14px rgba(15, 23, 42, .06);
  }
  .site-header .brand, .site-header .brand-name { color: var(--navy); }
  .site-header .mobile-menu-btn { color: var(--navy); }
  .site-header .mobile-menu-btn:hover { color: var(--primary); }

  .mobile-nav { margin-top: 10px; background: #fff; border-top: 1px solid var(--gray-200); }
  .mobile-nav::after { background: linear-gradient(to left, #fff, rgba(255,255,255,0)); }
  .mobile-nav a { color: var(--gray-900); font-weight: 700; border-bottom: 3px solid transparent; }
  .mobile-nav a:hover, .mobile-nav a:active { color: var(--navy); border-bottom-color: var(--yellow); }
  .mobile-nav .is-current a { color: var(--navy); border-bottom-color: var(--yellow); }

  /* slightly stronger shadow once the page has scrolled */
  .site-header.is-scrolled { box-shadow: 0 1px 0 var(--gray-200), 0 6px 18px rgba(15, 23, 42, .10); }
}

/* ================= Fixed header (all screen sizes) =================
   JS writes the real height to --header-h; the values below are first-paint fallbacks. */
:root { --header-h: 89px; --admin-offset: 0px; }
@media (max-width: 1023px) { :root { --header-h: 101px; } }
html.admin-bar-on { --admin-offset: 32px; }
@media (max-width: 782px) { html.admin-bar-on { --admin-offset: 46px; } }
@media (max-width: 600px) { html.admin-bar-on { --admin-offset: 0px; } } /* WP admin bar scrolls away on small phones */

.site-header, .site-header.is-scrolled {
  position: fixed; top: var(--admin-offset); left: 0; right: 0; z-index: 60;
}
.site-header.is-scrolled { padding-top: 8px; } /* keep a constant height: no jump while scrolling */
@media (max-width: 1023px) { .site-header.is-scrolled { padding-top: 10px; } }
body { padding-top: var(--header-h); }
html { scroll-padding-top: calc(var(--header-h) + var(--admin-offset) + 12px); }

/* desktop: soft shadow once scrolled so the fixed bar separates from content */
@media (min-width: 1024px) { .site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0, 20, 60, .25); } }

/* Header never animates or moves: fully static while the page scrolls */
.site-header, .site-header.is-scrolled { transition: none; transform: none; will-change: auto; }

/* ================= Header alignment ================= */
/* One fixed height in both states: no jump when .is-scrolled is toggled */
.site-header, .site-header.is-scrolled { padding: 8px 0 0; }
@media (max-width: 1023px) { .site-header, .site-header.is-scrolled { padding: 10px 0 0; } }

/* Desktop nav row: hamburger flush with the logo, hover underline flush with the header's bottom edge */
.nav-row { margin-top: 8px; }
.menu-toggle { padding: 0; margin-right: 16px; height: 32px; }
.nav-dropdown .dropdown { margin-left: 0; }
.nav-dropdown .dropdown li a { height: 32px; line-height: 32px; }
.nav-dropdown .dropdown li ul { top: 100%; }

/* Markets tabs: active underline exactly as wide as the label, first tab aligned with the content edge */
.markets-tabs { gap: 22px; }
.markets-tab { padding: 4px 0; }

/* ================= Mobile overflow fixes ================= */
/* 1. Market tabs scroll sideways inside the screen instead of widening the page */
.markets-top .markets-tabs { width: 100%; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.markets-top .markets-tabs::-webkit-scrollbar { display: none; }
.markets-tab { flex: none; }
@media (min-width: 640px) { .markets-top .markets-tabs { width: auto; } }

/* 2. Mobile headline: height follows the screen width, width never grows past the screen */
@media (max-width: 767px) {
  .hero-featured { width: 100%; aspect-ratio: auto; min-height: 0; height: clamp(260px, 75vw, 420px); }
}

/* 3. Safety net: nothing can make the page wider than the screen */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }

/* ================= Footer: logo left, two menu columns right ================= */
.site-footer { padding: 0; }
.footer-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 36px; }
@media (min-width: 768px) {
  .footer-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
}
.footer-brand-col .footer-logo { display: inline-block; padding: 0; }
.footer-brand-col .brand-name { font-size: 28px; }
.footer-brand-col .footer-logo img { height: 32px; width: auto; }
.footer-about { margin: 14px 0 20px; max-width: 380px; font-family: var(--serif); font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.75); }
.footer-social .social-icons { margin: 0; }
.footer-social .social-icons li:first-child { padding-left: 0; }

.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (min-width: 768px) { .footer-nav { justify-self: end; width: 100%; max-width: 440px; } }
.footer-col h3 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--yellow); display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 10px; }
.footer-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); }
.footer-links a:hover { color: var(--yellow); }

.footer-widgets { padding-bottom: 28px; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.15); }
.footer-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.footer-bar .footer-copyright { margin: 0; font-size: 12px; letter-spacing: .02em; color: rgba(255,255,255,.65); }
.footer-bar .scroll-top { font-size: 13px; font-weight: 700; color: #fff; }
.footer-bar .scroll-top:hover { color: var(--yellow); }

/* ================= Share buttons (real brand icons) ================= */
.share { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.share-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-right: 2px; }
.share .share-btn {
  position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; color: #fff; cursor: pointer; text-transform: none;
  transition: transform .15s ease, filter .15s ease;
}
.share .share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; }
.share .share-btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.share-facebook { background: #1877f2; }
.share-x { background: #000; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #229ed9; }
.share-linkedin { background: #0a66c2; }
.share .share-copy { background: var(--gray-100); color: var(--navy); }
.share .share-copy:hover { background: var(--yellow); color: var(--navy); }
.copy-done { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 8px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share-copy.is-copied .copy-done { opacity: 1; }

.share-bottom { margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.share-bottom .share { margin-left: 0; }
@media (max-width: 639px) { .post-meta .share { margin-left: 0; width: 100%; } }
/* brand colours win over the older generic `.share a` rules */
.share a.share-facebook, .share a.share-facebook:hover { background: #1877f2; color: #fff; }
.share a.share-x, .share a.share-x:hover { background: #000; color: #fff; }
.share a.share-whatsapp, .share a.share-whatsapp:hover { background: #25d366; color: #fff; }
.share a.share-telegram, .share a.share-telegram:hover { background: #229ed9; color: #fff; }
.share a.share-linkedin, .share a.share-linkedin:hover { background: #0a66c2; color: #fff; }
.share a.share-btn { width: 34px; height: 34px; font-size: 0; }

/* ================= Single: Baca Juga box ================= */
.entry-content .baca-juga { margin: 28px 0; padding: 16px 20px 6px; border: 1px solid var(--gray-300); border-left: 4px solid var(--yellow); background: #fff; font-family: var(--sans); }
.entry-content .baca-juga-label { margin: 0 0 6px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--navy); }
.entry-content .baca-juga ul { list-style: none; margin: 0; padding: 0; }
.entry-content .baca-juga li { position: relative; margin: 0; padding: 10px 0 10px 18px; border-top: 1px solid var(--gray-200); font-size: 15.5px; line-height: 1.4; }
.entry-content .baca-juga li:first-child { border-top: 0; }
.entry-content .baca-juga li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; background: var(--yellow); }
.entry-content .baca-juga a { color: var(--gray-900); font-weight: 700; text-decoration: none; }
.entry-content .baca-juga a:hover { color: var(--primary); text-decoration: underline; }

/* ================= Single: comments ================= */
.comments-area { margin-top: 36px; }
.comment-count { color: var(--gray-400); font-weight: 800; }
.no-comments { margin: 0 0 20px; font-size: 14.5px; color: var(--gray-500); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 28px; padding-left: 16px; border-left: 2px solid var(--gray-200); }
.comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.comment-list .comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; }
.comment-list .comment-author .fn { font-style: normal; font-weight: 800; color: var(--gray-900); }
.comment-list .comment-author .says { display: none; }
.comment-list .comment-metadata { margin: 2px 0 0 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.comment-list .comment-metadata a { color: var(--gray-400); }
.comment-list .comment-content { margin: 8px 0 0 50px; font-family: var(--serif); font-size: 16px; line-height: 1.6; color: #212529; }
.comment-list .comment-content p { margin: 0 0 .6em; }
.comment-list .reply { margin-left: 50px; }
.comment-list .comment-reply-link { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.comment-awaiting-moderation { display: block; margin: 6px 0 0 50px; font-size: 13px; color: var(--orange); }

.comment-respond { margin-top: 20px; padding: 20px; background: #fff; border: 1px solid var(--gray-200); }
.comment-reply-title { margin: 0 0 6px; font-size: 18px; font-weight: 900; color: var(--navy); }
.comment-reply-title small { margin-left: 8px; font-size: 12px; }
.comment-reply-title small a { color: var(--down); }
.comment-notes, .logged-in-as { margin: 0 0 14px; font-size: 13px; color: var(--gray-500); }
.comment-form .required { color: var(--down); }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--gray-900); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--gray-300); background: #f9fafb; font-size: 15px; color: var(--gray-900); border-radius: 0;
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--primary); background: #fff; }
.comment-form textarea { resize: vertical; min-height: 120px; }
@media (min-width: 640px) {
  .comment-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .comment-form > p { grid-column: 1 / -1; }
  .comment-form .comment-form-author { grid-column: 1; }
  .comment-form .comment-form-email { grid-column: 2; }
}
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 500; color: var(--gray-600); }
.comment-form-cookies-consent input { margin-top: 3px; }
.comment-form .form-submit { margin: 0; }
.comment-form .comment-submit { border: 0; background: var(--yellow); color: var(--navy); padding: 12px 22px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.comment-form .comment-submit:hover { background: var(--orange); color: #fff; }

/* ================= Single: related news (vertical) ================= */
.related-list { margin-top: 40px; }
.related-list .side-head h2 { font-size: 20px; }
.single-main { min-width: 0; }
textarea, select { font: inherit; }

/* ================= Ad slots ================= */
.ad-slot { display: flex; flex-direction: column; align-items: center; margin: 24px auto; text-align: center; max-width: 100%; overflow: hidden; }
.ad-slot .ad-label { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gray-400); }
.ad-slot .ad-inner { display: flex; justify-content: center; max-width: 100%; }
.ad-slot img { max-width: 100%; height: auto; }
.ad-slot .ad-widget + .ad-widget { margin-top: 12px; }
.ad-header, .ad-footer-top, .ad-home-top { width: min(calc(100% - 32px), var(--container)); }
.ad-header { margin-top: 16px; margin-bottom: 0; }
.ad-home-top { margin-top: 28px; margin-bottom: 0; }
.ad-footer-top { margin-top: 32px; margin-bottom: 0; }
.side-col .ad-slot, .rail .ad-slot { margin: 0 0 24px; }
.side-col .ad-sidebar-bottom, .rail .ad-sidebar-bottom { margin: 24px 0 0; }
.entry-content .ad-slot { margin: 28px auto; }
.feed-block .ad-slot { margin: 0; }
.ad-mobile-sticky { display: none; }
@media (max-width: 767px) {
  .ad-desktop-only { display: none !important; }
  .ad-mobile-sticky:not(.ad-desktop-only) {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0; padding: 6px 0 4px;
    background: #fff; box-shadow: 0 -4px 14px rgba(15, 23, 42, .12); border-top: 1px solid var(--gray-200);
  }
  .ad-mobile-sticky .ad-label { margin-bottom: 2px; }
  body.has-sticky-ad { padding-bottom: 72px; }
}
@media (min-width: 768px) { .ad-mobile-only { display: none !important; } }
.ad-close { position: absolute; top: -26px; right: 8px; width: 26px; height: 26px; border: 1px solid var(--gray-200); border-bottom: 0; background: #fff; color: var(--gray-600); font-size: 18px; line-height: 1; cursor: pointer; border-radius: 4px 4px 0 0; }

/* Homepage without the Terpopuler rail: headline uses the full width */
@media (min-width: 768px) { .hero-package.no-rail { grid-template-columns: minmax(0, 1fr); } .hero-package.no-rail .hero-main { grid-column: 1 / -1; } }

/* Sticky sidebar switched off in Pengaturan Tema */
body.no-sticky-sidebar .side-sticky, body.no-sticky-sidebar .layout-grid > .rail { position: static !important; }

/* Widgets inside the sidebars */
.sidebar-box.widget { margin-top: 24px; }
.sidebar-box.widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box.widget li { padding: 9px 0; border-bottom: 1px solid var(--gray-200); font-size: 15px; font-weight: 600; }
.sidebar-box.widget li a:hover { color: var(--primary); text-decoration: underline; }
.footer-widgets { color: rgba(255,255,255,.85); font-size: 14px; }
.footer-widgets .footer-widget h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.ad-slot.ad-mobile-sticky { overflow: visible; }

/* ================= Logo: desktop (light, on navy) vs mobile (dark, on white) ================= */
.site-logo { display: block; width: auto; max-width: 260px; object-fit: contain; }
.brand .site-logo { max-height: none; }
.logo-mobile { display: none; }
@media (max-width: 1023px) {
  .brand .logo-desktop { display: none; }
  .brand .logo-mobile { display: block; max-width: 62vw; }
}
.footer-logo .site-logo, .mega-logo .site-logo { max-width: 240px; }
.mega-logo .brand-name { color: #fff; }

/* ================= Logo box (transparent margins cropped by theme.js) ================= */
.logo-box { display: inline-block; overflow: hidden; line-height: 0; vertical-align: middle; flex: none; }
.logo-box img { display: block; width: auto; max-width: none; }
.brand .logo-box.logo-mobile { display: none; }
@media (max-width: 1023px) {
  .brand .logo-box.logo-desktop { display: none; }
  .brand .logo-box.logo-mobile { display: inline-block; }
}
.brand { align-self: center; }
.header-row { min-height: 35px; }
@media (max-width: 1023px) { .header-row { min-height: 30px; } }
/* Wide one-line logos: no width cap on the box — size is controlled by the height setting */
.logo-box.site-logo, .footer-logo .logo-box.site-logo, .mega-logo .logo-box.site-logo { max-width: none; }
@media (max-width: 1023px) { .brand .logo-box.logo-mobile { max-width: calc(100vw - 32px - 48px); } }

/* ================= Desktop header: clean white ================= */
@media (min-width: 1024px) {
  .site-header, .site-header.is-scrolled {
    background: #fff; color: var(--navy);
    box-shadow: 0 1px 0 var(--gray-200), 0 6px 16px -6px rgba(15, 23, 42, .14);
  }
  .site-header.is-scrolled { box-shadow: 0 1px 0 var(--gray-200), 0 8px 20px -6px rgba(15, 23, 42, .18); }
  .site-header .brand, .site-header .brand-name { color: var(--navy); }

  .header-search { background: var(--gray-100); border: 1px solid var(--gray-200); }
  .header-search:hover, .header-search:focus-within { background: #fff; border-color: var(--primary); }
  .header-search input { color: var(--gray-900); }
  .header-search input::placeholder { color: var(--gray-500); opacity: 1; }
  .header-search button { color: var(--navy); }

  .btn-ghost { border-color: var(--navy); color: var(--navy); }
  .btn-ghost:hover { background: var(--navy); color: #fff; }

  .nav-row { border-top: 1px solid var(--gray-200); margin-top: 8px; }
  .menu-toggle { color: var(--navy); }
  .menu-toggle:hover { color: var(--primary); }
  .nav-dropdown .dropdown > li > a { color: var(--gray-900); font-weight: 700; }
  .nav-dropdown .dropdown > li:hover > a { color: var(--navy); box-shadow: inset 0 -3px 0 var(--yellow); }
  .nav-dropdown .dropdown li ul { border-top: 3px solid var(--yellow); box-shadow: 0 12px 28px rgba(15, 23, 42, .14); }
}

/* ================= Search: research hub ================= */
.search-hero { background: linear-gradient(180deg, #fff 0%, var(--gray-100) 100%); border-bottom: 1px solid var(--gray-200); padding: 18px 0 26px; margin-top: -16px; }
@media (min-width: 768px) { .search-hero { margin-top: -24px; padding: 22px 0 30px; } }
.search-hero .breadcrumbs { margin-bottom: 14px; }
.search-title { font-size: clamp(26px, 4vw, 36px); font-weight: 900; letter-spacing: -0.02em; color: var(--navy); }
.search-lead { margin: 6px 0 18px; font-size: 15px; color: var(--gray-600); max-width: 640px; }
.search-big { position: relative; display: flex; max-width: 760px; background: #fff; border: 2px solid var(--navy); border-radius: 6px; box-shadow: 0 8px 24px -10px rgba(0, 47, 108, .35); overflow: hidden; }
.search-big:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 137, 208, .15), 0 8px 24px -10px rgba(0, 47, 108, .35); }
.search-big-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.search-big input { flex: 1; min-width: 0; height: 54px; border: 0; padding: 0 16px 0 46px; font-size: 17px; color: var(--gray-900); outline: none; background: transparent; }
.search-big button { flex: none; border: 0; background: var(--yellow); color: var(--navy); padding: 0 26px; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.search-big button:hover { background: var(--orange); color: #fff; }
.search-summary { margin-top: 14px; font-size: 15px; color: var(--gray-600); }
.search-summary strong { color: var(--gray-900); }
.search-summary q { font-weight: 800; color: var(--navy); }
.search-range { display: inline-block; margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--gray-300); font-size: 13px; color: var(--gray-500); }

.search-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; margin-bottom: 22px; border-bottom: 1px solid var(--gray-200); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--gray-300); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--gray-900); transition: .15s; }
.chip span { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--gray-100); font-size: 11px; font-weight: 800; color: var(--gray-500); text-align: center; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active span { background: var(--yellow); color: var(--navy); }
.filter-selects { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-selects label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }
.filter-selects select { height: 36px; padding: 0 30px 0 10px; border: 1px solid var(--gray-300); border-radius: 4px; background: #fff; font-size: 14px; font-weight: 600; color: var(--gray-900); text-transform: none; letter-spacing: 0; cursor: pointer; }

.sr-list { list-style: none; margin: 0; padding: 0; }
.sr-item article { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.sr-item:first-child article { padding-top: 0; }
.sr-item article.no-thumb { grid-template-columns: minmax(0, 1fr); }
.sr-thumb { aspect-ratio: 16 / 10; border-radius: 4px; }
.sr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.sr-meta .badge { margin: 0; }
.sr-meta time + span::before { content: "·"; margin-right: 12px; color: var(--gray-300); }
.sr-title { margin: 8px 0 6px; font-size: 20px; font-weight: 800; line-height: 1.3; }
.sr-title a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.sr-snippet { margin: 0; font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--gray-600); }
.sr-item mark { background: #fff1bf; color: inherit; padding: 0 2px; border-radius: 2px; box-shadow: inset 0 -2px 0 var(--yellow); }
.sr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 12px; }
.sr-read { font-size: 13px; font-weight: 800; color: var(--primary); }
.sr-read:hover { text-decoration: underline; }
.sr-cite { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--gray-300); border-radius: 4px; background: #fff; font-size: 12px; font-weight: 800; color: var(--gray-600); cursor: pointer; transition: .15s; }
.sr-cite:hover { border-color: var(--navy); color: var(--navy); }
.sr-cite.is-done { background: #e7f6ee; border-color: var(--up); color: var(--up); }
.sr-ad { padding: 16px 0; border-bottom: 1px solid var(--gray-200); }

.sr-box { padding: 18px; background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; }
.sr-box + .sr-box { margin-top: 20px; }
.sr-box .side-head { margin-bottom: 12px; }
.sr-box .side-head h2 { font-size: 15px; border-bottom: 0; padding-bottom: 0; }
.sr-years { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sr-years li { display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--gray-600); }
.sr-years .track { height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.sr-years .track span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--sky)); border-radius: 999px; }
.sr-years .n { text-align: right; color: var(--gray-900); }
.sr-tags { margin-top: 0; }
.sr-tags a span { color: var(--gray-400); font-weight: 600; margin-left: 2px; }
.sr-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--gray-600); }
.sr-tips strong { color: var(--gray-900); }

.sr-empty { padding: 36px 28px; background: #fff; border: 1px dashed var(--gray-300); border-radius: 8px; text-align: center; }
.sr-empty-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--gray-100); color: var(--navy); margin-bottom: 12px; }
.sr-empty h2 { font-size: 22px; font-weight: 900; color: var(--navy); }
.sr-empty ul { display: inline-block; margin: 12px 0 18px; padding-left: 18px; text-align: left; font-size: 15px; color: var(--gray-600); line-height: 1.7; }
.sr-empty ul a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.sr-empty-label { margin: 0 0 10px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); }
.sr-empty .filter-chips { justify-content: center; }

@media (max-width: 767px) {
  .search-big input { height: 50px; font-size: 16px; }
  .search-big button { padding: 0 16px; }
  .search-range { display: block; margin: 4px 0 0; padding: 0; border: 0; }
  .search-filters { flex-direction: column; align-items: stretch; }
  .search-filters .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .search-filters .filter-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .filter-selects label { flex: 1; }
  .filter-selects select { flex: 1; width: 100%; }
  .sr-item article { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; }
  .sr-title { font-size: 16px; margin-top: 6px; }
  .sr-snippet { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .sr-actions { gap: 10px; }
}
/* search: sidebar and selects */
.search-rail .sr-box + .sr-box { margin-top: 0; }
@media (max-width: 767px) {
  .filter-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .filter-selects label { display: flex; flex-direction: column; align-items: stretch; gap: 4px; font-size: 10.5px; }
  .filter-selects select { width: 100%; height: 40px; font-size: 14px; }
  .sr-meta time + span { display: none; } /* reading time hidden on small screens */
}
/* consistent select boxes on every browser */
.filter-selects select {
  -webkit-appearance: none; appearance: none; height: 38px; line-height: 1.2; padding: 0 34px 0 12px;
  border: 1px solid var(--gray-300); border-radius: 4px; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23002f6c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.filter-selects select:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--primary); }
@media (max-width: 767px) { .filter-selects select { height: 42px; } }
@media (max-width: 767px) { .filter-selects select { flex: none; height: 42px; } }
/* search results without snippet: compact card, title + meta + cite */
.sr-item article { align-items: center; }
.sr-title { margin-bottom: 0; }
.sr-actions { margin-top: 10px; }

/* ================= App shell: router progress bar & page region ================= */
.sm-page:focus { outline: none; }
.sm-progress { position: fixed; top: var(--admin-offset, 0px); left: 0; right: 0; z-index: 200; height: 3px; background: var(--yellow); box-shadow: 0 0 8px rgba(252, 183, 0, .6); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; transition: transform .2s ease, opacity .3s ease; pointer-events: none; }
.sm-progress.is-active { opacity: 1; }
.sm-progress.is-done { opacity: 0; transition: transform .2s ease, opacity .35s ease .15s; }
@media (prefers-reduced-motion: reduce) { .sm-progress { transition: none; } }

/* ================= Members: account area ================= */
.sm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.account-wrap { padding-top: 8px; padding-bottom: 48px; }

/* shared form controls */
.m-form { display: grid; gap: 16px; }
.m-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gray-900); }
.m-field small { font-weight: 500; color: var(--gray-500); }
.m-field .req { color: var(--down); }
.m-field input, .m-field select, .m-field textarea, .m-pass input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--gray-300); border-radius: 6px; background: #fff;
  font-size: 15px; font-weight: 500; color: var(--gray-900);
}
.m-field textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.m-field select { -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23002f6c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.m-field input:focus, .m-field select:focus, .m-field textarea:focus, .m-pass input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 137, 208, .15); }
.m-field.is-wide { grid-column: 1 / -1; }
.m-pass { position: relative; display: block; }
.m-pass input { padding-right: 44px; }
.m-pass button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--gray-400); cursor: pointer; border-radius: 4px; }
.m-pass button:hover, .m-pass button.is-on { color: var(--navy); }
.m-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.m-hint { margin: -6px 0 0; font-size: 12.5px; color: var(--gray-500); }
.m-hint a, .auth-sub a, .auth-foot a, .m-check a, .m-row-between a, .acc-empty-inline a { color: var(--primary); font-weight: 700; }
.m-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--gray-600); line-height: 1.45; }
.m-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy); flex: none; }
.m-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.m-submit { display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 46px; padding: 0 24px; border: 0; border-radius: 6px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .03em; cursor: pointer; transition: .15s; }
.m-submit:hover { background: var(--primary); color: #fff; }
.m-submit.is-inline { justify-self: start; }
.m-submit.is-danger { background: var(--down); }
.m-submit.is-danger:hover { background: #a61e1e; }
.m-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--gray-300); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--gray-900); cursor: pointer; white-space: nowrap; transition: .15s; }
.m-btn:hover { border-color: var(--navy); color: var(--navy); }
.m-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.m-btn.is-busy { opacity: .6; pointer-events: none; }
.m-file { position: relative; overflow: hidden; }
.m-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.m-notice { padding: 12px 14px; border-radius: 6px; font-size: 14px; line-height: 1.5; margin-bottom: 16px; border: 1px solid; }
.m-notice-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.m-notice-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.m-notice-info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }

/* guest pages */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 980px; margin: 12px auto 0; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--gray-200); box-shadow: 0 20px 40px -24px rgba(0, 47, 108, .35); }
.auth-layout.auth-simple { max-width: 560px; }
@media (min-width: 800px) { .auth-layout:not(.auth-simple) { grid-template-columns: 5fr 6fr; } }
.auth-aside { position: relative; padding: 36px 32px; background: linear-gradient(150deg, var(--navy) 0%, #001a4d 100%); color: #fff; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(252, 183, 0, .35); }
.auth-kicker { display: inline-block; padding-bottom: 6px; border-bottom: 3px solid var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.auth-aside h2 { margin: 16px 0 20px; color: #fff; font-size: 26px; line-height: 1.25; font-weight: 900; }
.auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-aside li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #dbe5f1; }
.auth-aside li .ic { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: var(--yellow); }
.auth-card { padding: 36px 32px; }
.auth-title { font-size: 28px; font-weight: 900; color: var(--navy); }
.auth-sub { margin: 6px 0 22px; font-size: 15px; color: var(--gray-600); }
.auth-foot { margin: 18px 0 0; font-size: 14px; color: var(--gray-600); }
.auth-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 12px; }
.auth-icon.is-ok { background: #ecfdf5; color: var(--up); }
.auth-simple .auth-card { text-align: center; }
.auth-simple .m-form { justify-items: center; }

/* member layout */
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 900px) { .account-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; } }
.account-side { background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; overflow: hidden; }
@media (min-width: 900px) { .account-side { position: sticky; top: calc(var(--header-h) + var(--admin-offset) + 16px); } }
.account-card { display: flex; align-items: center; gap: 12px; padding: 18px; background: linear-gradient(150deg, var(--navy), #001a4d); color: #fff; }
.account-avatar img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--yellow); object-fit: cover; display: block; }
.account-who { min-width: 0; display: grid; }
.account-who strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-who span { font-size: 12px; color: #b9c7d5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav { display: grid; padding: 8px; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; font-size: 14.5px; font-weight: 700; color: var(--gray-600); }
.account-nav a:hover { background: var(--gray-100); color: var(--navy); }
.account-nav a.is-current { background: #fff7db; color: var(--navy); box-shadow: inset 3px 0 0 var(--yellow); }
.account-nav .account-logout { margin-top: 6px; border-top: 1px solid var(--gray-200); border-radius: 0 0 6px 6px; color: var(--down); }
@media (max-width: 767px) {
  .account-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav .account-logout { margin-top: 0; border-top: 0; }
}
.account-main { min-width: 0; }
.acc-head { margin-bottom: 20px; }
.acc-head h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 900; color: var(--navy); }
.acc-head p { margin: 4px 0 0; font-size: 15px; color: var(--gray-600); }
.acc-box { margin: 0 0 18px; padding: 20px; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; min-width: 0; }
fieldset.acc-box { display: grid; gap: 14px; }
.acc-box legend { float: left; width: 100%; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 0; font-size: 16px; font-weight: 900; color: var(--navy); }
.acc-box legend + * { clear: both; }
.acc-box-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.acc-box-head h2 { font-size: 17px; font-weight: 900; color: var(--navy); }
.acc-box-head a { font-size: 13px; font-weight: 800; color: var(--primary); }
.acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.acc-stat { display: grid; gap: 2px; padding: 16px 18px; background: #fff; border: 1px solid var(--gray-200); border-left: 4px solid var(--yellow); border-radius: 10px; transition: .15s; }
.acc-stat:hover { border-color: var(--navy); border-left-color: var(--yellow); }
.acc-stat .n { font-size: 28px; font-weight: 900; color: var(--navy); line-height: 1.1; }
.acc-stat .acc-stat-text { font-size: 20px; }
.acc-stat .l { font-size: 13px; color: var(--gray-500); }
.acc-progress-top { display: flex; justify-content: space-between; font-size: 14px; }
.acc-progress-top span { font-weight: 900; color: var(--navy); }
.acc-bar { height: 8px; margin: 8px 0 10px; border-radius: 999px; background: var(--gray-100); overflow: hidden; }
.acc-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--yellow), var(--orange)); }
.acc-progress p { margin: 0 0 12px; font-size: 14px; color: var(--gray-600); }
.acc-list { list-style: none; margin: 0; padding: 0; }
.acc-list li + li { border-top: 1px solid var(--gray-200); }
.acc-list a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 0; align-items: center; }
.acc-list .thumb { aspect-ratio: 4 / 3; border-radius: 4px; }
.acc-list em, .acc-saved em { font-style: normal; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); }
.acc-list strong { display: block; margin: 2px 0; font-size: 15px; line-height: 1.35; color: var(--gray-900); }
.acc-list a:hover strong { text-decoration: underline; }
.acc-list time, .acc-saved time { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gray-400); }
.acc-empty-inline { margin: 0 0 8px; font-size: 14px; color: var(--gray-600); }
.acc-empty { padding: 40px 24px; text-align: center; background: #fff; border: 1px dashed var(--gray-300); border-radius: 10px; color: var(--gray-400); }
.acc-empty h2 { margin: 10px 0 6px; font-size: 20px; color: var(--navy); }
.acc-empty p { margin: 0 0 16px; color: var(--gray-600); }
.acc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-edit { border-style: dashed; color: var(--primary); }
.acc-saved { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; }
.acc-saved-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; }
.acc-saved-item + .acc-saved-item { border-top: 1px solid var(--gray-200); }
.acc-saved-item .thumb { aspect-ratio: 4 / 3; border-radius: 4px; }
.acc-saved-item h3 { margin: 2px 0; font-size: 15.5px; line-height: 1.35; }
.acc-saved-item h3 a:hover { text-decoration: underline; }
.m-options { display: grid; gap: 8px; }
.m-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 8px; cursor: pointer; font-size: 14.5px; font-weight: 600; }
.m-option input { width: 18px; height: 18px; accent-color: var(--navy); }
.m-option:has(input:checked) { border-color: var(--navy); background: #f5f8fc; box-shadow: inset 3px 0 0 var(--yellow); }
.m-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.m-cat { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 8px; cursor: pointer; }
.m-cat input { width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.m-cat span { display: grid; }
.m-cat strong { font-size: 14.5px; color: var(--gray-900); }
.m-cat small { font-size: 12px; color: var(--gray-500); }
.m-cat:has(input:checked) { border-color: var(--navy); background: #f5f8fc; }
.acc-photo-row { display: flex; align-items: center; gap: 18px; }
.acc-photo-preview img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gray-100); display: block; }
.acc-photo-row > div { display: grid; gap: 8px; justify-items: start; }
.acc-danger { border-color: #fecaca; background: #fffafa; }
.acc-danger legend { color: var(--down); }
.acc-danger p { margin: 0; font-size: 14px; color: var(--gray-600); }

/* buttons on articles / categories */
.m-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; text-transform: none; letter-spacing: 0; }
.archive-head-row { flex-wrap: wrap; }
.archive-head-row .m-btn-follow { align-self: center; }

/* header user menu */
.user-menu { position: relative; }
.user-menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; border: 1px solid var(--gray-200); border-radius: 999px; background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 800; cursor: pointer; }
.user-menu-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.user-menu-btn:hover, .user-menu.is-open .user-menu-btn { border-color: var(--navy); }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 240px; padding: 6px; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: 0 16px 36px rgba(15, 23, 42, .16); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; }
.user-menu.is-open .user-menu-panel { opacity: 1; visibility: visible; transform: none; }
.user-menu-head { display: grid; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--gray-200); }
.user-menu-head strong { font-size: 14px; color: var(--gray-900); }
.user-menu-head span { font-size: 12px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; }
.user-menu-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--gray-600); }
.user-menu-panel a:hover { background: var(--gray-100); color: var(--navy); }
.user-menu-panel .user-menu-logout { color: var(--down); border-top: 1px solid var(--gray-200); border-radius: 0 0 6px 6px; margin-top: 4px; }
.mobile-account-btn { display: none; }
@media (max-width: 1023px) {
  .mobile-account-btn { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; color: var(--navy); }
  .mobile-account-btn img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
  .header-row .brand { margin-right: 0; }
}

/* newsletter box messages */
.newsletter-box .nl-msg { margin: 4px 0 0; font-size: 13px; color: #d1fae5; }
.newsletter-box .nl-msg.is-error { color: #fecaca; }
.newsletter-box .nl-msg:empty { display: none; }
.newsletter-box form.is-done input[type=email], .newsletter-box form.is-done button { display: none; }

/* toast */
.m-toast { position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 12px 28px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transition: .2s; }
.m-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
body.has-sticky-ad .m-toast { bottom: 96px; }

@media (max-width: 639px) {
  .m-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .auth-card { padding: 26px 20px; }
  .acc-stats { grid-template-columns: minmax(0, 1fr); }
  .acc-saved-item { grid-template-columns: 72px minmax(0, 1fr); }
  .acc-saved-item .m-btn { grid-column: 2; justify-self: start; }
  .m-actions { margin-left: 0; width: 100%; }
}

/* account layout: grid children may shrink (the scrollable mobile menu must not widen the page) */
.account-layout > *, .auth-layout > * { min-width: 0; }
.account-side { max-width: 100%; }

/* ================= Pop-up: Masuk / Daftar ================= */
.auth-modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; }
.auth-modal[hidden] { display: none; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 20, 50, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s ease; }
.auth-modal-box {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 28px 28px 24px; background: #fff; border-radius: 14px; border-top: 5px solid var(--yellow);
  box-shadow: 0 30px 60px -20px rgba(0, 20, 50, .5);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .18s ease, transform .18s ease;
}
.auth-modal.is-open .auth-modal-backdrop { opacity: 1; }
.auth-modal.is-open .auth-modal-box { opacity: 1; transform: none; }
.auth-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--gray-100); color: var(--gray-600); cursor: pointer; }
.auth-modal-close:hover { background: var(--gray-200); color: var(--navy); }
.auth-modal-head { margin-bottom: 16px; padding-right: 40px; }
.auth-modal-head .auth-kicker { color: var(--primary); border-color: var(--yellow); }
.auth-modal-head h2 { margin-top: 10px; font-size: 24px; font-weight: 900; color: var(--navy); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--gray-100); border-radius: 8px; }
.auth-tabs[hidden] { display: none; }
.auth-tab { height: 38px; border: 0; border-radius: 6px; background: transparent; font-size: 14px; font-weight: 800; color: var(--gray-500); cursor: pointer; }
.auth-tab.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.auth-pane[hidden] { display: none; }
.auth-pane .m-submit { width: 100%; }
.auth-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-switch { margin: 0; text-align: center; font-size: 14px; color: var(--gray-600); }
.auth-pane-intro { margin: 0; font-size: 14px; color: var(--gray-600); line-height: 1.5; }
.auth-modal-msg { margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.45; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.auth-modal-msg.is-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.auth-modal-msg[hidden] { display: none; }
@media (max-width: 479px) {
  .auth-modal { place-items: end center; padding: 0; }
  .auth-modal-box { max-width: none; max-height: 92vh; border-radius: 16px 16px 0 0; padding: 24px 18px 20px; transform: translateY(40px); }
  .auth-modal .m-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .auth-modal-box, .auth-modal-backdrop { transition: none; } }

/* checkbox labels: text + links flow as one paragraph */
.m-check { display: block; position: relative; padding-left: 26px; }
.m-check input { position: absolute; left: 0; top: 1px; margin: 0; }


/* dashboard stats: solid navy, no border */
.acc-stat, .acc-stat:hover { background: var(--navy); border: 0; border-left: 0; color: #fff; }
.acc-stat:hover { background: var(--primary); }
.acc-stat .n { color: #fff; }
.acc-stat .l { color: #c9d6ea; }

/* ================= Halaman institusi (footer pages) & formulir ================= */
.page-post .entry-content > p:first-child { font-size: 1.08em; }
.page-post .entry-content ol, .page-post .entry-content ul { padding-left: 1.4em; margin: 0 0 1.2em; }
.page-post .entry-content li { margin: .35em 0; }
.page-post .entry-content ol ol, .page-post .entry-content ol ul { margin: .4em 0 .6em; }
.page-post .entry-content ol[type="a"] { list-style-type: lower-alpha; }
.page-lead { font-family: var(--sans); font-size: 15px; color: var(--gray-500); border-left: 4px solid var(--yellow); padding: 4px 0 4px 14px; margin: 0 0 24px; }
.sm-facts, .sm-masthead { font-family: var(--sans); font-size: 15px; margin: 0 0 28px; border-top: 1px solid var(--gray-200, #e5e7eb); }
.sm-facts > div, .sm-masthead > div { display: grid; grid-template-columns: 210px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--gray-200, #e5e7eb); }
.sm-facts dt, .sm-masthead dt { font-weight: 700; color: var(--navy); margin: 0; }
.sm-facts dd, .sm-masthead dd { margin: 0; color: #212529; line-height: 1.6; }
.sm-facts a { color: var(--primary); }
.sm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 28px; font-family: var(--sans); }
.sm-cards > div { background: #f5f7fb; border-top: 3px solid var(--navy); padding: 16px 18px; }
.sm-cards h3 { margin: 0 0 6px !important; font-size: 16px; }
.sm-cards p { margin: 0; font-size: 14px; line-height: 1.55; color: #3d4450; }
.sm-cards .size { display: block; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 6px; letter-spacing: .02em; }
.sm-note { font-family: var(--sans); font-size: 14px; background: #fff8e1; border-left: 4px solid var(--yellow); padding: 12px 16px; margin: 0 0 24px; }
.sm-admin-hint { font-family: var(--sans); font-size: 13px; background: #fdecea; color: #8a1c13; padding: 10px 14px; border-radius: 4px; }
.sm-form-wrap { font-family: var(--sans); background: #f5f7fb; padding: 24px; margin: 12px 0 32px; }
.sm-form { display: grid; gap: 16px; }
.sm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sm-form .m-check { font-size: 14px; font-weight: 500; line-height: 1.5; }
.sm-form .m-check input { position: absolute; left: 0; top: 3px; }
.sm-form .m-submit { justify-self: start; }
.sm-form-wrap .m-notice { margin-bottom: 16px; }
.sm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .sm-facts > div, .sm-masthead > div { grid-template-columns: 1fr; gap: 2px; }
  .sm-form-grid { grid-template-columns: 1fr; }
  .sm-form-wrap { padding: 18px 16px; margin-left: -16px; margin-right: -16px; }
  .page-post h1 { font-size: 24px; }
}
.sm-form .m-field { display: block; }
.sm-form .m-field input, .sm-form .m-field select, .sm-form .m-field textarea { display: block; width: 100%; margin-top: 6px; }
.sm-form .m-field small { font-weight: 500; }

/* ================= Penulis: byline, lencana terverifikasi, halaman penulis ================= */
.verified-badge { display: inline-block; flex: none; vertical-align: -2px; margin-left: 4px; }
.byline { display: inline-flex; align-items: center; }
.byline-name { color: var(--navy); text-decoration: none; }
.byline-name:hover { color: var(--primary); text-decoration: underline; }
.author-head { display: flex; gap: 20px; align-items: center; margin-top: 18px; }
.author-avatar img { width: 88px; height: 88px; border-radius: 50%; display: block; object-fit: cover; }
.author-info { min-width: 0; }
.author-role { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.author-info h1 { margin: 2px 0 4px; }
.author-info h1 .nowrap { white-space: nowrap; }
.author-info h1 .verified-badge { margin-left: 8px; vertical-align: middle; }
.author-bio { margin: 4px 0; font-size: 15px; line-height: 1.6; color: #3d4450; max-width: 640px; }
.author-count { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--gray-500); }
@media (max-width: 639px) {
  .author-head { gap: 14px; }
  .author-avatar img { width: 64px; height: 64px; }
}
.author-card { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; min-width: 0; }
.author-card-photo { flex: none; }
.author-card-photo img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; background: var(--gray-200); }
.author-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.author-card-name { font-size: 15px; font-weight: 800; color: var(--navy); text-decoration: none; line-height: 1.3; }
.author-card-name:hover { color: var(--primary); }
.author-card-name .nowrap { white-space: nowrap; }
.author-card-time { font-size: 13px; font-weight: 500; color: var(--gray-500); }

/* ================= Halaman penulis: sampul + profil (author.php) ================= */
.author-cover { position: relative; height: 260px; background: linear-gradient(135deg, var(--navy), var(--primary)) center / cover no-repeat; }
.author-cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 20, 50, .15) 0%, rgba(0, 20, 50, .55) 100%); }
.author-hero { position: relative; display: flex; align-items: flex-end; gap: 22px; margin: -64px 0 28px; padding-bottom: 22px; border-bottom: 1px solid var(--gray-200); }
.author-hero-photo { flex: none; }
.author-hero-photo img { width: 136px; height: 136px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .15); object-fit: cover; display: block; background: var(--gray-200); }
.author-hero-text { flex: 1; min-width: 0; padding-bottom: 4px; }
.author-hero-text h1 { margin: 2px 0 4px; font-size: 34px; line-height: 1.15; color: var(--navy); }
.author-hero-text h1 .nowrap { white-space: nowrap; }
.author-hero-text h1 .verified-badge { margin-left: 8px; vertical-align: middle; }
.author-hero-stats { margin: 0; font-size: 14px; color: var(--gray-500); }
.author-hero-stats strong { color: var(--gray-900); }
.author-hero-actions { flex: none; padding-bottom: 8px; }
.author-hero-actions .m-btn, .author-panel .m-btn.is-wide { padding: 10px 22px; font-size: 14px; background: var(--navy); color: #fff; border-color: var(--navy); }
.author-hero-actions .m-btn.is-active, .author-panel .m-btn.is-wide.is-active { background: #fff; color: var(--navy); }
.author-list-title { font-size: 20px; color: var(--navy); margin: 0 0 8px; padding-bottom: 10px; border-bottom: 3px solid var(--yellow); display: flex; align-items: center; gap: 10px; }
.author-list-title .archive-page { font-size: 12px; }
.author-panel { position: sticky; top: 100px; }
.author-panel-box { background: #fff; border: 1px solid var(--gray-200); border-top: 4px solid var(--navy); padding: 20px; font-family: var(--sans); }
.author-panel-title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0 0 14px; }
.author-panel-who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.author-panel-who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.author-panel-who strong { display: block; font-size: 16px; color: var(--navy); line-height: 1.3; }
.author-panel-who strong .nowrap { white-space: nowrap; }
.author-panel-who span { font-size: 12px; color: var(--gray-500); }
.author-panel-bio { font-size: 14px; line-height: 1.6; color: #3d4450; margin: 0 0 14px; }
.author-panel-facts { margin: 0 0 16px; border-top: 1px solid var(--gray-200); }
.author-panel-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--gray-200); font-size: 13px; }
.author-panel-facts dt { color: var(--gray-500); margin: 0; }
.author-panel-facts dd { margin: 0; font-weight: 800; color: var(--gray-900); }
.author-panel-sub { font-size: 13px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.author-panel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.author-panel-tags a { font-size: 12px; font-weight: 700; padding: 5px 10px; background: #eef2f8; color: var(--navy); text-decoration: none; border-radius: 999px; }
.author-panel-tags a:hover { background: var(--navy); color: #fff; }
.author-panel-web { font-size: 13px; margin: 0 0 14px; }
.author-panel .m-btn.is-wide { width: 100%; justify-content: center; }
.author-panel-note { font-size: 12px; color: var(--gray-500); margin: 10px 0 0; text-align: center; }
@media (max-width: 767px) {
  .author-panel { position: static; }
}
@media (max-width: 639px) {
  .author-cover { height: 150px; }
  .author-hero { flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin-top: -48px; }
  .author-hero-photo img { width: 96px; height: 96px; border-width: 4px; }
  .author-hero-text { flex-basis: calc(100% - 110px); }
  .author-hero-text h1 { font-size: 24px; }
  .author-hero-actions { width: 100%; padding-bottom: 0; }
  .author-hero-actions .m-btn { width: 100%; justify-content: center; }
}
/* author hero: cover menempel ke header; nama & tombol di bawah sampul */
.author-cover { margin-top: -16px; }
.author-hero { align-items: flex-start; }
.author-hero-text { padding-top: 76px; }
.author-hero-actions { padding-top: 82px; }
.author-panel-who > div > span { font-size: 12px; color: var(--gray-500); }
.author-panel-who strong span { font-size: inherit; color: inherit; }
@media (min-width: 768px) { .author-cover { margin-top: -24px; } }
@media (max-width: 639px) {
  .author-hero-text { padding-top: 54px; }
  .author-hero-actions { padding-top: 0; }
}

/* Dropdown menu: lebar mengikuti item terpanjang (mis. "Kalimantan & Sulawesi") agar teks tidak turun dan menimpa item berikutnya */
.nav-dropdown .dropdown li ul { width: auto; min-width: 180px; }
.nav-dropdown .dropdown li ul a { white-space: nowrap; padding: 0 16px; }
.nav-dropdown .dropdown li:focus-within > ul { visibility: visible; opacity: 1; }
.nav-dropdown .dropdown li ul a { transition: background .15s, color .15s; }
.nav-dropdown .dropdown li ul a:hover { font-weight: 500; background: #f3f5f7; color: var(--primary); box-shadow: inset 3px 0 0 var(--yellow); }

/* Segitiga penanda menu yang punya dropdown */
.nav-dropdown .dropdown > li.has-children > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown .dropdown > li.has-children > a::after {
  content: ""; width: 0; height: 0; margin-top: 1px;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor;
  opacity: .7; transition: transform .2s ease, opacity .2s ease;
}
.nav-dropdown .dropdown > li.has-children:hover > a::after,
.nav-dropdown .dropdown > li.has-children:focus-within > a::after { transform: rotate(180deg); opacity: 1; }

/* ================= Pencarian header desktop: lebar, blur, hashtag populer ================= */
.search-backdrop[hidden], .search-suggest[hidden] { display: none !important; }
@media (min-width: 1024px) {
  .header-row { gap: 40px; }
  .brand { flex-shrink: 0; }
  .header-toolbar { flex: 1; min-width: 0; justify-content: flex-end; }
  .header-search { position: relative; flex: 1; width: auto; max-width: 560px; height: 40px; padding: 0 14px; border-radius: 6px; transition: background .15s, border-color .15s, box-shadow .2s; }
  .header-search input { height: 100%; font-size: 14px; }
  body.search-open .header-search { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 82, 155, .12); }

  .search-backdrop {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(10, 25, 50, .28);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .2s ease;
  }
  body.search-open .search-backdrop { opacity: 1; }

  .search-suggest {
    position: absolute; left: -1px; right: -1px; top: calc(100% + 10px); z-index: 70;
    background: #fff; border: 1px solid var(--gray-200); border-radius: 10px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .22); padding: 16px 16px 12px;
    opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease;
    color: var(--gray-900); text-align: left;
  }
  body.search-open .search-suggest { opacity: 1; transform: none; }
  .ss-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
  .ss-fire { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(252, 183, 0, .25); }
  .ss-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .ss-tags a {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 7px;
    border-radius: 999px; background: #f1f5fb; color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none;
    transition: background .15s, color .15s;
  }
  .ss-tags a:hover, .ss-tags a:focus-visible { background: var(--navy); color: #fff; outline: none; }
  .ss-tags a small { font-size: 11px; font-weight: 500; opacity: .65; }
  .ss-rank { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--primary); font-size: 11px; font-weight: 800; }
  .ss-tags li:nth-child(-n+3) .ss-rank { background: var(--yellow); color: var(--navy); }
  .ss-empty { margin: 4px 0 0; font-size: 13px; color: var(--gray-500); }
  .ss-hint { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--gray-200); font-size: 12px; color: var(--gray-500); }
  .search-suggest kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--gray-300, #d1d5db); border-bottom-width: 2px; border-radius: 4px; font: 600 11px/1.4 var(--sans); color: var(--gray-900); background: #fff; }
}

/* ================= Skeleton di semua halaman ================= */
/* Shared shimmer */
.sk-block, .skeleton-line, .post-thumbnail, .author-card-photo, .author-hero-photo, .author-panel-who > img, .account-avatar, .author-cover {
  background-color: #e5e7eb;
  background-image: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 40%, #e5e7eb 80%);
  background-size: 200% 100%;
  animation: skeleton 1.3s ease-in-out infinite;
}
.post-thumbnail.is-ready, .author-card-photo.is-ready, .author-hero-photo.is-ready, .account-avatar.is-ready { animation: none; background-image: none; background-color: transparent; }
.author-cover { animation: none; }
html.js .post-thumbnail img, html.js .author-card-photo img, html.js .author-hero-photo img { opacity: 0; transition: opacity .35s ease; }
.author-card-photo, .author-hero-photo { border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .sk-block, .post-thumbnail, .author-card-photo, .author-hero-photo { animation: none; } }

/* Navigation skeleton (components/layout/skeletons.php) */
.sm-skeletons { display: none; }
.sk-page { padding-top: 4px; padding-bottom: 40px; animation: contentIn .2s ease; }
.sk-page .skeleton-line { height: 12px; border-radius: 3px; margin-bottom: 10px; }
.sk-page .sk-10 { width: 10%; } .sk-page .sk-15 { width: 15%; } .sk-page .sk-20 { width: 20%; } .sk-page .sk-25 { width: 25%; }
.sk-page .sk-30 { width: 30%; } .sk-page .sk-40 { width: 40%; } .sk-page .sk-55 { width: 55%; } .sk-page .sk-60 { width: 60%; }
.sk-page .sk-70 { width: 70%; } .sk-page .sk-85 { width: 85%; } .sk-page .sk-90 { width: 90%; } .sk-page .sk-95 { width: 95%; }
.sk-page .sk-98 { width: 98%; } .sk-page .sk-100 { width: 100%; }
.sk-block { display: block; border-radius: 3px; }
.sk-16x9 { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 14px; }
.sk-page .sk-crumb { height: 10px; margin-bottom: 20px; }
.sk-page .sk-kicker { height: 10px; margin-bottom: 14px; }
.sk-page .sk-title { height: 30px; margin-bottom: 12px; }
.sk-page .sk-dek { height: 16px; }
.sk-page .sk-h { height: 14px; margin-bottom: 16px; }
.sk-page .sk-gap { margin-bottom: 26px; }
.sk-page .sk-center { margin-left: auto; margin-right: auto; }
.sk-narrow { max-width: 860px; }
.sk-author { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin: 14px 0 22px; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.sk-author > div { flex: 1; }
.sk-author .skeleton-line { margin-bottom: 6px; }
.sk-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.sk-figure { margin-bottom: 24px; }
.sk-body .skeleton-line { height: 14px; }
.sk-hero-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 28px; }
.sk-hero { width: 100%; aspect-ratio: 16 / 9; }
.sk-pop { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.sk-pop .skeleton-line { margin: 0; }
.sk-page .sk-num { width: 18px; height: 22px; flex: none; }
.sk-rail { align-content: start; }
.sk-side { display: grid; }
@media (min-width: 768px) {
  .sk-hero-wrap { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .sk-hero { aspect-ratio: auto; min-height: 380px; }
}
@media (max-width: 767px) { .sk-rail, .sk-hero-rail { display: none; } }

/* First visit: every page's text turns into shimmer bars until it is ready (html.skeleton-preview) */
html.skeleton-preview :is(
  .breadcrumbs a, .breadcrumbs span:not([aria-hidden]), .kicker, .single-post h1, .single-post .dek, .author-card-name, .author-card-time,
  .entry-content p, .entry-content h2, .entry-content h3, .entry-content li, .baca-juga, .share-label, .tag-cloud a,
  .archive-head h1, .archive-desc, .archive-page, .archive-lead h2, .author-list-title,
  .search-title, .search-lead, .search-summary, .sr-title, .sr-meta time, .chip, .sr-box li, .sr-tips li,
  .author-hero h1, .author-hero-stats, .author-panel-title, .author-panel-bio, .author-panel-facts dt, .author-panel-facts dd, .author-panel-sub, .author-panel-tags a,
  .page-post h1, .agg-head h2, .agg-head a, .agg-card h3, .agg-list a, .agg-list time, .op-item h3, .side-more, .related-list h2,
  .acc-head h1, .acc-head p, .auth-title, .auth-sub, .auth-aside h2, .auth-aside li, .account-who strong, .account-who span, .account-nav a span,
  .m-field, .m-btn, .acc-stat .n, .acc-stat .l
) {
  color: transparent !important;
  border-color: transparent !important;
  border-radius: 3px;
  background-color: #e5e7eb !important;
  background-image: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 40%, #e5e7eb 80%) !important;
  background-size: 200% 100% !important;
  animation: skeleton 1.3s ease-in-out infinite;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  box-shadow: none !important;
}
html.skeleton-preview :is(.entry-content p, .archive-lead h2, .sr-title, .agg-card h3, .op-item h3, .author-panel-bio, .search-lead) { display: inline; line-height: 1.7; }
html.skeleton-preview :is(.entry-content p, .archive-lead h2, .sr-title, .search-lead, .author-panel-bio)::after { content: ""; display: block; margin-bottom: 1em; }
html.skeleton-preview :is(.m-btn, .m-field, .chip, .baca-juga, .m-field input, .tag-cloud a) * { visibility: hidden; }
html.skeleton-preview :is(.verified-badge, .share-btn svg, .account-nav svg, .auth-aside svg) { visibility: hidden; }
html.skeleton-preview .share-btn { background: #e5e7eb !important; color: transparent !important; }
html.skeleton-preview :is(.author-card-photo, .author-hero-photo, .author-panel-who, .account-avatar) img { opacity: 0 !important; }
html.skeleton-preview .author-cover { animation: skeleton 1.3s ease-in-out infinite; background-image: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 40%, #cbd5e1 80%) !important; background-size: 200% 100% !important; }
html.skeleton-preview .author-cover-shade { opacity: 0; }
html.skeleton-done :is(.main-content, .markets-banner, .author-cover) { animation: contentIn .35s ease; }
html.skeleton-preview .single-post .kicker { display: block; width: 90px; height: 14px; margin-bottom: 12px; }
html.skeleton-preview :is(.author-hero-stats, .author-panel-who strong, .author-panel-who span, .author-panel-facts dd) * { color: transparent !important; }
html.skeleton-preview :is(.author-panel-who strong, .author-panel-who > div > span) { color: transparent !important; background: #e5e7eb !important; border-radius: 3px; }
html.skeleton-preview .author-cover { background-repeat: repeat !important; background-position: 0 0; }
html.skeleton-preview :is(.post-thumbnail figcaption, .filter-selects label > span, .sr-cite, .sr-meta .badge) { color: transparent !important; background: #e5e7eb !important; border-color: transparent !important; border-radius: 3px; }
html.skeleton-preview .post-thumbnail figcaption { display: inline-block; min-width: 60%; }
html.skeleton-preview :is(.search-summary, .sr-cite, .filter-selects) * { color: transparent !important; visibility: hidden; }
html.skeleton-preview .sr-title mark { background: transparent !important; color: transparent !important; }
html.skeleton-preview .filter-selects select { color: transparent !important; background: #e5e7eb !important; border-color: transparent !important; }
/* loaded images must win over the hidden state above (same specificity, so state it explicitly) */
html.js :is(.post-thumbnail, .author-card-photo, .author-hero-photo) img.is-loaded { opacity: 1; }

/* ================= Ruang redaksi: Kelola Berita & Tulis Berita ================= */
.acc-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.acc-head-row .m-submit, .acc-head-row .m-btn { flex: none; }
.m-btn.is-danger { color: #b42318; border-color: #f1c7c3; }
.m-btn.is-danger:hover { background: #b42318; border-color: #b42318; color: #fff; }
.nr-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; background: #eef2f8; color: var(--navy); white-space: nowrap; }
.nr-status.s-publish { background: #dcfce7; color: #166534; }
.nr-status.s-future { background: #e0f2fe; color: #075985; }
.nr-status.s-draft { background: #f1f5f9; color: #475569; }
.nr-status.s-pending { background: #fef3c7; color: #92400e; }
.nr-status.s-private { background: #ede9fe; color: #5b21b6; }
.nr-status.s-trash { background: #fee2e2; color: #991b1b; }

.nr-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.nr-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--gray-200); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--gray-900); }
.nr-tabs a span { font-size: 11px; font-weight: 800; color: var(--gray-500); }
.nr-tabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.nr-tabs a.is-active span { color: #c9d6ea; }
.nr-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.nr-search input[type=search] { flex: 1; min-width: 200px; height: 40px; padding: 0 12px; border: 1px solid var(--gray-300); border-radius: 6px; font-size: 14px; }
.nr-search .m-check { font-size: 13px; font-weight: 600; }

.nr-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; }
.nr-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px; }
.nr-item + .nr-item { border-top: 1px solid var(--gray-200); }
.nr-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; color: var(--gray-400); }
.nr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nr-item.is-trash .nr-thumb { opacity: .5; }
.nr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--gray-500); }
.nr-meta > span:not(.nr-status) + span::before, .nr-meta time::before { content: "·"; margin-right: 10px; }
.nr-body h3 { margin: 6px 0 10px; font-size: 16px; line-height: 1.35; font-weight: 800; color: var(--gray-900); }
.nr-body h3 a:hover { color: var(--primary); text-decoration: underline; }
.nr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nr-actions form { margin: 0; }
.nr-actions .m-btn { height: 32px; font-size: 12px; }
@media (max-width: 639px) {
  .nr-item { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .nr-actions .m-btn { padding: 0 10px; }
}

.nr-form .nr-title { font-size: 20px; font-weight: 800; height: 52px; }
.nr-count { font-size: 12px; color: var(--gray-500); }
.nr-count.is-over { color: #b42318; }
.nr-editor { display: grid; gap: 6px; }
.nr-editor .wp-editor-wrap { border: 1px solid var(--gray-300); border-radius: 6px; overflow: hidden; background: #fff; }
.nr-editor .wp-editor-tools { padding: 6px 8px 0; background: #f8fafc; }
.nr-editor .wp-editor-container { border: 0; }
.nr-editor .wp-media-buttons .button { height: 30px; font-size: 13px; }
.nr-editor textarea.wp-editor-area { border: 0; font-family: var(--serif); font-size: 16px; line-height: 1.7; }
.nr-thumb-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.nr-thumb-preview { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #f1f5f9; color: var(--gray-400); border: 1px dashed var(--gray-300); }
.nr-thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.nr-thumb-fields { display: grid; gap: 12px; }
.nr-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; max-height: 260px; overflow: auto; padding: 4px 2px; }
.nr-cat { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gray-900); cursor: pointer; }
.nr-cat.is-child { padding-left: 18px; font-weight: 500; }
.nr-cat input { width: 16px; height: 16px; accent-color: var(--navy); }
.nr-submit { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 639px) { .nr-thumb-row { grid-template-columns: 1fr; } }

.nr-summary-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.nr-summary-stats a { display: grid; gap: 2px; padding: 12px; border-radius: 8px; background: #f1f5fb; color: var(--navy); }
.nr-summary-stats a:hover { background: #e3eaf5; }
.nr-summary-stats strong { font-size: 22px; font-weight: 900; line-height: 1; }
.nr-summary-stats span { font-size: 12px; font-weight: 700; color: var(--gray-500); }
.nr-summary-list { list-style: none; margin: 0 0 16px; padding: 0; }
.nr-summary-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--gray-200); }
.nr-summary-list a { font-size: 14px; font-weight: 700; color: var(--gray-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-summary-list a:hover { color: var(--primary); }
@media (max-width: 639px) { .nr-summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= Staf: analitik, pelanggan, iklan, pengaturan, 2FA ================= */
.an-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.an-card { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 10px; background: var(--navy); color: #fff; }
a.an-card:hover { background: var(--primary); }
.an-card .l { font-size: 12px; font-weight: 700; color: #c9d6ea; }
.an-card strong { font-size: 26px; font-weight: 900; line-height: 1.1; color: #fff; }
.an-delta { font-size: 11px; font-weight: 700; }
.an-delta.is-up { color: #86efac; }
.an-delta.is-down { color: #fca5a5; }
.an-total { font-size: 13px; font-weight: 800; color: var(--gray-500); }
.an-empty { margin: 0 0 12px; font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.an-chart { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 180px; padding: 0 0 22px; border-bottom: 1px solid var(--gray-200); position: relative; }
.an-bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.an-bar span { display: block; width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: #b9c9e3; transition: background .15s; }
.an-bar:hover span { background: var(--primary); }
.an-bar.is-today span { background: var(--yellow); }
.an-bar em { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; font-weight: 700; color: var(--gray-500); white-space: nowrap; }
.an-popular { list-style: none; margin: 0; padding: 0; }
.an-popular li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--gray-200); }
.an-popular li:first-child { border-top: 0; }
.an-popular .num { font-size: 20px; font-weight: 900; color: var(--yellow); text-align: center; }
.an-pop-body { display: grid; gap: 3px; min-width: 0; }
.an-pop-body a { font-size: 14px; font-weight: 800; color: var(--gray-900); line-height: 1.35; }
.an-pop-body a:hover { color: var(--primary); text-decoration: underline; }
.an-pop-meta { font-size: 12px; color: var(--gray-500); }
.an-pop-bar { display: block; height: 4px; border-radius: 2px; background: #eef2f8; }
.an-pop-bar span { display: block; height: 100%; border-radius: 2px; background: var(--primary); }
.an-pop-views { font-size: 15px; font-weight: 900; color: var(--navy); }
.an-freq { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: -6px 0 16px; font-size: 13px; color: var(--gray-500); }

.sub-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; }
.sub-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sub-table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); background: #f8fafc; border-bottom: 1px solid var(--gray-200); }
.sub-table td { padding: 12px 14px; border-top: 1px solid var(--gray-200); vertical-align: middle; }
.sub-table td strong { display: block; font-size: 14px; color: var(--gray-900); word-break: break-all; }
.sub-table td small { color: var(--gray-500); }
.sub-actions { display: flex; gap: 6px; justify-content: flex-end; }
.sub-actions form { margin: 0; }
.sub-actions .m-btn { height: 30px; font-size: 12px; }
@media (max-width: 639px) {
  .sub-table thead { display: none; }
  .sub-table tr { display: grid; gap: 6px; padding: 12px 14px; border-top: 1px solid var(--gray-200); }
  .sub-table td { padding: 0; border: 0; }
  .sub-actions { justify-content: flex-start; }
}

.ad-slot-box { padding: 0; }
.ad-slot-box summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; cursor: pointer; list-style: none; }
.ad-slot-box summary::-webkit-details-marker { display: none; }
.ad-slot-box summary::after { content: "\25BE"; margin-left: auto; color: var(--gray-400); transition: transform .2s; }
.ad-slot-box[open] summary::after { transform: rotate(180deg); }
.ad-slot-box[open] summary { border-bottom: 1px solid var(--gray-200); }
.ad-slot-box > *:not(summary) { margin: 14px 20px; }
.ad-slot-box > .m-field:last-child { margin-bottom: 20px; }
.ad-slot-name { font-size: 15px; font-weight: 800; color: var(--navy); }
.ad-slot-size { font-size: 12px; color: var(--gray-500); }
.ad-slot-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.ad-device { flex: 0 0 220px; }
.ad-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important; font-size: 12.5px !important; }
.set-checks { display: grid; gap: 12px; margin: 6px 0 4px; }
.set-checks small { display: block; font-size: 12px; color: var(--gray-500); }

.tfa-box { border-left: 4px solid var(--gray-300); }
.tfa-box.is-on { border-left-color: #16a34a; }
.tfa-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: start; margin-bottom: 16px; }
.tfa-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #eef2f8; color: var(--navy); }
.tfa-box.is-on .tfa-icon { background: #dcfce7; color: #166534; }
.tfa-head h2 { font-size: 17px; font-weight: 900; color: var(--navy); margin: 0 0 4px; }
.tfa-head p { margin: 0; font-size: 14px; color: var(--gray-600); line-height: 1.55; }
.tfa-state { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #f1f5f9; color: #475569; }
.tfa-box.is-on .tfa-state { background: #dcfce7; color: #166534; }
.tfa-steps { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.6; display: grid; gap: 10px; }
.tfa-qr-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.tfa-qr { width: 190px; height: 190px; padding: 6px; background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; display: grid; place-items: center; font-size: 12px; color: var(--gray-500); }
.tfa-qr svg { width: 100%; height: 100%; }
.tfa-manual { flex: 1; min-width: 200px; font-size: 13px; color: var(--gray-600); }
.tfa-secret { display: inline-block; margin-top: 6px; padding: 8px 10px; border-radius: 6px; background: #f1f5f9; font-size: 14px; font-weight: 700; letter-spacing: .06em; word-break: break-all; }
.tfa-confirm { max-width: 320px; }
.tfa-cancel { margin-top: 8px; }
.m-otp { font-size: 22px !important; font-weight: 800; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.tfa-codes { margin: 0 0 18px; padding: 16px; border-radius: 8px; background: #fffbeb; border: 1px solid #fde68a; }
.tfa-codes h3 { margin: 0 0 6px; font-size: 15px; color: #92400e; }
.tfa-codes p { margin: 0 0 10px; font-size: 13px; color: #78350f; }
.tfa-codes ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin: 0 0 12px; padding-left: 22px; }
.tfa-codes code { font-size: 15px; font-weight: 700; letter-spacing: .05em; }
.tfa-status { font-size: 14px; margin: 0 0 14px; }
.tfa-manage h3 { font-size: 14px; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.tfa-manage form { padding: 14px; border: 1px solid var(--gray-200); border-radius: 8px; }
.auth-otp-intro { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--gray-600); }
@media (max-width: 639px) { .tfa-head { grid-template-columns: 40px minmax(0, 1fr); } .tfa-state { grid-column: 2; justify-self: start; } }

/* Kelola Iklan: banner upload + preview, banner on the site */
.ad-banner-edit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px; border-radius: 8px; background: #f8fafc; border: 1px solid var(--gray-200); }
.ad-preview-wrap { display: grid; gap: 6px; min-width: 0; }
.ad-preview { width: 100%; max-height: 420px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: repeating-linear-gradient(45deg, #eef2f8 0 10px, #e2e8f0 10px 20px); border: 1px dashed var(--gray-300); }
.ad-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-preview.is-new { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ad-preview-empty { font-size: 13px; font-weight: 800; color: var(--gray-500); background: rgba(255, 255, 255, .8); padding: 4px 10px; border-radius: 999px; }
.ad-preview-note { font-size: 12px; color: var(--gray-500); }
.ad-banner-fields { display: grid; gap: 12px; }
.ad-banner-fields .m-file { justify-self: start; }
@media (max-width: 767px) { .ad-banner-edit { grid-template-columns: 1fr; } }
.ad-inner .ad-banner-link, .ad-inner .ad-banner { display: block; margin: 0 auto; }
.ad-inner img.ad-banner { max-width: 100%; height: auto; }

/* Dashboard: Pembaca (kota, perangkat, sumber, …) */
.aud-period { display: flex; gap: 4px; }
.aud-period a { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--gray-500); border: 1px solid var(--gray-200); }
.aud-period a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.aud-panel { padding: 14px; border: 1px solid var(--gray-200); border-radius: 8px; min-width: 0; }
.aud-panel h3 { margin: 0 0 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.aud-panel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.aud-panel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 13px; }
.aud-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--gray-900); }
.aud-num { font-weight: 800; color: var(--navy); }
.aud-num small { font-weight: 600; color: var(--gray-500); }
.aud-bar { grid-column: 1 / -1; display: block; height: 5px; border-radius: 3px; background: #eef2f8; }
.aud-bar span { display: block; height: 100%; border-radius: 3px; background: var(--primary); }
.aud-device .aud-bar span { background: var(--navy); }
.aud-source .aud-bar span { background: #0e9f6e; }
li.is-unknown .aud-label { color: var(--gray-500); font-weight: 600; }
li.is-unknown .aud-bar span { background: var(--gray-300); }
.aud-note { margin: 14px 0 0; font-size: 12px; color: var(--gray-500); }
.aud-note a { color: var(--gray-500); text-decoration: underline; }
