/* Document pages (guide, changelog, licence, 404): same tokens and type as the landing page, laid out for long reading. */
:root {
    --canvas: #1c1c1f;
    --chrome: #141416;
    --chrome-2: #1e1e24;
    --chrome-3: #282830;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.16);
    --text: #f4f4f6;
    --soft: #a1a1aa;
    --ink: #17161a;
    --accent: #f59e0b;
    --accent-hover: #fbbf24;
    --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
    --appbar: 56px;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--appbar) + 24px); background: var(--canvas); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 16px/1.7 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html[lang="id"] [data-l="en"], html[lang="en"] [data-l="id"] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--accent); color: var(--ink); padding: 8px 12px; }

.appbar {
    position: sticky; top: 0; z-index: 30; height: var(--appbar);
    display: flex; align-items: center; gap: 18px; padding: 0 16px;
    background: var(--chrome); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 6px; }
.appbar nav { display: flex; gap: 4px; margin-left: 8px; }
.appbar nav a { color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 6px; }
.appbar nav a:hover { color: var(--text); background: var(--chrome-2); }
.appbar nav a[aria-current="page"] { color: var(--text); background: var(--chrome-3); }
.appbar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.lang button { font: 600 12px/1 var(--sans); padding: 8px 10px; min-width: 38px; min-height: 32px; border: 0; background: transparent; color: var(--soft); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--chrome-3); color: var(--text); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: 8px; text-decoration: none; font: 700 14px/1 var(--sans); border: 1.5px solid transparent; cursor: pointer;
}
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--chrome-2); color: var(--text); }
@media (max-width: 720px) { .appbar nav { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* Two columns on wide screens: a sticky contents list and one reading column. */
.layout { display: grid; gap: 40px; max-width: 1120px; margin: 0 auto; padding: 48px 20px 80px; }
@media (min-width: 1000px) { .layout.has-toc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
.toc { font-size: 14px; }
@media (min-width: 1000px) { .toc-inner { position: sticky; top: calc(var(--appbar) + 24px); max-height: calc(100vh - var(--appbar) - 48px); overflow-y: auto; } }
.toc details { border: 1px solid var(--line-2); border-radius: 8px; background: var(--chrome); }
.toc summary { cursor: pointer; padding: 12px 14px; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0 6px 8px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 7px 8px; border-radius: 5px; color: var(--soft); text-decoration: none; line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 400 11px/1.6 var(--mono); color: var(--soft); opacity: .7; }
.toc a:hover { color: var(--text); background: var(--chrome-2); }
.toc a[aria-current="true"] { color: var(--accent); background: rgba(245, 158, 11, .12); }
.toc a[aria-current="true"]::before { color: var(--accent); opacity: 1; }
@media (min-width: 1000px) { .toc details { border: 0; background: none; } .toc summary { pointer-events: none; padding: 0 8px 10px; list-style: none; color: var(--soft); font: 500 12px/1 var(--mono); } .toc summary::-webkit-details-marker { display: none; } }

.doc { min-width: 0; max-width: 72ch; }
.doc-head { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.kicker { margin: 0 0 12px; font: 500 12px/1 var(--mono); color: var(--accent); }
.doc h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.doc-lede { margin: 16px 0 0; font-size: 18px; color: var(--soft); }
.updated { margin: 12px 0 0; font: 400 13px var(--mono); color: var(--soft); }
.doc h2 { margin: 56px 0 14px; font-weight: 800; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.doc-head + section > h2:first-child, .doc-head + h2 { margin-top: 0; }
.doc h3 { margin: 32px 0 8px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #d4d4d8; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc ol > li::marker { font: 500 13px var(--mono); color: var(--accent); }
.doc strong { color: var(--text); }
.doc code, .doc kbd { font: 400 13px var(--mono); background: var(--chrome-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--text); }
.doc section { scroll-margin-top: calc(var(--appbar) + 24px); }

/* Screenshot of the real panel, framed like the panel window. */
.shot { margin: 20px 0 24px; max-width: 360px; }
.shot img { background: var(--chrome); padding: 6px; border-radius: 10px; border: 1px solid var(--line-2); }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--soft); }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0 24px; }
.shots .shot { margin: 0; }

.box { margin: 20px 0; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--chrome); }
.box-title { display: block; margin-bottom: 4px; font-weight: 700; color: var(--text); }
.box p:last-child { margin-bottom: 0; }
.box-warn { border-color: rgba(245, 158, 11, .5); }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: #d4d4d8; }
thead th { font: 500 12px/1.3 var(--mono); color: var(--soft); border-bottom: 1px solid var(--line-2); }
td:first-child { color: var(--text); font-weight: 500; }

.steps-list { list-style: none; padding: 0 !important; counter-reset: s; }
.steps-list > li { counter-increment: s; position: relative; padding-left: 44px; margin: 0 0 16px; }
.steps-list > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: 500 12px/1 var(--mono); color: var(--accent); border: 1px solid rgba(245, 158, 11, .5); border-radius: 5px; padding: 5px 6px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 700; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 14px; }

.help { margin-top: 56px; padding: 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--chrome); }
.help h2 { margin: 0 0 8px !important; font-size: 22px !important; }
.help .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Changelog */
.release { padding: 28px 0; border-top: 1px solid var(--line-2); }
.release:first-of-type { border-top: 0; padding-top: 0; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.release-head h2 { margin: 0 !important; }
.release-date { font: 400 13px var(--mono); color: var(--soft); }
.release-tag { font: 700 11px/1 var(--sans); color: var(--accent); border: 1px solid rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .12); padding: 5px 8px; border-radius: 999px; }

/* 404 */
.lost { min-height: calc(100vh - var(--appbar) - 90px); display: grid; place-items: center; padding: 48px 20px; text-align: center; }
.lost-code { font: 500 13px var(--mono); color: var(--accent); margin: 0 0 14px; }
.lost h1 { margin: 0 auto; max-width: 18ch; font-weight: 800; font-size: clamp(34px, 6vw, 56px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.lost p { margin: 16px auto 0; max-width: 46ch; color: var(--soft); }
.lost .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding: 28px 20px 40px; max-width: 1120px; margin: 0 auto; font-size: 13px; color: var(--soft); border-top: 1px solid var(--line); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: var(--text); }
