/* 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; }
.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; } }
