/* masahmadsafwan.com — sistem visual
   Arah: publikasi spesialis + basis pengetahuan teknis. Latar netral dingin, permukaan putih,
   tinta arang, satu aksen ultramarine untuk tautan/tanda, aksen teknis hijau-teal untuk label
   "terdokumentasi". Tipografi: Source Serif 4 (judul), sans sistem (isi), IBM Plex Mono (kode/label). */

@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/source-serif-4-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2'); }

:root {
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #eaedf1; --surface-3: #f8f9fa;
  --ink: #16181d; --ink-2: #2a2e35; --mute: #5b6270; --mute-2: #7c8390;
  --line: #d7dbe1; --line-2: #e6e9ed;
  --accent: #1f3fd1; --accent-ink: #172f9e; --accent-soft: #e9edfb; --accent-line: #c5cef3;
  --teal: #0b7a6f; --teal-soft: #e2f3f0;
  --amber: #9a5300; --amber-soft: #fbf0df;
  --rose: #b3261e; --rose-soft: #fbe7e5;
  --violet: #6b3fa0; --violet-soft: #efe8f8;
  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --wrap: 72rem; --prose: 44rem; --rail: 16rem;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --r: 4px; --r2: 8px;
  --shadow: 0 1px 2px rgba(22,24,29,.06), 0 4px 16px rgba(22,24,29,.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
@media (max-width: 40rem) { body { font-size: 1rem; } }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; text-decoration-color: var(--accent-line); }
a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .5rem .8rem; z-index: 100; border-radius: var(--r); }
.skip:focus { left: .5rem; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 48rem) { .wrap { width: min(100% - 3rem, var(--wrap)); } }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -.012em; color: var(--ink); margin: 0; text-wrap: balance; font-variation-settings: 'opsz' 40; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.85rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.75rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 650; }
p { margin: 0; }
code, kbd, pre, samp { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); padding: .08em .35em; border-radius: 3px; color: var(--ink-2); overflow-wrap: anywhere; }
pre code { background: none; padding: 0; color: inherit; font-size: .85rem; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface); padding: .05em .4em; border-radius: 3px; font-size: .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s6) 0; }
b, strong { font-weight: 650; }
small { font-size: .875em; }

/* ---------- label ---------- */
.kicker { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 0 0 var(--s3); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.lvl { font-family: var(--mono); font-style: normal; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; padding: .1em .45em; border-radius: 3px; border: 1px solid var(--line); color: var(--mute); background: var(--surface); white-space: nowrap; }
.lvl--pemula { color: var(--teal); border-color: #b9dfd9; background: var(--teal-soft); }
.lvl--menengah { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-soft); }
.lvl--lanjut { color: var(--violet); border-color: #d9cbea; background: var(--violet-soft); }
.claim { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; padding: .1em .45em; border-radius: 3px; vertical-align: middle; white-space: nowrap; }
.claim--fact { color: var(--teal); background: var(--teal-soft); }
.claim--hypo { color: var(--amber); background: var(--amber-soft); }
.claim--view { color: var(--violet); background: var(--violet-soft); }

/* ---------- masthead ---------- */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.masthead__bar { display: flex; align-items: center; gap: var(--s5); min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand__mark { color: var(--accent); flex: none; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; }
.brand__desc { font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute-2); border-left: 1px solid var(--line); padding-left: .6rem; }
@media (max-width: 64rem) { .brand__desc { display: none; } }
.mainnav { display: none; align-items: center; gap: .1rem; margin-left: auto; }
.mainnav > a, .topics > summary { padding: .5rem .7rem; color: var(--ink-2); text-decoration: none; font-size: .95rem; border-radius: var(--r); }
.mainnav > a:hover, .topics > summary:hover { background: var(--surface-2); color: var(--ink); }
.mainnav > a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.masthead__search { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink-2); text-decoration: none; font-size: .9rem; padding: .45rem .6rem; border-radius: var(--r); margin-left: auto; }
.masthead__search:hover { background: var(--surface-2); }
@media (min-width: 60rem) { .mainnav { display: flex; } .masthead__search { margin-left: 0; } }
@media (max-width: 40rem) { .masthead__search span { display: none; } }

.topics { position: relative; }
.topics > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.topics > summary::-webkit-details-marker { display: none; }
.topics > summary::after { content: ''; width: .4rem; height: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.topics[open] > summary { background: var(--surface-2); }
.topics__panel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(56rem, calc(100vw - 2rem)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: var(--shadow); padding: var(--s4); z-index: 60; }
.topics__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; width: auto; }
.topics__grid a { display: block; padding: .6rem .7rem; text-decoration: none; color: var(--ink); border-radius: var(--r); }
.topics__grid a:hover { background: var(--surface-3); }
.topics__grid b { display: block; font-weight: 600; font-size: .95rem; }
.topics__grid span { display: block; color: var(--mute); font-size: .8rem; line-height: 1.4; margin-top: .1rem; }

.drawer { margin-left: auto; }
@media (min-width: 60rem) { .drawer { display: none; } }
.drawer > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer__icon { display: inline-flex; flex-direction: column; gap: 3px; }
.drawer__icon i { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 1px; }
.drawer__panel { position: fixed; inset: 3.75rem 0 0 0; background: var(--surface); overflow-y: auto; padding: var(--s4) var(--s4) var(--s8); z-index: 70; border-top: 1px solid var(--line); }
.drawer__panel a { display: block; padding: .7rem .5rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); }
.drawer__panel a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }
.drawer__h { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: var(--s5) .5rem var(--s2); }
.drawer__h:first-child { margin-top: 0; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: .84rem; padding: var(--s3) 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; color: var(--mute); }
.crumbs li + li::before { content: '/'; margin-right: .3rem; color: var(--mute-2); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- kepala halaman ---------- */
.phead { padding: var(--s6) 0 var(--s5); max-width: var(--prose); }
.phead--hub { max-width: 52rem; padding-bottom: var(--s6); }
.wrap.phead { margin-inline: auto; margin-left: max(1rem, (100% - var(--wrap)) / 2); }
@media (min-width: 48rem) { .wrap.phead { margin-left: max(1.5rem, (100% - var(--wrap)) / 2); } }
.lede { font-size: 1.17rem; line-height: 1.55; color: var(--ink-2); margin-top: var(--s4); text-wrap: pretty; }
.ameta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .84rem; color: var(--mute); margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.ameta a { color: var(--ink-2); }

/* ---------- tata letak artikel ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s6); align-items: start; padding-bottom: var(--s7); }
@media (min-width: 64rem) { .layout { grid-template-columns: minmax(0, var(--prose)) var(--rail); gap: var(--s8); } .layout--solo { grid-template-columns: minmax(0, var(--prose)); } }
.prose { min-width: 0; }
.prose--hub { max-width: 52rem; }
.prose > * + * { margin-top: var(--s4); }
.prose > h2 { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
.prose > h3 { margin-top: var(--s6); }
.prose > h4 { margin-top: var(--s5); }
.prose h2 + p, .prose h3 + p, .prose h4 + p { margin-top: var(--s3); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .35rem; }
.prose li > ul, .prose li > ol { margin-top: .35rem; }
.prose blockquote { margin: var(--s5) 0; padding: .2rem 0 .2rem 1.2rem; border-left: 3px solid var(--line); color: var(--ink-2); font-family: var(--serif); font-size: 1.1rem; }
.prose figure { margin: var(--s5) 0; }
.prose figcaption { font-size: .84rem; color: var(--mute); margin-top: .6rem; line-height: 1.45; }
.prose img { display: block; border: 1px solid var(--line); border-radius: var(--r); }
.prose dl > div { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .25rem 1rem; padding: .55rem 0; border-top: 1px solid var(--line-2); }
.prose dl > div:last-child { border-bottom: 1px solid var(--line-2); }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; }
@media (max-width: 40rem) { .prose dl > div { grid-template-columns: 1fr; gap: .1rem; } }

/* rail */
.rail { position: sticky; top: 4.5rem; font-size: .88rem; display: none; }
@media (min-width: 64rem) { .rail { display: block; } }
.toc__h, .railnav__h, .readon__h, .authorbox__h, .foot__h { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 .6rem; }
.toc ol, .railnav ul { list-style: none; margin: 0; padding: 0; }
.toc li, .railnav li { border-left: 2px solid var(--line-2); }
.toc a, .railnav a { display: block; padding: .3rem .75rem; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a:hover, .railnav a:hover { color: var(--accent-ink); }
.toc li.is-on { border-color: var(--accent); }
.toc li.is-on a { color: var(--accent-ink); }
.railnav { margin-top: var(--s6); }
.railnav__h a { color: var(--mute); text-decoration: none; }
.railnav__h a:hover { color: var(--accent-ink); }

/* daftar isi seluler: ditampilkan di atas isi */
.toc--inline { display: block; margin: 0 0 var(--s5); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); }
@media (min-width: 64rem) { .toc--inline { display: none; } }
.toc--inline ol { columns: 2; column-gap: 1.5rem; }
@media (max-width: 40rem) { .toc--inline ol { columns: 1; } }

/* ---------- komponen isi ---------- */
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 var(--r2) var(--r2) 0; padding: var(--s4) var(--s5); font-size: 1.08rem; line-height: 1.6; }
.answer p { text-wrap: pretty; }
.lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink); text-wrap: pretty; }

.note { border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s4) var(--s5); background: var(--surface); font-size: .95rem; }
.note > * + * { margin-top: .6rem; }
.note__t { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 .4rem !important; }
.note--warn { background: var(--amber-soft); border-color: #eed7b5; }
.note--warn .note__t { color: var(--amber); }
.note--author { background: var(--surface-3); border-left: 3px solid var(--violet); }
.note--author .note__t { color: var(--violet); }
.note--fact { border-left: 3px solid var(--teal); }
.note--fact .note__t { color: var(--teal); }
.note--hypo { border-left: 3px solid var(--amber); }
.note--hypo .note__t { color: var(--amber); }
.note--view { border-left: 3px solid var(--violet); }
.note--view .note__t { color: var(--violet); }
.note ul, .note ol { padding-left: 1.2rem; }

.tblwrap { overflow-x: auto; margin: var(--s5) 0; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; line-height: 1.45; }
caption { text-align: left; padding: .7rem .9rem; font-size: .84rem; color: var(--mute); caption-side: bottom; border-top: 1px solid var(--line-2); }
th, td { padding: .6rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
thead th { font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); background: var(--surface-3); border-bottom: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
tbody th { font-weight: 600; color: var(--ink); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td code, th code { white-space: nowrap; }

.code { margin: var(--s5) 0; position: relative; }
.code figcaption { font-family: var(--mono); font-size: .74rem; color: var(--mute); margin: 0 0 .35rem; letter-spacing: .02em; }
pre { margin: 0; background: #1b1e24; color: #e6e8ec; padding: var(--s4) var(--s5); border-radius: var(--r2); overflow-x: auto; line-height: 1.55; tab-size: 2; }
.code__copy { position: absolute; top: .5rem; right: .5rem; font: 500 .72rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #cfd3da; background: #2a2f37; border: 1px solid #3a404a; border-radius: 3px; padding: .3rem .55rem; cursor: pointer; }
.code figcaption + pre + .code__copy { top: 1.85rem; }
.code__copy:hover { background: #363c46; color: #fff; }

.flow { margin: var(--s5) 0; }
.flow ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; counter-reset: fl; }
.flow--v ol { flex-direction: column; align-items: stretch; max-width: 30rem; }
.flow--h ol { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: .7rem .9rem .7rem 2.6rem; counter-increment: fl; }
.flow li::before { content: counter(fl, decimal-leading-zero); position: absolute; left: .85rem; top: .8rem; font-family: var(--mono); font-size: .72rem; color: var(--mute-2); }
.flow li b { display: block; font-weight: 600; }
.flow li span { display: block; color: var(--mute); font-size: .88rem; line-height: 1.45; margin-top: .15rem; }
.flow--v li + li { margin-top: 1.4rem; }
.flow--v li + li::after { content: ''; position: absolute; left: 1.4rem; top: -1.45rem; height: 1.45rem; border-left: 2px solid var(--line); }
.flow--h li { flex: 1 1 10rem; }
.flow--h li + li { margin-left: 1.6rem; }
.flow--h li + li::after { content: ''; position: absolute; left: -1.1rem; top: 50%; width: .6rem; height: .6rem; border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: translateY(-50%) rotate(45deg); }
@media (max-width: 40rem) { .flow--h ol { flex-direction: column; } .flow--h li + li { margin-left: 0; margin-top: 1.4rem; } .flow--h li + li::after { left: 1.4rem; top: -1.45rem; width: 0; height: 1.45rem; border: 0; border-left: 2px solid var(--line); transform: none; } }

.converge { margin: var(--s5) 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s4); align-items: center; max-width: 36rem; }
.converge__src { display: flex; flex-direction: column; gap: .5rem; }
.converge__src span, .converge__dst span { display: block; font-family: var(--mono); font-size: .82rem; padding: .5rem .7rem; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); overflow-wrap: anywhere; }
.converge__dst span { border-color: var(--accent); border-width: 2px; font-weight: 500; }
.converge__arrow { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.converge__arrow i { width: 2.4rem; height: 2px; background: var(--line); position: relative; display: block; }
.converge__arrow i::after { content: ''; position: absolute; right: -1px; top: -4px; width: .55rem; height: .55rem; border-top: 2px solid var(--line); border-right: 2px solid var(--line); transform: rotate(45deg); }
.converge__arrow em { font: .7rem var(--mono); color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.converge figcaption { grid-column: 1 / -1; }

.proc { list-style: none; margin: var(--s5) 0 0; padding: 0; counter-reset: st; }
.proc > li { position: relative; counter-increment: st; padding: var(--s5) 0 var(--s5) 3.4rem; border-top: 1px solid var(--line); }
.proc > li:last-child { border-bottom: 1px solid var(--line); }
.proc > li::before { content: counter(st); position: absolute; left: 0; top: var(--s5); width: 2.3rem; height: 2.3rem; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.proc h3 { margin: 0 0 .5rem; }
.proc__grid { display: grid; gap: .6rem; margin-top: var(--s4); }
@media (min-width: 40rem) { .proc__grid { grid-template-columns: 1fr 1fr; } }
.proc__grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: .8rem .95rem; font-size: .93rem; }
.proc__grid > div > b { display: block; font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: .35rem; }
.proc__grid ul, .proc__grid ol { margin: .3rem 0 0; padding-left: 1.2rem; }
.proc__grid p + p { margin-top: .4rem; }
@media (max-width: 40rem) { .proc > li { padding-left: 0; padding-top: 3.4rem; } .proc > li::before { top: .8rem; } }

.checklist { list-style: none; padding: 0; margin: var(--s4) 0; }
.checklist li { position: relative; padding: .5rem 0 .5rem 2rem; border-top: 1px solid var(--line-2); }
.checklist li:last-child { border-bottom: 1px solid var(--line-2); }
.checklist li::before { content: ''; position: absolute; left: .2rem; top: .75rem; width: .95rem; height: .95rem; border: 1.5px solid var(--mute-2); border-radius: 3px; background: var(--surface); }
.checklist li + li { margin-top: 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); overflow: hidden; margin: 0 0 var(--s5); }
.facts > div { padding: .8rem 1rem; border-right: 1px solid var(--line-2); display: block !important; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.facts dd { margin: .15rem 0 0; font-size: .95rem; }
@media (max-width: 40rem) { .facts > div { border-right: 0; border-bottom: 1px solid var(--line-2); } .facts > div:last-child { border-bottom: 0; } }

.refs { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: .9rem; }
.refs h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 650; margin-bottom: .6rem; }
.refs ol { padding-left: 1.4rem; margin: 0; }
.refs li + li { margin-top: .3rem; }
.refs li span { color: var(--mute); }
.refs li span::before { content: ' — '; }

.related { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.related h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 650; margin-bottom: .6rem; }
.related dl { margin: 0; }
.related dl > div { grid-template-columns: minmax(10rem, 14rem) 1fr; }
.related dd { color: var(--ink-2); font-size: .95rem; }

.authorbox { margin-top: var(--s7); padding: var(--s4) var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); font-size: .95rem; }
.authorbox p + p { margin-top: .3rem; }

.readon { background: var(--surface); border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s7); }
.readon .plist { display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .readon .plist { grid-template-columns: repeat(3, 1fr); } }
.readon .plist li { border: 0; padding: 0; }

/* daftar halaman untuk hub */
.plist { list-style: none; margin: var(--s4) 0; padding: 0; counter-reset: pl; }
ol.plist > li { counter-increment: pl; }
.plist li { padding: .9rem 0; border-top: 1px solid var(--line); position: relative; }
.plist li:last-child { border-bottom: 1px solid var(--line); }
ol.plist li { padding-left: 2.6rem; }
ol.plist li::before { content: counter(pl, decimal-leading-zero); position: absolute; left: 0; top: 1.05rem; font-family: var(--mono); font-size: .78rem; color: var(--mute-2); }
.plist li + li { margin-top: 0; }
.plist a { color: var(--ink); text-decoration: none; }
.plist a:hover b { color: var(--accent-ink); text-decoration: underline; }
.plist b { font-weight: 600; }
.plist .lvl { margin-left: .5rem; }
.plist p { color: var(--mute); font-size: .9rem; margin-top: .15rem; line-height: 1.45; }

.pathway { list-style: none; margin: var(--s4) 0; padding: 0; counter-reset: pw; }
.pathway li { counter-increment: pw; display: grid; grid-template-columns: 2.2rem 1fr; gap: .2rem .8rem; padding: .7rem 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.pathway li:last-child { border-bottom: 1px solid var(--line-2); }
.pathway li::before { content: counter(pw); font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--accent); grid-row: span 2; }
.pathway a { font-weight: 600; color: var(--ink); text-decoration: none; }
.pathway a:hover { color: var(--accent-ink); text-decoration: underline; }
.pathway span { grid-column: 2; color: var(--mute); font-size: .9rem; line-height: 1.45; }
.pathway li + li { margin-top: 0; }

/* dua kolom teks di hub */
.cols { display: grid; gap: var(--s5); }
@media (min-width: 48rem) { .cols { grid-template-columns: 1fr 1fr; } }
.cols > div > h3 { margin-bottom: .5rem; }
.cols > div > * + * { margin-top: .6rem; }

/* alat */
.toolbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s5); margin-bottom: var(--s6); box-shadow: var(--shadow); }
.toolbox label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: .35rem; }
.toolbox input[type="text"], .toolbox input[type="url"], .toolbox textarea, .toolbox select { width: 100%; font: inherit; font-size: .95rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-3); color: var(--ink); }
.toolbox textarea { font-family: var(--mono); font-size: .85rem; min-height: 10rem; line-height: 1.5; resize: vertical; }
.toolbox input:focus, .toolbox textarea:focus, .toolbox select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.toolbox .field + .field { margin-top: var(--s4); }
.toolbox .row { display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .toolbox .row { grid-template-columns: 1fr 1fr; } .toolbox .row--3 { grid-template-columns: 1fr 1fr 1fr; } }
.toolbox .hint { font-size: .82rem; color: var(--mute); margin-top: .3rem; }
.btn { font: 600 .92rem var(--sans); padding: .6rem 1rem; border-radius: var(--r); border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.btn:hover { background: var(--ink-2); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface-2); }
.toolbox .actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: var(--s4); }
.toolbox output { display: block; }
.result { margin-top: var(--s5); border-top: 1px solid var(--line); padding-top: var(--s4); }
.result__h { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: .5rem; }
.verdict { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; padding: .5rem .8rem; border-radius: var(--r); border: 1px solid var(--line); }
.verdict--ok { background: var(--teal-soft); color: var(--teal); border-color: #b9dfd9; }
.verdict--no { background: var(--rose-soft); color: var(--rose); border-color: #efc4c0; }
.verdict--warn { background: var(--amber-soft); color: var(--amber); border-color: #eed7b5; }
.meter { height: .45rem; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: .35rem; }
.meter i { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .15s; }
.meter i.over { background: var(--rose); }
.serp { border: 1px solid var(--line); border-radius: var(--r2); padding: 1rem 1.1rem; background: #fff; max-width: 600px; font-family: Arial, sans-serif; }
.serp__site { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: #202124; }
.serp__fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-size: .7rem; color: #5f6368; }
.serp__url { color: #4d5156; font-size: .78rem; }
.serp__title { color: #1a0dab; font-size: 1.25rem; line-height: 1.3; margin-top: .35rem; overflow-wrap: anywhere; }
.serp__desc { color: #4d5156; font-size: .88rem; line-height: 1.55; margin-top: .25rem; }
.serp--m { max-width: 400px; }
.serp--m .serp__title { font-size: 1.1rem; }

/* ---------- beranda ---------- */
.hero { padding: var(--s7) 0 var(--s6); }
.hero__grid { display: grid; gap: var(--s6); align-items: end; }
@media (min-width: 60rem) { .hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s8); } }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.9rem); line-height: 1.08; letter-spacing: -.02em; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); margin-top: var(--s5); max-width: 36rem; text-wrap: pretty; }
.hero__links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: var(--s5); font-weight: 600; }
.hero__links a { text-decoration: none; }
.hero__links a::after { content: ' →'; }
.hero__links a:hover { text-decoration: underline; }
.hero__aside { border-left: 2px solid var(--line); padding-left: var(--s5); font-size: .95rem; color: var(--ink-2); }
.hero__aside p + p { margin-top: .7rem; }
.hero__aside .kicker { margin-bottom: .6rem; }
@media (max-width: 60rem) { .hero__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--s5); } }

.sec { padding: var(--s7) 0; }
.sec--surface { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--dark { background: #1b1e24; color: #e6e8ec; }
.sec--dark h2, .sec--dark h3 { color: #fff; }
.sec--dark a { color: #b9c4f5; text-decoration-color: rgba(185,196,245,.4); }
.sec--dark a:hover { color: #fff; }
.sec--dark .kicker { color: #9aa1ad; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.sechead p { color: var(--mute); max-width: 40rem; margin-top: .3rem; }
.sec--dark .sechead p { color: #b3b9c4; }
.sechead__more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.sechead__more::after { content: ' →'; }

/* direktori topik: seperti daftar isi buku, bukan grid kartu */
.dir { display: grid; gap: 0 var(--s7); }
@media (min-width: 48rem) { .dir { grid-template-columns: 1fr 1fr; } }
.dir__item { display: grid; grid-template-columns: 2.6rem 1fr; gap: .1rem .6rem; padding: var(--s4) 0; border-top: 1px solid var(--line); align-items: baseline; }
.dir__num { font-family: var(--mono); font-size: .78rem; color: var(--mute-2); grid-row: span 3; padding-top: .25rem; }
.dir__item h3 { font-size: 1.15rem; }
.dir__item h3 a { color: var(--ink); text-decoration: none; }
.dir__item h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.dir__item p { color: var(--mute); font-size: .9rem; line-height: 1.45; }
.dir__links { font-size: .86rem; margin-top: .3rem; display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.dir__links a { color: var(--ink-2); }

/* unggulan: satu besar + daftar */
.feat { display: grid; gap: var(--s5); }
@media (min-width: 60rem) { .feat { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s7); } }
.feat__lead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s5); }
.feat__lead h3 { font-size: 1.6rem; margin: .5rem 0 .6rem; }
.feat__lead h3 a { color: var(--ink); text-decoration: none; }
.feat__lead h3 a:hover { color: var(--accent-ink); }
.feat__lead p { color: var(--ink-2); }
.feat__lead .kicker { margin: 0; }
.feat__more { margin-top: var(--s4); font-weight: 600; }
.feat__list { list-style: none; margin: 0; padding: 0; }
.feat__list li { padding: .8rem 0; border-top: 1px solid var(--line); }
.feat__list li:first-child { border-top: 0; padding-top: 0; }
.feat__list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.feat__list a:hover { color: var(--accent-ink); text-decoration: underline; }
.feat__list span { display: block; color: var(--mute); font-size: .88rem; margin-top: .1rem; line-height: 1.45; }
.feat__list .lvl { margin-left: .4rem; }

/* AI search: tiga kolom fakta/hipotesis/tafsir */
.triad { display: grid; gap: var(--s4); margin-top: var(--s5); }
@media (min-width: 48rem) { .triad { grid-template-columns: repeat(3, 1fr); } }
.triad > div { border: 1px solid #343a45; border-radius: var(--r2); padding: var(--s4) var(--s5); background: #22262e; }
.triad .claim { display: inline-block; margin-bottom: .6rem; }
.triad p { font-size: .93rem; line-height: 1.55; color: #cfd3da; }
.triad ul { padding-left: 1.1rem; margin: .5rem 0 0; font-size: .9rem; color: #cfd3da; }
.triad li + li { margin-top: .25rem; }

/* playbook & alat di beranda: daftar prosedur ringkas */
.twocol { display: grid; gap: var(--s6); }
@media (min-width: 60rem) { .twocol { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.twocol h2 { margin-bottom: .4rem; }
.twocol .plist { margin-top: var(--s4); }
.miniproc { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.miniproc li { font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); text-align: center; padding: .5rem .3rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
@media (max-width: 40rem) { .miniproc { grid-template-columns: repeat(2, 1fr); } }

.who { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 60rem) { .who { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s8); } }
.who__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s5); }
.who__box p + p { margin-top: .7rem; }
.who__box .kicker { margin-bottom: .5rem; }
.who ul { padding-left: 1.2rem; }
.who li + li { margin-top: .35rem; }

/* ---------- pencarian ---------- */
.search { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: var(--s5); }
.search form { display: flex; gap: .5rem; }
.search input { flex: 1; font: inherit; font-size: 1.05rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-3); }
.search__res { list-style: none; margin: var(--s5) 0 0; padding: 0; }
.search__res li { padding: .8rem 0; border-top: 1px solid var(--line-2); }
.search__res a { font-weight: 600; color: var(--ink); text-decoration: none; }
.search__res a:hover { color: var(--accent-ink); text-decoration: underline; }
.search__res span { display: block; color: var(--mute); font-size: .88rem; }
.search__res i { font-family: var(--mono); font-style: normal; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute-2); margin-left: .5rem; }
.search__empty { color: var(--mute); margin-top: var(--s4); }

/* glosarium */
.gl-index { display: flex; flex-wrap: wrap; gap: .3rem; margin: var(--s4) 0 var(--s5); }
.gl-index a { font-family: var(--mono); font-size: .85rem; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--surface); }
.gl-index a:hover { background: var(--surface-2); }
.gl-letter { font-family: var(--serif); font-size: 2rem; color: var(--mute-2); margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); }
.gl { margin: var(--s4) 0 0; }
.gl > div { display: block; padding: .8rem 0; border-top: 1px solid var(--line-2); }
.gl dt { font-weight: 600; font-size: 1.05rem; }
.gl dt small { font-weight: 400; color: var(--mute); font-family: var(--mono); font-size: .78rem; margin-left: .4rem; }
.gl dd { margin: .25rem 0 0; color: var(--ink-2); }
.gl dd a.more { font-size: .9rem; white-space: nowrap; }

/* ---------- footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s6); margin-top: var(--s7); font-size: .9rem; }
.foot__grid { display: grid; gap: var(--s6); }
@media (min-width: 48rem) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s7); } }
.foot__brand p { margin-top: var(--s3); color: var(--ink-2); max-width: 28rem; }
.foot__small { font-size: .84rem; color: var(--mute); }
.brand--foot .brand__name { font-size: 1.15rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: .35rem; }
.foot li a { color: var(--ink-2); text-decoration: none; }
.foot li a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot__cr { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line-2); color: var(--mute); font-size: .82rem; }

/* 404 */
.nf { padding: var(--s8) 0; max-width: 40rem; }
.nf h1 { margin-bottom: var(--s4); }
.nf p + p { margin-top: var(--s4); }
.nf .search { margin-top: var(--s5); }
.nf__links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: var(--s5); font-weight: 600; }

@media print { .masthead, .foot, .rail, .readon, .drawer, .code__copy { display: none !important; } body { background: #fff; } .layout { display: block; } }

/* diagram konvergensi: tumpuk vertikal di layar sempit */
@media (max-width: 40rem) {
  .converge { grid-template-columns: 1fr; }
  .converge__arrow { flex-direction: row; justify-content: center; gap: .6rem; }
  .converge__arrow i { width: 2px; height: 1.6rem; }
  .converge__arrow i::after { right: -4px; top: auto; bottom: -1px; transform: rotate(135deg); }
  .converge__src span, .converge__dst span { overflow-wrap: break-word; }
}

/* ---------- identitas editorial: penomoran bagian, aksen kepala, kotak penulis ---------- */
.prose { counter-reset: sec; }
.prose > h2:not(#refs-h):not(#rel-h) { counter-increment: sec; position: relative; }
.prose > h2:not(#refs-h):not(#rel-h)::before { content: counter(sec, decimal-leading-zero); display: block; font: 500 .72rem var(--mono); letter-spacing: .12em; color: var(--accent); margin-bottom: .45rem; }
.prose > h2:first-child::before { content: counter(sec, decimal-leading-zero); }
.phead h1 { position: relative; padding-top: .9rem; }
.phead h1::before { content: ''; position: absolute; left: 0; top: 0; width: 2.4rem; height: 3px; background: var(--accent); }
.phead--hub h1::before { width: 3.6rem; }
.hero h1 { padding-top: 0; }
.hero h1::before { display: none; }
.authorbox { border-left: 3px solid var(--accent); background: var(--surface-3); }
.readon { background: var(--bg); }
.sec--surface .feat__lead { border-left: 3px solid var(--accent); }
.toc li.is-on a { font-weight: 600; }
.foot { position: relative; }
.foot::before { content: ''; position: absolute; left: 0; top: -1px; width: 6rem; height: 3px; background: var(--accent); }
.foot__cr::after { content: ' \00b7  Sumber primer dirujuk, klaim diberi label.'; color: var(--mute-2); }
.crumbs { padding-top: var(--s4); }
.lvl, .claim { border-radius: 2px; }
.note, .answer, .toolbox, .tblwrap, .facts, .authorbox, .who__box, .feat__lead, .search { border-radius: var(--r); }
.answer { border-left-width: 4px; }

/* formulir pencarian: label di atas, input + tombol sebaris, tidak meluap di layar sempit */
.search form { display: block; }
.search form > div { display: flex; gap: .5rem; }
.search input { min-width: 0; flex: 1 1 auto; }
.search .btn { flex: none; }
