/* Base: reset, type, links, focus, utilities. Reads only the tokens of css/tokens.css. */
* { box-sizing: border-box; }
html { font-size: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--fw-regular) var(--fs-md)/var(--lh-body) var(--font-sans); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--text); line-height: var(--lh-tight); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); font-weight: var(--fw-bold); margin: var(--sp-1) 0 var(--sp-2); letter-spacing: -.02em; }
h2 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); margin: var(--sp-6) 0 var(--sp-3); }
h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); margin: var(--sp-5) 0 var(--sp-2); }
h4 { font-size: var(--fs-md); font-weight: var(--fw-semibold); margin: var(--sp-4) 0 var(--sp-2); }
p { margin: 0 0 var(--sp-3); }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a { color: var(--accent); }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
::placeholder { color: var(--muted); opacity: 1; } /* the browser default grey is 3.9:1 on the dark page; Firefox also dims it */
::selection { background: var(--accent-soft); color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible, main:focus-visible {
  outline: var(--ring) solid var(--focus); outline-offset: 2px;
}
[hidden] { display: none !important; } /* button's display: inline-flex would otherwise show a hidden button (Re-test connection) */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--text); padding: var(--sp-2) var(--sp-3); z-index: var(--z-toast); border-radius: var(--r-md); box-shadow: var(--sh-2); }
.skip:focus { left: var(--sp-2); top: var(--sp-2); }
.note { color: var(--text-2); font-size: var(--fs-sm); }
.err { color: var(--err); font-weight: var(--fw-semibold); }
.num { font-variant-numeric: tabular-nums; }
.mono, code, kbd, pre { font-family: var(--font-mono); }
code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: var(--r-sm); }
pre { overflow: auto; max-width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); font-size: var(--fs-sm); }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-5) 0; }
svg.ic, .ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 1em; height: 1em; }
.ic.lg { width: 1.75em; height: 1.75em; }
.ic-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Motion (design 4): the system setting turns it off unless the user chose Allow; the user's Reduce turns it off at any system setting. */
@media (prefers-reduced-motion: reduce) { :root:not([data-motion="allow"]) * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
:root[data-motion="reduce"] * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media print { body { background: #fff; color: #000; } }
