/* ==========================================================================
   WartaDunia – sistem desain
   Terang: "Cool Paper"  ·  Gelap: "Midnight Ink"
   Semua warna teks memakai token supaya kontras terjaga di kedua tema.
   ========================================================================== */

@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/inter-600.woff') format('woff'); }
@font-face { font-family: 'Inter Display'; font-weight: 800; font-style: normal; font-display: swap; src: url('/fonts/inter-display-800.woff') format('woff'); }

:root {
  --bg: #f3f5f9;
  --bg-2: #e8ecf4;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --line: #dbe1ec;
  --line-2: #c5cedd;
  --text: #0f1728;
  --text-2: #3f4b60;
  --muted: #586378;
  --accent: #1f5ae8;
  --accent-ink: #ffffff;
  --accent-soft: #e6eeff;
  --up: #0a7a4d;
  --down: #c0231c;
  --warn: #9a5b00;
  --warn-bg: #fff3d6;
  --eko: #0b9468;
  --ora: #e5580f;
  --pol: #6a46f5;
  --tek: #0a7ea4;
  --hib: #c2255c;
  --gay: #2f9e44;
  --cua: #1581dc;
  --shadow: 0 1px 2px rgba(15, 23, 40, .06), 0 6px 20px rgba(15, 23, 40, .06);
  --shadow-lg: 0 10px 40px rgba(15, 23, 40, .18);
  --r: 14px;
  --r-sm: 10px;
  --gutter: clamp(16px, 3vw, 32px);
  --maxw: 1320px;
  --head-h: 64px;
  --font: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-d: 'Inter Display', 'Inter', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b111b; --bg-2: #0f1724; --surface: #141c2b; --surface-2: #192233; --line: #243047; --line-2: #33425f;
    --text: #eef2f9; --text-2: #bcc6d8; --muted: #93a0b7; --accent: #6f9eff; --accent-ink: #08101f; --accent-soft: #1b2a4d;
    --up: #3ddc97; --down: #ff8179; --warn: #ffd27a; --warn-bg: #3a2c0c;
    --eko: #17b883; --ora: #ff7a3d; --pol: #8d72ff; --cua: #38a6ff; --tek: #2ec4e6; --hib: #ff6b9d; --gay: #5fd37a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .28); --shadow-lg: 0 14px 48px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b111b; --bg-2: #0f1724; --surface: #141c2b; --surface-2: #192233; --line: #243047; --line-2: #33425f;
  --text: #eef2f9; --text-2: #bcc6d8; --muted: #93a0b7; --accent: #6f9eff; --accent-ink: #08101f; --accent-soft: #1b2a4d;
  --up: #3ddc97; --down: #ff8179; --warn: #ffd27a; --warn-bg: #3a2c0c;
  --eko: #17b883; --ora: #ff7a3d; --pol: #8d72ff; --cua: #38a6ff; --tek: #2ec4e6; --hib: #ff6b9d; --gay: #5fd37a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .28); --shadow-lg: 0 14px 48px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 60px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 800; margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
b, strong { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 10px; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wx-ic { width: 40px; height: 40px; flex: none; }
.wx-ic--xs { width: 22px; height: 22px; }
.wx-ic--sm { width: 30px; height: 30px; }
.wx-ic--lg { width: 72px; height: 72px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; flex: none; }

main { display: block; min-height: 60vh; padding-block: 20px 56px; }

/* ---------- Tombol & kontrol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text-2); transition: background-color .15s; }
.icon-btn:hover { background: var(--surface); color: var(--text); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg__b { border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.seg__b:hover { color: var(--text); }
.seg__b.is-on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
:root[data-theme='dark'] .seg__b.is-on { background: var(--line-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .seg__b.is-on { background: var(--line-2); } }
.seg__b--sm { padding: 4px 10px; font-size: 12px; }
.seg--right { align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.chips a:hover { color: var(--text); border-color: var(--line-2); }
.chips a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.citygrp__h { font-size: 15px; margin-top: 8px; }
.citygrp { border-top: 1px solid var(--line); padding: 10px 0; }
.citygrp summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.citygrp summary span { color: var(--muted); font-weight: 500; font-size: 13px; }
.citygrp .chips { margin-top: 10px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-family: var(--font-d); font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--text); }
.brand__name b { font-weight: 800; color: var(--accent); }
.search { position: relative; flex: 1 1 auto; max-width: 560px; margin-inline: auto; }
.search .ic { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 42px; padding: 0 18px 0 42px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 14.5px;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.wx-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.wx-chip:hover { background: var(--surface); }
.wx-chip__t { font-variant-numeric: tabular-nums; }
.navwrap { border-top: 1px solid transparent; }
.mainnav, .subnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar, .subnav::-webkit-scrollbar { display: none; }
.mainnav a {
  position: relative; padding: 10px 14px 12px; font-weight: 600; font-size: 14.5px; color: var(--muted); white-space: nowrap; transition: color .15s;
}
.mainnav a:hover { color: var(--text); }
.mainnav a.is-active { color: var(--text); }
.mainnav a.is-active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.navwrap--sub { background: var(--bg-2); border-top: 1px solid var(--line); }
.subnav { padding-block: 8px; }
.subnav a { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.subnav a:hover { background: var(--surface); color: var(--text); }
.subnav a.is-active { background: var(--text); color: var(--bg); }

.prefs { position: fixed; z-index: 80; top: calc(var(--head-h) + 8px); right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); width: min(320px, calc(100vw - 32px)); }
.prefs__in { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 16px 18px 18px; display: grid; gap: 14px; }
.prefs__row { display: flex; align-items: center; justify-content: space-between; }
.prefs h2 { font-size: 17px; }
.prefs fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.prefs legend { font-weight: 600; font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.radio input { accent-color: var(--accent); width: 17px; height: 17px; }

/* ---------- Kepala halaman ---------- */
.pagehead { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; margin: 4px 0 14px; }
.pagehead h1 { font-size: clamp(24px, 3vw, 34px); }
.pagehead__d { color: var(--muted); font-size: 14px; font-weight: 600; }
.pagehead--cat { margin-bottom: 18px; }
.pagehead__p { margin-top: 8px; max-width: 68ch; color: var(--text-2); font-size: 15.5px; }

/* ---------- Ubin berita ---------- */
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: #172033; isolation: isolate; min-width: 0; box-shadow: var(--shadow); }
.tile__a { position: absolute; inset: 0; display: block; color: #fff; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .tile:hover .tile__img { transform: scale(1.035); } }
.tile--noimg { background: linear-gradient(135deg, #25356b, #14213f 60%, #1b4a7a); }
.tile__body {
  position: absolute; inset: auto 0 0 0; padding: 56px 14px 14px; color: #fff; display: grid; gap: 6px;
  background: linear-gradient(to top, rgba(5, 9, 17, .94) 0%, rgba(5, 9, 17, .78) 42%, rgba(5, 9, 17, 0) 100%);
}
.tile__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .86); min-width: 0; }
.tile__src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tile__meta time { white-space: nowrap; font-weight: 400; }
.tile__title { font-family: var(--font); font-weight: 600; font-size: 15px; line-height: 1.3; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.tile__sum { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .84); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__cat { justify-self: start; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .18); }
.tile--l .tile__body { padding: 90px 24px 22px; gap: 10px; }
.tile--l .tile__title { font-family: var(--font-d); font-weight: 800; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.14; letter-spacing: -.02em; -webkit-line-clamp: 4; }
.tile--l .tile__meta { font-size: 13px; }
.tile--w .tile__title, .tile--m .tile__title { font-size: 17px; }
.tile--w .tile__body { padding: 70px 18px 16px; }
.tile:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile__a:focus-visible { outline: none; }

.fav { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; flex: none; background: #3b4a6b; }
.fav__l { font-size: 10px; font-weight: 600; color: #fff; line-height: 1; }
.fav img { position: absolute; inset: 0; width: 100%; height: 100%; background: #fff; object-fit: contain; padding: 1px; }
.fav--0 { background: #2f6bff; } .fav--1 { background: #0b9468; } .fav--2 { background: #e5580f; } .fav--3 { background: #6a46f5; }
.fav--4 { background: #c2185b; } .fav--5 { background: #00838f; } .fav--6 { background: #8a5a00; } .fav--7 { background: #455a64; } .fav--8 { background: #b3261e; }

/* grid seragam (4 kolom) */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid4 .tile { aspect-ratio: 4 / 3; }

/* mosaik MSN: ubin 2×2 + 2×1 */
.mosaic { --row: clamp(176px, 15.2vw, 224px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: var(--row); grid-auto-flow: dense; gap: 14px; }
.mosaic .tile--l { grid-column: span 2; grid-row: span 2; }
.mosaic .tile--w { grid-column: span 2; }

/* ---------- Hero beranda ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; height: clamp(400px, 34vw, 470px); margin-bottom: 18px; }
.hero > .tile--l { height: 100%; }
.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }
.hero__side .tile { height: 100%; }

/* kartu cuaca beranda: selalu gradien langit + teks putih (kontras terjamin di kedua tema) */
.wx-card {
  --a: #1f66c9; --b: #123a86;
  display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 14px; border-radius: var(--r); color: #fff; min-width: 0;
  background: radial-gradient(120% 80% at 80% -10%, rgba(255, 255, 255, .22), transparent 55%), linear-gradient(165deg, var(--a), var(--b)); box-shadow: var(--shadow);
}
.wx-card[data-wx-kind^='cloudy'], .wx-card[data-wx-kind^='fog'] { --a: #5a6c8c; --b: #34415a; }
.wx-card[data-wx-kind^='rain'], .wx-card[data-wx-kind^='drizzle'], .wx-card[data-wx-kind^='heavy'] { --a: #3d5877; --b: #223249; }
.wx-card[data-wx-kind^='thunder'] { --a: #3d3f6d; --b: #1f2140; }
.wx-card[data-wx-kind$='-night'] { --a: #1d2f63; --b: #0c142d; }
.wx-card__top { display: flex; align-items: center; justify-content: space-between; }
.wx-card__place { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.wx-card__place .ic { width: 16px; height: 16px; }
.wx-card__main { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.wx-card__temp { font-family: var(--font-d); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.04em; }
.wx-card__temp sup { font-size: 22px; vertical-align: top; position: relative; top: 8px; margin-left: 2px; font-weight: 600; letter-spacing: 0; }
.wx-card__txt { font-size: 13.5px; color: rgba(255, 255, 255, .92); }
.wx-days { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wx-days li { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; background: rgba(255, 255, 255, .13); font-size: 12px; }
.wx-d__n { font-weight: 600; }
.wx-d__t small { margin-left: 3px; opacity: .78; font-size: 11.5px; }
.wx-card__more { display: inline-flex; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 600; color: #fff; padding-top: 4px; }
.wx-card__more:hover { text-decoration: underline; }
.wx-card__more .ic { width: 16px; height: 16px; }

/* ---------- Seksi ---------- */
.sec { margin-top: 34px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-title { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(20px, 2vw, 24px); }
.sec-title--plain { font-size: 22px; }
.sec-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; }
.sec-ic .ic { width: 18px; height: 18px; }
.sec-ic--eko { background: var(--eko); } .sec-ic--ora { background: var(--ora); } .sec-ic--pol { background: var(--pol); } .sec-ic--tek { background: var(--tek); } .sec-ic--hib { background: var(--hib); } .sec-ic--gay { background: var(--gay); }
.sec-ic--cua { background: var(--cua); }
.sec-more { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--accent); }
.sec-more:hover { text-decoration: underline; }
.sec-more .ic { width: 18px; height: 18px; }

/* ---------- Kartu & widget ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.widget { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.widget__h { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.trow li + li { border-top: 1px solid var(--line); }
.trow a { display: grid; gap: 3px; padding: 10px 0; }
.trow a:hover .trow__t { color: var(--accent); }
.trow__t { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.trow__m { font-size: 12px; color: var(--muted); }
.mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; }
.mini + .mini { border-top: 1px solid var(--line); }
.mini__img { width: 96px; height: 68px; object-fit: cover; border-radius: 10px; background: #172033; }
.mini__t { display: grid; gap: 4px; min-width: 0; }
.mini__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 0; }
.mini__meta span:nth-of-type(1) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text-2); }
.mini h3 { font-family: var(--font); font-weight: 600; font-size: 14px; line-height: 1.32; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini:hover h3 { color: var(--accent); }
.minilist { display: grid; }
.minilist .mini:first-child { padding-top: 0; }

/* hero kategori */
.cathero { display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 2.1fr) minmax(250px, 1fr); gap: 14px; margin-bottom: 20px; align-items: stretch; }
.cathero__main { position: relative; min-height: 420px; }
.cathero__main .tile { position: absolute; inset: 0; }
.cathero__minis { padding: 4px 16px; display: grid; align-content: start; }
.cathero__w { min-width: 0; display: flex; }
.cathero__w > .card { flex: 1; }

/* ---------- Strip pasar & skor ---------- */
.mstrip { background: var(--surface); border-bottom: 1px solid var(--line); }
.mstrip__in { overflow-x: auto; scrollbar-width: none; }
.mstrip__list { display: flex; gap: 6px; padding-block: 8px; min-height: 52px; }
.mq { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 10px; white-space: nowrap; font-size: 13.5px; border: 1px solid transparent; }
.mq:hover { background: var(--surface-2); border-color: var(--line); }
.mq__n { font-weight: 600; color: var(--text); }
.mq__p { font-variant-numeric: tabular-nums; color: var(--text-2); }
.mq__c { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mq__c .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.is-up { color: var(--up); } .is-down { color: var(--down); } .is-flat { color: var(--muted); }
[data-skel] { min-height: 52px; background: repeating-linear-gradient(90deg, var(--surface-2) 0 140px, transparent 140px 150px); border-radius: 10px; }
[data-skel].is-ready { background: none; min-height: 0; }

.scores { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 12px 14px; }
.scores__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.scores__chips .seg__b { border: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.scores__chips .seg__b.is-on { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: none; }
.scores__track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; min-height: 84px; }
.match { flex: none; width: 214px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.match__top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.match__live { color: var(--down); display: inline-flex; align-items: center; gap: 5px; }
.match__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.match__row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.match__row span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match__row b { font-variant-numeric: tabular-nums; min-width: 1.2em; text-align: right; }
.match__row.is-win { color: var(--text); } .match__row.is-lose { color: var(--muted); }
.sc-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.sc-list li:first-child { border-top: 0; padding-top: 0; }
.sc-list .match { width: auto; padding: 0; border: 0; background: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* grafik pasar */
.mkt__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mkt__price { font-family: var(--font-d); font-weight: 800; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mkt__chg { font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.mkt__chart { height: 150px; position: relative; }
.mkt__chart svg { width: 100%; height: 100%; overflow: visible; }
.mkt__list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.mkt__list li > span:first-child { font-weight: 600; }
.mkt__list .is-up, .mkt__list .is-down { font-variant-numeric: tabular-nums; font-weight: 600; }

.conv__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.conv__f { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.conv__in { display: flex; gap: 6px; }
.conv select, .conv input, .conv output { height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 0 10px; font-weight: 600; min-width: 0; }
.conv select { flex: 0 0 96px; } .conv input, .conv output { flex: 1; font-variant-numeric: tabular-nums; display: flex; align-items: center; font-size: 16px; }
.conv__rate { font-size: 13px; color: var(--muted); }
.conv { margin-bottom: 20px; }

/* ---------- Artikel ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs li + li::before { content: '/'; margin-inline: 8px; opacity: .6; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.artgrid { display: grid; grid-template-columns: 48px minmax(0, 740px) 340px; grid-template-areas: 'share main side'; gap: 28px 36px; justify-content: center; align-items: start; }
.art { grid-area: main; min-width: 0; }
.share { grid-area: share; position: sticky; top: calc(var(--head-h) + 70px); display: flex; flex-direction: column; gap: 10px; }
.artside { grid-area: side; display: grid; gap: 16px; position: sticky; top: calc(var(--head-h) + 70px); }
.share__b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); transition: background-color .15s, color .15s; }
.share__b:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.share__b.is-done { background: var(--up); color: #fff; border-color: var(--up); }
.art__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.srcchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--text); }
.srcchip:hover { border-color: var(--accent); }
.srcchip .fav { width: 22px; height: 22px; }
.art__read { color: var(--up); font-weight: 600; margin-left: auto; }
.art__title { font-size: clamp(27px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; margin-bottom: 22px; }
.art__fig { margin: 0 0 26px; }
.art__fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); background: #172033; }
.art__fig figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.art__body { font-size: 18px; line-height: 1.75; color: var(--text); }
.art__body p { margin-bottom: 1.15em; max-width: 68ch; text-wrap: pretty; }
.art__body h2 { font-size: 24px; margin: 1.6em 0 .6em; padding-top: 14px; border-top: 3px solid var(--accent); max-width: 22em; }
.art__body blockquote { margin: 1.3em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--text-2); }
.art__body blockquote p { margin: 0; }
.art__body .is-fade { -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent); mask-image: linear-gradient(to bottom, #000 35%, transparent); margin-bottom: 0; padding-bottom: 6px; }
.art__cta { margin-top: -6px; display: grid; justify-items: start; gap: 12px; padding: 4px 0 8px; }
.art__note { font-size: 13px; color: var(--muted); max-width: 60ch; }
.srcbox .widget__h .fav { width: 22px; height: 22px; }
.srcbox .btn { align-self: flex-start; }

/* ---------- Halaman statis ---------- */
.prosewrap { max-width: 820px; }
.prose-head { margin-bottom: 20px; }
.prose-head h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.prose h2 { font-size: 21px; margin: 30px 0 10px; }
.prose p, .prose li { line-height: 1.7; color: var(--text-2); max-width: 68ch; }
.prose p { margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-bottom: 12px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.prose .src-list { columns: 2; column-gap: 28px; }
.form { display: grid; gap: 14px; max-width: 560px; margin-block: 8px 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea { padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 400; font-size: 15px; width: 100%; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.notice.ok { background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); }
.notice.err { background: color-mix(in srgb, var(--down) 14%, transparent); color: var(--down); }

/* ---------- Lain-lain ---------- */
.seo-text { margin-top: 44px; padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.seo-text h2 { font-size: 19px; }
.seo-text p { color: var(--text-2); max-width: 78ch; line-height: 1.65; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.pager__n { font-weight: 600; color: var(--muted); font-size: 14px; }
.feed__list { display: grid; gap: 14px; margin-top: 14px; }
.feed__chunk { display: block; }
.feed__status { min-height: 56px; display: flex; align-items: center; justify-content: center; margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.empty { padding: 56px 20px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.empty h1, .empty h2 { font-size: 24px; }
.empty p { color: var(--text-2); max-width: 46ch; }
.empty__code { font-family: var(--font-d); font-weight: 800; font-size: 88px; line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.empty__links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.ad { position: relative; margin-block: 22px; padding: 22px 12px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-align: center; min-height: 110px; overflow: hidden; }
.ad__label { position: absolute; left: 12px; top: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.ad .adsbygoogle { display: block; min-height: 70px; }
.ad__ph { display: grid; place-items: center; min-height: 80px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: 13px; }
.ad:has(ins[data-ad-status='unfilled']) { display: none; }
.artside .ad { margin-block: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; background: var(--surface); border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 36px 24px; }
.foot__brand p { margin-top: 12px; color: var(--muted); max-width: 34ch; font-size: 14px; }
.foot h2 { font-size: 14px; margin-bottom: 12px; font-family: var(--font); font-weight: 600; letter-spacing: 0; color: var(--text); }
.foot li + li { margin-top: 8px; }
.foot nav a { color: var(--text-2); font-size: 14px; }
.foot nav a:hover { color: var(--accent); text-decoration: underline; }
.legal { padding-block: 16px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- Responsif ---------- */
@media (max-width: 1200px) {
  .artgrid { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: 'main side' 'share side'; gap: 20px 28px; }
  .share { position: static; flex-direction: row; }
  .cathero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cathero__main { grid-column: 1 / -1; grid-row: 1; min-height: 380px; }
}
@media (max-width: 1000px) {
  .grid4, .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { --row: clamp(170px, 28vw, 230px); }
  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); height: auto; }
  .hero > .tile--l { grid-column: 1 / -1; height: clamp(320px, 56vw, 460px); }
  .hero__side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .hero__side .tile { aspect-ratio: 4 / 3; height: auto; }
  .hero .wx-card { grid-column: 1 / -1; }
  .artgrid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'main' 'share' 'side'; }
  .artside { position: static; }
}
@media (max-width: 720px) {
  /* Seluler: bilah atas (logo, cari, cuaca) ikut tergulir; hanya menu yang menempel di atas */
  :root { --head-h: 44px; --nav-h: 44px; }
  .site-header { display: contents; }
  .navwrap { position: sticky; top: 0; z-index: 60; height: var(--nav-h); background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .navwrap .mainnav { height: 100%; align-items: center; }
  .navwrap--sub { top: var(--nav-h); z-index: 59; height: auto; background: var(--bg-2); }
  .prefs { top: 64px; }
  .bar { flex-wrap: wrap; gap: 8px 10px; padding-block: 8px; }
  .brand__name { font-size: 20px; }
  .search { order: 5; flex: 1 0 100%; max-width: none; margin: 0; }
  .wx-chip { margin-left: auto; }
  .mainnav a { padding-inline: 12px; }
  .cathero { grid-template-columns: minmax(0, 1fr); }
  .cathero__main { min-height: 340px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .conv__row { grid-template-columns: 1fr; } .conv__swap { justify-self: center; rotate: 90deg; }
  .prose .src-list { columns: 1; }
  .art__body { font-size: 17px; }
  .prefs { right: 16px; top: 112px; }
}
@media (max-width: 520px) {
  .grid4, .mosaic { grid-template-columns: minmax(0, 1fr); }
  .mosaic { --row: 220px; }
  .mosaic .tile--l, .mosaic .tile--w { grid-column: auto; grid-row: span 1; }
  .mosaic .tile--l { grid-row: span 2; }
  .hero__side { grid-template-columns: 1fr; }
  .tile--l .tile__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.ad__box { display: block; min-height: 70px; overflow: hidden; text-align: center; }
.ad__box > * { max-width: 100%; }

.social { margin-top: 16px; }
.social__t { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.social ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social li + li { margin-top: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: color .15s, border-color .15s, background .15s; }
.social a:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); text-decoration: none; }
.social .ic { width: 20px; height: 20px; }
