/* Tractrix website — layout and components.
   Brand tokens live in tokens.css (copied from brand/tokens). This file maps them to semantic
   roles, adds a dark theme, and defines every component used by the site. No framework. */

/* ------------------------------------------------------------------ semantic roles */
:root {
  color-scheme: light;
  --bg: var(--tx-paper);
  --surface: var(--tx-white);
  --surface-2: #EEF2F7;
  --text: var(--tx-graphite);
  --text-muted: var(--tx-slate);
  --heading: var(--tx-navy);
  --rule: var(--tx-mist);
  --rule-strong: #C9D2DE;
  --link: var(--tx-blue);
  --link-hover: var(--tx-blue-600);
  --accent: var(--tx-amber);
  --accent-ink: var(--tx-amber-ink);
  --info-bg: var(--tx-sky);
  --code-bg: #0E1B2E;
  --code-text: #E4EAF2;
  --inline-code-bg: #E9EEF5;
  --focus: #1F5FAD;
  --grid-minor: rgba(11, 37, 69, .045);
  --grid-major: rgba(11, 37, 69, .08);
  --header-bg: rgba(247, 248, 250, .88);
  --btn-primary-bg: var(--tx-blue);
  --btn-primary-hover: var(--tx-blue-600);
  --btn-primary-text: #fff;
  --ok: var(--tx-ok); --warn: var(--tx-warn-ink, #8F5B0A); --danger: var(--tx-danger);
  --ok-bg: #E6F3EC; --warn-bg: #FBF1E0; --danger-bg: #F9E5E3;
  /* figure colours */
  --fig-pavement: #E6EAF0;
  --fig-pavement-edge: #8C9AAD;
  --fig-envelope: var(--tx-envelope);
  --fig-clearance: var(--tx-clearance);
  --fig-track: var(--tx-track);
  --fig-plane: var(--tx-navy);
  --fig-plane-fill: #FFFFFF;
  --maxw: 1200px;
  --maxw-prose: 46rem;
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--tx-night, #07182E); --surface: var(--tx-night-2, #10223D); --surface-2: var(--tx-night-3, #1A3152);
  --text: #DCE4EE; --text-muted: var(--tx-fog, #B8C7DB); --heading: #F1F5FA;
  --rule: #1C3355; --rule-strong: var(--tx-night-line, #2A4166);
  --link: var(--tx-blue-300, #7FAEE6); --link-hover: #A9CBF6;
  --accent-ink: #F2C14E; --info-bg: #13335C;
  --code-bg: #04101F; --inline-code-bg: var(--tx-night-3, #1A3152); --focus: var(--tx-blue-300, #7FAEE6);
  --grid-minor: rgba(127, 174, 230, .05); --grid-major: rgba(127, 174, 230, .09);
  --header-bg: rgba(7, 24, 46, .86);
  --btn-primary-bg: #2E6FC0; --btn-primary-hover: #3B7DD0;
  --ok: var(--tx-ok-300, #5FC99A); --warn: var(--tx-warn-300, #F0B35A); --danger: var(--tx-danger-300, #F08A7E);
  --ok-bg: #0F2A20; --warn-bg: #2B2210; --danger-bg: #2E1614;
  --fig-pavement: #15294A; --fig-pavement-edge: #587089;
  --fig-envelope: var(--tx-envelope-300, #8FB3E8); --fig-clearance: var(--tx-clearance-300, #A58BE8); --fig-track: var(--tx-track-300, #3CC2AE);
  --fig-plane: #E6EDF6; --fig-plane-fill: var(--tx-night-2, #10223D);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--tx-night, #07182E); --surface: var(--tx-night-2, #10223D); --surface-2: var(--tx-night-3, #1A3152);
  --text: #DCE4EE; --text-muted: var(--tx-fog, #B8C7DB); --heading: #F1F5FA;
  --rule: #1C3355; --rule-strong: var(--tx-night-line, #2A4166);
  --link: var(--tx-blue-300, #7FAEE6); --link-hover: #A9CBF6;
  --accent-ink: #F2C14E; --info-bg: #13335C;
  --code-bg: #04101F; --inline-code-bg: var(--tx-night-3, #1A3152); --focus: var(--tx-blue-300, #7FAEE6);
  --grid-minor: rgba(127, 174, 230, .05); --grid-major: rgba(127, 174, 230, .09);
  --header-bg: rgba(7, 24, 46, .86);
  --btn-primary-bg: #2E6FC0; --btn-primary-hover: #3B7DD0;
  --ok: var(--tx-ok-300, #5FC99A); --warn: var(--tx-warn-300, #F0B35A); --danger: var(--tx-danger-300, #F08A7E);
  --ok-bg: #0F2A20; --warn-bg: #2B2210; --danger-bg: #2E1614;
  --fig-pavement: #15294A; --fig-pavement-edge: #587089;
  --fig-envelope: var(--tx-envelope-300, #8FB3E8); --fig-clearance: var(--tx-clearance-300, #A58BE8); --fig-track: var(--tx-track-300, #3CC2AE);
  --fig-plane: #E6EDF6; --fig-plane-fill: var(--tx-night-2, #10223D);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--tx-font-sans); font-size: 1rem; line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-family: var(--tx-font-serif); font-weight: 500; font-size: clamp(2.2rem, 1.4rem + 3vw, var(--tx-fs-3xl)); letter-spacing: -.01em; }
h2 { font-family: var(--tx-font-serif); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.4vw, var(--tx-fs-2xl)); letter-spacing: -.005em; }
h3 { font-size: var(--tx-fs-md); }
h4 { font-size: var(--tx-fs-base); }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
strong { font-weight: 600; }
small, .small { font-size: var(--tx-fs-sm); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--tx-space-7) 0; }
code, kbd, samp, pre { font-family: var(--tx-font-mono); font-size: .9em; }
:not(pre) > code { background: var(--inline-code-bg); padding: .1em .35em; border-radius: var(--tx-radius-sm); overflow-wrap: anywhere; }
kbd { border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; background: var(--surface); font-size: .82em; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
::selection { background: rgba(242, 169, 0, .35); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -100px; z-index: 1000; padding: 10px 16px;
  background: var(--tx-navy); color: #fff; border-radius: var(--tx-radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } .lead { font-size: 1.125rem; } }
.mono { font-family: var(--tx-font-mono); }
.muted { color: var(--text-muted); }
.lead { font-size: var(--tx-fs-md); line-height: 1.55; color: var(--text); max-width: 40em; }
.nowrap { white-space: nowrap; }
.num { font-family: var(--tx-font-mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .container { display: flex; align-items: center; height: 100%; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; flex: none; }
.brand:hover { color: var(--heading); }
.brand .brand-logo { display: block; height: 34px; width: auto; color: var(--heading); }
.footer-brand .brand-logo { height: 38px; }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; flex: 1; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: var(--tx-radius-sm);
  color: var(--text); text-decoration: none; font: inherit; font-size: .95rem; font-weight: 500; background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-trigger:hover { background: var(--surface-2); color: var(--heading); }
.nav-link[aria-current="page"], .nav-link[data-current], .nav-trigger[data-current] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-trigger svg { width: 10px; height: 10px; transition: transform var(--tx-dur) var(--tx-ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -12px; width: 560px; padding: 12px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--tx-radius); box-shadow: var(--tx-shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.mega[hidden] { display: none; }
.mega a { display: block; padding: 10px 12px; border-radius: var(--tx-radius-sm); text-decoration: none; color: var(--text); }
.mega a:hover, .mega a:focus-visible { background: var(--surface-2); }
.mega a strong { display: block; color: var(--heading); font-weight: 600; font-size: .95rem; }
.mega a span { display: block; color: var(--text-muted); font-size: var(--tx-fs-sm); line-height: 1.4; margin-top: 2px; }
.mega .mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--rule); margin-top: 6px; padding: 10px 12px 2px; font-size: var(--tx-fs-sm); color: var(--text-muted); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--tx-radius-sm);
  border: 1px solid transparent; background: none; color: var(--text); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--heading); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none !important; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100vh - var(--header-h)); overflow: auto;
    background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: var(--tx-shadow);
    padding: 12px 16px 20px; margin: 0; display: none; flex-direction: column; align-items: stretch;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; }
  .nav-link, .nav-trigger { width: 100%; justify-content: space-between; height: 46px; font-size: 1rem; }
  .nav-link[aria-current="page"], .nav-link[data-current], .nav-trigger[data-current] { box-shadow: inset 3px 0 0 var(--accent); }
  .mega { position: static; width: auto; box-shadow: none; border: 0; grid-template-columns: minmax(0, 1fr); padding: 0 0 8px; padding-inline-start: 8px; }
}

/* ------------------------------------------------------------------ buttons, badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: var(--tx-radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background var(--tx-dur-fast) var(--tx-ease), border-color var(--tx-dur-fast) var(--tx-ease), color var(--tx-dur-fast);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-primary:hover { background: var(--btn-primary-hover); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--heading); border-color: var(--rule-strong); }
.btn-secondary:hover { border-color: var(--heading); color: var(--heading); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--link); padding: 0 4px; }
.btn-ghost:hover { text-decoration: underline; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--tx-font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; border: 1px solid currentColor; line-height: 1.3;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-stable { color: var(--ok); }
.badge-preview { color: var(--accent-ink); }
.badge-beta { color: var(--link); }
.badge-planned { color: var(--text-muted); }
.badge-open { color: var(--fig-track); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font-family: var(--tx-font-mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.eyebrow .sec-no { color: var(--heading); }

/* ------------------------------------------------------------------ sections */
.section { padding: var(--tx-space-9) 0; border-top: 1px solid var(--rule); }
.section-tight { padding: var(--tx-space-8) 0; }
.section-alt { background: var(--surface); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: var(--tx-space-7); }
.section-head h2 { margin: 0; max-width: 16em; }
.section-head p { margin: 0; color: var(--text-muted); max-width: 34em; }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; } .section { padding: var(--tx-space-8) 0; } }

.grid-bg {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px), linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 3.8rem); line-height: 1.06; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--heading); }
.hero .lead { margin-bottom: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-family: var(--tx-font-mono); font-size: .78rem; color: var(--text-muted); }
.hero-meta span::before { content: "— "; color: var(--accent); }
@media (max-width: 960px) { .hero .container { grid-template-columns: minmax(0, 1fr); } .hero { padding: 48px 0 32px; } }

.page-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 18em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .page-hero-split { grid-template-columns: minmax(0, 1fr); } }
.breadcrumb { font-family: var(--tx-font-mono); font-size: .76rem; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 18px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 6px; color: var(--rule-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); text-decoration: underline; }

/* hero figure (engine-computed plan view) */
.hero-figure { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--tx-radius); box-shadow: var(--tx-shadow); overflow: hidden; }
.hx { display: block; width: 100%; height: auto; max-height: 560px; }
.hx-grid-minor { stroke: var(--grid-minor); stroke-width: .08; }
.hx-grid-major { stroke: var(--grid-major); stroke-width: .12; }
.hx-pavement { fill: var(--fig-pavement); stroke: var(--fig-pavement-edge); stroke-width: .25; }
.hx-clearance { fill: none; stroke: var(--fig-clearance); stroke-width: .25; stroke-dasharray: 1.4 .9; opacity: .9; }
.hx-envelope { fill: var(--fig-envelope); fill-opacity: .08; stroke: var(--fig-envelope); stroke-width: .3; stroke-opacity: .75; }
.hx-fillet { fill: url(#hx-hatch); stroke: var(--danger); stroke-width: .25; }
.hx-hatch-line { stroke: var(--danger); stroke-width: .28; opacity: .75; }
.hx-centreline { fill: none; stroke: var(--accent); stroke-width: .45; stroke-dasharray: 3 2; }
.hx-track { fill: none; stroke-width: .3; stroke: var(--fig-track); }
.hx-wingtip-left, .hx-wingtip-right, .hx-tail { stroke: var(--fig-envelope); stroke-width: .2; stroke-dasharray: .8 .6; opacity: .8; }
.hx-main-gear-left-outer, .hx-main-gear-right-outer { stroke-width: .38; }
.hx-ac-ghost path { fill: none; stroke: var(--fig-plane); stroke-width: .12; opacity: .2; }
.hx-body path { fill: var(--fig-plane-fill); stroke: var(--fig-plane); stroke-width: .3; stroke-linejoin: round; }
.hx-gear path { fill: var(--fig-plane); }
.hx-cockpit { fill: var(--accent); }
.hx-mg { fill: var(--fig-track); }
.hx-label { font-family: var(--tx-font-mono); font-size: 2.6px; fill: var(--text-muted); letter-spacing: .05px; }
.hero-readout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; border-top: 1px solid var(--rule);
  font-family: var(--tx-font-mono); font-size: .76rem; color: var(--text-muted); background: var(--surface);
}
.ro-title { flex: 1 1 100%; color: var(--text); }
.ro-row { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.ro-k { color: var(--text-muted); margin-inline-start: 12px; }
.ro-u { margin-inline-start: -5px; }
.ro-k:first-child { margin-inline-start: 0; }
.ro-v { color: var(--heading); font-weight: 500; min-width: 3.4ch; text-align: end; font-variant-numeric: tabular-nums; }
.ro-replay { margin-inline-start: auto; font: inherit; color: var(--link); background: none; border: 1px solid var(--rule-strong); border-radius: 3px; padding: 2px 10px; cursor: pointer; }
.ro-replay:hover { border-color: var(--link); }
.legend { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; border-top: 1px dashed var(--rule); font-size: .72rem; color: var(--text-muted); font-family: var(--tx-font-mono); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid; }
.lg-env { border-color: var(--fig-envelope) !important; }
.lg-clr { border-color: var(--fig-clearance) !important; border-top-style: dashed !important; }
.lg-trk { border-color: var(--fig-track) !important; }
.lg-cl { border-color: var(--accent) !important; border-top-style: dashed !important; }
.lg-fil { border-color: var(--danger) !important; height: 8px !important; border: 1px solid; background: repeating-linear-gradient(45deg, var(--danger) 0 1px, transparent 1px 4px); }

/* ------------------------------------------------------------------ cards and grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--tx-radius); padding: 28px; position: relative; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color var(--tx-dur) var(--tx-ease), transform var(--tx-dur) var(--tx-ease); }
.card-link:hover { border-color: var(--rule-strong); color: inherit; transform: translateY(-2px); }
.card-link:hover .card-more { text-decoration: underline; }
.card-more { margin-top: auto; padding-top: 16px; color: var(--link); font-weight: 600; font-size: .92rem; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-icon { width: 40px; height: 40px; color: var(--heading); }
.card-kicker { font-family: var(--tx-font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.card ul { padding-inline-start: 1.1em; margin: 0 0 1em; }
.card li { margin: .25em 0; }

.product-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.product-grid > .card { grid-column: span 4; }
.product-grid > .card.wide { grid-column: span 6; }
@media (max-width: 1020px) { .product-grid > .card, .product-grid > .card.wide { grid-column: span 6; } }
@media (max-width: 680px) { .product-grid > .card, .product-grid > .card.wide { grid-column: 1 / -1; } }
.engine-card { background: var(--tx-navy); color: #DCE4EE; border-color: var(--tx-navy); }
.engine-card h3, .engine-card .card-kicker { color: #fff; }
.engine-card .card-kicker { color: #9AB6DA; }
.engine-card .card-more { color: var(--accent); }
.engine-card .badge-open { color: #5ED3BF; }
.engine-card code { background: rgba(255,255,255,.08); color: #fff; }

/* figures, spec lists */
.spec { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; font-size: .92rem; }
.spec dt { color: var(--text-muted); font-family: var(--tx-font-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.spec dd { margin: 0; }
.kv-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--tx-radius); background: var(--surface); }
.kv-strip > div { padding: 22px 24px; border-inline-start: 1px solid var(--rule); }
.kv-strip > div:first-child { border-inline-start: 0; }
.kv-strip .kv-v { display: block; font-family: var(--tx-font-mono); font-size: 1.7rem; color: var(--heading); letter-spacing: -.02em; line-height: 1.15; }
.kv-strip .kv-k { display: block; font-size: .86rem; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 860px) { .kv-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kv-strip > div:nth-child(3) { border-inline-start: 0; } .kv-strip > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }

figure { margin: 0; }
.fig { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--tx-radius); overflow: hidden; }
.fig svg { display: block; width: 100%; }
.fig figcaption { padding: 12px 16px; border-top: 1px solid var(--rule); font-size: .86rem; color: var(--text-muted); }
.fig figcaption b { color: var(--text); font-weight: 600; font-family: var(--tx-font-mono); font-size: .8rem; letter-spacing: .02em; margin-inline-end: 6px; }

/* ------------------------------------------------------------------ tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--tx-radius); background: var(--surface); margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
caption { caption-side: top; text-align: start; padding: 14px 16px 10px; font-size: .84rem; color: var(--text-muted); border-bottom: 1px solid var(--rule); }
caption b { font-family: var(--tx-font-mono); font-size: .78rem; color: var(--text); margin-inline-end: 6px; font-weight: 500; letter-spacing: .02em; }
th, td { text-align: start; padding: 10px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-family: var(--tx-font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--heading); }
td.n, th.n { text-align: end; font-family: var(--tx-font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.m { font-family: var(--tx-font-mono); font-size: .85rem; }
.pass { color: var(--ok); font-weight: 600; }
.fail { color: var(--danger); font-weight: 600; }
.warnc { color: var(--warn); font-weight: 600; }
.cmp-table td:not(:first-child), .cmp-table th:not(:first-child) { text-align: center; }
.tick { color: var(--ok); font-weight: 700; }
.dash { color: var(--text-muted); }

/* ------------------------------------------------------------------ callouts */
.callout { border: 1px solid var(--rule); border-inline-start: 3px solid var(--link); background: var(--surface); border-radius: var(--tx-radius-sm); padding: 16px 20px; margin: 0 0 1.5em; font-size: .95rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: block; font-family: var(--tx-font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.callout-warn { border-inline-start-color: var(--accent); }
.callout-danger { border-inline-start-color: var(--danger); }
.callout-ok { border-inline-start-color: var(--ok); }
.callout-draft { border: 1px dashed var(--accent); border-inline-start: 3px solid var(--accent); background: var(--warn-bg); }

/* formula */
.formula { font-family: var(--tx-font-serif); font-size: 1.12rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--tx-radius-sm); padding: 18px 22px; margin: 0 0 1.4em; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; overflow-x: auto; }
.formula math { font-size: 1.15rem; }
.formula .eq-no { font-family: var(--tx-font-mono); font-size: .8rem; color: var(--text-muted); }
.var { font-family: var(--tx-font-serif); font-style: italic; }

/* ------------------------------------------------------------------ workflow steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 1px solid var(--rule-strong); }
.steps li { position: relative; padding: 28px 0 0; padding-inline-end: 24px; counter-increment: step; }
.steps li::before { content: "0" counter(step); position: absolute; top: -1px; inset-inline-start: 0; padding-top: 10px; border-top: 2px solid var(--accent); font-family: var(--tx-font-mono); font-size: .78rem; color: var(--text-muted); width: 32px; }
.steps h3 { margin-top: 16px; font-family: var(--tx-font-serif); font-weight: 500; font-size: 1.5rem; }
.steps p { color: var(--text-muted); font-size: .95rem; }
.steps .step-io { font-family: var(--tx-font-mono); font-size: .76rem; color: var(--text); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* numbered install steps */
.howto { counter-reset: how; list-style: none; padding: 0; margin: 0 0 1.5em; }
.howto > li { counter-increment: how; position: relative; padding: 0 0 18px; padding-inline-start: 44px; }
.howto > li::before { content: counter(how); position: absolute; inset-inline-start: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-strong); display: grid; place-items: center; font-family: var(--tx-font-mono); font-size: .8rem; color: var(--heading); background: var(--surface); }
.howto > li::after { content: ""; position: absolute; inset-inline-start: 14px; top: 30px; bottom: 2px; width: 1px; background: var(--rule); }
.howto > li:last-child::after { display: none; }

/* ------------------------------------------------------------------ CTA band */
.cta-band { background: var(--tx-navy); color: #DCE4EE; padding: 72px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.cta-band .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { margin: 0; color: #B9C7D8; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-secondary:hover { border-color: #fff; color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--tx-navy); }
.cta-band .btn-primary:hover { background: var(--tx-sky); color: var(--tx-navy); }
@media (max-width: 800px) { .cta-band .container { grid-template-columns: minmax(0, 1fr); } .cta-band .btn-row { justify-content: flex-start; } }

/* ------------------------------------------------------------------ prose (docs, science, legal) */
.prose { max-width: var(--maxw-prose); min-width: 0; }
.prose h2 { margin-top: 2.2em; padding-top: .6em; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose > .toc-mobile + h2, .prose > .doc-intro + h2 { margin-top: 1.2em; }
.prose h3 { margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose li > p { margin: 0 0 .4em; }
.prose .table-wrap { margin: 1em 0 1.6em; }
.prose figure { margin: 1.4em 0 1.8em; }
.prose dl.defs { margin: 0 0 1.4em; }
.prose dl.defs dt { font-weight: 600; color: var(--heading); margin-top: .8em; }
.prose dl.defs dd { margin: .2em 0 0; }
.anchor { margin-inline-start: .35em; color: var(--rule-strong); text-decoration: none; font-family: var(--tx-font-mono); font-weight: 400; font-size: .8em; opacity: 0; transition: opacity var(--tx-dur-fast); }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--link); }

pre {
  background: var(--code-bg); color: var(--code-text); padding: 16px 18px; border-radius: var(--tx-radius-sm); overflow-x: auto;
  line-height: 1.55; font-size: .84rem; margin: 0 0 1.4em; position: relative; border: 1px solid rgba(255,255,255,.04);
}
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.code-block { position: relative; }
.code-block .copy-btn { position: absolute; top: 8px; right: 8px; }
.copy-btn { font: 500 .72rem/1 var(--tx-font-mono); letter-spacing: .05em; color: #B9C7D8; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 3px; padding: 5px 8px; cursor: pointer; }
.copy-btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.tok-c { color: #7F93AB; } .tok-s { color: #9FD8C9; } .tok-k { color: #F2C14E; } .tok-n { color: #A9CBF6; }

/* docs layout */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 96px; align-items: start; }
.doc-aside { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-inline-end: 8px; font-size: .9rem; }
.doc-aside h2 { font-family: var(--tx-font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; border: 0; padding: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc ol ol { padding-inline-start: 12px; margin: 2px 0 6px; font-size: .86rem; }
.toc a { display: block; padding: 5px 10px; border-inline-start: 2px solid var(--rule); color: var(--text-muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--heading); border-inline-start-color: var(--rule-strong); }
.toc a.is-active { color: var(--heading); border-inline-start-color: var(--accent); font-weight: 500; }
.doc-aside .aside-links { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.doc-aside .aside-links a { display: block; padding: 3px 0; font-size: .86rem; }
.toc-mobile { display: none; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .doc-aside { display: none; }
  .toc-mobile { display: block; border: 1px solid var(--rule); border-radius: var(--tx-radius); background: var(--surface); margin-bottom: 28px; }
  .toc-mobile summary { padding: 12px 16px; cursor: pointer; font-weight: 600; color: var(--heading); }
  .toc-mobile .toc { padding: 0 16px 12px; }
}
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-family: var(--tx-font-mono); font-size: .76rem; color: var(--text-muted); margin-bottom: 24px; }
.doc-intro { font-size: 1.1rem; color: var(--text); margin-bottom: 1.6em; }
.param-table td:first-child code { white-space: nowrap; }
.param-table td:nth-child(3) { white-space: nowrap; font-family: var(--tx-font-mono); font-size: .84rem; }
.tool-card { border: 1px solid var(--rule); border-radius: var(--tx-radius); background: var(--surface); padding: 4px 22px 8px; margin: 1.2em 0 2em; }
.tool-card > h3:first-child { margin-top: 18px; }
.tool-id { font-family: var(--tx-font-mono); font-size: .78rem; color: var(--text-muted); }

/* feedback widget */
.feedback { margin-top: 64px; padding: 20px 24px; border: 1px solid var(--rule); border-radius: var(--tx-radius); background: var(--surface); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.feedback p { margin: 0; font-weight: 600; color: var(--heading); }
.feedback .btn { min-height: 36px; }
.feedback .fb-thanks { font-weight: 400; color: var(--text-muted); flex-basis: 100%; }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.doc-pager a { border: 1px solid var(--rule); border-radius: var(--tx-radius); padding: 14px 18px; text-decoration: none; background: var(--surface); }
.doc-pager a:hover { border-color: var(--rule-strong); }
.doc-pager span { display: block; font-family: var(--tx-font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.doc-pager .next { text-align: end; grid-column: 2; }

/* ------------------------------------------------------------------ FAQ / disclosure */
.faq-wrap { max-width: 62rem; }
.faq-group { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-group > h2 { font-size: 1.6rem; margin-bottom: 16px; }
.faq-list { border-top: 1px solid var(--rule-strong); }
details.qa { border-bottom: 1px solid var(--rule); }
details.qa > summary {
  list-style: none; cursor: pointer; display: flex; gap: 16px; justify-content: space-between; align-items: flex-start;
  padding: 18px 4px; font-weight: 600; color: var(--heading); font-size: 1.04rem;
}
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after { content: "+"; font-family: var(--tx-font-mono); font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--text-muted); flex: none; transition: transform var(--tx-dur) var(--tx-ease); }
details.qa[open] > summary::after { transform: rotate(45deg); }
details.qa > summary:hover { color: var(--link); }
details.qa .qa-body { padding: 0 4px 20px; max-width: 46rem; }
details.qa .qa-body > :last-child { margin-bottom: 0; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.faq-nav a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; font-size: .88rem; color: var(--text); background: var(--surface); }
.faq-nav a:hover { border-color: var(--link); color: var(--link); }

/* ------------------------------------------------------------------ help / search */
.search-box { position: relative; max-width: 640px; }
.search-box input {
  width: 100%; height: 56px; padding: 0 20px; padding-inline-start: 52px; font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--tx-radius);
}
.search-box input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.search-box svg { position: absolute; inset-inline-start: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-results { list-style: none; margin: 16px 0 0; padding: 0; max-width: 760px; }
.search-results li { border-bottom: 1px solid var(--rule); }
.search-results a { display: block; padding: 14px 4px; text-decoration: none; color: var(--text); }
.search-results a:hover strong { text-decoration: underline; }
.search-results strong { color: var(--link); display: block; }
.search-results .sr-path { font-family: var(--tx-font-mono); font-size: .74rem; color: var(--text-muted); }
.search-results .sr-snip { font-size: .9rem; color: var(--text-muted); display: block; margin-top: 2px; }
.search-results mark { background: rgba(242, 169, 0, .3); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-status { font-size: .88rem; color: var(--text-muted); margin-top: 12px; min-height: 1.4em; }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.status-list li:last-child { border-bottom: 0; }
.status-dot { display: inline-flex; gap: 8px; align-items: center; font-family: var(--tx-font-mono); font-size: .78rem; color: var(--text-muted); }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.status-dot.ok::before { background: var(--ok); }
.guide { border-top: 1px solid var(--rule); padding: 32px 0 8px; }
.guide h3 { font-family: var(--tx-font-serif); font-weight: 500; font-size: 1.5rem; }
.symptom { font-family: var(--tx-font-mono); font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }

/* ------------------------------------------------------------------ download centre */
.channel-switch { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--tx-radius-sm); overflow: hidden; background: var(--surface); }
.channel-switch button { font: inherit; font-size: .9rem; font-weight: 500; padding: 8px 18px; border: 0; background: none; color: var(--text); cursor: pointer; }
.channel-switch button + button { border-inline-start: 1px solid var(--rule-strong); }
.channel-switch button[aria-pressed="true"] { background: var(--tx-navy); color: #fff; }
:root[data-theme="dark"] .channel-switch button[aria-pressed="true"] { background: #2E6FC0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .channel-switch button[aria-pressed="true"] { background: #2E6FC0; } }
.dl-list { display: grid; gap: 20px; }
.dl-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--tx-radius); overflow: hidden; }
.dl-main { padding: 28px; border-inline-end: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.dl-main h3 { margin: 0; font-size: 1.35rem; }
.dl-main p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.dl-main .btn-row { margin-top: auto; padding-top: 8px; }
.dl-detail { padding: 24px 28px; display: grid; gap: 18px; align-content: start; }
.dl-detail .spec { font-size: .88rem; }
.checksum { display: flex; gap: 8px; align-items: center; min-width: 0; }
.checksum code { font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.checksum .copy-btn { color: var(--text-muted); background: var(--surface-2); border-color: var(--rule-strong); }
.dl-card[hidden] { display: none; }
.dl-empty { display: block; background: transparent; border-style: dashed; }
.dl-empty .dl-main { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 18px 28px; border: 0; }
.dl-empty .dl-main h3 { font-size: 1.05rem; }
.dl-empty .dl-main p { font-size: .9rem; }
.dl-empty .btn-ghost { margin-inline-start: auto; min-height: 0; }
@media (max-width: 860px) { .dl-card { grid-template-columns: minmax(0, 1fr); } .dl-main { border-inline-end: 0; border-bottom: 1px solid var(--rule); } }

/* ------------------------------------------------------------------ pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--tx-radius); padding: 32px 28px; }
.plan.featured { border-color: var(--tx-navy); box-shadow: inset 0 3px 0 var(--accent), var(--tx-shadow); }
:root[data-theme="dark"] .plan.featured { border-color: var(--rule-strong); }
.plan h3 { font-family: var(--tx-font-serif); font-weight: 500; font-size: 1.7rem; margin-bottom: 4px; }
.plan .price { font-family: var(--tx-font-mono); font-size: 1.05rem; color: var(--heading); margin: 12px 0 4px; }
.plan .price-note { font-size: .86rem; color: var(--text-muted); margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; font-size: .94rem; }
.plan li { padding: 8px 0; padding-inline-start: 26px; border-top: 1px solid var(--rule); position: relative; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 16px; width: 10px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface); padding: 64px 0 32px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font-family: var(--tx-font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--link); text-decoration: underline; }
.footer-brand p { color: var(--text-muted); max-width: 22em; margin-top: 14px; }
.footer-tagline { font-family: var(--tx-font-serif); font-style: italic; color: var(--heading) !important; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--text-muted); font-size: .82rem; }
.footer-base a { color: var(--text-muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ misc */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding: 6px 0; padding-inline-start: 28px; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 13px; width: 11px; height: 6px; border-left: 2px solid var(--fig-track); border-bottom: 2px solid var(--fig-track); transform: rotate(-45deg); }
.x-list { list-style: none; padding: 0; margin: 0 0 1em; }
.x-list li { position: relative; padding: 6px 0; padding-inline-start: 28px; }
.x-list li::before { content: "–"; position: absolute; inset-inline-start: 6px; top: 5px; color: var(--text-muted); font-family: var(--tx-font-mono); }
.ref-list { font-size: .92rem; padding-inline-start: 1.6em; }
.ref-list li { margin: .5em 0; }
.cite { font-family: var(--tx-font-mono); font-size: .78rem; color: var(--text-muted); white-space: nowrap; }
.tag { display: inline-block; font-family: var(--tx-font-mono); font-size: .72rem; padding: 2px 7px; border-radius: 3px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--rule); }
.cmd { font-family: var(--tx-font-mono); font-weight: 500; color: var(--heading); }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 32px; } .mt-7 { margin-top: 48px; }
.stack > * + * { margin-top: 16px; }
.err-code { font-family: var(--tx-font-mono); font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--heading); letter-spacing: -.04em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
