/* OD-LAYOUT-PRIMITIVES v1 - structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer wins ordinary layout rules.
   Native hidden and closed-dialog states take precedence over component display rules. */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }

  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line - never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate - tile thumbs, decorative fills - never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* functional inline SVG icons opt into bounded geometry; content SVGs keep their own */
  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  /* data text only - authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls - no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */
/* SocialScrape homepage - "embers on graph paper" style.
   Every colour, size, space and motion value is a token in :root. */

:root {
  /* colour */
  --color-accent: #0e8a72;            /* sea: headline phrases, the statement band, big numerals, glyph art */
  --color-accent-ink: #0b7a65;        /* small green text on the light canvas (5.0:1) and the top strip */
  --color-spark: #14c9a0;             /* spring: registration stars and chapter ticks */
  --color-action: #14c9a0;            /* spring: the main button */
  --color-action-hover: #2ad8b0;
  --color-action-ink: #0f3d3a;        /* deep: label on the main button (5.6:1) */
  --color-danger: #c4281c;            /* field errors */
  --color-accent-line: rgba(14, 138, 114, 0.35);
  --color-ink: #262626;
  --color-support: #616161;
  --color-muted: #727272;
  --color-annotation: #b5b5b5;
  --color-selected: rgba(0, 0, 0, 0.058824);
  --color-rule: #ededed;
  --color-control: rgba(0, 0, 0, 0.039216);
  --color-control-active: rgba(0, 0, 0, 0.070588);
  --color-canvas: #f9f9f9;
  --color-white: #ffffff;            /* true white: text on green, the white button */
  --color-surface: #ffffff;          /* faces of cards, windows, inputs and buttons */
  --color-on-white: #262626;         /* text on a true white face */
  --color-strip: #0b7a65;            /* announcement strip and badges, same in both themes */
  --color-band: #0e8a72;             /* the green statement band, same in both themes */
  --color-status: #2a6dfb;
  --color-field-edge: rgba(0, 0, 0, 0.078431);
  --color-inv-edge: rgba(255, 255, 255, 0.4);
  --color-inv-fill: rgba(255, 255, 255, 0.12);

  /* type */
  --font-sans: "suisse", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "GeistMono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-art: "Roboto Mono", ui-monospace, monospace;

  --display-size: clamp(26px, 8.5vw, 60px);
  --display-line: 1.0667;
  --heading-lg-size: clamp(32px, 5.6vw, 52px);
  --heading-lg-line: 1.077;
  --heading-size: clamp(28px, 4.4vw, 40px);
  --heading-line: 1.1;
  --subheading-size: 24px;
  --subheading-line: 32px;
  --feature-size: clamp(18px, 2.2vw, 20px);
  --body-size: 16px;
  --label-size: 14px;
  --caption-size: 13px;
  --chapter-size: 12px;

  /* space */
  --s-4: 4px;
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-20: 20px;
  --s-24: 24px;
  --s-28: 28px;
  --s-32: 32px;
  --s-40: 40px;
  --s-56: 56px;
  --s-64: 64px;
  --s-88: 88px;
  --stage-pad: clamp(72px, 12vw, 143px);
  --cell-pad-x: clamp(20px, 5vw, 64px);
  --pair-pad-x: clamp(20px, 3vw, 32px);
  --rails: 1112px;
  --header-h: 92px;

  /* shape */
  --r-action: 10px;
  --r-nav: 8px;
  --r-tab: 6px;
  --r-panel: 12px;
  --r-float: 20px;

  /* depth */
  --shadow-action: inset 0px -6px 12px 0px rgba(14, 138, 114, 0.35), 0px 2px 4px 0px rgba(14, 138, 114, 0.16),
    0px 1px 1px 0px rgba(14, 138, 114, 0.16), 0px 0.5px 0.5px 0px rgba(14, 138, 114, 0.2),
    0px 0.3px 0.3px 0px rgba(14, 138, 114, 0.24);
  --shadow-action-hover: inset 0px -6px 12px 0px rgba(14, 138, 114, 0.4), 0px 4px 8px 0px rgba(14, 138, 114, 0.24),
    0px 1px 1px 0px rgba(14, 138, 114, 0.2), 0px 0.5px 0.5px 0px rgba(14, 138, 114, 0.24);
  --shadow-float: 0px 0px 44px 0px rgba(0, 0, 0, 0.02), 0px 88px 56px -20px rgba(0, 0, 0, 0.03),
    0px 56px 56px -20px rgba(0, 0, 0, 0.02), 0px 32px 32px -20px rgba(0, 0, 0, 0.03),
    0px 16px 24px -12px rgba(0, 0, 0, 0.03), 0px 0px 0px 1px rgba(0, 0, 0, 0.05);
  --shadow-mini: 0px 16px 24px -12px rgba(0, 0, 0, 0.04), 0px 0px 0px 1px rgba(0, 0, 0, 0.05);

  /* motion */
  --t-fast: 0.1s;
  --t-base: 0.2s;
  --ease: ease;
  --ease-hall: cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-16)); }
body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, pre, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s-16); top: -64px; z-index: 100; background: var(--color-ink); color: var(--color-canvas); padding: var(--s-8) var(--s-12); border-radius: var(--r-nav); }
.skip:focus { top: var(--s-8); }

.od-icon { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.od-icon.is-bold { stroke-width: 1.8; }
.accent { color: var(--color-accent); }
.mono { font-family: var(--font-mono); }

/* ---------- rails ---------- */
.band { position: relative; padding-inline: var(--s-16); }
.rails {
  position: relative;
  max-width: var(--rails);
  margin-inline: auto;
  border-inline: 1px solid var(--color-rule);
}
.rule-b { border-bottom: 1px solid var(--color-rule); }
.rule-t { border-top: 1px solid var(--color-rule); }

/* ---------- art layers (behind content) ---------- */
.art { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.above { position: relative; z-index: 1; }
.reg-grid {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='102' height='102'%3E%3Cpath d='M51 0v102M0 51h102' stroke='%23ededed' stroke-width='1'/%3E%3Cpath d='M51 47.5v7M47.5 51h7' stroke='%23d4d4d4' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 102px 102px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 46% 60% at 50% 46%, transparent 0, transparent 52%, #000 100%);
  mask-image: radial-gradient(ellipse 46% 60% at 50% 46%, transparent 0, transparent 52%, #000 100%);
}
.reg-star { position: absolute; top: var(--s-56); width: 20px; height: 20px; color: var(--color-spark); z-index: 0; pointer-events: none; }
.reg-star.is-left { left: 6%; }
.reg-star.is-right { right: 6%; }
.reg-square { position: absolute; width: 10px; height: 10px; background: rgba(0, 0, 0, 0.06); z-index: 0; pointer-events: none; }
.reg-note {
  position: absolute; z-index: 0; pointer-events: none;
  font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; color: var(--color-annotation);
}
.hero-art { top: auto; bottom: 0; height: 62%; }
.sq-1 { top: 148px; left: 12%; }
.sq-2 { top: 250px; right: 10%; }
.sq-3 { top: 352px; left: 4%; }
.note-1 { top: 200px; left: 4%; }
.note-2 { top: 302px; right: 4%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: var(--s-8) var(--s-12);
  border: 0; border-radius: var(--r-action);
  font-size: var(--label-size); line-height: 20px; font-weight: 450; white-space: nowrap;
  transition: background-color var(--t-base) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-primary { background: var(--color-action); color: var(--color-action-ink); box-shadow: var(--shadow-action); position: relative; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 50%; border-radius: var(--r-action) var(--r-action) 0 0;
  background: linear-gradient(rgba(255, 255, 255, 0.06), transparent); pointer-events: none;
}
.btn-primary:active { transform: scale(0.995); }
.btn-secondary { background: var(--color-control); color: var(--color-ink); }
.btn-secondary:active { background: var(--color-control-active); transform: scale(0.99); }
.btn-white { background: var(--color-white); color: var(--color-on-white); }
.btn-inv { background: var(--color-inv-fill); color: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-inv-edge); }
.btn-icon { width: 36px; padding: 0; --od-icon-size: 18px; }
.btn:disabled { opacity: 0.6; cursor: default; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--color-action-hover); box-shadow: var(--shadow-action-hover); }
  .btn-secondary:hover { background: var(--color-selected); }
  .btn-white:hover { background: rgba(255, 255, 255, 0.92); }
  .btn-inv:hover { background: rgba(255, 255, 255, 0.2); }
}
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-icon { min-width: 44px; }
}

.doc-link {
  display: inline-flex; align-items: center; gap: var(--s-4);
  color: var(--color-accent-ink); font-size: var(--body-size); line-height: 1.5; font-weight: 450;
  transition: opacity var(--t-base) var(--ease); --od-icon-size: 16px;
}
@media (hover: hover) { .doc-link:hover { opacity: 0.8; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-8);
  font-size: var(--caption-size); line-height: 20px; font-weight: 450; color: var(--color-support);
  --od-icon-size: 16px;
}
.sample-tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 var(--s-8);
  border-radius: var(--r-tab); background: var(--color-control);
  font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; color: var(--color-support);
}

/* ---------- announcement + header ---------- */
.announce {
  background: var(--color-strip); color: var(--color-white);
  font-size: var(--label-size); line-height: 20px; font-weight: 500; text-align: center;
  padding: var(--s-8) var(--s-16);
}
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-canvas); border-bottom: 1px solid var(--color-rule);
  padding-inline: var(--s-16);
}
.header-in {
  max-width: var(--rails); margin-inline: auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-16);
}
.brand { display: inline-flex; align-items: center; gap: var(--s-8); font-size: 18px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.brand svg { display: block; width: 28px; height: 28px; flex: none; }
.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav-item {
  display: flex; align-items: center; height: 32px; padding: 6px var(--s-8);
  border-radius: var(--r-nav); font-size: var(--label-size); line-height: 20px; font-weight: 450;
  transition: background-color 50ms var(--ease);
}
@media (hover: hover) { .nav-item:hover { background: var(--color-control); } }
.header-actions { display: flex; align-items: center; gap: var(--s-8); }
.menu-btn { display: none; }
.mobile-nav { border-top: 1px solid var(--color-rule); padding: var(--s-12) 0 var(--s-20); }
.mobile-nav .nav-item { height: 44px; padding-inline: var(--s-8); font-size: var(--body-size); }
.mobile-nav-actions { display: flex; gap: var(--s-12); padding-top: var(--s-12); }
.mobile-nav-actions .btn { flex: 1 1 0; }

/* ---------- hero ---------- */
.hero { overflow: hidden; border-bottom: 1px solid var(--color-rule); }
.hero .rails { border-inline-color: transparent; padding: var(--s-64) 0 var(--s-88); text-align: center; }
.hero h1 {
  font-size: var(--display-size); line-height: var(--display-line); font-weight: 500; letter-spacing: -0.005em;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero-support { max-width: 480px; margin: var(--s-16) auto 0; color: var(--color-support); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-12); margin-top: var(--s-32); }
.reassure { margin-top: var(--s-12); font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-muted); }

.instrument-halo { max-width: 568px; margin: var(--s-24) auto 0; padding: var(--s-8); border-radius: 28px; background: var(--color-canvas); text-align: left; }
.instrument { background: var(--color-surface); border-radius: var(--r-float); box-shadow: var(--shadow-float); padding: var(--s-16); }
.ins-label { display: block; font-size: var(--caption-size); line-height: 20px; font-weight: 450; color: var(--color-support); margin-bottom: var(--s-8); }
.ins-row { display: flex; gap: var(--s-8); }
.ins-select, .ins-input {
  height: 44px; border: 1px solid var(--color-field-edge); border-radius: var(--r-nav); background: var(--color-surface);
  padding: var(--s-8) var(--s-12); font-size: var(--body-size); line-height: 24px;
}
.ins-select { flex: none; padding-right: var(--s-8); }
.ins-input { flex: 1 1 0; min-width: 0; }
.ins-input::placeholder { color: var(--color-muted); }
.ins-input[aria-invalid="true"] { border-color: var(--color-danger); }
.ins-error { margin-top: var(--s-8); font-size: var(--label-size); line-height: 20px; color: var(--color-danger); }
.ins-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); margin-top: var(--s-12); }
.ins-modes { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.tab {
  display: inline-flex; align-items: center; height: 28px; padding: var(--s-4) 10px;
  border: 0; border-radius: var(--r-tab); background: transparent;
  font-size: var(--caption-size); line-height: 20px; font-weight: 450; color: var(--color-muted);
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.tab[aria-pressed="true"], .tab[aria-selected="true"] { background: var(--color-selected); color: var(--color-ink); }
@media (hover: hover) { .tab:hover { color: var(--color-ink); } }
@media (pointer: coarse) { .tab { min-height: 44px; padding-inline: var(--s-12); } }
.ins-request {
  margin-top: var(--s-12); padding: var(--s-12); border: 1px solid var(--color-rule); border-radius: var(--r-nav); background: var(--color-canvas);
  font-family: var(--font-mono); font-size: var(--caption-size); line-height: 20px; overflow-wrap: anywhere;
}
.ins-request .req-method { color: var(--color-accent-ink); }
.ins-request .req-param { display: block; color: var(--color-support); }
.ins-output { margin-top: var(--s-12); border: 1px solid var(--color-rule); border-radius: var(--r-nav); background: var(--color-canvas); overflow: hidden; }
.ins-output-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); padding: var(--s-8) var(--s-12); border-bottom: 1px solid var(--color-rule); }
.status-ok { font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; color: var(--color-ink); }
.ins-output-bar .push { margin-left: auto; }
.ins-output pre { padding: var(--s-12); max-height: 264px; overflow: auto; }
.skeleton { padding: var(--s-12); display: grid; gap: var(--s-8); }
.skeleton i { display: block; height: 12px; border-radius: var(--s-4); background: var(--color-selected); animation: pulse 0.9s var(--ease) infinite alternate; }
.skeleton i:nth-child(2) { width: 72%; }
.skeleton i:nth-child(3) { width: 56%; }
.skeleton i:nth-child(4) { width: 80%; }
@keyframes pulse { from { opacity: 0.45; } to { opacity: 1; } }

/* ---------- code ---------- */
pre, code { font-family: var(--font-mono); font-size: var(--label-size); line-height: 22px; }
pre { white-space: pre; overflow-x: auto; color: var(--color-ink); tab-size: 2; }
.tok-str { color: var(--color-muted); }
.tok-lit { color: var(--color-accent-ink); }
.tok-dim { color: var(--color-muted); }

/* ---------- chapter marker ---------- */
.chapter {
  position: relative; display: flex; align-items: center; gap: var(--s-12);
  padding: var(--s-64) var(--s-28) var(--s-20);
  font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px;
  border-bottom: 1px solid var(--color-rule);
}
.chapter::before { content: ""; position: absolute; left: -1px; bottom: var(--s-20); width: 2px; height: 16px; background: var(--color-spark); }
.ch-num { color: var(--color-annotation); white-space: nowrap; }
.ch-num b { font-weight: 400; color: var(--color-accent-ink); }
.ch-num em { font-style: normal; color: var(--color-muted); }
.ch-div { width: var(--s-12); height: 1px; background: var(--color-annotation); flex: none; }
.ch-label { text-transform: uppercase; color: var(--color-muted); }

/* ---------- heading stages ---------- */
.stage { position: relative; overflow: hidden; padding: var(--stage-pad) var(--s-24); text-align: center; border-bottom: 1px solid var(--color-rule); }
.stage h2, .accent-band h2 { font-size: var(--heading-lg-size); line-height: var(--heading-lg-line); font-weight: 500; letter-spacing: -0.01em; }
.stage h2 { margin-top: 0; }
.stage-support { max-width: 376px; margin: var(--s-16) auto 0; color: var(--color-support); }

.pair-head { position: relative; overflow: hidden; padding: var(--s-88) var(--s-24); border-bottom: 1px solid var(--color-rule); }
/* a heading block is the heading alone, with at most a line under it: no tag beside or above it */
.pair-head-in { max-width: 736px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-24); align-items: start; }
.pair-head .eyebrow { padding-top: var(--s-12); }
.pair-head h2 { font-size: var(--heading-size); line-height: var(--heading-line); font-weight: 500; letter-spacing: -0.01em; }
.pair-head p { margin-top: var(--s-16); max-width: 520px; color: var(--color-support); }

/* ---------- platform grid ---------- */
.plat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.plat {
  display: grid; gap: var(--s-12); align-content: start; padding: var(--s-24) var(--s-20);
  border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule);
}
.plat:nth-child(6n) { border-right: 0; }
.plat svg:not(.od-icon) { display: block; width: 24px; height: 24px; fill: var(--color-ink); }
.plat .od-icon { display: block; color: var(--color-ink); }
.plat-name { display: block; font-size: var(--label-size); line-height: 20px; font-weight: 450; }
.plat-count { display: block; font-size: var(--caption-size); line-height: 20px; color: var(--color-muted); letter-spacing: 0.01em; }
.plat-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-12); padding: var(--s-20) var(--s-28); border-bottom: 1px solid var(--color-rule); color: var(--color-support); font-size: var(--label-size); line-height: 20px; }

/* ---------- technical pair ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--color-rule); }
.pair > * + * { border-left: 1px solid var(--color-rule); }
.install-cell { padding: var(--s-56) var(--pair-pad-x); display: flex; flex-direction: column; gap: var(--s-24); min-width: 0; }
.feature-copy { font-size: var(--feature-size); line-height: 1.4; letter-spacing: -0.005em; color: var(--color-muted); max-width: 520px; }
.feature-copy strong { font-weight: 400; color: var(--color-ink); }
.code-panel { position: relative; background: var(--color-canvas); border: 1px solid var(--color-rule); min-width: 0; }
.code-bar { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-8) var(--s-12); border-bottom: 1px solid var(--color-rule); min-height: 44px; }
.code-bar .push { margin-left: auto; }
.code-bar .status-ok { padding-inline: var(--s-4); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: var(--s-4) var(--s-8);
  border: 0; border-radius: var(--r-tab); background: transparent; color: var(--color-support);
  font-size: var(--caption-size); line-height: 20px; font-weight: 450; --od-icon-size: 16px;
  transition: background-color var(--t-base) var(--ease);
}
@media (hover: hover) { .copy-btn:hover { background: var(--color-control); color: var(--color-ink); } }
@media (pointer: coarse) { .copy-btn { min-height: 44px; } }
.code-body { padding: var(--s-16) var(--s-20); }
.install-cell .doc-link { align-self: flex-start; margin-top: auto; }

/* ---------- capability workbench ---------- */
.cap-cell { padding: var(--s-56) var(--cell-pad-x) var(--s-64); display: flex; flex-direction: column; gap: var(--s-16); min-width: 0; }
.cap-cell .mini { margin-top: var(--s-24); }
.cap-wide { padding: var(--s-64) var(--cell-pad-x); border-bottom: 1px solid var(--color-rule); display: grid; justify-items: center; text-align: center; gap: var(--s-16); }
.cap-wide .mini { margin-top: var(--s-24); width: 100%; max-width: 736px; text-align: left; }

.mini { position: relative; display: grid; gap: var(--s-12); }
.mini-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); }
.mini-title { font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; color: var(--color-muted); }
.card { background: var(--color-surface); border-radius: var(--r-panel); box-shadow: var(--shadow-mini); padding: var(--s-16); min-width: 0; }
.card pre, .card code { font-size: var(--caption-size); line-height: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--s-8);
  border-radius: var(--r-tab); background: var(--color-control); white-space: nowrap;
  font-size: var(--caption-size); line-height: 20px; font-weight: 450; color: var(--color-ink);
}
.chip svg { display: block; width: 14px; height: 14px; fill: currentColor; }
.chip-accent { color: var(--color-accent-ink); }
.rule-line { display: block; height: 6px; border-radius: 3px; background: var(--color-rule); }
.rule-line.is-accent { background: var(--color-accent-line); }
.w-40 { width: 40%; } .w-56 { width: 56%; } .w-72 { width: 72%; } .w-88 { width: 88%; }

.merge { display: grid; grid-template-columns: auto 32px minmax(0, 1fr); align-items: center; gap: var(--s-12); }
.merge-in { display: grid; gap: var(--s-8); justify-items: start; }
.merge-line { height: 1px; background: var(--color-annotation); position: relative; }
.merge-line::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--color-annotation); border-right: 1px solid var(--color-annotation); transform: rotate(45deg); }

.pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-12); }
.page-card { display: grid; gap: var(--s-8); }
.page-card b { font-size: var(--caption-size); line-height: 20px; font-weight: 450; }
.page-card .mono { font-size: var(--chapter-size); line-height: 16px; color: var(--color-muted); overflow-wrap: anywhere; }

.errors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-16); }
.error-card { display: grid; gap: var(--s-12); }
.error-foot { display: flex; flex-wrap: wrap; gap: var(--s-8); }

.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-4) var(--s-12); font-size: var(--caption-size); line-height: 20px; }
.kv dt { color: var(--color-muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.deliveries { display: grid; gap: var(--s-8); margin-top: var(--s-12); padding-top: var(--s-12); border-top: 1px solid var(--color-rule); }
.delivery { display: flex; align-items: center; gap: var(--s-8); font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; color: var(--color-support); }
.delivery .push { margin-left: auto; color: var(--color-ink); white-space: nowrap; }
.delivery span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }

.chat { display: grid; gap: var(--s-12); }
.bubble { justify-self: end; max-width: 88%; padding: var(--s-8) var(--s-12); border-radius: var(--r-panel); background: var(--color-control); font-size: var(--label-size); line-height: 20px; }
.tool-rows { display: grid; gap: var(--s-8); margin-top: var(--s-12); }
.tool-row { display: flex; justify-content: space-between; gap: var(--s-12); font-size: var(--caption-size); line-height: 20px; }
.tool-row span:last-child { color: var(--color-muted); white-space: nowrap; }

/* ---------- green statement band ---------- */
.accent-band { position: relative; overflow: clip; background: var(--color-band); color: var(--color-white); padding: 96px var(--s-20); min-height: 560px; display: grid; align-content: center; justify-items: center; text-align: center; }
.accent-band .art { animation: hall 7s var(--ease-hall) infinite alternate; }
@keyframes hall { from { opacity: 0.55; } to { opacity: 1; } }
.accent-band p { max-width: 440px; margin-top: var(--s-16); font-size: 18px; line-height: 1.5; font-weight: 500; }
.accent-band :focus-visible { outline-color: var(--color-white); }

.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--color-rule); }
.proof-cell { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-32) var(--s-28); }
.proof-cell + .proof-cell { border-left: 1px solid var(--color-rule); }
.proof-num { display: block; font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.01em; color: var(--color-accent); white-space: nowrap; }
.proof-label { display: block; margin-top: var(--s-8); font-size: var(--label-size); line-height: 20px; font-weight: 450; }
.proof-note { display: block; font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-muted); }

/* ---------- questions ---------- */
.faq-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--color-rule); }
.faq-cat { padding: var(--s-40) var(--cell-pad-x); font-size: var(--subheading-size); line-height: var(--subheading-line); font-weight: 500; letter-spacing: -0.01em; }
.faq-list { border-left: 1px solid var(--color-rule); }
.faq-list details + details { border-top: 1px solid var(--color-rule); }
.faq-list summary {
  display: flex; align-items: center; gap: var(--s-16); min-height: 64px; padding: var(--s-20) var(--cell-pad-x);
  font-size: var(--body-size); line-height: 1.5; font-weight: 450; cursor: pointer; list-style: none; --od-icon-size: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { flex: 1 1 0; min-width: 0; }
.faq-list summary .od-icon { color: var(--color-muted); transition: transform var(--t-base) var(--ease); }
.faq-list details[open] summary .od-icon { transform: rotate(180deg); }
.faq-list summary:focus-visible { outline-offset: -2px; }
.faq-answer { padding: 0 var(--cell-pad-x) var(--s-24); color: var(--color-support); max-width: 60ch; }
.faq-answer a { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- closing ---------- */
.closing { position: relative; overflow: hidden; min-height: 416px; display: grid; align-content: center; justify-items: center; padding: var(--s-64) var(--s-24); border-bottom: 1px solid var(--color-rule); }
.closing .plume { position: absolute; bottom: 0; width: 26%; height: 100%; pointer-events: none; z-index: 0; }
.closing .plume.is-left { left: 0; }
.closing .plume.is-right { right: 0; }
.closing-cell { position: relative; z-index: 1; width: 100%; max-width: 504px; text-align: center; background: var(--color-canvas); border: 1px solid var(--color-rule); padding: var(--s-40) var(--s-32); }
.closing-cell h2 { margin-top: var(--s-12); font-size: var(--heading-size); line-height: var(--heading-line); font-weight: 500; letter-spacing: -0.01em; }
.closing-cell p { margin-top: var(--s-12); color: var(--color-support); }
.closing-cell .actions { margin-top: var(--s-24); }
.tertiary { display: inline-block; margin-top: var(--s-16); font-size: var(--label-size); line-height: 20px; color: var(--color-muted); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .tertiary:hover { color: var(--color-ink); } }

/* ---------- directory ending ---------- */
.foot-top { display: grid; grid-template-columns: 346px minmax(0, 1fr); border-bottom: 1px solid var(--color-rule); }
.foot-brand { position: relative; overflow: hidden; min-height: 320px; padding: var(--s-32) var(--s-28); display: flex; flex-direction: column; gap: var(--s-16); }
.foot-brand p { font-size: 20px; line-height: 1.4; letter-spacing: -0.005em; max-width: 264px; }
.foot-brand .art { top: auto; bottom: 0; height: 56%; }
.foot-proof { border-left: 1px solid var(--color-rule); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.assure { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-32) var(--s-28); border-bottom: 1px solid var(--color-rule); }
.assure:nth-child(odd) { border-right: 1px solid var(--color-rule); }
.assure b { display: block; font-size: var(--label-size); line-height: 20px; font-weight: 450; }
.assure span { display: block; font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-muted); }
.dir-link {
  display: flex; align-items: center; gap: var(--s-16); min-height: 52px; padding: var(--s-16) var(--s-28);
  font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-support);
  border-bottom: 1px solid var(--color-rule); transition: color var(--t-base) var(--ease); --od-icon-size: 18px; overflow-wrap: anywhere;
}
@media (hover: hover) { .dir-link:hover { color: var(--color-accent-ink); } }
.foot-proof .dir-link:nth-child(odd) { border-right: 1px solid var(--color-rule); }
.foot-proof .dir-link:nth-last-child(-n + 2) { border-bottom: 0; }
.directory { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--color-rule); }
.dir-col + .dir-col { border-left: 1px solid var(--color-rule); }
.dir-col h3 { min-height: 52px; padding: var(--s-16) var(--s-28); font-size: var(--label-size); line-height: 20px; font-weight: 500; border-bottom: 1px solid var(--color-rule); }
.dir-col li:last-child .dir-link { border-bottom: 0; }
.legal { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--color-rule); }
.legal > * { display: flex; align-items: center; min-height: 52px; padding: var(--s-16) var(--s-28); font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-support); border-right: 1px solid var(--color-rule); }
.legal a { transition: color var(--t-base) var(--ease); }
@media (hover: hover) { .legal a:hover { color: var(--color-accent-ink); } }
.status-band { min-height: 84px; display: flex; align-items: center; padding: var(--s-24) var(--s-16); }
.status-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: var(--s-8) var(--s-12);
  border-radius: var(--r-action); color: var(--color-status); font-size: var(--label-size); line-height: 20px; font-weight: 450;
  transition: background-color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.status-dot { display: grid; place-items: center; width: 20px; height: 20px; flex: none; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-status); }
@media (hover: hover) { .status-link:hover { background: var(--color-control); } }
.status-link:active { transform: scale(0.99); }
@media (pointer: coarse) { .status-link { min-height: 44px; } }

/* ---------- platform page ---------- */
.crumbs { display: flex; align-items: center; justify-content: center; gap: var(--s-8); margin-bottom: var(--s-24); font-size: var(--label-size); line-height: 20px; color: var(--color-support); --od-icon-size: 14px; }
.crumbs a { color: var(--color-accent-ink); }
.crumbs .od-icon { color: var(--color-annotation); }
@media (hover: hover) { .crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.ins-row .ins-input { width: 100%; }

.plat-a { display: grid; gap: var(--s-12); align-content: start; }
@media (hover: hover) { .plat-a:hover .plat-name { text-decoration: underline; text-underline-offset: 3px; } }

.ep-group { display: grid; grid-template-columns: 346px minmax(0, 1fr); border-bottom: 1px solid var(--color-rule); }
.ep-cat { display: grid; gap: var(--s-8); align-content: start; padding: var(--s-40) var(--s-28); }
.ep-cat h3 { font-size: var(--subheading-size); line-height: var(--subheading-line); font-weight: 500; letter-spacing: -0.01em; }
.ep-cat span { display: block; font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; color: var(--color-muted); }
.ep-list { border-left: 1px solid var(--color-rule); }
.ep-list li + li { border-top: 1px solid var(--color-rule); }
.ep-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-8) var(--s-16); padding: var(--s-20) var(--s-28); transition: background-color var(--t-base) var(--ease); }
@media (hover: hover) { .ep-row:hover { background: var(--color-control); } }
.ep-row:focus-visible { outline-offset: -2px; }
.ep-main { display: grid; gap: var(--s-4); min-width: 0; }
.ep-name { display: block; font-size: var(--body-size); line-height: 1.5; font-weight: 450; }
.ep-path { display: block; font-family: var(--font-mono); font-size: var(--caption-size); line-height: 20px; color: var(--color-accent-ink); overflow-wrap: anywhere; }
.ep-desc { display: block; font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-muted); }
.ep-meta { display: flex; align-items: center; gap: var(--s-8); color: var(--color-muted); --od-icon-size: 16px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--color-rule); }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s-16); padding: var(--s-40) var(--s-28) var(--s-32); min-width: 0; }
.plan + .plan { border-left: 1px solid var(--color-rule); }
.plan.is-pop { box-shadow: inset 0 2px 0 var(--color-accent); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); min-height: 24px; }
.plan-name { font-size: var(--body-size); line-height: 1.5; font-weight: 500; }
.plan-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--s-8); border-radius: var(--r-tab); background: var(--color-strip); color: var(--color-white); font-size: var(--caption-size); line-height: 20px; font-weight: 450; white-space: nowrap; }
.plan-credits { font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-support); }
.plan-price { font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.plan-price small { font-size: var(--label-size); line-height: 20px; font-weight: 400; letter-spacing: 0.01em; color: var(--color-muted); }
.plan .btn { display: flex; width: 100%; }
.plan-facts li { display: flex; align-items: center; gap: var(--s-8); padding: var(--s-12) 0; border-top: 1px solid var(--color-rule); font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-support); --od-icon-size: 16px; }
.plan-facts .od-icon { color: var(--color-accent-ink); }

.cost-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-24); padding: var(--s-20) var(--cell-pad-x); font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; border-bottom: 1px solid var(--color-rule); }
.cost-row span:first-child { color: var(--color-support); }
.cost-row span:last-child { font-weight: 450; }
.cost-row.is-head span { font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; letter-spacing: 0; text-transform: uppercase; font-weight: 400; color: var(--color-muted); }
.cost-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-12); padding: var(--s-20) var(--cell-pad-x); border-bottom: 1px solid var(--color-rule); font-size: var(--label-size); line-height: 20px; color: var(--color-support); }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-8); margin-top: var(--s-12); padding-top: var(--s-12); border-top: 1px solid var(--color-rule); }
.stat b { display: block; font-size: var(--label-size); line-height: 20px; font-weight: 500; white-space: nowrap; }
.stat span { display: block; font-size: var(--chapter-size); line-height: 16px; color: var(--color-muted); }
.lines { display: grid; gap: var(--s-8); }
.segs { display: grid; gap: var(--s-8); }
.seg { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-12); font-size: var(--caption-size); line-height: 20px; }
.seg span:first-child { font-family: var(--font-mono); color: var(--color-accent-ink); }

/* ---------- site pages ---------- */
.nav-item[aria-current="page"] { background: var(--color-selected); }
.hero.is-title h1 { max-width: 800px; margin-inline: auto; font-size: clamp(26px, 7vw, 52px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-8); margin-top: var(--s-24); }
.instrument h2 { font-size: var(--body-size); line-height: 1.5; font-weight: 500; }
.instrument .muted { font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-muted); }
.ins-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-12); margin-bottom: var(--s-12); }
.ins-rule { margin-top: var(--s-12); padding-top: var(--s-12); border-top: 1px solid var(--color-rule); }
.ins-row .btn { height: 44px; flex: none; }
.tool-rows.flush { margin-top: 0; }
.tool-row span:first-child { min-width: 0; overflow-wrap: anywhere; }

.cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); overflow: hidden; border-bottom: 1px solid var(--color-rule); }
.cols-2 { --cols: 2; } .cols-3 { --cols: 3; } .cols-4 { --cols: 4; }
.cell { display: flex; flex-direction: column; gap: var(--s-8); min-width: 0; padding: var(--s-32) var(--s-28); box-shadow: 1px 0 0 var(--color-rule), 0 1px 0 var(--color-rule); transition: background-color var(--t-base) var(--ease); }
.cell.is-link:focus-visible { outline-offset: -2px; }
@media (hover: hover) { .cell.is-link:hover { background: var(--color-control); } }
.cell-mark { display: block; width: 24px; height: 24px; fill: var(--color-ink); margin-bottom: var(--s-8); }
.cell-icon { display: block; margin-bottom: var(--s-8); color: var(--color-support); --od-icon-size: 24px; }
.cell-num, .cell-meta { display: block; font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; color: var(--color-muted); }
.cell-num { color: var(--color-accent-ink); margin-bottom: var(--s-8); }
.cell-title { display: block; font-size: var(--body-size); line-height: 1.5; font-weight: 500; }
.cells.is-big .cell-title { font-size: var(--feature-size); line-height: 1.4; letter-spacing: -0.005em; }
.cell-desc { display: block; font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-muted); }
.cell-foot { display: inline-flex; align-items: center; gap: var(--s-4); margin-top: auto; padding-top: var(--s-12); font-size: var(--label-size); line-height: 20px; font-weight: 450; color: var(--color-accent-ink); --od-icon-size: 14px; }
.cell .chip, .cell .kv, .cell .check-list { margin-top: var(--s-8); }
.cell .chip { align-self: flex-start; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--color-rule); }
.fact { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-24) var(--s-28); min-width: 0; }
.fact + .fact { border-left: 1px solid var(--color-rule); }
.fact span { display: block; font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; text-transform: uppercase; color: var(--color-muted); }
.fact b { display: block; font-size: var(--body-size); line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }

.nrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s-16); padding: var(--s-24) var(--cell-pad-x); border-bottom: 1px solid var(--color-rule); }
.nrow-num { font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 24px; color: var(--color-accent-ink); }
.nrow h3 { font-size: var(--body-size); line-height: 1.5; font-weight: 500; }
.nrow p { margin-top: var(--s-4); max-width: 60ch; font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-muted); }

.tbl-wrap { overflow-x: auto; border-bottom: 1px solid var(--color-rule); }
.tbl-wrap:focus-visible { outline-offset: -2px; }
.tbl { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--label-size); line-height: 20px; }
.tbl th, .tbl td { padding: var(--s-16) var(--s-28); text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-rule); }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl thead th { font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; font-weight: 400; text-transform: uppercase; color: var(--color-muted); white-space: nowrap; }
.tbl tbody th { font-weight: 450; color: var(--color-ink); }
.tbl td { color: var(--color-support); letter-spacing: 0.01em; }
.tbl td + td, .tbl th + th { border-left: 1px solid var(--color-rule); }
.tbl .mono, .tbl code { font-size: var(--caption-size); color: var(--color-accent-ink); }
.tbl.is-wide { min-width: 880px; }
.yes { color: var(--color-accent-ink); font-weight: 450; }
.no { color: var(--color-muted); }

.split-body { min-width: 0; border-left: 1px solid var(--color-rule); padding: var(--s-40) var(--cell-pad-x); display: grid; gap: var(--s-24); align-content: start; }
.split-body p { max-width: 60ch; color: var(--color-support); }
.split-body h4 { font-size: var(--label-size); line-height: 20px; font-weight: 500; margin-bottom: var(--s-8); }
.ep-cat .chip, .ep-cat .doc-link { justify-self: start; margin-top: var(--s-8); }
.ep-cat .doc-link { font-size: var(--label-size); }
.ep-cat svg.cell-mark { margin-bottom: var(--s-4); }
.ep-cat p { font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-muted); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-32); }
.check-list { display: grid; gap: var(--s-8); }
.check-list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s-8); align-items: start; font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-support); --od-icon-size: 16px; }
.check-list .od-icon { margin-top: 2px; color: var(--color-accent-ink); }
.check-list.is-minus .od-icon { color: var(--color-muted); }

.ep-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ep-links li { min-width: 0; box-shadow: 1px 0 0 var(--color-rule), 0 1px 0 var(--color-rule); }
.ep-links a { display: grid; gap: 2px; padding: var(--s-12) var(--s-28); transition: background-color var(--t-base) var(--ease); }
.ep-links a:focus-visible { outline-offset: -2px; }
@media (hover: hover) { .ep-links a:hover { background: var(--color-control); } }
.ep-links .ep-name { font-size: var(--label-size); line-height: 20px; }
.ep-links .ep-path { font-size: var(--chapter-size); line-height: 16px; }
.ep-wrap { min-width: 0; border-left: 1px solid var(--color-rule); overflow: hidden; }
details.more > summary { display: flex; align-items: center; gap: var(--s-8); min-height: 52px; padding: var(--s-12) var(--s-28); font-size: var(--label-size); line-height: 20px; font-weight: 450; color: var(--color-accent-ink); cursor: pointer; list-style: none; --od-icon-size: 14px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary:focus-visible { outline-offset: -2px; }
details.more[open] > summary .od-icon { transform: rotate(180deg); }
details.more[open] > summary { border-bottom: 1px solid var(--color-rule); }

.article { display: grid; grid-template-columns: 278px minmax(0, 1fr); border-bottom: 1px solid var(--color-rule); }
.toc { border-right: 1px solid var(--color-rule); padding: var(--s-40) var(--s-28); }
.toc-in { position: sticky; top: calc(var(--header-h) + var(--s-24)); display: grid; gap: var(--s-4); }
.toc-title { font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--s-8); }
.toc a { display: block; padding: var(--s-8) 0; font-size: var(--label-size); line-height: 20px; color: var(--color-support); }
@media (hover: hover) { .toc a:hover { color: var(--color-accent-ink); } }
.toc .btn { margin-top: var(--s-16); }
.toc .muted { margin-top: var(--s-24); font-size: var(--label-size); line-height: 20px; color: var(--color-muted); }
.prose { min-width: 0; padding: var(--s-56) var(--cell-pad-x) var(--s-64); }
.prose > * { max-width: 68ch; }
.prose > .code-panel, .prose > .tbl-wrap { max-width: none; margin-top: var(--s-24); }
.prose > .tbl-wrap { border: 1px solid var(--color-rule); }
.prose h2 { margin-top: var(--s-56); font-size: var(--subheading-size); line-height: var(--subheading-line); font-weight: 500; letter-spacing: -0.01em; scroll-margin-top: calc(var(--header-h) + var(--s-16)); }
.prose h2:first-child { margin-top: 0; }
.prose h2 .cell-num { display: inline; margin-right: var(--s-8); font-size: var(--label-size); }
.prose h3 { margin-top: var(--s-32); font-size: var(--body-size); line-height: 1.5; font-weight: 500; }
.prose p, .prose ul, .prose ol { margin-top: var(--s-16); color: var(--color-support); line-height: 1.6; }
.prose ul, .prose ol { padding-left: var(--s-20); display: grid; gap: var(--s-8); }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose :not(pre) > code { font-size: 0.875em; line-height: inherit; padding: 2px 6px; border-radius: var(--s-4); background: var(--color-control); color: var(--color-ink); overflow-wrap: anywhere; }
.prose a:not(.btn):not(.doc-link) { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.callout { margin-top: var(--s-32); padding: var(--s-20) var(--s-24); border: 1px solid var(--color-rule); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-12); }
.callout p { margin: 0; }

.note-band { padding: var(--s-20) var(--cell-pad-x); border-bottom: 1px solid var(--color-rule); font-size: var(--label-size); line-height: 20px; letter-spacing: 0.01em; color: var(--color-support); }
.note-band a, .empty a { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-16); padding: var(--s-20) var(--s-28); border-bottom: 1px solid var(--color-rule); }
.strip p { font-size: var(--label-size); line-height: 20px; color: var(--color-support); }
.strip p b { font-weight: 500; color: var(--color-ink); }
.strip .od-cluster { --od-gap: 8px; }
.chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); padding: var(--s-24) var(--s-28); border-bottom: 1px solid var(--color-rule); }
.chips-row .doc-link { margin-left: auto; font-size: var(--label-size); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-12); padding: var(--s-12) var(--s-28); border-bottom: 1px solid var(--color-rule); }
.filters.is-center { justify-content: center; }
.filter-count { margin-left: auto; font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; color: var(--color-muted); }
.search { display: flex; align-items: center; gap: var(--s-8); flex: 1 1 240px; max-width: 360px; height: 44px; padding: 0 var(--s-12); border: 1px solid var(--color-field-edge); border-radius: var(--r-nav); background: var(--color-surface); color: var(--color-muted); --od-icon-size: 18px; }
.search input { flex: 1 1 0; min-width: 0; height: 100%; border: 0; background: transparent; font-size: var(--body-size); color: var(--color-ink); outline: none; }
.search:focus-within { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.empty { padding: var(--s-40) var(--s-28); border-bottom: 1px solid var(--color-rule); color: var(--color-support); }
.sec-label { padding: var(--s-24) var(--s-28) var(--s-12); font-size: var(--subheading-size); line-height: var(--subheading-line); font-weight: 500; letter-spacing: -0.01em; border-bottom: 1px solid var(--color-rule); }
.sec-label small { margin-left: var(--s-8); font-family: var(--font-mono); font-size: var(--chapter-size); font-weight: 400; letter-spacing: 0; color: var(--color-muted); }

.form { display: grid; gap: var(--s-16); }
.field { display: grid; gap: var(--s-8); }
.field label { font-size: var(--caption-size); line-height: 20px; font-weight: 450; color: var(--color-support); }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid var(--color-field-edge); border-radius: var(--r-nav); background: var(--color-surface); padding: var(--s-8) var(--s-12); font-size: var(--body-size); line-height: 24px; }
.field textarea { min-height: 128px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--color-danger); }
.field-error { font-size: var(--label-size); line-height: 20px; color: var(--color-danger); }
.form .btn { justify-self: start; }
.form-done h2 { font-size: var(--subheading-size); line-height: var(--subheading-line); font-weight: 500; letter-spacing: -0.01em; }
.form-done p { margin-top: var(--s-8); color: var(--color-support); }
.form-done .od-cluster { margin-top: var(--s-20); --od-gap: 12px; }

.hl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
.hl-btn { display: grid; gap: 2px; padding: var(--s-12); border: 1px solid var(--color-rule); border-radius: var(--r-nav); background: var(--color-canvas); text-align: left; transition: background-color var(--t-base) var(--ease); }
.hl-btn b { display: block; font-size: var(--label-size); line-height: 20px; font-weight: 500; }
.hl-btn span { display: block; font-size: var(--chapter-size); line-height: 16px; color: var(--color-muted); }
.hl-btn[aria-pressed="true"] { background: var(--color-selected); border-color: var(--color-accent); }
@media (hover: hover) { .hl-btn:hover { background: var(--color-control); } }

/* page set fixes */
.hero.is-title h1 span { display: inline; white-space: normal; }
.hero-support b { font-weight: 500; color: var(--color-ink); }
.nrows.flush .nrow { grid-template-columns: 40px minmax(0, 1fr); padding: var(--s-16) 0; }
.nrows.flush .nrow:last-child { border-bottom: 0; }
.code-wide { padding: var(--s-32) var(--pair-pad-x); border-bottom: 1px solid var(--color-rule); }
.tool-body { display: grid; gap: var(--s-12); padding: var(--s-12); }
.tool-stories .tool-rows { margin-top: var(--s-8); }
.cell code { font-family: var(--font-mono); font-size: var(--caption-size); line-height: 20px; overflow-wrap: anywhere; }
.ep-cat .kv { margin-top: var(--s-8); grid-template-columns: 56px minmax(0, 1fr); }

/* ---------- SocialScrape object style ----------
   Opt-in per page with <body class="ss-round">. Frames (rails, cells, rows, bands)
   stay square and flat. Floating objects are rounded and sit on a solid edge,
   and each inner radius is smaller than the one around it. */
.ss-round {
  --r-action: 10px;      /* buttons */
  --r-action-lg: 12px;   /* hero and closing buttons */
  --r-nav: 10px;         /* nav items, inputs, boxes inside a window */
  --r-tab: 7px;          /* tabs and small controls */
  --r-panel: 12px;       /* cards */
  --r-code: 14px;        /* code windows */
  --r-card-lg: 16px;     /* the closing card */
  --r-float: 16px;       /* the hero window */
  --r-pill: 999px;       /* tags and chips */
  --color-ring: #d9d9d9;       /* outline and edge of white objects */
  --color-ring-hover: #c4c4c4;
  --color-edge-deep: #0a2b29;  /* edge under the spring button */
  --color-edge-sea: #0a6a58;   /* edge under objects on the green band */
  --edge-btn: 4px;
  --edge-card: 5px;
  --edge-window: 6px;
  --edge-hero: 8px;
  --ring: 0 0 0 1.5px var(--color-ring);
}

/* buttons: a face on an edge; they rise on hover and press down on click */
.ss-round .btn-primary { box-shadow: 0 var(--edge-btn) 0 var(--color-edge-deep); }
.ss-round .btn-primary::after { display: none; }
.ss-round .btn-secondary { background: var(--color-surface); box-shadow: inset var(--ring), 0 var(--edge-btn) 0 var(--color-ring); }
.ss-round .btn-white { box-shadow: 0 var(--edge-btn) 0 var(--color-edge-sea); }
.ss-round .hero .actions .btn, .ss-round .closing-cell .btn, .ss-round .accent-band .btn { border-radius: var(--r-action-lg); }
@media (hover: hover) {
  .ss-round .btn-primary:hover { background: var(--color-action-hover); box-shadow: 0 calc(var(--edge-btn) + 1px) 0 var(--color-edge-deep); transform: translateY(-1px); }
  .ss-round .btn-secondary:hover { background: var(--color-surface); box-shadow: inset 0 0 0 1.5px var(--color-ring-hover), 0 calc(var(--edge-btn) + 1px) 0 var(--color-ring-hover); transform: translateY(-1px); }
  .ss-round .btn-white:hover { background: var(--color-white); box-shadow: 0 calc(var(--edge-btn) + 1px) 0 var(--color-edge-sea); transform: translateY(-1px); }
}
.ss-round .btn-primary:active { box-shadow: 0 1px 0 var(--color-edge-deep); transform: translateY(calc(var(--edge-btn) - 1px)); }
.ss-round .btn-secondary:active { background: var(--color-surface); box-shadow: inset var(--ring), 0 1px 0 var(--color-ring); transform: translateY(calc(var(--edge-btn) - 1px)); }
.ss-round .btn-white:active { box-shadow: 0 1px 0 var(--color-edge-sea); transform: translateY(calc(var(--edge-btn) - 1px)); }
.ss-round .btn:disabled { transform: none; }

/* windows and cards: white, outlined, on a grey edge */
.ss-round .instrument-halo { border-radius: calc(var(--r-float) + var(--s-8)); padding-bottom: calc(var(--s-8) + var(--edge-hero)); }
.ss-round .instrument { box-shadow: var(--ring), 0 var(--edge-hero) 0 var(--color-ring); }
.ss-round .card { box-shadow: var(--ring), 0 var(--edge-card) 0 var(--color-ring); }
.ss-round .code-panel { border: 0; border-radius: var(--r-code); background: var(--color-surface); box-shadow: var(--ring), 0 var(--edge-window) 0 var(--color-ring); overflow: hidden; }
.ss-round .closing-cell { border: 0; border-radius: var(--r-card-lg); background: var(--color-surface); box-shadow: var(--ring), 0 var(--edge-window) 0 var(--color-ring); }
.ss-round .chip, .ss-round .sample-tag { border-radius: var(--r-pill); padding-inline: 10px; }
.ss-round .bubble { border-radius: var(--r-nav); }

/* ---------- SocialScrape section tags, tiles and dark code ----------
   Opt-in per page: <body class="ss-labels ss-codedark">. */
.ss-labels { --font-label: "Geist", var(--font-sans); }
.ss-labels .chapter.is-tag { padding: var(--s-32) var(--s-28) var(--s-16); font-family: var(--font-label); font-size: var(--label-size); line-height: 20px; }
.ss-labels .chapter.is-tag::before { display: none; }
.ss-labels .chapter.is-tag .ch-label { text-transform: none; font-weight: 600; color: var(--color-accent-ink); }

@media (max-width: 767px) { .ss-labels .chapter.is-tag { padding: var(--s-24) var(--s-20) var(--s-12); } }

.ss-codedark {
  --code-bg: #0a2c2a;
  --code-edge: #061d1c;
  --code-text: #e3f1ed;
  --code-muted: rgba(255, 255, 255, 0.62);
  --code-line: rgba(255, 255, 255, 0.08);
  --code-fill: rgba(255, 255, 255, 0.1);
  --code-str: #a7f3d0;
  --code-key: #6ee7c8;
}
.ss-codedark .code-panel, .ss-codedark .ins-output { background: var(--code-bg); color: var(--code-text); border-color: transparent; }
.ss-codedark .code-panel { box-shadow: 0 var(--edge-window, 6px) 0 var(--code-edge); }
.ss-codedark .code-bar, .ss-codedark .ins-output-bar { border-bottom-color: var(--code-line); }
.ss-codedark .code-panel pre, .ss-codedark .ins-output pre { color: var(--code-text); }
.ss-codedark .code-panel .tok-str, .ss-codedark .ins-output .tok-str { color: var(--code-str); }
.ss-codedark .code-panel .tok-lit, .ss-codedark .ins-output .tok-lit { color: var(--code-key); }
.ss-codedark .code-panel .status-ok, .ss-codedark .ins-output .status-ok { color: var(--code-text); }
.ss-codedark .code-panel .sample-tag, .ss-codedark .ins-output .sample-tag { background: var(--code-fill); color: var(--code-muted); }
.ss-codedark .ins-output .chip { background: var(--code-fill); color: var(--code-key); }
.ss-codedark .ins-output .skeleton i { background: var(--code-fill); }
.ss-codedark .code-panel .tab { color: var(--code-muted); }
.ss-codedark .code-panel .tab[aria-selected="true"] { background: var(--code-fill); color: var(--color-white); }
.ss-codedark .code-panel .copy-btn { background: var(--color-action); color: var(--color-action-ink); }
.ss-codedark .code-panel :focus-visible, .ss-codedark .ins-output :focus-visible { outline-color: var(--color-white); }
@media (hover: hover) {
  .ss-codedark .code-panel .tab:hover { color: var(--color-white); }
  .ss-codedark .code-panel .copy-btn:hover { background: var(--color-action-hover); color: var(--color-action-ink); }
}

/* ---------- Dark theme ----------
   Switched with data-theme="dark" on <html> (the toggle in the header sets it).
   Neutral charcoal grounds; green stays an accent. Contrast is set for this
   theme on its own, not derived from the light one. */
html[data-theme="dark"] {
  color-scheme: dark;
  --color-canvas: #121314;
  --color-surface: #1c1d20;
  --color-ink: #ededee;
  --color-support: #b4b7bd;
  --color-muted: #9a9da3;
  --color-annotation: #5a5c61;
  --color-rule: #26272b;
  --color-control: rgba(255, 255, 255, 0.06);
  --color-selected: rgba(255, 255, 255, 0.1);
  --color-control-active: rgba(255, 255, 255, 0.14);
  --color-field-edge: rgba(255, 255, 255, 0.14);
  --color-accent: #14c9a0;
  --color-accent-ink: #2ad8b0;
  --color-accent-line: rgba(20, 201, 160, 0.4);
  --color-status: #7da7ff;
  --color-danger: #f0766b;
  --shadow-float: 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-mini: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .ss-round { --color-ring: #2e3034; --color-ring-hover: #3d4045; --color-edge-deep: #0b7a64; }
html[data-theme="dark"] .ss-codedark { --code-bg: #17181a; --code-edge: #2e3034; }
html[data-theme="dark"] .ss-codedark .code-panel { box-shadow: var(--ring), 0 var(--edge-window, 6px) 0 var(--code-edge); }
html[data-theme="dark"] .reg-grid { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='102' height='102'%3E%3Cpath d='M51 0v102M0 51h102' stroke='%2326272b' stroke-width='1'/%3E%3Cpath d='M51 47.5v7M47.5 51h7' stroke='%233a3c41' stroke-width='1'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .reg-square { background: rgba(255, 255, 255, 0.08); }
.mobile-nav-theme { padding-top: var(--s-12); }
.mobile-nav-theme .btn { width: 100%; }

/* ---------- Comparison board (hero-patterns.html) ---------- */
.hero .hero-title { font-size: var(--display-size); line-height: var(--display-line); font-weight: 500; letter-spacing: -0.005em; }
.hero .hero-title span { display: block; white-space: nowrap; }
.board-intro { padding: var(--s-56) var(--s-28) var(--s-40); border-bottom: 1px solid var(--color-rule); }
.board-intro h1 { font-size: var(--heading-size); line-height: var(--heading-line); font-weight: 500; letter-spacing: -0.01em; }
.board-intro p { margin-top: var(--s-12); max-width: 60ch; color: var(--color-support); }
.board-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-4) var(--s-12); padding: var(--s-24) var(--s-28) var(--s-16); }
.board-label b { font-family: var(--font-label, var(--font-sans)); font-size: var(--body-size); line-height: 1.5; font-weight: 600; color: var(--color-accent-ink); }
.board-label span { font-size: var(--label-size); line-height: 20px; color: var(--color-muted); }
@media (max-width: 767px) { .board-intro, .board-label { padding-inline: var(--s-20); } }

/* ---------- Falling chips ----------
   Platform tiles scattered down the sides of a hero, tilted as if caught mid-fall.
   --x and --rest place each tile and --tilt turns it. Each one floats in place:
   --bob is how far it drifts up and down, --rock how far it turns either way.
   With reduced motion they hold still. */
.fall { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; }
.fall-chip {
  position: absolute; top: calc(var(--rest) * 100%); left: var(--x); width: var(--size); height: var(--size);
  display: grid; place-items: center; border-radius: 28%;
  /* --chip, --chip-edge and --chip-ink give a tile its platform's colour, a darker edge and
     the logo colour. Without them the tile is the plain surface with a grey outline. */
  background: var(--chip, var(--color-surface));
  box-shadow: 0 0 0 1.5px var(--chip-edge, var(--color-ring, #d9d9d9)), 0 5px 0 var(--chip-edge, var(--color-ring, #d9d9d9));
  transform: rotate(var(--tilt));
}
.fall-chip { animation: chip-float var(--dur, 6s) ease-in-out var(--delay, 0s) infinite alternate; }
@keyframes chip-float {
  from { transform: translateY(calc(var(--bob, 8px) * -1)) rotate(calc(var(--tilt) - var(--rock, 3deg))); }
  to { transform: translateY(var(--bob, 8px)) rotate(calc(var(--tilt) + var(--rock, 3deg))); }
}
.fall-chip svg { display: block; width: 52%; height: 52%; fill: var(--chip-ink, var(--color-ink)); }
/* tiles in the logo's three greens; a tile without one of these stays white */
.fall-chip.is-spring { --chip: #14c9a0; --chip-edge: #0e8a72; --chip-ink: #0f3d3a; }
.fall-chip.is-sea { --chip: #0e8a72; --chip-edge: #0a6a58; --chip-ink: #ffffff; }
.fall-chip.is-deep { --chip: #0f3d3a; --chip-edge: #0a2b29; --chip-ink: #ffffff; }
@media (max-width: 1199px) { .fall { display: none; } }
/* a hero whose headline lines are long: smaller steps so it still sets on two lines on a phone */
/* same size and weight as the other heroes on desktop; only the steps below
   desktop differ, because these lines are long and must still set on two lines */
.hero.is-long h1 { font-size: clamp(20px, 6vw, var(--display-max, 60px)); }
/* a headline line set back in grey, so the button is the only green in the middle of the hero
   (option E on the headline options board) */
.hero h1 .dim { color: var(--color-support); }
/* on load the hero comes in from the top down: headline, text, buttons, code windows,
   then the tiles one after another. Reduced motion shows everything in place. */
.ss-round .hero .rails > * { animation: hero-in 400ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ss-round .hero .rails > :nth-child(2) { animation-delay: 60ms; }
.ss-round .hero .rails > :nth-child(3) { animation-delay: 120ms; }
.ss-round .hero .rails > :nth-child(4) { animation-delay: 180ms; }
.ss-round .hero .rails > :nth-child(5) { animation-delay: 240ms; }
.ss-round .hero .rails > :nth-child(n+6) { animation-delay: 300ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ss-round .hero .fall-chip {
  animation: tile-in 400ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(260ms + var(--i, 0) * 40ms) both,
    chip-float var(--dur, 6s) ease-in-out var(--delay, 0s) infinite alternate;
}
.ss-round .hero .fall-chip:nth-child(2) { --i: 2; }
.ss-round .hero .fall-chip:nth-child(3) { --i: 4; }
.ss-round .hero .fall-chip:nth-child(4) { --i: 6; }
.ss-round .hero .fall-chip:nth-child(5) { --i: 1; }
.ss-round .hero .fall-chip:nth-child(6) { --i: 3; }
.ss-round .hero .fall-chip:nth-child(7) { --i: 5; }
.ss-round .hero .fall-chip:nth-child(8) { --i: 7; }
@keyframes tile-in { from { opacity: 0; scale: 0.7; } to { opacity: 1; scale: 1; } }
.hero.is-long .hero-support { max-width: 420px; text-wrap: balance; }
.hero.is-long .rails { padding: 96px 0 112px; }
@media (max-width: 767px) { .hero.is-long .rails { padding: var(--s-56) 0 72px; } }

/* ---------- Hero code windows ----------
   Two compact windows under the hero actions: the request, and the response beside it. */
.hero-code { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-16); max-width: 880px; margin: var(--s-32) auto 0; text-align: left; }
.hero-code .code-panel { display: flex; flex-direction: column; min-width: 0; }
.hero-code .code-bar { min-height: 40px; padding: var(--s-4) var(--s-12); }
.hero-code .code-body { flex: 1 1 auto; padding: var(--s-12) var(--s-16); }
.hero-code pre, .hero-code code { font-size: var(--chapter-size); line-height: 20px; }
.hero-code .tab { padding-inline: var(--s-8); }
.hero-code .skeleton { padding: var(--s-16); }
.code-title { margin-right: var(--s-4); font-size: var(--caption-size); line-height: 20px; font-weight: 500; }
.code-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-12); margin-top: auto; padding: var(--s-4) var(--s-16) var(--s-16); }
.code-note { font-size: var(--caption-size); line-height: 20px; color: var(--color-muted); }
.ss-codedark .code-panel .code-title { color: var(--code-text); }
.ss-codedark .code-panel .code-note { color: var(--code-muted); }
.ss-codedark .code-panel .skeleton i { background: var(--code-fill); }
.ss-codedark .code-panel .btn-primary { box-shadow: 0 var(--edge-btn, 4px) 0 #0b7a64; }
@media (max-width: 767px) { .hero-code { grid-template-columns: minmax(0, 1fr); margin-top: var(--s-24); } }

/* ---------- Section marks ----------
   A small raised chip and the section's name, set where the heading starts.
   Replaces the separate label band above each section. */
.sec-mark { display: inline-flex; align-items: center; gap: var(--s-8); font-size: var(--label-size); line-height: 20px; font-weight: 500; color: var(--color-accent-ink); }
.sec-mark i { display: block; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--color-spark); box-shadow: 0 2px 0 var(--color-accent-ink); }
.pair-head .sec-mark { padding-top: var(--s-12); }
.accent-band .sec-mark { margin-bottom: var(--s-16); padding: var(--s-4) var(--s-12); border-radius: 999px; background: var(--color-white); color: var(--color-action-ink); }
@media (max-width: 767px) { .pair-head .sec-mark { padding-top: 0; } }

/* ---------- Hero motion ideas (hero-motion.html) ----------
   One looping animation per hero, chosen with data-motion on the hero section.
   The loops that need script only run while their hero is on screen; with reduced
   motion every hero simply shows its resting state. */
.hero.is-long .hero-title { font-size: clamp(20px, 6vw, var(--display-max, 60px)); }
.hero.is-long .rails > :nth-child(5) { animation-delay: 240ms; }
.fall-chip { color: var(--chip-ink, var(--color-ink)); }
.is-typing { box-shadow: 2px 0 0 var(--color-spark); }
.status-ok.is-pop { display: inline-block; color: var(--color-accent-ink); animation: ok-pop 900ms cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes ok-pop { 0% { transform: scale(0.8); opacity: 0; } 30% { transform: scale(1.14); opacity: 1; } 55%, 100% { transform: none; opacity: 1; } }

/* A. live request and response: the response dims while the next one loads */
[data-motion="live"] .code-body pre { transition: opacity 180ms ease; }
[data-motion="live"] .code-body.is-loading pre { opacity: 0.25; }
[data-motion="live"] .status-ok { transition: opacity 180ms ease; }
[data-motion="live"] .status-ok.is-wait { opacity: 0; }

/* C. signals on the grid: dashes that ride the grid lines and fade with the grid */
.grid-pulses {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 46% 60% at 50% 46%, transparent 0, transparent 40%, #000 100%);
  mask-image: radial-gradient(ellipse 46% 60% at 50% 46%, transparent 0, transparent 40%, #000 100%);
}
.grid-pulses i { position: absolute; display: block; opacity: 0; border-radius: 2px; }
.grid-pulses .px { top: calc(50px + var(--row) * 102px); left: 0; width: 72px; height: 2px; background: linear-gradient(90deg, transparent, var(--color-spark)); animation: pulse-right var(--dur, 8s) linear var(--delay, 0s) infinite; }
.grid-pulses .px.is-rtl { left: auto; right: 0; background: linear-gradient(270deg, transparent, var(--color-spark)); animation-name: pulse-left; }
.grid-pulses .py { top: 0; left: calc(50% + var(--col) * 102px - 1px); width: 2px; height: 72px; background: linear-gradient(180deg, transparent, var(--color-spark)); animation: pulse-down var(--dur, 9s) linear var(--delay, 0s) infinite; }
@keyframes pulse-right { 0% { transform: translateX(-72px); opacity: 1; } 60% { transform: translateX(46vw); opacity: 1; } 61%, 100% { transform: translateX(46vw); opacity: 0; } }
@keyframes pulse-left { 0% { transform: translateX(72px); opacity: 1; } 60% { transform: translateX(-46vw); opacity: 1; } 61%, 100% { transform: translateX(-46vw); opacity: 0; } }
@keyframes pulse-down { 0% { transform: translateY(-72px); opacity: 1; } 60% { transform: translateY(900px); opacity: 1; } 61%, 100% { transform: translateY(900px); opacity: 0; } }

/* D. tiles send requests: a small chip flies from a tile to the nearest code window */
.send-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; z-index: 0; }
.send-dot { position: absolute; top: 0; left: 0; display: block; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 4px; background: var(--color-spark); box-shadow: 0 2px 0 var(--color-accent-ink); will-change: transform; }
.code-panel.is-hit { animation: panel-hit 700ms ease-out; }
@keyframes panel-hit { from { outline: 2px solid var(--color-spark); outline-offset: 2px; } to { outline: 2px solid transparent; outline-offset: 8px; } }

/* E. endpoint ticker: a request typed out, then its answer */
.ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4) var(--s-16); min-height: 16px; margin: var(--s-32) auto 0; font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; color: var(--color-muted); }
.ticker .tick-ok { color: var(--color-accent-ink); opacity: 0; transition: opacity 200ms ease; }
.ticker.is-ok .tick-ok { opacity: 1; }

/* F. platform strip: two copies of the row slide left by one row's width, then repeat */
.plat-strip {
  display: flex; overflow: hidden; max-width: 880px; margin: var(--s-40) auto 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.plat-track { display: flex; flex: none; align-items: center; gap: var(--s-32); margin: 0; padding: 0 var(--s-32) 0 0; animation: strip-move 80s linear infinite; }
.plat-track li { display: flex; align-items: center; gap: var(--s-8); white-space: nowrap; font-size: var(--label-size); line-height: 20px; color: var(--color-muted); }
.plat-track svg { display: block; flex: none; width: 18px; height: 18px; fill: currentColor; }
.plat-strip:hover .plat-track { animation-play-state: paused; }
@keyframes strip-move { to { transform: translateX(-100%); } }

/* ---------- What developers build ----------
   A list of builds on the left; the one that is picked shows its calls on a raised card
   that sits on a grey ground, 24px off every line. On phones the list becomes a row
   that scrolls sideways above the card. */
.build-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-24); padding: var(--s-88) var(--s-28) var(--s-40); border-bottom: 1px solid var(--color-rule); }
.build-head h2 { margin-top: 0; font-size: var(--heading-size); line-height: var(--heading-line); font-weight: 500; letter-spacing: -0.01em; }
.build { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-bottom: 1px solid var(--color-rule); }
.build-list { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-24); }
.build-tab { display: block; width: 100%; padding: var(--s-12) var(--s-16); border: 0; border-radius: var(--r-panel, 12px); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color var(--t-base) var(--ease); }
.build-tab[aria-selected="true"] { background: var(--color-selected); }
.build-name { display: block; font-size: var(--body-size); line-height: 1.5; font-weight: 500; }
.build-line { display: block; font-size: var(--label-size); line-height: 20px; color: var(--color-muted); }
.build-stage { padding: var(--s-24); border-left: 1px solid var(--color-rule); background: var(--color-selected); }
.build-card { display: flex; flex-direction: column; gap: var(--s-24); height: 100%; padding: var(--s-32); border-radius: var(--r-code, 14px); background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-ring, #d9d9d9), 0 var(--edge-window, 6px) 0 var(--color-ring, #d9d9d9); }
.build-card h3 { font-size: var(--feature-size); line-height: 1.4; font-weight: 500; letter-spacing: -0.005em; }
.build-job { margin-top: calc(var(--s-16) * -1); max-width: 52ch; color: var(--color-support); }
.build-label { display: block; margin-bottom: var(--s-8); font-size: var(--caption-size); line-height: 20px; font-weight: 500; color: var(--color-muted); }
.build-calls li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--s-12); align-items: baseline; padding: var(--s-12) 0; border-top: 1px solid var(--color-rule); }
.build-calls li:last-child { border-bottom: 1px solid var(--color-rule); }
.build-get { font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 20px; color: var(--color-accent-ink); }
.build-calls code { font-size: var(--caption-size); line-height: 20px; overflow-wrap: anywhere; }
.build-what { grid-column: 2; font-size: var(--caption-size); line-height: 20px; color: var(--color-muted); }
.build-cost { grid-column: 3; grid-row: 1; font-size: var(--caption-size); line-height: 20px; color: var(--color-muted); white-space: nowrap; }
.build-cols { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.build-more { display: inline-flex; align-items: center; gap: var(--s-4); align-self: flex-start; margin-top: auto; font-size: var(--label-size); line-height: 20px; font-weight: 450; color: var(--color-accent-ink); --od-icon-size: 14px; }
@media (hover: hover) {
  .build-tab:hover { background: var(--color-selected); }
  .build-more:hover { text-decoration: underline; }
}
@media (max-width: 899px) {
  .build { grid-template-columns: minmax(0, 1fr); }
  .build-list { flex-direction: row; overflow-x: auto; padding: var(--s-16) var(--s-20); border-bottom: 1px solid var(--color-rule); }
  .build-tab { flex: none; width: auto; padding: var(--s-8) var(--s-12); }
  .build-line { display: none; }
  .build-name { font-size: var(--label-size); line-height: 20px; white-space: nowrap; }
  .build-stage { border-left: 0; padding: var(--s-16); }
  .build-card { padding: var(--s-24) var(--s-20); }
  .build-head { padding: var(--s-56) var(--s-20) var(--s-32); }
}

/* ---------- Section mark rows ----------
   A section with no heading block of its own shows its mark on a row above its content. */
.sec-row { padding: var(--s-56) var(--s-28) var(--s-20); border-bottom: 1px solid var(--color-rule); }
@media (max-width: 767px) { .sec-row { padding: var(--s-40) var(--s-20) var(--s-16); } }

/* ---------- Site nav: sliding pill and hover menus ----------
   The original SocialScrape nav. One pill slides under the tab you point at. APIs, Use cases
   and Resources open a panel on hover; the panel resizes and slides when you move between them.
   Below 1024px the tabs give way to the phone menu, so none of this shows. */
.site-header {
  --nav-pill: rgba(15, 61, 58, 0.07); --mm-line: rgba(15, 61, 58, 0.1);
  --mm-tile: #e8f8f3; --mm-ink: #0e8a72; --mm-tile-on: #0f3d3a; --mm-hover: #e8f8f3; --mm-foot: #fafcfb;
}
html[data-theme="dark"] .site-header {
  --nav-pill: rgba(255, 255, 255, 0.1); --mm-line: rgba(255, 255, 255, 0.1);
  --mm-tile: rgba(255, 255, 255, 0.07); --mm-ink: var(--color-spark); --mm-tile-on: #0e8a72; --mm-hover: rgba(255, 255, 255, 0.06); --mm-foot: rgba(255, 255, 255, 0.03);
}
.nav { position: relative; gap: 4px; }
.nav > .nav-item, .mm-t {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 8px 12px;
  border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; line-height: 20px; font-weight: 500;
  color: var(--color-muted); cursor: pointer; transition: color 0.2s ease;
}
.nav > .nav-item:hover, .nav > .nav-item:focus-visible, .nav > .nav-item[aria-current="page"], .mm-t:hover, .mm-t:focus-visible, .mm-t[aria-expanded="true"] { background: transparent; color: var(--color-ink); }
.mm-t svg { display: block; width: 12px; height: 12px; opacity: 0.8; transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.mm-t[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-pill {
  position: absolute; top: 50%; left: 0; width: 0; height: 36px; margin-top: -18px; border-radius: 999px; background: var(--nav-pill);
  opacity: 0; pointer-events: none; z-index: 0;
  transition: left 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.15s ease-out;
}
.nav-pill.on, .site-header.mm-open .nav-pill { opacity: 1; }
.nav-pill.no-slide { transition: opacity 0.15s ease-out; }

.mm { display: none; }
@media (min-width: 1024px) {
  .mm {
    display: block; position: absolute; top: calc(100% - 6px); left: 50%; width: max-content; translate: -50% 0; z-index: 70;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px) scale(0.985); transform-origin: 50% 0;
    transition: opacity 0.18s ease-out, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
  }
  .mm::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .mm.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity 0.18s ease-out, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
  .mm-box {
    position: relative; overflow: hidden; width: 820px; max-width: calc(100vw - 32px); background: var(--color-surface); border-radius: 16px;
    box-shadow: 0 0 0 1px var(--mm-line), 0 24px 60px -24px rgba(5, 30, 28, 0.45), 0 8px 20px -12px rgba(5, 30, 28, 0.25);
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1), width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .mm-box.no-anim { transition: none; }
  .mm-p {
    position: absolute; top: 0; left: 0; width: min(var(--pw), calc(100vw - 32px)); opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(var(--dx, 0)); color: var(--color-ink); text-align: left;
    transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
  }
  .mm-p[data-mm="apis"] { --pw: 820px; }
  .mm-p[data-mm="use"] { --pw: 700px; }
  .mm-p[data-mm="res"] { --pw: 500px; }
  .mm-p.on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity 0.22s ease 0.04s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
  .mm-p.out { visibility: visible; opacity: 0; transform: translateX(var(--dx, 0)); transition: opacity 0.14s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
  .mm-cols { display: grid; gap: 8px 24px; padding: 24px 28px 18px; }
  .mm-cols.c3 { grid-template-columns: auto auto auto; justify-content: space-between; }
  .mm-cols.c2w { grid-template-columns: 2fr 1fr; }
  .mm-cols.c2 { grid-template-columns: 1fr 1fr; }
  .mm-h { margin: 0 0 8px 10px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--color-muted); }
  .mm-col ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
  .mm-col ul.g2 { grid-template-columns: 1fr 1fr; column-gap: 8px; }
  .mm-i { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--color-ink); text-decoration: none; transition: background-color 0.15s ease; }
  .mm-i:hover, .mm-i:focus-visible { background: var(--mm-hover); }
  .mm-i .ptile, .mm-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--mm-tile); color: var(--mm-ink); transition: background-color 0.15s ease, color 0.15s ease; }
  .mm-i .ptile svg { display: block; width: 16px; height: 16px; fill: currentColor; }
  .mm-ic svg { display: block; }
  .mm-i:hover .ptile, .mm-i:hover .mm-ic { background: var(--mm-tile-on); color: #fff; }
  .mm-tx { display: flex; flex-direction: column; min-width: 0; }
  .mm-tt { font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; }
  .mm-sub { font-size: 13px; line-height: 18px; color: var(--color-muted); }
  .mm-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 28px; border-top: 1px solid var(--color-rule); background: var(--mm-foot); font-size: 13px; line-height: 20px; }
  .mm-more, .mm-mail { display: inline-flex; align-items: center; gap: 6px; color: var(--color-accent-ink); font-weight: 500; text-decoration: none; }
  .mm-mail { color: var(--color-muted); font-weight: 400; }
  .mm-more svg { transition: transform 0.2s ease; }
  .mm-more:hover svg { transform: translateX(3px); }
  .mm-more:hover, .mm-mail:hover { color: var(--color-ink); }
  .mm.open .mm-p.on [data-r] { animation: mm-row 0.38s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i) * 18ms); }
}
@keyframes mm-row { from { opacity: 0; transform: translateY(5px); } }

/* ---------- Scroll reveals ----------
   The script marks each piece .rv (hidden, set a little low) and, when its block scrolls
   into view, marks the block .rv-on so the pieces rise and fade in. --rv staggers them. */
.rv { opacity: 0; transform: translateY(18px); }
.rv-on .rv, .rv.rv-on {
  opacity: 1; transform: none;
  transition: opacity 500ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--rv, 0) * 45ms);
}

/* ---------- The band on the page colour ----------
   Same band, but the ground is the page and only the dot pattern is green. */
.accent-band.is-plain { background: none; color: var(--color-ink); border-bottom: 1px solid var(--color-rule); }
.accent-band.is-plain p { color: var(--color-support); }
.accent-band.is-plain .sec-mark { padding: 0; border-radius: 0; background: none; color: var(--color-accent-ink); }
.accent-band.is-plain :focus-visible { outline-color: var(--color-ink); }

/* ---------- Roundup pages: full tool write-ups ----------
   Used by the alternative details page so the deployed copy fits as written:
   a tool's name is an h2, its two lists sit under h3s, and its facts stack. */
.ep-cat h2 { font-size: var(--subheading-size); line-height: var(--subheading-line); font-weight: 500; letter-spacing: -0.01em; }
.split-body h3 { font-size: var(--body-size); line-height: 1.5; font-weight: 500; margin-bottom: var(--s-12); }
.kv.is-stack, .ep-cat .kv.is-stack { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: var(--s-8); }
.kv.is-stack dd { margin-bottom: var(--s-12); color: var(--color-support); }
.shot { margin-top: var(--s-12); }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--r-panel, 12px); box-shadow: 0 0 0 1px var(--color-ring, #d9d9d9), 0 var(--edge-card, 4px) 0 var(--color-ring, #d9d9d9); }
.shot figcaption { margin-top: var(--s-12); font-size: var(--caption-size); line-height: 20px; color: var(--color-muted); }
.pc-label { margin: var(--s-16) 0 var(--s-8); font-size: var(--label-size); line-height: 20px; font-weight: 500; color: var(--color-ink); }
.split-body h3 + .pc-label { margin-top: 0; }
.more-links { font-size: var(--label-size); line-height: 20px; }
.more-links a, .nrow-t a, .tbl a { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.nrow-t { display: block; font-size: var(--body-size); line-height: 1.5; font-weight: 500; }
.hero-meta a.chip { text-decoration: none; }
h2.sec-mark { margin: 0; }

/* ---------- Tool write-up (alternative details page) ----------
   One tool, top to bottom: its name and what it is best for; its homepage picture on a grey
   ground beside the description and a ruled list of facts; then three columns of lists
   (why pick it, pros, cons); then its links. */
.tool-head { display: grid; gap: var(--s-12); padding: var(--s-64) var(--s-28) var(--s-32); border-bottom: 1px solid var(--color-rule); }
.tool-head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; font-weight: 500; letter-spacing: -0.01em; }
.tool-best { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-12); font-size: var(--feature-size); line-height: 1.4; letter-spacing: -0.005em; color: var(--color-support); }
.tool-best .chip { flex: none; }
.tool-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-bottom: 1px solid var(--color-rule); }
.tool-shot { display: grid; align-content: center; gap: var(--s-12); margin: 0; padding: var(--s-28); background: var(--color-selected); border-right: 1px solid var(--color-rule); }
.tool-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-panel, 12px); box-shadow: 0 0 0 1px var(--color-ring, #d9d9d9), 0 var(--edge-window, 6px) 0 var(--color-ring, #d9d9d9); }
.tool-shot figcaption { padding-top: var(--s-4); font-size: var(--caption-size); line-height: 20px; color: var(--color-muted); }
.tool-info { display: grid; gap: var(--s-24); align-content: center; min-width: 0; padding: var(--s-40); }
.tool-lead { max-width: 56ch; font-size: var(--feature-size); line-height: 1.5; letter-spacing: -0.005em; color: var(--color-ink); }
.tool-facts { display: grid; margin: 0; }
.tool-facts > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--s-16); padding: var(--s-12) 0; border-top: 1px solid var(--color-rule); font-size: var(--label-size); line-height: 20px; }
.tool-facts > div:last-child { border-bottom: 1px solid var(--color-rule); }
.tool-facts dt { font-weight: 500; color: var(--color-ink); }
.tool-facts dd { margin: 0; letter-spacing: 0.01em; color: var(--color-support); }
.tool-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--color-rule); }
.tool-list { min-width: 0; padding: var(--s-32) var(--s-28) var(--s-40); }
.tool-list + .tool-list { border-left: 1px solid var(--color-rule); }
.tool-list.is-wide { grid-column: span 2; }
.tool-list h3 { margin-bottom: var(--s-20); font-size: var(--body-size); line-height: 1.5; font-weight: 500; }
/* the gap equals two cell paddings, so Cons lines up with where a third column would start */
.tool-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-24) var(--s-56); }
.tool-pc .pc-label { margin: 0 0 var(--s-12); }
.pc-label.is-pro { color: var(--color-accent-ink); }
.pc-label.is-con { color: var(--color-muted); }
.tool-more { padding: var(--s-16) var(--s-28); border-bottom: 1px solid var(--color-rule); font-size: var(--label-size); line-height: 20px; color: var(--color-muted); }
.tool-more a { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .tool-body { grid-template-columns: minmax(0, 1fr); }
  .tool-shot { border-right: 0; border-bottom: 1px solid var(--color-rule); }
  .tool-lists { grid-template-columns: minmax(0, 1fr); }
  .tool-list.is-wide { grid-column: auto; }
  .tool-list + .tool-list { border-left: 0; border-top: 1px solid var(--color-rule); }
}
@media (max-width: 767px) {
  .tool-head { padding: var(--s-40) var(--s-20) var(--s-24); }
  .tool-shot { padding: var(--s-16); }
  .tool-info, .tool-list { padding-inline: var(--s-20); }
  .tool-more { padding-inline: var(--s-20); }
  .tool-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tool-pc { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Section mark above the heading ----------
   The heading block as one column: the section's mark sits on its own line above the heading
   instead of in a column to its left. */
.pair-head.is-stacked .pair-head-in { grid-template-columns: minmax(0, 1fr); gap: var(--s-16); }
.pair-head.is-stacked .sec-mark { padding-top: 0; }

/* ---------- Floating tiles drawn in dots ----------
   The tile has no face of its own: a canvas, a little larger than the tile, draws it in the
   dot pattern with a faint halo of small dots around it. Placement, float and arrival are
   the same as for the solid tiles. */
.fall-chip.is-dots { background: none; box-shadow: none; border-radius: 0; }
.fall-chip.is-dots canvas { position: absolute; top: -16%; left: -16%; display: block; width: 132%; height: 132%; }

/* ---------- Dot tiles as a readout ----------
   The dot tiles hold still and sit square to the grid. Thin corner marks frame each one and a
   small label under it names its API path. The movement is drawn inside the canvas (app.js):
   on load the tile's dots appear in a scattered order and grow to size, then it holds still. */
.ss-round .hero .fall-chip.is-dots { animation: none; transform: none; }
.fall-chip.is-dots::before, .fall-chip.is-still::before {
  content: ""; position: absolute; top: -12%; left: -12%; width: 124%; height: 124%; pointer-events: none;
  --c: var(--color-muted); --l: 9px; --t: 1px; opacity: 0.7;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat;
}
.tile-tag { position: absolute; top: calc(112% + 8px); left: -12%; font-family: var(--font-mono); font-size: 11px; line-height: 16px; white-space: nowrap; color: var(--color-muted); }
html[data-theme="dark"] .tile-tag { color: var(--color-muted); }

/* ---------- Large still tiles ----------
   Solid tiles down both sides of the homepage hero, the left side a mirror of the right: square to
   the grid, not floating. Nothing moves across the page on load. Each spot is marked out first: the
   corner marks close in and an empty outline of the tile appears. The tile's colour then fills the
   outline from the bottom up, the logo pops in, the raised edge grows under it and the label wipes
   in. Matching left and right tiles go together, one row after another from the top (--row). */
.ss-round .hero .fall-chip.is-still {
  --edge: var(--chip-edge, var(--color-ring, #d9d9d9)); --fill: var(--chip, var(--color-surface)); --row: 0; --at: calc(220ms + var(--row) * 150ms);
  transform: none;
  background: linear-gradient(var(--fill), var(--fill)) bottom / 100% 100% no-repeat;
  box-shadow: 0 0 0 1.5px var(--edge), 0 5px 0 var(--edge);
  animation: tile-fill 1150ms linear var(--at) both;
}
.ss-round .hero .fall-chip.is-still:nth-child(4n+2) { --row: 1; }
.ss-round .hero .fall-chip.is-still:nth-child(4n+3) { --row: 2; }
.ss-round .hero .fall-chip.is-still:nth-child(4n+4) { --row: 3; }
@keyframes tile-fill {
  0% { background-size: 100% 0%; box-shadow: 0 0 0 1.5px transparent, 0 0 0 transparent; }
  22% { background-size: 100% 0%; box-shadow: 0 0 0 1.5px var(--edge), 0 0 0 var(--edge); animation-timing-function: cubic-bezier(0.6, 0, 0.2, 1); }
  68% { background-size: 100% 100%; box-shadow: 0 0 0 1.5px var(--edge), 0 0 0 var(--edge); animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1.3); }
  100% { background-size: 100% 100%; box-shadow: 0 0 0 1.5px var(--edge), 0 5px 0 var(--edge); }
}
.ss-round .hero .fall-chip.is-still svg { animation: tile-logo 420ms cubic-bezier(0.2, 0.9, 0.3, 1.2) calc(var(--at) + 640ms) both; }
@keyframes tile-logo { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
.ss-round .hero .fall-chip.is-still::before { animation: tile-marks 420ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--at) both; }
@keyframes tile-marks { from { opacity: 0; transform: scale(1.4); } to { opacity: 0.7; transform: none; } }
.ss-round .hero .fall-chip.is-still .tile-tag { animation: tile-tag 420ms steps(14, end) calc(var(--at) + 900ms) both; }
@keyframes tile-tag { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* ---------- Hover menu contents ----------
   Inside each menu panel: three columns of items (a bare icon, a title and a short line under
   it) and a footer strip with a note on the left and one action on the right. Hover is a grey
   row; the icon turns green. */
.mm-p[data-mm="apis"] { --pw: 720px; }
.mm-p[data-mm="use"] { --pw: 800px; }
.mm-p[data-mm="res"] { --pw: 780px; }
.mx { display: block; }
.mx-main { display: grid; grid-template-columns: var(--mx-grid, repeat(3, minmax(0, 1fr))); gap: 8px 12px; align-content: start; padding: 24px 16px 20px; }
.mx-h { margin: 0 0 8px 12px; font-size: 12px; line-height: 20px; font-weight: 500; color: var(--color-muted); }
.mx-col ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mx-col ul.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
.mx-i { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--color-ink); text-decoration: none; transition: background-color 0.15s ease; }
.mx-i:hover, .mx-i:focus-visible { background: var(--color-control); }
.mx-ic { display: grid; place-items: center; flex: none; width: 20px; height: 20px; color: var(--color-muted); transition: color 0.15s ease; --od-icon-size: 18px; }
.mx-ic svg { display: block; width: 18px; height: 18px; }
.mx-ic svg.pl { width: 16px; height: 16px; fill: currentColor; }
.mx-i:hover .mx-ic { color: var(--color-spark); }
.mx-tx { display: flex; flex-direction: column; min-width: 0; }
.mx-tt { font-size: 14px; line-height: 20px; font-weight: 500; }
.mx-d { font-size: 13px; line-height: 18px; color: var(--color-muted); }
.mx-go svg { transition: transform 0.2s ease; }
.mx-go:hover svg { transform: translateX(3px); }
.mx-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 28px; border-top: 1px solid var(--color-rule); background: rgba(255, 255, 255, 0.025); font-size: 13px; line-height: 20px; color: var(--color-support); }
.mx-foot p { display: flex; align-items: center; gap: 10px; margin: 0; }
.mx-foot p i { display: block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--color-spark); }
.mx-foot p a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
.mx-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--color-ink); text-decoration: none; white-space: nowrap; }

/* ---------- Sign in and sign up ----------
   Two halves: the form on the left with only the logo above it, and a panel on the grid to the
   right showing a sample request and response. On small screens the panel drops away. */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }
.auth-form { display: flex; flex-direction: column; min-width: 0; padding: var(--s-28) clamp(20px, 5vw, 56px) var(--s-40); }
.auth-box { display: grid; gap: var(--s-16); width: 100%; max-width: 384px; margin: auto; padding-block: var(--s-48, 48px); }
.auth-box > [data-auth-main], .auth-box > [data-auth-code] { display: grid; gap: var(--s-16); }
.auth-box > [hidden] { display: none; }
.auth-box h1, .auth-h { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -0.01em; }
.auth-perk { color: var(--color-support); }
.auth-perk b { font-weight: 500; color: var(--color-ink); overflow-wrap: anywhere; }
.auth-opts { display: grid; gap: var(--s-12); margin-top: var(--s-8); }
.auth-opt { justify-content: flex-start; gap: var(--s-12); width: 100%; min-height: 48px; padding: 0 var(--s-16); font-size: 15px; }
.auth-opt svg { display: block; flex: none; width: 20px; height: 20px; }
.auth-opt .chip { margin-left: auto; }
.auth-or { display: flex; align-items: center; gap: var(--s-12); font-size: var(--caption-size); line-height: 20px; color: var(--color-muted); }
.auth-or::before, .auth-or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--color-rule); }
.auth-go { justify-self: stretch; width: 100%; min-height: 48px; }
.form .auth-go { justify-self: stretch; }
.auth-switch, .auth-note { font-size: var(--label-size); line-height: 20px; color: var(--color-support); }
.auth-legal, .auth-sec { font-size: var(--caption-size); line-height: 20px; color: var(--color-muted); }
.auth-switch a, .auth-legal a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-switch a { font-weight: 500; }
.auth-sec { margin-top: var(--s-8); }
.auth-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-8); }
.auth-code input { width: 100%; height: 52px; border: 1px solid var(--color-field-edge); border-radius: var(--r-nav, 10px); background: var(--color-surface); color: var(--color-ink); font: inherit; font-size: 20px; text-align: center; }
.auth-panel { position: relative; display: grid; place-items: center; min-width: 0; overflow: hidden; padding: var(--s-56) var(--s-40); border-left: 1px solid var(--color-rule); }
/* nine tiles of mixed sizes, tilted and scattered in a cluster, with the line under them on two rows.
   Sizes and places are percentages of the cluster's box, so it scales as one piece. */
.auth-show { position: relative; z-index: 1; display: grid; gap: var(--s-40); width: min(100%, 440px); }
.auth-scatter { position: relative; aspect-ratio: 440 / 300; }
.auth-scatter .auth-tile { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: rotate(var(--tilt)); box-shadow: 0 0 0 1.5px var(--chip-edge), 0 6px 0 var(--chip-edge); }
.auth-line { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; }
.auth-line span { display: block; white-space: nowrap; }
.auth-tile {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 28%; background: var(--chip);
  box-shadow: 0 0 0 1px var(--chip-edge), 0 4px 0 var(--chip-edge);
  animation: tile-in 400ms cubic-bezier(0.2, 0.7, 0.2, 1) calc(200ms + var(--i, 0) * 60ms) both;
}
.auth-tile { color: var(--chip-ink); }
.auth-tile svg { display: block; width: 52%; height: 52%; fill: var(--chip-ink); }
.auth-tile.is-line svg { fill: none; stroke: var(--chip-ink); }
.auth-tile.is-spring { --chip: #14c9a0; --chip-edge: #0e8a72; --chip-ink: #0f3d3a; }
.auth-tile.is-sea { --chip: #0e8a72; --chip-edge: #0a6a58; --chip-ink: #ffffff; }
.auth-tile.is-deep { --chip: #0f3d3a; --chip-edge: #0a2b29; --chip-ink: #ffffff; }
@media (max-width: 899px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-panel { display: none; }
}

/* ---------- Platform picker ----------
   Homepage hero: a row of platform logos on top of the code windows. The chosen one is a green
   raised button; the rest are quiet outlines. Picking one switches the request and response to
   that platform (app.js). There are no floating tiles in this hero. */
.pick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: var(--s-40); }
.pick-b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--color-rule); background: none; color: var(--color-muted); cursor: pointer; transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.pick-b svg { width: 20px; height: 20px; fill: currentColor; }
.pick-b:hover { color: var(--color-ink); border-color: var(--color-muted); }
.pick-b[aria-pressed="true"] { background: #14c9a0; border-color: #14c9a0; color: #0f3d3a; box-shadow: 0 3px 0 #0e8a72; transform: translateY(-1px); }
.pick-all { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--color-rule); font-size: var(--caption-size); font-weight: 500; color: var(--color-support); text-decoration: none; }
.pick-all:hover { color: var(--color-ink); border-color: var(--color-muted); }
[data-pick-root] [data-res].is-fresh pre { animation: res-in 520ms ease-out; }
@keyframes res-in { from { opacity: 0.25; } to { opacity: 1; } }

/* side tiles in the picker's style: a quiet outlined square with a grey logo. The tile of the
   platform being shown turns into the green raised button, like the chosen one in the picker.
   No corner marks or path labels. On load each tile simply fades in. */
.ss-round .hero.tiles-pick .fall-chip.is-still {
  --chip-ink: var(--color-muted);
  border-radius: 23%; background: none; box-shadow: 0 0 0 1px var(--color-rule);
  animation: tile-quiet 520ms ease-out var(--at) backwards;
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
.ss-round .hero.tiles-pick .fall-chip.is-still svg { width: 45%; height: 45%; transition: fill 200ms ease; animation-delay: calc(var(--at) + 160ms); }
.ss-round .hero.tiles-pick .fall-chip.is-still.is-on { --chip-ink: #0f3d3a; background: #14c9a0; box-shadow: 0 0 0 1px #14c9a0, 0 4px 0 #0e8a72; transform: translateY(-1px); }
.ss-round .hero.tiles-pick .fall-chip.is-still::before, .ss-round .hero.tiles-pick .fall-chip.is-still .tile-tag { display: none; }
@keyframes tile-quiet { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }

/* dot tiles beside the platform picker: no corner marks or labels, a little dim, and the tile of
   the platform being shown comes up to full strength */
.hero.is-pick .fall-chip.is-dots { opacity: 0.78; transition: opacity 300ms ease; }
.hero.is-pick .fall-chip.is-dots.is-on { opacity: 1; }
.hero.is-pick .fall-chip.is-dots::before { display: none; }

/* tiles in the grid squares: the hero's background grid has 102px squares, with a line through
   the centre of the page and the first line 51px from the top. A tile fills one square exactly,
   named by its column out from the centre (--col) and its row down from the top (--row).
   Its dot pattern runs edge to edge with square corners. */
.fall-chip.is-cell { --size: 102px; top: calc(51px + var(--row) * 102px); left: calc(50% + var(--col) * 102px); }
.fall-chip.is-cell.is-left { left: calc(50% - (var(--col) + 1) * 102px); }
.fall-chip.is-cell canvas { top: 0; left: 0; width: 100%; height: 100%; }
@media (max-width: 1439px) { .fall-chip.is-cell.is-outer { display: none; } }
@media (max-width: 1239px) { .fall-chip.is-cell { display: none; } }

/* ---------- Framed page top (homepage) ----------
   The page's two rail lines run up through the nav and the banner, with a second pair one square
   further out. The banner is a rounded bar set inside the rails. The nav row is one square tall.
   In the hero the grid is drawn as whole 101px squares that line up with the rails: one row of
   squares across the top and two columns down each side, with the middle left clear for the
   headline and code windows. The dot tiles each fill one square. */
.framed {
  --sq: 101px; --line: var(--color-rule);
  --rail-x: max(16px, calc(50% - 556px)); --out-x: calc(50% - 657px);
  --frame-lines:
    linear-gradient(var(--line), var(--line)) left var(--rail-x) top 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) right var(--rail-x) top 0 / 1px 100% no-repeat;
}
@media (min-width: 1340px) {
  .framed {
    --frame-lines:
      linear-gradient(var(--line), var(--line)) left var(--rail-x) top 0 / 1px 100% no-repeat,
      linear-gradient(var(--line), var(--line)) right var(--rail-x) top 0 / 1px 100% no-repeat,
      linear-gradient(var(--line), var(--line)) left var(--out-x) top 0 / 1px 100% no-repeat,
      linear-gradient(var(--line), var(--line)) right var(--out-x) top 0 / 1px 100% no-repeat;
  }
}
.framed .announce-row { padding: 10px var(--s-16); border-bottom: 1px solid var(--color-rule); background: var(--frame-lines); }
.framed .announce { max-width: calc(var(--rails) - 26px); margin: 0 auto; padding: 10px var(--s-16); border-radius: 10px; }
.framed .site-header { background: var(--frame-lines), var(--color-canvas); }
@media (min-width: 1024px) {
  .framed .header-in { height: 100px; padding-inline: 56px; }
}
@media (min-width: 1200px) {
  .framed .hero { min-height: 807px; }
  .framed .hero .rails { padding: 160px 0 40px; }
  .framed .hero .reg-grid {
    left: 50%; width: 1314px; margin-left: -657px; opacity: 1;
    -webkit-mask-image: none; mask-image: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: var(--sq) var(--sq); background-position: 0 100px, 0 0;
  }
  /* the clear middle: nine squares wide, from under the top row to the bottom */
  .framed .hero .reg-grid::after { content: ""; position: absolute; top: 101px; bottom: 0; left: 203px; width: 908px; background: var(--color-canvas); }
  .framed .fall-chip.is-cell { --size: 100px; top: calc(var(--row) * var(--sq)); left: calc(50% + 455px + var(--col) * var(--sq)); }
  .framed .fall-chip.is-cell.is-left { left: calc(50% - 555px - var(--col) * var(--sq)); }
}
@media (max-width: 1339px) { .framed .fall-chip.is-cell.is-outer { display: none; } }

/* ---------- Geist (homepage trial) ----------
   The whole page is set in Geist (the page loads it); code keeps the code font. Geist is drawn a
   little looser than the previous typeface at large sizes, so the hero headline is tightened. */
.font-geist { --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.font-geist .hero h1 { letter-spacing: -0.035em; }

/* ---------- Smaller code windows (homepage hero) ----------
   The pair is narrower and shorter: slightly smaller code, tighter lines and padding, and a
   lower title bar. The request window is the wider of the two so its longest line still fits;
   the response only needs room for short lines. */
.framed .hero-code { max-width: 780px; gap: var(--s-12); }
.framed .hero-code .status-ok, .framed .hero-code .sample-tag { white-space: nowrap; }
@media (min-width: 768px) { .framed .hero-code { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.framed .hero-code .code-bar { min-height: 36px; padding: 3px var(--s-8) 3px var(--s-12); }
.framed .hero-code .code-body { padding: 10px var(--s-12); }
.framed .hero-code pre, .framed .hero-code code { font-size: 11.5px; line-height: 18px; }

/* ---------- Quieter outlines (homepage) ----------
   The lines that outline the page (rails, section rules, the hero squares, the cell lines in
   grids) sit closer to the page colour. Code windows and buttons keep their own edges. */
html[data-theme="dark"] .framed { --color-rule: #18191b; }

/* ---------- Scaled-down hero (homepage) ----------
   The headline, supporting line, buttons and code windows are a size smaller and sit closer
   together, and the group is centred top to bottom in the clear middle of the squares, so it
   reads as one compact block in the centre of the page. The squares and tiles do not move. */
.framed .hero { --display-max: 50px; }
.framed .hero h1 + .hero-support { margin-top: var(--s-12); }
.framed .hero.is-long .hero-support { max-width: 400px; font-size: 15px; line-height: 22px; }
.framed .hero .actions { margin-top: var(--s-24); }
@media (min-width: 768px) {
  .framed .hero-code { max-width: 720px; margin-top: var(--s-28, 28px); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .framed .hero-code pre, .framed .hero-code code { font-size: 11px; line-height: 17px; }
  .framed .hero-code .code-bar { min-height: 34px; }
}
@media (min-width: 1200px) {
  /* The squares run out to both edges of the screen: the grid is ten squares wider on each
     side (the hero clips what doesn't fit), so its lines still meet the rails, and the clear
     middle shifts by the same ten squares. */
  .framed .hero .reg-grid { width: 3334px; margin-left: -1667px; }
  .framed .hero .reg-grid::after { left: 1213px; }
  .framed .hero .rails {
    min-height: 807px; display: flex; flex-direction: column; justify-content: flex-start;
    padding: 141px 0 40px; /* 40px below the top row of squares */
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .nav, .header-actions .hide-narrow { display: none; }
  .menu-btn { display: inline-flex; }
  .plat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .plat:nth-child(6n) { border-right: 1px solid var(--color-rule); }
  .plat:nth-child(5n) { border-right: 0; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .ep-group { grid-template-columns: 240px minmax(0, 1fr); }
  .cols-3, .cols-4 { --cols: 2; }
  .article { grid-template-columns: 220px minmax(0, 1fr); }
  .nav-item { padding-inline: 6px; }
  .foot-brand { min-height: 264px; }
  .foot-proof { border-left: 0; border-top: 1px solid var(--color-rule); }
  .closing .plume { width: 20%; opacity: 0.7; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .hero .rails { padding: var(--s-40) 0 var(--s-64); }
  .brand { font-size: var(--body-size); }
  .reg-star, .reg-square, .reg-note { display: none; }
  .ins-row { flex-direction: column; }
  .ins-bar { align-items: flex-end; }
  .chapter { padding: var(--s-40) var(--s-20) var(--s-16); }
  .chapter::before { bottom: var(--s-16); }
  .pair-head { padding: var(--s-56) var(--s-20); }
  .pair-head-in { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .pair-head .eyebrow { padding-top: 0; }
  .plat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plat { padding: var(--s-20) var(--s-12); }
  .plat:nth-child(5n) { border-right: 1px solid var(--color-rule); }
  .plat:nth-child(3n) { border-right: 0; }
  .plat-foot { padding: var(--s-20); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .pair > * + * { border-left: 0; border-top: 1px solid var(--color-rule); }
  .install-cell, .cap-cell { padding-block: var(--s-40); }
  .cap-wide { padding-block: var(--s-40); }
  .merge { grid-template-columns: minmax(0, 1fr); }
  .merge-line { display: none; }
  .merge-in { grid-auto-flow: column; justify-content: start; }
  .pages, .errors { grid-template-columns: minmax(0, 1fr); }
  .accent-band { min-height: 480px; padding-block: var(--s-64); }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-cell { padding: var(--s-24) var(--s-20); }
  .proof-cell:nth-child(3) { border-left: 0; }
  .proof-cell:nth-child(n + 3) { border-top: 1px solid var(--color-rule); }
  .faq-group { grid-template-columns: minmax(0, 1fr); }
  .ep-group { grid-template-columns: minmax(0, 1fr); }
  .ep-cat { padding: var(--s-24) var(--s-20) var(--s-16); }
  .ep-list { border-left: 0; border-top: 1px solid var(--color-rule); }
  .ep-row { grid-template-columns: minmax(0, 1fr); padding: var(--s-16) var(--s-20); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: var(--s-32) var(--s-20); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--color-rule); }
  .cost-row, .cost-foot { padding-inline: var(--s-20); }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-2, .cols-3, .cols-4 { --cols: 1; }
  .cols-4.keep-2 { --cols: 2; }
  .cell { padding: var(--s-24) var(--s-20); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: var(--s-20); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--color-rule); }
  .nrow { grid-template-columns: 40px minmax(0, 1fr); padding: var(--s-20); }
  .tbl th, .tbl td { padding: var(--s-12) var(--s-20); }
  .split-body { border-left: 0; border-top: 1px solid var(--color-rule); padding: var(--s-24) var(--s-20) var(--s-32); }
  .ep-wrap { border-left: 0; border-top: 1px solid var(--color-rule); }
  .ep-links { grid-template-columns: minmax(0, 1fr); }
  .ep-links a, details.more > summary { padding-inline: var(--s-20); }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: var(--s-24); }
  .article { grid-template-columns: minmax(0, 1fr); }
  .toc { border-right: 0; border-bottom: 1px solid var(--color-rule); padding: var(--s-24) var(--s-20); }
  .toc-in { position: static; }
  .prose { padding: var(--s-32) var(--s-20) var(--s-40); }
  .note-band, .strip, .chips-row, .filters, .empty, .sec-label { padding-inline: var(--s-20); }
  .filter-count { margin-left: 0; }
  .search { max-width: none; flex-basis: 100%; }
  .faq-cat { padding-block: var(--s-24) var(--s-16); }
  .faq-list { border-left: 0; border-top: 1px solid var(--color-rule); }
  .closing { padding-inline: var(--s-16); }
  .closing .plume { width: 28%; opacity: 0.45; }
  .closing-cell { padding: var(--s-32) var(--s-20); }
  .foot-proof { grid-template-columns: minmax(0, 1fr); }
  .assure:nth-child(odd), .foot-proof .dir-link:nth-child(odd) { border-right: 0; }
  .foot-proof .dir-link:nth-last-child(2) { border-bottom: 1px solid var(--color-rule); }
  .assure, .dir-link, .dir-col h3, .legal > * { padding-inline: var(--s-20); }
  .directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir-col:nth-child(3) { border-left: 0; }
  .dir-col:nth-child(n + 3) { border-top: 1px solid var(--color-rule); }
  .legal > * { flex: 1 1 50%; }
}
@media (max-width: 420px) {
  .merge-in { grid-auto-flow: row; }
  .legal > * { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--color-rule); }
  .legal > *:last-child { border-bottom: 0; }
}

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

/* ---------- More dot tiles (homepage hero) ----------
   Now that the squares run to the screen edges, eight more dot tiles sit in the third and fourth
   columns out, one per row, so each side steps out and back down the hero (one tile per row,
   rows 0 to 7) and the two sides mirror. The extra columns only appear where the screen is wide
   enough to show the whole square. */
@media (max-width: 1519px) { .framed .fall-chip.is-cell.is-far { display: none; } }
@media (max-width: 1719px) { .framed .fall-chip.is-cell.is-farthest { display: none; } }

/* ---------- Square wave on load (homepage hero) ----------
   The page script adds one cell per grid square outside the clear middle. On load the cells flash
   with bright dots in a wave spreading out from the middle, each growing in slightly and fading
   back to nothing, so the squares end up plain. Skipped with reduced motion. */
.sq-cells { display: none; }
@media (min-width: 1200px) {
  .framed .hero .sq-cells { display: block; position: absolute; inset: 0; pointer-events: none; }
  .sq-cell {
    position: absolute; width: 100px; height: 100px; opacity: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='3'%3E%3Crect x='0.6' y='0.6' width='1.8' height='1.8' rx='0.4' fill='%23ffffff' fill-opacity='0.42'/%3E%3C/svg%3E") 0 0 / 3px 3px;
    animation: sq-flash 760ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--d) both;
  }
}
@keyframes sq-flash {
  0% { opacity: 0; transform: scale(0.82); }
  25% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* ---------- One row shorter (homepage hero) ----------
   The bottom row of squares is gone, along with the Reddit and X tiles that sat in it, so the
   hero is seven squares tall. The headline group keeps its place under the top row. */
@media (min-width: 1200px) {
  .framed .hero { min-height: 706px; }
  .framed .hero .rails { min-height: 706px; padding-bottom: var(--s-16); }
}

/* ---------- Hero fills the first screen (homepage) ----------
   The hero is at least as tall as the window below the nav, rounded up to whole squares, so the
   Platforms section always starts below the fold and the grid never ends on a partial row. It
   never drops below seven squares. */
@media (min-width: 1200px) {
  .framed .hero { min-height: max(706px, calc(100svh - 101px)); }
  .framed .hero { min-height: max(706px, round(up, 100svh - 101px, 101px)); }
  .framed .hero .rails { min-height: 0; }
}

/* ---------- Squares under the code windows (homepage hero) ----------
   The clear middle stops one square-row below the code windows (six rows under the top row), so
   on a tall screen the grid squares run right across the hero underneath them. */
@media (min-width: 1200px) {
  .framed .hero .reg-grid::after { bottom: auto; height: 606px; }
}

/* ---------- One code window (homepage hero) ----------
   The request and response share a single window: one rounded frame with one raised edge, and a
   thin divider between the two halves (side by side on desktop, stacked on phones). Tabs, Copy
   buttons and the platform cycle work as before. */
.ss-round.framed .hero-code {
  gap: 0; border-radius: var(--r-code); background: var(--color-surface); overflow: hidden;
  box-shadow: var(--ring), 0 var(--edge-window) 0 var(--color-ring);
}
.ss-round.framed .hero-code .code-panel { border-radius: 0; box-shadow: none; background: none; }
.ss-round.framed .hero-code .code-panel + .code-panel { border-top: 1px solid var(--color-rule-strong, rgba(255, 255, 255, 0.08)); }
@media (min-width: 768px) {
  .ss-round.framed .hero-code .code-panel + .code-panel { border-top: 0; border-left: 1px solid var(--color-rule-strong, rgba(255, 255, 255, 0.08)); }
}

/* ---------- Shorter code window (homepage hero) ----------
   The sample response shows fewer fields (platform and two stats), so the window is about four
   lines shorter; the code lines and padding are a touch tighter too. */
@media (min-width: 768px) {
  .framed .hero-code pre, .framed .hero-code code { line-height: 16px; }
  .framed .hero-code .code-body { padding-block: 8px; }
  .framed .hero-code .code-bar { min-height: 32px; }
}

/* ---------- No code window (homepage hero) ----------
   The hero holds only the headline, the supporting line and the buttons, so the clear middle
   shrinks to four rows of squares under the top row, with the text centred in it, and the grid
   squares run across the hero below. */
@media (min-width: 1200px) {
  .framed .hero .reg-grid::after { height: 404px; }
  .framed .hero .rails { min-height: 505px; padding: 101px 0 0; justify-content: center; }
}

/* ---------- Bigger hero text (homepage) ----------
   With the code window gone, the headline, supporting line and buttons step up a size and space
   out a little, still centred in the clear middle. */
.framed .hero { --display-max: 64px; }
.framed .hero.is-long .hero-support { max-width: 500px; font-size: 18px; line-height: 28px; }
.framed .hero h1 + .hero-support { margin-top: var(--s-20, 20px); }
.framed .hero .actions { margin-top: var(--s-32); }
@media (min-width: 768px) {
  .framed .hero .actions .btn { height: 44px; padding-inline: 20px; font-size: 16px; }
}

/* ---------- No squares between LinkedIn and Twitch (homepage) ----------
   The clear middle runs one row further down, so the row of grid squares under the text,
   between the LinkedIn and Twitch tiles, is gone. The text sits in the vertical centre of the
   five clear rows. */
@media (min-width: 1200px) {
  .framed .hero .reg-grid::after { height: 504px; } /* stops 1px short so the line under it shows */
  .framed .hero .rails { min-height: 606px; padding: 101px 0 0; justify-content: center; }
}

/* ---------- Manrope preview (homepage) ----------
   Swap the body class back to font-geist to return to Geist. */
.font-manrope { --font-sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.font-manrope .hero h1 { letter-spacing: -0.03em; }

/* ---------- Dot stream into the mark (homepage hero) ----------
   Under the text, in the middle square of the row below the clear area, sits the SocialScrape
   mark. Each time a platform tile lights up, a short train of dots runs from that tile along the
   grid lines into the mark, the mark's square flashes and the chip beside it names what came in. */
.hero-flow { display: none; }
@media (min-width: 1200px) {
  .framed .hero .hero-flow { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
  .flow-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .flow-mark {
    position: absolute; left: calc(50% - 50px); top: 606px; width: 100px; height: 100px;
    display: grid; place-items: center; background: var(--color-canvas);
    transition: background-color 700ms ease;
  }
  .flow-mark svg { width: 52px; height: 52px; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
  .flow-mark.is-hit { background: rgba(20, 201, 160, 0.10); transition-duration: 80ms; }
  .flow-mark.is-hit svg { transform: scale(1.08); transition-duration: 120ms; }
  .flow-chip {
    position: absolute; left: calc(50% + 75px); top: 630px; height: 52px; box-sizing: border-box;
    display: flex; align-items: center; gap: 10px; padding: 0 16px 0 12px; white-space: nowrap;
    border-radius: 12px; background: var(--color-surface);
    box-shadow: var(--ring), 0 var(--edge-window) 0 var(--color-ring);
    font-family: var(--font-sans); text-align: left;
  }
  .flow-chip-ico { display: grid; place-items: center; width: 28px; height: 28px; }
  .flow-chip-ico svg { width: 18px; height: 18px; fill: var(--color-muted); }
  .flow-chip-text { display: flex; flex-direction: column; gap: 1px; }
  .flow-chip-text b { font-weight: 600; font-size: 14px; line-height: 18px; color: var(--color-ink); }
  .flow-chip-text span { font-size: 12px; line-height: 16px; color: var(--color-muted); }
  .flow-chip.is-fresh .flow-chip-ico, .flow-chip.is-fresh .flow-chip-text { animation: flow-fresh 420ms cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes flow-fresh { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Live result card (homepage hero, option 2) ----------
   The dot stream (option 1) is parked. Under the text, a rounded card floats over the squares
   of rows 6-7, five columns wide and 24px off every line, and follows the lit platform tile:
   it shows "Fetching" for a moment, then the platform's profile numbers, 200 OK and a time. */
.framed .hero .hero-flow { display: none; }
.hero-card { display: none; }
@media (min-width: 1200px) {
  .framed .hero .hero-card {
    display: flex; flex-direction: column; position: absolute; z-index: 0;
    left: calc(50% - 228px); top: 630px; width: 456px; height: 152px; box-sizing: border-box;
    border-radius: 12px; background: var(--color-surface);
    box-shadow: var(--ring), 0 var(--edge-window) 0 var(--color-ring);
    font-family: var(--font-sans); text-align: left; overflow: hidden;
  }
  .hc-top { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 12px; border-bottom: 1px solid var(--color-ring); }
  .hc-ico { display: grid; place-items: center; width: 24px; height: 24px; }
  .hc-ico svg { width: 18px; height: 18px; fill: var(--color-muted); }
  .hc-name { font-size: 14px; font-weight: 600; color: var(--color-ink); }
  .hc-handle { font-size: 13px; color: var(--color-muted); }
  .hc-status { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-muted); }
  .hc-status i { width: 6px; height: 6px; border-radius: 1px; background: #14C9A0; }
  .hc-status b { font-weight: 600; color: #14C9A0; }
  .hc-status.is-wait i { background: var(--color-muted); animation: hc-blink 500ms steps(2) infinite; }
  .hc-status.is-wait b { color: var(--color-muted); }
  .hc-stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .hc-stats > div { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 16px; }
  .hc-stats > div + div { border-left: 1px solid var(--color-ring); }
  .hc-stats span { font-size: 12px; line-height: 16px; color: var(--color-muted); }
  .hc-stats b { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
  .hero-card.is-wait .hc-stats b { color: var(--color-muted); }
}
@keyframes hc-blink { to { opacity: 0.2; } }

/* ---------- Result card under the text (homepage hero) ----------
   The card sits in the text block, under the buttons, inside the clear middle. The clear middle
   runs one row further down (rows 1-6) to make room, so the card floats on plain background
   with no squares or tiles behind it, and the text and card are centred in it together. */
@media (min-width: 1200px) {
  .framed .hero .reg-grid::after { height: 604px; }
  .framed .hero .rails { min-height: 707px; padding: 101px 0 0; justify-content: center; }
  .framed .hero .hero-card { position: relative; left: auto; top: auto; margin: 40px auto 0; }
}

/* ---------- One-line request bar (homepage hero, option 3) ----------
   The result card (option 2) is parked. Under the buttons sits one slim rounded bar: GET, the
   request path typing itself for the lit platform, and a status that goes from Sending to
   200 OK with a time. It is short, so the clear middle goes back to rows 1-5. */
.framed .hero .hero-card { display: none; }
.hero-req { display: none; }
@media (min-width: 1200px) {
  .framed .hero .reg-grid::after { height: 504px; }
  .framed .hero .rails { min-height: 606px; padding: 101px 0 0; justify-content: center; }
  .framed .hero .hero-req {
    display: flex; align-items: center; gap: 12px; position: relative; z-index: 0;
    width: 660px; height: 52px; margin: 32px auto 0; padding: 0 16px 0 10px; box-sizing: border-box;
    border-radius: 12px; background: var(--color-surface);
    box-shadow: var(--ring), 0 var(--edge-window) 0 var(--color-ring);
    font-family: "Geist", var(--font-sans); font-size: 14px; text-align: left; white-space: nowrap;
  }
  .hr-method { padding: 3px 8px; border-radius: 6px; background: var(--color-canvas); color: #14C9A0; font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }
  .hr-path { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; color: var(--color-ink); }
  .hr-caret { width: 2px; height: 16px; margin-left: 1px; background: #14C9A0; opacity: 0; }
  .hero-req.is-typing .hr-caret { opacity: 1; animation: hc-blink 500ms steps(2) infinite; }
  .hr-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-muted); }
  .hr-status i { width: 6px; height: 6px; border-radius: 1px; background: #14C9A0; }
  .hr-status b { font-weight: 600; color: #14C9A0; }
  .hr-status.is-wait i { background: var(--color-muted); animation: hc-blink 500ms steps(2) infinite; }
  .hr-status.is-wait b { color: var(--color-muted); }
}

/* ---------- Taller request bar (homepage hero) ---------- */
@media (min-width: 1200px) {
  .framed .hero .hero-req { width: 720px; height: 72px; padding: 0 22px 0 16px; gap: 14px; border-radius: 14px; font-size: 16px; }
  .framed .hero .hr-method { padding: 6px 11px; border-radius: 8px; font-size: 13px; }
  .framed .hero .hr-caret { height: 20px; }
  .framed .hero .hr-status { font-size: 14px; gap: 10px; }
  .framed .hero .hr-status i { width: 7px; height: 7px; }
}

/* ---------- Two tile rows at the bottom (homepage hero) ----------
   The hero no longer grows with tall screens: it stops at nine rows (0-8), so under the text
   there are always exactly two rows of tiles, even in full screen. The ninth-row tiles are gone. */
@media (min-width: 1200px) {
  .framed .hero { min-height: 909px; height: 909px; }
}

/* ---------- Eight rows (homepage hero) ----------
   Two rows of squares under the text, not three: the hero stops after row 7. The X tile moves up
   into row 7 between Kwai and Apple Music; SoundCloud and Amazon (row 8) are gone. */
@media (min-width: 1200px) {
  .framed .hero { min-height: 808px; height: 808px; }
}

/* ---------- Fact strip (homepage hero, option 4) ----------
   The request bar (option 3) is parked. Under the buttons sits a flat, square-cornered strip
   seven grid squares wide (its outer lines fall on grid lines), split into three cells: a big
   number over a short label. The numbers count up once on load. */
.framed .hero .hero-req { display: none; }
.hero-facts { display: none; }
@media (min-width: 1200px) {
  .framed .hero .hero-facts {
    display: grid; grid-template-columns: repeat(3, 1fr); position: relative; z-index: 0;
    width: 708px; margin: 40px auto 0; border: 1px solid var(--color-rule);
    font-family: var(--font-sans); text-align: left;
  }
  .hero-facts > div { display: flex; flex-direction: column-reverse; justify-content: center; gap: 4px; padding: 18px 24px; }
  .hero-facts > div + div { border-left: 1px solid var(--color-rule); }
  .hero-facts dt { margin: 0; font-size: 13px; line-height: 18px; color: var(--color-muted); }
  .hero-facts dd { margin: 0; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
  .hero-facts > div:first-child dd { color: #14C9A0; }
}

/* ---------- Platform picker under the text (homepage hero) ----------
   The fact strip (option 4) is parked and the picker is back under the buttons: ten platform
   buttons and "All 29". Clicking one lights its tile; the lit button follows the cycle. */
.framed .hero .hero-facts { display: none; }
@media (min-width: 1200px) { .framed .hero .pick { margin-top: 40px; position: relative; z-index: 0; } }

/* ---------- No sideways scroll in the request/response panels (homepage) ----------
   The long URL sits on its own line in each snippet; if a line still runs past the panel it
   wraps instead of scrolling, so the panel never shows a scrollbar. */
#req-panel .code-body, #res-panel .code-body { overflow: hidden; }
#req-panel .code-body pre, #res-panel .code-body pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; }
/* one step smaller type in these two panels, so the URL line fits whole instead of wrapping */
#req-panel .code-body pre, #res-panel .code-body pre { font-size: 12px; line-height: 20px; }

/* ---------- Heavier hero headline (homepage) ---------- */
.framed .hero h1 { font-weight: 600; }

/* ---------- Still platform picker (homepage hero) ----------
   No selection moving across the picker: buttons stay plain while the tiles cycle, a clicked
   button shows as picked at once, with no lift or colour fade. */
.framed .hero .pick-b { transition: none; }

/* ---------- Request bar back (homepage hero, option 3) ----------
   The platform picker is parked and the taller request bar shows under the buttons again. */
.framed .hero .pick { display: none; }
@media (min-width: 1200px) { .framed .hero .hero-req { display: flex; } }

/* ---------- Taller request bar, second step (homepage hero) ---------- */
@media (min-width: 1200px) {
  .framed .hero .hero-req { width: 800px; height: 96px; padding: 0 28px 0 22px; gap: 18px; border-radius: 16px; font-size: 18px; }
  .framed .hero .hr-method { padding: 8px 13px; border-radius: 9px; font-size: 14px; }
  .framed .hero .hr-caret { height: 24px; }
  .framed .hero .hr-status { font-size: 15px; }
  .framed .hero .hr-status i { width: 8px; height: 8px; }
}

/* ---------- Narrower request bar (homepage hero) ----------
   Same 96px height, about 160px narrower: the status moves under the path instead of sitting
   at the right end, with GET centred on the left of both lines. */
@media (min-width: 1200px) {
  .framed .hero .hero-req {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center;
    column-gap: 16px; row-gap: 6px; width: 640px; font-size: 16px; padding: 0 24px 0 20px;
  }
  .framed .hero .hr-method { grid-row: 1 / span 2; align-self: center; }
  .framed .hero .hr-path { grid-column: 2; grid-row: 1; }
  .framed .hero .hr-status { grid-column: 2; grid-row: 2; font-size: 14px; }
}
/* a little less tall: 80px instead of 96px, two lines kept */
@media (min-width: 1200px) {
  .framed .hero .hero-req { height: 80px; row-gap: 3px; border-radius: 14px; }
  .framed .hero .hr-method { padding: 6px 11px; font-size: 13px; }
}

/* ---------- Short framed hero (inner pages, e.g. use case) ----------
   Six rows instead of eight: the top row, four clear rows for the text, and one row of tiles
   along the bottom. Tiles below row 5 are left out of the page. */
@media (min-width: 1200px) {
  .framed .hero.is-short { min-height: 606px; height: 606px; }
  .framed .hero.is-short .reg-grid::after { height: 403px; }
  .framed .hero.is-short .rails { min-height: 505px; padding: 101px 0 0; justify-content: center; }
  .framed .hero.is-short .crumbs { margin-bottom: 16px; }
}

/* framed header pages: a widget that used to sit inside the header now sits in its own band below it */
.framed .hero-tool { padding-block: 0; }
.framed .hero-tool .rails { padding-block: 64px; }
.framed .hero-tool .instrument-halo { margin-top: 0; }

/* inner-page header with more text (meta chips, long intro): one extra row of clear space */
@media (min-width:1200px){
  .framed .hero.is-short.is-roomy{min-height:707px;height:707px}
  .framed .hero.is-short.is-roomy .reg-grid::after{height:504px}
  .framed .hero.is-short.is-roomy .rails{min-height:606px}
}

/* inner-page header: a narrower clear middle, seven squares instead of nine, with the tiles one
   column closer so they still sit against it */
@media (min-width:1200px){
  .framed .hero.is-short .reg-grid::after{left:1314px;width:706px}
  .framed .hero.is-short .fall-chip.is-cell{left:calc(50% + 354px + var(--col) * var(--sq))}
  .framed .hero.is-short .fall-chip.is-cell.is-left{left:calc(50% - 454px - var(--col) * var(--sq))}
  .framed .hero.is-short .rails > *{max-width:660px;margin-inline:auto}
}
@media (min-width:1200px){ .framed .hero.is-short { --display-max: 56px; } .framed .hero.is-short h1 { font-size: 56px; } }

/* free tool page: the input box sits in the middle of the header, results open in the band below */
.framed .hero .hero-tool-in { margin-top: var(--s-24); width: 100%; }
.framed .hero-tool:has(#tool-results[hidden]) { display: none; }
.framed .hero .hero-tool-in, .framed .hero-tool .instrument-halo { max-width: 640px; }

/* free tool box: an "ask your AI" row inside the box, under the lookup */
.hero-tool-in .tool-note { margin-top: var(--s-8); text-align: left; }
.tool-ai { display: flex; align-items: center; gap: var(--s-12); margin-top: var(--s-12); padding: var(--s-12); border-radius: 12px; background: var(--color-canvas); border: 1px solid var(--color-rule); text-align: left; }
.tool-ai-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--color-accent) 16%, transparent); color: var(--color-accent); }
.tool-ai-mark .od-icon { width: 20px; height: 20px; }
.tool-ai p { flex: 1; min-width: 0; font-size: var(--label-size); line-height: 20px; color: var(--color-support); }
.tool-ai p b { font-weight: 600; color: var(--color-ink); }
.tool-ai .btn { flex: none; gap: 6px; }
.tool-ai .btn .od-icon { width: 16px; height: 16px; }
@media (max-width: 599px) { .tool-ai { flex-wrap: wrap; } .tool-ai p { flex-basis: calc(100% - 48px); } .tool-ai .btn { width: 100%; justify-content: center; } }
html { scroll-behavior: smooth; }

/* free tool: results open inside the box and the header grows by whole grid rows to fit them
   (sizes set by the tool script), with the text pinned where it was so nothing on screen jumps */
@media (min-width:1200px){
  .framed .hero.is-short.is-open { height: var(--hero-h); min-height: var(--hero-h); transition: height .45s var(--ease-out, ease), min-height .45s var(--ease-out, ease); }
  .framed .hero.is-short.is-open .reg-grid::after { height: var(--clear-h); transition: height .45s var(--ease-out, ease); }
  .framed .hero.is-short.is-open .rails { justify-content: flex-start; padding-top: var(--rails-top); min-height: 0; }
}
.hero-tool-in .ins-output { margin-top: var(--s-12); text-align: left; }

/* homepage request bar, balanced: one line with GET on the left, the path in the middle and the
   status pinned to the right edge, so both sides of the bar carry something */
@media (min-width:1200px){
  .framed .hero .hero-req { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; column-gap: 16px; height: 72px; padding: 0 24px 0 20px; font-size: 15px; }
  .framed .hero .hr-method { grid-row: 1; }
  .framed .hero .hr-path { grid-column: 2; grid-row: 1; white-space: nowrap; overflow: hidden; text-align: left; }
  .framed .hero .hr-status { grid-column: 3; grid-row: 1; justify-self: end; white-space: nowrap; font-size: 14px; }
}
.btn-ai { gap: 8px; }
.btn-ai .od-icon { width: 18px; height: 18px; color: var(--color-accent); }
/* Connect to AI button: the Claude and ChatGPT marks in their own colours (ChatGPT's black mark
   follows the text colour so it shows on the dark page) */
.btn-ai .ai-logos { display: inline-flex; align-items: center; gap: 6px; }
.btn-ai .ai-logo { width: 18px; height: 18px; flex: none; }
.btn-ai .ai-logo.is-claude { fill: #D97757; }
.btn-ai .ai-logo.is-gpt { fill: currentColor; }

/* homepage request bar removed from the hero (parked: the markup stays, its script skips it) */
.framed .hero .hero-req, .framed .hero .hero-req { display: none !important; }
/* AI logos in one colour: both follow the button text */
.btn-ai .ai-logo.is-claude, .btn-ai .ai-logo.is-gpt { fill: currentColor; }

/* homepage hero eyebrow: a plain text link above the headline (no pill, sentence case) */
.hero-eyebrow { margin-bottom: var(--s-16); gap: 6px; font-size: 14px; color: var(--color-support); text-decoration: none; }
.hero-eyebrow b { font-weight: 600; color: var(--color-accent); }
.hero-eyebrow .od-icon { width: 14px; height: 14px; transition: transform .2s ease; }
@media (hover: hover) { .hero-eyebrow:hover { color: var(--color-ink); } .hero-eyebrow:hover .od-icon { transform: translateX(2px); } }
.hero .rails > .hero-eyebrow { align-self: center; margin-inline: auto; }

/* ---------- Sign-in panel in the framed style ----------
   The right panel is the header's square grid: an 11 x 11 board of 101px squares centred in the
   panel (clipped at the edges), dot-printed platform tiles in single squares, and a clear block
   of 5 x 3 squares in the middle for the line. */
.auth-panel.is-framed { display: grid; place-items: center; padding: 0; background: var(--color-canvas); }
.auth-panel.is-framed::before, .auth-panel.is-framed::after { display: none; }
.auth-board { position: absolute; left: 50%; top: 50%; width: 1112px; height: 1112px; margin: -556px 0 0 -556px;
  background-image: linear-gradient(var(--color-rule) 1px, transparent 1px), linear-gradient(90deg, var(--color-rule) 1px, transparent 1px);
  background-size: 101px 101px; }
.auth-clear { position: absolute; left: calc(3 * 101px + 1px); top: calc(4 * 101px + 1px); width: calc(5 * 101px - 1px); height: calc(3 * 101px - 1px); background: var(--color-canvas); }
.auth-board .auth-cell { --size: 100px; position: absolute; left: calc(var(--c) * 101px + 1px); top: calc(var(--r) * 101px + 1px); width: 100px; height: 100px; animation: none; transform: none; }
.auth-board .auth-cell::before { display: none; }
.auth-panel.is-framed .auth-line { position: relative; z-index: 1; text-align: center; font-size: 48px; font-weight: 600; letter-spacing: -0.03em; }
@media (max-width: 899px)  { .auth-panel.is-framed { display: none; } }

/* Sign-in panel, its own take on the header: where the header keeps its tiles at the sides of a
   clear middle, here the tiles fill a wide diagonal band across the panel in a checker pattern,
   and the line is set large on top of them. Tiles under the words dim (marked by a small script
   on the page). Tiles fade in along the band, bottom left to top right. */
.auth-panel.is-framed:has(.is-weave) { container-type: size; }
.auth-board.is-weave .auth-cell { opacity: 0; animation: weave-in .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d) * 60ms + 100ms);
  transition: opacity .3s ease; }
.auth-board.is-weave .auth-cell.is-under { animation-name: weave-in-dim; }
.auth-board.is-weave .auth-cell.is-cut { visibility: hidden; }
@keyframes weave-in { from { opacity: 0; transform: translate(-8px, 8px); } to { opacity: 1; transform: none; } }
@keyframes weave-in-dim { from { opacity: 0; transform: translate(-8px, 8px); } to { opacity: .3; transform: none; } }
.auth-panel.is-framed:has(.is-weave) .auth-line { position: absolute; z-index: 1; left: max(40px, calc(50% - 305px)); top: calc(50% - 51px); transform: translateY(-50%);
  text-align: left; font-size: clamp(48px, 9.4cqw, 76px); line-height: 1.02; letter-spacing: -0.035em; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .auth-board.is-weave .auth-cell { animation: none; opacity: 1; }
  .auth-board.is-weave .auth-cell.is-under { opacity: .3; }
}

/* ---------- Sign-in panel variants (sign-in-a/b/c/d.html) ---------- */
.auth-panel.is-framed:is(.v-wall, .v-feed, .v-giant, .v-poster) { container-type: size; }
.auth-panel .auth-cell.is-cut { visibility: hidden; }
.auth-panel.is-framed:is(.v-wall, .v-feed, .v-giant) .auth-line { position: absolute; z-index: 1; text-align: left; line-height: 1; letter-spacing: -0.04em; pointer-events: none; }

/* A, the wall: a tile in every square, dim, a few lighting up at a time; the line large, bottom left */
.v-wall .auth-board { left: 0; top: auto; bottom: 0; margin: 0; }
.v-wall .auth-cell { top: auto; bottom: calc(var(--r) * 101px + 1px); opacity: .14; transition: opacity 1.2s ease; }
.v-wall .auth-cell.is-lit { opacity: 1; transition-duration: .35s; }
.auth-panel.is-framed.v-wall .auth-line { left: 40px; bottom: 64px; font-size: clamp(56px, 11.5cqw, 104px); }

/* B, the feed: two columns of tiles pass by on the right, one up, one down (dimmer); the line on the left */
.v-feed .auth-board { left: auto; right: 0; top: 0; height: 100%; margin: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.feed-col { position: absolute; top: 0; right: calc(var(--k) * 101px + 1px); width: 100px; display: flex; flex-direction: column; gap: 1px;
  animation: feed-move var(--t, 40s) linear infinite; }
.feed-col.is-up { --len: 1010px; --t: 38s; }
.feed-col.is-down { --len: 1111px; --t: 46s; animation-direction: reverse; opacity: .4; }
.feed-col .auth-cell { position: relative; left: auto; top: auto; flex: none; }
@keyframes feed-move { from { transform: translateY(0); } to { transform: translateY(calc(-1 * var(--len))); } }
.auth-panel.is-framed.v-feed .auth-line { left: 40px; top: 50%; transform: translateY(-50%); font-size: clamp(52px, 10.5cqw, 88px); }

/* C, the giant tile: one 4 x 4 square tile in the bottom right, cycling through the platforms;
   the line top left, over its corner */
.v-giant .auth-board { left: auto; right: 0; top: auto; bottom: 0; margin: 0; }
.v-giant .giant { position: absolute; right: 102px; bottom: 102px; width: 403px; height: 403px; animation: none; transform: none; }
.v-giant .giant::before { display: none; }
.v-giant .giant canvas { opacity: 0; transition: opacity .9s ease; }
.v-giant .giant canvas.is-on { opacity: 1; }
.auth-panel.is-framed.v-giant .auth-line { left: 40px; top: clamp(64px, 16cqh, 180px); font-size: clamp(56px, 11.5cqw, 104px); }

/* D, the poster: one word per grid row on a clear block, tiles fill the rest of each row */
.v-poster .auth-board { left: max(0px, calc(50% - 353px)); top: calc(50% - 202px); margin: 0; }
.poster-word { position: absolute; z-index: 1; left: 1px; top: calc(var(--r) * 101px + 1px); width: calc(var(--n) * 101px - 1px); height: 100px;
  display: flex; align-items: center; padding-left: 26px; background: var(--color-canvas); color: var(--color-ink);
  font-size: 80px; font-weight: 600; line-height: 1; letter-spacing: -0.035em; white-space: nowrap; }
.poster-word.accent { color: var(--color-accent); }
.v-poster .auth-cell { opacity: 0; animation: poster-in .45s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--d) * 55ms + 150ms); }
@keyframes poster-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .feed-col { animation: none; }
  .v-poster .auth-cell { animation: none; opacity: 1; }
  .v-giant .giant canvas { transition: none; }
}


/* Homepage hero h1, option A from h1-options.html: one colour, lighter weight, a little less tight */
.hero h1.h1-calm { font-weight: 500; letter-spacing: -0.022em; }
.hero h1.h1-calm span { color: var(--color-ink); }

/* Top banner as an outline: no fill, a thin green edge, text in the page colours, the link in green */
.framed .announce { background: transparent; border: 1px solid var(--color-accent); color: var(--color-ink); }
.framed .announce a { color: var(--color-accent); }
/* the banner animates in on load: the outline opens out from the centre, then the words fade up */
@keyframes announce-open { from { clip-path: inset(0 50% round 10px); } to { clip-path: inset(0 0 round 10px); } }
.framed .announce { color: transparent; animation-name: announce-open, announce-text; animation-duration: .6s, .4s; animation-delay: .15s, .55s;
  animation-timing-function: cubic-bezier(.2,.7,.2,1), ease; animation-fill-mode: both, both; }
@keyframes announce-text { from { color: transparent; } to { color: var(--color-ink); } }
.framed .announce a { animation: announce-link .4s ease .55s both; }
@keyframes announce-link { from { color: transparent; text-decoration-color: transparent; } to { color: var(--color-accent); text-decoration-color: var(--color-accent); } }
@media (prefers-reduced-motion: reduce) { .framed .announce, .framed .announce a { animation: none; } .framed .announce { color: var(--color-ink); } }

/* Square wave on load, made more subtle: each square only half lights, barely grows, fades slower */
@media (min-width: 1200px) { .sq-cell { animation-name: sq-flash-soft; animation-duration: 900ms; } }
@keyframes sq-flash-soft {
  0% { opacity: 0; transform: scale(0.95); }
  30% { opacity: 0.42; transform: none; }
  100% { opacity: 0; transform: none; }
}

/* Sign-in panel, one large pixel visual: no tiles, one dot-pattern drawing across the whole panel,
   the line large in the bottom left over it */
.auth-panel.is-framed.v-pixel { container-type: size; }
.v-pixel .pixel-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.auth-panel.is-framed.v-pixel .auth-line { position: absolute; z-index: 1; left: 40px; top: 56px; text-align: left; line-height: 1; letter-spacing: -0.04em;
  font-size: clamp(40px, 7.2cqw, 68px); }

/* Homepage hero (2026-11-18): the headline group read low on a laptop screen. The clear area now
   ends one row higher (rows 1-4), and the group sits centred in it with equal space above and below. */
@media (min-width: 1200px) {
  .framed .hero.is-long .reg-grid::after { height: 403px; } /* stops 1px short so the line under it shows */
  .framed .hero.is-long .rails { min-height: 505px; padding-bottom: 0; }
}

/* Seven rows (homepage hero, 2026-11-18): with the clear area ending after row 4, the bottom row
   (row 7, plain squares) is gone, so two rows of squares sit under the text. */
@media (min-width: 1200px) {
  .framed .hero.is-long { min-height: 707px; height: 707px; }
}

/* What the 2026-11-15 export has no template for. Its tokens and classes come first (design/site-2026-11-15-open-design/styles.css). */

/* links inside a table keep the table's own text style and take the green on hover */
.tbl a { color: inherit; }
.tbl a .mono, .tbl a code { text-decoration: underline; text-decoration-color: var(--color-accent-line); text-underline-offset: 3px; }
@media (hover: hover) { .tbl a:hover, .tbl a:hover .mono { color: var(--color-accent-ink); } }
.tbl .sample-tag { margin-left: var(--s-4); }

/* a check list as a section's body */
.note-list { padding: var(--s-32) var(--cell-pad-x); border-bottom: 1px solid var(--color-rule); }
.note-list .check-list { gap: var(--s-16); max-width: 76ch; }
.note-list .check-list li { font-size: var(--body-size); line-height: 1.5; letter-spacing: 0; }
.note-list .check-list .od-icon { margin-top: 4px; }

/* an answer may hold more than one paragraph, a list or a link */
.faq-answer > * + * { margin-top: var(--s-12); }
.faq-answer ul { list-style: disc; padding-left: var(--s-20); display: grid; gap: var(--s-4); }
.faq-answer code, .note-band code, .hero-support code, .pair-head code, .cell-desc code { font-size: 0.9em; line-height: inherit; padding: 1px 5px; border-radius: var(--s-4); background: var(--color-control); color: var(--color-ink); overflow-wrap: anywhere; }
.pair-head p a, .hero-support a, .cell-desc a { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* text with no contents column */
.prose.is-solo { border-bottom: 1px solid var(--color-rule); }
.prose.is-solo > * { margin-inline: auto; }

/* the hero window on a platform page: tabs over a request and its sample response */
.instrument .ins-modes { margin-top: var(--s-4); }
.instrument [role="tabpanel"] .ins-output pre { max-height: 232px; }
.code-body.is-tall pre { max-height: 420px; overflow: auto; }
.cap-cell.is-empty { padding: 0; }
.cap-code { font-size: var(--label-size); line-height: 20px; color: var(--color-support); }
.chat-answer { margin-top: var(--s-12); font-size: var(--label-size); line-height: 20px; }
a.chip { text-decoration: none; transition: background-color var(--t-base) var(--ease); }
@media (hover: hover) { a.chip:hover { background: var(--color-selected); } }
.install-cell .nrows { border-bottom: 1px solid var(--color-rule); padding-bottom: var(--s-8); }

/* text with no contents column: one measure for words, tables and code */
.prose.is-solo > *, .prose.is-solo > .code-panel, .prose.is-solo > .tbl-wrap { max-width: 760px; margin-inline: auto; }
.prose > .callout { display: block; }
.prose > .callout > div > :first-child { margin-top: 0; }
.prose hr { border: 0; border-top: 1px solid var(--color-rule); margin: var(--s-40) auto 0; }
.prose h4 { margin-top: var(--s-24); font-size: var(--label-size); line-height: 20px; font-weight: 500; }
.prose li > ul, .prose li > ol { margin-top: var(--s-8); }
.prose strong { font-weight: 500; color: var(--color-ink); }
.prose .tbl th, .prose .tbl td { padding: var(--s-12) var(--s-20); }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-panel); }

/* a logo as a cell's mark */
.cell-logo { display: block; width: 28px; height: 28px; border-radius: 6px; margin-bottom: var(--s-8); background: var(--color-white); object-fit: contain; }
.tool-more span { color: var(--color-annotation); margin-inline: var(--s-8); }
.chip.mono { font-family: var(--font-mono); font-size: var(--chapter-size); }
.toc .muted + .btn { margin-top: var(--s-12); }
.toc a.btn { display: inline-flex; padding: var(--s-8) var(--s-12); color: var(--color-action-ink); }

/* ---------- feature pages: a feature's own sections inside one band ---------- */
.f-wrap .f-sec { border-bottom: 1px solid var(--color-rule); }
.f-wrap .f-in { padding: var(--s-32) var(--s-28) var(--s-40); display: grid; gap: var(--s-16); }
.f-wrap .f-in > .tbl-wrap, .f-wrap .f-sec > .tbl-wrap { border: 1px solid var(--color-rule); }
.f-wrap .h-section { font-size: var(--subheading-size); line-height: var(--subheading-line); font-weight: 500; letter-spacing: -0.01em; }
.f-wrap .f-note, .f-wrap .f-foot, .f-wrap .f-body, .f-wrap .f-card p, .f-wrap .f-tool p { font-size: var(--label-size); line-height: 20px; color: var(--color-support); max-width: 76ch; }
.f-wrap .f-body { font-size: var(--body-size); line-height: 1.6; }
.f-wrap a:not(.btn):not(.cell) { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.f-wrap code { font-size: 0.9em; padding: 1px 5px; border-radius: var(--s-4); background: var(--color-control); color: var(--color-ink); overflow-wrap: anywhere; }
.f-wrap pre code { padding: 0; background: none; }
.f-two, .f-tm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-16); }
.f-wrap > .f-sec.f-two, .f-wrap > .f-sec.f-code { padding: var(--s-32) var(--s-28) var(--s-40); }
.f-code { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-32); align-items: start; }
.f-code > div, .f-two > div, .f-stack, .f-side > div { display: grid; gap: var(--s-16); align-content: start; min-width: 0; }
.f-colour, .f-card, .f-pack { display: grid; gap: var(--s-8); align-content: start; padding: var(--s-20) var(--s-24); border-radius: var(--r-panel); background: var(--color-surface); box-shadow: var(--shadow-mini); min-width: 0; }
.f-colour.f-span { grid-column: 1 / -1; }
.f-packs, .f-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-16); }
.f-pack h3 { font-size: var(--body-size); line-height: 1.5; font-weight: 500; }
.f-price { font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -0.01em; }
.f-pack dl { margin: 0; }
.f-pack dl div { display: flex; justify-content: space-between; gap: var(--s-12); padding: var(--s-8) 0; border-top: 1px solid var(--color-rule); font-size: var(--label-size); line-height: 20px; }
.f-pack dt { color: var(--color-muted); } .f-pack dd { margin: 0; }
.f-svc, .f-rows { display: grid; gap: var(--s-12); font-size: var(--label-size); line-height: 20px; color: var(--color-support); }
.f-svc strong, .f-card-h { color: var(--color-ink); font-weight: 500; }
.f-rows li { display: flex; gap: var(--s-12); font-size: var(--body-size); line-height: 1.5; }
.f-rows .v-ic:empty, .f-art:empty { display: none; }
.f-rows li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 2px; background: var(--color-spark); }
.f-chips, .f-chiprow { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.f-wrap .f-chips a { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--s-12); border-radius: 999px; background: var(--color-control); color: var(--color-ink); font-size: var(--caption-size); text-decoration: none; }
.f-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-20) var(--s-24); }
.f-mini { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--s-8); font-size: var(--label-size); line-height: 20px; color: var(--color-support); --od-icon-size: 16px; }
.f-mini .od-icon { margin-top: 2px; color: var(--color-accent-ink); }
.f-mini b { display: block; font-weight: 500; color: var(--color-ink); }
.f-mini span { display: block; }
@media (max-width: 899px) {
  .f-two, .f-tm, .f-code, .f-packs, .f-tools, .f-minis { grid-template-columns: minmax(0, 1fr); }
  .f-wrap .f-in, .f-wrap > .f-sec.f-two, .f-wrap > .f-sec.f-code { padding: var(--s-24) var(--s-20) var(--s-32); }
}
.f-wrap > .f-sec > .f-colour { margin: var(--s-24) var(--s-28); }

/* ---------- docs: the menu, the page and its contents in one ruled band ---------- */
.rails.is-docs { max-width: 1360px; }
/* The docs header is the docs band's own box, with the menu's inset, so the logo starts where the menu's search box
   and page names start, at every width. */
.is-docs .site-header { padding-inline: 0; }
.is-docs .site-header .header-in { max-width: 1360px; padding-inline: var(--s-16); }
.docs-grid { display: grid; grid-template-columns: 272px minmax(0, 1fr) 232px; align-items: start; }
.dnav { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; border-right: 1px solid var(--color-rule); min-width: 0; }
.dnav .search { flex: none; max-width: none; margin: var(--s-16) var(--s-16) var(--s-8); height: 36px; }
.dnav .search input { font-size: var(--label-size); }
.dnav-scroll { position: relative; flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-8) var(--s-8) var(--s-40); scrollbar-width: thin; }
.dnav summary { display: flex; align-items: center; gap: var(--s-8); min-height: 32px; padding: var(--s-4) var(--s-8); border-radius: var(--r-tab); font-size: var(--label-size); line-height: 20px; font-weight: 500; cursor: pointer; list-style: none; --od-icon-size: 14px; }
.dnav summary::-webkit-details-marker { display: none; }
.dnav summary .od-icon { margin-left: auto; color: var(--color-muted); transition: transform var(--t-base) var(--ease); }
.dnav details[open] > summary .od-icon { transform: rotate(180deg); }
@media (hover: hover) { .dnav summary:hover, .dnav li a:hover { background: var(--color-control); } }
.dnav-g + .dnav-g { margin-top: 2px; }
.dnav-g ul { padding: 2px 0 var(--s-8) var(--s-8); display: grid; gap: 1px; }
.dnav li a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); padding: 5px var(--s-8); border-radius: var(--r-tab); font-size: var(--caption-size); line-height: 20px; color: var(--color-support); overflow-wrap: anywhere; }
.dnav li a[aria-current="page"] { background: var(--color-selected); color: var(--color-ink); font-weight: 500; }
.dnav-p summary { font-weight: 450; }
.dnav-p summary svg.pl { width: 14px; height: 14px; flex: none; fill: var(--color-support); }
.dnav-n { margin-left: auto; font-family: var(--font-mono); font-size: var(--chapter-size); color: var(--color-muted); }
.dnav-h { display: flex; justify-content: space-between; gap: var(--s-8); margin: var(--s-16) 0 var(--s-4); padding: var(--s-12) var(--s-8) var(--s-4); border-top: 1px solid var(--color-rule); font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; text-transform: uppercase; color: var(--color-muted); }
.dnav-h span { text-transform: none; }
.dnav-empty { padding: var(--s-16) var(--s-8); font-size: var(--label-size); color: var(--color-muted); }
.dnav-toggle { display: none; }
.darticle { min-width: 0; padding: var(--s-40) clamp(20px, 4vw, 56px) var(--s-88); }
.darticle > * { max-width: 760px; }
.dhead { display: grid; gap: var(--s-12); padding-bottom: var(--s-32); border-bottom: 1px solid var(--color-rule); }
.dhead .crumbs { justify-content: flex-start; margin-bottom: 0; }
.dhead h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dlead { font-size: var(--feature-size); line-height: 1.5; color: var(--color-support); }
.dline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); font-size: var(--label-size); color: var(--color-accent-ink); }
.dfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--s-24) 0 0; border: 1px solid var(--color-rule); }
.dfacts div { display: grid; gap: var(--s-4); padding: var(--s-16) var(--s-20); min-width: 0; }
.dfacts div + div { border-left: 1px solid var(--color-rule); }
.dfacts dt { font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; text-transform: uppercase; color: var(--color-muted); }
.dfacts dd { margin: 0; font-size: var(--label-size); line-height: 20px; overflow-wrap: anywhere; }
.dfacts code { font-size: var(--caption-size); }
.darticle .prose { padding: var(--s-32) 0 0; }
.darticle .prose > * { max-width: none; }
.darticle .prose > .code-panel, .darticle .prose > .tbl-wrap { margin-top: var(--s-20); }
.darticle .prose h2 { margin-top: var(--s-40); }
.darticle .prose .tbl { min-width: 520px; }
.darticle .prose .tbl td code, .darticle .prose .tbl th code { color: var(--color-accent-ink); background: none; padding: 0; }
.drel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12); margin-top: var(--s-24); }
.drel a { display: grid; gap: 2px; padding: var(--s-16) var(--s-20); border: 1px solid var(--color-rule); border-radius: var(--r-panel); text-decoration: none !important; transition: background-color var(--t-base) var(--ease); }
.drel a b { font-size: var(--label-size); line-height: 20px; font-weight: 500; color: var(--color-ink); }
.drel a span { font-size: var(--caption-size); line-height: 20px; color: var(--color-muted); }
@media (hover: hover) { .drel a:hover, .dpager a:hover { background: var(--color-control); } }
.dpager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12); margin-top: var(--s-56); padding-top: var(--s-24); border-top: 1px solid var(--color-rule); }
.dpager a { display: grid; gap: 2px; padding: var(--s-12) var(--s-16); border: 1px solid var(--color-rule); border-radius: var(--r-panel); transition: background-color var(--t-base) var(--ease); }
.dpager a.is-next { text-align: right; }
.dpager a span { font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 16px; text-transform: uppercase; color: var(--color-muted); }
.dpager a b { font-size: var(--label-size); line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.dtoc { position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto; border-right: 0; border-left: 1px solid var(--color-rule); min-height: 240px; padding: var(--s-40) var(--s-24); scrollbar-width: thin; }
.dtoc .toc-in { position: static; }
.dtoc a { padding: var(--s-4) 0; font-size: var(--caption-size); }
.docs-band { padding-inline: 0; }
.docs-band .rails { border-inline: 0; border-bottom: 1px solid var(--color-rule); }
@media (max-width: 1199px) {
  .docs-grid { grid-template-columns: 248px minmax(0, 1fr); }
  .dtoc { display: none; }
}
@media (max-width: 899px) {
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .dnav-toggle { display: inline-flex; margin: var(--s-12) var(--s-16); --od-icon-size: 14px; }
  .dnav { display: none; position: static; height: auto; max-height: 70vh; border-right: 0; border-bottom: 1px solid var(--color-rule); }
  .dnav.is-open { display: flex; }
  .darticle { padding: var(--s-24) var(--s-20) var(--s-64); }
  .dfacts { grid-template-columns: minmax(0, 1fr); }
  .dfacts div + div { border-left: 0; border-top: 1px solid var(--color-rule); }
  .drel, .dpager { grid-template-columns: minmax(0, 1fr); }
}
.darticle .prose .tbl th:first-child, .darticle .prose .tbl td:first-child { white-space: nowrap; }

/* ---------- changelog and status ---------- */
.entry { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: var(--s-24); padding: var(--s-32) var(--s-28); border-bottom: 1px solid var(--color-rule); }
.entry time { font-family: var(--font-mono); font-size: var(--chapter-size); line-height: 32px; color: var(--color-accent-ink); }
.entry h2 { font-size: var(--subheading-size); line-height: var(--subheading-line); font-weight: 500; letter-spacing: -0.01em; }
.prose-in { max-width: 68ch; color: var(--color-support); line-height: 1.6; }
.prose-in > * { margin-top: var(--s-12); }
.prose-in ul, .prose-in ol { padding-left: var(--s-20); display: grid; gap: var(--s-4); }
.prose-in ul { list-style: disc; } .prose-in ol { list-style: decimal; }
.prose-in a, .status-box a { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose-in :not(pre) > code, .status-box code { font-size: 0.875em; padding: 2px 6px; border-radius: var(--s-4); background: var(--color-control); color: var(--color-ink); overflow-wrap: anywhere; }
.status-box { padding: var(--s-32) var(--s-28); border-bottom: 1px solid var(--color-rule); }
.status-hero { display: flex; align-items: center; gap: var(--s-12); font-size: var(--subheading-size); line-height: var(--subheading-line); font-weight: 500; letter-spacing: -0.01em; }
.status-list { margin-top: var(--s-24); border: 1px solid var(--color-rule); border-radius: var(--r-panel); }
.status-list li { display: flex; align-items: center; gap: var(--s-12); padding: var(--s-12) var(--s-16); font-size: var(--label-size); line-height: 20px; }
.status-list li + li { border-top: 1px solid var(--color-rule); }
.status-list .grow { flex: 1 1 0; min-width: 0; }
.status-list .meta, .status-box .small { color: var(--color-muted); font-size: var(--label-size); line-height: 20px; }
.status-box .small { margin-top: var(--s-12); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--color-annotation); }
.dot.ok { background: var(--color-spark); } .dot.warn { background: var(--color-status); } .dot.bad { background: var(--color-danger); }
@media (max-width: 767px) { .entry { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); padding: var(--s-24) var(--s-20); } }

/* ---------- free tool pages ---------- */
.tool-lists.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-lists.is-even .check-list b { font-weight: 500; color: var(--color-ink); }

/* a sample card whose labels are field names */
.kv.is-wide { grid-template-columns: max-content minmax(0, 1fr); }
.kv.is-wide dt { max-width: 22ch; overflow-wrap: anywhere; }

/* ---------- Inner-page header (kit.mjs hero(), owner's design of 2026-11-16) ----------
   The export keeps each part of the headline on one line (`.hero h1 span { white-space: nowrap }`), which holds for
   its sample headings at 56px in the seven-square middle. Some of the site's headings are longer ("Google Ads
   Transparency advertiser search API", "alternatives for social media data") and would run out of the middle over
   the tiles, so on these headers a part wraps, evenly. The header then takes as many rows as its text needs
   (hero-rows.mjs): 6 and 7 (`is-roomy`) are the export's, 8 to 11 continue them a square at a time (a free tool's
   header holds its box as well as its text, so those are the tall ones). */
.framed .hero.is-short h1 span { white-space: normal; }
.framed .hero.is-short h1, .framed .hero.is-short h1 span { text-wrap: balance; }
/* A headline with one word wider than the middle (an exception name on an error page) is set smaller by `--fit`,
   and may break inside the word on a phone rather than run off the screen. */
.framed .hero.is-short h1[style] { font-size: clamp(16px, calc(6vw * var(--fit)), calc(56px * var(--fit))); overflow-wrap: anywhere; }
@media (min-width: 1200px) {
  .framed .hero.is-short h1[style] { font-size: calc(56px * var(--fit)); }
  .framed .hero.is-short.rows-8 { min-height: 808px; height: 808px; }
  .framed .hero.is-short.rows-8 .reg-grid::after { height: 605px; }
  .framed .hero.is-short.rows-8 .rails { min-height: 707px; }
  .framed .hero.is-short.rows-9 { min-height: 909px; height: 909px; }
  .framed .hero.is-short.rows-9 .reg-grid::after { height: 706px; }
  .framed .hero.is-short.rows-9 .rails { min-height: 808px; }
  .framed .hero.is-short.rows-10 { min-height: 1010px; height: 1010px; }
  .framed .hero.is-short.rows-10 .reg-grid::after { height: 807px; }
  .framed .hero.is-short.rows-10 .rails { min-height: 909px; }
  .framed .hero.is-short.rows-11 { min-height: 1111px; height: 1111px; }
  .framed .hero.is-short.rows-11 .reg-grid::after { height: 908px; }
  .framed .hero.is-short.rows-11 .rails { min-height: 1010px; }
  /* A free tool's header that has grown under an open result (the export's `is-open`, sized by the script in
     site/assets/nd.js): said again here so it wins over the row sizes above, which are as specific. */
  .framed .hero.is-short.is-open { min-height: var(--hero-h); height: var(--hero-h); }
  .framed .hero.is-short.is-open .reg-grid::after { height: var(--clear-h); }
  .framed .hero.is-short.is-open .rails { min-height: 0; }
}

/* The export's seven-row hero rules of 2026-11-18 are written for the homepage (".framed .hero.is-long", owner's
   comment "Homepage hero"), but every inner header carries is-long too (with is-short), and coming later in the
   stylesheet they would grow each one from six rows to seven. Inner headers keep the export's own is-short height;
   is-roomy (seven rows) and is-open (measured) keep theirs. */
@media (min-width: 1200px) {
  .framed .hero.is-long.is-short:not(.is-roomy):not(.is-open) { min-height: 606px; height: 606px; }
}
