/* tokens */
/* The one place for colours, spacing, radii and the type scale. One fixed dark theme ("Soft ember"). */
:root {
  color-scheme: dark;
  --bg: #12100f;
  --surface: #1d1917;
  --surface-2: #2a2421;
  --line: #403632;
  --text: #f8f1e9;
  --muted: #b8aaa0;
  --accent: #f2b68b;
  --accent-ink: #10100f;
  --success: #7bdab0;
  --accent-soft: rgb(242 182 139 / 8%);
  --accent-line: rgb(242 182 139 / 28%);

  --font-ui: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;
  --radius: 18px; --radius-sm: 10px;
  --gutter: 16px; --max: 1216px;
  --ease: cubic-bezier(.2, .75, .2, 1);

  --step--1: 0.8125rem; --step-0: 0.9375rem; --step-1: 1.0625rem;
  --step-title: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  --step-hero: clamp(2.5rem, 1.5rem + 4.6vw, 4.6rem);
}
@media (min-width: 630px) { :root { --gutter: 28px; } }
@media (min-width: 1120px) { :root { --gutter: 38px; } }

/* fonts */
/* Our own files (SIL OFL 1.1, packages/site/public/fonts/OFL.txt); nothing from another origin. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-latin-wght.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-mono-latin-600.woff2) format("woff2"); }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--step-0)/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: var(--font-mono); }
svg { flex-shrink: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: var(--space-3); }
.accent { color: var(--accent); }

/* layout */
.container { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding: var(--space-8) 0; }
.section-tight { padding: var(--space-5) 0 var(--space-8); }
.section-heading { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-title { font-size: var(--step-title); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; margin-top: var(--space-3); max-width: 14ch; overflow-wrap: break-word; }
.section-lead { font-size: var(--step-1); line-height: 1.7; color: var(--muted); max-width: 44ch; }
.kicker { display: flex; gap: 10px; align-items: center; color: var(--accent); font: 600 0.75rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: .11em; }
.kicker::before { content: ""; height: 1px; width: 21px; background: currentColor; }
.eyebrow { font: 600 0.75rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent { color: var(--accent); }
@media (min-width: 900px) {
  .section { padding: 110px 0; }
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 42px; margin-bottom: 40px; }
  .section-title { max-width: 16ch; }
}

/* components */
.button { min-height: 48px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; gap: 9px; font-size: 0.875rem; line-height: 1.2; font-weight: 700; text-align: center; transition: transform .24s var(--ease), background-color .2s, border-color .2s; }
.button .icon { width: 16px; height: 16px; }
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: #f6c4a0; }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.button-secondary:hover { background: var(--surface-2); border-color: var(--accent-line); }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); background: var(--surface); transition: border-color .2s, color .2s, background .2s; }
.icon-button:hover { border-color: var(--accent); color: var(--text); background: var(--surface-2); }
.inline-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--accent); font-weight: 700; font-size: 0.875rem; }
.inline-link .icon { width: 15px; height: 15px; transition: transform .2s; }
.inline-link:hover .icon { transform: translateX(3px); }
.command-bar { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); padding: 8px 8px 8px 16px; margin: var(--space-4) 0 var(--space-3); min-width: 0; }
.command-bar code { flex: 1; min-width: 0; font-size: 0.8125rem; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; user-select: all; padding-block: 6px; }
.command-bar code::first-letter { color: var(--accent); }
.copy-button.is-copied { color: var(--success); border-color: var(--success); }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 600 0.75rem/1.4 var(--font-mono); letter-spacing: .04em; color: var(--accent); margin-bottom: 10px; }
.tag .icon { width: 15px; height: 15px; }

/* sections/header */
.progress { position: fixed; z-index: 220; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.site-header { position: sticky; z-index: 100; top: 0; background: rgb(18 16 15 / 90%); border-bottom: 1px solid rgb(64 54 50 / 72%); backdrop-filter: blur(24px) saturate(135%); -webkit-backdrop-filter: blur(24px) saturate(135%); }
.nav-wrap { display: flex; align-items: center; flex-wrap: wrap; min-height: 64px; gap: 8px var(--space-4); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 700 1.2rem/1 var(--font-ui); letter-spacing: -.05em; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; color: var(--accent); border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-soft); }
.logo-mark .icon { width: 19px; height: 19px; stroke-width: 2.1; }
.menu-button { margin-left: auto; }
.menu-button .icon-shut, .menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-shut { display: block; }
.site-nav { flex: 1 0 100%; display: flex; flex-direction: column; gap: 4px; padding-bottom: var(--space-4); }
.nav-links { display: flex; flex-direction: column; }
.nav-links a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 0.9375rem; font-weight: 700; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.site-nav .button { margin-top: var(--space-3); }
.has-js .site-nav { display: none; }
.has-js .site-nav.open { display: flex; }
@media (min-width: 900px) {
  .menu-button { display: none !important; }
  .nav-wrap { flex-wrap: nowrap; }
  .site-nav, .has-js .site-nav { display: flex; flex: 1; flex-direction: row; align-items: center; justify-content: flex-end; gap: 28px; padding: 0; }
  .nav-links { flex-direction: row; gap: 28px; }
  .nav-links a { border: 0; min-height: 44px; font-size: 0.8125rem; }
  .site-nav .button { margin: 0; min-height: 44px; padding-inline: 16px; }
}

/* sections/hero */
.hero { position: relative; isolation: isolate; padding: var(--space-7) 0 var(--space-7); overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 1050px; height: 740px; right: -260px; top: -280px; background: radial-gradient(ellipse, rgb(242 182 139 / 9%), transparent 67%); }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero-label { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgb(242 182 139 / 24%); background: rgb(242 182 139 / 5%); border-radius: 999px; padding: 8px 14px; font: 600 0.75rem/1.4 var(--font-mono); color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 7px; }
.hero h1 { font-size: var(--step-hero); font-weight: 600; line-height: 1.06; letter-spacing: -.05em; margin: var(--space-5) 0 var(--space-4); max-width: 14ch; overflow-wrap: break-word; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { font-size: 1.0625rem; line-height: 1.68; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-5) 0 var(--space-4); }
.hero-cta .button { flex: 1 1 200px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.8125rem; color: var(--muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .icon { width: 15px; height: 15px; color: var(--accent); }
.demo { min-width: 0; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--surface); padding: var(--space-3); box-shadow: 0 25px 65px rgb(0 0 0 / 27%); }
.demo-rail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 4px 4px var(--space-3); }
.demo-caption { font: 400 0.75rem/1.5 var(--font-mono); color: var(--muted); flex: 1 1 220px; }
.device-switch { display: flex; gap: 3px; background: var(--bg); padding: 3px; border-radius: 10px; border: 1px solid var(--line); }
.device-switch button { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; font-size: 0.8125rem; font-weight: 700; border: 0; background: transparent; color: var(--muted); border-radius: 8px; }
.device-switch button[aria-pressed="true"] { color: var(--text); background: var(--surface-2); }
.device-switch .icon { width: 15px; height: 15px; }
.demo-panel { border: 1px solid var(--line); border-radius: 11px; background: var(--bg); overflow: hidden; }
.demo-panel img { width: 100%; }
.demo-phone { margin-top: var(--space-3); }
.demo-phone img { width: auto; max-height: 520px; margin-inline: auto; }
/* With scripts on, one device at a time; without them both are shown, one under the other. */
.has-js .demo-panel[hidden] { display: none; }
.has-js .demo-phone { margin-top: 0; }
.has-js .demo-phone img { max-height: 560px; }
@media (min-width: 900px) {
  .hero { padding: 92px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
  .hero-cta .button { flex: 0 0 auto; }
}

/* sections/platforms */
.platform-strip { border-block: 1px solid var(--line); background: #171413; }
.platform-inner { display: flex; flex-direction: column; gap: var(--space-4); padding-block: var(--space-5); }
.platform-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.platform-chips li { border: 1px solid var(--line); padding: 7px 12px; border-radius: 8px; font: 600 0.8125rem/1.4 var(--font-mono); background: var(--surface); }
@media (min-width: 900px) { .platform-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; } }

/* sections/features */
.feature-grid { display: grid; gap: 16px; }
.feature-card { display: flex; flex-direction: column; gap: var(--space-3); padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .25s var(--ease); }
.feature-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.feature-icon { width: 28px; height: 28px; color: var(--accent); }
.feature-card h3 { font-size: 1.5rem; letter-spacing: -.04em; line-height: 1.15; font-weight: 600; margin-top: var(--space-2); }
.feature-card p { font-size: var(--step-0); line-height: 1.7; color: var(--muted); }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* sections/workflow */
.workflow { border-block: 1px solid var(--line); background: #171413; }
.workflow-steps { display: grid; gap: var(--space-6); }
.workflow-step { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.workflow-number { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); font: 600 0.8125rem var(--font-mono); }
.workflow-step h3 { font-size: 1.25rem; letter-spacing: -.03em; font-weight: 600; margin-top: var(--space-2); }
.workflow-step p { font-size: var(--step-0); line-height: 1.7; color: var(--muted); max-width: 36ch; }
.workflow-step strong { color: var(--text); font-weight: 600; }
@media (min-width: 900px) { .workflow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }

/* sections/install */
.install-grid { display: grid; gap: var(--space-6); align-items: start; }
.install-summary .section-lead { margin: var(--space-4) 0 var(--space-5); }
.install-checks { display: grid; gap: 14px; }
.install-checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: var(--step-0); }
.install-checks .icon { width: 17px; height: 17px; color: var(--accent); margin-top: 3px; }
.install-checks code, .install-advanced code { font-size: 0.8125rem; color: var(--text); overflow-wrap: anywhere; }
.install-main { display: grid; gap: var(--space-4); min-width: 0; }
.install-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; min-width: 0; }
.install-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 20px 20px 4px; }
.install-options { display: flex; gap: 6px; }
.install-options button { min-height: 44px; border: 1px solid var(--line); color: var(--muted); background: var(--bg); font-size: 0.8125rem; font-weight: 700; border-radius: 8px; padding: 0 14px; }
.install-options button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); background: var(--surface-2); }
.install-panel { padding: 20px 20px 24px; }
.install-panel + .install-panel { border-top: 1px solid var(--line); }
.has-js .install-panel[hidden] { display: none; }
.has-js .install-panel + .install-panel { border-top: 0; }
.install-panel h3 { font-size: 1.25rem; letter-spacing: -.03em; font-weight: 600; }
.install-note { font-size: 0.8125rem; line-height: 1.7; color: var(--muted); }
.install-advanced { border-top: 1px solid var(--line); padding: 20px; font-size: 0.8125rem; line-height: 1.7; color: var(--muted); }
.install-advanced h3 { font-size: 0.9375rem; font-weight: 700; color: var(--text); margin-bottom: var(--space-2); }
.install-advanced ul { display: grid; gap: 10px; }
.install-advanced a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.install-shot { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.install-shot figcaption { padding: var(--space-3) var(--space-4); font-size: 0.8125rem; color: var(--muted); }
.install-shot figcaption a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .install-grid { grid-template-columns: .77fr 1.23fr; gap: 72px; }
  .install-head, .install-panel, .install-advanced { padding-inline: 28px; }
}

/* sections/connections */
.connection-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px; min-width: 0; }
.connection-card h3 { font-size: 1.5rem; letter-spacing: -.04em; font-weight: 600; margin-bottom: 10px; }
.connection-card p { font-size: var(--step-0); line-height: 1.75; color: var(--muted); max-width: 62ch; }
.connection-card a:not(.inline-link) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.connection-diagram { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); margin: var(--space-5) 0; }
.connection-node { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; text-align: center; background: var(--bg); min-width: 0; }
.connection-node .icon { width: 24px; height: 24px; color: var(--accent); margin-bottom: 4px; }
.connection-node span { font: 400 0.75rem/1.4 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
.connection-link { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--space-2) 0; color: var(--accent); font: 600 0.75rem/1.4 var(--font-mono); text-align: center; border-left: 1px solid var(--accent); align-self: center; padding-inline: var(--space-4); }
.connection-link small { font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.connection-options { display: grid; gap: 16px; margin-top: 16px; }
.small-connection { padding: 24px 28px; }
.small-connection h3 { font-size: 1.25rem; }
@media (min-width: 900px) {
  .connection-diagram { flex-direction: row; align-items: center; gap: 12px; }
  .connection-node { flex: 0 0 34%; }
  .connection-link { flex: 1; border-left: 0; border-top: 1px solid var(--accent); padding: var(--space-2) 0 0; align-self: auto; }
  .connection-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* sections/faq */
.learning-banner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); border: 1px solid var(--accent-line); background: linear-gradient(115deg, rgb(242 182 139 / 8%), var(--surface) 54%); border-radius: var(--radius); padding: 28px; }
.learning-banner h2 { font-size: 1.75rem; letter-spacing: -.045em; font-weight: 600; margin: 8px 0; }
.learning-banner p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.faq-grid { display: grid; gap: var(--space-6); align-items: start; }
.faq-heading .section-lead { margin: var(--space-4) 0 var(--space-3); }
.faq-list { border-top: 1px solid var(--line); min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 56px; padding: 14px 0; cursor: pointer; font-size: 1rem; font-weight: 700; line-height: 1.5; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 auto; color: var(--accent); font: 400 1.5rem/1 var(--font-mono); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--muted); font-size: var(--step-0); line-height: 1.75; padding: 0 0 22px; max-width: 62ch; }
.faq-item p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .learning-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
  .faq-grid { grid-template-columns: .7fr 1.3fr; gap: 72px; }
}

/* sections/closing */
.closing { padding: var(--space-7) 0 0; border-top: 1px solid var(--line); }
.closing-box { display: flex; flex-direction: column; gap: var(--space-5); border: 1px solid var(--accent-line); border-radius: 23px; background: radial-gradient(ellipse at 83% 25%, rgb(242 182 139 / 10%), transparent 62%), var(--surface); padding: 32px 24px; }
.closing-box h2 { font-size: var(--step-title); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; margin-bottom: var(--space-3); }
.closing-box p { color: var(--muted); max-width: 48ch; line-height: 1.7; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.closing-actions .button { flex: 1 1 160px; }
.site-footer { padding: var(--space-6) 0; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-5); }
.footer-note { font: 400 0.75rem/1.5 var(--font-mono); color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8125rem; font-weight: 700; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
@media (min-width: 900px) {
  .closing { padding-top: 84px; }
  .closing-box { flex-direction: row; align-items: center; justify-content: space-between; padding: 56px 60px; }
  .closing-actions .button { flex: 0 0 auto; }
}

/* course */
/* The course pages: the chapter body is rendered by scripts/build-site.mjs and keeps its markup. */
.course { width: min(760px, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding: var(--space-6) 0 var(--space-8); }
.course h1 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 2.8rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; margin: var(--space-4) 0 var(--space-4); overflow-wrap: break-word; }
.course h2 { font-size: 1.5rem; letter-spacing: -.03em; font-weight: 600; margin: var(--space-7) 0 var(--space-3); }
.course h3 { font-size: 1.125rem; margin: var(--space-5) 0 var(--space-2); }
.course p, .course li { color: #d9cdc3; line-height: 1.75; }
.course p { margin: 0 0 var(--space-4); }
.course ul, .course ol { margin: 0 0 var(--space-4); padding-left: 1.4em; list-style: revert; }
.course li { margin-bottom: var(--space-2); }
.course a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.course code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 0.875em; overflow-wrap: anywhere; }
.course .table { overflow-x: auto; margin-bottom: var(--space-4); }
.course table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
.course th, .course td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.course th { background: var(--surface); }
.player { margin: var(--space-5) 0; }
.player video { display: block; width: 100%; max-height: 80vh; background: var(--surface); border-radius: var(--radius-sm); }
.player figcaption { color: var(--muted); font-size: 0.875rem; margin-top: var(--space-2); }
.course .command-bar code { background: none; border: 0; padding: 0; white-space: pre-wrap; }

/* docs */
/* The docs pages: a left navigation next to the article; the article keeps the course typography. */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); width: min(1100px, calc(100% - 2 * var(--gutter))); margin-inline: auto; padding: var(--space-6) 0 var(--space-8); }
.docs .course { width: 100%; margin: 0; padding: 0; }
.docs-nav { font-size: 0.9375rem; }
.docs-nav-group { margin: var(--space-4) 0 var(--space-1); color: var(--muted); font-size: 0.8125rem; letter-spacing: .06em; text-transform: uppercase; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.docs-nav a:hover { background: var(--surface); }
.docs-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.crumbs { color: var(--muted); font-size: 0.875rem; margin-bottom: var(--space-3); }
.crumbs a { color: var(--muted); }
.docs-foot { margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
@media (min-width: 860px) {
  .docs { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-7); }
  .docs-nav { position: sticky; top: var(--space-5); align-self: start; max-height: calc(100vh - 2 * var(--space-5)); overflow-y: auto; }
  .docs-index { grid-template-columns: minmax(0, 1fr); }
}
.docs-search { margin: var(--space-4) 0 var(--space-5); }
.docs-search input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.docs-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.docs-results { list-style: none; margin: var(--space-3) 0 0; padding: 0; }
.docs-results li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.docs-results a { display: block; font-weight: 600; }
.docs-results span { display: block; color: var(--muted); font-size: 0.875rem; }
.video-list { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
.video-list .player { margin: 0; }

/* motion */
/* Reveal on scroll starts visible: the hidden state exists only once the script has set up its observer. */
.reveal-on .reveal:not(.in) { opacity: 0; transform: translateY(14px); }
.reveal-on .reveal { transition: opacity .6s var(--ease), transform .6s var(--ease); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .reveal:not(.in) { opacity: 1; transform: none; }
  .reveal-on .reveal, .button, .inline-link .icon, .feature-card { transition: none; }
  .feature-card:hover, .button:hover { transform: none; }
}
