@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/geist-latin-wght-normal-35ac21v7.woff2") format("woff2-variations"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/geist-mono-latin-wght-normal-20re3ypc.woff2") format("woff2-variations"); }
/* Tokens. Every colour, size, radius, shadow and duration the site uses is named here; the other
   stylesheets use only var(--…). Fonts are declared by scripts/build-client.ts (hashed file names). */

:root {
  color-scheme: dark;

  /* ---- neutrals: one hue, stepped in lightness ---- */
  --neutral-hue: 270;
  --bg-lch: 0.135 0.004 var(--neutral-hue); /* as a triple: the backdrop shader reads it */
  --bg: oklch(var(--bg-lch));
  --bg-raised: oklch(0.158 0.005 var(--neutral-hue));
  --bg-sunk: oklch(0.118 0.004 var(--neutral-hue));
  --surface-1: oklch(0.178 0.006 var(--neutral-hue));
  --surface-2: oklch(0.205 0.007 var(--neutral-hue));
  --surface-3: oklch(0.24 0.008 var(--neutral-hue));
  --text-1: oklch(0.965 0.002 var(--neutral-hue));
  --text-2: oklch(0.76 0.006 var(--neutral-hue));
  --text-3: oklch(0.6 0.008 var(--neutral-hue));
  --text-faint: oklch(0.42 0.008 var(--neutral-hue));
  --ink: oklch(0.16 0.004 var(--neutral-hue)); /* text on a white control */
  --white: oklch(1 0 0);

  /* hairlines and washes: white at low alpha, so they sit on any surface */
  --line-1: oklch(1 0 0 / 0.075);
  --line-2: oklch(1 0 0 / 0.13);
  --line-3: oklch(1 0 0 / 0.22);
  --wash-1: oklch(1 0 0 / 0.025);
  --wash-2: oklch(1 0 0 / 0.05);
  --wash-3: oklch(1 0 0 / 0.075);
  --wash-4: oklch(1 0 0 / 0.15);
  --wash-5: oklch(1 0 0 / 0.34);
  --scrim: oklch(0 0 0 / 0.5);
  --scrim-deep: oklch(0.07 0.004 var(--neutral-hue) / 0.62);

  /* ---- accent: set by the palette (see the end of this file) ---- */
  --accent: oklch(var(--A));
  --accent-hover: oklch(var(--A-hi));
  --accent-dim: oklch(var(--A) / 0.14);
  --accent-line: oklch(var(--A) / 0.38);
  --accent-glow: oklch(var(--A) / 0.8);
  --on-accent: oklch(0.2 0.04 var(--Ah));
  --tone-b: oklch(var(--B));
  --tone-c: oklch(var(--C));

  /* ---- surfaces made of more than one colour ---- */
  --panel: linear-gradient(oklch(0.182 0.006 var(--neutral-hue)), oklch(0.166 0.005 var(--neutral-hue)));
  --panel-accent: linear-gradient(oklch(var(--A) / 0.075), oklch(var(--A) / 0.02));
  --tile: linear-gradient(oklch(0.27 0.008 var(--neutral-hue)), oklch(0.215 0.007 var(--neutral-hue)));
  --tile-chip: oklch(0.96 0.003 var(--neutral-hue)); /* behind a logo that is dark on a clear ground */
  --glass: linear-gradient(oklch(0.21 0.007 var(--neutral-hue) / 0.7), oklch(0.16 0.005 var(--neutral-hue) / 0.8));
  --glass-bar: oklch(var(--bg-lch) / 0.72);
  --glass-chip: oklch(0.16 0.005 var(--neutral-hue) / 0.5);
  --glass-button: oklch(0.16 0.005 var(--neutral-hue) / 0.6);
  --glass-blur: blur(22px) saturate(1.6);
  --title-fill: linear-gradient(180deg, var(--white) 24%, oklch(0.9 0.035 var(--Ah)) 112%);
  --hairline-fade: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
  --hairline-accent: linear-gradient(90deg, transparent, var(--line-2) 18%, oklch(var(--A) / 0.55) 38%, oklch(var(--B) / 0.45) 50%, oklch(var(--C) / 0.6) 62%, var(--line-2) 82%, transparent);
  --edge-accent: linear-gradient(100deg, oklch(var(--A) / 0.7), oklch(var(--B) / 0.3) 26%, transparent 44%, transparent 60%, oklch(var(--C) / 0.7));
  --stripes: repeating-linear-gradient(-45deg, var(--wash-1) 0 1px, transparent 1px 7px);

  /* ---- shadows ---- */
  --lit: inset 0 1px 0 oklch(1 0 0 / 0.05); /* a surface lit from above */
  --lit-strong: inset 0 1px 0 oklch(1 0 0 / 0.08);
  --shadow-key: inset 0 -1px 0 oklch(0 0 0 / 0.35);
  --shadow-lift: 0 14px 30px -16px oklch(0 0 0 / 0.8);
  --shadow-float: 0 24px 60px -18px oklch(0 0 0 / 0.7), 0 2px 6px oklch(0 0 0 / 0.3);
  --shadow-deep: 0 40px 90px -40px oklch(0 0 0 / 0.9);
  --shadow-menu: 0 34px 60px -24px oklch(0 0 0 / 0.85);
  --shadow-solid: inset 0 -1px 0 oklch(0 0 0 / 0.16), 0 1px 2px oklch(0 0 0 / 0.45); /* a white control */
  --shadow-well: 0 20px 50px -24px oklch(0 0 0 / 0.8);
  --shadow-toast: 0 12px 30px -8px oklch(0 0 0 / 0.6);
  --shadow-accent: inset 0 1px 0 oklch(1 0 0 / 0.5), inset 0 -1px 0 oklch(0.45 0.12 var(--Ah) / 0.3), 0 0 0 1px oklch(var(--A) / 0.3), 0 10px 24px -12px oklch(var(--A) / 0.7);
  --shadow-accent-quiet: inset 0 1px 0 oklch(1 0 0 / 0.45), inset 0 -1px 0 oklch(0.45 0.12 var(--Ah) / 0.3), 0 1px 2px oklch(0 0 0 / 0.5), 0 14px 26px -16px oklch(0 0 0 / 0.85); /* the accent button with no glow of its own colour: it stands on a dark shadow */
  --shadow-accent-hover: inset 0 1px 0 oklch(1 0 0 / 0.6), inset 0 -1px 0 oklch(0.45 0.12 var(--Ah) / 0.3), 0 0 0 1px oklch(var(--A) / 0.45), 0 12px 30px -10px oklch(var(--A) / 0.85);
  --shadow-tile-accent: inset 0 1px 0 oklch(1 0 0 / 0.4), 0 0 0 1px oklch(var(--A) / 0.3), 0 8px 20px -8px oklch(var(--A) / 0.6);
  --ring: 0 0 0 4px var(--accent-dim);
  --glow-dot: 0 0 10px var(--accent-glow);
  /* the search field sits on the backdrop and picks up all three palette tones */
  --shadow-search: var(--lit-strong), var(--shadow-float), -150px 36px 90px -56px oklch(var(--A) / 0.3), 0 44px 90px -50px oklch(var(--B) / 0.32), 150px 36px 90px -56px oklch(var(--C) / 0.42);
  --shadow-search-focus: var(--lit-strong), var(--ring), 0 24px 60px -18px oklch(0 0 0 / 0.7), -150px 36px 90px -50px oklch(var(--A) / 0.42), 0 44px 90px -46px oklch(var(--B) / 0.4), 150px 36px 90px -50px oklch(var(--C) / 0.5);

  /* ---- type ---- */
  --font-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-features: "ss01", "cv11";
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --text-2xs: 11.5px;
  --text-xs: 12.5px;
  --text-sm: 13.5px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 19px;
  --text-stat: 26px;
  --text-lede: clamp(15px, 1.25vw, 17px);
  --text-lead: clamp(16px, 1.3vw, 18px);
  --text-card-title: clamp(17px, 1.38vw, 20px);
  --text-h1: clamp(32px, 4.6vw, 58px); /* a page's title */
  --text-h2: clamp(34px, 4.8vw, 64px); /* a home section's title */
  --text-display: clamp(40px, 6.4vw, 84px); /* the hero */
  --text-display-xl: clamp(42px, 7.2vw, 100px); /* the closing section */

  --leading-flat: 1;
  --leading-tight: 1.04;
  --leading-snug: 1.22;
  --leading-normal: 1.45;
  --leading-relaxed: 1.55;
  --tracking-display: -0.05em;
  --tracking-heading: -0.04em;
  --tracking-title: -0.022em;
  --tracking-snug: -0.012em;

  /* ---- space ---- */
  --space-1: 4px;
  --space-2: 6px;
  --space-3: 8px;
  --space-4: 10px;
  --space-5: 12px;
  --space-6: 14px;
  --space-7: 16px;
  --space-8: 20px;
  --space-9: 24px;
  --space-10: 28px;
  --space-11: 36px;
  --space-12: 48px;
  --gutter: clamp(16px, 3.2vw, 40px); /* the page's side padding */
  --gap-section: clamp(88px, 11.5vw, 176px); /* between home sections */
  --gap-block: clamp(48px, 5.6vw, 80px); /* between a page's sections */
  --gap-head: clamp(28px, 3.8vw, 52px); /* around a page's title */
  --gap-card: clamp(20px, 2vw, 28px); /* a large card's padding */

  /* ---- shape ---- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --radius-3xl: 20px;
  --radius-pill: 999px;

  /* ---- layout ---- */
  --page: 1360px; /* one width for the top bar and every page, so their edges line up */
  --measure: 35em;
  --measure-wide: 44em;
  --bar: 56px; /* the top bar's height */
  --rail: 216px; /* the directory's filter column */
  --card-min: 292px;
  --col-check: 46px; /* a wide table's columns */
  --col-name: 240px;
  --col-price: 300px;
  --col-note: 240px;
  --control: 32px;
  --control-lg: 38px;
  --control-xl: 46px;
  --control-hero: 60px;
  --tap: 44px; /* the smallest target on a touch screen */
  --icon: 16px;
  --page-icon: 60px; /* the tile beside a page's title */

  /* ---- layers ---- */
  --z-content: 1;
  --z-hero: 5;
  --z-directory: 6;
  --z-bar: 30;
  --z-toast: 60;
  --z-scrim: 70;
  --z-palette: 80;

  /* ---- motion ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-swap: cubic-bezier(0.6, 0, 0.2, 1);
  --fast: 0.12s;
  --medium: 0.2s;
  --slow: 0.3s;
  --enter: 0.8s;

  /* ---- code colours: fixed hues, not part of the palette ---- */
  --code-key: oklch(0.83 0.085 245);
  --code-string: oklch(0.87 0.125 128);
  --code-number: oklch(0.82 0.12 62);
  --code-keyword: oklch(0.78 0.13 320);
  --code-mark: oklch(0.55 0.008 var(--neutral-hue));

  /* ---- the API QA score letters that earn a colour (B and up): B is yellow, A and A+ teal. Fixed hues, not part of the palette. C and below stay grey ---- */
  --score-b: oklch(0.86 0.14 98);
  --score-a: oklch(0.82 0.12 182);

  /* ---- states of a recorded fact ---- */
  --state-yes: var(--accent);
  --state-no: var(--text-2);
  --state-unknown: var(--text-3);
}

/* Palettes: one attribute on <html> swaps every colour. A palette is one colour family: an accent
   (--A), two neighbours (--B, --C) as OKLCH triples, the accent's hue (--Ah) and its hover (--A-hi).
   --backdrop-gain trims the drawn backdrop's brightness for that palette (measured, not chosen).
   The first selector also covers a page with no attribute; the default itself is src/theme.ts. */
:root,
[data-palette="ember"] { --A: 0.83 0.16 70; --B: 0.72 0.19 47; --C: 0.58 0.2 27; --Ah: 70; --A-hi: 0.87 0.16 70; --backdrop-gain: 1; }
[data-palette="borealis"] { --A: 0.87 0.17 158; --B: 0.78 0.13 188; --C: 0.68 0.12 222; --Ah: 158; --A-hi: 0.91 0.17 158; --backdrop-gain: 1; }
[data-palette="glacier"] { --A: 0.9 0.055 228; --B: 0.76 0.1 245; --C: 0.6 0.15 265; --Ah: 228; --A-hi: 0.94 0.055 228; --backdrop-gain: 1; }
[data-palette="violet"] { --A: 0.78 0.15 300; --B: 0.68 0.17 284; --C: 0.58 0.19 268; --Ah: 300; --A-hi: 0.82 0.15 300; --backdrop-gain: 1.15; }

/* Reset, document defaults and the few utilities every page uses. */

*, *::before, *::after { box-sizing: border-box; }
/* the scrollbar's space is always kept, so locking the scroll (the palette, the phone menu) never shifts the page */
html { background: var(--bg); scroll-behavior: smooth; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--wash-4) transparent; -webkit-text-size-adjust: 100%; }
/* the footer sits at the bottom of the window on a page shorter than it */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; min-width: 320px; font-family: var(--font-sans); font-size: var(--text-base); line-height: var(--leading-normal); font-feature-settings: var(--font-features); color: var(--text-1); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
svg { display: block; flex: none; }
code, pre, kbd { font-family: var(--font-mono); }
q { quotes: "“" "”"; }
[hidden] { display: none !important; }
::selection { background: oklch(var(--A) / 0.3); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-xs); }
main { position: relative; flex: 1 0 auto; min-width: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; z-index: var(--z-toast); }
.skip:focus { left: var(--space-7); top: var(--space-7); padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm); background: var(--text-1); color: var(--ink); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: var(--icon); height: var(--icon); stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* a value nobody has supplied yet, shown as what it is */
.ph { font-family: var(--font-mono); font-size: 0.86em; color: var(--text-3); letter-spacing: -0.01em; white-space: nowrap; }

.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-xs); border: 1px solid var(--line-2); background: var(--surface-1); box-shadow: var(--shadow-key); font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--text-3); }

mark { background: var(--accent-dim); color: var(--accent); border-radius: 3px; padding: 0 1px; }

/* link inside running text */
.link { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: color var(--fast), text-decoration-color var(--fast); }
.link:hover { color: var(--text-1); text-decoration-color: var(--text-1); }

.dim { color: var(--text-3); }

/* entrances: each element rises once, in order */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade { from { opacity: 0; } }
.rise { animation: rise var(--enter) var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

/* motion off: by the theme setting, or by the visitor's own preference */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Parts used on more than one page. Each matches a component in src/components/. */

/* ---- button ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: var(--control); padding: 0 var(--space-5); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: var(--weight-medium); white-space: nowrap; transition: background var(--fast), border-color var(--fast), color var(--fast), transform 0.08s; }
.btn:active { transform: translateY(0.5px); }
.btn--solid { background: var(--text-1); color: var(--ink); box-shadow: var(--shadow-solid); }
.btn--solid:hover { background: var(--white); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text-1); background: var(--wash-1); box-shadow: var(--lit); }
.btn--ghost:hover { border-color: var(--line-3); background: var(--wash-3); }
.btn--accent { background: var(--accent); color: var(--on-accent); font-weight: var(--weight-semibold); box-shadow: var(--shadow-accent); }
.btn--accent:hover { background: var(--accent-hover); box-shadow: var(--shadow-accent-hover); }
.btn--lg { height: var(--control-lg); padding: 0 var(--space-6); border-radius: var(--radius-md); font-size: var(--text-base); }
.btn--xl { height: var(--control-xl); padding: 0 18px; border-radius: var(--radius-lg); font-size: var(--text-md); }
.btn--xl .icon { width: 15px; height: 15px; stroke-width: 1.8; }
.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* ---- small labels ---- */
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: var(--radius-xs); border: 1px solid var(--line-1); background: var(--wash-1); font-size: var(--text-xs); color: var(--text-2); white-space: nowrap; transition: border-color var(--fast), color var(--fast); }
a.chip:hover { border-color: var(--line-3); color: var(--text-1); }
.chip--lg { height: 30px; padding: 0 11px; border-radius: var(--radius-md); font-size: var(--text-sm); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--radius-xs); border: 1px solid var(--line-1); font-size: var(--text-2xs); color: var(--text-3); white-space: nowrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-2); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); box-shadow: var(--glow-dot); }

/* a recorded yes / no / not stated. Colour is never the only signal: the word is always there. */
.status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); white-space: nowrap; color: var(--state-unknown); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.status[data-state="yes"] { color: var(--state-yes); }
.status[data-state="yes"]::before { border: 0; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim), var(--glow-dot); }
.status[data-state="no"] { color: var(--state-no); }
.status[data-state="unverified"] { font-style: italic; }

/* ---- letter tile: stands in for a logo ---- */
.tile { display: flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--tile); border: 1px solid var(--line-2); box-shadow: var(--lit-strong); font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: -0.02em; color: var(--text-1); }
.tile--own { background: var(--accent); border-color: transparent; color: var(--on-accent); box-shadow: var(--shadow-tile-accent); }
.tile--sm { width: 28px; height: 28px; border-radius: var(--radius-sm); font-size: 10.5px; }
.tile--xl { width: 60px; height: 60px; border-radius: var(--radius-2xl); font-size: 18px; }
.tile--icon { color: var(--text-2); }
/* a company's own logo: it fills the tile; a dark mark on a clear ground gets a light chip behind it */
.tile--logo { overflow: hidden; padding: 0; }
.tile--logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tile--chip { background: var(--tile-chip); border-color: transparent; }
.tile--chip img { padding: 12%; }
.tile--icon .icon { width: 26px; height: 26px; stroke-width: 1.4; }
/* the tile beside the title of a page about a kind of thing (parts.tsx KindTile): the one place a kind's icon is
   given the accent, as a wash that falls away from the top left corner. In a list the icons stay quiet beside logos. */
.tile--kind { background: linear-gradient(145deg, color-mix(in oklch, var(--accent) 30%, transparent), color-mix(in oklch, var(--accent) 6%, transparent)); border-color: color-mix(in oklch, var(--accent) 26%, transparent); box-shadow: none; color: var(--accent); }
.tile--kind .icon { width: 28px; height: 28px; stroke-width: 1.5; }
@media (max-width: 759px) {
  .tile--kind .icon { width: 25px; height: 25px; }
}
.tile--sm.tile--icon .icon { width: 15px; height: 15px; stroke-width: 1.5; }

/* ---- directory card ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--card-min), 100%), 1fr)); gap: var(--space-6); }
.card { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 214px; padding: 15px var(--space-7) 13px; border-radius: var(--radius-xl); background: var(--panel); border: 1px solid var(--line-1); box-shadow: var(--lit); transition: border-color 0.14s, transform 0.14s, box-shadow 0.14s; }
a.card:hover { border-color: var(--line-3); transform: translateY(-1px); box-shadow: var(--lit), var(--shadow-lift); }
.card__head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.card__name { min-width: 0; }
.card__name b { display: block; font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: -0.018em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__name span { display: block; font-size: var(--text-xs); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__go { margin-left: auto; align-self: flex-start; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: var(--radius-sm); color: var(--text-3); opacity: 0; transform: translateX(-3px); transition: opacity 0.14s, transform 0.14s; }
a.card:hover .card__go, a.card:focus-visible .card__go { opacity: 1; transform: none; }
.card__go--agent { color: var(--accent); }
.card__desc { margin-top: var(--space-6); min-height: 2lh; font-size: var(--text-sm); color: var(--text-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.card__facts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-1) var(--space-6); margin-top: 13px; padding-top: var(--space-5); border-top: 1px solid var(--line-1); }
.card__facts dt { font-size: var(--text-2xs); color: var(--text-3); }
.card__facts dd { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.card__foot { display: flex; align-items: center; gap: var(--space-2); margin-top: auto; padding-top: var(--space-6); min-width: 0; }
.card__foot .chips { flex-wrap: nowrap; gap: 5px; min-width: 0; overflow: hidden; }
.card__foot .status { margin-left: auto; }
/* light follows the pointer (src/client/site.ts sets --mx and --my) */
@media (hover: hover) {
  a.card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), var(--wash-3), transparent 64%); opacity: 0; transition: opacity var(--slow); }
  a.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), oklch(var(--A) / 0.7), var(--line-3) 46%, transparent 72%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity var(--slow); }
  a.card:hover::before, a.card:hover::after { opacity: 1; }
}

/* ---- copy button and the row that holds a command or link to copy ---- */
.copy { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: var(--radius-sm); color: var(--text-3); transition: color var(--fast), background var(--fast); }
.copy:hover { color: var(--text-1); background: var(--wash-3); }
.copy .icon { width: 15px; height: 15px; transition: opacity 0.15s, transform 0.15s; }
.copy__done { position: absolute; opacity: 0; transform: scale(0.6); color: var(--accent); stroke-width: 1.8; }
.copy.is-done .icon:not(.copy__done) { opacity: 0; transform: scale(0.6); }
.copy.is-done .copy__done { opacity: 1; transform: none; }
.cmd { display: flex; align-items: center; gap: var(--space-3); height: 40px; padding: 0 var(--space-2) 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--line-2); background: var(--bg); font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.cmd > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd--glass { height: 54px; max-width: 460px; padding: 0 9px 0 18px; border-radius: var(--radius-2xl); font-size: var(--text-base); background: var(--glass); box-shadow: var(--lit-strong), var(--shadow-well); }

/* ---- code window ---- */
.codewin { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-xl); background: var(--bg-sunk); overflow: hidden; box-shadow: var(--lit); }
.codewin__tabs { display: flex; align-items: stretch; height: 42px; padding: 0 var(--space-2); border-bottom: 1px solid var(--line-1); background: var(--wash-1); overflow-x: auto; scrollbar-width: none; }
.codewin__tab { display: inline-flex; align-items: center; flex: none; padding: 0 var(--space-5); font-family: var(--font-mono); font-size: 12px; color: var(--text-3); transition: color var(--fast); }
.codewin__tab:hover { color: var(--text-1); }
.codewin__tab[aria-selected="true"] { color: var(--text-1); box-shadow: inset 0 -1.5px 0 var(--accent); }
.codewin__panel { position: relative; }
.codewin__panel .copy { position: absolute; top: var(--space-2); right: var(--space-3); background: var(--bg-sunk); }
.codewin pre { display: flex; margin: 0; padding: var(--space-6) 0; overflow: auto; max-height: 400px; font-size: 12.75px; line-height: 1.7; color: var(--text-2); tab-size: 2; }
.codewin__lines { flex: none; width: 46px; padding-right: var(--space-7); text-align: right; color: var(--text-faint); user-select: none; white-space: pre; }
.codewin code { display: block; padding-right: var(--space-8); white-space: pre; }
.tok-key { color: var(--code-key); }
.tok-string { color: var(--code-string); }
.tok-number { color: var(--code-number); }
.tok-keyword { color: var(--code-keyword); }
.tok-mark { color: var(--code-mark); }
.tok-placeholder { color: var(--text-3); font-style: italic; }

/* ---- notes and empty states ---- */
.note { padding: 13px var(--space-6); border-radius: var(--radius-lg); border: 1px solid var(--line-1); background: var(--wash-1); font-size: var(--text-sm); line-height: 1.5; color: var(--text-2); }
.note b { color: var(--text-1); font-weight: var(--weight-semibold); }
.fine { font-size: var(--text-xs); color: var(--text-3); }
.extra { display: block; font-size: var(--text-xs); color: var(--text-3); }
.empty { color: var(--text-3); font-style: italic; }
.empty-box { grid-column: 1 / -1; padding: 56px var(--space-8); border: 1px dashed var(--line-2); border-radius: var(--radius-xl); text-align: center; color: var(--text-2); font-size: var(--text-md); }
.empty-box b { display: block; font-size: 16px; color: var(--text-1); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.empty-box a { color: var(--accent); font-weight: var(--weight-medium); }
.empty-box a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- numbers about a thing ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: var(--space-4); }
.stats > div { padding: var(--space-7) 18px; border: 1px solid var(--line-1); border-radius: var(--radius-xl); background: var(--surface-1); }
.stats dt { font-size: var(--text-xs); color: var(--text-3); }
.stats dd { margin-top: var(--space-2); font-size: var(--text-stat); font-weight: var(--weight-semibold); letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats dd.is-text { font-size: var(--text-md); letter-spacing: var(--tracking-snug); line-height: var(--leading-normal); }
.stats dd code { font-size: var(--text-sm); font-weight: var(--weight-regular); letter-spacing: 0; color: var(--text-2); }

/* ---- table ---- */
.table { overflow-x: auto; border: 1px solid var(--line-1); border-radius: var(--radius-lg); }
.table:focus-visible { border-radius: var(--radius-lg); }
.table table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
/* A wide table keeps every column at a readable width and scrolls sideways, with the name of each
   row (and its tick box, where there is one) pinned so the row is never unlabelled. */
.table--wide { scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
.table--wide table { width: max-content; min-width: 100%; }
.table--wide th, .table--wide td { white-space: nowrap; }
.table--wide tbody th { position: sticky; left: 0; z-index: var(--z-content); min-width: var(--col-name); max-width: var(--col-name); white-space: normal; background: var(--bg); box-shadow: 1px 0 0 var(--line-1); }
.table--wide thead th:first-child { position: sticky; left: 0; z-index: var(--z-content); background: var(--bg-raised); box-shadow: 1px 0 0 var(--line-1); }
.table--wide td.price, .table--wide td .price { white-space: normal; min-width: var(--col-price); max-width: var(--col-price); }
.table--wide td .extra { white-space: normal; max-width: var(--col-note); }
/* with a tick-box column, both it and the name are pinned */
.pick .table--wide thead th:first-child, .pick .table--wide .pick__cell { position: sticky; left: 0; z-index: var(--z-content); width: var(--col-check); min-width: var(--col-check); box-shadow: none; }
.pick .table--wide .pick__cell { background: var(--bg); }
.pick .table--wide thead th:nth-child(2) { position: sticky; left: var(--col-check); z-index: var(--z-content); background: var(--bg-raised); box-shadow: 1px 0 0 var(--line-1); }
.pick .table--wide tbody th { left: var(--col-check); }
.table caption { caption-side: top; text-align: left; padding: var(--space-4) var(--space-6); font-size: var(--text-xs); color: var(--text-3); border-bottom: 1px solid var(--line-1); }
.table thead th, .table thead td { text-align: left; font-weight: var(--weight-medium); font-size: var(--text-xs); color: var(--text-3); padding: var(--space-4) var(--space-6); background: var(--wash-1); white-space: nowrap; }
.table tbody th, .table tbody td { padding: 11px var(--space-6); border-top: 1px solid var(--line-1); vertical-align: top; text-align: left; }
.table tbody th { font-weight: var(--weight-semibold); }
.table tbody th a:hover { text-decoration: underline; text-underline-offset: 3px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table [data-state="yes"] { color: var(--state-yes); }
.table [data-state="no"] { color: var(--state-no); }
.table [data-state="unverified"] { color: var(--state-unknown); font-style: italic; }
.table td a:not(.chip) { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.table td a:not(.chip):hover { text-decoration-color: var(--text-1); }
.price q { color: var(--text-1); }
.table td.seller { color: var(--text-2); }
/* the date a price was read, linking to where: quiet, and it lights up under the pointer */
.table td a.sourced { color: var(--text-2); text-decoration: none; font-variant-numeric: tabular-nums; transition: color var(--fast); }
.table td a.sourced:hover { color: var(--text-1); }
.price .unit { color: var(--text-2); }

/* ---- a list of links to other pages ---- */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: var(--space-3); }
/* names that are sentences (use cases, tasks): three columns on a wide screen, not four, so more of each is read */
.links--wide { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
/* a sentence too long for its column is cut on one line (its whole name is its title, and the page it opens), so every card in the list is the same height */
/* on the narrowest phones one line would cut most of them, so every card there holds two lines, used or not */
@media (max-width: 359px) {
  .links.links--wide .links__item b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-height: 2lh; white-space: normal; text-wrap: pretty; overflow-wrap: anywhere; }
  .links.links--wide .links__item .icon { align-self: start; margin-top: calc((1lh - 14px) / 2); }
}
/* on a phone only the tick box stays pinned: a pinned name would cover half the screen and the columns behind it */
@media (max-width: 759px) {
  .pick .table--wide tbody th, .pick .table--wide thead th:nth-child(2) { position: static; box-shadow: none; }
  .pick .table--wide thead th:first-child, .pick .table--wide .pick__cell { box-shadow: 1px 0 0 var(--line-1); }
}
/* how many of a longer list are shown, under the middle of it */
.shown { margin-top: var(--space-7); text-align: center; font-size: var(--text-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.links__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; align-content: center; gap: 2px var(--space-4); min-height: 46px; padding: var(--space-4) var(--space-5); border: 1px solid var(--line-1); border-radius: var(--radius-lg); background: var(--wash-1); font-size: var(--text-sm); transition: border-color var(--fast), background var(--fast); }
a.links__item:hover { border-color: var(--line-3); background: var(--wash-2); }
.links__item b { font-weight: var(--weight-medium); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links__item .extra { grid-column: 1 / -1; grid-row: 2; overflow-wrap: anywhere; }
.links__item .icon { grid-column: 2; grid-row: 1; width: 14px; height: 14px; color: var(--text-3); }
span.links__item { color: var(--text-2); border-style: dashed; background: none; }
/* a row that leads with a logo: the logo takes both lines, the name and what follows sit beside it */
.links__item--tile { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--space-5); }
.links__item--tile .tile { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.links__item--tile b { grid-column: 2; }
.links__item--tile .extra { grid-column: 2 / -1; }
.links__item--tile .icon { grid-column: 3; }
/* three to a row on a wide screen, where four would cut names short (.links--three). The fields a thing is found by: each the same two lines. They are code, so the name is in the code face; they lead nowhere, so they are plain boxes, not the dashed ones of a link with no page */
.links--three { grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); }
.links--keys span.links__item { border-style: solid; background: var(--wash-1); }
.links--keys .links__item b { font-weight: var(--weight-regular); }
.links--keys .links__item code { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-1); }
.links--keys .links__item .extra { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }

/* ---- a text field with an icon ---- */
.field { display: flex; align-items: center; gap: var(--space-4); height: var(--control-lg); padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--line-2); background: var(--bg); color: var(--text-3); cursor: text; transition: border-color 0.15s, box-shadow 0.15s; }
.field:hover { border-color: var(--line-3); }
.field:focus-within { border-color: var(--accent-line); box-shadow: var(--ring); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: var(--text-base); color: var(--text-1); }
.field input::placeholder { color: var(--text-3); opacity: 1; }
.field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* ---- a choice among a few: one pill is on ---- */
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); height: 30px; padding: 0 11px; border-radius: var(--radius-pill); border: 1px solid var(--line-1); background: var(--wash-1); font-size: 13px; color: var(--text-2); white-space: nowrap; transition: color var(--fast), border-color var(--fast), background var(--fast); }
.pill:hover { color: var(--text-1); border-color: var(--line-3); }
.pill span { font-size: var(--text-2xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.pill[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: var(--weight-medium); }
.pill[aria-pressed="true"] span { color: inherit; opacity: 0.7; }
.pill--more { border-style: dashed; background: none; }

/* ---- a long list, narrowed and read a step at a time (the ApiList island) ---- */
.browse > * + * { margin-top: var(--space-6); }
/* the heading row carries the count and the name filter; the actions get the whole row under it */
.browse__head { align-items: center; flex-wrap: wrap; gap: var(--space-4) var(--space-5); }
.browse > .browse__head { margin-bottom: 0; }
.browse__count { font-size: var(--text-sm); color: var(--text-3); font-variant-numeric: tabular-nums; }
.browse__head .field { margin-left: auto; width: min(320px, 100%); height: var(--control); }
/* more of the list: a line of text, not a control the size of the list */
.browse__more { display: flex; align-items: center; justify-content: center; gap: var(--space-4); font-size: var(--text-sm); color: var(--text-3); font-variant-numeric: tabular-nums; }
.browse__more button { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control); font-weight: var(--weight-medium); color: var(--text-2); transition: color var(--fast); }
.browse__more button:hover { color: var(--text-1); }
.browse__more .icon { width: 13px; height: 13px; }
/* every item the same height: the name, then at most two lines of what it does */
.links--even .links__item { align-content: start; height: calc(var(--space-4) * 2 + 2px + 1lh + 2 * var(--text-xs) * 1.45 + 2px); }
.links--even .links__item .extra { line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
/* three to a row, what an API does fits on one line: the card is two lines tall on every screen, with no empty third */
.links.links--three.links--even .links__item { height: auto; }
.links.links--three.links--even .links__item .extra { -webkit-line-clamp: 1; line-clamp: 1; }

/* ---- tick box ---- */
.check { -webkit-appearance: none; appearance: none; display: block; width: 18px; height: 18px; margin: 0; border-radius: 5px; border: 1.5px solid var(--line-3); background: var(--bg); cursor: pointer; transition: background var(--fast), border-color var(--fast), box-shadow var(--fast); }
.check:hover:not(:disabled) { border-color: var(--text-2); }
.check:checked { border-color: var(--accent); background: var(--accent) center / 12px no-repeat; background-image: linear-gradient(45deg, transparent 43%, var(--on-accent) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--on-accent) 43% 57%, transparent 57%); background-size: 5px 5px, 9px 9px; background-position: 3px 8px, 6px 4px; }
.check:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check:disabled { opacity: 0.3; cursor: default; }

/* ---- pick two rows of a table to compare (a job's APIs) ---- */
.pick { position: relative; }
/* the sponsored row over the list stays under the top bar while the list is read; the copy of the table's headings
   (client/site.ts) stays under that. Both are opaque, so the rows pass behind them. */
.pick__top { position: sticky; top: var(--bar); z-index: calc(var(--z-content) + 2); padding-top: var(--space-3); background: var(--bg); }
.pick__top .slot { margin-bottom: 0; background-color: var(--bg); }
.pick__top + .table, .pick__top + .stick + .table { margin-top: var(--space-5); }
.stick { position: sticky; top: calc(var(--bar) + var(--pick-top, 0px)); z-index: calc(var(--z-content) + 2); height: 0; }
/* stated over the corners a phone gives every table frame later in this file: the pinned headings are a square, opaque strip */
.stick > .stick__in { visibility: hidden; overflow: hidden; border-radius: 0; border-width: 0 1px 1px; background: var(--bg-raised); box-shadow: 0 var(--space-3) var(--space-5) calc(var(--space-2) * -1) var(--bg); }
.stick.is-on .stick__in { visibility: visible; }
.stick__in table { table-layout: fixed; min-width: 0; }
.stick__in thead th { background: var(--bg-raised); box-sizing: border-box; }
/* an API's logo beside its name in a table */
.table .api { display: flex; align-items: flex-start; gap: var(--space-4); }
.table .api .tile { flex: none; margin-top: -3px; }
.table .api a { min-width: 0; padding-top: 1px; }
.pick__cell { padding-right: 0 !important; vertical-align: top; }
.pick__cell .check { margin-top: 2px; }
/* opaque, so pinned cells stay readable as the row scrolls under them */
.pick tr.is-picked > * { background: color-mix(in srgb, var(--bg), var(--accent) 14%); }
.pick__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-5); padding: var(--space-4) var(--space-4) var(--space-4) var(--space-7); border-radius: var(--radius-xl); border: 1px solid var(--line-2); background: var(--surface-1); }
.pick__label { flex: 1; min-width: 0; font-size: var(--text-sm); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__bar .btn:disabled { opacity: 0.4; cursor: default; }
/* with the script running the bar floats over the table once a row is ticked, so it is never out of reach */
.pick.is-enhanced .pick__bar { position: sticky; bottom: var(--space-7); z-index: var(--z-content); width: min(560px, 100%); margin-inline: auto; background: var(--bg-raised); box-shadow: var(--lit-strong), var(--shadow-float); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--medium), transform var(--medium) var(--ease), border-color var(--medium); }
.pick.is-enhanced .pick__bar.is-open { opacity: 1; transform: none; pointer-events: auto; }
.pick.is-enhanced .pick__bar.is-ready { border-color: var(--accent-line); }
.pick.is-enhanced .pick__bar.is-ready .pick__label { color: var(--text-1); font-weight: var(--weight-medium); }

/* ---- pager: an arrow back, where you are, an arrow on ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: var(--space-5); margin-top: var(--space-9); font-size: var(--text-sm); color: var(--text-3); font-variant-numeric: tabular-nums; }
.pager__step { display: flex; align-items: center; justify-content: center; width: var(--control-lg); height: var(--control-lg); border-radius: var(--radius-md); border: 1px solid var(--line-2); background: var(--wash-1); color: var(--text-1); box-shadow: var(--lit); transition: border-color var(--fast), background var(--fast), color var(--fast); }
.pager__step:hover { border-color: var(--line-3); background: var(--wash-3); }
.pager__step[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.pager__back { transform: rotate(180deg); }
.pager__where { min-width: 9em; text-align: center; }

/* ---- toast ---- */
.toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: var(--space-9); transform: translate(-50%, 12px); display: flex; align-items: center; height: 36px; padding: 0 13px; border-radius: var(--radius-md); background: var(--text-1); color: var(--ink); font-size: 13px; font-weight: var(--weight-medium); opacity: 0; pointer-events: none; transition: opacity 0.16s, transform 0.16s; box-shadow: var(--shadow-toast); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (hover: none) { .kbd { display: none; } }

/* ---- phones: 44px to tap, 16px inputs so iOS does not zoom ---- */
@media (max-width: 759px) {
  .btn { height: var(--tap); padding: 0 var(--space-7); border-radius: 11px; font-size: var(--text-md); }
  .btn--lg { height: var(--control-xl); border-radius: var(--radius-lg); }
  .btn--xl { height: 50px; padding: 0 var(--space-8); border-radius: var(--radius-xl); font-size: 15.5px; }
  .chip--lg { height: var(--tap); padding: 0 15px; border-radius: var(--radius-lg); font-size: var(--text-md); }

  .card-grid { gap: var(--space-4); }
  .card { min-height: 0; padding: var(--space-7) var(--space-7) var(--space-6); border-radius: var(--radius-2xl); }
  .card__head { gap: var(--space-5); }
  .card .tile { width: 44px; height: 44px; border-radius: var(--radius-lg); font-size: var(--text-base); }
  .card__name b { font-size: 16.5px; }
  .card__name span { margin-top: 1px; font-size: var(--text-sm); }
  .card__go { align-self: center; width: 32px; height: 32px; opacity: 1; transform: none; }
  .card__desc { font-size: var(--text-md); }
  .card__facts { gap: var(--space-1) var(--space-7); margin-top: var(--space-6); padding-top: var(--space-6); }
  .card__facts dt { font-size: var(--text-xs); }
  .card__facts dd { font-size: var(--text-md); }
  .card__foot { gap: var(--space-3); }
  .card__foot .chip { height: 24px; padding: 0 var(--space-3); }
  a.card:hover { transform: none; }

  .copy { width: var(--tap); height: var(--tap); border-radius: 11px; }
  .cmd { height: 52px; padding: 0 var(--space-1) 0 var(--space-6); border-radius: var(--radius-lg); font-size: var(--text-sm); }
  .cmd--glass { max-width: none; }
  .codewin__tabs { height: 48px; }
  .codewin__tab { padding: 0 var(--space-6); font-size: var(--text-xs); }
  .codewin__panel .copy { top: 2px; right: var(--space-1); }

  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: var(--space-6) var(--space-7); }
  .stats dd { font-size: 24px; }
  .stats dd.is-text { font-size: var(--text-base); }

  /* wide table: the first column stays put while the facts scroll */
  .table { border-radius: var(--radius-xl); }
  .table table { font-size: var(--text-base); }

  .links__item { min-height: 56px; padding: 11px var(--space-6); font-size: var(--text-md); }
  .field { height: 48px; border-radius: var(--radius-lg); }
  .field input { font-size: 16px; }
  .browse__head .field { width: 100%; height: 48px; }
  .browse__more button { min-height: var(--tap); font-size: var(--text-base); }
  .links--even .links__item { height: calc(22px + 2px + 1lh + 2 * var(--text-xs) * 1.45 + 2px); }
  /* a row that scrolls sideways also clips top and bottom, so it keeps a little room there: a badge's edge and its focus ring are never cut */
  .pills { flex-wrap: nowrap; overflow-x: auto; margin: calc(var(--space-2) * -1) calc(var(--gutter) * -1); padding: var(--space-2) var(--gutter); scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .browse > .pills { margin-top: calc(var(--space-6) - var(--space-2)); margin-bottom: calc(var(--space-2) * -1); } /* the row above resets margins; keep the gap under the filter */
  .pill { flex: none; height: var(--tap); padding: 0 var(--space-6); font-size: var(--text-md); }
  .check { width: 22px; height: 22px; border-radius: var(--radius-xs); }
  .check:checked { background-position: 4px 10px, 8px 6px; }
  .pick__cell { padding-left: var(--space-5) !important; }
  .pick__bar { padding: var(--space-5); }
  .pick__label { flex-basis: 100%; white-space: normal; font-size: var(--text-base); }
  .pick__bar .btn { flex: 1; }
  .pick.is-enhanced .pick__bar { bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px)); }
  .pager { justify-content: space-between; }
  .pager__step { width: var(--tap); height: var(--tap); border-radius: var(--radius-lg); }
}

/* on a phone the pinned name takes less of the screen, so more of the row shows beside it */
@media (max-width: 759px) {
  :root { --col-name: 150px; --col-price: 240px; --col-note: 200px; --col-check: 46px; }
}
.pick .table--wide tr.is-picked > * { background: color-mix(in srgb, var(--bg), var(--accent) 14%); }
/* a recorded answer is usually one word, sometimes a sentence: room for the word, a cap for the sentence */
.table--wide td.signal { white-space: normal; min-width: 120px; max-width: var(--col-note); }

/* ---- a field's cross: there only while there is something to clear ---- */
.field__clear { display: flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; margin-right: calc(var(--space-2) * -1); border-radius: var(--radius-xs); color: var(--text-3); transition: color var(--fast), background var(--fast); }
.field__clear:hover { color: var(--text-1); background: var(--wash-3); }
.field__clear .icon { width: 13px; height: 13px; }
.field input:placeholder-shown ~ .field__clear { display: none; }

/* ---- a list's toolbar: which collection on the left, the filter on the right, on one line ---- */
.toolbar { display: flex; align-items: center; gap: var(--space-7); }
.toolbar .pills { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); padding-right: var(--space-9); }
.toolbar .pills::-webkit-scrollbar { display: none; }
.toolbar .pill { flex: none; }
.toolbar__search { flex: none; width: 300px; }
.toolbar__search .field { width: 100%; }
/* results being replaced are held dim for the moment it takes */
/* The row of tabs and the filter has the same room over it as under it: it is the page's one control, and sat
   tight against the list once the count moved to the breadcrumb. */
.page-body:has(> .browse > .toolbar) { margin-top: var(--toolbar-gap); --toolbar-gap: var(--space-11); }
.browse > .toolbar + * { margin-top: var(--toolbar-gap); }
@media (max-width: 759px) {
  .page-body:has(> .browse > .toolbar) { --toolbar-gap: var(--space-9); }
}
.browse__results { transition: opacity var(--fast); }
.browse__results > * + * { margin-top: var(--space-6); }
.browse__results.is-loading { opacity: 0.5; }
@media (max-width: 899px) {
  /* not enough room for both on one line: the filter first, full width, then the collections in a row that scrolls */
  .toolbar { flex-direction: column-reverse; align-items: stretch; gap: var(--space-5); }
  .toolbar__search { width: auto; }
  .toolbar .pills { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--space-11) 0 var(--gutter); }
}
@media (max-width: 759px) {
  .field__clear { width: var(--tap); height: var(--tap); margin-right: calc(var(--space-5) * -1); }
}
/* when the collections scroll in a row, the one you are in comes first so it is never out of sight */
@media (max-width: 899px) { .toolbar .pill[aria-current="true"] { order: -1; } }
/* On a phone the sponsored row is four lines tall and a logo leaves an API's name three words a line: there the
   row scrolls away with the page and the name column holds the name alone. The table's headings still stay. */
@media (max-width: 759px) {
  .pick__top { position: static; padding-top: 0; }
  .stick { top: var(--bar); }
  .table .api .tile { display: none; }
}

/* ---- the whole of a line that was cut short, shown when it is pointed at (site.ts, data-clip) ---- */
.tip { position: fixed; left: 0; top: 0; z-index: var(--z-bar); max-width: min(380px, calc(100vw - 24px)); padding: var(--space-3) var(--space-4); border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-3); box-shadow: var(--shadow-float); font-size: var(--text-xs); line-height: 1.45; color: var(--text-1); text-wrap: pretty; pointer-events: none; }

/* The frame every page shares: top bar, footer, and the chrome of a detail page. */

/* ---- top bar: clear over the backdrop, glass once the page moves ---- */
.topbar { position: sticky; top: 0; z-index: var(--z-bar); background: transparent; border-bottom: 1px solid transparent; transition: background var(--slow), border-color var(--slow); }
.topbar.is-scrolled { background: var(--glass-bar); border-bottom-color: var(--line-1); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.topbar__in { display: flex; align-items: center; gap: var(--space-10); height: var(--bar); }
.brand { display: flex; align-items: center; gap: var(--space-4); font-weight: var(--weight-semibold); font-size: var(--text-md); letter-spacing: -0.02em; }
.brand__mark { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.brand__mark i { width: 6px; height: 6px; border-radius: 1.5px; background: var(--text-3); }
.brand__mark i:nth-child(2) { background: var(--accent); box-shadow: 0 0 12px oklch(var(--A) / 0.75); }
.nav { display: flex; gap: var(--space-1); font-size: var(--text-sm); color: var(--text-2); }
.nav a { padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); transition: color var(--fast), background var(--fast); }
.nav a:hover { color: var(--text-1); background: var(--wash-2); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-4); }
.search-btn { color: var(--text-2); padding: 0 var(--space-4); gap: var(--space-3); }
.search-btn .icon { width: 15px; height: 15px; }
.menu-btn { display: none; }

/* ---- footer: what the site is and the ways in: the brand column, then three link columns ---- */
.footer { position: relative; background: radial-gradient(60% 150% at 50% 165%, oklch(var(--A) / 0.14), transparent 70%), var(--bg-raised); --footer-cols: minmax(0, 1fr) repeat(3, 176px); --footer-gap: var(--space-11); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none; background: var(--hairline-fade); }
.footer__in { display: grid; grid-template-columns: var(--footer-cols); align-items: start; gap: 0 var(--footer-gap); padding-top: clamp(48px, 5vw, 72px); padding-bottom: calc(var(--space-12) + env(safe-area-inset-bottom, 0px)); font-size: var(--text-base); color: var(--text-3); }

/* left: the brand and what this is */
.footer__about { grid-column: 1; max-width: 26.5em; }
.footer .brand { width: fit-content; height: 22px; color: var(--text-1); }
/* the first line sits on the first link’s row */
.footer__lede { margin-top: calc(var(--space-4) + (var(--control) - 1lh) / 2); line-height: var(--leading-relaxed); color: var(--text-2); text-wrap: pretty; }

/* right: three lists, each under its own heading */
.footer__groups { grid-column: 2 / -1; display: grid; grid-template-columns: subgrid; }
.footer__title { height: 22px; font-size: var(--text-xs); line-height: 22px; font-weight: var(--weight-medium); color: var(--text-3); }
.footer__group ul { margin-top: var(--space-4); }
.footer__group a { display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--control); color: var(--text-2); transition: color var(--fast); }
.footer__group a:hover { color: var(--text-1); }
.footer__search .kbd { min-width: 20px; height: 20px; }


/* ---- detail page ---- */
/* the same sky as the home page, quieter, behind every page's title */
.page-glow { position: absolute; inset: calc(var(--bar) * -1 - 1px) 0 auto 0; height: 460px; z-index: 0; pointer-events: none; --glow: radial-gradient(42% 78% at 18% -6%, oklch(var(--A) / 0.13), transparent 72%), radial-gradient(40% 86% at 50% -14%, oklch(var(--B) / 0.12), transparent 72%), radial-gradient(42% 78% at 86% -6%, oklch(var(--C) / 0.2), transparent 72%); background: var(--glow), var(--bg); -webkit-mask-image: linear-gradient(#000 0, transparent 96%); mask-image: linear-gradient(#000 0, transparent 96%); }
/* Over the page, not under it (/browse): that page pins solid bars to the top of the window for its rows to pass
   beneath, and a glow behind them would show each bar as a dark box. Laid over as light, it falls on the bars and
   the page alike and only ever lightens, so text keeps its colour. */
.page-glow--over { z-index: calc(var(--z-content) + 1); background: var(--glow); mix-blend-mode: screen; }
.page { position: relative; z-index: var(--z-content); padding-top: clamp(28px, 3.4vw, 44px); padding-bottom: clamp(88px, 11vw, 168px); min-height: 70vh; }
.page > * { animation: rise 0.42s var(--ease) backwards; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: 13px; color: var(--text-3); }
.crumb li { display: flex; align-items: center; gap: var(--space-3); }
.crumb li + li::before { content: "/"; opacity: 0.6; }
.crumb a { color: var(--text-2); }
.crumb a:hover { color: var(--text-1); }
/* how many an index lists, after its name: pulled in to a word space, since the item spaces its parts for the slash */
.crumb__count { margin-left: calc(var(--space-1) - var(--space-3)); font-variant-numeric: tabular-nums; }
/* the icon and the title on one line with the actions at the far right; then the first paragraph, with a status beside it */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title aside" "lede status"; align-items: center; column-gap: var(--space-9); margin-top: var(--gap-head); padding-bottom: var(--gap-head); border-bottom: 1px solid var(--line-1); }
.page-head__title { grid-area: title; display: flex; align-items: flex-start; gap: 18px; min-width: 0; --title-line: calc(var(--text-h1) * var(--leading-tight)); }
/* the icon is centred on the title's first line, so it stays level when the title runs to two */
.page-head__title > .tile { margin-top: calc((var(--title-line) - var(--page-icon)) / 2); }
.page-head h1 { min-width: 0; font-size: var(--text-h1); font-weight: var(--weight-semibold); letter-spacing: -0.042em; line-height: var(--leading-tight); text-wrap: balance; overflow-wrap: anywhere; }
.page-head h1 em { font-style: normal; color: var(--text-3); font-weight: var(--weight-medium); }
.page-head__aside { grid-area: aside; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-4) var(--space-7); }
.page-head__lede { grid-area: lede; margin-top: var(--space-6); max-width: var(--measure-wide); font-size: 16px; line-height: var(--leading-relaxed); color: var(--text-3); text-wrap: pretty; }
/* a fact about the subject, at the right: its text sits on the paragraph's first line */
.page-head__status { grid-area: status; align-self: start; justify-self: end; margin-top: var(--space-6); line-height: calc(16px * var(--leading-relaxed)); }
.page-head__status .status { line-height: inherit; }
/* under the title's text, not under the icon */
.page-head--icon .page-head__lede { margin-left: calc(var(--page-icon) + 18px); }
.page-head__lede a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.page-head__lede a:hover { color: var(--text-1); }
.page-body { margin-top: clamp(32px, 4vw, 56px); }
.page-body > * + * { margin-top: var(--gap-block); }
.section__head { display: flex; align-items: baseline; gap: var(--space-5); margin-bottom: 18px; }
.section__head h2 { font-size: var(--text-xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-title); }
.section__count { margin-left: var(--space-4); font-size: var(--text-md); font-weight: var(--weight-regular); letter-spacing: 0; color: var(--text-3); font-variant-numeric: tabular-nums; }
.section__note { margin: -8px 0 var(--space-8); max-width: var(--measure-wide); font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--text-2); }
.section > * + .fine { margin-top: var(--space-5); }
.subsection + .subsection { margin-top: var(--space-10); }
.subsection h3 { font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); }
.subsection h3 { margin-bottom: var(--space-5); }
.subsection .fine { margin: calc(var(--space-1) - var(--space-5)) 0 var(--space-5); }
/* other words for the page's subject, on a line of their own under what it is */
.page-head__also { display: block; margin-top: var(--space-3); font-size: var(--text-sm); }
.more { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.more:hover { color: var(--text-1); }
.more .icon { width: 13px; height: 13px; }

/* a page with only a message: nothing at this address, data unavailable. It fills the window and puts the ways forward under the message. */
.lost { position: relative; z-index: var(--z-content); display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100dvh - var(--bar) - 120px); padding-top: var(--gap-block); padding-bottom: var(--gap-block); text-align: center; }
.lost > * { animation: rise 0.6s var(--ease) backwards; }
.lost .display { margin-top: var(--space-9); }
.lost .search { width: 100%; text-align: left; }
.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5); margin-top: var(--space-10); }

/* ---- below 940px: the nav becomes a menu ---- */
@media (max-width: 939px) {
  .nav { display: none; }
  .search-btn span:not(.kbd) { display: none; }
  .search-btn { padding: 0 9px; }
  .menu-btn { display: inline-flex; width: 40px; padding: 0; }
  .menu-btn .icon { width: 18px; height: 18px; }
  .menu-btn .icon path { transition: transform 0.22s var(--ease); transform-origin: 10px 10px; }
  .menu-open .menu-btn .icon path:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-btn .icon path:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  /* no backdrop-filter while open: it would make the fixed scrim below size itself to the bar */
  .menu-open .topbar { background: var(--bg); border-bottom-color: var(--line-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: var(--space-1) var(--gutter) var(--space-4); background: var(--bg); border-bottom: 1px solid var(--line-2); box-shadow: var(--shadow-menu); font-size: var(--text-lg); font-weight: var(--weight-medium); letter-spacing: var(--tracking-snug); color: var(--text-1); }
  .menu-open .nav a { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 2px; border-radius: 0; }
  .menu-open .nav a + a { border-top: 1px solid var(--line-1); }
  .menu-open .nav a::after { content: ""; width: 7px; height: 7px; margin-right: var(--space-1); border-top: 1.5px solid var(--text-3); border-right: 1.5px solid var(--text-3); transform: rotate(45deg); }
  /* the open menu covers the page: a tap outside closes it and reaches nothing underneath */
  .menu-open .topbar::after { content: ""; position: fixed; inset: var(--bar) 0 0 0; z-index: -1; background: var(--scrim); }
}

@media (max-width: 759px) {
  .topbar .btn { position: relative; height: 40px; padding: 0 13px; border-radius: var(--radius-md); font-size: var(--text-base); }
  .topbar .btn::before { content: ""; position: absolute; inset: -8px -3px; } /* a 44px target around a 40px button */
  .topbar .search-btn, .topbar .menu-btn { width: 40px; padding: 0; }
  .topbar__actions { gap: var(--space-3); }
  .topbar__in { gap: var(--space-5); }
  .brand { min-height: var(--tap); }


  .page { padding-top: 22px; padding-bottom: 72px; }
  .crumb { font-size: var(--text-sm); }
  .crumb a { padding: 13px 0; margin: -13px 0; }
  /* one line on a phone: the page's own name, last and longest, gives way first and ends in an ellipsis (the title below says it in full) */
  .crumb { flex-wrap: nowrap; }
  .crumb li { flex: 0 1 auto; min-width: 0; }
  .crumb li:first-child { flex-shrink: 0; }
  .crumb li:last-child { flex: 1 1 0%; min-width: 5ch; }
  .crumb li::before { flex: none; }
  .crumb li > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* the name gives way, never the number after it */
  .crumb li > .crumb__count { flex: none; overflow: visible; }
  /* one column: the title, the first paragraph, then status and actions across the full width */
  .page-head { --page-icon: 44px; --text-h1: clamp(29px, 8.4vw, 36px); grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "lede" "status" "aside"; margin-top: 22px; padding-bottom: 26px; }
  /* on a phone the icon sits over the title, as an API’s logo does: the title has the whole line to itself */
  .page-head__title { flex-direction: column; gap: var(--space-7); }
  .page-head__title > .tile { margin-top: 0; }
  .page-head .tile--xl { width: var(--page-icon); height: var(--page-icon); border-radius: var(--radius-xl); font-size: 17px; }
  .page-head__lede, .page-head--icon .page-head__lede { margin: var(--space-5) 0 0; font-size: 15.5px; line-height: 1.5; }
  .page-head__status { justify-self: start; margin-top: var(--space-5); }
  .page-head__aside { justify-content: flex-start; margin-top: var(--space-6); }
  .page-body { margin-top: var(--space-10); }
  .page-body > * + * { margin-top: 44px; }
  .section__head { align-items: center; }
  .section__head h2 { min-width: 0; }
  .more { flex: none; min-height: var(--tap); font-size: var(--text-base); }
}

@media/* the narrowest phones: the bar keeps the brand, "Add an API" and the menu; search is the first thing on the home page */
 (max-width: 374px) {
  .topbar__actions { gap: var(--space-2); }
  .topbar .btn--solid { padding: 0 11px; }
  .topbar .search-btn { display: none; }
}

/* ---- below 1024px: the description runs across the top, the lists sit under it ---- */
@media (max-width: 1023px) {
  .footer { --footer-cols: repeat(3, minmax(0, 1fr)); --footer-gap: var(--space-9); }
  .footer__about { grid-column: 1 / -1; max-width: var(--measure-wide); }
  .footer__groups { grid-column: 1 / -1; margin-top: var(--space-11); }
}

/* ---- phones: two columns of links with 44px rows, then the actions at full width ---- */
@media (max-width: 759px) {
  .footer { --footer-cols: repeat(2, minmax(0, 1fr)); --footer-gap: var(--space-8); }
  .footer__in { padding-top: var(--space-11); padding-bottom: calc(var(--space-11) + env(safe-area-inset-bottom, 0px)); }
  .footer .brand { height: var(--tap); }
  .footer__lede { margin-top: var(--space-3); font-size: var(--text-md); }
  .footer__groups { margin-top: var(--space-10); grid-template-rows: auto auto; row-gap: var(--space-8); }
  .footer__group:first-child { grid-row: 1 / span 2; }
  .footer__group:not(:first-child) { grid-column: 2; }
  .footer__title { height: 20px; font-size: var(--text-base); line-height: 20px; }
  .footer__group ul { margin-top: var(--space-1); }
  .footer__group a { display: flex; min-height: var(--tap); font-size: var(--text-md); }
}

/* no keyboard, no key hint */
@media (hover: none) { .footer__search .kbd { display: none; } }

/* ---- an application inside the site (Layout Page.app): it fills the window, so the top bar runs edge to edge ----
   One gutter for the bar and the page under it, so their edges line up at every width. The bar names the page: its own link is lit. */
body.app { --app-gutter: clamp(16px, 1.7vw, 28px); }
body.app .topbar__in { max-width: none; padding: 0 var(--app-gutter); }
body.app .nav a[aria-current="page"] { color: var(--text-1); background: var(--wash-2); }
@media (max-width: 759px) { body.app { --app-gutter: var(--space-5); } }

/* Parts of the detail pages: an API, a company, a comparison. */

/* ---- two columns: the page, and a summary that stays in view ---- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 60px; margin-top: clamp(32px, 4vw, 56px); }
.page-grid > .page-body { margin-top: 0; }
.page-head__actions { display: flex; gap: var(--space-3); }
@media (min-width: 980px) {
  .page-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .page-side { position: sticky; top: 76px; align-self: start; }
}

/* ---- a fact with where it came from ---- */
.facts { border: 1px solid var(--line-1); border-radius: var(--radius-lg); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 var(--space-5); padding: var(--space-4) 13px; font-size: var(--text-sm); }
.facts > div + div { border-top: 1px solid var(--line-1); }
.facts dt { color: var(--text-3); }
.facts dd a:not(.chip) { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.facts dd a:not(.chip):hover { text-decoration-color: var(--text-1); }
.source { display: block; margin-top: 5px; font-size: 12px; color: var(--text-3); }
.source a { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.source a:hover { color: var(--text-1); }
.note--big { padding: var(--space-7) 18px; font-size: var(--text-md); }

/* ---- the side summary ---- */
.side-card { padding: var(--space-6); border: 1px solid var(--line-1); border-radius: var(--radius-xl); background: var(--surface-1); }
.side-card + .side-card { margin-top: var(--space-5); }
.side-card--accent { border-color: var(--accent-line); background: var(--panel-accent); }
.side-card__label { display: block; font-size: 12px; font-weight: var(--weight-medium); color: var(--text-3); margin-bottom: 9px; }
.side-card p { font-size: var(--text-xs); color: var(--text-3); margin-top: var(--space-4); }
.summary > div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; font-size: var(--text-sm); }
.summary > div:first-child { padding-top: 0; }
.summary > div:last-child { padding-bottom: 0; }
.summary > div + div { border-top: 1px solid var(--line-1); }
.summary dt { color: var(--text-3); white-space: nowrap; }
.summary dd { text-align: right; overflow-wrap: anywhere; }
.side-fine { margin-top: var(--space-5); font-size: 12px; color: var(--text-3); line-height: 1.5; }
/* the one link to where the page's facts were read: no underline, it lights up under the pointer */
.side-fine a { color: var(--text-2); transition: color var(--fast); }
.side-fine a:hover { color: var(--text-1); }

/* ---- an agent-friendly API: the way in, said once ---- */
.use { padding: var(--space-6); border-radius: var(--radius-xl); border: 1px solid var(--accent-line); background: var(--panel-accent); }
.use__text { font-size: var(--text-xs); color: var(--text-2); }
.use__text b { color: var(--text-1); font-weight: var(--weight-semibold); }
.use__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

/* ---- a row for one API: on a company page, in a list of alternatives ---- */
.rows { display: flex; flex-direction: column; gap: var(--space-3); }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3) 18px; padding: var(--space-6) var(--space-7); border: 1px solid var(--line-1); border-radius: var(--radius-xl); background: var(--panel); box-shadow: var(--lit); transition: border-color var(--fast); }
.row:hover { border-color: var(--line-3); }
.row__name { min-width: 0; }
.row__name b { display: block; font-size: 15.5px; font-weight: var(--weight-semibold); letter-spacing: -0.018em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__name span { display: block; font-size: 13px; color: var(--text-3); margin-top: 1px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.row__fact { grid-column: 2 / -1; font-size: var(--text-sm); min-width: 0; overflow-wrap: anywhere; }
.row__fact span { display: block; font-size: var(--text-2xs); color: var(--text-3); }
.row__actions { grid-column: 1 / -1; display: flex; gap: var(--space-3); }
@media (min-width: 760px) {
  /* fixed shares, so the same fact lines up from one row to the next */
  .row { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); }
  .row__fact { grid-column: 3; }
  .row__actions { grid-column: 4; justify-content: flex-end; flex-wrap: wrap; }
}

/* ---- a compact link to another API ---- */
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--space-2); }
.mini { display: flex; align-items: center; gap: var(--space-5); padding: 11px var(--space-5); border-radius: var(--radius-lg); border: 1px solid var(--line-1); background: var(--wash-1); transition: border-color var(--fast), background var(--fast); }
a.mini:hover { border-color: var(--line-3); background: var(--wash-2); }
.mini__name { min-width: 0; flex: 1; }
.mini__name b { display: block; font-size: var(--text-base); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__name span { display: block; font-size: var(--text-xs); color: var(--text-3); }
.mini__aside { flex: none; display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-2); white-space: nowrap; }
.mini__aside .icon { width: 13px; height: 13px; }
.pairs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: var(--space-3); }
.pair { display: flex; align-items: center; gap: 9px; padding: var(--space-4) var(--space-5); border: 1px solid var(--line-1); border-radius: var(--radius-lg); background: var(--wash-1); font-size: var(--text-sm); transition: border-color var(--fast), background var(--fast); }
.pair:hover { border-color: var(--line-3); background: var(--wash-2); }
.pair .tile + .tile { margin-left: -5px; }
.pair > span:not(.tile) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair > .icon { width: 14px; height: 14px; color: var(--text-3); }

/* ---- what an API does, thing by thing ---- */
.does { border: 1px solid var(--line-1); border-radius: var(--radius-lg); overflow: hidden; }
.does > div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: var(--space-2) var(--space-7); padding: var(--space-5) 13px; align-items: baseline; }
.does > div + div { border-top: 1px solid var(--line-1); }
.does dt { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.does dt a:hover { text-decoration: underline; text-underline-offset: 3px; }


/* fact by fact */
/* the table in parts: what differs, what is the same, what is not known yet */

@media (max-width: 759px) {
  .page-grid { display: flex; flex-direction: column; gap: 0; margin-top: 26px; }
  /* on a phone the summary repeats the facts below it, so only its fine print stays */
  .page-side { display: contents; }
  .page-side > .side-card:not(.side-card--accent) { display: none; }
  .page-side > .side-card--accent { order: -1; margin: 0 0 34px; padding: var(--space-7); border-radius: var(--radius-2xl); }
  .page-side > .side-fine { margin-top: var(--space-11); font-size: 13px; }
  .page-head__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); width: 100%; }
  .facts { border-radius: var(--radius-xl); }
  /* on a phone every fact is its label over its value: a value has the whole row, so chips fill it and a sentence is not a ribbon */
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-5) var(--space-6); font-size: var(--text-md); }
  .facts dt { font-size: var(--text-sm); }
  .use { padding: var(--space-7); border-radius: var(--radius-2xl); }
  .use__text { font-size: var(--text-base); line-height: 1.5; }
  .use__actions .btn { flex: 1; }

  .rows { gap: var(--space-4); }
  .row { grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--space-5); padding: var(--space-7); border-radius: var(--radius-2xl); }
  .row__name b { font-size: 16.5px; }
  .row__name span { font-size: var(--text-sm); }
  .row__fact { grid-column: 1 / -1; margin-top: var(--space-6); padding-top: 13px; border-top: 1px solid var(--line-1); font-size: var(--text-md); }
  .row__fact span { margin-bottom: 3px; font-size: var(--text-xs); }
  .row__actions { margin-top: var(--space-6); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .mini { min-height: 60px; padding: 11px var(--space-6); }
  .mini__name b { font-size: var(--text-md); }
  .pair { min-height: 52px; }
  .does > div { grid-template-columns: minmax(0, 1fr); padding: 13px var(--space-6); }
  .does dt { font-size: var(--text-md); }

}

/* the API the page is about, set apart from the ones it is measured against */
.row--current { border-color: var(--accent-line); background: var(--panel-accent); }
.row__actions { align-items: center; }
.row__actions .status { margin-right: var(--space-3); }
/* a pill that is a link: the current one is marked the way a pressed one is */
a.pill[aria-current="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: var(--weight-medium); }
a.pill[aria-current="true"] span { color: inherit; opacity: 0.7; }
@media (max-width: 759px) {
  .row__actions .status { grid-column: 1 / -1; grid-row: 1; margin: 0 0 var(--space-4); }
  .row__actions { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .row__actions .btn:only-of-type { grid-column: 1 / -1; }
  .lost__actions { display: grid; width: 100%; max-width: 420px; }
}

/* ---- what it costs at a volume ---- */
.cost { padding: var(--space-8); border: 1px solid var(--line-1); border-radius: var(--radius-3xl); background: var(--panel); box-shadow: var(--lit); }
.cost__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); }
.cost__form { display: flex; gap: var(--space-3); }
.cost__form .field { width: 148px; }
.cost__form input { text-align: right; font-variant-numeric: tabular-nums; }
.cost__volume { margin-top: var(--space-8); font-size: var(--text-md); color: var(--text-2); }
.cost__volume b { font-size: var(--text-stat); font-weight: var(--weight-semibold); letter-spacing: -0.035em; color: var(--text-1); font-variant-numeric: tabular-nums; margin-right: var(--space-2); }
.cost__rows { display: flex; flex-direction: column; gap: 2px; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line-1); }
.cost__row { display: grid; grid-template-columns: auto minmax(0, 220px) minmax(0, 1fr) minmax(0, 260px); align-items: center; gap: var(--space-2) var(--space-7); padding: var(--space-4) var(--space-4); margin: 0 calc(var(--space-4) * -1); border-radius: var(--radius-md); font-size: var(--text-sm); }
.cost__row:hover { background: var(--wash-2); }
.cost__row.is-current { background: var(--accent-dim); }
.cost__name { min-width: 0; font-weight: var(--weight-medium); }
.cost__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cost__name .extra { font-weight: var(--weight-regular); }
.cost__bar { height: 8px; border-radius: 4px; background: var(--wash-2); overflow: hidden; }
.cost__bar span { display: block; height: 100%; border-radius: 4px; background: var(--text-2); }
.cost__row.is-current .cost__bar span { background: var(--accent); }
.cost__figure { text-align: right; min-width: 0; }
.cost__figure b { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--text-1); font-variant-numeric: tabular-nums; }
.cost .fine { margin-top: var(--space-6); }

@media (max-width: 759px) {
  .cost { padding: var(--space-7); border-radius: var(--radius-2xl); }
  .cost__head { flex-direction: column; align-items: stretch; }
  /* inside the card the volume pills wrap: the page-wide scrolling row would run out of the card */
  .cost .pills { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .cost .pill { flex: 1 1 auto; justify-content: center; }
  .cost__form { flex-wrap: wrap; }
  .cost__form .field { flex: 1 1 120px; width: auto; min-width: 0; }
  .cost__form .btn { flex: 1 1 auto; }
  .cost__row { grid-template-columns: auto minmax(0, 1fr) auto; padding: var(--space-5) var(--space-4); font-size: var(--text-md); }
  .cost__bar { grid-column: 1 / -1; grid-row: 2; }
  .cost__figure .extra { display: none; } /* the stated price is on the API's own page and in the table */
}

/* ---- what is different: one sentence a line, each naming both APIs ---- */

/* Side by side, the two cards share one set of rows, so the name, the maker, the dividing line
   and the price of one sit level with the other's, however many lines either name runs to.
   (Between the two widths below the cards are stacked, and each keeps its own rows.) */

/* The pages that ask for something: Add an API, Sponsor a listing, For agents; and the sponsored
   spots those pages sell. */

/* ---- a form ---- */
.form { display: grid; gap: var(--space-6); padding: var(--space-8); border: 1px solid var(--line-1); border-radius: var(--radius-3xl); background: var(--surface-1); }
.form label { display: grid; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-3); }
.form input[type="text"], .form input[type="url"], .form input[type="email"], .form textarea { width: 100%; min-width: 0; height: 42px; padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--line-2); background: var(--bg); font-size: var(--text-md); color: var(--text-1); outline: 0; transition: border-color 0.15s, box-shadow 0.15s; }
/* a box for several lines: the same field, taller, and it grows only downwards */
.form textarea { display: block; height: auto; min-height: 88px; padding: var(--space-4) var(--space-5); font-family: inherit; line-height: 1.5; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--text-3); opacity: 1; }
.form input:hover, .form textarea:hover { border-color: var(--line-3); }
.form input:focus-visible, .form textarea:focus-visible { border-color: var(--accent-line); box-shadow: var(--ring); }
.form input[aria-invalid="true"] { border-color: var(--line-3); }
.form .btn { justify-self: start; }
/* the one action of a short form is as wide as its fields */
.form .form__send { justify-self: stretch; }
.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: var(--space-5); }
.form fieldset + fieldset { margin-top: var(--space-2); }
.form legend { display: flex; align-items: center; gap: var(--space-4); padding: 0; margin-bottom: var(--space-5); font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--text-1); letter-spacing: var(--tracking-snug); }
.form legend i { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: var(--wash-3); font-style: normal; font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-regular); color: var(--text-2); }
.form__count { float: right; font-family: var(--font-mono); font-size: var(--text-2xs); }
.form__error { font-size: var(--text-xs); color: var(--text-1); }
.form__fine { font-size: 13px; color: var(--text-2); line-height: 1.5; }
/* what happened to what was sent */
.outcome { padding: var(--space-7) 18px; border-radius: var(--radius-xl); border: 1px solid var(--accent-line); background: var(--panel-accent); font-size: var(--text-md); line-height: 1.5; color: var(--text-2); }
.outcome b { display: block; color: var(--text-1); font-weight: var(--weight-semibold); margin-bottom: var(--space-1); }

/* a choice with a price: one option is on */
.options { display: grid; gap: var(--space-3); }
.option { position: relative; display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-7) !important; align-items: center; padding: 13px var(--space-6); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--bg); cursor: pointer; transition: border-color var(--fast), background var(--fast), box-shadow var(--fast); }
.option:hover { border-color: var(--line-3); }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }
.option:has(input:checked) { border-color: var(--accent-line); background: var(--panel-accent); box-shadow: var(--ring); }
.option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.option__title { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--text-1); letter-spacing: var(--tracking-snug); }
.option__text { grid-column: 1; font-size: 13px; color: var(--text-3); }
.option__price { grid-column: 2; grid-row: 1 / 3; font-size: 20px; font-weight: var(--weight-semibold); letter-spacing: -0.03em; color: var(--text-1); white-space: nowrap; }
.option__price small { font-size: 12px; font-weight: var(--weight-regular); letter-spacing: 0; color: var(--text-3); }
.option__price .ph { font-size: 13px; }

.promises li { position: relative; padding-left: var(--space-7); }
.promises li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.promises { display: grid; gap: var(--space-3); margin-top: var(--space-7); }
.promises li { font-size: var(--text-sm); color: var(--text-3); line-height: 1.5; }
.promises b { color: var(--text-1); font-weight: var(--weight-semibold); }
.two-up { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-11) var(--space-12); }
.two-up > * { margin-top: 0 !important; }
@media (min-width: 900px) { .two-up { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.steps { counter-reset: step; display: flex; flex-direction: column; gap: var(--space-4); }
.steps li { counter-increment: step; position: relative; padding: var(--space-6) var(--space-7) var(--space-6) 52px; border: 1px solid var(--line-1); border-radius: var(--radius-xl); font-size: var(--text-base); line-height: 1.5; color: var(--text-2); }
.steps li::before { content: counter(step); position: absolute; left: var(--space-7); top: 13px; width: 24px; height: 24px; border-radius: 7px; background: var(--wash-3); font-family: var(--font-mono); font-size: 12px; color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.steps b { display: block; color: var(--text-1); font-weight: var(--weight-semibold); }

/* ---- the same thing, done by an agent ---- */
.agent-way { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-11) 60px; align-items: center; padding: clamp(22px, 3.2vw, 48px); border-radius: var(--radius-3xl); border: 1px solid var(--line-2); background: var(--panel); box-shadow: var(--lit-strong), var(--shadow-deep); }
.agent-way::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60% 80% at 0% 0%, oklch(var(--B) / 0.2), transparent 70%), radial-gradient(64% 90% at 100% 0%, oklch(var(--C) / 0.36), transparent 72%); }
.agent-way h2 { margin-top: var(--space-8); font-size: clamp(26px, 3.1vw, 42px); font-weight: var(--weight-semibold); letter-spacing: -0.042em; line-height: 1.05; text-wrap: balance; }
.agent-way p { margin-top: var(--space-7); max-width: 30em; font-size: 15.5px; line-height: var(--leading-relaxed); color: var(--text-2); }
.agent-way p.fine { margin-top: 22px; font-size: var(--text-sm); color: var(--text-3); }
.agent-way__code { min-width: 0; }
.agent-way__code .codewin__lines { display: none; }
.agent-way__code pre { min-height: 168px; padding: 18px var(--space-8); }
.agent-way__code code { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-1); }
@media (min-width: 900px) { .agent-way { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }

/* ---- sponsored spots: always labelled, kept apart from the list ---- */
.tag--sponsored { color: var(--text-2); border-color: var(--line-2); }
.slot { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-4) var(--space-6); margin-bottom: var(--space-5); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background-image: var(--stripes); font-size: var(--text-sm); transition: border-color var(--fast), background-color var(--fast); }
a.slot:hover { border-color: var(--line-3); background-color: var(--wash-1); }
.slot__text { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-4); }
.slot__text b { font-weight: var(--weight-semibold); }
.slot__text > span { color: var(--text-3); }
.slot__go { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-2); white-space: nowrap; }
.slot__go .icon { width: 13px; height: 13px; }
.spot { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-5); padding: var(--space-7); border: 1px dashed var(--line-2); border-radius: var(--radius-2xl); background-image: var(--stripes); transition: border-color var(--fast), background-color var(--fast); }
a.spot:hover { border-color: var(--line-3); background-color: var(--wash-1); }
.spot > .tag { align-self: flex-start; }
.spot__head { display: flex; align-items: center; gap: var(--space-5); }
.spot__head b { display: block; font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); }
.spot__head span span { display: block; font-size: var(--text-xs); color: var(--text-3); margin-top: 2px; }
.spot__text { font-size: var(--text-sm); line-height: 1.5; color: var(--text-2); }
.tile--empty { border-style: dashed; background: none; box-shadow: none; }
/* a spot with a listing in it, in the sponsor page's preview */
.is-live { border-style: solid; border-color: var(--accent-line); background: var(--panel); box-shadow: var(--ring); }

/* ---- the sponsor builder: the form, and the spot it makes shown in place ---- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-10) 40px; margin-top: var(--space-10); }
.builder__head { display: flex; align-items: baseline; gap: var(--space-5); margin-bottom: var(--space-4); font-size: var(--text-xs); color: var(--text-2); }
.builder__head b { font-size: 12px; font-weight: var(--weight-medium); color: var(--text-3); }
.stage { display: none; padding: 18px; border: 1px solid var(--line-1); border-radius: var(--radius-3xl); background: radial-gradient(80% 60% at 100% 0%, oklch(var(--A) / 0.05), transparent 70%), var(--bg); overflow: hidden; }
.stage .slot, .stage .spot { margin: 0 0 var(--space-5); }
.stage__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); font-size: var(--text-base); }
.stage__head b { font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); }
.stage__head > span:last-child { margin-left: auto; font-size: 12px; color: var(--text-3); }
.stage__split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
/* what is already on the page, drawn as shapes: the preview is about where the spot sits, not about any real API */
.ghost { display: grid; gap: var(--space-3); opacity: 0.5; }
.ghost--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ghost i { display: block; height: 52px; border-radius: var(--radius-lg); border: 1px solid var(--line-1); background: var(--wash-1); }
.ghost--grid i { height: 96px; }
.ghost--facts i { height: 34px; }
/* the chosen spot's stage shows; the radio that chose it is in the form beside it */
.builder:has(input[value="api"]:checked) .stage[data-spot="api"],
.builder:has(input[value="job"]:checked) .stage[data-spot="job"],
.builder:has(input[value="directory"]:checked) .stage[data-spot="directory"] { display: block; }
[data-mirror]:empty::before { content: attr(data-empty); color: var(--text-3); }
@media (min-width: 640px) { .stage__split { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); } }
@media (min-width: 980px) { .builder { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: start; } .builder__preview { position: sticky; top: 76px; } }

/* ---- For agents ---- */
.agents-head { display: flex; flex-direction: column; align-items: center; margin-top: clamp(40px, 6.4vw, 96px); text-align: center; }
.agents-head .display { margin-top: 22px; }
.agents-head .cmd--glass { width: min(540px, 100%); max-width: none; height: var(--control-hero); margin-top: clamp(30px, 3.6vw, 48px); text-align: left; -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-search); }
.agents-head + .page-body { margin-top: clamp(64px, 8.4vw, 128px); }

@media (max-width: 759px) {
  .form { padding: var(--space-7); border-radius: var(--radius-2xl); }
  .form label { font-size: var(--text-sm); }
  .form input[type="text"], .form input[type="url"], .form input[type="email"] { height: 48px; border-radius: var(--radius-lg); font-size: 16px; }
  .form textarea { border-radius: var(--radius-lg); font-size: 16px; }
  .form .btn { justify-self: stretch; height: 48px; }
  .option { padding: var(--space-6); }
  .steps li { font-size: var(--text-md); }
  .agent-way { gap: 22px; padding: var(--space-8) var(--space-7); border-radius: var(--radius-3xl); }
  .agent-way h2 { margin-top: var(--space-7); font-size: 26px; }
  .agent-way p { font-size: var(--text-md); }
  .slot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--space-5); padding: var(--space-6) var(--space-7) var(--space-1); border-radius: var(--radius-xl); }
  .slot > .tag { grid-column: 1 / -1; justify-self: start; margin: 0 0 var(--space-4); }
  .slot__text { grid-column: 1 / -1; flex-direction: column; gap: 3px; font-size: var(--text-md); line-height: 1.4; }
  .slot > .tile + .slot__text { grid-column: 2; }
  .slot__go { grid-column: 1 / -1; justify-content: space-between; min-height: 46px; margin-top: var(--space-5); border-top: 1px solid var(--line-1); font-size: var(--text-base); color: var(--text-1); }
  .spot__text { font-size: var(--text-md); }
  .stage { padding: var(--space-6); border-radius: var(--radius-2xl); }
  .ghost--grid { grid-template-columns: 1fr 1fr; }
  .ghost--grid i:nth-child(3) { display: none; }
  .agents-head { margin-top: 30px; }
  .agents-head + .page-body { margin-top: 52px; }
}

/* ---- For agents: an example exchange, and what an agent can do ---- */
/* the line that joins one step to the next */

/* two lines, always: the texts are written to that length, and the space is held when one runs short */
/* a brief is prose with a few addresses: it wraps, and needs no line numbers */
#agents-brief-panel-0 .codewin__lines { display: none; }
#agents-brief-panel-0 pre { padding: 18px var(--space-8); }
#agents-brief-panel-0 code { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-1); }
@media (max-width: 759px) {
}
/* a grid's own column must be allowed to shrink, or one long unbroken name widens the whole page */

/* ---- For agents: how it goes, in three plain steps ---- */
.howto { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-9); }
.howto li { counter-increment: step; padding-top: var(--space-7); border-top: 1px solid var(--line-2); }
.howto li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); }
.howto b { display: block; margin-top: var(--space-5); font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); }
.howto span { display: block; margin-top: var(--space-2); max-width: 26em; font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--text-2); }
/* ---- a plain list of APIs: one panel, a line each ---- */
.apilist { border-radius: var(--radius-xl); border: 1px solid var(--line-1); background: var(--panel); overflow: hidden; }
.apilist li + li { border-top: 1px solid var(--line-1); }
.apilist a { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, auto) auto; align-items: center; gap: var(--space-6); padding: var(--space-6) var(--space-7); transition: background var(--fast); }
.apilist a:hover { background: var(--wash-2); }
.apilist__name { min-width: 0; }
.apilist__name b { display: block; font-size: var(--text-md); font-weight: var(--weight-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apilist__name span { display: block; font-size: var(--text-sm); color: var(--text-3); }
.apilist__price { max-width: 22em; font-size: var(--text-sm); color: var(--text-2); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apilist .icon { width: 14px; height: 14px; color: var(--text-3); }
@media (max-width: 759px) {
  .howto { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .apilist a { grid-template-columns: auto minmax(0, 1fr) auto; padding: var(--space-6); gap: var(--space-5); }
  .apilist__price { grid-column: 2; grid-row: 2; max-width: none; text-align: left; margin-top: calc(var(--space-5) * -1); }
  .apilist .tile { grid-row: 1 / span 2; align-self: start; }
  .apilist .icon { grid-row: 1 / span 2; }
}

/* The home page: hero, directory, the rules, the agents band and the closing section. */

/* ---- display type, shared by the hero and the closing section ---- */
.display { padding-bottom: 0.07em; font-weight: var(--weight-semibold); font-size: var(--text-display); line-height: 0.98; letter-spacing: var(--tracking-display); text-wrap: balance; background: var(--title-fill); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sub { margin: clamp(18px, 2vw, 26px) auto 0; max-width: var(--measure); font-size: var(--text-lede); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }

/* ---- hero ---- */
.hero { position: relative; z-index: var(--z-hero); padding: clamp(60px, 9.6vw, 148px) 0 clamp(48px, 5.4vw, 80px); text-align: center; }
/* the horizon and the globe need ground to stand on: more room between the hero and the directory */
.hero[data-bg="horizon"] { padding-bottom: clamp(124px, 10.5vw, 160px); }
.hero[data-bg="globe"] { padding-bottom: clamp(230px, 20vw, 300px); }
.hero > .wrap { position: relative; z-index: var(--z-content); }

.search { position: relative; display: flex; align-items: center; gap: var(--space-5); max-width: 720px; margin: clamp(30px, 3.8vw, 52px) auto 0; height: var(--control-hero); padding: 0 var(--space-6) 0 18px; border-radius: var(--radius-2xl); background: var(--glass); border: 1px solid var(--line-2); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--shadow-search); cursor: text; transition: border-color 0.15s, box-shadow 0.15s; }
.search::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--edge-accent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0.75; transition: opacity var(--medium); }
.search:hover { border-color: var(--line-3); }
.search:focus-within { border-color: var(--accent-line); box-shadow: var(--shadow-search-focus); }
.search:focus-within::before { opacity: 0; }
.search > .icon { width: 19px; height: 19px; color: var(--text-3); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: var(--text-lg); letter-spacing: -0.01em; }
.search input::placeholder { color: var(--text-3); opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search__clear { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-sm); color: var(--text-3); }
.search__clear:hover { background: var(--wash-3); color: var(--text-1); }

.tries { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); max-width: 1000px; margin: var(--space-8) auto 0; }
.try { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: var(--radius-md); border: 1px solid var(--line-2); background: var(--glass-chip); font-size: 13px; color: var(--text-2); transition: color var(--fast), border-color var(--fast), background var(--fast); }
.try:hover { color: var(--text-1); border-color: var(--line-3); background: var(--wash-2); }
.try[aria-current="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: var(--weight-medium); }

.agent-line { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4); margin-top: clamp(22px, 2.4vw, 32px); font-size: 13px; color: var(--text-2); }
.codechip { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 var(--space-1) 0 var(--space-4); border-radius: var(--radius-md); border: 1px dashed var(--line-2); background: oklch(var(--bg-lch) / 0.55); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-2); }
.codechip .copy { width: 24px; height: 24px; border-radius: var(--radius-xs); }
.codechip .copy .icon { width: 14px; height: 14px; }

/* ---- directory ---- */
.directory { position: relative; z-index: var(--z-directory); padding-top: var(--space-3); padding-bottom: clamp(72px, 9vw, 136px); scroll-margin-top: 64px; }

/* Under the globe or the horizon the first row of cards rises a little onto the ground, and the hero is as tall as the
   window less a sliver: the cards' top edge shows before any scrolling, enough to say the list is there, and not enough
   to show a company's logo (a place in sight at the top of the home page is not given away). */
:root { --home-lift: clamp(24px, 3.1vw, 56px); --home-peek: 22px; }
.hero[data-bg="globe"], .hero[data-bg="horizon"] { min-height: calc(100svh - var(--bar) - 1px - var(--home-peek) + var(--home-lift) - var(--space-3)); }
.hero[data-bg="globe"] + .directory, .hero[data-bg="horizon"] + .directory { margin-top: calc(var(--home-lift) * -1); }

.dir-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); min-height: 40px; padding-bottom: var(--space-6); }
.dir-bar__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-title); }
.dir-bar__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--text-3); }
.dir-bar__aside { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-7); font-size: var(--text-xs); color: var(--text-3); }
.dir-bar__aside span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dir-bar__aside .icon { width: 14px; height: 14px; }
/* the sponsored place in the grid: a card like the others, drawn as an empty one (dashed, striped, as every sponsored spot is) */
/* its ground is solid, as a card's is: nothing behind it shows through the stripes */
.card--sponsor { border-style: dashed; border-color: var(--line-2); background: var(--stripes), var(--panel); box-shadow: none; }
.card--sponsor > .tag { position: absolute; top: 15px; right: var(--space-7); }
.card--sponsor .card__head { padding-right: 84px; }
.card--sponsor__go { display: inline-flex; align-items: center; gap: var(--space-2); margin-left: auto; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-1); white-space: nowrap; }
.ghost__fact { display: flex; flex-direction: column; gap: var(--space-3); padding: 3px 0 var(--space-2); }
.ghost__fact .ghost { height: 8px; background: var(--wash-2); }
.ghost__fact .ghost:first-child { width: 34%; }
.ghost__fact .ghost:last-child { width: 58%; background: var(--wash-3); }
.ghost--chip { width: 52px; height: 22px; border-radius: var(--radius-xs); background: none; border: 1px dashed var(--line-2); }
.card--sponsor__go .icon { width: 14px; height: 14px; transition: transform var(--medium); }
a.card--sponsor:hover .card--sponsor__go .icon { transform: translateX(3px); }

/* Under the last row: one more row of empty cards fading out, since the list goes on, and over it the way into
   the whole directory. The section's foot keeps the fade well clear of the rule above the next section. */
.directory__more { position: relative; margin-top: var(--space-6); }
.directory__ghosts { height: 214px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000, transparent 88%); mask-image: linear-gradient(#000, transparent 88%); }
.card--ghost { gap: var(--space-5); box-shadow: none; }
.ghost { display: block; height: 10px; border-radius: var(--radius-pill); background: var(--wash-3); }
.ghost--tile { flex: none; width: 38px; height: 38px; border-radius: var(--radius-md); }
.ghost__name { display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.ghost__name .ghost:first-child { width: 46%; }
.ghost__name .ghost:last-child { width: 28%; height: 8px; background: var(--wash-2); }
.card--ghost > .ghost { width: 92%; background: var(--wash-2); }
.card--ghost > .ghost:last-child { width: 64%; }
/* the button is as wide as a card, and sits where the middle one is fading */
/* over the fading cards the button's own coloured glow reads as a smear: here it stands on a plain dark shadow */
.directory__more .btn { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); width: min(100%, 340px); box-shadow: var(--shadow-accent-quiet); }
.directory__more .btn:hover { box-shadow: var(--shadow-accent-quiet); }

@media (min-width: 940px) {
  /* three across, so the page of 24 ends on a full row */
  .directory .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory__more .btn { width: calc((100% - 2 * var(--space-6)) / 3); }
}

/* ---- full-width sections ---- */
.band { position: relative; padding: var(--gap-section) 0; overflow-x: clip; scroll-margin-top: var(--bar); }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hairline-fade); }
.band__title { margin-top: var(--space-8); max-width: 15em; font-size: var(--text-h2); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading); line-height: 1.02; text-wrap: balance; }
.lead { margin-top: 22px; max-width: 30em; font-size: var(--text-lead); line-height: var(--leading-relaxed); color: var(--text-2); }

/* ---- agents band ---- */
.agents { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px 80px; align-items: center; }
.agents .cmd--glass { margin-top: var(--space-11); }
.agents__code { position: relative; isolation: isolate; min-width: 0; }
.agents__code::before { content: ""; position: absolute; z-index: -1; inset: 6% -6% -10% 6%; border-radius: 50%; background: radial-gradient(closest-side at 30% 60%, oklch(var(--B) / 0.3), transparent), radial-gradient(closest-side at 72% 40%, oklch(var(--C) / 0.42), transparent); filter: blur(46px); pointer-events: none; }
.agents__code .codewin { box-shadow: var(--lit), var(--shadow-deep); }
@media (min-width: 980px) { .agents { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); } }

/* ---- the closing section: the same sky, rising ---- */
.closer { position: relative; overflow: hidden; background: var(--bg); text-align: center; }
.closer::before { content: ""; position: absolute; z-index: var(--z-content); left: 0; right: 0; top: 0; height: 1px; pointer-events: none; background: var(--hairline-accent); }
.closer__in { position: relative; z-index: var(--z-content); display: flex; flex-direction: column; align-items: center; padding-top: clamp(112px, 14.5vw, 224px); padding-bottom: clamp(120px, 15.5vw, 240px); }
.closer .display { margin-top: var(--space-9); font-size: var(--text-display-xl); }
.closer .sub { margin-top: clamp(20px, 2.2vw, 28px); }
.closer__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5); margin-top: clamp(32px, 3.6vw, 48px); }
.closer .btn--xl { height: 54px; padding: 0 var(--space-9); border-radius: var(--radius-2xl); font-size: 16px; }
.closer .btn--ghost { background: var(--glass-button); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.closer__fine { margin-top: 22px; font-size: var(--text-sm); color: var(--text-2); }
/* the same ask as a band above the footer, on every page but the home page: no backdrop, a rise of the accent from below */
.closer--band { background: radial-gradient(52% 120% at 50% 118%, oklch(var(--A) / 0.2), oklch(var(--C) / 0.06) 55%, transparent 76%), var(--bg); margin-top: var(--space-12); }
.closer--band .closer__in { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(76px, 8.4vw, 128px); }
.closer--band .display { margin-top: var(--space-7); font-size: var(--text-h1); }
.closer--band .sub { margin-top: var(--space-6); font-size: var(--text-md); }
.closer--band .closer__actions { margin-top: var(--space-9); }

/* ---- pick a job (home.tsx Ways): one panel of jobs, each its name, the first APIs that do it and the way in;
   then comparisons and use cases, a line of links each. It is a band, so it has the rule and the room every home section has. ---- */
.ways__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5) var(--space-9); flex-wrap: wrap; }
.ways__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading); line-height: 1.1; text-wrap: balance; }
.ways__note { margin-top: var(--space-4); max-width: var(--measure-wide); font-size: var(--text-md); line-height: var(--leading-relaxed); color: var(--text-2); text-wrap: pretty; }
.ways__all { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-2); white-space: nowrap; }
.ways__all:hover { color: var(--text-1); }
.ways__all .icon { width: 13px; height: 13px; transition: transform var(--medium) var(--ease); }
.ways__all:hover .icon { transform: translateX(3px); }
.ways__jobs { margin-top: var(--space-9); border: 1px solid var(--line-1); border-radius: var(--radius-xl); background: var(--wash-1); overflow: hidden; }
.ways__jobs li + li { border-top: 1px solid var(--line-1); }
.ways-job { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(13em, auto); align-items: center; gap: var(--space-5) var(--space-10); padding: var(--space-6) var(--space-8); transition: background var(--fast); }
.ways-job:hover { background: var(--wash-2); }
.ways-job b { min-width: 0; font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ways-job__faces { display: flex; align-items: center; }
.ways-job__faces .tile + .tile { margin-left: -6px; }
.ways-job__go { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-2); white-space: nowrap; }
.ways-job:hover .ways-job__go { color: var(--accent); }
.ways-job__go .icon { width: 14px; height: 14px; transition: transform var(--medium) var(--ease); }
.ways-job:hover .ways-job__go .icon { transform: translateX(3px); }
.ways__lines { display: grid; gap: var(--space-6); margin-top: var(--space-9); }
.ways__lines > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); align-items: baseline; gap: var(--space-4) var(--space-7); }
.ways__lines dt { font-size: var(--text-sm); color: var(--text-3); }
.ways__lines dd { min-width: 0; }
.ways__lines .chip { display: inline-block; max-width: 100%; line-height: 28px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) {
  .ways-job { grid-template-columns: minmax(0, 1fr) auto; }
  .ways-job__faces { grid-column: 2; grid-row: 1; }
  .ways-job__go { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 759px) {
  .ways__jobs { margin-top: var(--space-7); }
  .ways-job { padding: var(--space-6); column-gap: var(--space-6); }
  .ways-job b { font-size: var(--text-md); white-space: normal; }
  .ways__lines > div { grid-template-columns: minmax(0, 1fr); }
  .ways__lines .chip--lg { height: 36px; padding: 0 var(--space-5); line-height: 34px; }
}

/* ---- below 940px ---- */
@media (max-width: 939px) {
  .tries { margin-top: var(--space-7); }
  .agent-line { margin-top: var(--space-8); }
}

@media (max-width: 759px) {
  /* On a phone the way into the directory stays in reach: the button is as wide as the list and holds at the foot of the
     window while the cards scroll past, then comes to rest over the fading card. For that it has to be the section's own
     child, so the box around it and the fading row is dissolved. */
  .directory__more { display: contents; }
  .directory__ghosts { margin-top: var(--space-4); }
  .directory__more .btn, .directory__more .btn:hover { position: sticky; left: auto; top: auto; bottom: calc(var(--space-5) + env(safe-area-inset-bottom)); z-index: 2; transform: none; display: flex; width: 100%; margin-top: -132px; margin-bottom: 82px; transition: opacity var(--medium), transform var(--medium), visibility var(--medium); }
  /* it waits until the first card is wholly in view, so the hero and its search have the window to themselves (site.ts marks the section) */
  .directory[data-more-waiting] .directory__more .btn { opacity: 0; visibility: hidden; transform: translateY(10px); }
  .hero { padding-top: 44px; }
  /* a phone shows the first four jobs, centred under the search, each tall enough to press */
  .tries { gap: var(--space-3); margin-top: var(--space-6); }
  .try { height: 36px; padding: 0 var(--space-5); font-size: var(--text-sm); }
  .try:nth-child(n + 5) { display: none; }
  .hero:not([data-bg="globe"]):not([data-bg="horizon"]) { padding-bottom: var(--space-11); }
  .agent-line { font-size: var(--text-base); gap: var(--space-3) var(--space-4); }
  .codechip .copy { width: var(--tap); height: var(--tap); margin: -10px -10px -10px -4px; }
  .dir-bar__aside { margin-left: 0; flex-basis: 100%; }

  .band { padding: 72px 0; }
  .band__title { margin-top: var(--space-7); font-size: clamp(30px, 8.6vw, 36px); }
  .agents { gap: var(--space-11); }
  .lead { margin-top: var(--space-7); }
  .agents .cmd--glass { margin-top: 26px; }

  .closer__in { padding-top: 88px; padding-bottom: 104px; }
  .closer .display { font-size: clamp(38px, 11vw, 46px); }
  /* on a phone the two actions are one under the other, each the full width: side by side their words were cramped */
  .closer__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); width: 100%; max-width: 420px; }
  .closer .btn--xl { height: 52px; padding: 0 var(--space-7); font-size: 15.5px; }
  .closer--band .closer__in { padding-top: 64px; padding-bottom: 72px; }
  .closer--band .display { font-size: clamp(30px, 8.6vw, 38px); }
}

/* a link out of a section */
.link-xl { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: 22px; font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--text-1); }
.link-xl .icon { width: 15px; height: 15px; transition: transform var(--medium); }
.link-xl:hover .icon { transform: translateX(3px); }
@media (max-width: 759px) { .link-xl { min-height: var(--tap); margin-top: var(--space-4); } }

/* ---- the API QA score on the home page: a few words on the left, the ten points on the right ---- */
.score { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px 80px; align-items: center; }
.score .cmd--glass { margin-top: var(--space-11); }
.score__fine { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--text-3); }

.score__card { min-width: 0; border-radius: var(--radius-2xl); border: 1px solid var(--line-1); background: var(--panel); box-shadow: var(--lit); overflow: hidden; }
.score__points { counter-reset: point; padding: var(--space-3) var(--space-9); }
.score__points li { counter-increment: point; display: grid; grid-template-columns: 28px minmax(0, 11em) minmax(0, 1fr); align-items: baseline; gap: 0 var(--space-5); padding: var(--space-5) 0; font-size: var(--text-sm); }
.score__points li + li { border-top: 1px solid var(--line-1); }
.score__points li::before { content: counter(point, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); }
.score__points b { font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--text-1); }
.score__points span { color: var(--text-2); }

.score__scale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-1); background: var(--wash-1); }
.score__scale div { padding: var(--space-6) 0; text-align: center; }
.score__scale div + div { border-left: 1px solid var(--line-1); }
.score__scale dt { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--text-1); }
.score__scale dd { margin-top: 2px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-3); }
.score__scale div:last-child dt { color: var(--accent); }

@media (min-width: 980px) { .score { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
@media (max-width: 759px) {
  .score { gap: var(--space-11); }
  .score__card { border-radius: var(--radius-xl); }
  .score__points { padding: var(--space-2) var(--space-7); }
  .score__points li { grid-template-columns: 26px minmax(0, 1fr); padding: var(--space-5) 0; }
  .score__points span { grid-column: 2; margin-top: 2px; }
  .score__points b { font-size: var(--text-md); }
}

/* The command palette (src/client/palette.ts). A dialog over the page on a wide screen; a tray
   rising from the bottom on a phone. */

.palette-scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: var(--scrim-deep); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.16s; }
.palette { position: fixed; z-index: var(--z-palette); left: 50%; top: max(16px, 12vh); width: min(680px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - max(32px, 24vh))); display: flex; flex-direction: column; border-radius: var(--radius-3xl); background: var(--bg-raised); border: 1px solid var(--line-2); box-shadow: var(--lit-strong), var(--shadow-deep), 0 0 90px -40px oklch(var(--A) / 0.25); transform: translate(-50%, 8px) scale(0.985); opacity: 0; visibility: hidden; transition: opacity 0.16s, transform var(--medium) var(--ease), visibility 0s var(--medium); overflow: hidden; }
.palette::after { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, oklch(var(--A) / 0.7), oklch(var(--B) / 0.5) 50%, oklch(var(--C) / 0.7), transparent); }
/* the page behind stops scrolling. Its scrollbar's space is kept (base.css), so nothing shifts sideways. */
.palette-open { overflow: hidden; }
.palette-open .palette-scrim { opacity: 1; pointer-events: auto; }
.palette-open .palette { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.16s, transform var(--medium) var(--ease); }

.palette__bar { display: flex; align-items: center; gap: var(--space-5); height: var(--control-hero); padding: 0 var(--space-7) 0 var(--space-8); border-bottom: 1px solid var(--line-1); flex: none; }
.palette__bar > .icon { width: 19px; height: 19px; color: var(--text-3); }
.palette__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: var(--text-lg); letter-spacing: var(--tracking-snug); caret-color: var(--accent); }
.palette__input::placeholder { color: var(--text-3); opacity: 1; }
.palette__close { cursor: pointer; }
.palette__close:hover { color: var(--text-1); border-color: var(--line-3); }

.palette__list { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-2) var(--space-2) var(--space-4); overscroll-behavior: contain; }
.palette__group { display: block; padding: var(--space-4) var(--space-5) 5px; font-size: var(--text-2xs); font-weight: var(--weight-medium); color: var(--text-3); }
.palette__item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 46px; padding: var(--space-2) var(--space-5); border-radius: var(--radius-md); font-size: var(--text-base); }
.palette__item[aria-selected="true"] { background: var(--wash-3); }
.palette__item[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 13px; bottom: 13px; width: 2.5px; border-radius: 2px; background: var(--accent); }
.palette__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: var(--radius-sm); border: 1px solid var(--line-1); background: var(--wash-1); color: var(--text-2); }
.palette__icon .icon { width: 15px; height: 15px; }
.palette__text { min-width: 0; flex: 1; }
.palette__text b { display: block; font-weight: var(--weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__text small.is-code { font-family: var(--font-mono); font-size: var(--text-2xs); }
.palette__text small { display: block; font-size: var(--text-xs); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__hint { flex: none; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.palette__none { overflow-wrap: anywhere; padding: 26px var(--space-6); font-size: var(--text-base); color: var(--text-2); line-height: 1.5; }

.palette__foot { display: flex; align-items: center; gap: 18px; min-height: 44px; padding: 0 var(--space-7); border-top: 1px solid var(--line-1); font-size: 12px; color: var(--text-3); flex: none; }
.palette__foot > span { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.palette__foot .kbd { display: inline-flex; }
.palette__tip { margin-left: auto; }
.palette__tip b { font-weight: var(--weight-medium); color: var(--text-2); font-family: var(--font-mono); }

@media (max-width: 759px) {
  .palette-scrim { transition: opacity 0.34s; }
  .palette { top: auto; bottom: 0; left: 0; width: 100%; max-height: none; height: min(88dvh, 780px); border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; border: 0; border-top: 1px solid var(--line-2); opacity: 1; transform: translateY(105%); transition: transform var(--slow) cubic-bezier(0.4, 0, 1, 1), visibility 0s var(--slow); }
  .palette-open .palette { transform: translateY(0); transition: transform 0.52s cubic-bezier(0.32, 0.72, 0, 1); }
  .palette__bar { height: 56px; padding: 0 var(--space-5) 0 var(--space-7); }
  .palette__input { font-size: 16px; } /* 16px so iOS does not zoom */
  /* on a phone "esc" becomes a close button big enough to tap */
  .palette__close { display: inline-flex; position: relative; width: var(--tap); height: var(--tap); border: 0; background: none; box-shadow: none; font-size: 0; color: var(--text-2); }
  .palette__close::before, .palette__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 17px; height: 1.6px; border-radius: 1px; background: currentColor; }
  .palette__close::before { transform: translate(-50%, -50%) rotate(45deg); }
  .palette__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
  .palette__group { padding: var(--space-5) var(--space-5) var(--space-2); font-size: var(--text-xs); }
  .palette__item { min-height: 54px; font-size: var(--text-md); }
  .palette__icon { width: 32px; height: 32px; }
  .palette__list { padding-bottom: calc(var(--space-7) + env(safe-area-inset-bottom, 0px)); }
  .palette__foot { display: none; } /* keyboard hints mean nothing on a touch screen */
}

/* ---- the preview: the selected result's recorded facts, beside the list on a wide screen ---- */
.palette__body { flex: 1; min-height: 0; display: flex; }
.palette__body > .palette__list { flex: 1; min-width: 0; }
.palette__preview { display: none; }
@media (min-width: 900px) {
  .palette.has-preview { width: min(980px, calc(100vw - 32px)); }
  .palette.has-preview .palette__list { flex: none; width: 384px; border-right: 1px solid var(--line-1); }
  .palette.has-preview .palette__preview { display: block; flex: 1; min-width: 0; overflow-y: auto; padding: 22px 22px var(--space-8); background: radial-gradient(70% 50% at 100% 0%, oklch(var(--A) / 0.055), transparent 70%), var(--bg); overscroll-behavior: contain; }
}
.palette__kind { display: block; font-size: 12px; font-weight: var(--weight-medium); color: var(--text-3); }
.palette__kind:not(:first-child) { margin: 18px 0 var(--space-3); }
.palette__title { margin-top: var(--space-2); font-size: 21px; font-weight: var(--weight-semibold); letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }
.palette__sub { margin-top: var(--space-2); font-size: 13px; line-height: 1.5; color: var(--text-3); }
.palette__facts { display: grid; grid-template-columns: 104px minmax(0, 1fr); margin: var(--space-7) 0 0; border: 1px solid var(--line-1); border-radius: var(--radius-lg); overflow: hidden; font-size: var(--text-sm); }
.palette__facts dt, .palette__facts dd { margin: 0; padding: var(--space-4) 13px; border-top: 1px solid var(--line-1); min-width: 0; overflow-wrap: anywhere; }
.palette__facts dt:first-child, .palette__facts dt:first-child + dd { border-top: 0; }
.palette__facts dt { color: var(--text-3); font-size: var(--text-xs); }
.palette__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: 22px; }
/* the two actions sit under the title, where they are always in view, whatever the length of the facts */
@media (min-width: 900px) {
  .palette.has-preview .palette__preview { display: flex; flex-direction: column; }
  .palette__preview > .palette__kind:first-child, .palette__title, .palette__sub { order: -2; }
  .palette__actions { order: -1; margin-top: var(--space-7); }
}

/* ---- where you are, what to show, and that it is working ---- */
/* inside a page: its name sits in the field, and clicking it steps back out */
.palette__scope { display: inline-flex; align-items: center; gap: var(--space-2); flex: none; max-width: 45%; height: 28px; padding: 0 var(--space-2) 0 9px; border-radius: var(--radius-sm); background: var(--accent-dim); border: 1px solid var(--accent-line); color: var(--accent); font-size: 13px; font-weight: var(--weight-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.palette__scope span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.palette__scope .icon { flex: none; width: 11px; height: 11px; stroke-width: 1.8; opacity: 0.7; }
.palette__scope:hover .icon { opacity: 1; }
/* one kind at a time */
.palette__filters { display: flex; gap: var(--space-2); padding: var(--space-4) var(--space-7); border-bottom: 1px solid var(--line-1); flex: none; overflow-x: auto; scrollbar-width: none; }
.palette__filters::-webkit-scrollbar { display: none; }
.palette__filter { flex: none; height: 26px; padding: 0 var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--line-1); background: var(--wash-1); font-size: var(--text-xs); color: var(--text-2); white-space: nowrap; transition: color var(--fast), border-color var(--fast), background var(--fast); }
.palette__filter:hover { color: var(--text-1); border-color: var(--line-3); }
.palette__filter[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: var(--weight-medium); }
/* a search in flight: a line of light runs under the field */
.palette__bar { position: relative; }
.palette__bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat; opacity: 0; }
.palette.is-loading .palette__bar::after { opacity: 1; animation: palette-loading 0.9s linear infinite; }
@keyframes palette-loading { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.palette__text mark { background: none; color: var(--accent); padding: 0; }
@media (max-width: 759px) {
  .palette__filters { padding: var(--space-4) var(--space-7); }
  .palette__filter { height: var(--tap); padding: 0 var(--space-6); font-size: var(--text-base); }
  .palette__scope { height: 34px; max-width: 62%; padding: 0 var(--space-4) 0 var(--space-5); font-size: var(--text-base); }
  .palette__scope .icon { width: 13px; height: 13px; }
}

/* a row: the result, and beside it the way to step inside */
.palette__row { position: relative; }
.palette__in { position: absolute; right: var(--space-2); top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: var(--radius-sm); color: var(--text-3); opacity: 0; transition: opacity var(--fast), background var(--fast), color var(--fast); }
.palette__in .icon { width: 14px; height: 14px; transform: rotate(-90deg); }
.palette__row:hover .palette__in, .palette__item[aria-selected="true"] + .palette__in { opacity: 1; }
.palette__in:hover { background: var(--wash-3); color: var(--text-1); }
/* room for the button, so it never sits on the kind label */
.palette__row:has(.palette__in) .palette__hint { margin-right: 34px; }
/* the preview's parts keep their own height: a long list of facts scrolls, it is never squeezed */
.palette__preview > * { flex: none; }
@media (hover: none) { .palette__in { opacity: 1; } }
@media (max-width: 759px) {
  .palette__in { width: var(--tap); height: var(--tap); right: 0; }
  .palette__row:has(.palette__in) .palette__hint { display: none; }
  .palette__row:has(.palette__in) .palette__item { padding-right: var(--tap); }
}

/* The backdrop layer behind the hero and the closing section. src/client/backdrop/ draws into it;
   without WebGL (or before the script runs) the three soft lights below show instead. The layer's
   data-bg is the section's backdrop, resolved on the server from the section's prop or the theme. */

.backdrop { position: absolute; z-index: 0; overflow: hidden; pointer-events: none; background: var(--bg); animation: fade 1.8s ease-out backwards; }
.backdrop canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* film grain over whatever is drawn */
.grain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: overlay; opacity: 0.34; }
.backdrop[data-bg="globe"] .grain { opacity: 0.2; }
.backdrop[data-bg="horizon"] .grain { opacity: 0.24; }
.backdrop[data-bg="contours"] .grain, .backdrop[data-bg="threads"] .grain { opacity: 0.16; }
.backdrop[data-bg="subway"] .grain { opacity: 0.14; }

/* the fallback: three lights, one per palette tone, drifting */
.backdrop__lights { position: absolute; inset: 0; -webkit-mask-image: repeating-linear-gradient(97deg, #000 0, rgb(0 0 0 / 0.6) 52px, #000 104px, rgb(0 0 0 / 0.82) 158px, #000 226px, rgb(0 0 0 / 0.52) 300px, #000 380px); mask-image: repeating-linear-gradient(97deg, #000 0, rgb(0 0 0 / 0.6) 52px, #000 104px, rgb(0 0 0 / 0.82) 158px, #000 226px, rgb(0 0 0 / 0.52) 300px, #000 380px); }
.backdrop.is-drawn .backdrop__lights { display: none; }
.backdrop__lights i { position: absolute; border-radius: 50%; will-change: transform; }
.backdrop__lights i:nth-child(1) { left: -12%; top: -44%; width: 68%; height: 108%; background: radial-gradient(closest-side, oklch(var(--A) / 0.3), oklch(var(--A) / 0.1) 56%, transparent); animation: light-a 26s ease-in-out infinite alternate; }
.backdrop__lights i:nth-child(2) { left: 17%; top: -54%; width: 66%; height: 116%; background: radial-gradient(closest-side, oklch(var(--B) / 0.3), oklch(var(--B) / 0.1) 56%, transparent); animation: light-b 33s ease-in-out infinite alternate; }
.backdrop__lights i:nth-child(3) { right: -12%; top: -42%; width: 64%; height: 104%; background: radial-gradient(closest-side, oklch(var(--C) / 0.36), oklch(var(--C) / 0.12) 56%, transparent); animation: light-c 29s ease-in-out infinite alternate; }
@keyframes light-a { to { transform: translate3d(10%, 7%, 0) scale(1.14); } }
@keyframes light-b { to { transform: translate3d(-9%, 9%, 0) scale(1.08) rotate(5deg); } }
@keyframes light-c { to { transform: translate3d(-11%, 5%, 0) scale(1.16); } }
@media (max-width: 759px) {
  .backdrop__lights i:nth-child(1) { left: -46%; width: 124%; }
  .backdrop__lights i:nth-child(2) { left: -6%; width: 118%; }
  .backdrop__lights i:nth-child(3) { right: -52%; width: 124%; }
}

/* ---- in the hero: it starts under the top bar and fades out before the directory ---- */
.hero > .backdrop { inset: calc(var(--bar) * -1 - 1px) 0 auto 0; height: calc(100% + var(--bar) + 1px + 150px); -webkit-mask-image: linear-gradient(#000 0, #000 34%, transparent 98%); mask-image: linear-gradient(#000 0, #000 34%, transparent 98%); }
.hero > .backdrop[data-bg="horizon"] { -webkit-mask-image: linear-gradient(#000 0, #000 86%, transparent 100%); mask-image: linear-gradient(#000 0, #000 86%, transparent 100%); }
.hero > .backdrop[data-bg="globe"] { -webkit-mask-image: linear-gradient(#000 0, #000 calc(100% - 222px), transparent calc(100% - 150px)); mask-image: linear-gradient(#000 0, #000 calc(100% - 222px), transparent calc(100% - 150px)); }
.hero > .backdrop[data-bg="subway"] { -webkit-mask-image: linear-gradient(transparent 44px, #000 120px, #000 calc(100% - 270px), transparent calc(100% - 146px)); mask-image: linear-gradient(transparent 44px, #000 120px, #000 calc(100% - 270px), transparent calc(100% - 146px)); }

/* ---- behind the top of a page that opens with a hero (PageFrame's backdrop): under the top bar, gone before the page's first section ---- */
.page-sky { position: absolute; inset: calc(var(--bar) * -1 - 1px) 0 auto 0; height: clamp(560px, 56vw, 780px); z-index: 0; pointer-events: none; opacity: 0.5; }
.page-sky > .backdrop { inset: 0; -webkit-mask-image: linear-gradient(#000 0, #000 34%, transparent 98%); mask-image: linear-gradient(#000 0, #000 34%, transparent 98%); }

/* ---- in the closing section: the same sky, rising from the bottom ---- */
.closer > .backdrop { inset: 0; -webkit-mask-image: linear-gradient(0deg, #000 0, #000 26%, transparent 90%); mask-image: linear-gradient(0deg, #000 0, #000 26%, transparent 90%); }
.closer > .backdrop:not(.is-drawn) .backdrop__lights { transform: scaleY(-1); }
.closer > .backdrop[data-bg="horizon"], .closer > .backdrop[data-bg="globe"] { -webkit-mask-image: linear-gradient(0deg, #000 0, #000 60%, transparent 100%); mask-image: linear-gradient(0deg, #000 0, #000 60%, transparent 100%); }
.closer > .backdrop[data-bg="subway"] { -webkit-mask-image: linear-gradient(0deg, #000 0, #000 70%, transparent 100%); mask-image: linear-gradient(0deg, #000 0, #000 70%, transparent 100%); }

/* The API page's own parts (pages/product.tsx, pages/product-head.tsx, components/product-parts.tsx).
   Tokens only, like every other stylesheet. */

/* ---------- shared leaf parts ---------- */

/* the company's own home page, as a picture in a plain window */
.shot { display: block; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line-2); background: var(--surface-1); box-shadow: var(--shadow-deep); transition: border-color var(--medium), transform var(--medium) var(--ease); }
.shot:hover { border-color: var(--line-3); transform: translateY(-2px); }
.shot__bar { display: flex; align-items: center; gap: var(--space-4); height: 34px; padding: 0 var(--space-6); border-bottom: 1px solid var(--line-1); font-size: var(--text-xs); color: var(--text-3); }
.shot__bar i { flex: none; width: 7px; height: 7px; margin-right: 26px; border-radius: 50%; background: var(--wash-4); box-shadow: 13px 0 0 var(--wash-4), 26px 0 0 var(--wash-4); }
.shot__bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-family: var(--font-mono); font-weight: var(--weight-regular); }
.shot__bar .icon { flex: none; width: 12px; height: 12px; margin-left: 26px; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.fold summary { list-style: none; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold[open] > .chips { margin-top: var(--space-2); }

/* the links out: its site, its docs, its pricing page */
.outs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-7); vertical-align: bottom; }
.outs a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-2); white-space: nowrap; }
.outs a:hover { color: var(--text-1); }
.outs .icon { width: 12px; height: 12px; }

/* ---------- phones ---------- */
/* a long name in a line of links is cut with an ellipsis, never wider than the page */
.fold summary > .chips { min-width: 0; }

/* ---------- shared: a list that opens, the plan list, the shutdown notice, a real answer ---------- */

/* One list; rows past its limit are hidden until the box is ticked. Without :has() every row shows. */

/* Plans. The columns belong to the list, not to each row: the name and what comes with it are as
   wide as the widest of them (to a limit), the date as wide as a date, and the price has the rest. */

/* a warning: the accent, as a wash and an edge all round */
.ended { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-5); max-width: var(--measure-wide); margin-top: var(--space-9); padding: var(--space-5) var(--space-7); border-radius: var(--radius-lg); border: 1px solid var(--accent-line); background: var(--panel-accent); font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-2); }
.ended b { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: var(--weight-semibold); color: var(--accent); white-space: nowrap; }
.ended b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.ended a { color: var(--text-1); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.ended a:hover { text-decoration-color: var(--accent); }

/* A real answer from the API, in the window a picture of its site would have. It is the page's one
   piece of code, so it is set as code is everywhere else on the site: sunk ground, numbered lines,
   the token colours. A lit edge along the top; the last lines fade where the answer goes on. */
.shot--code { position: relative; margin: 0; background: var(--bg-sunk); box-shadow: var(--lit), var(--shadow-deep); }
.shot--code:hover { transform: none; border-color: var(--line-2); }
.shot--code .shot__bar { height: 40px; background: var(--wash-1); transition: background-color var(--fast); }
.shot--code a.shot__bar:hover { background: var(--wash-2); }
.shot--code a.shot__bar:hover .icon { color: var(--text-1); }
.shot--code .shot__bar b { text-align: left; font-size: 12px; color: var(--text-3); }
.shot__host { color: var(--text-1); }
/* a line too long for a narrow screen scrolls inside the window; it is never cut without saying so */
/* the page as data: what it is (JSON) and a copy button in the bar; on a phone it is kept short, since it comes before the page's own parts */
.shot--data .shot__bar { padding-right: var(--space-4); }
.shot--data .shot__bar b { font-size: var(--text-xs); letter-spacing: 0.04em; }
/* the bar's rule for its own small icon must not reach into the copy button */
.shot--data .shot__bar .copy .icon { width: 15px; height: 15px; margin-left: 0; }
.shot--code pre::-webkit-scrollbar { display: none; }
.shot--code pre { display: flex; margin: 0; padding: var(--space-8) var(--space-9); overflow: auto hidden; scrollbar-width: none; overscroll-behavior-x: contain; font-family: var(--font-mono); font-size: 13px; line-height: 1.72; color: var(--text-2); tab-size: 2; }
.shot--code pre.is-cut { -webkit-mask-image: linear-gradient(#000 calc(100% - 96px), transparent); mask-image: linear-gradient(#000 calc(100% - 96px), transparent); }
.shot--code pre:focus-visible { outline-offset: -2px; }
/* the API as data: as tall as its first lines (--lines), and it scrolls through the rest, down and sideways. The foot fades
   to say there is more; the room under the last line lets it be read clear of the fade. */
.shot--data pre { align-items: flex-start; max-height: calc(var(--lines, 16) * 1lh + var(--space-8) * 2); overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; overscroll-behavior-x: contain; }
.shot--data pre.is-cut code { padding-bottom: 72px; }
.shot--data code { padding-right: var(--space-9); }
.shot--code code { display: block; white-space: pre; }

/* ---------- D, "Dossier": the same facts, set with more care ---------- */
.pd-head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 56px) clamp(40px, 6vw, 96px); align-items: center; margin-top: var(--gap-head); padding-bottom: clamp(40px, 5vw, 72px); }
.pd-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline-accent); }
.pd-head__text { min-width: 0; }
.pd-head__text > * { animation: rise var(--enter) var(--ease) both; }
.pd-head__text > :nth-child(2) { animation-delay: 0.04s; }
.pd-head__text > :nth-child(3) { animation-delay: 0.08s; }
.pd-head__text > :nth-child(n + 4) { animation-delay: 0.12s; }
.pd-by { display: flex; align-items: center; gap: var(--space-7); font-size: var(--text-md); color: var(--text-3); }
.pd-by__who { min-width: 0; overflow-wrap: anywhere; }
.pd-by__who a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.pd-by__who a:hover { color: var(--text-1); }
.pd-name { margin-top: var(--space-10); padding-bottom: 0.06em; font-size: var(--text-display); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-display); line-height: var(--leading-flat); text-wrap: balance; overflow-wrap: anywhere; }
.pd-head--shot .pd-name { font-size: clamp(40px, 5.2vw, 68px); }
.pd-head .pd-name--l { font-size: var(--text-h1); letter-spacing: var(--tracking-heading); line-height: var(--leading-tight); }
.pd-head .pd-name--xl { font-size: clamp(26px, 3.1vw, 40px); letter-spacing: var(--tracking-title); line-height: 1.12; }
.pd-what { margin-top: var(--space-8); max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.42; letter-spacing: var(--tracking-snug); color: var(--text-2); text-wrap: pretty; overflow-wrap: anywhere; }
.pd-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.pd-buy { display: grid; justify-items: start; gap: var(--space-9); margin-top: clamp(28px, 3.4vw, 44px); min-width: 0; }
.pd-price { display: grid; gap: var(--space-2); min-width: 0; }
.pd-price__label { font-size: var(--text-xs); color: var(--text-3); }
.pd-price b { margin-bottom: var(--space-1); font-size: clamp(26px, 2.8vw, 38px); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading); line-height: 1.08; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pd-price b.is-long { max-width: 30em; font-size: clamp(18px, 1.7vw, 22px); letter-spacing: var(--tracking-snug); line-height: 1.3; }
.pd-price b.is-none { color: var(--text-3); }
.pd-price__line { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-2); overflow-wrap: anywhere; }
.pd-price__src { color: var(--text-3); }
.pd-price__src a { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.pd-price__src a:hover { color: var(--text-1); }
.pd-visit { margin-left: auto; font-size: var(--text-sm); }
/* the site's own page sits back until it is looked at: a white page at full strength would be the brightest thing here */
.pd-shot { filter: saturate(0.82) brightness(0.84); animation: rise var(--enter) var(--ease) 0.12s both; transition: filter var(--slow), border-color var(--medium), transform var(--medium) var(--ease); }
.pd-shot:hover, .pd-shot:focus-visible { filter: none; }
.pd-answer { animation: rise var(--enter) var(--ease) 0.12s both; }

/* what it does: the things are one column as wide as the longest of them, so every line of actions starts on the same edge */

/* alternatives: the name has the room, and "does 5 of its 10 jobs" and Compare are each one column down the list */

/* the sponsored place: an empty row in the shape of the alternatives above it, dashed and labelled */
.pd-sponsor { display: flex; align-items: center; gap: var(--space-5); margin: 0 calc(-1 * var(--space-6) - 1px) var(--space-5); padding: var(--space-5) var(--space-6); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); font-size: var(--text-sm); transition: border-color var(--medium), background-color var(--medium); }
.pd-sponsor:hover { border-color: var(--line-3); background-color: var(--wash-1); }
.pd-sponsor__text { min-width: 0; margin-right: auto; font-size: var(--text-md); font-weight: var(--weight-medium); }
.pd-sponsor .tag { flex: none; }
.pd-sponsor__go { display: inline-flex; align-items: center; gap: var(--space-2); flex: none; color: var(--text-2); white-space: nowrap; }
.pd-sponsor:hover .pd-sponsor__go { color: var(--text-1); }
.pd-sponsor__go .icon { width: 13px; height: 13px; }

/* For agents. The answer first; then a row for each group of facts, which opens to the facts themselves.
   The name column is one width in the row and in the facts under it, so a fact's answer sits under its row of marks. */
.ag { --ag-name: 13.75rem; }
.ag-verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-7); margin-bottom: var(--space-9); font-size: var(--text-md); line-height: var(--leading-normal); color: var(--text-2); }
.ag-verdict .status { font-size: var(--text-md); font-weight: var(--weight-medium); }
.ag-groups { border-top: 1px solid var(--line-1); }
.ag-group { border-bottom: 1px solid var(--line-1); }
.ag-group__row { display: grid; grid-template-columns: var(--ag-name) minmax(0, 1fr) max-content 16px; align-items: center; column-gap: var(--space-8); padding: var(--space-6) 0; list-style: none; }
summary.ag-group__row { cursor: pointer; }
summary.ag-group__row::-webkit-details-marker { display: none; }
.ag-group__title { font-size: var(--text-md); font-weight: var(--weight-medium); }
.ag-group__n { font-size: var(--text-xs); font-variant-numeric: tabular-nums; color: var(--text-3); white-space: nowrap; }
.ag-group__row .icon { width: 16px; height: 16px; color: var(--text-3); transition: transform var(--medium) var(--ease), color var(--fast); }
summary.ag-group__row:hover .icon { color: var(--text-1); }
.ag-group[open] > summary .icon { transform: rotate(180deg); }
.ag-marks { display: flex; flex-wrap: wrap; gap: 5px; }
.ag-marks i { position: relative; width: 18px; height: 18px; border-radius: 5px; background: var(--wash-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.ag-marks i[data-state="yes"], .pd-tally [data-state="yes"]::before, .ag-facts li[data-state="yes"] .ag-facts__label::before { background: var(--accent); box-shadow: none; }
.ag-marks i[data-state="no"], .pd-tally [data-state="no"]::before, .ag-facts li[data-state="no"] .ag-facts__label::before { background: none; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.ag-marks i[data-state="other"], .pd-tally [data-state="other"]::before, .ag-facts li[data-state="other"] .ag-facts__label::before { background: var(--text-3); box-shadow: none; }
/* the opened facts sit in their own inset panel, a step in from the row that opened them; the name column gives up the inset so answers still sit under the marks */
/* what a mark stands for, over the mark: the fact, then its answer with the same mark beside it */
.ag-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: var(--z-hero); display: none; width: max-content; max-width: 260px; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--line-2); background: var(--surface-3); box-shadow: var(--shadow-float); font-style: normal; font-size: var(--text-xs); line-height: var(--leading-normal); text-align: left; white-space: normal; pointer-events: none; transform: translateX(-50%); }
.ag-tip::after { content: ""; position: absolute; left: 50%; top: 100%; width: 9px; height: 9px; margin: -5px 0 0 -5px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--surface-3); transform: rotate(45deg); }
.ag-tip b { display: block; font-weight: var(--weight-medium); color: var(--text-1); }
.ag-tip span { display: flex; align-items: baseline; gap: var(--space-3); margin-top: 2px; color: var(--text-2); }
.ag-tip span::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--wash-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.ag-tip span[data-state="yes"]::before { background: var(--accent); box-shadow: none; }
.ag-tip span[data-state="no"]::before { background: none; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.ag-tip span[data-state="other"]::before { background: var(--text-3); box-shadow: none; }
@keyframes ag-tip { from { opacity: 0; transform: translateX(-50%) translateY(4px); } }
@media (hover: hover) {
  .ag-marks i:hover { outline: 1.5px solid var(--text-1); outline-offset: 1.5px; }
  .ag-marks i:hover .ag-tip { display: block; animation: ag-tip var(--medium) var(--ease) both; }
}
.ag-facts { --ag-inset: var(--space-7); margin-bottom: var(--space-8); padding: var(--space-3) var(--ag-inset); border-radius: var(--radius-lg); background: var(--wash-1); box-shadow: inset 0 0 0 1px var(--line-1); animation: rise var(--enter) var(--ease) both; }
.ag-facts li:first-child { border-top: 0; }
.ag-facts li { display: grid; grid-template-columns: calc(var(--ag-name) - var(--ag-inset)) minmax(0, 1fr); column-gap: var(--space-8); align-items: baseline; padding: var(--space-5) 0; border-top: 1px solid var(--line-1); font-size: var(--text-sm); }
.ag-facts__label { display: flex; align-items: baseline; gap: var(--space-4); color: var(--text-2); }
.ag-facts__label::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2.5px; background: var(--wash-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.ag-facts__said { min-width: 0; overflow-wrap: anywhere; }
.ag-facts__said b { font-weight: var(--weight-medium); }
.ag-facts__said span { display: block; margin-top: 2px; font-size: var(--text-xs); line-height: var(--leading-normal); color: var(--text-3); }
.ag-facts__rest .ag-facts__label { color: var(--text-3); }
.ag-facts__rest .ag-facts__said span { margin-top: 0; }
@media (max-width: 759px) {
  .ag-group__row { grid-template-columns: minmax(0, 1fr) max-content 16px; row-gap: var(--space-5); min-height: var(--tap); }
  .ag-group__row .ag-marks { grid-column: 1 / -1; grid-row: 2; }
  .ag-facts { --ag-inset: var(--space-6); }
  .ag-facts li { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); padding: var(--space-5) 0; }
  .ag-facts__said { padding-left: calc(9px + var(--space-4)); }
}
/* the sponsored row over a grid of cards keeps to the grid's edges */
.pd-sponsor:has(+ .minis) { margin-inline: 0; }
.pd-tally { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); margin-top: var(--space-8); font-size: var(--text-sm); color: var(--text-2); }
.pd-tally span { display: inline-flex; align-items: center; gap: var(--space-3); white-space: nowrap; }
.pd-tally span::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2.5px; background: var(--wash-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* connections: the kind of link is one column as wide as the longest of them */

@media (min-width: 1040px) {
  .pd-head--shot { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
  /* no picture and no answer to show: the price takes the right of the head, level with the end of the sentence */
  .pd-head:not(.pd-head--shot) .pd-head__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); column-gap: clamp(40px, 6vw, 96px); }
  .pd-head:not(.pd-head--shot) .pd-head__text > * { grid-column: 1; }
  .pd-head:not(.pd-head--shot) .pd-buy { grid-column: 2; grid-row: 2 / span 2; align-self: end; margin-top: 0; padding-left: var(--space-11); border-left: 1px solid var(--line-1); }
}
@media (max-width: 979px) {
  .pd-head { padding-bottom: clamp(28px, 5vw, 48px); }
  .pd-head::after { display: none; }
}
@media (max-width: 759px) {
  .shot--code pre { padding: var(--space-7); font-size: 12px; }

  .pd-head { margin-top: 22px; }
  .pd-by .tile--xl { width: 52px; height: 52px; border-radius: var(--radius-xl); }
  .pd-by { gap: var(--space-6); flex-wrap: wrap; }
  /* the links out (site, docs, pricing) come after the sentence that says what it is: the logo, the name and that sentence read first.
     The line of logo and maker steps aside so its parts can be placed among the others. */
  .pd-head__text { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-6); }
  .pd-head__text > * { grid-column: 1 / -1; }
  .pd-by { display: contents; }
  .pd-by__who { align-self: center; font-size: var(--text-md); color: var(--text-3); }
  .pd-visit { grid-column: 1 / -1; order: 1; margin: var(--space-6) 0 0; width: 100%; font-size: var(--text-sm); color: var(--text-3); }
  .pd-head__text > .pd-name ~ :not(.pd-what) { order: 2; }
  .pd-name, .pd-head--shot .pd-name { margin-top: var(--space-8); font-size: clamp(34px, 10.4vw, 44px); letter-spacing: var(--tracking-heading); line-height: var(--leading-tight); }
  .pd-head .pd-name--l { font-size: clamp(27px, 8vw, 34px); }
  .pd-head .pd-name--xl { font-size: clamp(22px, 6.4vw, 27px); }
  .pd-what { font-size: 16.5px; }
  .pd-buy { justify-items: stretch; }
  .pd-actions .btn { flex: 1; justify-content: center; }
  .pd-visit a { min-height: var(--tap); }
  .pd-sponsor { min-height: var(--tap); }
  .pd-sponsor__go span { display: none; }
}

.summary .status, .facts .status { font-size: inherit; }
.side-card dt a { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: color var(--fast); }
.side-card dt a:hover { color: var(--text-1); }
/* a part reached from the side card stops below the top bar, not under it */
.page-body .section__head h2 { scroll-margin-top: calc(var(--bar) + var(--space-8)); }

/* the fine print under the side panel sits centred under the cards above it */
@media (min-width: 760px) {
  .pd--head + .page-grid .side-fine { text-align: center; }
}

/* ---------- the API QA score: a letter, ten pips, the total. One line, so it fits a row of the side panel ---------- */
.qa { display: inline-flex; align-items: center; gap: var(--space-4); vertical-align: middle; white-space: nowrap; }
/* the letter sets one colour (tokens.css), and the chip and the lit pips take it: B is yellow, A and A+ teal; C and below are grey */
.qa { --qa: var(--text-2); }
.qa[data-letter="B"] { --qa: var(--score-b); }
.qa[data-letter="A"], .qa[data-letter="A+"] { --qa: var(--score-a); }
.qa b { min-width: 24px; padding: 0 var(--space-3); border-radius: var(--radius-xs); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--qa) 42%, transparent); background: color-mix(in oklch, var(--qa) 15%, transparent); font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 22px; text-align: center; color: var(--qa); }
.qa__pips { display: inline-flex; gap: 2px; }
.qa__pips i[data-on] { background: var(--qa); }
.qa__pips i { width: 5px; height: 12px; border-radius: 1.5px; background: var(--wash-4); }
.qa__n { font-family: var(--font-mono); font-size: var(--text-xs); font-variant-numeric: tabular-nums; color: var(--text-2); }
.qa:hover .qa__n { color: var(--text-1); }

/* head to head: two columns, like the jobs and alternatives above it; three cut most names short */
@media (min-width: 760px) {
  .pd--head + .page-grid .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* the things in the Facts table are links: on a phone each is tall enough to press */
@media (max-width: 759px) {
  .facts a.chip { height: 32px; padding: 0 var(--space-5); font-size: var(--text-sm); }
}

/* a Facts row the side panel already carries shows only where that panel is hidden */
@media (min-width: 760px) {
  .facts > .facts__phone { display: none; }
}

@media (max-width: 759px) {
  .shot--data pre { max-height: 240px; -webkit-mask-image: linear-gradient(#000 calc(100% - 72px), transparent); mask-image: linear-gradient(#000 calc(100% - 72px), transparent); }
}

/* a long thing name in the Facts table is cut with an ellipsis, never wider than its cell */
.facts .chips { min-width: 0; }
.facts a.chip { display: inline-block; max-width: 100%; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 759px) { .facts a.chip { line-height: 30px; } }

/* The Compare page (pages/compare.tsx): two cards for the two APIs, then every fact in two columns. */

/* ---- shared ---- */
.cx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cx { --cx-label: 190px; --cx-gap: clamp(16px, 3.6vw, 56px); }
.cx-val { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; line-height: var(--leading-normal); }
.cx-val[data-state="none"] { color: var(--text-faint); }
.cx-val__words { text-wrap: pretty; }
.cx-val__words a { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.cx-val__words a:hover { text-decoration-color: currentColor; }
.cx-val__note, .cx-val .source { font-size: var(--text-xs); line-height: 1.45; color: var(--text-3); }
.cx-mark { display: inline-block; width: 9px; height: 9px; margin-right: var(--space-3); border-radius: 2.5px; }
[data-state="yes"] > .cx-val__words .cx-mark { background: var(--accent); }
[data-state="no"] > .cx-val__words .cx-mark { box-shadow: inset 0 0 0 1.5px var(--text-3); }
.cx-price { font-size: var(--text-xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-title); line-height: 1.25; overflow-wrap: anywhere; }
.cx-price.is-none { font-weight: var(--weight-medium); color: var(--text-3); }
.cx-tally { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-8); font-size: var(--text-sm); color: var(--text-3); }
.cx-tally span { white-space: nowrap; }
.cx-tally b { font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; color: var(--text-1); }
.cx .status { white-space: normal; font-size: inherit; }

/* ---- the table: a topic at a time, an API per column ---- */
.cxt-names, .cxt-row { display: grid; grid-template-columns: var(--cx-label) minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--cx-gap); }
.cxt-names { position: sticky; top: var(--bar); z-index: 2; align-items: center; padding: var(--space-5) 0; border-bottom: 1px solid var(--line-2); background: var(--bg); }
.cxt-names a { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.cxt-names b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); }
.cxt-topic h3 { padding: var(--space-10) 0 var(--space-5); font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-snug); }
.cxt-row { align-items: baseline; padding: var(--space-6) 0; border-top: 1px solid var(--line-1); font-size: var(--text-md); }
.cxt-label { font-size: var(--text-sm); color: var(--text-3); overflow-wrap: anywhere; }
.cxt-cell { min-width: 0; overflow-wrap: anywhere; }
.cxt-cell .cx-price { font-size: var(--text-md); }
.cxt-row[data-standing="same"] .cx-val { color: var(--text-2); }
.cxt-who { display: none; }

@media (max-width: 759px) {
  /* ---- table: the fact's name above its two answers; a long answer takes the full width under its API's name ---- */
  .cxt-names, .cxt-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-8); }
  .cxt-names > span { display: none; }
  .cxt-names { padding: var(--space-4) 0; }
  .cxt-names a { gap: var(--space-3); }
  .cxt-names .tile { width: 22px; height: 22px; border-radius: var(--radius-xs); font-size: 9px; }
  .cxt-names b { font-size: var(--text-sm); }
  .cxt-topic h3 { padding-top: var(--space-11); font-size: var(--text-lg); }
  .cxt-row { padding: var(--space-6) 0; font-size: var(--text-base); row-gap: var(--space-3); }
  .cxt-label { grid-column: 1 / -1; font-size: var(--text-sm); }
  .cxt-row--long { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-7); }
  .cxt-row--long .cxt-label { margin-bottom: calc(var(--space-3) * -1); }
  .cxt-row--long .cxt-cell { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--space-5); align-items: start; }
  .cxt-row--long .cxt-label { grid-column: auto; }
  .cxt-row--long .cxt-who { display: block; }
  .cxt-row--long .cxt-who .tile { width: 24px; height: 24px; border-radius: var(--radius-xs); font-size: 9px; }
  .cxt-who__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

}

/* a status that wraps keeps its dot beside the first line */
.cx .status { align-items: flex-start; }
.cx .status::before { flex: none; margin-top: 0.5em; }

/* ---- the head: a card for each API ---- */
/* Each card has four bands: who it is, what it costs, three facts, the way in.
   Wide: the cards share their rows, so every band sits level with its twin, and "vs" stands in a gutter of its own. */
.cxh-head { margin-top: var(--gap-head); }
.cxh-cards { --cxh-pad: clamp(20px, 2.6vw, 36px); display: grid; }
.cxh-card { position: relative; isolation: isolate; display: grid; align-content: start; border: 1px solid var(--line-2); border-radius: var(--radius-3xl); background: var(--panel); box-shadow: var(--lit-strong), var(--shadow-deep); overflow: hidden; }
/* a soft light from the corner the logo sits in: the same on both, so neither is favoured */
.cxh-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(90% 70% at 0% 0%, var(--wash-3), transparent 68%); }
.cxh-card > * { padding-left: var(--cxh-pad); padding-right: var(--cxh-pad); }
.cxh-top { padding-top: var(--cxh-pad); }
.cxh-name { align-self: start; font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.cxh-name:hover { color: var(--white); }
.cxh-by { color: var(--text-3); }
.cxh-by a:hover { color: var(--text-1); }
/* what it costs: a band from edge to edge, the one number given room */
.cxh-fact--1 { display: flex; flex-direction: column; gap: var(--space-2); border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); background: var(--wash-1); overflow-wrap: anywhere; }
.cxh-fact--1 small { font-size: var(--text-sm); color: var(--text-3); }
/* The price is set as large as its line allows: full size when it fits, and otherwise the size at which it fills the
   line, down to 17px, where it wraps. The room is the card's own width (100cqi); the width of the words is their
   count (--chars, pages/compare.tsx) at 0.49em a character: this face measures 0.47em, so the line is a little short of full. */
.cxh-fact--1 > span { container-type: inline-size; }
.cxh-fact--1 .cx-price { --full: clamp(22px, 2.4vw, 30px); font-size: clamp(min(17px, var(--full)), calc(100cqi / (var(--chars, 1) * 0.49)), var(--full)); letter-spacing: -0.034em; line-height: 1.15; text-wrap: pretty; }
.cx .cx-price.is-wide { font-size: var(--text-md); font-weight: var(--weight-medium); letter-spacing: 0; line-height: var(--leading-normal); text-wrap: pretty; }
/* three facts: each a line, ruled between and not above the first */
.cxh-fact:not(.cxh-fact--1) { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: baseline; column-gap: var(--space-6); overflow-wrap: anywhere; }
.cxh-fact:not(.cxh-fact--1) small { color: var(--text-3); }
.cxh-fact--3::before, .cxh-fact--4::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--line-1); }
.cxh-open { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); border-top: 1px solid var(--line-1); font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--text-2); transition: background-color var(--fast), color var(--fast); }
.cxh-open:hover { background: var(--wash-2); color: var(--text-1); }
.cxh-open .icon { width: 15px; height: 15px; transition: transform var(--medium) var(--ease); }
.cxh-open:hover .icon { transform: translateX(3px); }
/* "vs" stands clear of both cards, a line running into it from each end of the gutter */
.cxh-vs { display: flex; align-items: center; justify-content: center; gap: var(--space-5); }
.cxh-vs::before, .cxh-vs::after { content: ""; flex: 1; background: var(--line-2); }
.cxh-vs b { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-1); box-shadow: var(--lit); font-family: var(--font-mono); font-size: var(--text-2xs); font-weight: var(--weight-medium); color: var(--text-2); }

@media (min-width: 760px) {
  .cxh-cards { grid-template-columns: minmax(0, 1fr) clamp(56px, 7vw, 104px) minmax(0, 1fr); }
  .cxh-card { grid-row: 1 / span 7; grid-template-rows: subgrid; }
  .cxh-id { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
  .cxh-card--b { grid-column: 3; }
  .cxh-vs { grid-column: 2; grid-row: 1 / span 7; flex-direction: column; padding: clamp(40px, 6vw, 88px) 0; }
  .cxh-vs::before, .cxh-vs::after { width: 1px; }
  .cxh-vs::before { background: linear-gradient(transparent, var(--line-2)); }
  .cxh-vs::after { background: linear-gradient(var(--line-2), transparent); }
  .cxh-name { margin-top: clamp(18px, 2.2vw, 28px); font-size: clamp(26px, 3.3vw, 44px); letter-spacing: -0.042em; line-height: var(--leading-tight); text-wrap: balance; }
  .cxh-name .icon { display: none; }
  .cxh-by { margin-top: var(--space-3); padding-bottom: clamp(20px, 2.4vw, 32px); font-size: var(--text-md); }
  .cxh-fact--1 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .cxh-fact:not(.cxh-fact--1) { row-gap: var(--space-6); padding-bottom: var(--space-6); font-size: var(--text-md); }
  .cxh-fact:not(.cxh-fact--1) small { font-size: var(--text-sm); }
  .cxh-fact--2 { padding-top: var(--space-7); }
  .cxh-fact--4 { padding-bottom: var(--space-8); }
  .cxh-open { padding-top: var(--space-7); padding-bottom: var(--space-7); }
}

@media (max-width: 759px) {
  /* phone: a card each, stacked, with "vs" on a line in the space between them; the name is the way in */
  .cxh-cards { --cxh-pad: var(--space-7); }
  .cxh-card { border-radius: var(--radius-2xl); grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-6); }
  .cxh-card > * { grid-column: 1 / -1; }
  .cxh-top { grid-column: 1; grid-row: 1; align-self: center; padding-right: 0; padding-bottom: var(--space-7); }
  .cxh-id { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-width: 0; padding-left: 0; padding-top: var(--cxh-pad); padding-bottom: var(--space-7); }
  .cxh-top .tile--xl { width: 48px; height: 48px; border-radius: var(--radius-xl); font-size: var(--text-md); }
  .cxh-name { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5); font-size: var(--text-xl); letter-spacing: var(--tracking-title); line-height: 1.2; }
  .cxh-name .icon { flex: none; width: 15px; height: 15px; color: var(--text-3); }
  .cxh-by { margin-top: 2px; font-size: var(--text-sm); }
  /* the label stays above the price here too: beside it, a long price squeezed the label to a letter a line */
  .cxh-fact--1 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  /* on a phone a long price wraps whatever its size, so it is not shrunk first: both cards' prices are one size */
  .cxh-fact--1 .cx-price { --full: var(--text-xl); font-size: var(--full); letter-spacing: var(--tracking-title); }
  .cxh-fact:not(.cxh-fact--1) { grid-template-columns: 104px minmax(0, 1fr); row-gap: var(--space-4); padding-bottom: var(--space-4); font-size: var(--text-base); }
  .cxh-fact:not(.cxh-fact--1) small { font-size: var(--text-sm); }
  .cxh-fact--2 { padding-top: var(--space-5); }
  .cxh-fact--4 { padding-bottom: var(--space-6); }
  .cxh-open { display: none; }
  .cxh-vs { padding: var(--space-6) 6%; }
  .cxh-vs::before, .cxh-vs::after { height: 1px; }
  .cxh-vs::before { background: linear-gradient(90deg, transparent, var(--line-3)); }
  .cxh-vs::after { background: linear-gradient(270deg, transparent, var(--line-3)); }
  .cxh-vs b { width: 32px; height: 32px; }
}

@media (max-width: 759px) {
  /* the logo keeps to the top line of its name: centred, it drifted down the card as a long name wrapped */
  .cxh-top { align-self: start; padding-top: var(--cxh-pad); }
}

@media (max-width: 759px) {
  /* the name runs the card's width, so its arrow sits at the edge */
  .cxh-name { align-self: stretch; }
}

/* ---- the unit a price is per, when its own words do not say ---- */
.cx-unit { margin-left: var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-regular); letter-spacing: 0; color: var(--text-3); white-space: nowrap; }

/* ---- what both work on: one answer under both names ---- */
.cxt-row--both .cxt-cell { grid-column: 2 / -1; }
.cxt .chips { align-items: center; }
.cxt .chip:is(a):hover { border-color: var(--line-3); color: var(--text-1); }


@media (max-width: 759px) {
  .cxt-row--both .cxt-cell { grid-column: 1 / -1; }
}

/* A row of prices on a phone: each API's logo over its own list, not beside it, so the list has the
   whole width of the screen for a plan's name and its price. */
@media (max-width: 759px) {
  .cxt-row--prices { row-gap: var(--space-10); }
  .cxt-row--prices .cxt-label { margin-bottom: calc(var(--space-7) * -1); }
  .cxt-row--prices .cxt-cell { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-6); }
  .cxt-row--prices .cxt-who { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
}

/* An API's prices, listed (components/prices.tsx): one part for the API page and the Compare page.
   It sizes itself to the box it is put in, not to the screen: the same list is 900px wide on an API page
   and 300px wide in a Compare column. Two layouts: cards (the API page) and ledger (the Compare page). */

/* ---- shared by both ---- */
.pr { container-type: inline-size; width: 100%; font-size: var(--text-md); line-height: var(--leading-normal); }
.pr-group + .pr-group { margin-top: var(--space-9); }
.pr-title { margin-bottom: var(--space-4); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--text-3); }
.pr-plan { padding: var(--space-5) 0; }
.pr-plan + .pr-plan { border-top: 1px solid var(--line-1); }
.pr-plans > .pr-plan:first-child { padding-top: 0; }
.pr-plans > .pr-plan:last-child { padding-bottom: 0; }
.pr-name, .pr-offers, .pr-price, .pr-notes { min-width: 0; overflow-wrap: anywhere; }
.pr-name { color: var(--text-2); }
/* a plan's prices, one under the other; each with what comes with it */
.pr-offers { display: grid; gap: var(--space-3); }
.pr-offer { display: grid; gap: 1px; }
.pr-price { color: var(--text-1); text-wrap: pretty; }
.pr-price small { font-size: var(--text-sm); color: var(--text-3); }
.pr-notes { font-size: var(--text-sm); line-height: 1.5; color: var(--text-3); }
.pr-notes span + span::before { content: "·"; margin: 0 var(--space-3); color: var(--text-faint); }
.pr-notes a { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.pr-notes a:hover { color: var(--text-1); }
.pr-all { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); font-size: var(--text-sm); color: var(--text-2); }
.pr-all:hover { color: var(--text-1); }
.pr-all .icon { width: 13px; height: 13px; transition: transform var(--medium) var(--ease); }
.pr-all:hover .icon { transform: translateX(3px); }

/* no price to list, and the seller is known to publish none: a dashed row saying so, the height and corners of
   the rows under it on the page (.mini: a 28px tile in 11px of padding) */
.pr-empty { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 11px var(--space-5); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); font-size: var(--text-base); color: var(--text-3); text-align: center; }

/* ============ cards: the API page ============ */
/* A card for each plan: its name, its price given room, a second price under it, and what comes with it at the foot.
   The cards fill the box in as many columns as fit, all the same height in a row; in a narrow box they stack. */
.pr--cards .pr-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5em, 1fr)); gap: var(--space-5); }
.pr--cards .pr-plan, .pr--cards .pr-plans > .pr-plan:first-child, .pr--cards .pr-plans > .pr-plan:last-child { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-8); border: 1px solid var(--line-1); border-radius: var(--radius-xl); background: var(--panel); box-shadow: var(--lit); }
.pr--cards .pr-name { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-2); }
/* the prices fill the card, so what comes with the last one sits at the foot and the feet of a row line up */
.pr--cards .pr-offers { flex: 1; align-content: start; gap: var(--space-2); }
.pr--cards .pr-offer { gap: var(--space-2); }
.pr--cards .pr-price { font-size: var(--text-xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-title); line-height: 1.25; }
.pr--cards .pr-price small { font-size: var(--text-sm); font-weight: var(--weight-regular); letter-spacing: 0; }
/* a plan's other price (yearly beside monthly) is subcopy: set the same as what comes with it */
.pr--cards .pr-offer + .pr-offer .pr-price, .pr--cards .pr-offer + .pr-offer .pr-price small { font-size: var(--text-sm); font-weight: var(--weight-regular); letter-spacing: 0; line-height: 1.5; color: var(--text-3); }
/* a table of tiers (three prices or more under one name): each tier is set the same, none of them the headline */
.pr--cards .pr-plan.is-tiers .pr-offer .pr-price, .pr--cards .pr-plan.is-tiers .pr-offer .pr-price small { font-size: var(--text-base); font-weight: var(--weight-regular); letter-spacing: 0; line-height: 1.5; color: var(--text-1); }
/* tiers that each name their band: a row a tier, the band on the left and its price on the right, a rule between rows */
.pr--cards .pr-plan.is-banded .pr-offers { gap: 0; }
.pr--cards .pr-plan.is-banded .pr-offer { padding: var(--space-3) 0; }
.pr--cards .pr-plan.is-banded .pr-offer:first-child { padding-top: 0; }
.pr--cards .pr-plan.is-banded .pr-offer:last-child { padding-bottom: 0; }
.pr--cards .pr-plan.is-banded .pr-offer + .pr-offer { border-top: 1px solid var(--line-1); }
.pr--cards .pr-plan.is-banded .pr-price { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-6); }
.pr--cards .pr-plan.is-banded .pr-band { color: var(--text-2); }
.pr--cards .pr-plan.is-banded .pr-rate { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* what every price of a plan shares, said once at its foot */
.pr-shared { margin-top: var(--space-3); }
/* the only card: as wide as a column of the lists under it on the page (.minis, pages.css) */
.pr--cards.pr--one .pr-plans { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--space-2); }
.pr--cards.pr--one .pr-plan.is-wide { grid-column: auto; }
/* a sentence takes the room of two cards; a later short card moves up into the gap that leaves */
.pr--cards .pr-plan.is-wide { grid-column: span 2; }
.pr--cards .pr-plans { grid-auto-flow: dense; }
@container (max-width: 480px) {
  .pr--cards .pr-plans { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .pr--cards .pr-plan, .pr--cards .pr-plans > .pr-plan:first-child, .pr--cards .pr-plans > .pr-plan:last-child { gap: var(--space-3); padding: var(--space-6) var(--space-7); }
  .pr--cards .pr-plan.is-wide { grid-column: auto; }
  .pr--cards .pr-price { font-size: var(--text-lg); }
}

/* ============ ledger: the Compare page ============ */
/* One list, no headings: plan | price, with what comes with it under the price. */
.pr--ledger .pr-plan { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr); align-items: baseline; column-gap: var(--space-9); }
.pr--ledger .pr-offer { grid-template-columns: minmax(0, 22em) minmax(0, 1fr); align-items: baseline; column-gap: var(--space-9); }
@container (max-width: 620px) {
  .pr--ledger .pr-plan { grid-template-columns: minmax(0, 9em) minmax(0, 1fr); column-gap: var(--space-7); }
  .pr--ledger .pr-offer { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 300px) {
  .pr--ledger .pr-plan { grid-template-columns: minmax(0, 6.5em) minmax(0, 1fr); column-gap: var(--space-5); }
}
.cxt .pr-empty { max-width: 26em; }
/* the rule that closes a shorter list beside a longer one: drawn only where two lists share their rows */
.pr-plan.pr-blank { display: none; }

/* Two ledgers side by side in the Compare table (.cxt-row--level, wide screens): each column takes its rows from the
   table's row, so the nth plan of one is level with the nth of the other whatever each holds. The boxes between the
   column and its plans step aside (display: contents), which takes the container with them: a column there is always
   the narrow form, so that form is stated outright. */
@media (min-width: 760px) {
  .cxt-row--level > .cxt-cell { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span var(--pr-rows); row-gap: 0; }
  .cxt-row--level .cx-val, .cxt-row--level .pr, .cxt-row--level .pr-group, .cxt-row--level .pr-plans { display: contents; }
  .cxt-row--level .pr--ledger .pr-plan { grid-template-columns: minmax(0, 9em) minmax(0, 1fr); column-gap: var(--space-7); align-content: start; }
  .cxt-row--level .pr--ledger .pr-offer { grid-template-columns: minmax(0, 1fr); }
  .cxt-row--level .pr-all { justify-self: start; }
  .cxt-row--level .pr-plan.pr-blank { display: block; }
  /* the label sits on the first plan's line: the row no longer lines its cells up by their first line of text */
  .cxt-row--level { align-items: start; }
  .cxt-row--level .cxt-label { padding-top: 1px; line-height: calc(var(--text-md) * var(--leading-normal)); }
}

/* Where a column of the Compare table is too narrow for a plan's name beside its price (a phone, where each list
   has the screen under its own logo, and a tablet, where two columns share it): the name is a small label over
   the prices. On the tablet the two lists still share their rows. */
@media (max-width: 1099px) {
  .cxt .pr--ledger .pr-plan, .cxt-row--level .pr--ledger .pr-plan { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .cxt .pr--ledger .pr-name { font-size: var(--text-sm); color: var(--text-3); }
  .cxt .pr--ledger .pr-price { font-weight: var(--weight-medium); }
}
@media (max-width: 759px) {
  .cxt .pr-empty { max-width: none; }
}

/* PROTOTYPE: /browse, the directory as an application (src/pages/browse.tsx). Everything is under .bw-.
   It is an application inside the site (layout.css, body.app): the top bar runs edge to edge, on the same gutter as the page. */

/* The page fills the window under the top bar: a panel on the left, the list in the rest, each scrolling by itself.
   The bar is its height and a one-pixel rule, so the page is that much shorter and the window itself never scrolls. */
.bw-page { position: relative; z-index: var(--z-content); display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(20px, 2.2vw, 40px); height: calc(100dvh - var(--bar) - 1px); min-height: 540px; padding: var(--space-3) var(--app-gutter) 0; }
/* the part a search replaces is not a box of its own: its two children take their places in the page's grid */
.bw-body { display: contents; }
.bw-body.is-loading > * { opacity: 0.5; }

.bw-search { grid-column: 1; grid-row: 1; padding-bottom: var(--space-6); }
.bw-search .field { width: 100%; }

/* ---- the panel ---- */
.bw-rail { grid-column: 1; grid-row: 2; min-height: 0; overflow-y: auto; margin-left: calc(var(--space-4) * -1); padding-bottom: var(--app-gutter); scrollbar-width: none; }
.bw-rail::-webkit-scrollbar { display: none; }
.bw-rail__part + .bw-rail__part, .bw-group + .bw-group { margin-top: 22px; }
.bw-label { display: block; padding: 0 var(--space-4) var(--space-3); font-size: 12px; color: var(--text-3); font-weight: var(--weight-medium); }
.bw-group ul { display: flex; flex-direction: column; gap: 1px; }
.bw-opt { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; height: var(--control); padding: 0 var(--space-4); border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--text-2); white-space: nowrap; transition: background 0.1s, color 0.1s; }
.bw-opt > span:not(.bw-count) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bw-opt:hover { background: var(--wash-2); color: var(--text-1); }
.bw-opt[aria-current="true"] { background: var(--wash-3); color: var(--text-1); font-weight: var(--weight-medium); }
.bw-opt .icon { flex: none; width: 15px; height: 15px; color: var(--text-3); }
.bw-opt[aria-current="true"] .icon { color: var(--accent); }
.bw-count { flex: none; margin-left: auto; padding-left: var(--space-3); font-size: var(--text-2xs); color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: var(--weight-regular); }
.bw-opt--all { color: var(--text-3); }
.bw-opt--all .icon { margin-left: auto; width: 13px; height: 13px; }
/* a fact that is on or off */
.bw-opt--switch i { flex: none; position: relative; margin-left: auto; width: 28px; height: 16px; border-radius: var(--radius-pill); background: var(--surface-3); transition: background 0.15s; }
.bw-opt--switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-2); transition: transform 0.15s, background 0.15s; }
.bw-opt--switch[aria-checked="true"] { color: var(--text-1); }
.bw-opt--switch[aria-checked="true"] i { background: var(--accent); }
.bw-opt--switch[aria-checked="true"] i::after { transform: translateX(12px); background: var(--on-accent); }

/* ---- the list ---- */
.bw-main { grid-column: 2; grid-row: 1 / 3; min-height: 0; overflow-y: auto; padding-bottom: var(--app-gutter); }
/* what is listed and how many, held at the top while the list scrolls under it */
.bw-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: var(--space-2) var(--space-4); box-sizing: content-box; min-height: var(--control-lg); padding-bottom: var(--space-6); background: linear-gradient(var(--bg) calc(100% - var(--space-6)), transparent); }
/* the title is the size of the count beside it, and told apart by weight and colour alone */
.bw-bar__title { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-1); }
/* the title, the count and Clear differ in size and weight: each is one line as tall as its own letters, centred on the same middle, with a dot between */
.bw-bar__count, .bw-bar__clear { display: inline-flex; align-items: center; line-height: 1; }
/* The bar is one line at every width. When there is not room, the words of a search give first and then the name of what
   is listed: each is cut short with an ellipsis (and shown whole when pointed at). The number never gives: it is the
   fact on this line. Nor do Clear, Open and the views. */
.bw-bar__title, .bw-bar__q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.bw-bar__title { flex: 0 1 auto; }
/* The count is not a box of its own: its dot, its number and its search words take their places in the bar's one line,
   so each can be told how to give. The number does not; the search words give long before the name gives anything. */
.bw-bar .bw-bar__count { display: contents; }
.bw-bar .bw-bar__count::before { margin-right: 0; }
.bw-bar__n { flex: none; white-space: nowrap; line-height: 1.3; }
/* the words follow their number as one phrase: the bar's gap between them is taken back */
.bw-bar__q { flex: 0 1000 auto; margin-left: calc(var(--space-4) * -1); }
.bw-bar__n, .bw-bar__q { font-size: var(--text-sm); color: var(--text-3); font-variant-numeric: tabular-nums; }
.bw-bar__clear, .bw-bar__aside { flex: none; white-space: nowrap; }
/* the dot's own margin spaces it from the word: the link's gap would add to it */
.bw-bar .bw-bar__clear { gap: 0; }
.bw-bar__count { font-size: var(--text-sm); color: var(--text-3); font-variant-numeric: tabular-nums; }
.bw-bar__count::before, .bw-bar__clear::before { content: ""; flex: none; width: 3px; height: 3px; margin-right: var(--space-4); border-radius: 50%; background: var(--text-3); opacity: 0.7; }
.bw-bar__aside { margin-left: auto; display: flex; align-items: center; gap: var(--space-7); }
.bw-link { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--text-2); transition: color var(--fast); }
.bw-link:hover { color: var(--text-1); }
.bw-link .icon { width: 13px; height: 13px; }
.bw-main .pager { margin-top: var(--space-9); }

/* cards or rows: two icons, the one in use lit  */
.bw-views { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-1); border-radius: var(--radius-md); background: var(--wash-1); }
.bw-views a { display: flex; align-items: center; justify-content: center; width: 30px; height: 28px; border-radius: 7px; color: var(--text-3); transition: color var(--fast), background var(--fast); }
.bw-views a:hover { color: var(--text-1); }
.bw-views a[aria-current="true"] { background: var(--surface-3); color: var(--accent); box-shadow: var(--lit-strong); }
.bw-views .icon { width: 15px; height: 15px; }

/* wider cards: a larger least width, so the same room holds a column fewer */
.bw-grid--wide { --card-min: 380px; }

/* ---- the list as rows: one set of columns for the heading and every row, so each fact lines up down the page ---- */
.bw-list { --bw-cols: minmax(200px, 1.15fr) minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 0.9fr) 132px 150px; border: 1px solid var(--line-1); border-radius: var(--radius-xl); }
.bw-list__head, .bw-row { display: grid; grid-template-columns: var(--bw-cols); align-items: center; column-gap: var(--space-7); padding: 0 var(--space-6); }
/* the headings stay in sight under the title while the rows scroll beneath them; the list is not clipped, or they could not hold */
.bw-list__head { position: sticky; top: calc(var(--control-lg) + var(--space-6)); z-index: 1; height: var(--control); border-bottom: 1px solid var(--line-1); border-radius: calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px) 0 0; background: linear-gradient(var(--wash-1), var(--wash-1)), var(--bg); font-size: 12px; font-weight: var(--weight-medium); color: var(--text-3); transition: border-radius var(--fast); }
.bw-row { min-height: 56px; font-size: var(--text-sm); color: var(--text-2); transition: background 0.1s; }
.bw-list li + li .bw-row { border-top: 1px solid var(--line-1); }
/* round with the list while it rests at the top; square once it is held under the title (site.ts marks the list) */
.bw-list[data-stuck] .bw-list__head { border-radius: 0; }
a.bw-row:hover { background: var(--wash-2); }a.bw-row:hover { background: var(--wash-2); }
.bw-list li:last-child .bw-row { border-radius: 0 0 calc(var(--radius-xl) - 1px) calc(var(--radius-xl) - 1px); }
/* over rows the title's ground is solid to its foot, so no row shows between it and the headings */
.bw-bar:has(+ .bw-list) { background: var(--bg); }
.bw-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-row__api { display: flex; align-items: center; gap: var(--space-5); }
.bw-row__name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bw-row__name b { overflow: hidden; text-overflow: ellipsis; font-weight: var(--weight-medium); color: var(--text-1); }
.bw-row__name span { overflow: hidden; text-overflow: ellipsis; font-size: var(--text-xs); color: var(--text-3); }
.bw-row .bw-col--price, .bw-row .bw-col--access { color: var(--text-1); }
.bw-row .bw-col--covers { color: var(--text-3); font-variant-numeric: tabular-nums; }
.bw-row .dim { color: var(--text-3); }
.bw-row__end { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-5); }
.bw-row__end .icon { flex: none; width: 14px; height: 14px; color: var(--text-3); transition: transform var(--medium), color var(--fast); }
a.bw-row:hover .bw-row__end .icon { color: var(--text-1); transform: translateX(2px); }
/* as the list narrows, the columns that say least go first */
@media (max-width: 1500px) { .bw-list { --bw-cols: minmax(200px, 1.15fr) minmax(0, 2fr) minmax(0, 0.8fr) 132px 150px; } .bw-col--access { display: none; } }
@media (max-width: 1240px) { .bw-list { --bw-cols: minmax(200px, 1.3fr) minmax(0, 2fr) minmax(0, 0.9fr) 30px; } .bw-col--covers, .bw-row__end .status { display: none; } }
/* one column of cards cannot be made a column fewer */
@media (max-width: 759px) { .bw-views a[data-view="wide"] { display: none; } }
/* a row on a phone is a logo and two lines: with the columns gone there is room to make them the size a thumb and an eye want */
@media (max-width: 759px) {
  .bw-row .tile { width: 38px; height: 38px; border-radius: var(--radius-md); }
  .bw-row__api { gap: var(--space-6); }
  .bw-row__name { gap: 2px; }
  .bw-row__name b { font-size: var(--text-md); }
  .bw-row__name span { font-size: var(--text-sm); }
  .bw-list .bw-row { min-height: 68px; }
}
@media (max-width: 759px) { .bw-list { --bw-cols: minmax(0, 1fr) 20px; border-radius: var(--radius-lg); overflow: hidden; } .bw-col--what, .bw-col--price { display: none; } .bw-list__head { display: none; } .bw-row { min-height: 60px; padding: 0 var(--space-5); } }

@media (min-width: 940px) {
  .bw-opt[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2.5px; border-radius: 2px; background: var(--accent); box-shadow: var(--glow-dot); }
}

/* the tray's parts belong to the phone: on a wide screen the panel is simply there */
.bw-filter-btn, .bw-scrim, .bw-sheet__head, .bw-sheet__foot { display: none; }

/* ---- below 940px: the page scrolls as one. The search has a button beside it, and the panel is a tray that the
   button brings up from the foot of the window: every choice in a column, as on a wide screen, with room to tap. ---- */
@media (max-width: 939px) {
  .bw-page { display: block; height: auto; min-height: calc(100dvh - var(--bar) - 1px); padding-top: 0; padding-bottom: var(--app-gutter); }
  .bw-body { display: block; }
  /* The search and the filter button hold under the top bar, so they are in reach anywhere in the list. Going down the
     list they draw up out of the way, to leave the window to the cards; turning back up brings them down again
     (site.ts marks the page). They cover the page's full width while they hold, so no card shows beside them. */
  .bw-page { --bw-find: calc(var(--control-lg) + var(--space-3) + var(--space-4)); }
  .bw-search { position: sticky; top: calc(var(--bar) + 1px); z-index: calc(var(--z-bar) - 1); display: flex; gap: var(--space-3); margin: 0 calc(var(--app-gutter) * -1); padding: var(--space-3) var(--app-gutter) var(--space-4); background: var(--bg); transition: transform var(--medium); }
  .bw-page[data-find-away] .bw-search { transform: translateY(calc(-100% - 2px)); }
  .bw-search .field { flex: 1; min-width: 0; width: auto; }
  /* as tall as the field beside it, and square */
  .bw-filter-btn { position: relative; display: flex; align-items: center; justify-content: center; flex: none; align-self: stretch; width: var(--control-lg); border: 1px solid var(--line-2); border-radius: var(--radius-md); background: var(--bg); color: var(--text-2); transition: border-color var(--fast), color var(--fast); }
  .bw-filter-btn:hover { border-color: var(--line-3); color: var(--text-1); }
  .bw-filter-btn .icon { width: 18px; height: 18px; }
  /* how many choices are on */
  .bw-filter-btn__n { position: absolute; top: -6px; right: -6px; display: flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: var(--text-2xs); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }

  .bw-scrim { display: block; position: fixed; inset: 0; z-index: var(--z-scrim); background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity var(--medium), visibility var(--medium); }
  /* out of sight below the window until it is asked for; it scrolls inside itself, under a head and over a foot that stay */
  /* The tray has its own gutter, wider than the page's: a tray is a surface with an edge, and its words, switches and
     button stand in from that edge; a chosen row's ground stops halfway between the edge and the words. */
  .bw-rail { --tray-gutter: var(--space-8); position: fixed; z-index: var(--z-scrim); left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: min(84dvh, 720px); margin: 0; padding: 0 var(--tray-gutter); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line-2); border-radius: var(--radius-3xl) var(--radius-3xl) 0 0; background: var(--surface-1); box-shadow: var(--shadow-float); transform: translateY(100%); visibility: hidden; transition: transform var(--medium), visibility var(--medium); }
  /* open: marked by the script, or, without script, by the button's own link to the panel */
  .bw-page[data-filters] .bw-scrim, .bw-scrim:has(+ .bw-rail:target) { opacity: 1; visibility: visible; }
  .bw-page[data-filters] .bw-rail, .bw-rail:target { transform: none; visibility: visible; }
  /* the page behind an open tray stays where it is */
  html:has(.bw-page[data-filters]) { overflow: hidden; }
  .bw-sheet__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: var(--space-6); flex: none; margin: 0 calc(var(--tray-gutter) * -1); padding: var(--space-7) var(--tray-gutter) var(--space-5); background: var(--surface-1); touch-action: none; }
  /* a handle, as a tray has: it can be drawn down to close */
  .bw-sheet__head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: var(--radius-pill); background: var(--wash-4); }
  .bw-sheet__head b { margin-right: auto; font-size: var(--text-md); font-weight: var(--weight-semibold); }
  .bw-sheet__close { display: flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); margin: -10px -12px -10px 0; border-radius: var(--radius-md); color: var(--text-2); }
  .bw-sheet__close .icon { width: 16px; height: 16px; }
  .bw-sheet__foot { position: sticky; bottom: 0; display: block; flex: none; margin: auto calc(var(--tray-gutter) * -1) 0; padding: var(--space-5) var(--tray-gutter) calc(var(--space-5) + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--surface-1) var(--space-5)); }
  .bw-sheet__foot .btn { display: flex; width: 100%; box-shadow: var(--shadow-accent-quiet); }
  /* a row is as tall as a finger needs */
  .bw-rail__part { margin: 0 calc(var(--space-4) * -1); }
  .bw-rail .bw-opt { height: var(--tap); font-size: var(--text-md); }
  .bw-rail .bw-label { padding-bottom: var(--space-2); }
  .bw-rail__part:last-of-type { padding-bottom: var(--space-6); }
  /* a choice made in the tray changes the list behind it, not the tray: it does not fade while the list is fetched */
  .bw-body.is-loading > .bw-rail, .bw-body.is-loading > .bw-scrim { opacity: 1; }
  .bw-main { overflow: visible; padding-top: var(--space-2); padding-bottom: 0; }
  .bw-bar, .bw-bar:has(+ .bw-list) { position: static; background: none; padding-bottom: var(--space-5); }
  /* the page itself scrolls here, so the headings hold under the top bar */
  .bw-list__head { top: calc(var(--bar) + 1px + var(--bw-find)); transition: top var(--medium), border-radius var(--fast); }
  .bw-page[data-find-away] .bw-list__head { top: calc(var(--bar) + 1px); }
  .bw-bar__aside { gap: var(--space-6); }
}

/* ---- while db is asked: the page in empty shapes (browse.tsx Waiting; the shapes themselves are home.css .ghost) ----
   It is sent ahead of the list in the same response, and goes the moment the list is in the page. */
.bw-skel:has(~ .bw-body) { display: none; }
/* A list that comes quickly needs no stand-in: shown for an instant, the shapes would only be a flicker before it.
   So they stay out of sight for the first 300ms and then come up gently; most lists are in the page before that
   (about 150 to 250ms here), and only a slow one (a job's or a thing's, about a second or more) is ever seen waiting. */
.bw-skel { pointer-events: none; opacity: 0; animation: bw-wait-in 0.3s ease-out 0.3s forwards; }
@keyframes bw-wait-in { to { opacity: 1; } }
.bw-skel .bw-label .ghost { width: 38px; height: 8px; margin: 3px 0; }
.bw-skel .bw-opt .ghost { height: 9px; background: var(--wash-2); }
.bw-skel .bw-opt:hover { background: none; }
.bw-skel__title { width: 168px; }
/* The shapes are a step lighter here than the home page's fading row: this is the page's whole content for a moment,
   and it has to read as cards at a glance. A card keeps its own ground, edge and light; its bars are the stronger wash. */
.bw-skel .card--ghost { gap: 0; box-shadow: var(--lit); border-color: var(--line-2); }
.bw-skel .card--ghost .ghost { background: var(--wash-4); }
.bw-skel .card--ghost .ghost__name .ghost:last-child, .bw-skel .ghost__fact .ghost:first-child { background: var(--wash-3); }
.bw-skel__desc { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); margin-top: var(--space-6); min-height: 39px; }
.bw-skel__desc .ghost:first-child { width: 94%; }
.bw-skel__desc .ghost:last-child { width: 62%; }
/* to the pixel a card's own measures, so nothing moves when the cards arrive */
.bw-skel .card--ghost .card__head { min-height: 40px; }
.bw-skel .card--ghost .ghost__fact { min-height: 34px; padding: 0; justify-content: center; }
.bw-skel .card__foot { gap: 5px; }
.bw-skel__chip { width: 56px; height: 22px; border-radius: var(--radius-xs); }
.bw-skel__chip + .bw-skel__chip { width: 68px; }
.bw-skel .bw-row .ghost--tile { width: 28px; height: 28px; border-radius: var(--radius-sm); }
.bw-skel .bw-row { grid-template-columns: minmax(200px, 1.15fr) minmax(0, 2.6fr); }
.bw-skel .bw-row > .ghost { width: 72%; background: var(--wash-2); }
/* each half breathes as one piece: shapes inside shapes would otherwise fade twice over */
.bw-skel > * { animation: bw-wait 1.5s ease-in-out infinite; }
@keyframes bw-wait { 50% { opacity: 0.6; } }
:root[data-motion="off"] .bw-skel * { animation: none; }
@media (prefers-reduced-motion: reduce) { .bw-skel * { animation: none; } }
/* the field is taller on a phone (components.css), and the button beside it is as wide as that */
@media (max-width: 759px) { .bw-filter-btn { width: 48px; border-radius: var(--radius-lg); } .bw-page { --bw-find: calc(48px + var(--space-3) + var(--space-4)); } }
/* on a phone the panel is a tray, out of sight: only the list waits in view */
@media (max-width: 939px) { .bw-skel .bw-rail { display: none; } }
