/* Docs styles, ported from the live site and reskinned. */
.ld{--bg:var(--paper);--surface:var(--card);--surface-2:#ebe6dc;--line:var(--rule);--line-strong:#b9b2a5;--muted:var(--ink-2);--faint:var(--ink-3);--accent:var(--orange);--accent-strong:#b83c10;--accent-soft:#f6dccd;--sans:var(--display)}
.ld .lede{ margin: 28px auto 0; max-width: 34em; font-size: clamp(19px, 2.1vw, 22px); line-height: 1.5; color: var(--ink); text-wrap: balance; }
.ld .note{ margin: 14px auto 0; font-size: 14px; color: var(--faint); }
.ld .page-hero{ padding: clamp(64px, 10vw, 120px) 0 0; text-align: center; }
.ld .page-hero + .when{ padding-top: 96px; }
.ld .page-hero + .prose{ padding-top: 72px; }
.ld .loop .note{ margin-top: 36px; text-align: center; font-size: 15px; }
.ld .toc{ max-width: 760px; margin: 0 auto 72px; text-align: center; line-height: 2.1; text-wrap: balance; }
.ld .toc a{ margin: 0 10px; color: var(--muted); font-size: 15px; text-decoration: none; white-space: nowrap; }
.ld .toc a:hover{ color: var(--ink); }
.ld .docs{ max-width: 1040px; margin: 36px auto 0; }
@media (min-width: 1100px){.ld .docs{ display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: 56px; align-items: start; max-width: 1200px; margin-top: 88px; }.ld .docs > .cmds{ grid-column: 2; }.ld .docs > .toc{ grid-row: 1 / span 20; position: sticky; top: 96px; display: grid; gap: 2px; margin: 0; text-align: left; line-height: 1.5; }.ld .docs > .toc a{ margin: 0; padding: 5px 0; }.ld .docs > .toc a[aria-current]{ color: var(--ink); font-weight: 600; }}
.ld .cmds{ scroll-margin-top: var(--hdr); }
.ld .cmds + .cmds{ margin-top: 64px; }
.ld .cmds h2{ margin: 0; max-width: none; font-size: 24px; letter-spacing: -.02em; text-align: left; }
.ld .cmds dl{ margin: 24px 0 0; display: grid; gap: 18px; }
.ld .cmds dl > div{ display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 32px; align-items: start; scroll-margin-top: var(--hdr); }
.ld .cmds dt{ grid-row: span 9; justify-self: start; max-width: 100%; position: relative; padding: 7px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.ld .cmds dt:has(> b){ background: none; border-color: transparent; padding-left: 0; }
.ld .cmds dd{ grid-column: 2; margin: 0; padding-top: 7px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.ld .cmds dd + dd{ padding-top: 6px; }
.ld .cmds dd.flag{ font-size: 14.5px; }
.ld .cmds dt code{ display: block; color: var(--faint); font-size: 14.5px; line-height: 1.7; overflow-wrap: break-word; }
.ld .cmds dt code + code{ padding-left: 2ch; }
.ld .cmds dt b{ color: var(--ink); font-weight: 700; }
.ld .cmds code .pb{ color: var(--muted); }
.ld .cmds code var{ font-style: normal; color: var(--accent-strong); }
.ld .cmds code .fl{ color: var(--ink); }
.ld .cmds code .str{ color: var(--muted); }
.ld .cmds code .p{ color: var(--faint); }
.ld .cmds code .fl,.ld .cmds code var,.ld .cmds code b{ white-space: nowrap; }
.ld .cmds dd code{ color: var(--muted); font-size: 13.5px; }
.ld .cmds dd > .fl{ color: var(--ink); font: 13.5px var(--mono); }
.ld .cmds .here{ position: absolute; top: 9px; left: -1.6em; padding: 0 .3em; color: var(--faint); font: 14.5px/1.7 var(--mono); text-decoration: none; opacity: 0; }
.ld .cmds dl > div:hover .here,.ld .cmds .here:focus-visible,.ld .cmds dl > div:target .here{ opacity: 1; }
.ld .cmds dl > div:target dt{ border-color: var(--accent); }
.ld .cmds p{ margin: 0 0 8px; color: var(--muted); }
.ld .page-hero + .ladder{ padding-top: 72px; }
@media (max-width: 760px){.ld .cmds dl > div{ grid-template-columns: minmax(0, 1fr); }.ld .cmds dt{ grid-row: auto; }.ld .cmds dd:first-of-type{ padding-top: 8px; }.ld .cmds dl > div + div{ margin-top: 10px; }.ld .cmds dd{ grid-column: 1; }.ld .cmds .here{ display: none; }}
.ld .relay-hero .lede{ max-width: 34em; margin-left: auto; margin-right: auto; text-wrap: pretty; }
.ld .relay-hero .lede strong{ color: var(--ink); }
.ld{ padding-top: 48px; padding-bottom: 96px; }
.ld .page-hero h1{ font: 900 clamp(48px, 6vw, 88px)/.95 var(--display); font-variation-settings: "wdth" 72; text-transform: uppercase; margin: 0; text-align: left; max-width: none; letter-spacing: 0; }
.ld .page-hero h1 em{ font-style: normal; color: var(--ink); }
.ld .page-hero h1 em::after{ content: "."; color: var(--orange); }
.ld .page-hero{ text-align: left; }
.ld .page-hero .lede{ margin: 18px 0 0; max-width: none; text-align: left; }
.ld section{ padding: 0; border-top: 0; }
.ld section > .wrap::before, .ld section > .wrap::after{ display: none; }
.ld .page-hero{ padding: 0 0 8px; }
.ld .cmds{ margin-top: 56px; }
.ld .toc a[aria-current]{ color: var(--ink); font-weight: 700; }
.ld .toc a[aria-current]::after{ content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-left: 8px; vertical-align: middle; }
/* Docs: structure. A heavy rule and condensed caps per section, a thin rule per row, muted descriptions that wake on hover. */
.ld .cmds{ position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.ld .cmds + .cmds{ margin-top: 72px; }
.ld .cmds h2{ font: 900 30px/1 var(--display); font-variation-settings: "wdth" 75; text-transform: uppercase; letter-spacing: 0; }
.ld .cmds .cnt{ position: absolute; right: 0; top: 30px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.ld .cmds dl{ gap: 0; margin-top: 18px; }
.ld .cmds dl > div{ padding: 12px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); border-radius: 4px; transition: background .15s; }
.ld .cmds dl > div:last-child{ border-bottom: 0; }
.ld .cmds dd{ color: var(--faint); transition: color .15s; }
.ld .cmds dl > div:hover{ background: var(--surface); }
.ld .cmds dl > div:hover dd, .ld .cmds dl > div:target dd{ color: var(--ink); }
.ld .cmds dl > div:hover dt{ border-color: var(--line-strong); }
.ld .cmds dl > div:target{ background: var(--accent-soft); }
.ld .cmds .here{ display: none; }
/* one line per sentence: the second sentence breaks, nothing else wraps */
@media (min-width: 1100px){.ld .cmds dl > div{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }.ld .cmds dd{ font-size: 15px; }}
@media (min-width: 1300px){.ld .cmds dd{ white-space: nowrap; }.ld .cmds dd[data-list]{ white-space: normal; }.ld .cmds dd.flag{ font-size: 13.5px; }}

/* Dark: the page-level colours above are light-only literals; without these the boxes stay cream under light text. */
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .ld{--surface-2:var(--paper-2);--line-strong:#4a443c;--accent-strong:#ff8a55;--accent-soft:#3a1a0e;--blue:#7ea6ee;--blue-soft:#17222f;--amber:#e0b44a;--amber-soft:#2e2610;--violet:#b79af0;--violet-soft:#221b33;--rose:#e58aa8;--rose-soft:#31161f;--reject:#ff8a78;--idle:#2a2622;--scrim:rgba(0,0,0,.6)}}
:root[data-theme="dark"] .ld{--surface-2:var(--paper-2);--line-strong:#4a443c;--accent-strong:#ff8a55;--accent-soft:#3a1a0e;--blue:#7ea6ee;--blue-soft:#17222f;--amber:#e0b44a;--amber-soft:#2e2610;--violet:#b79af0;--violet-soft:#221b33;--rose:#e58aa8;--rose-soft:#31161f;--reject:#ff8a78;--idle:#2a2622;--scrim:rgba(0,0,0,.6)}
