/*
 * The website's one stylesheet (docs/BRAND.md "Website design system"): a
 * neutral page, ink type, thin solid rules, and the brand's tangerine kept for
 * the logo, the one main action of a page and what is selected. Nothing moves
 * on its own and nothing glows.
 *
 * Order: fonts · tokens · base · shared components · header and footer · page
 * templates (home, pricing, docs, solutions, security, contact, changelog,
 * legal, not found). Colours come only from the tokens, so dark mode and
 * another brand colour are the tokens alone. Hand-formatted, like the page
 * templates.
 */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: Inter;
  src: url(/fonts/inter-latin-var.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/fonts/jetbrains-mono-latin-var.woff2) format("woff2");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----------------------------------------------------------------- tokens */
:root {
  color-scheme: light dark;

  /* Brand (docs/BRAND.md): the logo's tangerine, and the action colour made from it.
     Another deployment's brand is these lines alone. */
  --brand: #f26b1d;
  --primary: #c2410c;
  --primary-hover: #9a3412;
  --primary-soft: #fff1e8;
  --on-primary: #ffffff;
  --accent-text: #b93c0b;
  --leaf: #2f8f4e;
  --leaf-ink: #1f7a40;
  --leaf-soft: #e8f5ec;

  /* Neutrals */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f6;
  --surface-3: #efefed;
  --raised: #ffffff;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #6b6560;
  --line: #e7e5e3;
  --rule: #d6d3d0;
  --amber-ink: #8a5300;
  --amber-soft: #fff4dc;
  --danger: #b42318;
  --danger-soft: #fdecea;

  /* Code, dark in both themes */
  --code-bg: #1c1917;
  --code-bar: #26221f;
  --code-line: #3a3532;
  --code-ink: #f5f5f4;
  --code-muted: #a8a29e;
  --code-string: #fdba74;
  --code-accent: #fb923c;

  /* API method labels */
  --get-ink: #1f7a40;
  --get-soft: #e8f5ec;
  --post-ink: #1d5fbf;
  --post-soft: #e8f0ff;
  --put-ink: #6b4aa6;
  --put-soft: #f1eafd;
  --patch-ink: #8a5300;
  --patch-soft: #fff4dc;
  --delete-ink: #b42318;
  --delete-soft: #fdecea;

  /* Type */
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "WenQuanYi Zen Hei", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Noto Sans SC", monospace;
  --text-hero: clamp(2.1rem, 1.55rem + 2.3vw, 3.25rem);
  --text-h1: clamp(1.9rem, 1.5rem + 1.7vw, 2.75rem);
  --text-h2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --text-h3: 1.0625rem;
  --text-lead: clamp(1.02rem, 0.98rem + 0.2vw, 1.125rem);
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* Space and shape */
  --wrap: 1200px;
  --measure: 720px;
  --gutter: clamp(16px, 4vw, 32px);
  --space-section: clamp(56px, 6.5vw, 96px);
  --header-h: 64px;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-menu: 0 12px 32px rgba(28, 25, 23, 0.14);
}

/* Japanese: its own fonts before the Chinese ones, which would otherwise draw its kanji in Chinese shapes; the bundled faces cover Latin only. A part of a page marked Japanese (a header or a notice with lang="ja") takes the stack too. */
:root:lang(ja),
[lang='ja'] {
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Noto Sans JP", "Noto Sans SC", monospace;
}
[lang='ja']:not(html) { font-family: var(--font-sans); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand: #ff8a3d;
    --primary: #ff8a3d;
    --primary-hover: #ffa366;
    --primary-soft: #33201a;
    --on-primary: #15100d;
    --accent-text: #ff9a57;
    --leaf: #5cc27d;
    --leaf-ink: #5cc27d;
    --leaf-soft: #17291d;
    --bg: #0f0e0d;
    --surface: #171615;
    --surface-2: #1b1a18;
    --surface-3: #252321;
    --raised: #252321;
    --ink: #f5f5f4;
    --ink-2: #d6d3d1;
    --muted: #a8a29e;
    --line: #2e2b29;
    --rule: #44403c;
    --amber-ink: #ffcf70;
    --amber-soft: #33270f;
    --danger: #ff8f84;
    --danger-soft: #3b1a17;
    --code-bg: #0b0a09;
    --code-bar: #151413;
    --code-line: #2e2b29;
    --get-ink: #5cc27d;
    --get-soft: #17291d;
    --post-ink: #8db8ff;
    --post-soft: #17233a;
    --put-ink: #c2a8f0;
    --put-soft: #261d38;
    --patch-ink: #ffcf70;
    --patch-soft: #33270f;
    --delete-ink: #ff8f84;
    --delete-soft: #3b1a17;
    --shadow-menu: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #ff8a3d;
  --primary: #ff8a3d;
  --primary-hover: #ffa366;
  --primary-soft: #33201a;
  --on-primary: #15100d;
  --accent-text: #ff9a57;
  --leaf: #5cc27d;
  --leaf-ink: #5cc27d;
  --leaf-soft: #17291d;
  --bg: #0f0e0d;
  --surface: #171615;
  --surface-2: #1b1a18;
  --surface-3: #252321;
  --raised: #252321;
  --ink: #f5f5f4;
  --ink-2: #d6d3d1;
  --muted: #a8a29e;
  --line: #2e2b29;
  --rule: #44403c;
  --amber-ink: #ffcf70;
  --amber-soft: #33270f;
  --danger: #ff8f84;
  --danger-soft: #3b1a17;
  --code-bg: #0b0a09;
  --code-bar: #151413;
  --code-line: #2e2b29;
  --get-ink: #5cc27d;
  --get-soft: #17291d;
  --post-ink: #8db8ff;
  --post-soft: #17233a;
  --put-ink: #c2a8f0;
  --put-soft: #261d38;
  --patch-ink: #ffcf70;
  --patch-soft: #33270f;
  --delete-ink: #ff8f84;
  --delete-soft: #3b1a17;
  --shadow-menu: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-style: none;
  font-synthesis-small-caps: none;
  -webkit-font-smoothing: antialiased;
}
main { display: block; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 650; line-height: 1.2; text-wrap: balance; }
h1 { font-size: var(--text-h1); letter-spacing: -0.024em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.018em; }
h3 { font-size: var(--text-h3); letter-spacing: -0.006em; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
code, pre, kbd { font-family: var(--font-mono); font-variant-ligatures: none; }
/* A code block keeps to its column on a phone and scrolls within itself, in or
   out of a code card (E3-B8: the docs' Claude Code setup block). */
pre { max-width: 100%; overflow-x: auto; }
code { font-size: 0.875em; }
p code, li code, td code, dd code {
  padding: 0.08em 0.34em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  overflow-wrap: anywhere;
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--brand) 24%, transparent); }
section[id]{scroll-margin-top:84px}
[id] { scroll-margin-top: 84px; }
html:lang(zh-CN) h1, html:lang(zh-CN) h2, html:lang(zh-CN) h3, html:lang(zh-CN) .eyebrow { letter-spacing: 0; text-transform: none; }
html:lang(zh-CN) h1, html:lang(zh-CN) h2, html:lang(zh-CN) h3 { word-break: keep-all; overflow-wrap: anywhere; }
/* Japanese: no letter-spacing or capitals in headings; a heading broken by phrase where the browser can (auto-phrase), never before small kana or closing punctuation (strict). */
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ja) .eyebrow { letter-spacing: 0; text-transform: none; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { line-break: strict; word-break: normal; word-break: auto-phrase; overflow-wrap: anywhere; }
html:lang(ja) body { line-break: strict; }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 60; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ink); color: var(--bg); font-size: var(--text-sm); font-weight: 600; }
.skip-link:focus { top: 10px; }

/* -------------------------------------------------------- shared components */
/* A page's or a section's label above its heading: plain words, never a badge. */
.eyebrow { margin: 0 0 10px; color: var(--accent-text); font-size: 0.8125rem; font-weight: 600; line-height: 1.4; }
.lead { color: var(--ink-2); font-size: var(--text-lead); line-height: 1.6; }
.text-link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent); text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: currentColor; }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }

/* Buttons: the page's one main action (.button), an ordinary one (-ghost), a small one. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button > span[aria-hidden="true"] { display: inline-block; transition: transform 0.15s ease-out; }
.button:hover > span[aria-hidden="true"] { transform: translateX(2px); }
.button-ghost { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.button-ghost:hover { background: var(--surface-2); border-color: var(--ink-2); color: var(--ink); }
.button-small { min-height: 36px; padding: 6px 14px; font-size: var(--text-sm); }
.button-invert { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.button-invert:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.copy-button {
  flex: none;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}
.copy-button:hover { border-color: var(--ink-2); color: var(--ink); }
.code-card .copy-button { border-color: var(--code-line); background: transparent; color: var(--code-ink); }
.code-card .copy-button:hover { border-color: var(--code-muted); }

/* The address a client is pointed at: label, value, copy. */
.base-box {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--text-sm);
}
.base-box-label { display: flex; align-items: center; padding: 8px 12px; border-right: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--muted); white-space: nowrap; }
.base-box-url { display: flex; align-items: center; min-width: 0; padding: 8px 12px; color: var(--ink); overflow-wrap: anywhere; }
.base-box .copy-button { margin: 6px 6px 6px 0; align-self: center; }

/* A section's opening: heading, one line of why. */
.section { padding-block: var(--space-section); }
.section-rule { border-top: 1px solid var(--line); }
.section-tint { background: var(--surface-2); }
.section-heading { max-width: var(--measure); margin-bottom: clamp(24px, 3vw, 40px); }
.section-heading > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.section-heading-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; max-width: none; }
.section-heading-row > div { max-width: var(--measure); }
.section-heading-row > div > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 1rem; }

/* The opening of a page below the homepage. */
.page-hero { position: relative; padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { max-width: var(--measure); }
.page-hero .actions { margin-top: 22px; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 900px) {
  .page-hero-split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
  .page-hero-split .actions { margin-top: 0; }
}
.page-hero h1 em { color: inherit; font-style: normal; }

/* A list of entries split by thin rules: what most of the site is made of. */
.ledger { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ledger > * { min-width: 0; padding-block: clamp(18px, 2.2vw, 24px); border-bottom: 1px solid var(--line); }
.ledger-2, .ledger-3, .ledger-4 { grid-template-columns: minmax(0, 1fr); column-gap: clamp(24px, 3vw, 40px); }
@media (min-width: 760px) { .ledger-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 620px) { .ledger-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .ledger-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .ledger-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ledger h3 { margin-bottom: 6px; }
.ledger p { color: var(--muted); font-size: 0.9375rem; }
.ledger-icon { display: none; }
.ledger .kicker { margin: 0 0 6px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.ledger > * > .text-link { display: inline-block; margin-top: 10px; font-size: var(--text-sm); }

/* A capability's status, as the registry says it. */
.capability-status { display: inline-block; padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--leaf-ink) 30%, transparent); border-radius: 999px; background: var(--leaf-soft); color: var(--leaf-ink); font-size: var(--text-xs); font-weight: 600; line-height: 1.6; white-space: nowrap; }
.capability-planned { border-color: var(--rule); background: transparent; color: var(--muted); }
.capability-not-offered { border-color: var(--rule); background: transparent; color: var(--muted); }
.capability-status:empty { display: none; }

/* Numbered steps. */
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.steps > li:first-child { padding-top: 0; }
.steps > li:last-child { border-bottom: 0; }
.steps h3 { margin-bottom: 4px; font-size: 1rem; }
.steps p { color: var(--muted); font-size: 0.9375rem; }
.step-num { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 0.8125rem; font-weight: 650; font-variant-numeric: tabular-nums; }

/* Lists of ticks. */
.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks > li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 0.9375rem; }
.checks > li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 13px; height: 7px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg) scale(0.86); transform-origin: center; }
.crosses > li::before { top: 0.72em; width: 12px; height: 0; border: 0; border-top: 2px solid var(--muted); transform: none; }

/* Code. */
.code-card { min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid var(--code-line); border-radius: var(--radius); background: var(--code-bg); color: var(--code-ink); }
.code-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--code-line); background: var(--code-bar); color: var(--code-muted); font-size: 0.8125rem; }
.code-card-head > span { font-weight: 600; }
@media (max-width: 420px) { .code-card-tabs > span { display: none; } }
.code-tablist { display: inline-flex; gap: 2px; margin-left: auto; }
.code-tablist button { min-height: 30px; padding: 4px 10px; border: 0; border-radius: var(--radius-xs); background: none; color: var(--code-muted); font: inherit; cursor: pointer; }
.code-tablist button:hover { color: var(--code-ink); }
.code-tablist button[aria-selected="true"] { background: var(--code-line); color: var(--code-ink); font-weight: 600; }
.code-card :focus-visible { outline-color: var(--code-accent); }
.code-card pre { margin: 0; padding: 16px; overflow-x: auto; font-size: 0.8125rem; line-height: 1.7; tab-size: 2; scrollbar-color: var(--code-muted) transparent; scrollbar-width: thin; }
/* A line longer than the card scrolls sideways rather than looking cut: a light edge on each side there is more to see, gone once scrolled there (the covers move with the code, the edges stay with the box). Copy still copies every line whole. */
.code-card pre { background: linear-gradient(to right, var(--code-bg) 30%, transparent) left / 40px 100% no-repeat local, linear-gradient(to left, var(--code-bg) 30%, transparent) right / 40px 100% no-repeat local, linear-gradient(to right, rgb(255 255 255 / 18%), transparent) left / 20px 100% no-repeat scroll, linear-gradient(to left, rgb(255 255 255 / 18%), transparent) right / 20px 100% no-repeat scroll, var(--code-bg); }
.code-card code { background: none; color: inherit; padding: 0; font-size: inherit; }
.code-card .str { color: var(--code-string); }
.code-card .comment { color: var(--code-muted); }

/* Questions. */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { color: var(--accent-text); }
.faq details p { max-width: var(--measure); padding-bottom: 18px; color: var(--ink-2); font-size: 0.9375rem; }

/* The closing call to action: a plain band, the page's main action again. */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.cta > div:first-child { max-width: 640px; }
.cta h2 { margin-bottom: 8px; font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.625rem); }
.cta p { color: var(--ink-2); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-link { color: var(--ink); font-weight: 600; font-size: 0.9375rem; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.cta-link:hover { text-decoration-color: currentColor; }
.cta-section { padding-block: 0 var(--space-section); }

/* Facts a page goes by: a short line of terms, not boxes. */
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--text-sm); }
.facts > li { min-width: 0; }
.facts strong, .facts b { color: var(--ink); font-weight: 600; }
.facts span { margin-left: 6px; }
.facts span::before { content: "· "; content: "· " / ""; }

/* Tables that scroll inside themselves. */
.table-scroll { overflow-x: auto; }

/* A page's own table of contents. */
.page-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 22px; font-size: var(--text-sm); }
.page-toc-label { color: var(--muted); }
.page-toc a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.page-toc a:hover { color: var(--accent-text); text-decoration-color: currentColor; }

.page-toc.page-toc-cards { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 10px; margin-top: 28px; }
.page-toc.page-toc-cards .page-toc-label { font-size: var(--text-xs); font-weight: 600; }
.page-toc.page-toc-cards a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); color: var(--ink); font-size: 0.9375rem; font-weight: 600; text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.page-toc.page-toc-cards a::after { content: "↓"; content: "↓" / ""; flex: none; color: var(--muted); font-weight: 400; transition: transform 0.15s ease-out, color 0.15s; }
.page-toc.page-toc-cards a:hover { border-color: var(--rule); color: var(--accent-text); }
.page-toc.page-toc-cards a:hover::after { color: var(--accent-text); transform: translateY(2px); }
/* Side by side only where a label fits its card on a line or two, whole words kept. */
@media (min-width: 960px) {
  .page-toc.page-toc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-toc.page-toc-cards .page-toc-label { grid-column: 1 / -1; }
}

/* A note beside the text. */
.note { padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--rule); border-radius: var(--radius-xs); background: var(--surface-2); color: var(--ink-2); font-size: 0.9375rem; }

/* Prose pages. */
.page-prose { max-width: 760px; }
.language-notice { max-width: calc(760px + 2 * var(--gutter)); margin-top: 18px; }
.language-notice p { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: var(--text-sm); }

/* ----------------------------------------------------- the header every page shares */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px 28px;
  min-height: var(--header-h);
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand { display: inline-flex; flex: none; align-items: center; gap: 8px; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.wordmark { color: var(--ink); font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.02em; }
.wordmark span { color: var(--brand); }
.site-menu { position: static; display: flex; flex: 1; align-items: center; gap: 8px 16px; width: auto; height: auto; min-width: 0; margin: 0; padding: 0; overflow: visible; border: 0; background: none; color: inherit; }
.site-header nav { display: flex; align-items: center; gap: 2px; min-width: 0; margin-right: auto; }
.site-header nav a { padding: 6px 10px; border-radius: var(--radius-xs); color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; }
.site-header nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.site-language { display: flex; flex: none; align-items: center; gap: 8px; color: var(--muted); }
.site-language svg { width: 16px; height: 16px; flex: none; }
@media (min-width: 1040.02px) {
  .site-menu .site-language { display: none; }
}
.site-language select { min-height: 34px; max-width: 120px; padding: 4px 8px; border: 1px solid var(--rule); border-radius: var(--radius-xs); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.site-language select:hover { border-color: var(--ink); }
/* A browser in a language on offer is asked (language-menu.js). Over the page, so nothing
   moves; where the header's own flow ends and part of the page, so it scrolls away and
   covers nothing the visitor goes on to; beneath the header, so an open account menu stays
   on top. Its top is left to that flow, as a wrapped header is taller than --header-h. */
.language-offer { position: absolute; right: 0; left: 0; z-index: 35; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding: 4px var(--gutter); border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: var(--text-sm); }
.language-offer .button-small { min-height: 30px; padding-block: 3px; }
.language-offer-decline { min-height: 30px; padding: 3px 8px; border: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.language-offer-decline:hover { color: var(--ink); }
.site-header:has(.site-menu:popover-open) ~ .language-offer { visibility: hidden; }
/* Where the keyboard goes on from once the question is answered: the whole page, unmarked. */
main:focus { outline: none; }
.header-auth { display: flex; flex: none; align-items: center; gap: 12px; font-size: var(--text-sm); }
.header-auth > a:not(.button) { padding-block: 6px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.header-auth > a:not(.button):hover { color: var(--ink); }
.header-auth.auth-pending>a{display:none}
.header-auth > .button { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.header-auth > .button:hover { background: var(--ink-2); border-color: var(--ink-2); }
.menu-toggle { display: none; flex: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius-xs); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .menu-close { display: none; }
.site-header:has(.site-menu:popover-open) .menu-open { display: none; }
.site-header:has(.site-menu:popover-open) .menu-close { display: block; }

/* Narrow, in a browser without popovers: the menu is a row of its own that scrolls. */
@media (max-width: 1040px) {
  .site-header { flex-wrap: wrap; padding-block: 10px; }
  .header-auth { margin-left: auto; }
  /* Relative, so that the language menu's hidden label scrolls with the row instead of widening the page. */
  .site-menu { position: relative; order: 3; flex: 1 0 100%; overflow-x: auto; }
  /* As wide as its links: narrower, they would run on under the language menu. */
  .site-header nav { flex: none; }
  .site-language select { min-height: 44px; }
  .language-offer { padding-block: 6px; }
  .language-offer .button-small, .language-offer-decline { min-height: 44px; }
}
/* Narrow, with them: the browser's own popover under the header, which needs no script. */
@supports selector(:popover-open) {
  @media (max-width: 1040px) {
    .menu-toggle { display: grid; }
    .site-header { flex-wrap: nowrap; }
    .site-menu {
      position: fixed;
      inset: var(--header-h) 0 auto;
      display: none;
      flex: none;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      max-height: calc(100dvh - var(--header-h));
      padding: 12px var(--gutter) 20px;
      overflow-y: auto;
      border-bottom: 1px solid var(--line);
      background: var(--bg);
      color: var(--ink);
      box-shadow: var(--shadow-menu);
    }
    .site-menu:popover-open { display: flex; }
    .site-header nav { flex-direction: column; align-items: stretch; margin-right: 0; }
    .site-header nav a { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
    .site-menu .site-language { flex: 1 1 auto; }
    .site-menu .site-language select { width: 100%; max-width: none; }
  }
}
@media (max-width: 400px) {
  .site-header { gap: 8px 10px; }
  .header-auth { gap: 8px; }
  .header-auth .button-small { padding-inline: 10px; }
}
@media (max-width: 350px) {
  .site-header .wordmark { display: none; }
}

/* The account menu (account-menu.js). */
.account { position: relative; }
.account-trigger { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--ink-2); font: inherit; font-size: var(--text-sm); cursor: pointer; transition: 0.15s; -webkit-tap-highlight-color: transparent; }
.account-trigger:hover, .account-trigger[aria-expanded="true"] { border-color: var(--line); background: var(--surface-2); color: var(--ink); }
.account-avatar { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--accent-text); font-size: 0.8125rem; font-weight: 700; line-height: 1; }
.account-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-caret { flex: none; width: 14px; height: 14px; color: var(--muted); transition: transform 0.15s; }
.account-trigger[aria-expanded="true"] .account-caret { transform: rotate(180deg); }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 45; width: min(256px, calc(100vw - 30px)); padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-menu); }
.account-who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); }
.account-who div { min-width: 0; }
.account-who b, .account-who small { display: block; overflow: hidden; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.account-who b { font-size: var(--text-sm); font-weight: 650; }
.account-who small { color: var(--muted); font-size: var(--text-xs); }
.account-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-size: var(--text-sm); line-height: 1.4; text-align: left; cursor: pointer; }
.account-item:hover, .account-item:focus-visible { background: var(--surface-2); color: var(--accent-text); }
.account-item:focus-visible { outline-offset: -2px; }
.account-item svg { flex: none; width: 16px; height: 16px; color: var(--muted); }
.account-item:hover svg, .account-item:focus-visible svg { color: var(--accent-text); }
.account-sep { height: 1px; margin: 6px 0; background: var(--line); }
.account-placeholder{display:none;pointer-events:none}.auth-pending>.account-placeholder{display:flex}
.account-placeholder .account-avatar::before{content:var(--account-initial,"")}.account-placeholder .account-name::before{content:var(--account-name,"")}
@media (max-width: 600px) {
  .account-name { display: none; }
  .account-trigger { gap: 4px; padding: 3px 6px 3px 3px; }
}

@supports selector(:popover-open) {
  @media (max-width: 1040px) {
    .site-header nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--brand); }
  }
}

/* ---------------------------------------------------- the footer every page shares */
body > footer { margin-top: 0; border-top: 1px solid var(--line); background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: clamp(40px, 5vw, 56px) 28px; }
.footer-brand p { max-width: 300px; margin-top: 10px; color: var(--muted); font-size: var(--text-sm); }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-heading { margin-bottom: 4px; color: var(--ink); font-size: 0.8125rem; font-weight: 650; }
.footer-links a { color: var(--muted); font-size: var(--text-sm); }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; flex-wrap: wrap; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-base small { flex: 1 1 280px; color: var(--muted); font-size: var(--text-xs); }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: 32px 64px; }
}

/* ------------------------------------------------------------------- home */
/* What it is and the way in on the left; the address and a request that runs on the right. */
.hero { padding-block: clamp(36px, 5.5vw, 76px) clamp(32px, 4vw, 52px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: start; gap: 56px; }
}
.hero h1 { max-width: 15em; font-size: var(--text-hero); line-height: 1.1; letter-spacing: -0.03em; }
@media (max-width: 380px) { .hero h1 { font-size: 1.75rem; } }
.hero .lead { max-width: 600px; margin-top: 18px; }
.hero .actions { margin-top: 26px; }
.signup-terms { max-width: 580px; margin-top: 14px; color: var(--muted); font-size: 0.8125rem; line-height: 1.55; }
.hero-try { display: grid; gap: 12px; min-width: 0; }
.hero-try .base-box { display: flex; width: 100%; }
.hero-try .base-box-url { flex: 1 1 auto; }
.hero-try .code-card pre { max-height: 420px; }
.hero-try-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: var(--text-sm); }
@media (max-width: 560px) {
  .hero .actions .button { flex: 1 1 100%; }
  .hero-try .base-box { flex-wrap: wrap; }
  .base-box-label { flex: 1 1 100%; padding-block: 6px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .base-box-url { flex: 1 1 0; }
}

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.stats li { min-width: 0; padding: 16px clamp(12px, 2vw, 24px); }
.stats li:nth-child(odd) { padding-left: 0; }
.stats li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.stats strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 650; line-height: 1.35; }
.stats span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
@media (min-width: 860px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats li:nth-child(-n + 2) { border-bottom: 0; }
  .stats li, .stats li:nth-child(odd) { padding-left: clamp(12px, 2vw, 24px); }
  .stats li + li { border-left: 1px solid var(--line); }
  .stats li:first-child { padding-left: 0; }
}

/* The models on sale, on the homepage: the pricing page's first rows. */
.model-preview { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.model-preview table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.5; }
.model-preview th, .model-preview td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.model-preview thead th { padding-block: 10px; background: var(--surface-2); color: var(--muted); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.model-preview tbody tr:last-child > * { border-bottom: 0; }
.model-preview tbody th { font-weight: 400; }
.model-preview tbody th a { color: var(--ink); }
.model-preview tbody th a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.model-preview tbody th b { font-weight: 650; }
.model-preview tbody th code { display: block; margin-top: 2px; color: var(--muted); font-size: var(--text-xs); overflow-wrap: anywhere; }
.model-preview td { color: var(--ink-2); white-space: nowrap; }
.model-preview .num { text-align: right; font-variant-numeric: tabular-nums; }
.model-preview thead th:first-child { width: 44%; }
/* A shorter figure is padded to its column's decimals (website.ts priceColumns), so the points line up:
   only where each table is a table, right-aligned; its stacked layout starts at 700px and 1023px. */
@media (min-width: 701px) {
  .model-preview td.num[data-pad="1"] { padding-right: calc(16px + 1ch); }
  .model-preview td.num[data-pad="2"] { padding-right: calc(16px + 2ch); }
  .model-preview td.num[data-pad="3"] { padding-right: calc(16px + 3ch); }
  .model-preview td.num[data-pad="4"] { padding-right: calc(16px + 4ch); }
  .model-preview td.num[data-pad="5"] { padding-right: calc(16px + 5ch); }
  .model-preview td.num[data-pad="6"] { padding-right: calc(16px + 6ch); }
  .model-preview td.num[data-pad="7"] { padding-right: calc(16px + 7ch); }
  .model-preview td.num[data-pad="8"] { padding-right: calc(16px + 8ch); }
}
@media (min-width: 1024px) {
  .pricing-table td.num[data-pad="1"] { padding-right: calc(16px + 1ch); }
  .pricing-table td.num[data-pad="2"] { padding-right: calc(16px + 2ch); }
  .pricing-table td.num[data-pad="3"] { padding-right: calc(16px + 3ch); }
  .pricing-table td.num[data-pad="4"] { padding-right: calc(16px + 4ch); }
  .pricing-table td.num[data-pad="5"] { padding-right: calc(16px + 5ch); }
  .pricing-table td.num[data-pad="6"] { padding-right: calc(16px + 6ch); }
  .pricing-table td.num[data-pad="7"] { padding-right: calc(16px + 7ch); }
  .pricing-table td.num[data-pad="8"] { padding-right: calc(16px + 8ch); }
}
.model-preview td.num { color: var(--ink); font-weight: 600; }
.model-preview .num small { color: var(--muted); font-size: var(--text-xs); font-weight: 400; }
@media (max-width: 700px) {
  .model-preview thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .model-preview table, .model-preview tbody, .model-preview tr, .model-preview th, .model-preview td { display: block; }
  .model-preview tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .model-preview tbody tr:last-child { border-bottom: 0; }
  .model-preview tbody th, .model-preview tbody td { min-width: 0; padding: 0; border: 0; }
  .model-preview tbody th { grid-column: 1 / -1; margin-bottom: 8px; }
  .model-preview .num { text-align: left; }
  .model-preview td { white-space: normal; overflow-wrap: anywhere; }
  .model-preview td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.6875rem; font-weight: 500; white-space: normal; }
}
.models-note { margin-top: 14px; color: var(--muted); font-size: var(--text-sm); }

/* How a request is served: three stages, left to right, nothing moving. */
.flow { margin: 0; }
.flow-track { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.flow-node { position: relative; min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.flow-gear { border-color: var(--rule); box-shadow: inset 0 2px 0 var(--brand); }
.flow-node:not(:last-child)::after { content: "↓"; content: "↓" / ""; position: absolute; left: 50%; bottom: -28px; color: var(--muted); font-size: 1rem; line-height: 24px; transform: translateX(-50%); }
@media (min-width: 900px) {
  .flow-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .flow-node:not(:last-child)::after { content: "→"; content: "→" / ""; left: auto; right: -30px; top: 50%; bottom: auto; transform: translateY(-50%); }
}
.flow-kicker { display: block; margin-bottom: 4px; color: var(--muted); font-size: var(--text-xs); font-weight: 600; }
.flow-node b { display: block; color: var(--ink); font-size: 0.9375rem; font-weight: 650; line-height: 1.4; }
.flow-node p { margin-top: 8px; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.flow-steps { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.flow-steps li { display: flex; align-items: baseline; gap: 10px; color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; counter-increment: flow; }
.flow-steps li::before { content: counter(flow); flex: none; width: 20px; color: var(--accent-text); font-size: 0.75rem; font-weight: 650; font-variant-numeric: tabular-nums; text-align: center; }
.flow-providers { display: grid; margin: 8px 0 0; padding: 0; list-style: none; }
.flow-providers li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; line-height: 1.4; }
.flow-providers li:last-child { border-bottom: 0; }
.flow-providers .is-off { color: var(--muted); }
.flow-providers .is-off .dot { background: var(--rule); }
.flow-note { margin-top: 6px !important; font-size: var(--text-xs) !important; }
.flow figcaption { max-width: var(--measure); margin-top: 18px; color: var(--muted); font-size: var(--text-xs); }
.flow-steps li::before { border-radius: 50%; line-height: 20px; }
/* One request through the gateway, played once as the figure comes into view
   (home.js adds .is-playing): the application sends it, Token Gear takes its
   four steps, a provider is picked. Each part lights as the request passes and
   is as it was after: before, after and without the motion, the same figure. */
@media (prefers-reduced-motion: no-preference) {
  .flow.is-playing .flow-node { animation: flow-pass 0.9s ease-out both; }
  .flow.is-playing .flow-node:nth-child(2) { animation-duration: 2s; animation-delay: 0.7s; }
  .flow.is-playing .flow-node:nth-child(3) { animation-delay: 2.7s; }
  .flow.is-playing .flow-node:not(:last-child)::after { animation: flow-hand 0.6s ease-out both; animation-delay: 0.45s; }
  .flow.is-playing .flow-node:nth-child(2)::after { animation-delay: 2.45s; }
  .flow.is-playing .flow-steps li::before { animation: flow-step 0.6s ease-out both; }
  .flow.is-playing .flow-steps li:nth-child(1)::before { animation-delay: 1s; }
  .flow.is-playing .flow-steps li:nth-child(2)::before { animation-delay: 1.35s; }
  .flow.is-playing .flow-steps li:nth-child(3)::before { animation-delay: 1.7s; }
  .flow.is-playing .flow-steps li:nth-child(4)::before { animation-delay: 2.05s; }
  .flow.is-playing .flow-providers li:first-child { animation: flow-chosen 1.4s ease-out 2.95s both; }
  .flow.is-playing .flow-providers li:first-child .dot { animation: flow-picked 1.2s ease-out 3s both; }
}
@keyframes flow-pass {
  40% { border-color: color-mix(in srgb, var(--brand) 70%, var(--line)); box-shadow: inset 0 2px 0 var(--brand), 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent); }
}
@keyframes flow-hand { 50% { color: var(--brand); } }
@keyframes flow-step { 45% { background: var(--brand); color: var(--on-primary); } }
@keyframes flow-picked {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--leaf) 60%, transparent); }
  100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--leaf) 0%, transparent); }
}
@keyframes flow-chosen { 25%, 55% { color: var(--leaf-ink); } }

/* Capabilities: a heading with its status beside it, then what it does. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 12px; }
.feature > .capability-status { grid-column: 2; grid-row: 1; align-self: start; margin-top: 2px; }
.feature > h3 { grid-column: 1; grid-row: 1; }
.feature > :not(h3):not(.capability-status) { grid-column: 1 / -1; }
.feature > .text-link { justify-self: start; }

/* From sign-up to the first request, in a row on a wide screen. */
@media (min-width: 900px) {
  .steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
  .steps-row > li, .steps-row > li:first-child { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; padding-block: 20px 0; border-bottom: 0; }
}
.quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; font-size: var(--text-sm); }
.health-link { color: var(--muted); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }

.supply { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 40px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.supply h2 { margin-bottom: 8px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
.supply > div > p:not(.kicker) { color: var(--muted); font-size: 0.9375rem; }
.supply .kicker { margin-bottom: 6px; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.supply .button { margin-top: 16px; }
@media (min-width: 860px) { .supply { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; } }

.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px clamp(32px, 5vw, 64px); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); } }

/* ---------------------------------------------------------------- pricing */
.pricing-body { padding-block: clamp(20px, 2.6vw, 28px) var(--space-section); }
.model-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-block: 20px 12px; }
.model-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.model-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.model-search input { width: 100%; min-height: 40px; padding: 8px 12px 8px 36px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-sm); }
.model-search input::placeholder { color: var(--muted); opacity: 1; }
.model-search input:focus-visible { outline-offset: 0; border-color: var(--primary); }
.model-kinds { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface-2); }
.model-kinds button { min-height: 32px; padding: 4px 12px; border: 0; border-radius: var(--radius-xs); background: none; color: var(--ink-2); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.model-kinds button:hover { color: var(--ink); }
.model-kinds button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--rule); }
.model-sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: var(--text-sm); }
.model-sort select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-sm); }
.model-count { flex: 1 1 100%; margin-bottom: 0; color: var(--muted); font-size: 0.8125rem; }
.pricing-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pricing-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.5; color: var(--ink-2); }
.pricing-table th, .pricing-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pricing-table thead th { padding-block: 10px; background: var(--surface-2); color: var(--muted); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.pricing-table tbody tr:last-child > * { border-bottom: 0; }
.pricing-table tbody tr:hover > * { background: var(--surface-2); }
.pricing-table tbody tr:target > * { background: var(--primary-soft); }
.pricing-table tbody tr[id] { scroll-margin-top: 90px; }
.pricing-table tbody th { min-width: 260px; font-weight: 400; }
.pricing-table tbody th b { display: block; color: var(--ink); font-size: 0.9375rem; font-weight: 650; }
.pricing-table tbody th code { color: var(--ink-2); font-size: var(--text-xs); overflow-wrap: anywhere; }
.pricing-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricing-table td.num { color: var(--ink); font-size: 0.9375rem; font-weight: 600; }
.pricing-table .num small { color: var(--muted); font-size: var(--text-xs); font-weight: 400; }
.pricing-table ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pricing-table li > span { display: block; color: var(--muted); font-size: 0.8125rem; }
.pricing-table li > span:first-child { color: var(--ink-2); }
.pricing-badge { display: inline-block; margin: 4px 6px 0 0; padding: 0 7px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.6875rem; font-weight: 600; line-height: 1.6; }
.pricing-sub { display: block; margin-top: 4px; color: var(--muted); font-size: var(--text-xs); line-height: 1.5; }
.pricing-sub code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.pricing-meta { display: inline-block; margin-right: 12px; }
@media (min-width: 1024px) { .pricing-table td:nth-child(2) { white-space: nowrap; } }
.model-copy { min-height: 24px; margin: 0 10px 0 6px; padding: 1px 7px; font-size: 0.6875rem; vertical-align: 1px; }
.pricing-empty { margin-block: 20px 0; padding: clamp(32px, 5vw, 56px) 24px; border: 1px dashed var(--rule); border-radius: var(--radius); background: var(--surface); color: var(--ink-2); text-align: center; }
.pricing .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 4px; border-block: 1px solid var(--line); }
.pricing .facts > li { padding: 14px clamp(12px, 2vw, 24px) 14px 0; }
.pricing .facts > li:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
.pricing .facts strong { display: block; font-size: 1rem; line-height: 1.35; }
.pricing .facts span { display: block; margin: 2px 0 0; font-size: 0.8125rem; line-height: 1.45; }
.pricing .facts span::before { content: none; }
@media (min-width: 860px) {
  .pricing .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pricing .facts > li:nth-child(-n + 2) { border-bottom: 0; }
  .pricing .facts > li + li { padding-left: clamp(12px, 2vw, 24px); border-left: 1px solid var(--line); }
}
.pricing-empty .button { margin-top: 14px; }
.pricing-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 56px; margin-top: clamp(32px, 4vw, 52px); }
.pricing-foot h2 { font-size: 1.25rem; }
@media (min-width: 900px) {
  .pricing-foot { grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr); }
  .pricing-foot h2 { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.pricing-notes { display: grid; gap: 10px; max-width: 780px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--text-sm); }
.pricing-notes li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pricing-foot .actions { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .model-sort { margin-left: 0; }
  .model-search { max-width: none; flex-basis: 100%; }
}
/* Below the width the whole table fits: each model a labelled block, with nothing to scroll to. */
@media (max-width: 1023px) {
  .pricing-table { overflow: visible; }
  .pricing-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pricing-table table, .pricing-table tbody, .pricing-table tr, .pricing-table th, .pricing-table td { display: block; width: auto; }
  .pricing-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
  .pricing-table tbody tr:last-child { border-bottom: 0; }
  .pricing-table tbody tr[hidden] { display: none; }
  .pricing-table tbody tr:hover > * { background: none; }
  .pricing-table tbody th, .pricing-table tbody td { min-width: 0; padding: 8px 16px; border: 0; }
  .pricing-table tbody th { grid-column: 1 / -1; }
  .pricing-table tbody td:last-child { grid-column: 1 / -1; }
  .pricing-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.6875rem; font-weight: 500; }
  .pricing-table .num { text-align: left; white-space: normal; }
  .pricing-table td.num { font-size: 1.0625rem; }
}
@media (max-width: 480px) {
  .pricing-table tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-table tbody td:nth-child(2) { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------- docs */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(32px, 4.5vw, 64px); padding-block: clamp(16px, 3vw, 36px) var(--space-section); }
.docs-nav { font-size: var(--text-sm); }
.docs-nav-toggle { display: none; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.docs-nav-toggle svg { width: 16px; height: 16px; transition: transform 0.15s; }
.docs-nav:has(.docs-nav-panel:popover-open) .docs-nav-toggle svg { transform: rotate(180deg); }
.docs-nav-panel { position: static; display: block; width: auto; height: auto; margin: 0; padding: 0; overflow: visible; border: 0; background: none; color: inherit; }
.docs-nav-list { display: grid; gap: 18px; }
.docs-nav-group > p { margin-bottom: 6px; padding-left: 12px; color: var(--ink); font-size: 0.8125rem; font-weight: 650; }
.docs-nav-group > a, .docs-nav-sub a { display: block; padding: 5px 10px; border-left: 2px solid transparent; border-radius: 0 var(--radius-xs) var(--radius-xs) 0; color: var(--ink-2); line-height: 1.4; }
.docs-nav-sub { display: grid; margin-left: 10px; font-size: 0.8125rem; }
.docs-nav-sub a { color: var(--muted); }
.docs-nav a:hover { background: var(--surface-2); color: var(--ink); }
.docs-nav a[aria-current="true"] { border-left-color: var(--brand); background: var(--surface-2); color: var(--ink); font-weight: 600; }
.docs-nav-filter { width: 100%; min-height: 38px; margin-bottom: 14px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-sm); }
.docs-nav-filter::placeholder { color: var(--muted); opacity: 1; }
.docs-nav-empty { color: var(--muted); }
.docs-content{min-width:0}
.docs-content p code,.docs-content li code{overflow-wrap:anywhere}
.docs-hero { padding-block: clamp(20px, 3vw, 32px) clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.docs-hero h1 { margin-bottom: 10px; }
.docs-hero > p:not(.eyebrow) { max-width: 700px; color: var(--ink-2); font-size: var(--text-lead); }
.base-url { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 100%; margin-top: 18px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--text-sm); }
.base-url span { color: var(--muted); }
.base-url code { color: var(--ink); overflow-wrap: anywhere; }
.docs-paths { margin-top: 24px; border-top: 0; }
.docs-paths > li { padding: 0; border: 0; }
.docs-paths a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.docs-paths a:hover { border-color: var(--rule); background: var(--surface-2); }
.docs-paths b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 0.9375rem; font-weight: 650; }
.docs-paths b::after { content: " →"; content: " →" / ""; color: var(--muted); font-weight: 400; }
.docs-paths span { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
@media (min-width: 860px) { .docs-paths.ledger-3 { gap: 12px; } }
@media (max-width: 859px) { .docs-paths.ledger-3 { gap: 8px; } }
.docs-content section { padding-top: clamp(36px, 4vw, 52px); }
.docs-content section + section { margin-top: clamp(8px, 1vw, 12px); border-top: 1px solid var(--line); }
.docs-content section > h2 { margin-bottom: 12px; font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem); }
.docs-content h2 small { display: block; color: var(--muted); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.02em; }
.docs-content section > h3 { margin: 36px 0 8px; font-size: 1.125rem; }
.docs-content section > p, .docs-content section > ul { max-width: 760px; margin-block: 0 14px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.75; }
.docs-content section > ul { padding-left: 20px; }
.docs-content section > ul li { margin-bottom: 6px; }
.docs-content section > .code-card { max-width: 860px; margin-block: 14px 18px; }
.endpoint-list { max-width: 860px; margin-top: 14px; border-top: 1px solid var(--line); }
.endpoint-list article { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.endpoint-list article > code { color: var(--ink); font-size: 0.8125rem; font-weight: 600; overflow-wrap: anywhere; }
.endpoint-list article > b { color: var(--muted); font-size: 0.6875rem; font-weight: 500; text-align: right; }
.endpoint-list article > p { grid-column: 2 / -1; margin: 0; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.65; }
.method { padding: 2px 6px; border-radius: 4px; background: var(--get-soft); color: var(--get-ink); font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 700; text-align: center; }
.method.post { background: var(--post-soft); color: var(--post-ink); }
.method.put { background: var(--put-soft); color: var(--put-ink); }
.method.patch { background: var(--patch-soft); color: var(--patch-ink); }
.method.delete { background: var(--delete-soft); color: var(--delete-ink); }
.docs-table { width: 100%; max-width: 860px; margin-block: 8px 14px; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.55; color: var(--ink-2); }
.docs-table th, .docs-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.docs-table thead th, .docs-table td > b { white-space: nowrap; }
.docs-table code { overflow-wrap: anywhere; }
.docs-table thead th { border-bottom-color: var(--rule); background: var(--surface-2); color: var(--ink); font-weight: 650; }
.docs-table tbody th { width: 30%; color: var(--ink); font-weight: 650; }
.docs-table .cell-label { display: none; }
@media (min-width: 1000px) {
  .docs { grid-template-columns: 228px minmax(0, 1fr); }
  .docs-nav { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); padding: 8px 8px 8px 0; overflow-y: auto; border-right: 1px solid var(--line); }
}
/* Narrow: a bar that stays under the header and opens the browser's own popover. */
@supports selector(:popover-open) {
  @media (max-width: 999px) {
    .docs-nav { position: sticky; top: var(--header-h); z-index: 30; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
    .docs-nav-toggle { display: flex; }
    .docs-nav-panel {
      position: fixed;
      inset: calc(var(--header-h) + 62px) var(--gutter) auto;
      display: none;
      max-height: calc(100dvh - var(--header-h) - 78px);
      padding: 12px;
      overflow-y: auto;
      border: 1px solid var(--rule);
      border-radius: var(--radius-sm);
      background: var(--bg);
      color: var(--ink);
      box-shadow: var(--shadow-menu);
    }
    .docs-nav-panel:popover-open { display: block; }
    /* A jump lands below both bars, the header's and this one. */
    .docs [id] { scroll-margin-top: 136px; }
  }
}
@media (max-width: 600px) {
  .endpoint-list article { grid-template-columns: 56px minmax(0, 1fr); }
  .endpoint-list article > b { grid-column: 2; text-align: left; }
  .endpoint-list article > p { grid-column: 1 / -1; }
  .docs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .docs-table, .docs-table tbody, .docs-table tr, .docs-table th, .docs-table td { display: block; width: auto; }
  .docs-table tbody tr { margin-bottom: 10px; padding: 6px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .docs-table tbody th, .docs-table tbody td { width: auto; padding: 4px 12px; border: 0; }
  .docs-table .cell-label { display: block; color: var(--muted); font-size: var(--text-xs); font-weight: 600; }
}

/* -------------------------------------------------------------- solutions */
.audience-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); padding-block: var(--space-section); background: linear-gradient(var(--line), var(--line)) 50% 100% / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.audience-section:has(+ .cta-section) { background: none; }
.audience-section .section-heading { margin-bottom: 0; }
@media (min-width: 960px) {
  .audience-section { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .audience-section .section-heading { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.capability-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.capability-list > li { padding-block: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; text-wrap: pretty; }
.capability-list > li > b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1rem; font-weight: 650; }
.capability-list > li > .capability-status { float: right; margin: 2px 0 4px 12px; }
/* What can be used now comes first; what is planned follows, set back, after a gap (the registry's status). */
.capability-list > li:has(> .capability-planned) > b { color: var(--ink-2); font-weight: 600; }
.capability-list > li:not(:has(> .capability-planned)) + li:has(> .capability-planned) { margin-top: 20px; border-top: 1px solid var(--line); }
.capability-group { margin: 28px 0 8px; color: var(--muted); font-size: 0.8125rem; font-weight: 650; }

/* Who runs what, in an illustration for the people who supply capacity. */
.arch-simple { margin: 28px 0 0; padding: clamp(16px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.arch-layers { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.arch-layers > li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.arch-layers > li.is-gear { box-shadow: inset 0 2px 0 var(--brand); }
.arch-layers b { display: block; color: var(--ink); font-size: 0.9375rem; font-weight: 650; }
.arch-layers span { color: var(--muted); font-size: 0.8125rem; }
.arch-ncps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.arch-ncps > li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.arch-simple figcaption { margin-top: 12px; color: var(--muted); font-size: var(--text-xs); }
.arch-simple h3 { margin-bottom: 8px; }
.arch-simple > p:not(.arch-join) { margin-bottom: 14px; color: var(--muted); font-size: 0.9375rem; }
.arch-join { margin-top: 12px; font-size: var(--text-sm); }
.arch-layers span, .arch-ncps span { display: block; margin-top: 2px; }
.arch-ncps b { display: block; color: var(--ink); font-size: 0.9375rem; font-weight: 650; }
.arch-ncps span { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }

/* --------------------------------------------------------------- security */
.sec-path { display: grid; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: path; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); column-gap: 24px; }
.sec-path > li { min-width: 0; padding: 16px 0; border-bottom: 1px solid var(--line); counter-increment: path; }
.sec-path > li::before { content: counter(path); display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 8px; border: 1px solid var(--rule); border-radius: 50%; color: var(--ink); font-size: 0.75rem; font-weight: 650; }
.sec-path b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 0.9375rem; font-weight: 650; }
.sec-path span { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.sec-path-foot { margin-top: 12px; color: var(--ink-2); font-size: var(--text-sm); }
@media (min-width: 1100px) {
  .sec-path { position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  /* From the first step's mark to the last's: four columns 24px apart, so the
     last mark's centre is 25% less 30px from the right. */
  .sec-path::before { content: ""; position: absolute; left: 12px; right: calc(25% - 30px); top: 28px; height: 1px; background: var(--rule); }
  .sec-path > li { position: relative; padding-top: 16px; border-bottom: 0; }
  .sec-path > li::before { position: relative; z-index: 1; margin-bottom: 12px; background: var(--surface-2); }
}
/* The same request, through the four steps, once as the page opens: a line
   runs along them and each step lights as it passes, then all is as drawn. */
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) {
  .sec-path::after { content: ""; position: absolute; left: 12px; right: calc(25% - 30px); top: 28px; height: 2px; margin-top: -0.5px; background: var(--brand); transform-origin: left; animation: sec-run 2.2s linear 0.3s both; }
  .sec-path > li::before { animation: sec-step 0.7s ease-out both; }
  /* Each lights as the line reaches it: the line runs its length in 1.65s from
     0.3s, the steps stand at 0, 1/3, 2/3 and the end of it, and a light peaks
     0.28s after it starts. */
  .sec-path > li:nth-child(1)::before { animation-delay: 0.02s; }
  .sec-path > li:nth-child(2)::before { animation-delay: 0.57s; }
  .sec-path > li:nth-child(3)::before { animation-delay: 1.12s; }
  .sec-path > li:nth-child(4)::before { animation-delay: 1.67s; }
}
@keyframes sec-run {
  0% { transform: scaleX(0); opacity: 1; }
  75% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes sec-step { 40% { border-color: var(--brand); background: var(--brand); color: var(--on-primary); } }
.sec-path-title { margin-top: 32px; font-size: 1.0625rem; letter-spacing: -0.01em; }
.sec-path-title + .sec-path { margin-top: 12px; }
.sec-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sec-card-head:has(> .ledger-icon:only-child) { display: none; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.contact-card { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.page-hero-contact .contact-card { background: var(--raised); }
.page-hero-contact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 72px); }
@media (min-width: 960px) {
  .page-hero-contact { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; }
}
.contact-card h2 { margin-bottom: 10px; font-size: 1.25rem; }
.contact-card p { color: var(--muted); font-size: 0.9375rem; }
.contact-card .checks { margin-block: 14px; }
.contact-card .button { width: 100%; margin-top: 8px; }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink); font-size: var(--text-sm); }
.contact-email code { overflow-wrap: anywhere; }
.contact-side { display: grid; gap: 28px; align-content: start; }
.contact-grid.section { padding-block: clamp(32px, 4vw, 52px); }
.contact-grid .section-heading { margin-bottom: 18px; }
.contact-grid .section-heading h2, .note-block h2 { font-size: clamp(1.25rem, 1.12rem + 0.6vw, 1.5rem); }
.note-block h2 { margin-bottom: 12px; }
.contact-ncp { color: var(--muted); font-size: 0.9375rem; }
.contact-ncp b { color: var(--ink); font-weight: 650; }

/* -------------------------------------------------------------- changelog */
.changelog-body { padding-block: clamp(20px, 3vw, 36px) var(--space-section); }
.changelog-entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px clamp(24px, 4vw, 56px); padding-block: 24px; border-bottom: 1px solid var(--line); }
.changelog-entry:last-child { border-bottom: 0; }
.changelog-entry > .eyebrow { margin: 0; color: var(--muted); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.changelog-entry h2 { margin-bottom: 8px; font-size: 1.25rem; }
.changelog-entry h3 { margin: 20px 0 8px; font-size: 0.9375rem; }
.changelog-entry > div > p { max-width: var(--measure); color: var(--ink-2); font-size: 0.9375rem; }
/* A mark per kind of change, in place of the tick: + added, ~ changed, ! corrected.
   A new entry's list names its kind (changes changes-added, -changed, -corrected),
   in every language's copy of the page; without it, it keeps the plain tick.
   Each mark written as text here and above has empty alternative text (after
   the plain declaration a browser without it keeps), so a screen reader does
   not read it out (D3-151). */
.changes > li::before { top: 0; left: 0; width: 18px; height: auto; border: 0; transform: none; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 650; line-height: inherit; text-align: center; }
.changes-added > li::before { content: "+"; content: "+" / ""; color: var(--leaf-ink); }
.changes-changed > li::before { content: "~"; content: "~" / ""; color: var(--accent-text); }
.changes-corrected > li::before { content: "!"; content: "!" / ""; color: var(--amber-ink); }
@media (min-width: 860px) {
  .changelog-entry { grid-template-columns: 140px minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ legal */
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 72px); }
.legal { max-width: calc(760px + 2 * var(--gutter)); padding-block: clamp(32px, 5vw, 52px) var(--space-section); margin-inline: auto; }
.legal-head { margin-bottom: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-head h1 { margin-block: 8px 12px; font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem); }
.legal-head .lead { font-size: 1rem; }
.legal-effective { margin: 0 0 12px; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.legal section { padding-top: 30px; }
.legal h2 { margin-bottom: 12px; font-size: 1.1875rem; letter-spacing: -0.01em; }
.legal h3 { margin-block: 18px 8px; font-size: 1rem; }
.legal p { margin: 0 0 12px; color: var(--ink-2); line-height: 1.7; }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 22px; color: var(--ink-2); line-height: 1.7; }
.legal li { margin-bottom: 8px; }
.legal ol li::marker { color: var(--muted); font-weight: 650; }
.legal .legal-definitions { padding-left: 0; list-style: none; }
.legal strong { color: var(--ink); font-weight: 650; }
.legal .text-link { font-weight: 500; }
.legal-table { margin: 4px 0 12px; }
.legal table { width: 100%; border-collapse: collapse; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.55; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal thead th { border-bottom-color: var(--rule); background: var(--surface-2); color: var(--ink); font-weight: 650; }
.legal tbody th { width: 26%; color: var(--ink); font-weight: 650; }
.legal code { padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); color: var(--ink); font-size: 0.8125rem; }
.legal-notice { width: calc(100% - 2 * var(--gutter)); max-width: 760px; margin-top: 24px; padding: 12px 16px; border: 1px solid var(--rule); border-left: 3px solid var(--brand); border-radius: var(--radius-xs); background: var(--surface-2); color: var(--ink); font-size: 0.9375rem; }
.legal-notice p { margin: 0; }
.legal-notice + .legal { padding-top: 32px; }
.legal-toc { margin-block: 20px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--text-sm); }
.legal-toc summary { min-height: 24px; padding-block: 2px; color: var(--ink); font-weight: 600; cursor: pointer; }
.legal-toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2; column-gap: 24px; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-toc a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.legal-toc a:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .legal table, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: auto; }
  .legal tbody tr { margin-bottom: 10px; padding: 6px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .legal tbody th, .legal tbody td { width: auto; padding: 4px 14px; border: 0; }
  .legal td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: var(--text-xs); font-weight: 650; }
}

/* -------------------------------------------------------------- not found */
.not-found { padding-block: clamp(56px, 10vw, 112px); }
.not-found-card { max-width: 640px; margin-inline: auto; text-align: center; }
.not-found-code { color: var(--muted); font-family: var(--font-mono); font-size: clamp(3rem, 2.4rem + 3vw, 4.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.not-found h1 { margin-block: 14px 10px; font-size: clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem); }
.not-found-copy { color: var(--ink-2); }
.not-found .actions { justify-content: center; margin-top: 24px; }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 24px; font-size: var(--text-sm); }

@media print {
  .site-header, body > footer, .language-offer, .docs-nav, .model-toolbar, .copy-button, .code-tablist { display: none !important; }
  .code-card pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .code-card pre[hidden] { display: block !important; }
}

/* A finger's target: links that stand alone are 24px tall at least (WCAG 2.5.8). */
.footer-links a, .page-toc a, .hero-try-links a, .quick-links a, .not-found-links a, .ledger > * > .text-link { display: inline-block; min-height: 24px; padding-block: 1px; }
.model-preview tbody th a { display: inline-block; min-height: 24px; }
