/* Etorm site: monochrome, minimal, cinematic. Large type, long quiet scenes, hairlines, line drawings in letterbox frames. One sans and one mono system stack; no images, no scripts, no accent colour. Motion is optional and lives here only. */
:root {
  color-scheme: light dark;
  --bg: #fff; --fg: #111; --muted: #595959; --line: #d9d9d9; --panel: #f6f6f6;
  --ok: #1a7f37; --warn: #9a6700; --bad: #c62828;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 0;
  --pad: clamp(1.1rem, 5vw, 6rem);
  --pad-l: max(var(--pad), env(safe-area-inset-left));
  --pad-r: max(var(--pad), env(safe-area-inset-right));
  --pad-t: clamp(2rem, 4vw, 4rem);
  --slate-gap: clamp(3rem, 8vw, 7rem);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0b0b; --fg: #ededed; --muted: #a3a3a3; --line: #2e2e2e; --panel: #151515; --ok: #4cc26a; --warn: #e0b341; --bad: #ff7b72; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--sans); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--fg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
::selection { background: var(--fg); color: var(--bg); }
code, pre { font-family: var(--mono); }
code { overflow-wrap: anywhere; font-size: .86em; }
img, svg { max-width: 100%; }
table { overflow-wrap: anywhere; }

/* header: a quiet line of small capitals; the mark is an inverted square */
header { background: var(--bg); }
nav { max-width: none; margin: 0; padding: 1.4rem var(--pad-r) 1.4rem var(--pad-l); display: flex; align-items: center; gap: .5rem 2.25rem; flex-wrap: wrap; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; text-decoration-color: var(--fg); }
.brand { font-weight: 700; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--fg); margin-right: auto; }
.brand b { display: inline-block; font-weight: inherit; background: var(--fg); color: var(--bg); padding: 0 .36em; margin-right: .12em; }
.brand .sub { color: var(--muted); font-weight: 400; }
nav a.btn { color: var(--fg); }

.btn { display: inline-block; padding: .7rem 1.25rem; border: 1px solid var(--fg); border-radius: var(--radius); color: var(--fg); text-decoration: none; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; background: transparent; }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.solid, nav a.btn.solid { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn.solid:hover, nav a.btn.solid:hover { background: transparent; color: var(--fg); }
.btn.big { padding: .95rem 1.6rem; }

main { max-width: none; margin: 0; padding: var(--pad-t) var(--pad-r) clamp(4rem, 9vw, 9rem) var(--pad-l); counter-reset: sec; }
.tag { margin: 0 0 1.5rem; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
h1 { font-size: clamp(2.5rem, 6.2vw + .6rem, 6.75rem); line-height: .98; margin: 0 0 1.75rem; font-weight: 500; letter-spacing: -.045em; max-width: 16ch; overflow-wrap: anywhere; text-wrap: balance; }
h1 em { font-style: normal; color: var(--muted); }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.4rem); font-weight: 500; color: var(--fg); letter-spacing: -.03em; margin: clamp(5rem, 10vw, 9rem) 0 2rem; line-height: 1.1; text-wrap: balance; }
main > h2 { counter-increment: sec; }
main > h2::before { content: counter(sec, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .2em; color: var(--muted); margin-bottom: 1.1rem; }
h2 + .sect { margin-top: -1rem; }
h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1rem; max-width: 66ch; }
.lead { font-size: clamp(1.1rem, .9vw + .9rem, 1.5rem); color: var(--muted); max-width: 46ch; line-height: 1.45; letter-spacing: -.01em; }
.sect { color: var(--muted); max-width: 60ch; margin: 0 0 2.25rem; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2.5rem 0 0; }
.spaced { margin-top: 1.25rem; }

/* slate: one line that names the page, as on a film slate */
.titleblock { display: flex; flex-wrap: wrap; gap: .2rem 0; margin: 0 0 var(--slate-gap); font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.titleblock div { display: flex; min-width: 0; }
.titleblock div + div::before { content: "/"; margin: 0 1rem; color: var(--line); }
.titleblock dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.titleblock dd { margin: 0; overflow-wrap: anywhere; }
.titleblock div:first-child dd { color: var(--fg); }
.titleblock dd a { color: var(--muted); text-decoration-color: var(--line); }

/* opening scene: a headline alone on the screen, then the wire */
.hero { min-height: calc(100vh - 13.6rem); min-height: calc(100svh - 13.6rem); display: flex; flex-direction: column; justify-content: flex-start; margin: 0; padding: 0; }
.titleblock + .hero { margin-top: calc(3rem - var(--slate-gap)); }
.hero h1 { max-width: 12ch; }
.hero .lead { max-width: 44ch; }
.hero .cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.hero .cols > * { min-width: 0; }
/* the wire: a static drawing; the packets on it are HTML elements moved by transform only, so the compositor animates them without style, layout or paint work */
.wire { position: relative; flex: none; margin: auto calc(-1 * var(--pad-r)) 0 calc(-1 * var(--pad-l)); padding-top: 2.5rem; overflow: hidden; contain: layout paint; }
.wire svg { display: block; width: 100%; max-width: none; height: auto; }
.wire .lane { position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 10 / 1; pointer-events: none; }
.wire .pkt { position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--fg); transform: translateX(-10px); }
.wire .w { fill: none; stroke: var(--fg); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wire .q { fill: none; stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wire .n { fill: var(--bg); stroke: var(--fg); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wire text { fill: var(--muted); font: 400 9px var(--mono); letter-spacing: .16em; }

/* scenes: one idea on a screen. Words on the left, a letterbox frame on the right */
.scene { min-height: 82vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; padding: clamp(3.5rem, 8vw, 8rem) 0; border-top: 1px solid var(--line); }
.scene > * { min-width: 0; }
.scene .no { margin: 0 0 2rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; color: var(--muted); }
.scene h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 3.4vw + .8rem, 4.25rem); letter-spacing: -.04em; line-height: 1; max-width: 12ch; }
.scene p { color: var(--muted); max-width: 40ch; font-size: clamp(1rem, .5vw + .9rem, 1.2rem); line-height: 1.5; }
.scene .st { margin: 2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg); }
.scene .st a { text-decoration-color: var(--muted); }
.frame { margin: 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); aspect-ratio: 2.39 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); }
.frame svg { display: block; width: 100%; height: 100%; }
.frame pre { margin: 0; border: 0; background: transparent; padding: 1rem 0; font-size: clamp(.68rem, .55vw + .5rem, .9rem); line-height: 1.7; }
.frame .dw text { font-size: 9px; letter-spacing: .14em; }

/* a manifest shown as an object, with a caption bar */
.term { border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); background: var(--bg); min-width: 0; }
.term .bar span { min-width: 0; overflow-wrap: anywhere; }
.term .bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.term pre { border: 0; margin: 0; background: transparent; padding: 1.1rem 0; }
.art { display: block; width: 100%; height: auto; margin: 3rem 0 0; }

/* drawings: ink lines between two rules, numbered callouts, a legend that reads them */
.drawing { margin: 0 0 2rem; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); background: var(--bg); max-width: 78rem; }
.drawing figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.drawing figcaption b { color: var(--fg); font-weight: 500; }
.drawing .scroll { overflow-x: auto; padding: 1.25rem 0; }
.drawing svg { display: block; width: 100%; min-width: 40rem; height: auto; }
.dw .bx { fill: var(--bg); stroke: var(--fg); stroke-width: 1; }
.dw .zone { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 4; }
.dw .ln { fill: none; stroke: var(--fg); stroke-width: 1; }
.dw .thin { fill: none; stroke: var(--muted); stroke-width: .75; }
.dw .tun { fill: none; stroke: var(--fg); stroke-width: 2.5; }
.dw .ah { fill: var(--fg); stroke: none; }
.dw .dot { fill: var(--fg); stroke: none; }
.dw .ring { fill: var(--bg); stroke: var(--fg); stroke-width: 1; }
.dw .ghost { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.dw text { fill: var(--fg); font: 500 12px var(--mono); }
.dw text.s { fill: var(--muted); font: 400 10.5px var(--mono); }
.dw text.d { fill: var(--muted); font: 400 9.5px var(--mono); letter-spacing: .14em; }
.dw .co { fill: var(--fg); stroke: none; }
.dw text.cn { fill: var(--bg); font: 700 10.5px var(--mono); }
.callouts { list-style: none; counter-reset: c; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 0 3rem; max-width: 78rem; }
.callouts li { counter-increment: c; position: relative; padding: .8rem 0 .8rem 2.2rem; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--muted); }
.callouts li b { color: var(--fg); font-weight: 600; }
.callouts li::before { content: counter(c); position: absolute; left: 0; top: .85rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--fg); color: var(--bg); font: 700 .66rem/1.3rem var(--mono); text-align: center; }

/* specification: a key and its value on one rule */
.spec { display: grid; grid-template-columns: minmax(8rem, 16rem) minmax(0, 1fr); margin: 0 0 1rem; border-top: 1px solid var(--fg); max-width: 78rem; }
.spec dt, .spec dd { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-right: 1rem; padding-top: 1.2rem; }
.spec dd { max-width: 70ch; }

/* facts strip with line icons */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0 2rem; margin: 5rem 0 0; border-top: 1px solid var(--fg); }
.facts div { display: block; padding: 1.5rem 0; }
.facts b { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-top: .8rem; }
.facts span { display: block; color: var(--muted); font-size: .93rem; line-height: 1.5; margin-top: .35rem; }
.ico { width: 1.4rem; height: 1.4rem; fill: none; stroke: var(--fg); stroke-width: 1; stroke-linecap: square; stroke-linejoin: miter; display: block; }
.card .ico { margin-bottom: 1.25rem; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* lists of things: a rule above each, nothing around it */
.grid { display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid.services { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card { display: block; position: relative; padding: 1.4rem 0 2.25rem; border: 0; border-top: 1px solid var(--line); border-radius: 0; color: var(--fg); text-decoration: none; background: transparent; }
a.card:hover { border-top-color: var(--fg); }
a.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.015em; margin-bottom: .5rem; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; max-width: 38ch; }
.card .more { display: block; margin-top: 1rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg); }
.card.soon { border-top-style: dashed; border-top-color: var(--muted); }
.badge { display: inline-block; font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: .15rem .5rem; margin-bottom: .9rem; }

.band { margin: clamp(5rem, 10vw, 9rem) 0 0; }
.band > div { max-width: none; }
.band h2 { margin-top: 0; }

/* steps: a number, a line, a sentence */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0 clamp(1.5rem, 3vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li { counter-increment: s; border-top: 1px solid var(--fg); padding: 1.25rem 0 2rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; color: var(--muted); margin-bottom: .8rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: .2rem 0 0; }

/* closing scene */
.closing { margin-top: clamp(5rem, 10vw, 9rem); padding: clamp(3rem, 7vw, 7rem) 0 0; border-top: 1px solid var(--fg); }
.closing h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4.5vw + .6rem, 5rem); letter-spacing: -.045em; line-height: 1; max-width: 14ch; }
.closing p { color: var(--muted); font-size: clamp(1rem, .5vw + .9rem, 1.25rem); max-width: 44ch; }

pre { background: var(--panel); border: 0; border-radius: 0; padding: 1.25rem 1.4rem; overflow-x: auto; font-size: .8rem; line-height: 1.7; margin: 0 0 1.5rem; max-width: min(100%, 78rem); }
table { width: 100%; max-width: 78rem; border-collapse: collapse; font-size: .94rem; margin: 0 0 1.5rem; border-top: 1px solid var(--fg); }
th, td { text-align: left; padding: .95rem 1.5rem .95rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
td:first-child { white-space: nowrap; font-weight: 500; }
td { color: var(--muted); } td:first-child, td code { color: var(--fg); }
ul.plain { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 70ch; border-top: 1px solid var(--line); }
ul.plain li { padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.pill { display: inline-block; font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; padding: .2rem .55rem; border: 1px solid var(--muted); margin-right: .5rem; color: var(--muted); }
.pill.ok { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.note { border-left: 1px solid var(--fg); padding: .2rem 0 .2rem 1.4rem; max-width: 66ch; color: var(--muted); }
.note strong { font-family: var(--mono); font-size: .74em; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg); }
.note a { color: var(--fg); }

footer { max-width: none; margin: 0; padding: 2.5rem var(--pad-r) max(3.5rem, env(safe-area-inset-bottom)) var(--pad-l); border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; display: flex; gap: .7rem 2rem; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer span { margin-left: auto; color: var(--fg); font-weight: 700; letter-spacing: 0; text-transform: none; font-size: .9rem; }

/* motion: a slow rise as a scene enters, a packet on the wire. Only where the browser can tie it to scrolling and the person has not asked for less; without it everything is simply there. */
@keyframes rise { from { opacity: .12; transform: translateY(2.5rem); } to { opacity: 1; transform: none; } }
@keyframes run { from { transform: translateX(-10px); } to { transform: translateX(calc(100vw + 10px)); } }
@media (prefers-reduced-motion: no-preference) {
  .wire .pkt { animation: run 9s linear infinite; will-change: transform; }
  .wire .pkt.b { animation-duration: 13s; animation-delay: -5s; }
  @supports (animation-timeline: view()) {
    .scene > *, .closing > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
  }
}

@media (max-width: 960px) {
  .hero .cols { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .scene { grid-template-columns: minmax(0, 1fr); min-height: 0; align-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { width: 100%; }
  nav { gap: .4rem 1.4rem; padding-top: 1rem; padding-bottom: 1rem; }
  .hero { min-height: 0; padding-top: 1rem; }
  .spec { grid-template-columns: minmax(0, 1fr); }
  .spec dt { border-bottom: 0; padding-bottom: 0; }
  .spec dd { padding-top: .3rem; }
  .titleblock div + div::before { margin: 0 .6rem; }
  .wire text { display: none; }
  td:first-child { white-space: normal; }
  th, td { padding-right: .7rem; }
  footer span { margin-left: 0; width: 100%; }
}

/* responsiveness: no tap delay, comfortable touch targets */
a, button { touch-action: manipulation; }
@media (pointer: coarse) { .btn { padding: .65rem 1.1rem; min-height: 44px; display: inline-flex; align-items: center; } nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; } input, select, textarea { font-size: 16px; min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* documentation layout: navigation, article, on-this-page, code blocks, search */
main.docs { max-width: none; display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr) minmax(11rem, 15rem); gap: clamp(1.25rem, 3vw, 3.5rem); padding-top: clamp(1.25rem, 2.5vw, 2.5rem); }
.side { position: sticky; top: 1rem; align-self: start; max-height: calc(100vh - 2rem); overflow: auto; font-size: .93rem; padding-right: .3rem; }
.side summary { list-style: none; cursor: pointer; }
.side summary::-webkit-details-marker { display: none; }
.navwrap > summary { display: none; }
.find, .bigfind { display: flex; gap: .3rem; margin: 0 0 1rem; }
.find input, .bigfind input { flex: 1; min-width: 0; width: 100%; }
.find button, .bigfind button { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; padding: 0; }
.ic { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.navgrp { margin: 0 0 .5rem; }
.navgrp > summary { display: flex; align-items: center; gap: .4rem; padding: .35rem 0; font-family: var(--mono); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.navgrp > summary::before { content: ""; width: .42rem; height: .42rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .12s; }
.navgrp[open] > summary::before { transform: rotate(45deg); }
.navgrp > summary:hover { color: var(--fg); }
.side a { display: block; padding: .3rem 0; margin-left: 0; color: var(--muted); text-decoration: none; }
.side a:hover { color: var(--fg); }
.side a[aria-current="page"] { color: var(--fg); font-weight: 500; }
.side a[aria-current="page"]::before { content: ""; display: inline-block; width: .9rem; border-top: 1px solid var(--fg); margin-right: .55rem; vertical-align: middle; }
.side a.sub { padding-left: .9rem; font-size: .88rem; }
.grp-title { display: block; margin: .6rem 0 .1rem; font-family: var(--mono); font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
article { min-width: 0; overflow-wrap: break-word; }
article > p, article > ul, article > ol, article > .note { max-width: 78ch; }
article > table, article > pre, article > .codewrap { max-width: 100%; }
article h1 { margin-bottom: 1rem; font-size: clamp(2rem, 2.6vw + 1rem, 3.4rem); letter-spacing: -.04em; line-height: 1.02; max-width: 18ch; }
article .lead { max-width: 52ch; }
article h2 { margin-top: 4rem; font-size: clamp(1.3rem, .8vw + 1.1rem, 1.7rem); scroll-margin-top: 1rem; }
article h3 { margin-top: 1.75rem; scroll-margin-top: 1rem; }
.crumb { margin: 0 0 .8rem; font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .crumb a { color: var(--muted); }
article ol.items { max-width: 40rem; padding-left: 1.3rem; } article ol.items li { margin: .4rem 0; }
.otp { position: sticky; top: 1rem; align-self: start; display: flex; flex-direction: column; font-size: .85rem; border-left: 0; padding-left: 0; max-height: calc(100vh - 2rem); overflow: auto; }
.otp strong { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .4rem; font-weight: 500; }
.otp a { padding: .2rem 0; color: var(--muted); text-decoration: none; } .otp a.l3 { padding-left: .8rem; }
.otp a:hover, .otp a[aria-current="true"] { color: var(--fg); }
.otp a[aria-current="true"] { font-weight: 600; }
.codewrap { position: relative; margin: 0 0 1.25rem; }
.codewrap pre { margin: 0; padding-right: 3rem; }
.codewrap .copy { position: absolute; top: .4rem; right: .4rem; width: 2rem; height: 2rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-color: transparent; background: var(--panel); color: var(--muted); }
.codewrap .copy:hover { color: var(--fg); border-color: var(--line); }
.tablewrap { overflow-x: auto; margin: 0 0 1rem; }
table.fields { font-size: .88rem; min-width: 54rem; }
table.fields td:first-child { white-space: normal; overflow-wrap: anywhere; }
table.fields th { white-space: nowrap; }
table.fields td:first-child { min-width: 11rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.pager a { display: block; text-decoration: none; padding: .9rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; flex: 1 1 0; min-width: 0; max-width: 20rem; overflow-wrap: anywhere; }
.pager a:hover { border-top-color: var(--fg); }
.pager a.next { text-align: right; margin-left: auto; }
.pager small { display: block; color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.results { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 42rem; }
.results li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.results a { font-weight: 600; } .results small { margin-left: .6rem; color: var(--muted); } .results p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
mark { background: transparent; color: var(--fg); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .navgrp > summary::before { transition: none; } }
@media (max-width: 1180px) { main.docs { grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); } .otp { display: none; } }
@media (max-width: 900px) {
  main.docs { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-top: 1.25rem; }
  .side { position: static; max-height: none; overflow: visible; border-bottom: 1px solid var(--line); padding-bottom: .75rem; }
  .navwrap > summary { display: block; cursor: pointer; padding: .5rem .8rem; border: 1px solid var(--fg); border-radius: 0; font-family: var(--mono); font-size: .82rem; margin-bottom: .6rem; }
  .side a { margin-left: 0; }
}

@media (pointer: coarse) { .side a, .otp a, .pager a, .navwrap > summary, .find button, .bigfind button { min-height: 44px; display: flex; align-items: center; } .find input, .bigfind input { font-size: 16px; min-height: 44px; } .codewrap .copy { width: 44px; height: 44px; } }
.find input, .bigfind input { font-size: 16px; }
@media (max-width: 1180px) { article table:not(.fields) { display: block; overflow-x: auto; max-width: 100%; } }
/* monochrome controls: square, hairline, inverted on hover */
.find input, .bigfind input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--fg); padding: .45rem 0; font-family: var(--mono); -webkit-appearance: none; appearance: none; }
.find input:focus, .bigfind input:focus { border-bottom-color: var(--fg); outline: 0; }
.find button, .bigfind button, .codewrap .copy { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); cursor: pointer; }
.find button:hover, .bigfind button:hover { color: var(--fg); border-bottom-color: var(--fg); }
.codewrap .copy { border-color: transparent; background: var(--panel); color: var(--muted); }
/* the portal's front page: a headline beside the first two calls */
.dochero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: start; padding: clamp(1rem, 4vw, 4rem) 0 0; }
.dochero h1 { font-size: clamp(2.4rem, 4.5vw + 1rem, 5.5rem); letter-spacing: -.045em; line-height: .98; max-width: 12ch; }
.dochero .term pre { margin: 0; background: var(--bg); }
.dochero .codewrap { margin: 0; }
@media (min-width: 1500px) { .dochero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; } }
article .card h3 { margin-top: 0; }
