/* guidance.asg.co.id — tema "Biru Arthanusa" */
:root {
  --bg: #f4f6fb; --panel: #ffffff; --panel-2: #f8f9fd; --text: #17203a; --muted: #66708a; --line: #e4e8f1; --line-2: #d4dae8;
  --brand: #0b2a6f; --brand-2: #1f5fd6; --brand-3: #4f8cff; --accent: #e9f0ff; --accent-2: #d6e3ff;
  --code: #0f172a; --code-text: #e2e8f0; --inline-code: #eef2ff; --mark: #fff1a8;
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 60px -24px rgba(11, 42, 111, .35);
  --radius: 14px; --side-w: 300px; --toc-w: 240px; --top-h: 64px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1020; --panel: #121a2e; --panel-2: #0f1628; --text: #e7ebf5; --muted: #98a3bd; --line: #223050; --line-2: #2d3c60;
  --brand: #dbe6ff; --brand-2: #78a3ff; --brand-3: #a7c3ff; --accent: #182547; --accent-2: #203063;
  --code: #0a0f1d; --code-text: #e2e8f0; --inline-code: #1b2748; --mark: #6b5600;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.7);
} }
:root[data-theme="dark"] {
  --bg: #0b1020; --panel: #121a2e; --panel-2: #0f1628; --text: #e7ebf5; --muted: #98a3bd; --line: #223050; --line-2: #2d3c60;
  --brand: #dbe6ff; --brand-2: #78a3ff; --brand-3: #a7c3ff; --accent: #182547; --accent-2: #203063;
  --code: #0a0f1d; --code-text: #e2e8f0; --inline-code: #1b2748; --mark: #6b5600;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; font: 15.5px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand-3); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-2); }

/* ---------- header ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand-2), var(--brand-3)); z-index: 50; transition: width .1s linear; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.menu-btn { display: none; font-size: 22px; background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.menu-btn:hover { background: var(--accent); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); line-height: 1.15; }
.brand:hover { text-decoration: none; }
.logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 60%, var(--brand-3) 100%); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; box-shadow: 0 6px 16px -6px rgba(31, 95, 214, .6); }
.brand strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.search { margin-left: auto; flex: 0 1 460px; position: relative; }
.search::before { content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-56%); font-size: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: 10px 14px 10px 36px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; transition: box-shadow .15s, border-color .15s; }
.search input:focus { outline: none; border-color: var(--brand-3); box-shadow: 0 0 0 4px var(--accent); background: var(--panel); }
.akun { position: relative; }
.akun summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; white-space: nowrap; background: var(--panel); transition: border-color .15s; }
.akun summary:hover { border-color: var(--brand-3); }
.akun summary::-webkit-details-marker { display: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand-3)); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.akun-menu { position: absolute; right: 0; top: 115%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 200px; padding: 6px; box-shadow: var(--shadow-lg); z-index: 30; }
.akun-menu a, .akun-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; border-radius: 8px; cursor: pointer; }
.akun-menu a:hover, .akun-menu button:hover { background: var(--accent); text-decoration: none; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
body.kind-doc .layout { grid-template-columns: var(--side-w) minmax(0, 1fr) var(--toc-w); }
.side { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow: auto; padding: 18px 14px 30px; border-right: 1px solid var(--line); background: var(--panel-2); scrollbar-width: thin; }
.side-head { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 4px 10px 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.count { background: var(--accent); color: var(--brand-2); border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: 11px; }
.filter { width: 100%; margin: 0 0 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; }
.filter:focus { outline: none; border-color: var(--brand-3); box-shadow: 0 0 0 3px var(--accent); }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-left: 12px; margin-left: 12px; border-left: 1px solid var(--line-2); }
.tree li a, .tree summary { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; color: var(--text); font-size: 14px; cursor: pointer; transition: background .12s, color .12s; }
.tree li a:hover, .tree summary:hover { background: var(--accent); text-decoration: none; color: var(--brand-2); }
.tree li.active > a { background: var(--brand-2); color: #fff; font-weight: 600; box-shadow: 0 6px 14px -8px var(--brand-2); }
.tree summary { font-weight: 700; color: var(--muted); list-style: none; font-size: 13px; text-transform: capitalize; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: "›"; display: inline-block; width: 12px; transition: transform .15s; color: var(--muted); font-size: 16px; }
.tree details[open] > summary::before { transform: rotate(90deg); }
.tree li.hidden { display: none; }
.tree li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 30px 44px 70px; max-width: 1040px; width: 100%; }
.toc { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow: auto; padding: 30px 18px; font-size: 13px; }
.toc-head { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 5px 12px; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; transition: color .12s, border-color .12s; }
.toc li.lv3 a { padding-left: 24px; font-size: 12px; }
.toc li a:hover, .toc li a.active { color: var(--brand-2); border-left-color: var(--brand-2); text-decoration: none; }
.toc li a.active { font-weight: 600; }

/* ---------- beranda ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand) 0%, #163f9a 50%, var(--brand-2) 100%); color: #fff; padding: 40px 40px 34px; border-radius: 22px; margin-bottom: 30px; box-shadow: var(--shadow-lg); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); opacity: .35; pointer-events: none; }
.hero::before { width: 320px; height: 320px; right: -80px; top: -120px; background: radial-gradient(circle, #8fb3ff, transparent 65%); }
.hero::after { width: 260px; height: 260px; left: 30%; bottom: -160px; background: radial-gradient(circle, #5fe0c9, transparent 65%); }
.hero .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin: 0 0 8px; font-weight: 700; }
.hero h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.02em; line-height: 1.15; }
.hero p { margin: 0; opacity: .9; max-width: 620px; font-size: 16px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; position: relative; }
.stat { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); border-radius: 12px; padding: 10px 14px; min-width: 130px; }
.stat b { display: block; font-size: 20px; line-height: 1.1; }
.stat span { font-size: 12px; opacity: .85; }
.content h2.sec { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 30px 0 12px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.content h2.sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.card { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--brand-3); box-shadow: var(--shadow-lg); text-decoration: none; }
.card-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; font-size: 22px; }
.card strong { display: block; font-size: 14.5px; line-height: 1.35; margin-bottom: 4px; }
.card small { color: var(--muted); font-size: 12px; }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.list th, table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.list th { background: var(--panel-2); color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { transition: background .12s; }
table.list tbody tr:hover { background: var(--accent); }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--accent); color: var(--brand-2); letter-spacing: .04em; }

/* ---------- dokumen ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.crumbs .here { color: var(--text); font-weight: 600; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.doc-meta .sep { display: none; }
.doc-meta > * { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.doc-meta a:hover { border-color: var(--brand-3); text-decoration: none; color: var(--brand-2); }
.doc { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 44px 52px; box-shadow: var(--shadow); }
.doc > :first-child { margin-top: 0; }
.doc h1 { font-size: 32px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.02em; }
.doc h1 + p { color: var(--muted); font-size: 15px; }
.doc h2 { font-size: 22px; margin: 42px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); letter-spacing: -.01em; position: relative; }
.doc h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--brand-2); }
.doc h3 { font-size: 17.5px; margin: 28px 0 8px; }
.doc h4 { font-size: 15px; margin: 20px 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--brand-2); }
.doc img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.doc table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0 0 20px; font-size: 14px; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.doc th, .doc td { border-bottom: 1px solid var(--line); padding: 9px 12px; vertical-align: top; }
.doc th { background: var(--panel-2); text-align: left; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.doc tr:last-child td { border-bottom: 0; }
.doc tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--panel-2) 60%, transparent); }
.doc code { font: 13px/1.5 var(--mono); background: var(--inline-code); color: var(--brand-2); padding: 2px 6px; border-radius: 6px; }
.doc pre { background: var(--code); color: var(--code-text); border-radius: 12px; padding: 16px 18px; overflow: auto; margin: 0 0 18px; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.doc pre code { background: none; padding: 0; color: inherit; font-size: 13px; }
.doc blockquote { margin: 0 0 18px; padding: 14px 18px 14px 20px; border-left: 4px solid var(--brand-2); background: var(--accent); border-radius: 0 12px 12px 0; }
.doc blockquote p:last-child { margin: 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.doc input[type=checkbox] { margin-right: 8px; accent-color: var(--brand-2); transform: scale(1.1); }
.doc .task-list-item { list-style: none; margin-left: -20px; }
.doc .heading-permalink { margin-left: 8px; color: var(--line-2); font-weight: 400; font-size: .75em; opacity: 0; transition: opacity .12s; }
.doc h2:hover .heading-permalink, .doc h3:hover .heading-permalink, .doc h4:hover .heading-permalink { opacity: 1; color: var(--brand-2); }
.copy-btn { position: absolute; top: 8px; right: 8px; font: 600 11.5px var(--font); padding: 4px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(255,255,255,.08); color: #cbd5e1; cursor: pointer; opacity: 0; transition: opacity .12s; }
.doc pre:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.bingkai { width: 100%; height: calc(100vh - var(--top-h) - 130px); min-height: 520px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.ke-atas { position: fixed; right: 22px; bottom: 22px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--brand-2); font-size: 18px; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 25; }
.ke-atas.tampil { opacity: 1; pointer-events: auto; }

/* ---------- pencarian ---------- */
.hit { padding: 16px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.hit a { font-weight: 700; font-size: 16px; }
.hit small { display: block; color: var(--muted); font-family: var(--mono); font-size: 11.5px; margin-top: 2px; }
.hit p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 3px; }
.muted { color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 22px; border-top: 1px solid var(--line); }

/* ---------- login & akun ---------- */
body.kind-masuk { display: grid; place-items: center; min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #2f6fe0 0%, transparent 60%), radial-gradient(900px 500px at 110% 110%, #5fe0c9 0%, transparent 55%), linear-gradient(160deg, var(--brand) 0%, #163f9a 100%); }
.masuk { width: min(430px, 92vw); }
.masuk-kartu { background: var(--panel); border-radius: 22px; padding: 32px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.3); }
.masuk-kartu .brand { margin-bottom: 22px; }
.masuk-kartu h1 { font-size: 22px; margin: 0 0 16px; letter-spacing: -.01em; }
.masuk-kartu label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.masuk-kartu input[type=text], .masuk-kartu input[type=password] { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 15px; transition: box-shadow .15s, border-color .15s; }
.masuk-kartu input:focus { outline: none; border-color: var(--brand-3); box-shadow: 0 0 0 4px var(--accent); background: var(--panel); }
.masuk-kartu button[type=submit] { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--brand-2), var(--brand-3)); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 6px; box-shadow: 0 10px 20px -10px var(--brand-2); transition: transform .12s, filter .12s; }
.masuk-kartu button[type=submit]:hover { filter: brightness(1.06); transform: translateY(-1px); }
.tautan-kecil { display: block; text-align: center; margin-top: 12px; font-size: 13px; }
.masuk-kartu label small { display: block; margin-top: 5px; font-weight: 500; font-size: 12px; }
.masuk-teks { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.galat { background: #fde8e8; color: #9b1c1c; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.info { background: #e3f6e8; color: #166534; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.masuk-catatan { text-align: center; color: rgba(255,255,255,.85); font-size: 13px; margin-top: 18px; }

/* ---------- responsif ---------- */
@media (max-width: 1150px) {
  body.kind-doc .layout { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .brand small { display: none; }
  .akun summary span { display: none; }
  .layout, body.kind-doc .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: var(--top-h); width: min(86vw, 330px); transform: translateX(-100%); transition: transform .2s; z-index: 15; box-shadow: 0 0 40px rgba(0,0,0,.25); background: var(--panel); }
  .side.open { transform: none; }
  .content { padding: 18px 16px 60px; }
  .hero { padding: 26px 22px; border-radius: 18px; }
  .hero h1 { font-size: 24px; }
  .doc { padding: 24px 18px; border-radius: 14px; }
  .doc h1 { font-size: 25px; }
  .search { flex: 1; }
}
@media print {
  .top, .side, .toc, .foot, .doc-meta, .crumbs, .copy-btn, .ke-atas, .progress { display: none !important; }
  .layout { display: block; }
  .content { padding: 0; max-width: none; }
  .doc { border: 0; padding: 0; box-shadow: none; }
  .doc .heading-permalink { display: none; }
  .doc pre { background: #f1f5f9; color: #0f172a; }
  a { color: inherit; }
}

/* ---------- logo ASG ---------- */
:root { --gold: #c9962b; }
.logo { width: auto; height: 40px; border-radius: 0; background: none; box-shadow: none; padding: 2px 0; object-fit: contain; }
.masuk-kartu .logo { height: 64px; }
.masuk-kartu .brand { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.masuk-kartu .brand small { display: block; }
.doc h2::after { background: var(--gold); }
.stat b { color: #f3d58a; }
.hero::before { background: radial-gradient(circle, #e9c46a, transparent 65%); }
.count { background: color-mix(in srgb, var(--gold) 18%, transparent); color: #8a6414; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .count { color: #f3d58a; } }

/* =====================================================================
   KOMPONEN DOKUMEN (2026-11) — sintaks di src/Komponen.php & "Panduan Menulis Dokumen"
   ===================================================================== */
:root {
  --tip-bg: #ecfdf3; --tip-bd: #22a05a; --tip-fg: #15803d;
  --info-bg: #eef4ff; --info-bd: #3b7bf0; --info-fg: #1f5fd6;
  --warn-bg: #fff6eb; --warn-bd: #ea7a1a; --warn-fg: #b45309;
  --danger-bg: #fef1f1; --danger-bd: #e04848; --danger-fg: #b91c1c;
  --th-bg: #eef3ff; --th-fg: #2a3d6b; --zebra: #f7f9fd; --kbd-bg: #ffffff;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --tip-bg: #0f2a1e; --tip-bd: #2fb36b; --tip-fg: #6ee7a0;
  --info-bg: #13223f; --info-bd: #5b8ff0; --info-fg: #9cc0ff;
  --warn-bg: #2d1f0f; --warn-bd: #f08a2c; --warn-fg: #fdba74;
  --danger-bg: #2e1416; --danger-bd: #ef5b5b; --danger-fg: #fca5a5;
  --th-bg: #17244a; --th-fg: #c9d6f5; --zebra: #101a31; --kbd-bg: #1a2440;
} }
:root[data-theme="dark"] {
  --tip-bg: #0f2a1e; --tip-bd: #2fb36b; --tip-fg: #6ee7a0;
  --info-bg: #13223f; --info-bd: #5b8ff0; --info-fg: #9cc0ff;
  --warn-bg: #2d1f0f; --warn-bd: #f08a2c; --warn-fg: #fdba74;
  --danger-bg: #2e1416; --danger-bd: #ef5b5b; --danger-fg: #fca5a5;
  --th-bg: #17244a; --th-fg: #c9d6f5; --zebra: #101a31; --kbd-bg: #1a2440;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.7);
}
:root[data-theme="dark"] .count { color: #f3d58a; }
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- tipografi ---------- */
.doc { font-size: 16.5px; line-height: 1.72; }
.doc p, .doc li, .doc blockquote, .doc > ul, .doc > ol, .md-langkah-isi > ul, .md-langkah-isi > ol { max-width: 70ch; }
.doc h1 { margin-bottom: 12px; }
.doc h1 + p { font-size: 17px; line-height: 1.6; max-width: 62ch; }
.doc h2 { margin: 52px 0 16px; line-height: 1.3; }
.doc h3 { margin: 34px 0 10px; line-height: 1.35; font-size: 18.5px; }
.doc h4 { margin: 26px 0 8px; }
.doc p, .doc ul, .doc ol { margin-bottom: 16px; }
.doc li { margin: 6px 0; }
.doc li > p { margin-bottom: 8px; }
.doc strong { font-weight: 700; }

/* ---------- jangkar judul: ikon tautan, hanya saat hover/fokus ---------- */
.doc .heading-permalink { display: inline-block; width: .72em; height: .72em; margin-left: 10px; vertical-align: middle; opacity: 0; color: var(--brand-2);
  background: currentColor; transition: opacity .12s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1'/%3E%3Cpath d='M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E") center / contain no-repeat; }
.doc h2:hover .heading-permalink, .doc h3:hover .heading-permalink, .doc h4:hover .heading-permalink, .doc .heading-permalink:focus { opacity: .85; }

/* ---------- tabel ---------- */
.md-tabel { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.doc table { font-size: 15px; line-height: 1.55; }
.md-tabel > table { display: table; width: 100%; margin: 0; border: 0; border-radius: 0; overflow: visible; }
.doc th { background: var(--th-bg); color: var(--th-fg); font-size: 12.5px; font-weight: 700; padding: 11px 14px; white-space: nowrap; }
.doc td { padding: 12px 14px; }
.doc tbody tr:nth-child(even) td { background: var(--zebra); }
.doc td:first-child { font-weight: 600; }
.doc table code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
@media (min-width: 821px) and (max-width: 1500px) {
  .content { padding-left: 28px; padding-right: 28px; }
  .doc { padding: 40px 40px; }
}
.md-langkah .md-tabel { margin-right: 0; }

/* ---------- kode inline + tombol salin ---------- */
.doc code { font-size: .84em; overflow-wrap: anywhere; }
.md-salin { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 4px; vertical-align: middle; border: 1px solid var(--line-2); border-radius: 6px;
  background: var(--panel); color: var(--muted); cursor: pointer; padding: 0; transition: color .12s, border-color .12s, background .12s; }
.md-salin:hover { color: var(--brand-2); border-color: var(--brand-3); }
.md-salin svg { width: 13px; height: 13px; }
.md-salin.ok { color: var(--tip-fg); border-color: var(--tip-bd); }

/* ---------- chip tombol/menu UI: [[Create app]] ---------- */
kbd.md-ui { display: inline-block; font: 600 .86em/1.45 var(--font); padding: 1px 8px; margin: 0 1px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 7px;
  background: var(--kbd-bg); color: var(--text); white-space: nowrap; vertical-align: baseline; }

/* ---------- callout ---------- */
.md-callout { display: flex; gap: 12px; margin: 0 0 20px; padding: 14px 18px 14px 14px; border: 1px solid; border-left-width: 4px; border-radius: 12px; max-width: 78ch; }
.md-callout-ikon { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; }
.md-callout-isi { min-width: 0; flex: 1; }
.md-callout-isi > :last-child { margin-bottom: 0; }
.md-callout-isi p, .md-callout-isi li { max-width: none; }
.md-callout-judul { font-weight: 700; margin: 0 0 4px !important; }
.md-callout-tip { background: var(--tip-bg); border-color: color-mix(in srgb, var(--tip-bd) 35%, transparent); border-left-color: var(--tip-bd); }
.md-callout-tip .md-callout-ikon, .md-callout-tip .md-callout-judul { color: var(--tip-fg); }
.md-callout-info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info-bd) 35%, transparent); border-left-color: var(--info-bd); }
.md-callout-info .md-callout-ikon, .md-callout-info .md-callout-judul { color: var(--info-fg); }
.md-callout-warning { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn-bd) 35%, transparent); border-left-color: var(--warn-bd); }
.md-callout-warning .md-callout-ikon, .md-callout-warning .md-callout-judul { color: var(--warn-fg); }
.md-callout-danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger-bd) 35%, transparent); border-left-color: var(--danger-bd); }
.md-callout-danger .md-callout-ikon, .md-callout-danger .md-callout-judul { color: var(--danger-fg); }
.md-callout code { background: color-mix(in srgb, var(--panel) 70%, transparent); }

.md-wadah-judul { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px !important; }

/* ---------- langkah (timeline) ---------- */
.md-steps { margin: 8px 0 28px; }
.md-langkah { position: relative; padding-left: 58px; }
.md-langkah::before { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; border-radius: 2px; background: linear-gradient(var(--accent-2), var(--line)); }
.md-langkah > h2, .md-langkah > h3 { position: static; margin-top: 30px; border-bottom: 0; padding-bottom: 0; min-height: 40px; display: flex; align-items: center; }
.md-langkah:first-child > h2, .md-langkah:first-child > h3 { margin-top: 12px; }
.md-langkah > h2::after { display: none; }
.md-langkah-no { position: absolute; left: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 17px/1 var(--font);
  color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand-3)); box-shadow: 0 0 0 5px var(--panel), 0 8px 18px -8px var(--brand-2); }
.md-langkah-isi { padding-bottom: 6px; }
.md-langkah-isi > :last-child { margin-bottom: 0; }
/* daftar bernomor di dalam :::steps */
.md-steps > ol, .md-langkah-isi .md-steps > ol { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: langkah; }
.md-steps > ol > li { position: relative; counter-increment: langkah; padding: 2px 0 14px 46px; margin: 0; }
.md-steps > ol > li::before { content: counter(langkah); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px/1 var(--font); color: var(--brand-2); background: var(--accent); border: 2px solid var(--accent-2); }
.md-steps > ol > li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.md-steps > ol > li:last-child { padding-bottom: 0; }
.md-steps > ol > li:last-child::after { display: none; }

/* ---------- kartu ringkasan ---------- */
.md-kartu { margin: 4px 0 26px; }
.md-kartu > ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; max-width: none; }
.md-kartu > ul > li { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); font-size: 15px; line-height: 1.45; font-weight: 600; max-width: none;
  box-shadow: var(--shadow); border-top: 3px solid var(--brand-3); }
.md-kartu > ul > li > strong:first-child { display: block; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 700; }

/* ---------- daftar periksa ---------- */
.md-checklist { margin: 0 0 24px; }
.md-checklist > ul { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; max-width: 78ch; }
.md-checklist > ul > li { margin: 0; max-width: none; }
.md-checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); cursor: pointer; transition: border-color .12s, background .12s; }
.md-checklist label:hover { border-color: var(--brand-3); }
.md-checklist input[type=checkbox] { flex: 0 0 auto; width: 19px; height: 19px; margin: 3px 0 0; transform: none; accent-color: var(--tip-bd); cursor: pointer; }
.md-checklist li.selesai label { background: var(--tip-bg); border-color: color-mix(in srgb, var(--tip-bd) 40%, transparent); }
.md-checklist li.selesai .md-cek-teks { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.md-cek-bar { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.md-cek-meter { flex: 1; max-width: 240px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.md-cek-meter i { display: block; height: 100%; width: 0; background: var(--tip-bd); transition: width .2s; }
.md-cek-ulang { border: 0; background: none; color: var(--brand-2); font: inherit; font-size: 13px; cursor: pointer; padding: 2px 4px; }
.md-cek-ulang:hover { text-decoration: underline; }

/* ---------- akordeon ---------- */
.md-akordeon { display: grid; gap: 10px; margin: 0 0 24px; max-width: 78ch; }
.md-akordeon-item { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; transition: border-color .12s; }
.md-akordeon-item[open] { border-color: var(--accent-2); box-shadow: var(--shadow); }
.md-akordeon-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 16px; }
.md-akordeon-item > summary::-webkit-details-marker { display: none; }
.md-akordeon-item > summary::after { content: ""; margin-left: auto; flex: 0 0 9px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.md-akordeon-item[open] > summary::after { transform: rotate(-135deg); }
.md-akordeon-item > summary:hover { background: var(--accent); }
.md-akordeon-item > summary > :is(h2, h3, h4, h5) { margin: 0; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); border: 0; padding: 0; }
.md-akordeon-item > summary > h2::after { display: none; }
.md-akordeon-isi { padding: 2px 16px 14px; }
.md-akordeon-isi > :last-child { margin-bottom: 0; }

/* ---------- tombol tema ---------- */
.tema-btn { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); cursor: pointer; padding: 0; transition: border-color .15s; }
.tema-btn:hover { border-color: var(--brand-3); }
.tema-btn svg { width: 18px; height: 18px; }
.tema-btn [data-ikon] { display: none; }
:root:not([data-theme]) .tema-btn [data-ikon="sistem"], :root[data-theme="light"] .tema-btn [data-ikon="terang"], :root[data-theme="dark"] .tema-btn [data-ikon="gelap"] { display: block; }

/* ---------- daftar isi HP (collapsible di atas) ---------- */
.toc-hp { display: none; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.toc-hp > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
.toc-hp > summary::-webkit-details-marker { display: none; }
.toc-hp > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.toc-hp[open] > summary::after { transform: rotate(-135deg); }
.toc-hp ul { list-style: none; margin: 0; padding: 0 8px 10px; }
.toc-hp li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); font-size: 14px; }
.toc-hp li.lv3 a { padding-left: 24px; font-size: 13px; color: var(--muted); }
.toc-hp li a:hover { background: var(--accent); text-decoration: none; }
@media (max-width: 1150px) { .toc-hp { display: block; } }

@media (max-width: 820px) {
  .doc { font-size: 16px; }
  .doc h2 { margin-top: 40px; font-size: 21px; }
  .md-langkah { padding-left: 48px; }
  .md-langkah::before { left: 16px; top: 40px; }
  .md-langkah-no { width: 34px; height: 34px; font-size: 15px; }
  .md-langkah > h2, .md-langkah > h3 { min-height: 34px; }
  .md-kartu > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .md-kartu > ul > li { padding: 12px; font-size: 14px; }
  .md-callout { padding: 12px 14px 12px 12px; gap: 10px; }
  .tema-btn { width: 34px; height: 34px; }
}
@media (max-width: 600px) {
  /* HP: nomor langkah sebaris dengan judul, tanpa garis, agar isi memakai lebar penuh */
  .md-langkah { padding-left: 0; }
  .md-langkah::before { display: none; }
  .md-langkah-no { position: static; flex: 0 0 34px; margin-right: 12px; box-shadow: 0 6px 14px -8px var(--brand-2); }
  .md-langkah > h2, .md-langkah > h3 { align-items: flex-start; }
  .md-langkah-isi { padding-left: 0; }
  .md-langkah + .md-langkah { border-top: 1px dashed var(--line-2); margin-top: 26px; }
  .doc { padding: 22px 16px; }
  .brand > span { display: none; }
  .top { gap: 10px; padding: 0 12px; }
}
@media (max-width: 340px) { .md-kartu > ul { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .tema-btn, .toc-hp, .md-salin, .md-cek-bar { display: none !important; }
  .md-akordeon-item > .md-akordeon-isi { display: block; }
  .md-callout { break-inside: avoid; }
}
/* HP: avatar akun tetap tampil (dulu ikut tersembunyi bersama nama); tautan panjang dipatahkan agar halaman tidak melebar */
@media (max-width: 820px) { .akun summary .avatar { display: grid; } .akun summary { padding: 4px; } }
.doc p, .doc li { overflow-wrap: anywhere; }
/* sel tabel tidak boleh menyempit sampai huruf per baris: lebar minimum, sisanya digulir menyamping */
.doc td, .doc th { overflow-wrap: break-word; }
.doc td { min-width: 9.5em; }
.doc td:first-child { min-width: 7.5em; }
.doc td:has(code) { min-width: 13em; }

/* ---------- rata kanan-kiri teks isi (permintaan user 2026-11-02) ----------
   Hanya paragraf & butir daftar di artikel (termasuk isi callout/langkah/akordeon/checklist). Judul, tabel, kode, chip,
   kartu ringkasan, daftar isi & sidebar tetap rata kiri. Baris terakhir paragraf tetap rata kiri (bawaan). Pemenggalan kata
   (hyphens + <html lang="id">) mencegah celah lebar; kode/URL di <code> tidak ikut direnggangkan atau dipenggal. */
.doc p, .doc li { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 6 3 3; }
.doc td p, .doc td li, .doc th p, .doc .md-kartu li, .doc .md-callout-judul, .doc .md-wadah-judul { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
.doc code, .doc kbd, .doc a[href^="http"] { -webkit-hyphens: manual; hyphens: manual; }
@media (max-width: 600px) {
  .doc p, .doc li { text-align: left; }   /* HP: kolom ±40 karakter → rata kanan-kiri menimbulkan celah lebar (diukur sampai 13× spasi) */
}
