/* generated by npm run stamp from fonts.css and style.css: edit those, not this file */
/* Self-hosted fonts (SIL Open Font License), so visitors' browsers never contact Google.
   One variable-weight file per typeface (latin subset): every weight from one request. */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/source-serif-4-var-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-var-latin.woff2) format("woff2"); }
: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; }


.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 { display: block; background: var(--card); padding: 16px; color: inherit; text-decoration: none; position: relative; }
a.counter:hover, a.counter:focus-visible { background: var(--bg-soft, var(--card)); box-shadow: inset 0 -2px 0 var(--red); }
a.counter::after { content: "\2192"; position: absolute; top: 14px; right: 14px; color: var(--muted); opacity: 0; transition: opacity .15s; }
a.counter:hover::after, a.counter:focus-visible::after { opacity: 1; }
@media (hover: none) { a.counter::after { opacity: .5; } }
.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; }

.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 h1, .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: 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); }

/* ---------- money boxes ---------- */
.money-panel { background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--red); border-radius: 4px; padding: 14px 16px; margin: 14px 0 8px; }
.mp-head { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .05em; }
.mp-head .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.mp-big { font-family: var(--serif); font-weight: 900; font-size: clamp(32px, 6vw, 46px); line-height: 1.05; color: var(--red); margin: 6px 0 2px; }
.mp-sub { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.mp-none { color: var(--muted); margin: 6px 0; }
.mp-econ { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.mp-back { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.mp-back-row { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.mp-back-row b { font-family: var(--serif); font-size: 20px; }
.mp-ordered { margin-top: 10px; }
.mp-bar { height: 10px; background: var(--chip); border-radius: 5px; overflow: hidden; margin: 6px 0 4px; }
.mp-bar i { display: block; height: 100%; background: #2f8f5b; }
.tag.plain.proven { background: #e3f3ea; color: #1f6b43; }
.tag.plain.alleged { background: #fff3d6; color: #8a5a00; }
.tag.pre { background: transparent; border: 1px solid var(--rule); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.other-money { margin: 14px 0; border: 1px solid var(--rule); border-radius: 4px; padding: 8px 12px; background: var(--card); }
.other-money summary { cursor: pointer; font-weight: 600; }
.case-num.lost .num b { color: var(--red); }
.kpi.lead { grid-column: span 2; }
.kpi.lead b { font-size: 28px; }
@media (max-width: 520px) { .kpi.lead { grid-column: auto; } }
.kpi-card.lost b { color: var(--red); }
.split-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--chip); margin: 10px 0 6px; }
.split-bar i { display: block; height: 100%; }
.split-bar .p, .split-legend i.p { background: #2f8f5b; }
.split-bar .a, .split-legend i.a { background: #d9a400; }
.split-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.kpi-back { margin: 10px 0 4px; }
.kpi-back b { color: #2f8f5b; font-family: var(--serif); font-size: 20px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.plain.proven { background: #173526; color: #7fd3a5; } :root:not([data-theme="light"]) .tag.plain.alleged { background: #3a2f12; color: #f2c66d; } }
:root[data-theme="dark"] .tag.plain.proven { background: #173526; color: #7fd3a5; }
:root[data-theme="dark"] .tag.plain.alleged { background: #3a2f12; color: #f2c66d; }
.kpi-grid { align-items: start; }
.kpi-card .split-legend span, .kpi-card .kpi-back span { text-transform: none; letter-spacing: 0; font-size: 13px; display: inline; color: var(--ink); }
.kpi-card .kpi-back b { color: #2f8f5b; font-size: 22px; display: inline; }
.kpi-card .kpi-back .muted { color: var(--muted); }

/* correction form (about#koreksi) */
.correction{display:grid;gap:6px;max-width:640px;margin:12px 0 24px}
.correction label{font-size:.85rem;font-weight:600;margin-top:6px}
.correction input,.correction select,.correction textarea{font:inherit;padding:10px 12px;border:1px solid var(--line,#ccc);border-radius:6px;background:var(--bg,#fff);color:inherit;min-height:44px;width:100%;box-sizing:border-box}
.correction button{justify-self:start;min-height:44px;padding:0 18px;margin-top:8px}
.correction .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.correction .ok{color:#2f7d32}.correction .bad{color:#b3261e}

/* touch targets and narrow phones (review B04): taller hit areas without widening the header */
.nav a { padding-block: 12px; }
.lang { min-height: 36px; }
.lang.theme { width: 36px; height: 36px; }
@media (max-width: 440px) { .lang.theme { width: 34px; height: 34px; } }
}

/* every money figure on a case (review R22) */
.all-money { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 10px; }
.all-money summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.am-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.am-list li { padding: 8px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.am-list li.am-ref .am-val b { color: var(--red); }
.am-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.am-key { font-size: .85rem; color: var(--muted); }
.am-val { font-size: 1.05rem; overflow-wrap: anywhere; }
.am-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
/* public correction log on a case (review R20) */
.corrections { border-left: 3px solid var(--red); padding: 4px 12px; margin: 12px 0; }
.corrections ul { margin: 4px 0 0; padding-left: 18px; }
.corrections time { color: var(--muted); font-size: .85rem; margin-right: 6px; }

/* ---- phone layout (review B02 B08 B09 D03 D04 D05 D06) ---- */
.more-filters { margin-bottom: 10px; }
.more-filters > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: 600 14px var(--sans); list-style: none; }
.more-filters > summary::-webkit-details-marker { display: none; }
.more-filters > summary::before { content: "▸"; transition: transform .15s; }
.more-filters[open] > summary::before { transform: rotate(90deg); }
.f-active { color: var(--red); font-weight: 600; }
.filters-2 { grid-template-columns: 1fr 1fr; max-width: 520px; }
.jump-latest { display: none; }
@media (max-width: 640px) {
  .jump-latest { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 12px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; font: 600 14px var(--sans); cursor: pointer; }
  /* returning readers reach the record fast: the photo mosaic and long figure tiles stay on wider screens and in Angka */
  .mosaic { display: none; }
  #hero .kpis { display: none; }
  .detail-img { aspect-ratio: 3 / 1; }
  /* ranking: stacked rows with the full amount, basis and source together, no sideways scrolling */
  .board-table, .board-table tbody, .board-table tr, .board-table td { display: block; width: 100%; }
  .board-table { min-width: 0; background: transparent; }
  .board-table thead { display: none; }
  .board-table tr { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--rule); }
  .board-table td { border: 0; padding: 2px 0; min-width: 0; overflow-wrap: anywhere; }
  .board-table td.n { position: absolute; left: 0; top: 12px; width: 28px; font-weight: 700; color: var(--muted); }
  .board-table td.b-case a { font-weight: 600; }
  .board-table td[data-label]::before { content: attr(data-label) ": "; font-size: .78rem; color: var(--muted); margin-right: 4px; }
  .board-table td.b-val .num { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
}

/* phone money panel on the home page: money lost is the headline (desktop uses the figure tiles) */
.money-hero { display: none; }
@media (max-width: 640px) {
  .money-hero:not([hidden]) { display: grid; gap: 6px; margin: 4px 0 14px; padding: 14px 14px 12px; text-decoration: none; color: var(--ink);
    background: var(--red-soft); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 4px; }
  .mh-label { font: 600 12px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .mh-num { font-family: var(--serif); font-size: 38px; line-height: 1.05; color: var(--red); overflow-wrap: anywhere; }
  .mh-sub { font-size: 13px; color: var(--muted); }
  .mh-bar { display: block; height: 8px; border-radius: 999px; background: #d9a400; overflow: hidden; margin-top: 4px; }
  .mh-bar i { display: block; height: 100%; background: #2e7d4f; }
  .mh-split { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
  .mh-p::before, .mh-a::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
  .mh-p::before { background: #2e7d4f; } .mh-a::before { background: #d9a400; }
  .mh-back { font-size: 13px; border-top: 1px solid var(--rule); padding-top: 8px; margin-top: 2px; }
  .mh-back b { font-family: var(--serif); font-size: 17px; color: #2e7d4f; }
  .mh-more { font: 600 13px var(--sans); color: var(--red); min-height: 24px; }
}

/* the single, quiet AI note on a case page */
.ai-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.ai-note a { color: inherit; }

/* ---- header: one row on wide screens; two rows on phones (logo + Tentang/theme/language, then the tabs) ---- */
.topbar-inner { gap: 16px; }
.nav.tabs { margin-left: auto; }
.nav a.active { padding-bottom: 12px; } /* same box as the other tabs, so the active one does not sit lower */
.nav.tools { gap: 10px; }
.about-link { color: var(--muted); text-decoration: none; }
.about-link.active, .about-link:hover { color: var(--ink); }
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 8px; row-gap: 2px; }
  .brand-name { display: none; }
  .nav.tools { margin-left: auto; gap: 8px; font-size: 14px; }
  .about-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }
  .lang { min-height: 36px; padding: 0 10px; }
  .lang.theme { width: 36px; height: 36px; }
  .nav.tabs { order: 3; flex: 1 0 100%; margin: 0; justify-content: space-between; gap: 0; font-size: 15px; }
  .nav.tabs a { flex: 1 1 0; text-align: center; padding-block: 12px 10px; min-height: 44px; box-sizing: border-box; }
  .nav.tabs a.active { box-shadow: inset 0 -3px 0 var(--red); padding-bottom: 10px; }
}
@media (max-width: 360px) { .nav.tabs { font-size: 14px; } }

/* ---------- loading placeholders (html.is-loading until the archive arrives) ---------- */
.sk-wrap { display: grid; gap: 14px; }
.sk-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sk-counter { display: grid; gap: 8px; }
.sk-num { height: 30px; width: 55%; }
html.load-failed .sk-wrap, html.load-failed .sk-counter { display: none; }
html.load-failed .counters:empty, html.load-failed .counters:not(:has(:not(.sk-counter))) { display: none; }
.sk-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--rule); border-radius: 4px; }
.sk { display: block; border-radius: 4px; background: var(--rule); position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); animation: sk-shine 1.4s ease-in-out infinite; }
@keyframes sk-shine { to { transform: translateX(100%); } }
.sk-day { height: 22px; width: 40%; margin-top: 6px; }
.sk-title { height: 34px; width: 70%; }
.sk-thumb { height: 150px; }
.sk-line { height: 14px; }
.sk-row { height: 44px; }
.sk-line.w80 { width: 80%; } .sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; }
.loading-msg { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.loading-msg::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.1em;
  border: 2px solid var(--rule); border-top-color: currentColor; border-radius: 50%; animation: sk-spin .8s linear infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }
html:not(.is-loading) .loading-msg { display: none; }
/* nothing to page through or jump to yet */
html.is-loading #moreDays, html.is-loading #jumpLatest, html.load-failed #moreDays, html.load-failed #jumpLatest { display: none; }
.load-error p { margin: 0 0 12px; }
@media (max-width: 640px) { .sk-thumb { height: 120px; } }
@media (prefers-reduced-motion: reduce) { .sk::after, .loading-msg::before { animation: none; } }
html.is-loading .mosaic:empty { background: var(--rule); border-radius: 4px; opacity: .55; }
#daily { scroll-margin-top: 72px; }

/* ---- six tabs: a little tighter on phones ---- */
@media (max-width: 640px) { .nav.tabs { font-size: 14px; } .nav.tabs a { padding-inline: 0; } }
@media (max-width: 380px) { .nav.tabs { font-size: 13px; } }

/* ---- Pantau: sub navigation, panels, clocks ---- */
.pantau-nav { margin: 18px 0 4px; }
.pantau-nav a.chip { text-decoration: none; }
.chip-label { align-self: center; margin-right: 2px; }
.notice { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--red); padding: 10px 14px; border-radius: 4px; font-size: 14px; color: var(--muted); max-width: 760px; }
h3.sub + .stats, .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.stat span { font-size: 12px; color: var(--muted); }

/* home panels */
.home-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 28px; }
.home-panels:empty { display: none; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.panel-head h2, .panel-head h3 { font-family: var(--serif); font-size: 19px; margin: 0; }
.panel-head a { font-size: 13px; color: var(--red); }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { padding: 9px 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; }
.panel-list li > a { flex: 1 0 100%; font-family: var(--serif); font-weight: 600; text-decoration: none; line-height: 1.3; }
.panel-list li > a:hover { text-decoration: underline; }
.panel-list li > .small { flex: 1 0 100%; }
.pdays { font-family: var(--serif); font-size: 20px; color: var(--red); }
.pyear { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }

/* case clock */
.clock { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px; margin: 12px 0; }
.clock-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.clock-cell b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--red); }
.clock-cell span { display: block; font-size: 13px; line-height: 1.3; }
.clock-cell small { color: var(--muted); font-size: 12px; }
.journey { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 8px; }
.journey ol { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.journey li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.journey .gap { font-size: 12px; color: var(--muted); padding: 0 4px; border-bottom: 1px dashed var(--muted); }
.journey li:not(:first-child)::before { content: "→"; color: var(--muted); margin-right: 2px; }
.journey li.now .small { font-style: italic; }
.clock > p.small { margin: 8px 0 0; }

/* forgotten */
.quiet-list { display: grid; gap: 12px; }
.quiet { display: grid; grid-template-columns: 112px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--cat, var(--red)); border-radius: 4px; padding: 14px 16px; text-decoration: none; box-shadow: var(--shadow); }
.quiet:hover { border-color: var(--ink); border-left-color: var(--cat, var(--red)); }
.quiet-days b { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--red); }
.quiet-days span { font-size: 12px; color: var(--muted); }
.quiet-body h3 { font-family: var(--serif); font-size: 19px; line-height: 1.25; margin: 2px 0 4px; }
.quiet-body p { margin: 4px 0 0; }
@media (max-width: 560px) { .quiet { grid-template-columns: 1fr; gap: 6px; } .quiet-days b { display: inline; font-size: 34px; margin-right: 6px; } }

/* week */
.week-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; margin: 10px 0 4px; }
.week-nav a.chip { text-decoration: none; }
.week-title { font-family: var(--serif); font-size: 22px; margin: 14px 0 0; }
.week-entry { grid-template-columns: 1fr; }

/* report card */
.stage-bar { display: flex; height: 22px; border-radius: 4px; overflow: hidden; border: 1px solid var(--rule); margin: 10px 0 8px; }
.stage-bar .seg { height: 100%; min-width: 3px; }
.stage-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 14px; padding: 0; font-size: 13px; }
.stage-legend .seg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.seg-dugaan { background: #bdb6a6; } .seg-tersangka { background: #e8a33d; } .seg-penuntutan { background: #d9731f; } .seg-terdakwa { background: #c8102e; }
.seg-divonis { background: #5b2a86; } .seg-inkracht { background: #1a1a1a; } .seg-bebas { background: #2f7d4f; }
:root[data-theme="dark"] .seg-inkracht { background: #ecebe7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg-inkracht { background: #ecebe7; } }
.recovery { margin-top: 8px; }
.rec-big { font-family: var(--serif); font-size: 24px; line-height: 1.25; margin: 6px 0 8px; max-width: 760px; }
.rec-table { margin-top: 12px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); }
.rec-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 150px; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--rule); align-items: center; font-size: 14px; }
.rec-row:first-child { border-top: 0; }
.rec-row.head { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.rec-row a { font-family: var(--serif); font-weight: 600; }
.rec-row small { display: block; }
.mini-bar { display: block; height: 6px; background: var(--chip); border-radius: 3px; margin-top: 3px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: #2f7d4f; }
@media (max-width: 600px) { .rec-row { grid-template-columns: 1fr 1fr; } .rec-row > span:first-child { grid-column: 1 / -1; } .rec-row.head > span:first-child { display: none; } }
.fix-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fix-cols h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.fix-list { list-style: none; margin: 0; padding: 0; }
.fix-list li { padding: 7px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.fix-list a { font-family: var(--serif); font-weight: 600; }

/* institutions */
.body-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 20px; }
.body { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; text-decoration: none; }
.body:hover { border-color: var(--ink); }
.body b { font-family: var(--serif); font-size: 17px; }
.status-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.qchart { display: flex; align-items: flex-end; gap: 6px; height: 112px; padding: 6px 0 0; }
.qcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; }
.qcol i { display: block; width: 100%; max-width: 34px; background: var(--red); border-radius: 2px 2px 0 0; }
.qn { font-size: 11px; color: var(--muted); height: 14px; }
.ql { font-size: 10px; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .ql { font-size: 9px; } }

/* ===================== Harian: each item carries its own history (Oct 2026) ===================== */
.tl { list-style: none; margin: 4px 0 0; padding: 0 0 0 18px; position: relative; }
.tl::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--rule); }
.tl li { position: relative; }
.tl li::before { content: ""; position: absolute; left: -18px; top: 7px; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; background: var(--paper); }
.tl-now::before { background: var(--cat, var(--red)) !important; box-shadow: 0 0 0 3px var(--paper); }
.tl-now p { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.tl-now + .tl-now { margin-top: 8px; }
.tl-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.tl-label::before { display: none; }
.tl-past { display: grid; grid-template-columns: 64px 1fr; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--muted); padding: 2px 0; }
.tl-past::before { border: 2px solid var(--muted); top: 6px !important; }
.tl-past time { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-past span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-more { display: inline-flex; align-items: center; min-height: 32px; margin: 4px 0 0 18px; font-size: 14px; font-weight: 600; color: var(--red); text-decoration: none; }
.tl-more:hover, .tl-more:focus-visible { text-decoration: underline; }
.tag.age { background: transparent; border: 1px solid var(--rule); color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 600; }
.tag.fresh { background: var(--ink); color: var(--paper); }
@media (max-width: 560px) { .tl-past { grid-template-columns: 54px 1fr; font-size: 13.5px; } .tl-now p { font-size: 15.5px; } }

/* ===================== accessibility and UX pass (Oct 2026) ===================== */
/* 1. contrast: badge text at least 12px; the one category colour below 4.5:1 on white is darkened */
:root { --c-kebijakan: #965800; }
.tag { font-size: 12px; }
/* 2. tap targets: at least 32px for chips and source links (WCAG 2.5.8 asks 24px) */
.chip, .src-chip, .tally, .pantau-nav a.chip { min-height: 32px; box-sizing: border-box; }
.src-chip { padding-block: 5px; }
.footer a, .crumbs a { display: inline-block; padding-block: 6px; }
/* 3. a heading for every view, read by screen readers and search engines, not shown */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 9. anchors and focused elements land below the sticky bars, and day headers are solid */
html { scroll-padding-top: 120px; }
.day-head { background: var(--paper); z-index: 5; }
/* 6. phone tabs: one row that scrolls sideways when it does not fit, with a fade showing there is more */
@media (max-width: 640px) {
  .nav.tabs { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; gap: 4px; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .nav.tabs.at-end { -webkit-mask-image: none; mask-image: none; }
  .nav.tabs::-webkit-scrollbar { display: none; }
  .nav.tabs a { flex: 0 0 auto; padding-inline: 12px; scroll-snap-align: start; }
  .nav.tabs, .nav.tabs a { font-size: 15px; }
}
/* 7. phones: a shorter hero so the first day's news comes sooner */
@media (max-width: 640px) {
  .hero h1 { font-size: 34px; margin-bottom: 8px; }
  .hero .lede { font-size: 16px; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .counter b { font-size: 24px; }
  .counter { padding: 10px 12px; }
}
/* 8. search from every tab */
.search-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.search-btn svg { width: 17px; height: 17px; }
.gsearch { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, #000 45%, transparent); display: flex; justify-content: center; align-items: flex-start; padding: 70px 16px 16px; }
.gsearch[hidden] { display: none; }
.gsearch-box { width: min(640px, 100%); background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.35); overflow: hidden; }
.gsearch-box input { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); font: 17px var(--sans); padding: 16px; outline: none; }
.gsearch-list { list-style: none; margin: 0; padding: 6px 0; max-height: min(60vh, 520px); overflow: auto; }
.gsearch-list a { display: block; padding: 10px 16px; text-decoration: none; color: var(--ink); }
.gsearch-list a:hover, .gsearch-list a[aria-selected="true"] { background: var(--card); }
.gsearch-list small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.gsearch-hint { padding: 10px 16px; color: var(--muted); font-size: 13px; margin: 0; }
/* sticky day headers sit right under the header, whatever its height (two rows on phones); set by ui.js */
.day-head { top: var(--topbar-h, 56px); }
.tl:not(:has(.tl-past))::before { display: none; }
/* phones: the photo moves beside the title, so the history gets the full width */
@media (max-width: 560px) {
  .entry { display: block; }
  .entry::after { content: ""; display: table; clear: both; }
  .entry-thumb { float: right; width: 76px; margin: 2px 0 6px 10px; }
  .entry-thumb .thumb { width: 76px; height: 58px; }
  .entry .tl { clear: right; }
  .tl-more { margin-left: 18px; }
}
@media (max-width: 560px) { .day-head h3 { font-size: 18px; } }
/* headings promoted one level (one h1 per view, no skipped levels); keep their old look */
h2.sub { font-family: var(--serif); font-size: 20px; margin: 28px 0 10px; }
h2.sub + .stats { margin-top: 12px; }
.outlet h2 { margin: 0; font-family: var(--serif); font-size: 18px; }
.quiet-body h2 { font-family: var(--serif); font-size: 19px; line-height: 1.25; margin: 2px 0 4px; }
h2.group-title, h2.prov-name, h2.week-title { font-weight: 700; }
h1.section-title { font-size: 26px; font-weight: 700; }
/* contrast fixes found by the scan */
.mh-back b { color: #1f6b43; }
.brand-mark, .actions .primary, button.primary, .btn.red { background: #c8102e; border-color: #c8102e; }
.correction input, .correction select, .correction textarea { background: var(--card); color: var(--ink); border-color: var(--rule); }
/* more tap targets */
a.back, .panel-head a, .toc a, details > summary, .footer a { display: inline-flex; align-items: center; min-height: 32px; }
.facts a, .source-list a.small, .outlet a { display: inline-block; padding-block: 4px; }
.filters input[type="checkbox"], input[type="checkbox"] { width: 20px; height: 20px; }
.fix-cols h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--sans); }
.correction button.primary, .actions .primary { color: #fff; }
:root[data-theme="dark"] .mh-back b { color: #7fd3a5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mh-back b { color: #7fd3a5; } }
a.small[target="_blank"] { display: inline-block; padding-block: 4px; }
.footer a { padding-inline: 2px; }
input[type="checkbox"] { width: 24px; height: 24px; }
/* 7 (cont.). phones: news comes sooner. Home panels show one item each (the link opens the rest);
   category filters become one row that scrolls sideways */
@media (max-width: 640px) {
  .home-panels { gap: 10px; margin-top: 18px; }
  .panel-list > li:nth-child(n+2) { display: none; }
  #view-harian .section-title { margin-top: 28px; }
  #view-harian .view-head p, #view-harian .section-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #dailyCats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
  #dailyCats::-webkit-scrollbar { display: none; }
  #dailyCats .chip { flex: 0 0 auto; }
}
/* no jumping while the archive loads (layout shift): the phone money panel keeps its place */
@media (max-width: 640px) {
  .mh-sk { display: none; }
  html.is-loading .mh-sk { display: block; min-height: calc(252px + max(0px, 360px - 100vw) * 2.4); margin: 4px 0 14px; border-radius: 4px; background: var(--rule); opacity: .55; }
}
.mh-sk { display: none; }
@media (max-width: 640px) { html.is-loading .mh-sk { display: block; } }
/* the footer stays below the fold while a view renders, so it does not jump */
main { min-height: 100vh; }
circle.hit { fill: transparent !important; stroke: none !important; }
/* Harian: fewer badges (category, "Kasus baru", a status only on the day it changed); the day count is quiet text */
.meta .meta-note { font-size: 12.5px; color: var(--muted); font-weight: 500; align-self: center; }
/* reader tips (case page) and the watcher's last look (Terlupakan) */
.tip-box { margin: 18px 0 6px; font-size: 14px; }
.tip-box > summary { color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; min-height: 32px; list-style: none; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.tip-box > summary::-webkit-details-marker { display: none; }
.tip-box[open] { padding: 6px 16px 16px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.tip-box[open] > summary { margin-bottom: 4px; text-decoration: none; font-weight: 600; }
.tip-box[open] > summary { color: var(--ink); }
.tip-form { display: grid; gap: 8px; margin-top: 10px; }
.tip-form label { font-weight: 600; font-size: 14px; }
.tip-form input[type="url"], .tip-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: var(--ink); min-height: 44px; box-sizing: border-box; width: 100%; }
.tip-form details summary { font-size: 14px; color: var(--muted); }
.tip-form button { justify-self: start; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 0; color: #fff; background: #c8102e; font-weight: 600; cursor: pointer; }
.tip-form button:disabled { opacity: .6; }
.tip-status.ok { color: #1f6b43; } .tip-status.err { color: var(--red); }
:root[data-theme="dark"] .tip-status.ok { color: #7fd3a5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tip-status.ok { color: #7fd3a5; } }
.tip-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tip-credit { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; font-style: italic; }
.quiet-check { color: var(--muted); margin-top: 6px; }
