/* AUTO-GENERATED by web/scripts/sync-primer-tokens.mjs — do not hand-edit.
 * Source: @primer/primitives@10.7.0 light + dark functional themes + size tokens.
 * Re-run: cd web && npm run sync:primer-tokens
 */

:root,
[data-color-mode="dark"],
[data-color-mode="dark"][data-dark-theme="dark"] {
  color-scheme: dark;

  /* ── Primer functional color roles ── */
  --bgColor-default: #0d1117;
  --bgColor-muted: #151b23;
  --bgColor-inset: #010409;
  --bgColor-emphasis: #3d444d;
  --bgColor-disabled: #212830;
  --bgColor-accent-emphasis: #1f6feb;
  --bgColor-accent-muted: #388bfd1a;
  --bgColor-success-emphasis: #238636;
  --bgColor-success-muted: #2ea04326;
  --bgColor-attention-emphasis: #9e6a03;
  --bgColor-attention-muted: #bb800926;
  --bgColor-danger-emphasis: #da3633;
  --bgColor-danger-muted: #f851491a;
  --bgColor-severe-emphasis: #bd561d;
  --bgColor-neutral-emphasis: #656c76;
  --bgColor-neutral-muted: #656c7633;
  --fgColor-default: #f0f6fc;
  --fgColor-muted: #9198a1;
  --fgColor-onEmphasis: #ffffff;
  --fgColor-accent: #4493f8;
  --fgColor-success: #3fb950;
  --fgColor-attention: #d29922;
  --fgColor-danger: #f85149;
  --fgColor-severe: #db6d28;
  --fgColor-link: #4493f8;
  --borderColor-default: #3d444d;
  --borderColor-muted: #3d444db3;
  --borderColor-emphasis: #656c76;
  --borderColor-accent-emphasis: #1f6feb;
  --borderColor-success-emphasis: #238636;
  --borderColor-attention-emphasis: #9e6a03;
  --borderColor-danger-emphasis: #da3633;
  --button-primary-bgColor-rest: #238636;
  --button-primary-bgColor-hover: #29903b;
  --button-primary-bgColor-active: #2e9a40;
  --control-borderColor-rest: #3d444d;
  --control-fgColor-rest: #f0f6fc;
  --focus-outlineColor: #1f6feb;

  /* Canvas layers: Primer default/muted plus stable elevated steps used
   * across NFLTR panels (historical GitHub canvas values). */
  --bgColor-surface: #161b22;
  --bgColor-surface-alt: #1c2128;
  --bgColor-surface-elevated: #21262d;
  --borderColor-subtle: #21262d;

  /* ── Primer control / stack size (subset) ── */
  --control-small-size: 1.75rem;
  --control-medium-size: 2rem;
  --control-large-size: 2.5rem;
  --control-medium-paddingInline-normal: 0.75rem;
  --control-small-paddingInline-normal: 0.75rem;
  --stack-gap-condensed: 0.5rem;
  --stack-gap-normal: 1rem;
  --stack-gap-spacious: 1.5rem;
  --stack-padding-condensed: 0.5rem;
  --stack-padding-normal: 1rem;
  --overlay-borderRadius: 0.375rem;

  /* ── Spacing scale (4px base, Primer-aligned) ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* ── Radii ── */
  --borderRadius-small: 0.375rem;
  --borderRadius-medium: 0.5rem;
  --borderRadius-large: 0.75rem;
  --borderRadius-xlarge: 0.875rem;
  --borderRadius-full: 999px;

  /* ── Typography stacks (Primer / GitHub system) ── */
  --fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --fontStack-monospace: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fontStack-display: var(--fontStack-system);
  --fontStack-body: var(--fontStack-system);

  /* ── NFLTR compat aliases (existing CSS keeps working) ── */
  --bg: var(--bgColor-default);
  --surface: var(--bgColor-surface);
  --surface-alt: var(--bgColor-surface-alt);
  --surface-elevated: var(--bgColor-surface-elevated);
  --border-subtle: var(--borderColor-subtle);
  --border: var(--borderColor-default);
  --text-heading: var(--fgColor-default);
  --text: #c9d1d9;
  --text-secondary: var(--fgColor-default);
  --text-muted: var(--fgColor-muted);
  --text-dim: #484f58;
  --blue: var(--fgColor-accent);
  --blue-bg: var(--bgColor-accent-emphasis);
  --green: var(--fgColor-success);
  --green-bg: var(--bgColor-success-emphasis);
  --red: var(--fgColor-danger);
  --yellow: var(--fgColor-attention);
  --orange: var(--fgColor-severe);
  --state-paused: var(--fgColor-attention);
  --radius-sm: var(--borderRadius-small);
  --radius-md: var(--borderRadius-medium);
  --radius-lg: var(--borderRadius-large);
  --radius-xl: var(--borderRadius-xlarge);
  --radius-pill: var(--borderRadius-full);
  --mono: var(--fontStack-monospace);
  --accent: var(--fgColor-accent);
  --accent-cyan: var(--fgColor-accent);
  --accent-indigo: #7f89ff;
  --cyan: #39c5cf;
  --pink: #ff7b72;
  --landing-hero-glow: #1a2f52;
  --landing-body-deep: #0b1016;
  --orch-workspace-nav-top: 0.5rem;
  --orch-workspace-nav-stack: 3.75rem;
}

[data-color-mode="light"],
[data-color-mode="light"][data-light-theme="light"] {
  color-scheme: light;

  /* ── Primer functional color roles ── */
  --bgColor-default: #ffffff;
  --bgColor-muted: #f6f8fa;
  --bgColor-inset: #f6f8fa;
  --bgColor-emphasis: #25292e;
  --bgColor-disabled: #eff2f5;
  --bgColor-accent-emphasis: #0969da;
  --bgColor-accent-muted: #ddf4ff;
  --bgColor-success-emphasis: #1f883d;
  --bgColor-success-muted: #dafbe1;
  --bgColor-attention-emphasis: #9a6700;
  --bgColor-attention-muted: #fff8c5;
  --bgColor-danger-emphasis: #cf222e;
  --bgColor-danger-muted: #ffebe9;
  --bgColor-severe-emphasis: #bc4c00;
  --bgColor-neutral-emphasis: #59636e;
  --bgColor-neutral-muted: #818b981f;
  --fgColor-default: #1f2328;
  --fgColor-muted: #59636e;
  --fgColor-onEmphasis: #ffffff;
  --fgColor-accent: #0969da;
  --fgColor-success: #1a7f37;
  --fgColor-attention: #9a6700;
  --fgColor-danger: #d1242f;
  --fgColor-severe: #bc4c00;
  --fgColor-link: #0969da;
  --borderColor-default: #d1d9e0;
  --borderColor-muted: #d1d9e0b3;
  --borderColor-emphasis: #818b98;
  --borderColor-accent-emphasis: #0969da;
  --borderColor-success-emphasis: #1a7f37;
  --borderColor-attention-emphasis: #9a6700;
  --borderColor-danger-emphasis: #cf222e;
  --button-primary-bgColor-rest: #1f883d;
  --button-primary-bgColor-hover: #1c8139;
  --button-primary-bgColor-active: #197935;
  --control-borderColor-rest: #d1d9e0;
  --control-fgColor-rest: #25292e;
  --focus-outlineColor: #0969da;

  /* Canvas layers: Primer default/muted plus stable elevated steps used
   * across NFLTR panels (historical GitHub canvas values). */
  --bgColor-surface: #ffffff;
  --bgColor-surface-alt: #f6f8fa;
  --bgColor-surface-elevated: #eaeef2;
  --borderColor-subtle: #d8dee4;

  /* ── NFLTR compat aliases (existing CSS keeps working) ── */
  --bg: var(--bgColor-default);
  --surface: var(--bgColor-surface);
  --surface-alt: var(--bgColor-surface-alt);
  --surface-elevated: var(--bgColor-surface-elevated);
  --border-subtle: var(--borderColor-subtle);
  --border: var(--borderColor-default);
  --text-heading: var(--fgColor-default);
  --text: #424a53;
  --text-secondary: var(--fgColor-default);
  --text-muted: var(--fgColor-muted);
  --text-dim: #656d76;
  --blue: var(--fgColor-accent);
  --blue-bg: var(--bgColor-accent-emphasis);
  --green: var(--fgColor-success);
  --green-bg: var(--bgColor-success-emphasis);
  --red: var(--fgColor-danger);
  --yellow: var(--fgColor-attention);
  --orange: var(--fgColor-severe);
  --state-paused: var(--fgColor-attention);
  --radius-sm: var(--borderRadius-small);
  --radius-md: var(--borderRadius-medium);
  --radius-lg: var(--borderRadius-large);
  --radius-xl: var(--borderRadius-xlarge);
  --radius-pill: var(--borderRadius-full);
  --mono: var(--fontStack-monospace);
  --accent: var(--fgColor-accent);
  --accent-cyan: var(--fgColor-accent);
  --accent-indigo: #5a64d6;
  --cyan: #1199ad;
  --pink: #cf222e;
  --landing-hero-glow: #d7e7ff;
  --landing-body-deep: #eef2f6;
  --orch-workspace-nav-top: 0.5rem;
  --orch-workspace-nav-stack: 3.75rem;
}

/* Auto follows the OS day/night preference until the operator picks light or dark. */
@media (prefers-color-scheme: light) {
[data-color-mode="auto"],
[data-color-mode="auto"][data-light-theme="light"] {
  color-scheme: light;

  /* ── Primer functional color roles ── */
  --bgColor-default: #ffffff;
  --bgColor-muted: #f6f8fa;
  --bgColor-inset: #f6f8fa;
  --bgColor-emphasis: #25292e;
  --bgColor-disabled: #eff2f5;
  --bgColor-accent-emphasis: #0969da;
  --bgColor-accent-muted: #ddf4ff;
  --bgColor-success-emphasis: #1f883d;
  --bgColor-success-muted: #dafbe1;
  --bgColor-attention-emphasis: #9a6700;
  --bgColor-attention-muted: #fff8c5;
  --bgColor-danger-emphasis: #cf222e;
  --bgColor-danger-muted: #ffebe9;
  --bgColor-severe-emphasis: #bc4c00;
  --bgColor-neutral-emphasis: #59636e;
  --bgColor-neutral-muted: #818b981f;
  --fgColor-default: #1f2328;
  --fgColor-muted: #59636e;
  --fgColor-onEmphasis: #ffffff;
  --fgColor-accent: #0969da;
  --fgColor-success: #1a7f37;
  --fgColor-attention: #9a6700;
  --fgColor-danger: #d1242f;
  --fgColor-severe: #bc4c00;
  --fgColor-link: #0969da;
  --borderColor-default: #d1d9e0;
  --borderColor-muted: #d1d9e0b3;
  --borderColor-emphasis: #818b98;
  --borderColor-accent-emphasis: #0969da;
  --borderColor-success-emphasis: #1a7f37;
  --borderColor-attention-emphasis: #9a6700;
  --borderColor-danger-emphasis: #cf222e;
  --button-primary-bgColor-rest: #1f883d;
  --button-primary-bgColor-hover: #1c8139;
  --button-primary-bgColor-active: #197935;
  --control-borderColor-rest: #d1d9e0;
  --control-fgColor-rest: #25292e;
  --focus-outlineColor: #0969da;

  /* Canvas layers: Primer default/muted plus stable elevated steps used
   * across NFLTR panels (historical GitHub canvas values). */
  --bgColor-surface: #ffffff;
  --bgColor-surface-alt: #f6f8fa;
  --bgColor-surface-elevated: #eaeef2;
  --borderColor-subtle: #d8dee4;

  /* ── NFLTR compat aliases (existing CSS keeps working) ── */
  --bg: var(--bgColor-default);
  --surface: var(--bgColor-surface);
  --surface-alt: var(--bgColor-surface-alt);
  --surface-elevated: var(--bgColor-surface-elevated);
  --border-subtle: var(--borderColor-subtle);
  --border: var(--borderColor-default);
  --text-heading: var(--fgColor-default);
  --text: #424a53;
  --text-secondary: var(--fgColor-default);
  --text-muted: var(--fgColor-muted);
  --text-dim: #656d76;
  --blue: var(--fgColor-accent);
  --blue-bg: var(--bgColor-accent-emphasis);
  --green: var(--fgColor-success);
  --green-bg: var(--bgColor-success-emphasis);
  --red: var(--fgColor-danger);
  --yellow: var(--fgColor-attention);
  --orange: var(--fgColor-severe);
  --state-paused: var(--fgColor-attention);
  --radius-sm: var(--borderRadius-small);
  --radius-md: var(--borderRadius-medium);
  --radius-lg: var(--borderRadius-large);
  --radius-xl: var(--borderRadius-xlarge);
  --radius-pill: var(--borderRadius-full);
  --mono: var(--fontStack-monospace);
  --accent: var(--fgColor-accent);
  --accent-cyan: var(--fgColor-accent);
  --accent-indigo: #5a64d6;
  --cyan: #1199ad;
  --pink: #cf222e;
  --landing-hero-glow: #d7e7ff;
  --landing-body-deep: #eef2f6;
  --orch-workspace-nav-top: 0.5rem;
  --orch-workspace-nav-stack: 3.75rem;
}

}

@media (prefers-color-scheme: dark) {
[data-color-mode="auto"],
[data-color-mode="auto"][data-dark-theme="dark"] {
  color-scheme: dark;

  /* ── Primer functional color roles ── */
  --bgColor-default: #0d1117;
  --bgColor-muted: #151b23;
  --bgColor-inset: #010409;
  --bgColor-emphasis: #3d444d;
  --bgColor-disabled: #212830;
  --bgColor-accent-emphasis: #1f6feb;
  --bgColor-accent-muted: #388bfd1a;
  --bgColor-success-emphasis: #238636;
  --bgColor-success-muted: #2ea04326;
  --bgColor-attention-emphasis: #9e6a03;
  --bgColor-attention-muted: #bb800926;
  --bgColor-danger-emphasis: #da3633;
  --bgColor-danger-muted: #f851491a;
  --bgColor-severe-emphasis: #bd561d;
  --bgColor-neutral-emphasis: #656c76;
  --bgColor-neutral-muted: #656c7633;
  --fgColor-default: #f0f6fc;
  --fgColor-muted: #9198a1;
  --fgColor-onEmphasis: #ffffff;
  --fgColor-accent: #4493f8;
  --fgColor-success: #3fb950;
  --fgColor-attention: #d29922;
  --fgColor-danger: #f85149;
  --fgColor-severe: #db6d28;
  --fgColor-link: #4493f8;
  --borderColor-default: #3d444d;
  --borderColor-muted: #3d444db3;
  --borderColor-emphasis: #656c76;
  --borderColor-accent-emphasis: #1f6feb;
  --borderColor-success-emphasis: #238636;
  --borderColor-attention-emphasis: #9e6a03;
  --borderColor-danger-emphasis: #da3633;
  --button-primary-bgColor-rest: #238636;
  --button-primary-bgColor-hover: #29903b;
  --button-primary-bgColor-active: #2e9a40;
  --control-borderColor-rest: #3d444d;
  --control-fgColor-rest: #f0f6fc;
  --focus-outlineColor: #1f6feb;

  /* Canvas layers: Primer default/muted plus stable elevated steps used
   * across NFLTR panels (historical GitHub canvas values). */
  --bgColor-surface: #161b22;
  --bgColor-surface-alt: #1c2128;
  --bgColor-surface-elevated: #21262d;
  --borderColor-subtle: #21262d;

  /* ── NFLTR compat aliases (existing CSS keeps working) ── */
  --bg: var(--bgColor-default);
  --surface: var(--bgColor-surface);
  --surface-alt: var(--bgColor-surface-alt);
  --surface-elevated: var(--bgColor-surface-elevated);
  --border-subtle: var(--borderColor-subtle);
  --border: var(--borderColor-default);
  --text-heading: var(--fgColor-default);
  --text: #c9d1d9;
  --text-secondary: var(--fgColor-default);
  --text-muted: var(--fgColor-muted);
  --text-dim: #484f58;
  --blue: var(--fgColor-accent);
  --blue-bg: var(--bgColor-accent-emphasis);
  --green: var(--fgColor-success);
  --green-bg: var(--bgColor-success-emphasis);
  --red: var(--fgColor-danger);
  --yellow: var(--fgColor-attention);
  --orange: var(--fgColor-severe);
  --state-paused: var(--fgColor-attention);
  --radius-sm: var(--borderRadius-small);
  --radius-md: var(--borderRadius-medium);
  --radius-lg: var(--borderRadius-large);
  --radius-xl: var(--borderRadius-xlarge);
  --radius-pill: var(--borderRadius-full);
  --mono: var(--fontStack-monospace);
  --accent: var(--fgColor-accent);
  --accent-cyan: var(--fgColor-accent);
  --accent-indigo: #7f89ff;
  --cyan: #39c5cf;
  --pink: #ff7b72;
  --landing-hero-glow: #1a2f52;
  --landing-body-deep: #0b1016;
  --orch-workspace-nav-top: 0.5rem;
  --orch-workspace-nav-stack: 3.75rem;
}

}
/* Primer-aligned base: type, links, focus, code. No page layout. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--fontStack-body);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--bgColor-default);
  color: var(--text);
}

a {
  color: var(--fgColor-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--focus-outlineColor);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  color: var(--fgColor-default);
  font-family: var(--fontStack-display);
  font-weight: 600;
  line-height: 1.25;
}
h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

code, kbd, pre, samp {
  font-family: var(--fontStack-monospace);
}

code {
  background: var(--bgColor-muted);
  padding: 0.125rem 0.375rem;
  border-radius: var(--borderRadius-small);
  font-size: 0.9em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.primer-caption,
.text-caption {
  font-size: 0.75rem;
  line-height: 1.333;
  color: var(--fgColor-muted);
}
/* Primer-aligned controls shared across landing, docs, login, install, dashboard. */

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-medium-size);
  padding: 0 var(--control-medium-paddingInline-normal);
  border: 1px solid var(--borderColor-default);
  border-radius: var(--borderRadius-medium);
  background: var(--bgColor-surface);
  color: var(--fgColor-default);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.btn:hover,
button.btn:hover {
  text-decoration: none;
  background: var(--bgColor-neutral-muted);
  border-color: var(--borderColor-emphasis);
}
.btn:disabled,
button.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-primary,
button.btn-primary {
  background: var(--button-primary-bgColor-rest);
  border-color: var(--borderColor-success-emphasis);
  color: var(--fgColor-onEmphasis);
}
.btn-primary:hover,
button.btn-primary:hover {
  background: var(--button-primary-bgColor-hover);
  border-color: var(--button-primary-bgColor-hover);
  color: var(--fgColor-onEmphasis);
}

.btn-danger,
button.btn-danger {
  background: var(--bgColor-danger-emphasis);
  border-color: var(--borderColor-danger-emphasis);
  color: var(--fgColor-onEmphasis);
}
.btn-danger:hover,
button.btn-danger:hover {
  filter: brightness(1.08);
  color: var(--fgColor-onEmphasis);
}

.btn-outline,
button.btn-outline {
  background: transparent;
  border-color: var(--borderColor-default);
  color: var(--fgColor-default);
}
.btn-outline:hover,
button.btn-outline:hover {
  background: var(--bgColor-neutral-muted);
}

.btn-xs,
button.btn-xs {
  min-height: var(--control-small-size);
  padding: 0 var(--control-small-paddingInline-normal);
  font-size: 0.75rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="url"],
input:not([type]),
textarea,
select {
  min-height: var(--control-medium-size);
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--control-borderColor-rest);
  border-radius: var(--borderRadius-medium);
  background: var(--bgColor-default);
  color: var(--control-fgColor-rest);
  font: inherit;
  font-size: 0.875rem;
}
textarea {
  min-height: 5rem;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus-outlineColor);
  outline-offset: 0;
  border-color: var(--borderColor-accent-emphasis);
}

details.primer-disclosure,
details.orch-dag-coordination {
  border: 1px solid var(--borderColor-default);
  border-radius: var(--borderRadius-medium);
  background: var(--bgColor-surface);
}
details.primer-disclosure > summary,
details.orch-dag-coordination > .orch-dag-coordination-summary {
  cursor: pointer;
  list-style: none;
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  color: var(--fgColor-default);
}
details.primer-disclosure > summary::-webkit-details-marker,
details.orch-dag-coordination > .orch-dag-coordination-summary::-webkit-details-marker {
  display: none;
}

/* Site-wide day/night theme control (Auto → Day → Night). */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-medium-size);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--borderColor-default);
  border-radius: var(--borderRadius-medium);
  background: var(--bgColor-surface);
  color: var(--fgColor-default);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.theme-toggle:hover {
  border-color: var(--borderColor-emphasis);
  background: var(--bgColor-neutral-muted);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--focus-outlineColor);
  outline-offset: 2px;
}
.theme-toggle-floating {
  position: fixed;
  z-index: 200;
  top: 0.75rem;
  right: 0.75rem;
}
/* =====================================================================
   doc.css — the one stylesheet of every nfltr.xyz site page: the
   landings (apex, orch, relay, status), docs, blog, install, privacy, 404.
   web.DocsCSS prepends the Primer layer (web/design): colour and radius
   tokens on :root, re-declared for light and dark under data-color-mode
   (docs/decisions/site-wide-day-night-themes-2026-08-10.md). No page
   carries its own <style> (cmd/tools/site-build TestOneTheme).
   ===================================================================== */

/* ── Site tokens: layout, type scale, spacing ── */
:root {
  --site-max: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 68ch;
  --font-display: var(--fontStack-display);
  --font-mono: var(--fontStack-monospace);
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.1rem;
  --fs-xl: 1.35rem;
  --fs-2xl: clamp(1.6rem, 3.2vw, 2.25rem);
  --fs-3xl: clamp(2.1rem, 4.4vw, 3.1rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-section: clamp(3rem, 7vw, 5.5rem);
  --band: var(--bgColor-muted);
  --rule: var(--border-subtle);
}

body {
  background: var(--bgColor-default);
  color: var(--text);
  line-height: 1.7;
}

h1 { margin-bottom: 1rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border-subtle); }
h3 { font-size: 1.1rem; margin: 1.75rem 0 .6rem; color: var(--text-secondary); }
h4 { font-size: 1rem; margin: 1.25rem 0 .5rem; color: var(--text); }

p { margin: .75rem 0; }
ul, ol { padding-left: 1.5rem; margin: .75rem 0; }
li { margin: .3rem 0; }
hr { border: none; border-top: 1px solid var(--border-subtle); margin: 2rem 0; }

blockquote {
  border-left: 3px solid var(--blue-bg);
  padding: .5rem 1rem;
  margin: 1rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
}

strong { color: var(--text-heading); font-weight: 600; }

/* ── Code ── */
code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .875em;
  font-family: var(--font-mono);
  overflow-wrap: break-word;
  word-break: break-word;
}
pre {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}
pre code { background: none; padding: 0; font-size: .85em; line-height: 1.6; }

/* ── Tables ── */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: .9rem;
  display: block;
  overflow-x: auto;
}
th {
  background: var(--surface);
  color: var(--text-heading);
  padding: .6rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
td { padding: .55rem 1rem; border-bottom: 1px solid var(--border-subtle); color: var(--text); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: color-mix(in srgb, var(--bgColor-muted) 66%, transparent); }

/* ── Shared header (web/site/home.html, from products.yaml) ── */
.skip-link { position: absolute; left: -999px; top: var(--space-2); z-index: 200; padding: var(--space-2) var(--space-3); background: var(--bgColor-default); border-radius: var(--radius-sm); }
.skip-link:focus { left: var(--space-2); }
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bgColor-default) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
header nav {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: .7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text-heading);
}
.logo:hover { text-decoration: none; color: var(--text-heading); }
.logo img { border-radius: var(--radius-sm); }
.logo-mark { display: block; border-radius: var(--radius-sm); }
.nav-right { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem clamp(.6rem, 2vw, 1.25rem); font-size: var(--fs-sm); }
.nav-right a { color: var(--text-muted); }
.nav-right a:hover { color: var(--text-heading); text-decoration: none; }
.nav-right a.active { color: var(--text-heading); font-weight: 600; }
.nav-products { display: inline-flex; flex-wrap: wrap; gap: inherit; padding-right: clamp(.6rem, 2vw, 1.25rem); border-right: 1px solid var(--rule); }
.nav-right .nav-cta { color: #fff; background: var(--button-primary-bgColor-rest); padding: .3rem .75rem; border-radius: var(--radius-sm); font-weight: 600; white-space: nowrap; }
.nav-right .nav-cta:hover { color: #fff; background: var(--button-primary-bgColor-hover); }

.docs-trust-note {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
  font-size: .76rem;
  color: var(--text-muted);
}

.docs-trust-note a {
  color: var(--blue);
}

.docs-trust-note a:hover {
  text-decoration: underline;
}

/* ── Page layout ── */
.page-layout {
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - 58px);
}

/* ── Sidebar ── */
.sidebar {
  display: block;
  width: 240px;
  flex-shrink: 0;
  padding: 2rem 0;
  border-right: 1px solid var(--border-subtle);
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
  overflow-x: hidden;
}
.sidebar-section { margin-bottom: 1.5rem; padding: 0 1.25rem; }
.sidebar-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin: 0; }
.sidebar a {
  display: block;
  padding: .3rem .5rem;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: .875rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sidebar a:hover { color: var(--text); background: var(--surface-elevated); text-decoration: none; }
.sidebar a.active { color: var(--text-heading); background: var(--surface-elevated); font-weight: 500; }

/* ── Content ── */
.content { flex: 1; padding: 2.5rem 2.5rem 4rem; min-width: 0; }
.page-title { margin-bottom: .25rem; }
.page-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Diagram box ── */
.diagram-box {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow-x: auto;
}

/* ── Feature grid + card ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.feature-card h3 { margin-top: 0; font-size: 1rem; }
.feature-card h4 { font-size: .95rem; margin-bottom: .4rem; }
.feature-card p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ── Callout ── */
.callout {
  background: #0d419d16;
  border: 1px solid #388bfd30;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout-title { font-weight: 600; color: var(--blue); margin-bottom: .25rem; }
.callout-warn { background: #d2992216; border: 1px solid #d2992230; }
.callout-warn .callout-title { color: var(--yellow); }

/* ── CTA box ── */
.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-box h3 { margin-bottom: .5rem; }
.cta-box p { color: var(--text-muted); margin-bottom: 1rem; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: 0 1.25rem; border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--button-primary-bgColor-rest); color: #fff; }
.btn-primary:hover { background: var(--button-primary-bgColor-hover); }
.btn-secondary { background: var(--surface-elevated); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--borderColor-emphasis); }
.btn-ml { margin-left: .5rem; }

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  background: #388bfd22;
  color: var(--blue);
  border: 1px solid #388bfd30;
  margin-left: .5rem;
}
/* Docs index tag variants */
.card .tag {
  margin-top: .75rem;
  font-size: .7rem;
  padding: 2px 8px;
  align-self: flex-start;
  margin-left: 0;
}
.tag-core  { background: #23863616; color: var(--green);  border: 1px solid #23863630; }
.tag-ref   { background: #388bfd16; color: var(--blue);   border: 1px solid #388bfd30; }
.tag-guide { background: #f0883e16; color: var(--orange); border: 1px solid #f0883e30; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  vertical-align: middle;
  margin-left: .4rem;
}
.badge-cli { background: #f0883e16; color: var(--orange); border: 1px solid #f0883e30; }
.badge-new { background: #23863616; color: var(--green);  border: 1px solid #23863630; }
.badge-go  { background: #00acd716; color: var(--cyan);   border: 1px solid #00acd730; }
.badge-req { background: #23863616; color: var(--green);  border: 1px solid #23863630; }
.badge-opt { background: #8b949e16; color: var(--text-muted); border: 1px solid #8b949e30; }

/* ── Terminal mock (browser-ssh, web-terminal, log-streaming) ── */
.terminal-mock {
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.8;
  color: var(--green);
  overflow-x: auto;
}
.terminal-mock .title-bar { display: flex; gap: .4rem; margin-bottom: .75rem; }
.terminal-mock .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-mock .dot-red    { background: var(--red); }
.terminal-mock .dot-yellow { background: #e3b341; }
.terminal-mock .dot-green  { background: var(--green); }
.terminal-mock .prompt { color: var(--blue); }
.terminal-mock .output { color: var(--text); }

/* ── SDK field list (sdk.html) ── */
.field {
  margin: .5rem 0;
  padding: .6rem .8rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.field-name {
  font-family: var(--font-mono);
  color: #79c0ff;
  font-size: .9em;
}
.field-type {
  color: var(--pink);
  font-size: .85em;
  margin-left: .5rem;
  font-family: var(--font-mono);
}
.field-desc { font-size: .875rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Docs index layout (docs/index.html) ── */
.wrapper { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--border); transform: translateY(-2px); }
.card-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.card h3 { font-size: 1rem; margin-bottom: .35rem; }
.card h3 a { color: var(--text-heading); text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.card p { color: var(--text-muted); font-size: .85rem; line-height: 1.5; flex: 1; }
.back-home {
  display: inline-block;
  margin-top: 3rem;
  padding: .6rem 1.2rem;
  background: var(--surface-elevated);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  transition: background .2s;
}
.back-home:hover { background: var(--border); text-decoration: none; }

/* ── Blog (blog/*.html) ── */
.post { width: 100%; max-width: 46rem; margin: 0 auto; box-sizing: border-box; }
.post-meta { color: var(--text-muted); font-size: .85rem; margin: .25rem 0 1.5rem; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.post-list .post-meta { margin: 0 0 .35rem; }
.post figure { margin: 1.75rem 0; }
.post figcaption, .figure-note { color: var(--text-muted); font-size: .85rem; line-height: 1.55; margin-top: .6rem; }

/* Inline SVG diagrams: tokens, so light and dark both work. */
.dg { display: block; width: 100%; height: auto; max-width: 34rem; margin: 0 auto; }
.dg text { font-family: inherit; font-size: 13px; fill: var(--text); }
.dg .dg-title { font-weight: 600; fill: var(--text-heading); font-size: 14px; }
.dg .dg-muted { fill: var(--text-muted); font-size: 12px; }
.dg .dg-box { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.dg .dg-relay { fill: var(--surface-elevated); stroke: var(--blue); }
.dg .dg-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.dg .dg-arrow { stroke: var(--text-muted); stroke-width: 1.75; fill: none; }
.dg .dg-arrow.dg-soft { stroke-dasharray: 5 4; }
.dg .dg-head { fill: var(--text-muted); }
.dg .dg-via { fill: var(--surface-elevated); stroke: var(--blue); stroke-width: 1.5; }
.dg .dg-slot { fill: none; stroke: var(--green); stroke-width: 1.5; }
.dg .dg-slot.dg-on { fill: var(--green); }
.dg .dg-note { fill: var(--bgColor-default); }

/* Step-through flows (blog.js): step 0 shows everything. */
.flow ol { font-size: .9rem; }
.flow [data-state] { transition: opacity .3s; }
.flow [data-state="todo"] { opacity: .18; }
.flow li[data-state="todo"] { opacity: .5; }
.flow [data-state="done"] { opacity: .6; }
.flow li[data-state="now"] { color: var(--text-heading); font-weight: 600; }
.flow g[data-state="now"] .dg-arrow { stroke: var(--blue); stroke-dasharray: 6 4; animation: flow-dash .8s linear infinite; }
.flow g[data-state="now"] .dg-head { fill: var(--blue); }
.flow g[data-state="now"] text { fill: var(--text-heading); }
@keyframes flow-dash { to { stroke-dashoffset: -20; } }
.flow-controls { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.flow-controls[hidden], .flow-controls [hidden] { display: none; }
.flow-controls button { font: inherit; font-size: .85rem; padding: .35rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-elevated); color: var(--text); cursor: pointer; }
.flow-controls button:hover { border-color: var(--blue); }
.flow-now { min-height: 1.4em; font-size: .85rem; color: var(--text-muted); margin: .4rem 0 0; }
/* Narrow screens: diagrams use the gutter and larger type (they scale down with the viewBox). */
@media (max-width: 480px) {
  .post .dg { width: calc(100% + 1rem); max-width: none; margin-inline: -.5rem; }
  .dg text { font-size: 14.5px; }
  .dg .dg-title { font-size: 15px; }
  .dg .dg-muted { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow [data-state] { transition: none; }
  .flow g[data-state="now"] .dg-arrow { animation: none; stroke-dasharray: none; }
}

/* Bar tables: the numbers are in the table; bars are decoration. */
table.viz { display: table; font-size: .85rem; }
table.viz th { font-weight: 500; text-align: left; color: var(--text); background: none; }
table.viz td, table.viz th { padding: .4rem .5rem; border: none; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
table.viz thead th { color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
table.viz .viz-bar { width: 38%; min-width: 5rem; }
table.viz .viz-num { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.viz-track { position: relative; display: block; height: 10px; border-radius: 4px; background: var(--surface-elevated); }
.viz-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--blue); }
.viz-fill.viz-miss { background: var(--yellow); }
.viz-whisker { position: absolute; top: 4px; height: 2px; background: var(--text-muted); }
.viz-tick { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--text-heading); }
table.viz.faults th[scope="row"] { font-weight: 500; }
table.viz.faults td { color: var(--text-muted); }
.pill { display: inline-block; padding: 0 .45rem; margin-right: .3rem; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 600; border: 1px solid currentColor; white-space: nowrap; }
.pill-pass { color: var(--green); }
.pill-partial { color: var(--yellow); }
.pill-pending { color: var(--text-muted); border-style: dashed; }
.pill-fail { color: var(--red); }
.post details { margin: .75rem 0 1.25rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: .5rem .9rem; background: var(--surface); }
.post details > summary { cursor: pointer; font-size: .88rem; color: var(--text-heading); line-height: 1.5; }
.post details[open] > summary { margin-bottom: .5rem; }
.post h4 { font-size: .95rem; margin: 1.5rem 0 .4rem; color: var(--text-heading); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Before / after pairs */
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.pair > div { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: .75rem 1rem; background: var(--surface); font-size: .88rem; }
.pair h4 { margin: 0 0 .35rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.pair blockquote { margin: .5rem 0; font-size: .85rem; }
.pair p { margin: .35rem 0; }

/* Demo player (blog.js; same player as the homepage) */
.demo-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .5rem; margin: 1rem 0 .75rem; }
.demo-choice { display: flex; flex-direction: column; gap: .25rem; padding: .7rem .85rem; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); cursor: pointer; }
.demo-choice:hover { border-color: var(--border); }
.demo-choice strong { font-size: .9rem; }
.demo-choice span { color: var(--text-muted); font-size: .8rem; line-height: 1.45; }
.demo-choice[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.demo-screen { position: relative; min-height: 260px; padding: .6rem; overflow-x: auto; background: #000; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.demo-term { width: max-content; margin: 0 auto; }
.demo-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; font: inherit; cursor: pointer; }
.demo-screen:has(.demo-term) .demo-play { top: auto; left: auto; right: 1rem; bottom: 1rem; transform: none; }
.demo-play[hidden] { display: none; }

/* ── Shared footer ── */
footer {
  border-top: 1px solid var(--rule);
  padding: var(--space-6) var(--gutter);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
footer p { margin: 0; }
footer .footer-inner { max-width: calc(var(--site-max) - 2 * var(--gutter)); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
footer .footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer .footer-brand { font-weight: 700; color: var(--text-heading); }

/* ── Responsive ── */
@media (max-width: 768px) {
  header nav { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .nav-right { justify-content: flex-start; }
  .nav-products { border-right: 0; padding-right: 0; }
  .page-layout {
    flex-direction: column;
  }
  .sidebar {
    display: block;
    width: 100%;
    position: static;
    top: auto;
    height: auto;
    padding: 1rem 0;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    overflow: visible;
  }
  .sidebar-section {
    padding: 0 1rem;
  }
  .sidebar-section + .sidebar-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }
  .sidebar ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .35rem .75rem;
  }
  .content { padding: 1.5rem 1.25rem 3rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  table { font-size: .8rem; }
  th, td { padding: .45rem .6rem; }
  .feature-grid { grid-template-columns: 1fr; }
}
table.viz.compare td { color: var(--text); }
table.viz.compare th[scope="row"] { font-weight: 600; }

/* Ask about nfltr (docs helper box, web/src/docs_helper.ts) */
.nfltr-ask { margin: 2rem 0; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.nfltr-ask label { display: block; font-weight: 600; color: var(--text-heading); margin-bottom: .5rem; }
.nfltr-ask .ask-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.nfltr-ask input { flex: 1 1 12rem; min-width: 0; font: inherit; padding: .45rem .6rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bgColor-default); color: var(--text); }
.nfltr-ask button { font: inherit; padding: .45rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-elevated); color: var(--text); cursor: pointer; }
.nfltr-ask button:hover { border-color: var(--blue); }
.nfltr-ask button:disabled { opacity: .6; cursor: wait; }
.ask-note { font-size: .8rem; color: var(--text-muted); margin: .5rem 0 0; }
.nfltr-ask .ask-answer { margin-top: .75rem; overflow-wrap: anywhere; }
.nfltr-ask .ask-text { white-space: pre-line; margin: 0 0 .5rem; }
.nfltr-ask .ask-sources { margin: .25rem 0 0; }

/* ── Landing layout (<main class="landing">: the homepage and the orch,
      relay and status landings): hero, cards, sections, code blocks,
      proof, stats and the demo player. ── */
.landing { line-height: 1.6; }
.landing :where(p, h1, h2, h3, ul, ol, dl, dd, figure, pre) { margin: 0; }
.landing :where(h1, h2) { font-family: var(--font-display); letter-spacing: -.015em; border: 0; padding: 0; }
.landing h2 { font-size: var(--fs-2xl); line-height: 1.15; }
.landing h3 { font-size: var(--fs-md); color: var(--text-heading); }
.landing pre { padding: .75rem .9rem; background: var(--band); border: 1px solid var(--rule); border-radius: var(--radius-md); font-size: .8rem; }
.landing pre code { background: none; padding: 0; font-size: inherit; word-break: normal; overflow-wrap: normal; white-space: pre; }
.landing > section { max-width: var(--site-max); margin: 0 auto; padding: var(--space-section) var(--gutter); }
.landing > section.cont { padding-top: 0; }
.landing > section.band { max-width: none; background: var(--band); border-block: 1px solid var(--rule); }
.band-inner { max-width: calc(var(--site-max) - 2 * var(--gutter)); margin: 0 auto; }
.landing > section.rule { border-top: 1px solid var(--rule); }
.section-desc { max-width: var(--measure); margin-top: var(--space-3); color: var(--text-muted); }
.kicker { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: .6rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: var(--space-4); font-size: .95rem; font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.landing > section.hero-single { grid-template-columns: minmax(0, 1fr); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.08; max-width: 22ch; }
.hero-sub { margin-top: 1.25rem; max-width: var(--measure); font-size: var(--fs-lg); }
.hero-sub + .hero-sub { margin-top: .9rem; font-size: var(--fs-md); color: var(--text-muted); }

/* Hero figure: one terminal, one relay, several machines */
.topo { font-size: .85rem; }
.topo-term { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bgColor-inset); overflow: hidden; }
.topo-title { display: block; padding: .4rem .9rem; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: .8rem; }
.landing .topo-term pre { padding: .9rem; border: 0; border-radius: 0; background: none; }
.landing .topo-term code { color: var(--fgColor-default); white-space: pre-wrap; }
.topo-term .prompt { color: var(--fgColor-success); }
.topo-relay { position: relative; margin: 1.5rem auto; width: fit-content; max-width: 100%; padding: .35rem .9rem; border: 1px dashed var(--borderColor-emphasis); border-radius: var(--radius-pill); color: var(--text-muted); text-align: center; font-size: .8rem; }
.topo-relay span { color: var(--fgColor-default); font-weight: 600; }
.topo-relay::before, .topo-relay::after { content: ""; position: absolute; left: 50%; width: 1px; height: 1.5rem; background: var(--borderColor-emphasis); }
.topo-relay::before { bottom: 100%; }
.topo-relay::after { top: 100%; }
.landing .topo-machines { list-style: none; padding: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; position: relative; }
.topo-machines::before { content: ""; position: absolute; top: 0; left: 16.66%; right: 16.66%; height: 1px; background: var(--borderColor-emphasis); }
.topo-machines li { position: relative; display: flex; flex-direction: column; gap: .2rem; margin: 0; padding: .7rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bgColor-default); }
.topo-machines li::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 1px; height: 1.5rem; background: var(--borderColor-emphasis); }
.topo-machines strong { color: var(--fgColor-default); }
.topo-machines span { color: var(--text-muted); font-size: .78rem; line-height: 1.35; }
.slots { display: flex; gap: .3rem; margin-top: .35rem; }
.slots i { width: .6rem; height: .6rem; border-radius: 50%; border: 1px solid var(--borderColor-emphasis); }
.slots i.on { background: var(--fgColor-success); border-color: var(--fgColor-success); }
.topo figcaption { margin-top: var(--space-4); color: var(--text-muted); font-size: .8rem; }

/* Cards on hairlines: products, proof, use cases, facts */
.landing .card-list { list-style: none; padding: 0; margin-top: var(--space-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.card-list > li, .card-list > div { margin: 0; padding: 1.25rem 0; border-top: 1px solid var(--border); }
.landing .card-list h2 { font-size: var(--fs-xl); }
.card-list p, .card-list dd { margin-top: .4rem; color: var(--text-muted); max-width: 52ch; }
.landing .card-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing .card-list.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-list dt { font-weight: 600; color: var(--fgColor-default); }
.card-list dd { font-size: .92rem; }
.card-list img { display: block; width: 100%; margin-bottom: var(--space-3); border-radius: var(--radius-md); }

/* A product section (homepage): text beside its quick start */
.product-summary { margin-top: var(--space-3); max-width: var(--measure); color: var(--text-muted); font-size: 1.05rem; }
.product-body { margin-top: 1.75rem; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.product-text p { max-width: var(--measure); }
.product-text p + p { margin-top: .9rem; }

/* Measured claims: stats with their setup */
.stat-list { margin-top: var(--space-6); display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.25rem; }
.stat-list > div { padding-top: .9rem; border-top: 1px solid var(--border); }
.stat-list dt { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.1; color: var(--fgColor-default); font-variant-numeric: tabular-nums; }
.stat-list dd { margin-top: .35rem; color: var(--text-muted); font-size: .9rem; line-height: 1.45; }
.setup-note { margin-top: 1.25rem; max-width: var(--measure); color: var(--text-muted); font-size: .8rem; }
.split { margin-top: var(--space-6); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.split > div { padding: 1.25rem 0; border-top: 1px solid var(--border); }
.landing .split ul { margin-top: var(--space-2); padding-left: 1.1rem; color: var(--text-muted); }
.split p { margin-top: var(--space-2); color: var(--text-muted); }

/* Numbered steps: text on the left, commands on the right */
.landing .step-list { list-style: none; padding: 0; margin-top: 2.25rem; counter-reset: step; }
.step-list > li { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: .75rem clamp(1.5rem, 4vw, 3.5rem); margin: 0; padding: 1.5rem 0; border-top: 1px solid var(--border); }
.step-list > li > div > * + * { margin-top: .6rem; }
.step-list h3::before { content: counter(step) ". "; color: var(--text-muted); }
.step-list p { font-size: .95rem; }
.step-cmd p { color: var(--text-muted); }

/* Demo player on a landing: three columns of choices */
.landing .demo-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-6) 0 var(--space-4); }
.demo-choice em { font-style: normal; font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); }
.landing .demo-screen { min-height: 340px; }

@media (max-width: 960px) {
  .hero, .product-body, .split, .step-list > li { grid-template-columns: minmax(0, 1fr); }
  .landing .demo-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing .card-list.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .landing .card-list.cols-2, .landing .card-list.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .landing .demo-picker { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .landing .demo-choice[aria-pressed="false"] span { display: none; }
  .landing .demo-screen { min-height: 240px; }
  .landing .topo-machines { gap: .4rem; }
  .topo-machines li { padding: .55rem; }
}

/* Status (status.nfltr.xyz, rendered from the canary's status.json) */
.status-state { max-width: var(--measure); margin-top: 1.25rem; padding: .6rem .9rem; border: 1px solid currentColor; border-radius: var(--radius-md); font-weight: 600; }
.status-state[hidden] { display: none; }
.status-ok { color: var(--fgColor-success); }
.status-degraded { color: var(--fgColor-attention); }
.status-stale, .status-none { color: var(--text-muted); }

/* ── Install page ── */
.install-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.25rem; margin-bottom: var(--space-4); }
.install-card h3 { margin-top: 0; }
.install-card p { color: var(--text-muted); font-size: .95rem; }
.install-note { font-size: .85rem; color: var(--text-muted); }

/* ── Inline SVG figures (how-nfltr-works) ── */
.hw-figure { margin: 1.5rem 0 2rem; padding: .75rem; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); }
.hw-figure svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.hw-figure figcaption { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; }
.hw-box { fill: var(--bg); stroke: var(--border); stroke-width: 1.5; }
.hw-hub { stroke: var(--blue); stroke-width: 2; }
.hw-relay { stroke: var(--green); stroke-width: 2; }
.hw-agent { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.hw-t { fill: var(--text-heading); font: 600 15px var(--fontStack-system); }
.hw-s { fill: var(--text-muted); font: 13px var(--fontStack-system); }
.hw-a { fill: var(--text-heading); font: 13px var(--fontStack-system); }
.hw-line { stroke: var(--text-muted); stroke-width: 1.5; fill: none; }
.hw-dash { stroke-dasharray: 5 4; }
.hw-head { fill: var(--text-muted); }
.table-wrap { overflow-x: auto; }
