/* Houston site: theme-aware, dependency-free.

   The whole site draws from a deliberately small system. Add to it only when a real
   need can't be met with what is here.

   Color: five neutrals and five blues per theme, nothing else.
     --n1 page background        --a1 accent tint (badge, selected card)
     --n2 raised surface         --a2 accent border
     --n3 border, divider        --a3 accent solid (primary button, focus ring)
     --n4 secondary text         --a4 accent solid, hovered
     --n5 primary text           --a5 accent text (links)
   Every text pairing clears WCAG AA (4.5:1) in both themes; white on --a3/--a4 too.

   Type: five sizes (--fs-1 … --fs-5). Hierarchy inside a size comes from weight and
   color, not from new sizes.

   Theme: follows the OS. theme.js lets a visitor pin light or dark, stored as
   data-theme on <html>. The dark values are repeated for the two ways to reach dark,
   since plain CSS can't share a block between a media query and a selector. */

:root {
  color-scheme: light;
  --n1: #ffffff;
  --n2: #f6f7f9;
  --n3: #e1e4ea;
  --n4: #5d6678;
  --n5: #111827;
  --a1: #eef3fe;
  --a2: #b6cbf8;
  --a3: #2459e0;
  --a4: #1c49bd;
  --a5: #1f4fcf;
  --shadow: 0 1px 2px rgb(17 24 39 / 0.06), 0 24px 48px -16px rgb(17 24 39 / 0.22);

  --fs-1: 0.8125rem;                       /* 13px: labels, fine print */
  --fs-2: 0.9375rem;                       /* 15px: UI, secondary copy */
  --fs-3: 1.0625rem;                       /* 17px: body, card titles */
  --fs-4: clamp(1.375rem, 2.6vw, 1.75rem); /* 22–28px: section headings */
  --fs-5: clamp(2.125rem, 5.4vw, 3.25rem); /* 34–52px: page heading */

  --r-1: 6px;
  --r-2: 12px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --n1: #0e1116;
    --n2: #161a21;
    --n3: #272d38;
    --n4: #9aa3b2;
    --n5: #e9ecf1;
    --a1: #152038;
    --a2: #2c4a8a;
    --a3: #2f64e6;
    --a4: #2556d0;
    --a5: #8ab2ff;
    --shadow: 0 24px 48px -16px rgb(0 0 0 / 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --n1: #0e1116;
  --n2: #161a21;
  --n3: #272d38;
  --n4: #9aa3b2;
  --n5: #e9ecf1;
  --a1: #152038;
  --a2: #2c4a8a;
  --a3: #2f64e6;
  --a4: #2556d0;
  --a5: #8ab2ff;
  --shadow: 0 24px 48px -16px rgb(0 0 0 / 0.6);
}

/* ---- Base ---- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-3);
  line-height: 1.6;
  color: var(--n5);
  background: var(--n1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: var(--a5); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-5); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: var(--fs-4); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-3); }
p { margin: 0; }
/* Headings and FAQ questions split into even lines, and paragraphs don't end on one
   stranded word. Browsers without text-wrap ignore both and wrap as before. */
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }

code { font-family: var(--mono); font-size: 0.9em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--a3); color: #fff; font-size: var(--fs-2);
  padding: 8px 14px; border-radius: var(--r-1); transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--n1) 85%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--n3);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--n5); }
.brand:hover { text-decoration: none; }
/* The icon art has ~10% transparent padding; oversize it so the tile reads at 24px. */
.brand img { width: 30px; height: 30px; margin: -3px; }
/* A stronger tint than --a1 so the badge reads as blue next to the name; the mix stays
   inside the palette and palette.test.mjs checks its contrast. */
.beta-badge {
  font-size: var(--fs-1); font-weight: 600; line-height: 1; color: var(--a5);
  padding: 3px 7px; border-radius: 999px; border: 1px solid var(--a2);
  background: color-mix(in srgb, var(--a3) 18%, var(--n1));
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--n4); font-size: var(--fs-2); font-weight: 500;
  padding: 6px 10px; border-radius: var(--r-1);
}
.nav-link:hover { color: var(--n5); text-decoration: none; }
/* The section you are in (Docs, on the docs pages), in the same blue as the current
   topic in the docs sidebar. */
.nav-link[aria-current="page"] { color: var(--a5); }
.nav .btn { margin-left: 8px; }
/* The links and theme switch. Inline here; below 720px they fold into a panel that the
   menu button opens (app.js reveals the button, so with no JavaScript there is none). */
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu-button { display: none; }
.theme-toggle-label { display: none; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: var(--r-1);
  border: 0; background: transparent; color: var(--n4); cursor: pointer;
}
.theme-toggle:hover { color: var(--n5); background: var(--n2); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-1);
  font: 500 var(--fs-2) / 1 var(--font); white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--a3); color: #fff; }
.btn-primary:hover { background: var(--a4); }
.btn-secondary { background: var(--n1); color: var(--n5); border-color: var(--n3); }
.btn-secondary:hover { background: var(--n2); }
/* A second path next to the primary action: accent-tinted, but lighter than primary. */
.btn-tint { background: var(--a1); color: var(--a5); border-color: var(--a2); }
.btn-tint:hover { background: var(--a2); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm { height: 34px; padding: 0 12px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: var(--fs-3); }

/* ---- Sections ---- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 12px; color: var(--n4); }
.band { background: var(--n2); border-block: 1px solid var(--n3); }

/* ---- Hero ---- */
.hero { padding: 88px 0 0; }
.eyebrow { margin-bottom: 16px; font-size: var(--fs-2); font-weight: 600; color: var(--a5); }
.hero h1 { max-width: 18ch; }
/* The eyebrow sits inside the h1 so the heading names the product; it keeps its own type. */
.hero h1 .eyebrow { display: block; letter-spacing: normal; line-height: 1.5; }
.lede { max-width: 58ch; margin-top: 20px; font-size: var(--fs-3); color: var(--n4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-release { font-size: var(--fs-1); color: var(--n4); align-self: center; margin-left: 4px; }
.hero-release:hover { color: var(--n5); }
.highlights {
  display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 32px 0 0; padding: 0; list-style: none;
  font-size: var(--fs-2); font-weight: 500;
}
.highlights li { display: inline-flex; align-items: center; gap: 8px; }
.highlights svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--a5); }

.shot { margin: 64px 0 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--n3); border-radius: var(--r-2); box-shadow: var(--shadow);
}
.shot figcaption { margin-top: 12px; font-size: var(--fs-1); color: var(--n4); }

/* ---- Why Houston ---- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.why-card { padding: 24px; background: var(--n1); border: 1px solid var(--n3); border-radius: var(--r-2); }
.why-card svg { display: block; width: 22px; height: 22px; color: var(--a5); margin-bottom: 16px; }
.why-card p { margin-top: 8px; font-size: var(--fs-2); color: var(--n4); }

/* ---- Features ---- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px;
  margin: 0; padding: 0; list-style: none;
}
.feature { padding-top: 20px; border-top: 1px solid var(--n3); }
.feature svg { display: block; width: 20px; height: 20px; color: var(--a5); margin-bottom: 12px; }
.feature p { margin-top: 6px; font-size: var(--fs-2); color: var(--n4); }

/* ---- Download ---- */
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dl-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--n1); border: 1px solid var(--n3); border-radius: var(--r-2); padding: 20px;
}
.dl-card .btn { margin-top: auto; }
/* Subgrid lines the rows up across cards: every title, requirement, button, and note
   sits at the same height whatever wraps. The head row always exists, so the
   "Recommended" badge lands in space that was already there. */
@supports (grid-template-rows: subgrid) {
  .dl-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 4px; }
  .dl-card .btn { margin-top: 16px; }
}
.dl-card.is-recommended { background: var(--a1); border-color: var(--a2); }
.dl-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 8px; }
.dl-head svg { width: 22px; height: 22px; color: var(--n4); }
.dl-badge {
  font-size: var(--fs-1); font-weight: 500; line-height: 1; color: var(--a5);
  padding: 5px 8px; border-radius: 999px; background: var(--n1); border: 1px solid var(--a2);
}
.dl-card h3 span { font-weight: 400; color: var(--n4); }
.os-req { font-size: var(--fs-2); color: var(--n4); }
.dl-note { font-size: var(--fs-1); color: var(--n4); }

.dl-hint {
  margin-top: 24px; padding: 12px 16px; border-radius: var(--r-1);
  background: var(--a1); border: 1px solid var(--a2); font-size: var(--fs-2);
}
/* Terminal CLI: one row per install channel, the command selectable in one click. */
.cli-install { margin: 40px 0 0; padding: 32px 0 0; border-top: 1px solid var(--n3); }
.cli-install > p { margin-top: 4px; font-size: var(--fs-2); color: var(--n4); }
.cli-install > .dl-note { margin-top: 12px; }
.cli-cmds { display: grid; gap: 8px; margin: 16px 0 0; }
.cli-cmds > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 12px; align-items: center; }
.cli-cmds dt { font-size: var(--fs-2); font-weight: 500; }
.cli-cmds dt span { display: block; font-size: var(--fs-1); font-weight: 400; color: var(--n4); }
.cli-cmds dd { position: relative; margin: 0; min-width: 0; }
.cli-cmds code {
  display: block; padding: 8px 12px; user-select: all;
  /* Wrap rather than scroll or hide behind the copy button; one line wherever it fits. */
  white-space: normal; overflow-wrap: anywhere;
  border: 1px solid var(--n3); border-radius: 6px;
  /* A hint of the accent (half-way from neutral), echoing the hero's Install the CLI button
     without turning the commands blue; the plain fill is the fallback. */
  background: var(--n2);
  background: color-mix(in srgb, var(--a1) 50%, var(--n2));
  border-color: color-mix(in srgb, var(--a2) 40%, var(--n3));
}
/* A package name or URL never breaks at its own hyphen, which would read as a word
   split; the command wraps at its spaces (and after https://) instead. */
.cli-cmds code span { white-space: nowrap; }
/* Room for the copy button, which app.js reveals only where the clipboard API works. */
.cli-cmds dd:has(.copy-btn:not([hidden])) code { padding-right: 76px; }
.copy-btn {
  /* Pinned to the first line, so it stays put when a command wraps. */
  position: absolute; top: 5px; right: 6px;
  height: 28px; padding: 0 10px; font: inherit; font-size: var(--fs-1); color: var(--n5);
  background: var(--n1); border: 1px solid var(--n3); border-radius: 6px; cursor: pointer;
}
.copy-btn:hover { border-color: var(--n4); }
/* The command the reader types afterwards, styled like the commands above it. */
.cmd-name {
  padding: 1px 6px; color: var(--n5); border: 1px solid var(--n3); border-radius: 4px;
  background: var(--n2);
  background: color-mix(in srgb, var(--a1) 50%, var(--n2));
  border-color: color-mix(in srgb, var(--a2) 40%, var(--n3));
}
.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;
}

.dl-extra {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px;
  margin: 40px 0 0; padding: 32px 0 0; list-style: none; border-top: 1px solid var(--n3);
}
.dl-extra h3 { font-size: var(--fs-2); }
.dl-extra p { margin-top: 4px; font-size: var(--fs-2); color: var(--n4); }

/* ---- Steps ---- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.step { padding-top: 20px; border-top: 1px solid var(--n3); counter-increment: step; }
.step h3::before { content: counter(step) "."; margin-right: 8px; color: var(--n4); font-weight: 500; }
.step p { margin-top: 6px; font-size: var(--fs-2); color: var(--n4); }

/* ---- FAQ ---- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq-layout .section-head { margin: 0; }
.faq { border-top: 1px solid var(--n3); }
.faq-item { border-bottom: 1px solid var(--n3); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; cursor: pointer; list-style: none; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--a5); }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-right: 4px;
  border: solid var(--n4); border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item p { padding: 0 32px 20px 0; color: var(--n4); }

/* ---- Footer ---- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--n3); font-size: var(--fs-2); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 32ch; color: var(--n4); }
.footer-col h2 { font-size: var(--fs-2); font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--n4); }
.footer-col a:hover { color: var(--n5); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--n3);
  font-size: var(--fs-1); color: var(--n4);
}
.footer-bottom a { color: var(--n4); }

/* ---- Legal pages ---- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 720px; }
.legal .back { display: inline-block; margin-bottom: 32px; font-size: var(--fs-2); font-weight: 500; }
.legal h1 { font-size: var(--fs-4); }
.legal .doc-meta { margin-top: 8px; font-size: var(--fs-2); color: var(--n4); }
.legal h2 { font-size: var(--fs-3); margin-top: 40px; }
.legal h3 { font-size: var(--fs-3); font-weight: 500; margin-top: 24px; }
.legal p, .legal li { color: var(--n4); }
.legal strong { color: var(--n5); font-weight: 600; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 8px; }

/* ---- Docs (generated by tools/build-docs.mjs) ----
   The article comes first in the page so a narrow screen reads it first; on a wide one
   the topic list moves into a sticky column on the left. */
.docs { padding: 48px 0 96px; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-content { grid-column: 2; grid-row: 1; min-width: 0; max-width: 720px; }
.docs-nav {
  grid-column: 1; grid-row: 1; position: sticky; top: 84px;
  max-height: calc(100vh - 108px); overflow-y: auto; padding-right: 8px;
}
.docs-nav h2 { font-size: var(--fs-2); letter-spacing: 0; }
.docs-nav h2 a { color: var(--n5); }
.docs-version { margin-top: 4px; font-size: var(--fs-1); color: var(--n4); }
.docs-nav h3 {
  margin: 24px 0 6px; padding: 0 10px;
  font-size: var(--fs-1); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--n4);
}
.docs-nav ul { margin: 0; padding: 0; list-style: none; }
.docs-nav li a {
  display: block; padding: 5px 10px; border-radius: var(--r-1);
  font-size: var(--fs-2); line-height: 1.35; color: var(--n4);
}
.docs-nav li a:hover { color: var(--n5); background: var(--n2); text-decoration: none; }
.docs-nav a[aria-current="page"] { color: var(--a5); font-weight: 600; }
.docs-nav li a[aria-current="page"] { background: var(--a1); }

.docs-crumb { display: inline-block; margin-bottom: 12px; font-size: var(--fs-2); font-weight: 500; }
.docs-content h1 { font-size: var(--fs-4); }
.docs-lede { margin-top: 12px; color: var(--n4); }
.prose { line-height: 1.7; }
/* Section headings sit a step above body text (and below the 22px+ page title) so they
   outrank the bold run-in labels in the prose; subsections stay body-sized but bold. */
.prose h2 { font-size: 1.25rem; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--n3); }
.prose > h2:first-child { margin-top: 32px; }
.prose h3 { font-size: var(--fs-3); margin-top: 32px; }
.prose p { margin-top: 16px; }
.prose > p:first-child { margin-top: 20px; }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li > ul, .prose li > ol { margin-top: 8px; }
.prose li > p:first-child { margin-top: 0; }
.prose strong { font-weight: 600; }
.prose code {
  padding: 1px 5px; border-radius: 4px;
  background: var(--n2); border: 1px solid var(--n3); overflow-wrap: anywhere;
}
.prose pre {
  margin: 16px 0 0; padding: 14px 16px; overflow-x: auto;
  background: var(--n2); border: 1px solid var(--n3); border-radius: var(--r-1);
  font-size: var(--fs-2); line-height: 1.5;
}
.prose pre code { padding: 0; border: 0; background: none; font-size: inherit; overflow-wrap: normal; }
.table-wrap { margin-top: 16px; overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-2); }
.prose th, .prose td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--n3); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.prose td code { white-space: nowrap; }

.docs-toc { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--n3); border-radius: var(--r-2); background: var(--n2); }
.docs-toc h2 { font-size: var(--fs-1); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--n4); }
.docs-toc ul { margin: 8px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.docs-toc li { break-inside: avoid; padding: 3px 0; font-size: var(--fs-2); line-height: 1.4; }

.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--n3); }
.docs-pager a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; font-weight: 500; }
.docs-pager span { font-size: var(--fs-1); font-weight: 400; color: var(--n4); }
.docs-next { margin-left: auto; text-align: right; }

.docs-group { margin-top: 40px; padding: 0; }
.docs-group h2 { font-size: var(--fs-3); }
.docs-topics { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.docs-topics li { padding: 16px; border: 1px solid var(--n3); border-radius: var(--r-2); background: var(--n2); }
.docs-topics a { font-weight: 600; }
.docs-topics p { margin-top: 6px; font-size: var(--fs-2); color: var(--n4); }

/* ---- Contact ---- */
.contact { padding: 64px 0 96px; }
.contact h1 { font-size: var(--fs-4); }
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.contact-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border: 1px solid var(--n3); border-radius: var(--r-2); background: var(--n2);
}
.contact-card h2 { font-size: var(--fs-3); }
.contact-card p { font-size: var(--fs-2); color: var(--n4); }
.contact-card > a { margin-top: auto; padding-top: 8px; font-weight: 500; }

/* ---- Not found ---- */
.not-found { padding: 128px 0; }
.not-found p { margin-top: 12px; color: var(--n4); }
.not-found .hero-cta { margin-top: 24px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .download-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .faq-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .docs-content, .docs-nav { grid-column: 1; grid-row: auto; }
  .docs-nav { position: static; max-height: none; overflow: visible; padding: 24px 0 0; border-top: 1px solid var(--n3); }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .hero { padding-top: 56px; }
  .shot { margin-top: 48px; }
  .nav-menu-button:not([hidden]) {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border-radius: var(--r-1);
    border: 0; background: transparent; color: var(--n4); cursor: pointer;
  }
  .nav-menu-button:hover { color: var(--n5); background: var(--n2); }
  .nav-menu-button svg { width: 20px; height: 20px; }
  .nav-menu-button .icon-close, .nav-menu-button[aria-expanded="true"] .icon-menu { display: none; }
  .nav-menu-button[aria-expanded="true"] .icon-close { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 24px 12px; background: var(--n1);
    border-bottom: 1px solid var(--n3); box-shadow: var(--shadow);
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu .nav-link {
    padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--n3);
    font-size: var(--fs-3); color: var(--n5);
  }
  .nav-menu .nav-link[aria-current="page"] { color: var(--a5); }
  /* In the panel the theme button is a labeled row with a switch, not an icon. */
  .nav-menu .theme-toggle {
    width: 100%; height: auto; padding: 12px 0; border-radius: 0; justify-content: space-between;
    font: 500 var(--fs-3) / 1.6 var(--font); color: var(--n5);
  }
  .nav-menu .theme-toggle:hover { background: transparent; }
  .nav-menu .theme-toggle svg { display: none !important; }
  .nav-menu .theme-toggle-label { display: inline; }
  .nav-menu .theme-toggle::after {
    content: ""; flex-shrink: 0; width: 36px; height: 20px; border-radius: 999px;
    background: radial-gradient(circle at 10px 50%, var(--n1) 6px, transparent 6.5px), var(--n4);
  }
  .nav-menu .theme-toggle[aria-pressed="true"]::after {
    background: radial-gradient(circle at 26px 50%, var(--n1) 6px, transparent 6.5px), var(--a3);
  }
  .feature-grid, .steps, .dl-extra, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .docs-topics { grid-template-columns: 1fr; }
  .docs { padding-top: 32px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  /* Legal is left alone on the last row; it gets the whole row, so "License (Apache-2.0)"
     doesn't break at its hyphen. */
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .highlights { gap: 10px 20px; }
  /* Each command under its channel name, at full width. The copy button moves up beside
     the name, so it no longer takes room from the command. */
  .cli-cmds > div { grid-template-columns: 1fr; gap: 4px; position: relative; }
  .cli-cmds dd { position: static; }
  .cli-cmds dd:has(.copy-btn:not([hidden])) code { padding-right: 12px; }
  .copy-btn { top: 4px; right: 0; }
}
@media (max-width: 560px) {
  .docs-toc ul { columns: 1; }
  .download-grid { grid-template-columns: 1fr; }
  /* One column: put the visitor's build first instead of making them scroll for it. */
  .dl-card.is-recommended { order: -1; }
  .btn-lg { flex: 1 1 100%; }
  .highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .highlights li { align-items: flex-start; }
  .highlights svg { margin-top: 3px; }
}
