:root {color-scheme:dark;--bg:#23262c;--panel:#2c3037;--ink:#f2f1f4;--muted:#c4c7ce;--sub:#a1a6b0;--line:#454a53;--blue:#a4d9e4;--pink:#efabcd;--header-height:64px;scroll-padding-top:calc(var(--header-height) + 8px)}
* {box-sizing:border-box}
body {margin:0;background:var(--bg);color:var(--ink);font:16px/1.58 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a {color:var(--blue);text-underline-offset:3px}
a:focus-visible,select:focus-visible {outline:2px solid var(--pink);outline-offset:3px}
svg {width:1em;height:1em;display:block}
i:has(svg) {display:inline-flex;align-items:center;justify-content:center;font-style:normal;flex:none}
.frame {width:min(1090px,calc(100% - 64px));margin-inline:auto}
.top {position:sticky;top:0;z-index:1;height:var(--header-height);background:#202227;border-bottom:1px solid #43474e}
.top .frame {height:100%;display:flex;align-items:center;justify-content:space-between}
.brand,.open-studio {text-decoration:none;color:var(--ink)}
.brand {display:flex;align-items:center;gap:10px;font-size:16px;font-weight:720;letter-spacing:-.4px}
.brand img {object-fit:contain;mix-blend-mode:screen}
.open-studio {font-size:13px;border:1px solid var(--line);border-radius:5px;padding:4px 11px}
.open-studio:hover,.pager a:hover {background:#373c45}
.layout {display:grid;grid-template-columns:226px minmax(0,1fr);gap:clamp(32px,5vw,70px);align-items:start;padding:36px 0 60px}
@media screen and (min-width:741px) {
    .layout {padding-bottom:0}
    .layout > article {padding-bottom:60px}
}
aside {position:sticky;top:calc(var(--header-height) + 16px);max-height:calc(100dvh - var(--header-height) - 24px);overflow:auto;padding:0 12px 14px 0}
aside h1 {font-size:25px;letter-spacing:-1px;line-height:1.2;margin:0 0 22px}
nav h3 {color:var(--sub);font-size:11px;font-weight:650;letter-spacing:.04em;margin:19px 0 5px 9px}
nav a {color:var(--muted);display:flex;align-items:center;gap:9px;text-decoration:none;font-size:13px;line-height:1.35;padding:8px 8px;border-left:2px solid transparent;border-radius:0 3px 3px 0}
nav a svg {width:15px;height:15px}
nav a:hover {background:#2c3036;color:white}
nav a[aria-current] {color:#f6d6e6;border-color:var(--pink);background:#383037}
article {min-width:0}
.chapter {padding:0 0 25px}
.chapter + .chapter {padding-top:20px}
.paged .chapter {padding-top:0}
.chapter-title {display:flex;align-items:center;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.chapter-title > i {color:var(--pink);border:1px solid #604856;background:#382f37;width:50px;height:50px;border-radius:10px}
.chapter-title svg {width:27px;height:27px}
.chapter-title p {font-size:12px;color:var(--pink);font-weight:600;margin:0 0 3px}
h2 {margin:0;color:var(--ink);font-size:clamp(28px,3.6vw,43px);line-height:1.08;letter-spacing:-.045em}
h2:focus {outline:none}
.chapter h3 {font-size:18px;letter-spacing:-.02em;line-height:1.3;margin:25px 0 5px;display:flex;align-items:center;gap:8px}
.chapter h3 svg {width:17px;height:17px}
p,li {color:var(--muted);margin:7px 0}
strong,b {color:var(--ink);font-weight:650}
.lead {font-size:19px;line-height:1.45;letter-spacing:-.015em;color:#e0e2e6;margin:19px 0 22px;max-width:60ch}
ol {padding-inline-start:1.4rem}
li {margin:.55em 0}
li::marker {color:var(--pink);font-weight:650}
.steps {list-style:none;counter-reset:step;padding:0;margin:18px 0}
.steps li {position:relative;counter-increment:step;padding:10px 0 12px 37px;border-top:1px solid #373c43;margin:0}
.steps li::before {content:counter(step);position:absolute;top:12px;left:0;border-radius:4px;border:1px solid #575761;background:var(--panel);color:var(--ink);font:600 12px/22px ui-monospace,monospace;width:22px;text-align:center}
.steps li>b {display:block;margin-bottom:3px}
.note {background:#29353a;border-inline-start:3px solid #92cbd7;border-radius:0 4px 4px 0;padding:13px 18px;margin-top:22px}
.note p {font-size:14px}
table {width:100%;border-collapse:collapse;font-size:14px}
td,th {padding:9px 5px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th {color:var(--blue)}
td:last-child,#page-count {font-family:ui-monospace,monospace}
.pager {border-top:1px solid var(--line);padding-top:18px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;font-size:13px}
.pager a {border:1px solid var(--line);border-radius:4px;padding:6px 11px;text-decoration:none;color:var(--ink);justify-self:start}
#page-count {grid-column:2;color:var(--sub);font-size:12px}
#next {grid-column:3;justify-self:end}
[hidden],.mobile-topics {display:none!important}
.skip {position:fixed;top:-80px;left:8px;background:var(--bg);padding:8px;z-index:2}
.skip:focus {top:4px}
html[data-drive-shop] .local-only,html:not([data-drive-shop]) .shop-only{display:none}
@media(max-width:740px) {
    :root {--header-height:50px}
    .frame {width:calc(100% - 32px)}
    .layout {display:block;padding:16px 0 36px} aside {position:static;max-height:none;padding:0;margin-bottom:20px}
    aside h1 {font-size:20px;margin-bottom:8px} .paged nav {display:none}
    .paged .mobile-topics {display:flex!important;align-items:center;gap:10px;color:var(--sub);font-size:12px}
    select {min-width:0;max-width:100%;font:inherit;font-size:14px;background:var(--panel);color:var(--ink);border:1px solid var(--line);padding:7px;border-radius:4px}
    .chapter-title {gap:10px;padding-bottom:12px} .chapter-title>i {width:38px;height:38px;border-radius:6px} .chapter-title svg {width:22px;height:22px}
    .lead {font-size:17px} body {font-size:15px}
}
@media print {
    :root {color-scheme:light;--bg:white;--ink:black;--muted:#222;--sub:#444;--line:#ddd;--blue:#23424a;--pink:#553348}
    body {font-size:11pt}.frame {width:100%}.layout {display:block;padding:0}aside,.top,.skip,.pager {display:none!important}
    .chapter[hidden] {display:block!important}.chapter {break-before:page}.chapter:first-child {break-before:auto}.lead {color:#333}
    .chapter-title>i,.note {background:transparent}.chapter-title,h3 {break-after:avoid}.note,tr {break-inside:avoid}
}
