/* =========================================================
   Template v7 — "Edisi Malam"
   Editorial serif + dark tech terminal + soft gradient glass
   ========================================================= */
:root {
  --ink: #0b0f14;
  --ink-2: #111821;
  --ink-3: #18212d;
  --line-d: rgba(255, 255, 255, .11);
  --cream: #f4efe5;
  --cream-2: #ebe4d5;
  --paper-line: #d9d0bd;
  --text: #1d1b17;
  --muted: #6a6457;
  --on-dark: #ece7dc;
  --on-dark-2: #a9b3bf;
  --mint: #5fe3c0;
  --sky: #7cc7ff;
  --teal: #0b7a66;
  --amber: #c98a1b;
  --rose: #c2483d;
  --grad: linear-gradient(120deg, #5fe3c0 0%, #7cc7ff 100%);
  --grad-soft: linear-gradient(135deg, rgba(95, 227, 192, .16), rgba(124, 199, 255, .16));
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 18px;
  --r-lg: 26px;
  --wrap: 1180px;
  --shadow: 0 18px 50px -24px rgba(11, 15, 20, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 400 17px/1.7 var(--sans); color: var(--text); background: var(--cream); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p, li, dd, td, th { overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 92px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.serif { font-family: var(--serif); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--mint); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 15.5px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn svg { flex: none; }
.btn-grad { background: var(--grad); color: #062019; box-shadow: 0 10px 30px -10px rgba(95, 227, 192, .65); }
.btn-grad:hover { box-shadow: 0 14px 36px -10px rgba(124, 199, 255, .7); }
.btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: var(--mint); color: #fff; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-3); }
.btn-line { color: var(--text); border-color: var(--text); background: transparent; }
.btn-line:hover { background: var(--text); color: var(--cream); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Edition strip + masthead ---------- */
.inapp { background: var(--amber); color: #1d1405; text-align: center; padding: 10px 16px; font-size: 14.5px; font-weight: 600; }
.inapp a { color: #1d1405; font-weight: 800; }
.edition { background: var(--ink); color: var(--on-dark-2); font-size: 12px; border-bottom: 1px solid var(--line-d); }
.ed-in { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.ed-in span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ed-in a { color: var(--on-dark); text-decoration: none; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(95, 227, 192, .6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 227, 192, .55); } 70% { box-shadow: 0 0 0 8px rgba(95, 227, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 227, 192, 0); } }
.mast { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 20, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line-d); }
.mast-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--on-dark); text-decoration: none; min-width: 0; }
.logo img { width: 38px; height: 38px; border-radius: 11px; flex: none; }
.logo span { font: 600 21px/1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: var(--on-dark-2); text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.menu a[aria-current="page"] { color: var(--ink); background: var(--grad); }
.mast .btn { flex: none; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-d); background: transparent; color: var(--on-dark); cursor: pointer; place-items: center; }
.mnav { display: none; border-top: 1px solid var(--line-d); padding: 8px 20px 18px; }
.mnav a { display: block; color: var(--on-dark); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--line-d); font-weight: 600; }
.mnav a[aria-current="page"] { color: var(--mint); }
.mnav.is-open { display: block; }

/* ---------- Cover (dark hero) ---------- */
.cover { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); isolation: isolate; }
.cover::before, .cover::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; }
.cover::before { width: 520px; height: 520px; left: -140px; top: -180px; background: radial-gradient(circle, rgba(95, 227, 192, .55), transparent 65%); }
.cover::after { width: 560px; height: 560px; right: -160px; bottom: -260px; background: radial-gradient(circle, rgba(124, 199, 255, .5), transparent 65%); }
.cover .grid-bg { position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.cover-in { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; padding: 76px 0 84px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin: 0 0 20px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.cover h1 { font-size: clamp(38px, 5.6vw, 66px); color: #fff; margin-bottom: 22px; }
.cover h1 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.cover .lead { font-size: 19px; color: var(--on-dark-2); max-width: 38em; margin: 0 0 30px; }
.cover-notes { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font: 500 13px/1.4 var(--mono); color: var(--on-dark-2); }
.cover-notes li { display: inline-flex; gap: 8px; align-items: center; }
.cover-notes li::before { content: "▸"; color: var(--mint); }
.hint { font: 500 13px/1.5 var(--mono); color: var(--on-dark-2); margin: 16px 0 0; }
.hint.is-ok { color: var(--mint); }
.hint.is-warn { color: #ffcf7a; }

/* inner cover */
.cover-sm .cover-in { grid-template-columns: 1fr; padding: 54px 0 60px; gap: 0; }
.cover-sm h1 { font-size: clamp(32px, 4.6vw, 52px); max-width: 18em; }
.cover-sm .lead { margin-bottom: 0; }
.crumbs { font: 500 12.5px/1.5 var(--mono); color: var(--on-dark-2); margin: 0 0 22px; }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: var(--mint); }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: .5; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font: 500 12.5px/1.4 var(--mono); color: var(--on-dark-2); }
.meta-row b { color: var(--on-dark); font-weight: 600; }

/* ---------- Glass ---------- */
.glass { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); padding: 26px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(95,227,192,.7), transparent 40%, transparent 60%, rgba(124,199,255,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.term-head { display: flex; align-items: center; gap: 7px; margin: -4px 0 18px; font: 500 12px/1 var(--mono); color: var(--on-dark-2); }
.term-head i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b5e; }
.term-head i:nth-child(2) { background: #ffc24b; }
.term-head i:nth-child(3) { background: #3fd38a; margin-right: 8px; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-d); }
.file-row img { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.file-row b { display: block; font: 600 17px/1.25 var(--serif); color: #fff; overflow-wrap: anywhere; }
.file-row small { font: 500 12px/1.4 var(--mono); color: var(--mint); }
.spec { margin: 18px 0; display: grid; gap: 0; font: 500 13.5px/1.5 var(--mono); }
.spec div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .13); }
.spec dt { color: var(--on-dark-2); }
.spec dd { margin: 0; color: var(--on-dark); text-align: right; }
.glass .btn { width: 100%; }
.qr-mini { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-d); font-size: 13.5px; color: var(--on-dark-2); line-height: 1.5; }
.qr { background: #fff; border-radius: 12px; padding: 6px; width: 92px; height: 92px; flex: none; display: grid; place-items: center; color: var(--ink); font-size: 10px; overflow: hidden; }
.qr svg { width: 100%; height: 100%; }
.qr-lg { width: 150px; height: 150px; padding: 8px; }

/* ---------- Paper sections ---------- */
.paper { background: var(--cream); }
.sec { padding: 86px 0; border-top: 1px solid var(--paper-line); }
.sec:first-child { border-top: 0; }
.sec-alt { background: var(--cream-2); }
.sec-head { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; margin-bottom: 40px; align-items: start; }
.sec-no { font: 600 12px/1.3 var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; padding-top: 10px; border-top: 2px solid var(--text); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 46em; }
.dropcap::first-letter { float: left; font: 600 4.2em/.82 var(--serif); margin: .08em .1em 0 0; color: var(--teal); }
.cols { columns: 3 260px; column-gap: 42px; column-rule: 1px solid var(--paper-line); }
.cols p { margin: 0 0 1em; break-inside: avoid-column; }
.pull { font: italic 500 clamp(22px, 2.6vw, 30px)/1.35 var(--serif); color: var(--text); border-left: 3px solid var(--mint); padding: 4px 0 4px 22px; margin: 34px 0; max-width: 34em; }

/* issue index */
.index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; counter-reset: idx; }
.index li { border-top: 1px solid var(--paper-line); }
.index a { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 18px 0; text-decoration: none; color: var(--text); }
.index a:hover b { color: var(--teal); }
.index .n { font: 600 11.5px/1.3 var(--mono); color: var(--teal); letter-spacing: .08em; text-transform: uppercase; }
.index b { font: 600 20px/1.3 var(--serif); display: block; }
.index small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 4px; }
.index .go { font-family: var(--mono); color: var(--teal); }

/* terminal panel (on paper) */
.terminal { background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: 24px 26px 26px; font: 500 14.5px/1.7 var(--mono); box-shadow: var(--shadow); overflow: hidden; }
.terminal .term-head { margin-bottom: 16px; }
.terminal .pr { color: var(--mint); }
.terminal .cm { color: #7c8794; }
.terminal p { margin: 0 0 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }

/* term steps */
.tsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: ts; }
.tsteps li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 22px; padding: 24px; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--r); }
.tsteps li::before { content: "$ " attr(data-tag); font: 600 14px/1.3 var(--mono); color: var(--teal); background: rgba(11, 122, 102, .08); border-radius: 10px; padding: 10px 12px; height: fit-content; }
.tsteps h3 { font-size: 22px; margin-bottom: 6px; }
.tsteps p { margin: 0; color: #3c3830; }
.tsteps p + p { margin-top: 8px; }

/* gradient cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: linear-gradient(170deg, #fff, #fbf8f2); border: 1px solid var(--paper-line); text-decoration: none; color: var(--text); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .tag { font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.card h3 { font-size: 22px; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.card .more { margin-top: auto; padding-top: 8px; font: 600 13px/1 var(--mono); color: var(--teal); }
.card-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--teal); border: 1px solid rgba(11, 122, 102, .18); }

/* tabs (device chooser) */
.tabs { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.tablist { display: flex; overflow-x: auto; gap: 6px; padding: 12px; background: var(--ink); scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tablist button { flex: none; font: 600 13.5px/1 var(--mono); color: var(--on-dark-2); background: transparent; border: 1px solid var(--line-d); border-radius: 999px; padding: 11px 16px; cursor: pointer; }
.tablist button[aria-selected="true"] { color: var(--ink); background: var(--grad); border-color: transparent; }
.tabpanel { padding: 30px; }
.tabpanel h3 { font-size: 26px; }
.tabpanel ol { margin: 0 0 14px; padding-left: 1.3em; }
.tabpanel ol li { margin-bottom: 8px; }
.tabpanel .small { font-size: 15px; color: var(--muted); margin: 0; }
.js .tabpanel[hidden] { display: none; }

/* ---------- Doc layout ---------- */
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 64px 0 90px; align-items: start; }
.side { position: sticky; top: 96px; display: grid; gap: 18px; }
.toc { font-family: var(--mono); font-size: 13px; }
.toc b { display: block; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-size: 11.5px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.toc ol { list-style: none; margin: 0; padding: 0; max-height: calc(100vh - 330px); overflow: auto; }
.toc a { display: grid; grid-template-columns: 16px 1fr; gap: 4px; padding: 7px 0; color: var(--muted); text-decoration: none; line-height: 1.45; border-bottom: 1px solid rgba(0,0,0,.05); }
.toc a::before { content: "›"; color: #b0a690; }
.toc a:hover, .toc a.is-active { color: var(--text); }
.toc a.is-active::before { color: var(--teal); }
.side-cta { background: var(--ink); color: var(--on-dark); border-radius: var(--r); padding: 20px; }
.side-cta b { display: block; font: 600 18px/1.3 var(--serif); margin-bottom: 6px; color: #fff; }
.side-cta p { font-size: 14px; color: var(--on-dark-2); margin: 0 0 14px; line-height: 1.55; }
.side-cta .btn { width: 100%; }

/* prose */
.prose { max-width: 760px; font-size: 17.5px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 2.1em 0 .6em; padding-top: 18px; border-top: 1px solid var(--paper-line); }
.prose h2 .h-no { display: block; font: 600 12px/1 var(--mono); color: var(--teal); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.prose h3 { font-size: 23px; margin: 1.7em 0 .5em; }
.prose p { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: #0f0e0b; }
.prose .lede { font: 400 21px/1.6 var(--serif); color: #2b2822; }
.path { font: 500 .84em/1.5 var(--mono); background: var(--cream-2); border: 1px solid var(--paper-line); padding: 1px 7px; border-radius: 6px; white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15.5px; table-layout: fixed; background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; overflow: hidden; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--paper-line); line-height: 1.55; }
.prose th { font: 600 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--cream-2); }
.prose tr:last-child td { border-bottom: 0; }
.note { border-radius: 14px; padding: 18px 20px 18px 56px; margin: 1.5em 0; position: relative; background: #fff; border: 1px solid var(--paper-line); }
.note::before { position: absolute; left: 18px; top: 17px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 700 13px/1 var(--mono); }
.note p:last-child { margin-bottom: 0; }
.note-tip { border-left: 4px solid var(--mint); }
.note-tip::before { content: "i"; background: rgba(95, 227, 192, .25); color: var(--teal); }
.note-warn { border-left: 4px solid var(--amber); background: #fffaf0; }
.note-warn::before { content: "!"; background: rgba(201, 138, 27, .2); color: #8a5a07; }
.note-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.note-dark::before { content: ">"; background: rgba(95, 227, 192, .2); color: var(--mint); }
.note-dark strong { color: #fff; }
.note-dark a { color: var(--mint); }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 6px; background: var(--grad); }
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.32em + 4px); width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.nsteps { list-style: none; padding: 0 !important; counter-reset: ns; }
.nsteps > li { counter-increment: ns; position: relative; padding: 2px 0 14px 50px; margin: 0; }
.nsteps > li::before { content: counter(ns, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 600 13px/1 var(--mono); color: var(--teal); border: 1.5px solid var(--teal); border-radius: 8px; padding: 7px 6px; }
.gloss dt { font: 600 19px/1.35 var(--serif); margin-top: 1.1em; }
.gloss dd { margin: .25em 0 0; color: #3c3830; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 1.3em 0; border-top: 1px solid var(--paper-line); }
.kv > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--paper-line); }
.kv dt { font: 600 13px/1.6 var(--mono); color: var(--teal); }
.kv dd { margin: 0; }

/* Q&A */
.qa { border: 1px solid var(--paper-line); background: #fff; border-radius: 14px; margin: 0 0 10px; }
.qa summary { list-style: none; cursor: pointer; padding: 17px 52px 17px 20px; font: 600 17.5px/1.4 var(--serif); position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 600 16px/1 var(--mono); color: var(--teal); background: rgba(11, 122, 102, .08); }
.qa[open] summary::after { content: "−"; background: var(--grad); color: var(--ink); }
.qa .ans { padding: 0 20px 18px; font-size: 16.5px; }
.qa .ans > :last-child { margin-bottom: 0; }
.qa-group { font: 600 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 38px 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.chips a, .chips button { font: 600 13px/1 var(--mono); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--paper-line); background: #fff; color: var(--text); text-decoration: none; cursor: pointer; }
.chips a:hover, .chips button:hover, .chips button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* checker tool */
.checker { background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: 28px; margin: 1.6em 0; }
.checker h3 { color: #fff; margin-top: 0; }
.checker label { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); cursor: pointer; font-size: 16px; line-height: 1.5; }
.checker input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .35); margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; }
.checker input:checked { background: var(--grad); border-color: transparent; }
.checker input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.2px 2.2px 0; transform: translate(0, -1px) rotate(45deg); }
.checker small { display: block; color: var(--on-dark-2); font-size: 14px; }
.meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin: 20px 0 12px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width .3s; }
.checker-out { font: 500 14px/1.5 var(--mono); color: var(--mint); margin: 0; }

/* clinic */
.clinic-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 1.2em 0 1.6em; }
.clinic-pick button { text-align: left; font: 600 15px/1.4 var(--sans); padding: 15px 16px; border-radius: 14px; border: 1px solid var(--paper-line); background: #fff; color: var(--text); cursor: pointer; }
.clinic-pick button span { display: block; font: 500 11.5px/1.2 var(--mono); color: var(--teal); letter-spacing: .1em; margin-bottom: 6px; }
.clinic-pick button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.clinic-pick button[aria-pressed="true"] span { color: var(--mint); }
.dx { border: 1px solid var(--paper-line); background: #fff; border-radius: var(--r-lg); padding: 28px; margin: 0 0 18px; }
.dx.is-hl { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(95, 227, 192, .35); }
.dx h3 { margin-top: 0; font-size: 24px; }
.dx .sym { font: 500 13px/1.5 var(--mono); color: var(--muted); margin: -4px 0 14px; }
.dx-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 26px; }
.dx-grid h4 { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
.dx-grid ul, .dx-grid ol { margin: 0; }

/* glossary letters */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.letters a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--paper-line); background: #fff; font: 600 14px/1 var(--mono); color: var(--text); text-decoration: none; }
.letters a:hover { background: var(--ink); color: var(--mint); }
.letter { font: 600 44px/1 var(--serif); color: var(--teal); margin: 1.2em 0 .2em; padding-top: 0; border-top: 0; }

/* kolom hub & related */
.kgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kcard { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); text-decoration: none; color: var(--on-dark); background: var(--ink-2); border: 1px solid var(--ink-3); position: relative; overflow: hidden; isolation: isolate; transition: transform .2s; }
.kcard::after { content: ""; position: absolute; z-index: -1; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(95, 227, 192, .35), transparent 68%); }
.kcard:nth-child(3n+2)::after { background: radial-gradient(circle, rgba(124, 199, 255, .35), transparent 68%); }
.kcard:hover { transform: translateY(-3px); text-decoration: none; }
.kcard .tag { font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.kcard h3 { font-size: 22px; color: #fff; margin: 0; }
.kcard p { margin: 0; color: var(--on-dark-2); font-size: 15px; line-height: 1.6; }
.kcard .more { margin-top: auto; padding-top: 10px; font: 500 12.5px/1 var(--mono); color: var(--on-dark-2); display: flex; justify-content: space-between; gap: 10px; }
.rubrik-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 54px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--text); }
.rubrik-head:first-child { margin-top: 0; }
.rubrik-head h2 { font-size: 30px; margin: 0; }
.rubrik-head span { font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.related { padding: 70px 0; background: var(--cream-2); border-top: 1px solid var(--paper-line); }
.related h2 { font-size: 30px; margin-bottom: 24px; }

/* ---------- Band ---------- */
.band { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); padding: 80px 0; isolation: isolate; }
.band::before { content: ""; position: absolute; z-index: -1; inset: auto -10% -60% 30%; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(95, 227, 192, .3), rgba(124, 199, 255, .18) 45%, transparent 70%); filter: blur(30px); }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.band h2 { font-size: clamp(30px, 4vw, 46px); color: #fff; }
.band p { color: var(--on-dark-2); margin: 0 0 26px; max-width: 40em; }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.share a, .share button { font: 600 13px/1 var(--mono); color: var(--on-dark); border: 1px solid var(--line-d); background: rgba(255, 255, 255, .04); border-radius: 999px; padding: 11px 15px; text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--mint); color: var(--mint); }
.copied { font: 500 13px/1 var(--mono); color: var(--mint); align-self: center; }
.band-qr { text-align: center; font: 500 12.5px/1.5 var(--mono); color: var(--on-dark-2); }
.band-qr .qr { margin: 0 auto 12px; }

/* ---------- Footer ---------- */
.foot { background: #070a0e; color: var(--on-dark-2); padding: 70px 0 110px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot .logo span { color: #fff; }
.foot p { margin: 14px 0 0; line-height: 1.65; }
.foot h2 { font: 600 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin: 6px 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: var(--mint); }
.colophon { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line-d); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font: 500 12.5px/1.6 var(--mono); }
.colophon p { margin: 0; }
.kw-line { font: 500 12px/1.6 var(--mono); color: #6e7884; margin-top: 30px !important; }
.mbar { display: none; }

/* ---------- 404 ---------- */
.nf { font: 600 clamp(80px, 16vw, 180px)/1 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu { display: none; }
  .burger { display: grid; }
  .mast .btn { display: none; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; }
  .side { position: static; order: 2; margin-top: 40px; }
  .side .toc { display: none; }
  .prose { max-width: none; }
}
@media (max-width: 900px) {
  .cover-in { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 56px 0 64px; }
  .split, .split-wide, .dx-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cards, .kgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index { grid-template-columns: minmax(0, 1fr); }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sec-no { width: fit-content; padding-right: 30px; }
  .band-in { grid-template-columns: minmax(0, 1fr); }
  .band-qr { text-align: left; display: flex; gap: 16px; align-items: center; }
  .band-qr .qr { margin: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .ed-in span:first-child { display: none; }
  .ed-in { justify-content: center; }
  .mast-in { height: 62px; }
  .sec { padding: 60px 0; }
  .cover .lead { font-size: 17px; }
  .cover .btn-row .btn { flex: 1 1 100%; }
  .glass { padding: 20px; }
  .cards, .kgrid { grid-template-columns: minmax(0, 1fr); }
  .tsteps li { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px; }
  .tsteps li::before { width: fit-content; }
  .tabpanel { padding: 22px; }
  .index a { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
  .index .go { display: none; }
  .prose { font-size: 16.5px; }
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 10px; }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .note { padding: 16px 16px 16px 50px; }
  .note::before { left: 14px; }
  .checker, .dx { padding: 22px; }
  .clinic-pick { grid-template-columns: minmax(0, 1fr); }
  .rubrik-head { flex-direction: column; gap: 6px; }
  .foot { padding-bottom: 120px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 15, 20, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-d); }
  .mbar .btn { flex: 1; min-height: 46px; }
}

/* download desk (dark panel on paper) */
.desk { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: 28px; margin: 0 0 2em; box-shadow: var(--shadow); }
.desk::after { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -150px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(95, 227, 192, .35), rgba(124, 199, 255, .15) 50%, transparent 70%); }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.desk .btn-row { margin-top: 4px; }
.desk .qr-col { text-align: center; font: 500 12px/1.5 var(--mono); color: var(--on-dark-2); }
.desk .qr-col .qr { margin: 0 auto 10px; }
.desk .share { margin-top: 18px; }
.desk p { color: var(--on-dark-2); }
@media (max-width: 640px) {
  .desk { padding: 22px; }
  .desk-grid { grid-template-columns: minmax(0, 1fr); }
  .desk .qr-col { display: flex; gap: 14px; align-items: center; text-align: left; }
  .desk .qr-col .qr { margin: 0; }
  .desk .btn-row .btn { flex: 1 1 100%; }
}
.prose .letter { font: 600 44px/1 var(--serif); color: var(--teal); margin: 1.1em 0 .1em; padding-top: 0; border-top: 0; }
