/* Promtable v4 "The Alternatives Issue": fonts, tokens, shell and shared components. Linked on every page:
   @font-face files download only when a .v4 element uses them, and everything else is scoped to .v4 or to
   class names legacy CSS does not use (.mast, .colophon, .skip, .v4-bleed). Cross-document view transitions stay per template.
   Source: ops/promtable-rebuild/AUDIT-20261115/redesign-v4/src/base.css. Everything is scoped to .v4
   (the page root on ported templates, or the shell itself) so legacy templates are untouched. */

/* Self-hosted subsets built by scripts/fonts/build-v4-fonts.py: static condensed display cuts, one variable UI file. Each cut is split
   latin / Turkish (Ğ ğ İ Ş ş) / rest of latin-ext, so English pages never fetch Turkish glyphs and /tr adds ~2 KB per cut. */
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap; src: url(/fonts/archivo-400-900-w100-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap; src: url(/fonts/archivo-400-900-w100-tr.woff2) format("woff2"); unicode-range: U+011E-011F,U+0130,U+015E-015F; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap; src: url(/fonts/archivo-400-900-w100-ext.woff2) format("woff2"); unicode-range: U+0100-011D,U+0120-012F,U+0132-015D,U+0160-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 900; font-stretch: 62%; font-display: swap; src: url(/fonts/archivo-900-w62-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 900; font-stretch: 62%; font-display: swap; src: url(/fonts/archivo-900-w62-tr.woff2) format("woff2"); unicode-range: U+011E-011F,U+0130,U+015E-015F; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 900; font-stretch: 62%; font-display: swap; src: url(/fonts/archivo-900-w62-ext.woff2) format("woff2"); unicode-range: U+0100-011D,U+0120-012F,U+0132-015D,U+0160-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 800; font-stretch: 75%; font-display: swap; src: url(/fonts/archivo-800-w75-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 800; font-stretch: 75%; font-display: swap; src: url(/fonts/archivo-800-w75-tr.woff2) format("woff2"); unicode-range: U+011E-011F,U+0130,U+015E-015F; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 800; font-stretch: 75%; font-display: swap; src: url(/fonts/archivo-800-w75-ext.woff2) format("woff2"); unicode-range: U+0100-011D,U+0120-012F,U+0132-015D,U+0160-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 800; font-stretch: 62%; font-display: swap; src: url(/fonts/archivo-800-w62-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 800; font-stretch: 62%; font-display: swap; src: url(/fonts/archivo-800-w62-tr.woff2) format("woff2"); unicode-range: U+011E-011F,U+0130,U+015E-015F; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 800; font-stretch: 62%; font-display: swap; src: url(/fonts/archivo-800-w62-ext.woff2) format("woff2"); unicode-range: U+0100-011D,U+0120-012F,U+0132-015D,U+0160-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 900; font-stretch: 75%; font-display: swap; src: url(/fonts/archivo-900-w75-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 900; font-stretch: 75%; font-display: swap; src: url(/fonts/archivo-900-w75-tr.woff2) format("woff2"); unicode-range: U+011E-011F,U+0130,U+015E-015F; }
@font-face{ font-family: "Archivo"; font-style: normal; font-weight: 900; font-stretch: 75%; font-display: swap; src: url(/fonts/archivo-900-w75-ext.woff2) format("woff2"); unicode-range: U+0100-011D,U+0120-012F,U+0132-015D,U+0160-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-400-tr.woff2) format("woff2"); unicode-range: U+011E-011F,U+0130,U+015E-015F; }
@font-face{ font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-400-ext.woff2) format("woff2"); unicode-range: U+0100-011D,U+0120-012F,U+0132-015D,U+0160-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/newsreader-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/newsreader-600-tr.woff2) format("woff2"); unicode-range: U+011E-011F,U+0130,U+015E-015F; }
@font-face{ font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/newsreader-600-ext.woff2) format("woff2"); unicode-range: U+0100-011D,U+0120-012F,U+0132-015D,U+0160-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family: "Newsreader"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/newsreader-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family: "Newsreader"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/newsreader-700-tr.woff2) format("woff2"); unicode-range: U+011E-011F,U+0130,U+015E-015F; }
@font-face{ font-family: "Newsreader"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/newsreader-700-ext.woff2) format("woff2"); unicode-range: U+0100-011D,U+0120-012F,U+0132-015D,U+0160-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face{ font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-400-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-400-italic-tr.woff2) format("woff2"); unicode-range: U+011E-011F,U+0130,U+015E-015F; }
@font-face{ font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/newsreader-400-italic-ext.woff2) format("woff2"); unicode-range: U+0100-011D,U+0120-012F,U+0132-015D,U+0160-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* metric-matched fallbacks (measured in v4): condensed display vs Arial Narrow Bold, UI per weight band vs Arial, text vs Georgia */
@font-face{ font-family: "Archivo Display Fallback"; src: local("Arial Narrow Bold"), local("Arial Bold"); size-adjust: 86.4%; }
@font-face{ font-family: "Archivo Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 98%; font-weight: 100 449; }
@font-face{ font-family: "Archivo Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 99.6%; font-weight: 450 599; }
@font-face{ font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Helvetica Bold"); size-adjust: 94.6%; font-weight: 600 649; }
@font-face{ font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Helvetica Bold"); size-adjust: 97.8%; font-weight: 650 749; }
@font-face{ font-family: "Archivo Fallback"; src: local("Arial Bold"), local("Helvetica Bold"); size-adjust: 102.6%; font-weight: 750 900; }
@font-face{ font-family: "News Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 95.6%; font-style: normal; }
@font-face{ font-family: "News Fallback"; src: local("Georgia Italic"), local("Times New Roman Italic"); size-adjust: 87.4%; font-style: italic; }

/* tokens: paper/ink follow the system theme; .v4-dark forces dark (the shell over legacy dark templates) */
.v4{
  color-scheme: light;
  --paper: oklch(0.968 0.012 85); --paper-2: oklch(0.935 0.016 85);
  --ink: oklch(0.17 0.012 60); --ink-2: oklch(0.34 0.012 60); --ink-3: oklch(0.48 0.012 60);
  --rule: oklch(0.17 0.012 60 / .16);
  --red: oklch(0.62 0.215 31); --red-ink: oklch(0.5 0.19 31);
  --lime: oklch(0.91 0.19 118); --cobalt: oklch(0.47 0.17 252); --forest: oklch(0.35 0.07 165); --cream: oklch(0.92 0.045 85);
  --gain: oklch(0.44 0.12 155); --loss: oklch(0.5 0.19 31);
  /* fixed block colours: identical in light and dark so text on them never flips */
  --b-cobalt: oklch(0.47 0.17 252); --b-ink: oklch(0.17 0.012 60); --b-paper: oklch(0.97 0.01 85); --b-forest: oklch(0.35 0.07 165); --b-cream: oklch(0.92 0.045 85); --b-red: oklch(0.62 0.215 31);
  --gain-b: oklch(0.42 0.11 155); --loss-b: oklch(0.47 0.17 31);
  --on-dark: oklch(0.97 0.01 85); --on-light: oklch(0.17 0.012 60); --lime-ink: oklch(0.42 0.11 125);
  /* font stacks; --read is the prototype's --text, renamed because legacy pages use --text for a colour */
  --display: "Archivo", "Archivo Display Fallback", "Arial Narrow", sans-serif;
  --read: "Newsreader", "News Fallback", Georgia, serif;
  --ui: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --page: 1440px; --measure: 33em; --g: clamp(16px, 3vw, 40px);
  /* 4px spacing scale, one fluid section value, one type scale; radii are 0 everywhere */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --sec: clamp(56px, 8vw, 120px);
  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1rem; --t-body: 1.125rem; --t-lg: 1.3rem;
  --t-h3: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); --t-h2: clamp(2.5rem, 1.5rem + 4.4vw, 6.25rem); --t-mega: clamp(4.2rem, 15vw, 14rem);
  --mast: 58px; --stick: var(--mast);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-1: 140ms; --dur-2: 160ms; --dur-3: 400ms; --dur-4: 600ms;
}
@media (prefers-color-scheme: dark){ .v4:not(.v4-light){
  color-scheme: dark;
  --paper: oklch(0.17 0.01 60); --paper-2: oklch(0.21 0.012 60); --ink: oklch(0.95 0.012 85); --ink-2: oklch(0.82 0.012 85); --ink-3: oklch(0.66 0.012 85);
  --rule: oklch(0.95 0.012 85 / .16); --cream: oklch(0.25 0.03 85); --red-ink: oklch(0.72 0.18 31); --gain: oklch(0.75 0.14 155); --loss: oklch(0.72 0.17 31); --cobalt: oklch(0.7 0.13 252); --lime-ink: oklch(0.91 0.19 118);
} }
.v4.v4-dark, :is(.mast.v4-spa:not(.v4 *):not(:has(~ .v4:not(.colophon)))){
  color-scheme: dark;
  --paper: oklch(0.17 0.01 60); --paper-2: oklch(0.21 0.012 60); --ink: oklch(0.95 0.012 85); --ink-2: oklch(0.82 0.012 85); --ink-3: oklch(0.66 0.012 85);
  --rule: oklch(0.95 0.012 85 / .16); --cream: oklch(0.25 0.03 85); --red-ink: oklch(0.72 0.18 31); --gain: oklch(0.75 0.14 155); --loss: oklch(0.72 0.17 31); --cobalt: oklch(0.7 0.13 252); --lime-ink: oklch(0.91 0.19 118);
}

/* page base: only when the whole page is v4 (html.v4) */
html.v4{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--stick) + 12px); }
html.v4 body{ margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--read); -webkit-font-smoothing: antialiased; }
.v4 *, .v4 *::before, .v4 *::after{ box-sizing: border-box; }
.v4 [hidden]{ display: none !important; }
.v4 a{ color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.v4 a:hover{ color: inherit; }
/* two-tone ring: visible on paper, ink and every colour block */
.v4 :focus-visible{ outline: 3px solid var(--on-light); outline-offset: 2px; box-shadow: 0 0 0 2px var(--on-dark), 0 0 0 7px var(--on-dark); }
.v4 :is(h1,h2,h3,h4){ margin: 0; color: inherit; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: .95; font-stretch: 75%; text-wrap: balance; }
.v4 p{ margin: 0; text-wrap: pretty; }
.v4 :is(ul,ol) li{ color: inherit; }
.skip{ position: absolute; left: 8px; top: -60px; z-index: 99; background: var(--ink); color: var(--paper); padding: 10px 14px; font: 700 .9rem var(--ui); } .skip:focus{ top: 8px; }
.v4 .sr{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v4 .wrap{ width: min(100% - 2 * var(--g), var(--page)); max-width: none; margin-inline: auto; padding: 0; }
.v4 .ui{ font-family: var(--ui); }
.v4 .num{ font-family: var(--display); font-variant-numeric: tabular-nums lining-nums; }
.v4 .kicker{ font: 700 .78rem/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.v4 .dek{ font-family: var(--read); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1.3; }
.v4 .src{ font: 400 .8rem/1.4 var(--ui); color: var(--ink-3); }
.v4 svg.i{ width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* masthead: logo, section label, primary links, search, "For tool owners", account; phones get Menu */
.mast{ position: sticky; top: 0; z-index: 40; background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--ink); font-family: var(--ui); }
.mast .wrap{ display: flex; align-items: center; gap: 20px; height: 56px; position: relative; }
.v4 .logo{ font: 900 1.5rem/1 var(--display); font-stretch: 62%; letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; color: inherit; }
.v4 .logo b{ color: var(--red); font-weight: inherit; }
.mast .issue{ display: none; font: 600 .78rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-left: 16px; border-left: 1px solid var(--rule); white-space: nowrap; }
.mast .mnav{ display: none; gap: 18px; margin-left: auto; font: 600 .9rem var(--ui); }
.mast .mnav a{ text-decoration: none; padding: 8px 0; white-space: nowrap; } .mast .mnav a:hover, .mast .mnav a[aria-current]{ text-decoration: underline; text-decoration-thickness: 2px; }
.mast .own{ display: none; margin-left: 8px; font: 700 .82rem var(--ui); text-decoration: none; border: 2px solid var(--ink); padding: 6px 12px; white-space: nowrap; }
.mast .msearch{ margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; } .mast .msearch + .own{ margin-left: 0; }
.mast .acct{ display: none; align-items: center; gap: 8px; font: 600 .86rem var(--ui); white-space: nowrap; } .mast .acct > a{ text-decoration: none; padding: 8px 0; } .mast .acct > a:hover{ text-decoration: underline; }
.mast .mmenu{ font: 700 .9rem var(--ui); }
.mast .mmenu summary{ list-style: none; cursor: pointer; height: 40px; padding: 0 14px; display: grid; place-items: center; border: 2px solid var(--ink); } .mast .mmenu summary::-webkit-details-marker{ display: none; }
.mast .mmenu[open] summary{ background: var(--ink); color: var(--paper); }
.mast .mmenu nav{ position: absolute; left: calc(-1 * var(--g)); right: calc(-1 * var(--g)); top: 58px; max-height: calc(100dvh - 58px); overflow-y: auto; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 8px var(--g) 16px; display: grid; }
.mast .mmenu .mout{ all: unset; cursor: pointer; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; } .mast .mmenu .mout:focus-visible{ outline: 3px solid var(--on-light); }
.mast .mmenu nav a{ padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 1.1rem; } .mast .mmenu nav a[aria-current]{ color: var(--red-ink); }
.mast .mmenu .mlang{ display: flex; gap: 16px; padding: 14px 0 0; font-size: .95rem; } .mast .mmenu .mlang a{ border: 0; padding: 0; font-size: inherit; text-decoration: underline; } .mast .mmenu .mlang [aria-current]{ color: var(--ink-3); }
@media (min-width: 900px){ .mast .issue, .mast .mnav, .mast .acct{ display: flex; } .mast .own{ display: block; } .mast .mmenu{ display: none; } .mast .msearch{ margin-left: 0; } }
@media (min-width: 900px) and (max-width: 1180px){ .mast .issue{ display: none; } }
.mast .progress{ position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--pg, 0)); }
@keyframes v4-prog{ from{ transform: scaleX(0); } to{ transform: scaleX(1); } }
@supports (animation-timeline: scroll()){ @media (prefers-reduced-motion: no-preference){ .mast .progress{ animation: v4-prog linear both; animation-timeline: scroll(root); } } }
/* the shell placed inside a legacy padded .wrap: bleed to the viewport edges */
.v4-bleed{ margin-inline: calc(50% - 50vw); }
/* The shell over a legacy (dark-only) body: forced dark so it sits flush on that body in both themes, its column
   aligned to the legacy one. SSR marks it v4-dark v4-bleed. The SPA masthead (v4-spa) is legacy unless its page is
   ported, i.e. .v4 on <html>, on an ancestor or on a sibling after the masthead (the colophon aside); legacy SPA bodies pad their top
   for a fixed nav, so it stays fixed there. :is() keeps a browser without :has() from dropping the rule. */
:is(.v4-bleed, .mast.v4-spa:not(.v4 *):not(:has(~ .v4:not(.colophon)))){ --g: var(--layout-gutter, 24px); --page: var(--page-max, 1416px); }
:is(.mast.v4-spa:not(.v4 *):not(:has(~ .v4:not(.colophon)))){ position: fixed; left: 0; right: 0; z-index: 100; }
html:has(.v4-bleed){ overflow-x: clip; }
.wrap:has(> .colophon.v4-bleed){ padding-bottom: 0; }

/* buttons */
.v4 .btn{ display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font: 700 .95rem/1 var(--ui); text-decoration: none; cursor: pointer; transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-2), color var(--dur-2); white-space: nowrap; }
.v4 .btn:active{ transform: scale(.97); }
.v4 .btn.ghost{ background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine){ .v4 .btn:hover{ background: var(--red); border-color: var(--red); color: oklch(0.99 0 0); } }

/* the one ad unit: thin rule, small label, reserved size, paper background, 56-96px of air. Never beside a control. */
.v4 .ad{ background: var(--paper); padding: clamp(56px, 7vw, 96px) var(--g); }
.v4 .ad-l{ max-width: var(--aw); margin: 0 auto; padding: 10px 0; border-top: 1px solid var(--rule); font: 600 .75rem/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.v4 .ad-bay{ position: relative; max-width: var(--aw); height: var(--ah); margin: 0 auto; border-bottom: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; }
.v4 .ad-bay ins{ position: absolute; inset: 0; display: block; }
.v4 .ad-bay ins[data-ad-status^="unfill"], .ads-blocked .v4 .ad-bay ins, html.ads-blocked.v4 .ad-bay ins{ display: none !important; }
.v4 .ad-ph{ font: italic 400 .95rem var(--read); color: var(--ink-3); text-align: center; padding: 0 16px; position: relative; }
.v4 .ad.ad-rail{ padding: 0; width: var(--aw); }
.v4 .ad[data-ad-min="1440"]{ display: none; } @media (min-width: 1440px){ .v4 .ad[data-ad-min="1440"]{ display: block; } }

/* section header: kicker, big title, one bold takeaway, then "How to read" */
.v4 .sec{ padding: var(--sec) 0; border-top: 2px solid var(--ink); }
.v4 .sec-k{ color: var(--red-ink); margin-bottom: 14px; }
.v4 .sec-h{ font-size: var(--t-h2); font-weight: 900; font-stretch: 62%; line-height: .9; letter-spacing: -0.025em; max-width: 8.6em; }
.v4 .sec-h span{ color: var(--red-ink); }
.v4 .shows{ margin-top: 18px; max-width: var(--measure); font: 400 1.05rem/1.5 var(--ui); color: var(--ink-2); }
.v4 .shows b{ font-weight: 700; color: var(--ink); }
.v4 .prose{ max-width: var(--measure); } .v4 .prose > * + *{ margin-top: 1em; } .v4 .prose h2{ font-size: var(--t-h3); margin-top: 2em; line-height: 1.05; } .v4 .prose h3{ font-size: 1.25rem; margin-top: 1.6em; line-height: 1.1; } .v4 .prose :is(ul,ol){ padding-left: 1.2em; margin-bottom: 0; } .v4 .prose li + li{ margin-top: .4em; } .v4 .prose > :first-child{ margin-top: 0; }
.v4 .crumbs{ font: 600 .8rem var(--ui); color: var(--ink-3); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; } .v4 .crumbs a{ text-decoration: none; padding-block: 8px; } .v4 .crumbs a:hover{ text-decoration: underline; } .v4 .crumbs span[aria-hidden]{ opacity: .6; }
.v4 .tag{ display: inline-block; font: 700 .7rem/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border: 1px solid currentColor; white-space: nowrap; }
.v4 .empty{ padding: 28px 0; font: italic 400 1.15rem var(--read); color: var(--ink-2); }
.v4 .nr{ font-style: italic; color: var(--ink-3); }
/* typeset list rows with dot leaders: index, contents, search results */
.v4 .rows{ list-style: none; margin: 0; padding: 0; }
.v4 .rows > li{ margin: 0; padding: 10px 0 12px; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.v4 .row{ display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.v4 .row-n{ font: 800 1.3rem/1.1 var(--display); font-stretch: 75%; }
.v4 .dots{ flex: 1; border-bottom: 2px dotted var(--rule); transform: translateY(-4px); min-width: 20px; }
.v4 .row-v{ font: 600 .875rem var(--ui); text-align: right; max-width: 48%; }
.v4 .row-d{ font: 400 .875rem/1.45 var(--ui); color: var(--ink-3); margin-top: 2px; max-width: 38em; }
.v4 a.row{ padding-block: 2px; } .v4 .hbar a{ display: block; padding-block: 4px; }
.v4 a.row:hover .row-n{ color: var(--red-ink); }
/* trust pages (about, contact, tools, ecosystem, author, sitemap.html) */
.v4 .eco > section{ padding-top: 24px; border-top: 1px solid var(--rule); } .v4 .eco > section > * + *{ margin-top: .5em; } .v4 .prose.eco h2{ margin-top: 0; }
.v4 .tool-rows{ margin-top: 28px; } .v4 .hero .tool-rows{ margin-top: 0; border-top: 2px solid var(--ink); } .v4 .hero-low:has(> .tool-rows){ align-items: start; }
.v4 .sm-toc{ margin-top: 8px; gap: 0 18px; }
.v4 .sitemap{ padding-bottom: var(--sec); }
.v4 .sitemap section{ padding-top: 40px; }
.v4 .sitemap h2{ font-size: var(--t-h3); padding-bottom: 8px; border-bottom: 2px solid var(--ink); scroll-margin-top: calc(var(--stick) + 16px); }
.v4 .sitemap .count{ font: 600 .9rem var(--ui); color: var(--ink-3); margin-left: 8px; }
.v4 .sitelist{ list-style: none; margin: 0; padding: 0; columns: 18em; column-gap: 40px; font: 400 .9rem/1.4 var(--ui); }
.v4 .sitelist li{ break-inside: avoid; border-bottom: 1px solid var(--rule); }
.v4 .sitelist a{ display: block; padding: 6px 0; text-decoration: none; } .v4 .sitelist a:hover{ text-decoration: underline; }
/* "Paid review" disclosure: small outlined label that opens a native popover; the policy link is the no-popover fallback */
.v4 .paid{ display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; vertical-align: middle; font: 700 .68rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: none; border: 1px solid var(--ink-3); border-radius: 0; padding: 4px 6px; cursor: pointer; }
.v4 .paid svg{ width: 12px; height: 12px; } .v4 .paid:hover{ color: var(--ink); border-color: var(--ink); }
.v4 .paid-pop{ width: min(420px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 22px 24px; font: 400 1rem/1.5 var(--read); }
.v4 .paid-pop::backdrop{ background: oklch(0.17 0.012 60 / .35); }
.v4 .paid-pop h3{ font-size: 1.4rem; margin-bottom: 10px; } .v4 .paid-pop ul{ margin: 10px 0 0; padding-left: 1.1em; display: grid; gap: 6px; } .v4 .paid-pop a{ font-weight: 600; }
.v4 .paid-pop .x{ position: absolute; right: 8px; top: 8px; width: 48px; height: 40px; background: none; border: 0; cursor: pointer; color: inherit; font: 700 .8rem var(--ui); }
/* form controls */
.v4 .field{ display: grid; gap: 6px; font: 700 .85rem var(--ui); } .v4 .field small{ font-weight: 400; color: var(--ink-3); }
.v4 .field :is(input,select,textarea){ height: 48px; padding: 0 12px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 500 1rem var(--ui); width: 100%; border-radius: 0; } .v4 .field textarea{ height: auto; padding: 10px 12px; }
/* a search box on a colour-block hero (404): ink follows the block in both themes, focus shown as a ring */
.v4 .hero[class*="t-"] .sbox{ border-color: currentColor; } .v4 .hero[class*="t-"] .sbox input{ color: inherit; } .v4 .hero[class*="t-"] .sbox input::placeholder{ color: inherit; opacity: .65; }
.v4 .hero[class*="t-"] .sbox:focus-within{ border-color: currentColor; outline: 3px solid currentColor; outline-offset: 4px; }

/* footer / colophon: fixed ink block in both themes */
.colophon{ background: var(--b-ink); color: var(--on-dark); padding: 64px 0 40px; font-family: var(--ui); }
.colophon .logo{ font-size: clamp(2.6rem, 7vw, 5.5rem); display: inline-block; line-height: .85; color: var(--on-dark); }
.colophon .cols{ display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; font: 500 .92rem var(--ui); }
@media (min-width: 600px){ .colophon .cols{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px){ .colophon .cols{ grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.colophon .fh{ font: 700 .75rem var(--ui); letter-spacing: .14em; text-transform: uppercase; font-stretch: 100%; color: oklch(0.8 0.012 85); margin: 0 0 10px; }
.colophon ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .colophon li{ margin: 0; } .colophon li a{ display: inline-block; padding: 4px 0; } .colophon a{ text-decoration: none; color: inherit; } .colophon a:hover{ text-decoration: underline; color: inherit; }
.colophon .note{ margin-top: 40px; padding-top: 20px; border-top: 1px solid oklch(1 0 0 / .2); font: 400 .85rem/1.5 var(--ui); color: oklch(0.8 0.012 85); max-width: 40em; }
.colophon .note + .note{ margin-top: 8px; padding-top: 0; border: 0; }
.colophon .note a{ text-decoration: underline; text-underline-offset: 3px; }
.colophon .tech{ display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; font: 400 .8rem var(--ui); color: oklch(0.8 0.012 85); }

/* chapter nav: compact, sticky, plain labels, reading-progress line */
html:has(.cnav){ --stick: 102px; }
.v4 .cnav{ position: sticky; top: var(--mast); z-index: 30; background: var(--paper); border-bottom: 1px solid var(--ink); }
.v4 .cnav .wrap{ display: flex; align-items: center; gap: 16px; height: 43px; }
.v4 .cnav-l{ display: none; font: 700 .7rem var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
@media (min-width: 1100px){ .v4 .cnav-l{ display: block; } }
.v4 .cnav ol{ list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.v4 .cnav ol::-webkit-scrollbar{ display: none; }
@media (max-width: 1099px){ .v4 .cnav ol{ margin-right: calc(-1 * var(--g)); padding-right: 40px; mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); } }
/* phones: fade both edges so the row reads as scrollable; the scroller starts in the gutter so the fade never covers the first label */
@media (max-width: 799px){ .v4 .cnav ol{ margin-left: calc(-1 * var(--g)); padding-left: var(--g); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); } }
.v4 .cnav li{ margin: 0; }
.v4 .cnav a{ display: block; padding: 0 10px; font: 600 .86rem/40px var(--ui); text-decoration: none; white-space: nowrap; color: var(--ink-2); border-bottom: 3px solid transparent; }
.v4 .cnav li:first-child a{ padding-left: 0; }
.v4 .cnav a[aria-current]{ color: var(--ink); border-color: var(--ink); font-weight: 800; }
body:has(.cnav) .mast .progress{ display: none; }
.v4 .cnav::after{ content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--pg, 0)); }
@supports (animation-timeline: scroll()){ @media (prefers-reduced-motion: no-preference){ .v4 .cnav::after{ animation: v4-prog linear both; animation-timeline: scroll(root); } } }
.v4 .cnav a:focus-visible{ outline-offset: -3px; box-shadow: none; }
@media (hover: hover){ .v4 .cnav a:hover{ color: var(--ink); } }

/* TL;DR box (five lines at most) and FAQ */
.v4 .answer{ background: var(--b-ink); color: var(--on-dark); padding: clamp(18px, 2.2vw, 26px); }
.v4 .answer .kicker{ color: var(--lime); }
/* one font family per line: mixing serif and sans in a line makes its height depend on which web font has loaded (CLS) */
.v4 .tldr{ list-style: none; counter-reset: tl; margin: 10px 0 0; padding: 0; display: grid; font: 500 .98rem/1.4 var(--ui); }
.v4 .tldr li{ counter-increment: tl; position: relative; margin: 0; padding: 8px 0 8px 30px; border-top: 1px solid oklch(1 0 0 / .22); }
.v4 .tldr li::before{ content: counter(tl); position: absolute; left: 0; top: 10px; font: 800 .8rem/1.5 var(--ui); color: var(--lime); }
.v4 .tl-l{ color: oklch(0.86 0.012 85); }
.v4 .answer b{ font-family: var(--ui); font-weight: 800; }
.v4 .stay-note{ padding-top: 10px; border-top: 1px solid oklch(1 0 0 / .22); font-style: italic; font-size: .95rem; color: oklch(0.86 0.012 85); }
.v4 .qa{ margin-top: 40px; columns: 1; column-gap: 56px; }
@media (min-width: 900px){ .v4 .qa{ columns: 2; } }
.v4 .q{ break-inside: avoid; padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.v4 .q h3{ font-size: var(--t-h3); font-stretch: 75%; margin-bottom: 10px; line-height: 1.04; }
.v4 .q p{ font-size: 1.05rem; color: var(--ink-2); max-width: 33em; }

/* reveals: content is visible without JS; html.js (set only where /v4-motion.js loads) gates the motion */
@property --p{ syntax: "<number>"; inherits: true; initial-value: 3; }
.js .v4 .rv, .js.v4 .rv{ opacity: 0; transform: translateY(10px); }
.js .v4 .rv.in, .js.v4 .rv.in{ opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js .v4 .lines > span, .js.v4 .lines > span{ display: block; overflow: hidden; }
.js .v4 .lines > span > span, .js.v4 .lines > span > span{ display: block; transform: translateY(105%); }
.js .v4 .lines.in > span > span, .js.v4 .lines.in > span > span{ transform: none; transition: transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
/* scroll-driven: tied to scroll position, reverses on scroll-up, off under reduced motion; IntersectionObserver classes above are the fallback */
@keyframes sd-rise{ from{ opacity: 0; transform: translateY(.45em); } }
@keyframes sd-fade{ from{ opacity: 0; } }
@keyframes sd-grow{ from{ transform: scaleX(0); } }
@keyframes sd-draw{ from{ transform: scaleY(0); } }
@keyframes sd-pop{ from{ opacity: 0; transform: scale(.6); } }
@supports (animation-timeline: view()){ @media (prefers-reduced-motion: no-preference){
  .js .v4 .rv, .js .v4 .rv.in, .js.v4 .rv, .js.v4 .rv.in{ opacity: 1; transform: none; transition: none; animation: sd-rise linear both; animation-timeline: view(); animation-range: entry 0% contain 8%; }
  .js .v4 .sec-h, .js.v4 .sec-h{ animation: sd-rise linear both; animation-timeline: view(); animation-range: entry 0% contain 8%; }
  .js .v4 :is(.sec-k, .shows), .js.v4 :is(.sec-k, .shows){ animation: sd-fade linear both; animation-timeline: view(); animation-range: entry 0% contain 8%; }
  .js .v4 .sd-grow, .js.v4 .sd-grow{ transform-origin: left; animation: sd-grow linear both; animation-timeline: view(); animation-range: entry 10% cover 34%; }
} }
@media (prefers-reduced-motion: reduce){
  .js .v4 :is(.rv, .lines > span > span), .js.v4 :is(.rv, .lines > span > span){ opacity: 1 !important; transform: none !important; }
  .v4 *, .v4 *::before, .v4 *::after{ transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; animation-timeline: auto !important; }
}
/* stacked on phones: a wrapping row would change height when the web font swaps in */
@media (max-width: 560px){ .v4 .byline{ flex-direction: column; gap: 2px !important; } }
/* motion pass */
.v4{ --ease-pop: cubic-bezier(.34,1.56,.64,1); --shift-1: 4px; --shift-2: 10px; --stagger: 70ms; }
@media (prefers-reduced-motion: no-preference){ @view-transition{ navigation: auto; } }
.mast{ view-transition-name: v4-mast; } .v4 .cnav{ view-transition-name: v4-cnav; }
::view-transition-group(*){ animation-duration: 360ms; animation-timing-function: cubic-bezier(.3,0,0,1); }
::view-transition-group(v4-mast){ z-index: 3; } ::view-transition-group(v4-cnav){ z-index: 2; }
::view-transition-old(root){ animation-duration: 160ms; } ::view-transition-new(root){ animation-duration: 240ms; }
::view-transition-old(.vt-title), ::view-transition-new(.vt-title){ height: 100%; width: auto; }
::view-transition-old(.vt-title){ animation-duration: 120ms; } ::view-transition-new(.vt-title){ animation-duration: 200ms; animation-delay: 80ms; }
.v4 .answer{ position: relative; }
.v4 .answer::before{ content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--lime); transform-origin: top; animation: sd-draw var(--dur-4) var(--ease-out) 250ms both; }
/* scale only: the numerals are first-screen text, so they never start at opacity 0 */
@keyframes sd-scale{ from{ transform: scale(.6); } }
.v4 .tldr li::before{ animation: sd-scale 300ms var(--ease-pop) both; animation-delay: calc(300ms + var(--stagger) * var(--n, 0)); }
.v4 .tldr li:nth-child(2){ --n: 1; } .v4 .tldr li:nth-child(3){ --n: 2; } .v4 .tldr li:nth-child(4){ --n: 3; } .v4 .tldr li:nth-child(5){ --n: 4; }
.v4 .cnav a{ transition: color var(--dur-2), border-color var(--dur-2); }
.v4 .btn svg{ transition: transform var(--dur-2) var(--ease-out); }
.v4 .row-n{ transition: transform var(--dur-2) var(--ease-out), color var(--dur-2); } .v4 .dots{ transition: border-color var(--dur-2); }
.v4 main :is(p, li, dd) a:not(.btn):not(.row){ transition: text-underline-offset var(--dur-2), text-decoration-thickness var(--dur-2); }
@media (hover: hover) and (pointer: fine){
  .v4 .btn:hover svg{ transform: translateX(3px); }
  .v4 a.row:hover .row-n{ transform: translateX(var(--shift-1)); color: var(--red-ink); } .v4 a.row:hover .dots{ border-bottom-color: var(--red); }
  .v4 main :is(p, li, dd) a:not(.btn):not(.row):hover{ text-underline-offset: 5px; text-decoration-thickness: 2px; }
}
.v4 [data-copy-prompt]{ transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
.v4 [data-copy-prompt][data-copied="true"], .v4 [data-copy-prompt][data-copied="true"]:hover{ background: var(--lime); border-color: var(--on-light); color: var(--on-light); }

/* tool logos (api/_lib/toolIdentity.ts toolLogoHtml, ToolAvatar): size tier via data-s, never wider than
   1.5× the raster (--pmax) nor the image past its own pixels (--px); the plate stays light in both schemes */
.v4{ --logo-plate-light: oklch(0.975 0.005 85); --logo-plate-dark: oklch(0.23 0.01 60); }
.v4 .tool-avatar{ --s: 24px; display: inline-grid; place-items: center; flex: none; width: min(var(--s), var(--pmax, 999px)); aspect-ratio: 1; height: auto; background: var(--logo-plate-light); border: 1px solid var(--rule); border-radius: 0; font-size: inherit; vertical-align: middle; overflow: hidden; }
.v4 .tool-avatar[data-s="16"]{ --s: 16px; } .v4 .tool-avatar[data-s="20"]{ --s: 20px; } .v4 .tool-avatar[data-s="28"]{ --s: 28px; }
.v4 .tool-avatar[data-s="32"]{ --s: 32px; } .v4 .tool-avatar[data-s="48"]{ --s: 48px; } .v4 .tool-avatar[data-s="64"]{ --s: 64px; }
/* display headings scale the logo; card headings (/ai-tools h2) keep their explicit tier */
.v4 :is(h1, .sp-name, .rk-h) .tool-avatar.tool-avatar{ --s: .72em; }
/* classed plates outrank product-design.css .tool-avatar.has-logo, which still loads on sponsor surfaces */
.v4 .tool-avatar.plate-light{ background: var(--logo-plate-light); } .v4 .tool-avatar.plate-dark{ background: var(--logo-plate-dark); }
.v4 .tool-avatar img{ width: min(66%, var(--px, 999px)); height: auto; max-height: 66%; object-fit: contain; display: block; }
.v4 .tool-avatar.mono{ background: var(--paper-2); color: var(--ink); font: 900 calc(var(--s) * .46)/1 var(--display); font-stretch: 62%; }
.v4 .row .tool-avatar{ align-self: center; margin-right: 4px; }
.v4 .logo-stack{ display: inline-flex; } .v4 .logo-stack .tool-avatar + .tool-avatar{ margin-left: -6px; }
.v4 .logo-pair{ display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; font: 800 var(--t-sm)/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
