:root {
  --bg: #F6F8FB; --surface: #FFFFFF; --ink: #12304D; --muted: #4A5B6D; --line: #D6DFE9;
  --accent: #1F4E79; --accent-soft: #E3ECF5; --amber: #9A6408; --amber-soft: #FBF0DC;
  --f-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --arc1: #163A5F; --arc2: #1F4E79; --arc3: #2C6AA0; --arc4: #3F86C2; --arc5: #5E9FD4;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E1B29; --surface: #172C44; --ink: #E6EDF5; --muted: #A6B8CB; --line: #274563;
  --accent: #8DBDEB; --accent-soft: #1D3753; --amber: #EBAE52; --amber-soft: #3A2E17; color-scheme: dark;
  --arc1: #FFFFFF; --arc2: #DCEAF6; --arc3: #B5D3EE; --arc4: #8CBBE3; --arc5: #64A2D6; } }
:root[data-theme="dark"] {
  --bg: #0E1B29; --surface: #172C44; --ink: #E6EDF5; --muted: #A6B8CB; --line: #274563;
  --accent: #8DBDEB; --accent-soft: #1D3753; --amber: #EBAE52; --amber-soft: #3A2E17; color-scheme: dark;
  --arc1: #FFFFFF; --arc2: #DCEAF6; --arc3: #B5D3EE; --arc4: #8CBBE3; --arc5: #64A2D6; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .home { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { height: 40px; width: auto; display: block; }
.logo .a1 { stroke: var(--arc1); } .logo .a2 { stroke: var(--arc2); } .logo .a3 { stroke: var(--arc3); } .logo .a4 { stroke: var(--arc4); } .logo .a5 { stroke: var(--arc5); }
.logo .gap { stroke: var(--surface); } .logo .tail { stroke: #E9A23B; } .logo .wm { fill: var(--ink); } .logo .tg { fill: var(--muted); }
.topbar nav { margin-left: auto; display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.topbar nav a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.topbar nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 #E9A23B; }
.ver { font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--amber); background: var(--amber-soft); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.layout { max-width: 1180px; margin: 0 auto; padding: 28px 16px 64px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.toc { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow: auto; font-size: 14px; }
.toc h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.toc li a { display: grid; grid-template-columns: 26px 1fr; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); line-height: 1.35; }
.toc li a span { font-family: var(--f-mono); font-size: 12px; color: var(--muted); padding-top: 1px; }
.toc li a:hover { background: var(--accent-soft); }
.toc li a[aria-current="page"] { background: var(--accent); color: var(--surface); }
.toc li a[aria-current="page"] span { color: var(--surface); opacity: .8; }
.toc .extra { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
details.mtoc { display: none; }
article { min-width: 0; max-width: 78ch; }
article h1 { font-size: clamp(28px, 4.5vw, 38px); line-height: 1.15; font-weight: 800; margin: 0 0 6px; text-wrap: balance; }
article h2 { font-size: 22px; line-height: 1.3; font-weight: 800; margin: 36px 0 10px; }
article h1 + p.meta { margin-top: 0; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; color: var(--amber); margin: 0 0 6px; }
p.meta { color: var(--muted); font-size: 14px; }
article p, article li { max-width: 72ch; }
article li { margin: 4px 0; }
article strong { font-weight: 700; }
.tbl { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 14.5px; line-height: 1.5; }
.tbl th { text-align: left; background: var(--accent-soft); color: var(--ink); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:first-child td { border-top: 0; }
.butir td:first-child { white-space: nowrap; font-family: var(--f-mono); font-size: 13px; }
figure { margin: 20px 0; }
figure img, .pic img { max-width: 100%; height: auto; display: block; background: #FFFFFF; border-radius: 10px; border: 1px solid var(--line); padding: 12px; }
.pic img { max-height: 120px; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.pager a { display: block; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.35; }
.pager a small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-bottom: 2px; }
.pager .next { text-align: right; grid-column: 2; }
.cards { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cards a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--accent); }
.cards b { display: block; line-height: 1.35; }
.cards span.n { font-family: var(--f-mono); font-size: 12px; color: var(--amber); }
.cards small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 4px; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; border-radius: 99px; padding: 8px 16px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); cursor: pointer; }
.btn.pri { background: var(--accent); color: var(--surface); }
.note { background: var(--amber-soft); border-radius: 10px; padding: 12px 16px; font-size: 14.5px; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.jump a { font-family: var(--f-mono); font-size: 13px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; }
footer.site { border-top: 1px solid var(--line); background: var(--surface); font-size: 13.5px; color: var(--muted); }
footer.site .in { max-width: 1180px; margin: 0 auto; padding: 18px 16px 28px; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
footer.site a { color: var(--muted); }
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .toc { display: none; }
  details.mtoc { display: block; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
  details.mtoc summary { font-weight: 700; cursor: pointer; }
  details.mtoc ol { padding-left: 22px; margin: 8px 0 4px; }
  details.mtoc li { margin: 4px 0; }
  .topbar nav { margin-left: 0; width: 100%; }
}
@media print {
  .topbar, .toc, details.mtoc, .pager, .dl, footer.site .links { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .layout { display: block; padding: 0; }
  article { max-width: none; }
  .tbl { border: 0; overflow: visible; }
  .tbl th { background: #eee; }
}

/* tombol tema terang/gelap, sama dengan situs utama (tema.js) */
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0; }
.theme-toggle:hover { background: var(--accent-soft); }
.theme-toggle:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}
.topbar .theme-toggle { margin-left: 4px; }
.tema-float { position: fixed; top: 12px; right: 12px; z-index: 20; }
@media print { .tema-float, .theme-toggle { display: none; } }
