/* Nice Pay docs — "sage mist" (decision 0055). Generated from src/theme.ts. */
:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --top-h: 56px;
  --bg: #eef2ee;
  --bg-grad: radial-gradient(1100px 520px at 90% -10%, rgb(134 167 143 / 0.16), transparent 60%), radial-gradient(900px 480px at -10% 110%, rgb(134 167 143 / 0.1), transparent 55%);
  --card: #fcfdfc; --elevated: #f3f6f3; --text: #1d2a22; --muted: #5f6e65; --line: #d9e2da; --line-strong: #c3d0c6;
  --brand: #a9c2b0; --brand-hover: #9ab5a2; --brand-soft: #e1eae2; --brand-softer: #ecf1ec; --brand-strong: #40604c; --on-brand: #15231b;
  --shadow: 0 6px 22px rgb(30 50 38 / 0.1);
  --ok: #2c7a4c; --info: #346aa3; --wait: #93650a; --hold: #7450a3; --bad: #b23f37; --off: #66706a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111613;
  --bg-grad: radial-gradient(1100px 520px at 90% -10%, rgb(143 176 154 / 0.1), transparent 60%), radial-gradient(900px 480px at -10% 110%, rgb(143 176 154 / 0.06), transparent 55%);
  --card: #19201c; --elevated: #202924; --text: #e3ebe5; --muted: #93a399; --line: #2a352f; --line-strong: #3a4840;
  --brand: #8fb09a; --brand-hover: #9fbfa9; --brand-soft: #253129; --brand-softer: #1e2722; --brand-strong: #a9c9b3; --on-brand: #0f1a14;
  --shadow: 0 8px 28px rgb(0 0 0 / 0.4);
  --ok: #7fcf9c; --info: #8bb6ea; --wait: #e0b860; --hold: #c3a6ea; --bad: #f0958b; --off: #9aa59e;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #111613;
  --bg-grad: radial-gradient(1100px 520px at 90% -10%, rgb(143 176 154 / 0.1), transparent 60%), radial-gradient(900px 480px at -10% 110%, rgb(143 176 154 / 0.06), transparent 55%);
  --card: #19201c; --elevated: #202924; --text: #e3ebe5; --muted: #93a399; --line: #2a352f; --line-strong: #3a4840;
  --brand: #8fb09a; --brand-hover: #9fbfa9; --brand-soft: #253129; --brand-softer: #1e2722; --brand-strong: #a9c9b3; --on-brand: #0f1a14;
  --shadow: 0 8px 28px rgb(0 0 0 / 0.4);
  --ok: #7fcf9c; --info: #8bb6ea; --wait: #e0b860; --hold: #c3a6ea; --bad: #f0958b; --off: #9aa59e;
  color-scheme: dark;
}

/* The colour code: one tone per state (ok, info, wait, hold, bad, off), one per HTTP method. */
[data-tone="ok"] { --tone: var(--ok); } [data-tone="info"] { --tone: var(--info); } [data-tone="wait"] { --tone: var(--wait); }
[data-tone="hold"] { --tone: var(--hold); } [data-tone="bad"] { --tone: var(--bad); } [data-tone="off"] { --tone: var(--off); }
.method.get { --tone: var(--ok); } .method.post { --tone: var(--info); } .method.put { --tone: var(--wait); }
.method.patch { --tone: var(--hold); } .method.delete { --tone: var(--bad); }

/* ── Base ── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed; color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-strong); font-weight: 550; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-strong) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; border-radius: 6px; }
p { margin: 0 0 14px; }
small { font-size: 12.5px; color: var(--muted); }
svg.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.18em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font: 0.875em/1.4 var(--mono); background: var(--brand-softer); border: 1px solid var(--line); padding: 0.08em 0.36em; border-radius: 6px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
a code { color: inherit; }
code.wrap { word-break: break-all; }

/* ── Top bar ── */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 8px; padding: 0 12px; background: color-mix(in srgb, var(--card) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 16.5px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; margin-right: auto; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand .tile { fill: var(--brand); } .brand .mark { fill: none; stroke: var(--on-brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; } .brand .spot { fill: var(--on-brand); }
.brand .tag { font-weight: 650; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-strong); background: var(--brand-soft); border-radius: 999px; padding: 2px 9px; }
.version { display: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.btn, .icon-btn { font: inherit; font-weight: 650; font-size: 13.5px; line-height: 1.25; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background 0.12s, border-color 0.12s; -webkit-tap-highlight-color: transparent; }
.btn:hover, .icon-btn:hover { background: var(--brand-softer); border-color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.lg { min-height: 46px; padding: 11px 20px; font-size: 15px; border-radius: 12px; }
.icon-btn { width: 38px; padding: 0; }
.icon-btn svg.i { width: 18px; height: 18px; }
.top .btn .label { display: none; }
.top .btn { width: 38px; padding: 0; }
/* The theme button shows where a press leads: the moon in light, the sun in dark. */
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: inline; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .i-sun { display: inline; } :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; } }
html:not(.js) .theme-btn { display: none; }

/* ── Navigation: a full-height sheet under the bar on a phone (a checkbox, so it works without script) ── */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.menu-btn .i-x { display: none; }
.nav-toggle:checked ~ .top .menu-btn .i-x { display: inline; } .nav-toggle:checked ~ .top .menu-btn .i-menu { display: none; }
.nav-toggle:checked ~ .top .menu-btn { background: var(--brand-soft); border-color: var(--brand); }
.nav-toggle:focus-visible ~ .top .menu-btn { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
html:has(.nav-toggle:checked) { overflow: hidden; }
nav.side { display: none; position: fixed; inset: var(--top-h) 0 0 0; z-index: 25; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding: 6px 12px 40px; font-size: 15px; }
.nav-toggle:checked ~ .shell nav.side { display: block; animation: sheet-in 0.18s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-6px); } }
nav.side ul, aside.toc ul { list-style: none; margin: 0; padding: 0; }
.nav-title { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 18px 0 6px; padding: 0 10px; }
.nav-title svg.i { width: 15px; height: 15px; color: var(--brand-strong); }
nav.side a { display: flex; align-items: center; min-height: 42px; padding: 6px 10px; border-radius: 10px; color: var(--text); font-weight: 500; text-decoration: none; }
nav.side a:hover { background: var(--brand-softer); }
nav.side a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
nav.side .nav-foot { margin: 22px 10px 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
aside.toc { display: none; }

/* ── The page ── */
.shell { max-width: 1320px; margin: 0 auto; }
main { min-width: 0; padding: 22px 16px 56px; }
main > :first-child { margin-top: 0; }
main h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin: 4px 0 12px; overflow-wrap: anywhere; }
main h1 code { font-size: 0.8em; }
main h2 { font-size: 20.5px; line-height: 1.3; letter-spacing: -0.01em; margin: 38px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
main h3 { font-size: 16.5px; margin: 26px 0 8px; }
main h4 { font-size: 15px; margin: 20px 0 6px; }
main ul, main ol { margin: 0 0 14px; padding-left: 22px; }
main li { margin: 5px 0; }
main li::marker { color: var(--brand-strong); font-weight: 650; }
a.anchor { color: inherit; text-decoration: none; font-weight: inherit; }
a.anchor::after { content: "#"; margin-left: 8px; color: var(--brand-strong); opacity: 0; transition: opacity 0.12s; font-weight: 500; }
a.anchor:hover::after, a.anchor:focus-visible::after { opacity: 0.75; }
.lead { font-size: 17.5px; color: var(--muted); }
h1 + p { font-size: 17.5px; color: var(--muted); }

/* Home: a small picture and the two ways in. */
.hero-art { display: flex; justify-content: center; margin: 0 0 6px; }
svg.art { width: 150px; height: 118px; }
.art .soft { fill: var(--brand-soft); } .art .paper { fill: var(--card); } .art .mid { fill: var(--brand); } .art .ink-fill { fill: var(--brand-strong); }
.art .ink { stroke: var(--brand-strong); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } .art .none { fill: none; }
.art .trace { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; } .art .tick { fill: none; stroke: var(--on-brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.art .accent { fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; }
.cta { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 20px; }

/* ── Tables ── */
.table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); scrollbar-width: thin; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; }
th { background: var(--elevated); color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
td { border-top: 1px solid var(--line); min-width: 8ch; }
td:first-child { font-weight: 550; }
td code { white-space: nowrap; overflow-wrap: normal; }
td code.wrap, td pre code { white-space: pre; }
td code.wrap { white-space: normal; }
td .method { margin-right: 4px; }
/* Phone: one card per row; a cell after the first names its column. */
@media (max-width: 719.98px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; }
  table.stack tr { padding: 11px 14px; border-top: 1px solid var(--line); }
  table.stack tr:first-child { border-top: 0; }
  table.stack td { border: 0; padding: 0; min-width: 0; margin-top: 5px; }
  table.stack td:first-child { margin-top: 0; font-weight: 650; }
  table.stack td:empty { display: none; }
  table.stack td[data-label]::before { content: attr(data-label); margin-right: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
  table.stack td code { white-space: normal; overflow-wrap: anywhere; }
  table.stack td code.state, table.stack td code.ep { white-space: nowrap; }
}

/* ── Code ── */
.codeblock, .tabs { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.codebar, .tab-list { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 5px 8px 5px 14px; background: var(--elevated); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.codebar .lang { font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 11.5px; }
.tab-list { padding-left: 8px; flex-wrap: wrap; }
.tab-list button[data-tab] { font: inherit; font-weight: 650; min-height: 30px; padding: 4px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.tab-list button[data-tab]:hover { background: var(--brand-softer); color: var(--text); }
.tab-list button[data-tab].active { background: var(--card); border-color: var(--line-strong); color: var(--brand-strong); }
.tab-list .ran { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; color: var(--ok); font-weight: 650; }
.tab-list .ran code { display: none; }
.copy { margin-left: auto; font: inherit; font-weight: 650; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--card); color: var(--text); cursor: pointer; }
.copy:hover { background: var(--brand-softer); border-color: var(--brand); }
.copy.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.copy svg.i { width: 14px; height: 14px; }
pre.code { margin: 0; padding: 14px 16px; overflow-x: auto; font: 13px/1.6 var(--mono); tab-size: 2; scrollbar-width: thin; }
pre.code code { background: none; border: 0; padding: 0; font: inherit; overflow-wrap: normal; white-space: pre; }
pre.code.small { padding: 8px 10px; font-size: 11.5px; background: var(--elevated); border: 1px solid var(--line); border-radius: 8px; max-width: 46ch; }
pre.code[hidden] { display: none; }
.tk-c { color: var(--muted); font-style: italic; } .tk-s { color: var(--ok); } .tk-k { color: var(--hold); } .tk-n { color: var(--wait); } .tk-p { color: var(--info); }
details { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
details summary { cursor: pointer; padding: 10px 14px; color: var(--brand-strong); font-weight: 650; font-size: 14px; }
details summary:hover { background: var(--brand-softer); }
details[open] summary { border-bottom: 1px solid var(--line); background: var(--elevated); }
details .codeblock { margin: 0; border: 0; border-radius: 0; }

/* ── Callouts ── */
blockquote.callout { display: flex; gap: 11px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--tone) 32%, var(--line)); border-left-width: 4px; border-left-color: var(--tone); border-radius: 12px; background: color-mix(in srgb, var(--tone) 9%, var(--card)); --tone: var(--info); }
blockquote.callout > svg.i { width: 19px; height: 19px; margin-top: 3px; color: var(--tone); }
blockquote.callout p { margin: 0; min-width: 0; }
blockquote.warning { --tone: var(--wait); }
blockquote.money { --tone: var(--bad); }

/* ── Chips and pills: HTTP methods, states, facts ── */
.method { display: inline-block; font: 700 11.5px/1 var(--mono); letter-spacing: 0.04em; padding: 4px 7px; border-radius: 6px; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); vertical-align: 1px; white-space: nowrap; }
code.ep { background: none; border: 0; padding: 0; white-space: nowrap; overflow-wrap: normal; }
code.ep .method { margin-right: 6px; }
code.state { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 1px 9px 1px 6px; font-weight: 650; font-size: 12.5px; line-height: 1.55; white-space: nowrap; overflow-wrap: normal; vertical-align: 0.5px; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
code.state svg.i { width: 12.5px; height: 12.5px; vertical-align: 0; stroke-width: 2.2; }
.http { display: inline-block; font: 700 12px/1 var(--mono); padding: 4px 7px; border-radius: 6px; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); white-space: nowrap; }
.states { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 13.5px; color: var(--muted); }
.states span { display: inline-flex; align-items: center; gap: 6px; }
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 1px 0 rgb(0 0 0 / 0.02); }
.endpoint .path { font: 650 14.5px/1.4 var(--mono); background: none; border: 0; padding: 0; }
.endpoint .more { margin-left: auto; font-size: 13.5px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--muted); }
main ul.facts { padding: 0; }
.facts li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.facts li svg.i { width: 14px; height: 14px; color: var(--brand-strong); }
.facts li.test { color: var(--wait); border-color: color-mix(in srgb, var(--wait) 34%, var(--line)); }
.facts li.test svg.i { color: inherit; }
.op-toc { list-style: none; margin: 0 0 8px; padding: 4px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
main ul.op-toc { padding: 4px 0; }
.op-toc li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 2px 10px; align-items: baseline; margin: 0; padding: 8px 14px; font-size: 14px; }
.op-toc li + li { border-top: 1px solid var(--line); }
.op-toc .method { justify-self: start; }
.op-toc .what { grid-column: 2; color: var(--muted); font-size: 13.5px; }
section.operation { margin-bottom: 44px; }

/* Test vectors: one card each — what goes in, what must come out. */
.vectors { display: grid; gap: 10px; margin: 0 0 18px; }
details.vector { margin: 0; }
details.vector summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 11px 14px; color: var(--text); font-weight: 400; }
details.vector summary strong { font: 700 14.5px/1.4 var(--mono); color: var(--brand-strong); }
.vector .algo { font: 700 11px/1 var(--mono); letter-spacing: 0.04em; padding: 4px 7px; border-radius: 6px; color: var(--brand-strong); background: var(--brand-soft); }
.vector .v-note { flex-basis: 100%; color: var(--muted); font-size: 13.5px; }
.vector dl { margin: 0; padding: 0 14px 6px; font-size: 13.5px; }
.vector dl > div { display: grid; gap: 2px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.vector dl > div:last-child { border-bottom: 0; }
.vector dt { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.vector dt code, .vector dd code { background: none; border: 0; padding: 0; }
.vector dd { margin: 0; min-width: 0; }
.vector .codeblock { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
@media (min-width: 560px) { .vector dl > div { grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: baseline; } }

/* ── Foot of a page: the previous and next page in reading order ── */
.pager { display: grid; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; color: var(--text); }
.pager a:hover { border-color: var(--brand); background: var(--brand-softer); }
.pager a small { display: flex; align-items: center; gap: 5px; font-weight: 650; }
.pager a.next { text-align: right; } .pager a.next small { justify-content: flex-end; }
.pager a b { font-weight: 700; color: var(--brand-strong); }

/* ── Wider screens ── */
@media (min-width: 560px) {
  .version { display: inline; }
  .top .btn { width: auto; padding: 8px 14px; } .top .btn .label { display: inline; }
  .tab-list .ran code { display: inline; background: none; border: 0; padding: 0; color: var(--muted); font-weight: 450; }
  .cta { flex-direction: row; flex-wrap: wrap; }
  .pager { grid-template-columns: 1fr 1fr; } .pager a.next { grid-column: 2; }
  main { padding: 26px 24px 64px; }
}
@media (min-width: 900px) {
  .top { padding: 0 22px; }
  .menu-btn { display: none; }
  html:has(.nav-toggle:checked) { overflow: visible; }
  .shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 10px; padding: 0 12px; }
  nav.side, .nav-toggle:checked ~ .shell nav.side { display: block; position: sticky; inset: auto; top: var(--top-h); align-self: start; z-index: auto; max-height: calc(100dvh - var(--top-h)); background: none; padding: 8px 6px 32px; font-size: 14px; animation: none; scrollbar-width: thin; }
  nav.side a { min-height: 0; padding: 3px 10px; border-radius: 8px; line-height: 1.5; }
  nav.side .nav-title { margin: 13px 0 3px; }
  nav.side .nav-foot { display: none; }
  main { padding: 30px 30px 72px; max-width: 860px; }
  main h1 { font-size: 34px; }
  main h2 { font-size: 22px; }
  .hero-art { float: right; margin: -8px 0 8px 24px; }
  svg.art { width: 190px; height: 150px; }
}
@media (min-width: 1200px) {
  .shell { grid-template-columns: 250px minmax(0, 1fr) 220px; }
  aside.toc { display: block; position: sticky; top: var(--top-h); align-self: start; max-height: calc(100dvh - var(--top-h)); overflow-y: auto; padding: 30px 6px 32px; font-size: 13px; scrollbar-width: thin; }
  aside.toc .nav-title { padding: 0 12px; margin-top: 4px; }
  aside.toc a { display: block; padding: 4px 12px; border-left: 2px solid var(--line); color: var(--muted); font-weight: 500; text-decoration: none; }
  aside.toc a:hover { color: var(--text); border-left-color: var(--line-strong); }
  aside.toc a.here { color: var(--brand-strong); border-left-color: var(--brand-strong); font-weight: 650; }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle:checked ~ .shell nav.side { animation: none; } }
@media print { .top, nav.side, aside.toc, .pager, .copy { display: none; } body { background: #fff; } }
/* On a touch screen every control is a full-size target (decision 0073). */
@media (pointer: coarse) { .btn, .icon-btn { min-height: 44px; } .icon-btn { width: 44px; } }
