:root {
  --paper: #f6f3ec;
  --card: #fffdf8;
  --ink: #1a1a1a;
  --muted: #5f5b53;
  --rule: #d9d3c6;
  --red: #c8102e;
  --red-soft: #fbe9ec;
  --chip: #ece7dc;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.04);
  --c-korupsi: #c8102e;
  --c-lingkungan: #3f7d3a;
  --c-ham: #7a3fb0;
  --c-kebijakan: #b86b00;
  --c-kelalaian: #2f6db5;
  --c-anggaran: #8a6d1d;
  --c-demokrasi: #4b5563;
  --c-layanan: #0f7c86;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141312; --card: #1d1c1a; --ink: #ecebe7; --muted: #a8a39a;
    --rule: #34312c; --red: #ff4d5e; --red-soft: #3a1a1f; --chip: #2a2825;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --paper: #141312; --card: #1d1c1a; --ink: #ecebe7; --muted: #a8a39a;
  --rule: #34312c; --red: #ff4d5e; --red-soft: #3a1a1f; --chip: #2a2825;
  --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { background: var(--red); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .08em; padding: 4px 6px; border-radius: 3px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 18px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
/* On the static About page the language control is a link to the English summary, so it keeps the button's ink colour. */
.nav a.lang { color: var(--ink); }
.lang { border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 999px; padding: 3px 10px; font: 600 12px var(--sans); cursor: pointer; }
@media (max-width: 640px) { .nav a:not(:last-of-type) { display: none; } .brand-name { font-size: 16px; } }

.hero { padding: 56px 0 28px; border-bottom: 1px solid var(--rule); }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--red); margin: 0 0 10px; }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(38px, 7vw, 68px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -.02em; }
.lede { font-family: var(--serif); font-size: clamp(17px, 2.2vw, 20px); max-width: 720px; color: var(--muted); margin: 0 0 28px; }
.counters { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.counter { background: var(--card); padding: 16px; }
.counter b { display: block; font-family: var(--serif); font-size: clamp(24px, 3.6vw, 34px); line-height: 1.1; }
.counter span { font-size: 13px; color: var(--muted); }
.counter.red b { color: var(--red); }
@media (max-width: 720px) { .counters { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.updated { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.section-title { font-family: var(--serif); font-size: 26px; margin: 44px 0 14px; padding-top: 8px; border-top: 3px solid var(--ink); display: inline-block; }

.eras { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
@media (max-width: 820px) { .eras { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.era { background: var(--card); border: 1px solid var(--rule); padding: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; border-radius: 4px; box-shadow: var(--shadow); transition: border-color .15s; }
.era:hover, .era.active { border-color: var(--red); }
.era .era-name { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.era .era-years { font-size: 12px; color: var(--muted); }
.era .era-count { font-family: var(--serif); font-size: 30px; font-weight: 700; margin-top: 6px; }
.era .era-bar { display: flex; height: 6px; margin-top: 8px; border-radius: 3px; overflow: hidden; background: var(--chip); }

.otd { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.otd a { display: block; background: var(--card); border-left: 4px solid var(--red); padding: 12px 14px; text-decoration: none; box-shadow: var(--shadow); }
.otd small { color: var(--muted); display: block; margin-bottom: 4px; }

.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 8px; margin-bottom: 10px; }
@media (max-width: 820px) { .filters { grid-template-columns: 1fr 1fr; } .filters input { grid-column: 1 / -1; } }
.filters input, .filters select { width: 100%; padding: 9px 10px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 4px; font: 14px var(--sans); }
button.ghost { padding: 9px 12px; border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 4px; font: 14px var(--sans); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid var(--rule); background: var(--card); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: 500 13px var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.result-count { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }

.month { margin: 26px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.month::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.card { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--cat, var(--red)); border-radius: 4px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); scroll-margin-top: 72px; }
.card.flash { outline: 2px solid var(--red); outline-offset: 2px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tag { font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; background: var(--chip); color: var(--ink); }
.tag.cat { background: var(--cat); color: #fff; }
.tag.status-divonis, .tag.status-inkracht { background: var(--ink); color: var(--paper); }
.tag.status-tersangka, .tag.status-penuntutan, .tag.status-terdakwa { background: var(--red-soft); color: var(--red); }
.tag.status-berlangsung { background: #fff3d6; color: #8a5a00; }
.tag.ai { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.card h3 { font-family: var(--serif); font-size: 21px; line-height: 1.25; margin: 2px 0 8px; }
.card p.summary { margin: 0 0 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.facts b { color: var(--ink); font-weight: 600; }
.loss { color: var(--red); font-weight: 700; }
details { border-top: 1px solid var(--rule); padding-top: 8px; margin-top: 8px; }
summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.updates { list-style: none; padding: 0; margin: 10px 0 0; border-left: 2px solid var(--rule); }
.updates li { position: relative; padding: 0 0 10px 14px; font-size: 14px; }
.updates li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--cat, var(--red)); }
.updates time { font-size: 12px; color: var(--muted); display: block; }
.sources { margin: 10px 0 0; padding-left: 18px; font-size: 14px; }
.sources a { color: var(--ink); text-underline-offset: 2px; }
.sources small { color: var(--muted); }
.actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.actions button, .actions a { font: 500 13px var(--sans); border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 4px; padding: 6px 10px; cursor: pointer; text-decoration: none; }
.actions button:hover, .actions a:hover { border-color: var(--ink); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); border: 1px dashed var(--rule); border-radius: 4px; }

.stats { overflow-x: auto; }
.stats table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; background: var(--card); }
.stats th, .stats td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.stats th { background: var(--chip); font-weight: 600; }
.stats td.n { text-align: right; font-variant-numeric: tabular-nums; position: relative; }
.stats .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red-soft); z-index: 0; }
.stats td.n span { position: relative; z-index: 1; }

.footer { margin-top: 64px; border-top: 1px solid var(--rule); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(40px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 4px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* about page */
.prose { max-width: 720px; font-family: var(--serif); font-size: 18px; }
.prose h2 { font-size: 24px; margin-top: 36px; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 7px 9px; text-align: left; vertical-align: top; }
.prose th { background: var(--chip); }

/* ---------- v2: daily feed, cases, sources, visuals ---------- */
.nav a.active { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--red); padding-bottom: 2px; }
@media (max-width: 640px) { .nav a:not(:last-of-type) { display: inline; } .nav .hide-sm { display: none !important; } .nav { gap: 12px; } .brand-name { display: none; } }
.small { font-size: 12px; }
.view-head { margin-bottom: 8px; }
.view-head .muted { margin: 0 0 14px; max-width: 680px; }

figure { margin: 0; position: relative; overflow: hidden; background: var(--chip); }
figure img, figure .illo { display: block; width: 100%; height: 100%; object-fit: cover; }
figcaption { position: absolute; right: 0; bottom: 0; max-width: 100%; font-size: 10px; line-height: 1.3; padding: 3px 6px; background: rgba(0,0,0,.55); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
figcaption a { color: #fff; }
.thumb figcaption, .tile-img figcaption { display: none; }

.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 150px 150px; gap: 8px; margin-top: 24px; }
.tile { position: relative; display: block; text-decoration: none; border-radius: 4px; overflow: hidden; }
.tile:first-child { grid-row: span 2; }
.tile:nth-child(4) { grid-column: 2 / span 2; }
.tile-img { position: absolute; inset: 0; }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; color: #fff; font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.25; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.tile:first-child .tile-cap { font-size: 21px; }
.tile-cap .tag { display: table; margin-bottom: 6px; font-family: var(--sans); }
.tile:hover .tile-cap { text-decoration: underline; }
@media (max-width: 720px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 190px 150px 150px; } .tile:first-child { grid-column: 1 / -1; grid-row: auto; } .tile:nth-child(4) { grid-column: auto; } }

.day { margin-top: 26px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 10px; position: sticky; top: 56px; background: var(--paper); z-index: 2; }
.day-head h3 { font-family: var(--serif); font-size: 19px; margin: 0; }
.day-head span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.entry { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.entry-thumb { display: block; }
.thumb { width: 132px; height: 88px; border-radius: 4px; border-bottom: 3px solid var(--cat); }
.entry h4 { font-family: var(--serif); font-size: 18px; line-height: 1.25; margin: 2px 0 4px; }
.entry h4 a { text-decoration: none; }
.entry h4 a:hover { text-decoration: underline; }
.entry p { margin: 0 0 6px; }
@media (max-width: 560px) { .entry { grid-template-columns: 84px 1fr; gap: 10px; } .thumb { width: 84px; height: 64px; } .entry h4 { font-size: 16px; } }
.src-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.src-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; text-decoration: none; border: 1px solid var(--rule); background: var(--card); padding: 3px 9px 3px 4px; border-radius: 999px; }
.src-chip:hover { border-color: var(--ink); }
.fav { width: 16px; height: 16px; border-radius: 3px; flex: none; background: #fff; }
.fav-blank { display: inline-block; background: var(--chip); }
.more { text-align: center; margin: 20px 0; }
.tag.cat { background: var(--cat); color: #fff; }

.group { margin-top: 22px; }
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.group-title i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.group-title span { color: var(--muted); font-weight: 500; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.case { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.case:hover { border-color: var(--cat); transform: translateY(-1px); }
.case-img { aspect-ratio: 16 / 9; border-bottom: 3px solid var(--cat); }
.case-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.case h3 { font-family: var(--serif); font-size: 18px; line-height: 1.25; margin: 4px 0 6px; }
.case p { font-size: 14px; color: var(--muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.case-foot { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }

.outlets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.outlet { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 14px; box-shadow: var(--shadow); }
.outlet header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.outlet header .fav { width: 32px; height: 32px; border-radius: 6px; }
.outlet header div { flex: 1; min-width: 0; }
.outlet h3 { margin: 0; font-family: var(--serif); font-size: 18px; }
.outlet header a { font-size: 12px; color: var(--muted); }
.outlet .count { font-size: 12px; font-weight: 600; background: var(--chip); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.outlet ul { list-style: none; margin: 0; padding: 0; }
.outlet li { padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.outlet li > a { text-underline-offset: 2px; }
.outlet li small { display: block; color: var(--muted); margin-top: 2px; }
.outlet li small a { color: var(--muted); }

.back { display: inline-block; margin: 20px 0 12px; font-size: 14px; color: var(--muted); }
.detail { max-width: 760px; }
.detail-img { aspect-ratio: 21 / 9; border-radius: 4px; border-bottom: 4px solid var(--cat); margin-bottom: 14px; }
.detail h2 { font-family: var(--serif); font-size: clamp(26px, 4.5vw, 38px); line-height: 1.12; margin: 6px 0 10px; }
.detail-summary { font-family: var(--serif); font-size: 19px; color: var(--muted); margin: 0 0 14px; }
dl.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0 0 8px; padding: 12px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; }
dl.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
dl.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }
h3.sub { font-family: var(--serif); font-size: 20px; margin: 28px 0 10px; }
ol.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid var(--rule); }
ol.timeline li { position: relative; padding: 0 0 18px 18px; }
ol.timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--cat); }
ol.timeline time { font-size: 12px; font-weight: 600; color: var(--muted); }
ol.timeline p { margin: 2px 0 6px; }
ul.source-list { list-style: none; margin: 0; padding: 0; }
ul.source-list li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--rule); }
ul.source-list .fav { margin-top: 2px; }
ul.source-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
ul.source-list small a { color: var(--muted); }

/* theme toggle */
.lang.theme { width: 30px; height: 26px; padding: 0; font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
:root[data-theme="dark"] .tag.status-berlangsung { background: #3a2f12; color: #f2c66d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.status-berlangsung { background: #3a2f12; color: #f2c66d; } }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

.fav-letter { display: inline-flex; align-items: center; justify-content: center; color: #fff !important; font: 700 10px/1 var(--sans); }
.outlet header .fav-letter { font-size: 16px; }
:root[data-theme="dark"] .fav-letter { background-blend-mode: normal; }

/* ---------- figures (Angka) ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.kpi { display: block; text-decoration: none; background: var(--red-soft); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 4px; padding: 10px 12px; }
.kpi b { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.15; color: var(--red); }
.kpi small { display: block; font-size: 12px; color: var(--muted); }
.kpi span { font-size: 12px; color: var(--ink); }
.kpi:hover { border-color: var(--red); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0 0 6px; cursor: pointer; }
.num b { font-family: var(--serif); font-weight: 700; color: var(--red); }
.num small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.case-num { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.case-num .num b { font-size: 20px; }
.case-num-lbl { font-size: 12px; color: var(--muted); }
.rank-wrap { position: relative; display: flex; }
.rank-wrap .case { flex: 1; }
.rank { position: absolute; z-index: 1; top: 8px; left: 8px; background: var(--ink); color: var(--paper); font: 700 13px var(--sans); border-radius: 999px; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }
.tag.basis { text-transform: none; letter-spacing: 0; font-weight: 600; }
.tag.basis-putusan { background: #1f5130; color: #fff; }
.tag.basis-audit { background: #275d8f; color: #fff; }
.tag.basis-resmi { background: var(--chip); color: var(--ink); }
.tag.basis-dugaan { background: #fff3d6; color: #8a5a00; }
.tag.basis-laporan { background: transparent; border: 1px solid var(--rule); color: var(--muted); }
.figures { border: 1px solid var(--rule); border-radius: 4px; background: var(--card); }
.figure-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(160px, 1.2fr) 2fr; gap: 6px 14px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--rule); }
.figure-row:first-child { border-top: 0; }
.fig-label { font-size: 13px; font-weight: 600; }
.fig-value b { font-size: 20px; }
.fig-value small { display: block; margin-left: 0; }
.fig-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fig-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.fig-alts { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; }
.fig-alts summary { font-size: 12px; }
.fig-alts ul { list-style: none; padding: 6px 0 0; margin: 0; }
.fig-alts li { padding: 6px 0; border-top: 1px dashed var(--rule); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.fig-alts .fig-note { flex-basis: 100%; }
@media (max-width: 640px) { .figure-row { grid-template-columns: 1fr; } }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi-card { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px; box-shadow: var(--shadow); }
.kpi-card span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.kpi-card b { display: block; font-family: var(--serif); font-size: 26px; color: var(--red); line-height: 1.2; margin: 4px 0 2px; }
.kpi-card small { display: block; font-size: 13px; color: var(--muted); }
.board { overflow-x: auto; margin-top: 10px; }
.board-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 14px; min-width: 640px; }
.board-table th, .board-table td { border-bottom: 1px solid var(--rule); padding: 9px 10px; text-align: left; vertical-align: top; }
.board-table th { background: var(--chip); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.board-table td.n { font-weight: 700; font-family: var(--serif); font-size: 18px; width: 40px; }
.board-table td a { text-underline-offset: 2px; }
.board-table .num { white-space: nowrap; }
.board-table .num small { display: block; margin-left: 0; }
:root[data-theme="dark"] .tag.basis-dugaan { background: #3a2f12; color: #f2c66d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.basis-dugaan { background: #3a2f12; color: #f2c66d; } }
.kpi-card.wide { grid-column: span 2; }
@media (max-width: 520px) { .kpi-card.wide { grid-column: auto; } }
.fig-value.num b { font-size: 20px; }

/* ---------- map ---------- */
.map { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 8px; margin: 6px 0 14px; }
.map svg { display: block; width: 100%; height: auto; }
.map .nbr { fill: var(--chip); opacity: .55; }
.map .land { fill: var(--chip); stroke: var(--rule); stroke-width: .8; }
.map .dot circle { fill: var(--red); fill-opacity: .78; stroke: var(--card); stroke-width: 1.5; transition: fill-opacity .15s; }
.map .dot.zero circle { fill: var(--muted); fill-opacity: .45; }
.map .dot:hover circle { fill-opacity: 1; }
.map .dot.sel circle { fill-opacity: 1; stroke: var(--ink); stroke-width: 3; }
.map .labels text { fill: #fff; font: 700 13px var(--sans); text-anchor: middle; pointer-events: none; }
.map-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .map-cols { grid-template-columns: 1fr; } }
.prov-list { display: flex; flex-direction: column; gap: 2px; }
.prow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; text-decoration: none; padding: 6px 8px; border-radius: 4px; font-size: 14px; }
.prow:hover { background: var(--chip); }
.prow.on { background: var(--ink); color: var(--paper); }
.prow.nat { margin-top: 6px; border-top: 1px dashed var(--rule); border-radius: 0; }
.prow .pname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbar { height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.prow.on .pbar { background: rgba(127,127,127,.35); }
.pbar i { display: block; height: 100%; background: var(--red); }
.pval { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; white-space: nowrap; }
.prov-panel { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; }
.prov-name { font-family: var(--serif); font-size: 22px; margin: 0 0 2px; }
.prov-cases { list-style: none; margin: 10px 0 0; padding: 0; }
.prov-cases li { border-left: 3px solid var(--cat); padding: 6px 0 8px 10px; margin-bottom: 6px; }
.prov-cases li > a { font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; }
.prov-cases li > a:hover { text-decoration: underline; }
.prov-cases .meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prov-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.prov-links a { font-size: 12px; border: 1px solid var(--rule); border-radius: 999px; padding: 1px 8px; text-decoration: none; }
.prov-links a:hover { border-color: var(--ink); }

/* ---------- share ---------- */
.actions .primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.actions .primary:hover { filter: brightness(1.08); border-color: var(--red); }
.share-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); padding: 14px 16px 16px; }
.share-dlg::backdrop { background: rgba(0,0,0,.6); }
.share-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.share-head h3 { font-family: var(--serif); margin: 0; font-size: 20px; }
.share-head .ghost { font: 500 13px var(--sans); border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 4px; padding: 6px 10px; cursor: pointer; }
.share-stage { display: flex; justify-content: center; background: var(--chip); border-radius: 4px; padding: 10px; min-height: 200px; }
.share-img { display: block; max-width: 100%; height: auto; max-height: 58vh; border-radius: 3px; box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.share-img:not([src]) { visibility: hidden; }
@media (max-width: 440px) { .nav { gap: 9px; font-size: 13px; } .lang { padding: 3px 7px; } .lang.theme { width: 26px; } .topbar-inner { gap: 8px; } }
@media (max-width: 360px) { .nav { gap: 7px; font-size: 12.5px; } }
.actions.top { margin: 0 0 6px; }
.status-tally { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 4px; }
.tally { border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 4px; padding: 3px 8px; font: 13px var(--sans); cursor: pointer; }
.tally b { font-variant-numeric: tabular-nums; }
.tally.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
