/* =====================================================================
   should i reverse engineer this? · site stylesheet
   Plain CSS, no build step. Ported from docs/wireframe/styles.css.
   Every value below comes from a token. Change the token, not the rule.
   Sections: 1 tokens · 2 base · 3 layout · 4 components · 5 pages · 6 motion
   ===================================================================== */

/* ---------- 1. tokens ------------------------------------------------ */
:root {
  color-scheme: dark;

  /* graphite workshop (default): warm bone ink on graphite, one blueprint blue */
  --bg:          oklch(0.200 0.008 250);
  --surface-1:   oklch(0.232 0.009 250);
  --surface-2:   oklch(0.268 0.010 250);
  --surface-3:   oklch(0.310 0.011 250);
  --line:        oklch(0.335 0.010 250);
  --line-strong: oklch(0.460 0.012 250);
  --grid:        oklch(0.92 0.018 85 / 0.035);
  --grid-major:  oklch(0.92 0.018 85 / 0.07);
  --text:        oklch(0.925 0.018 85);  /* bone */
  --text-2:      oklch(0.820 0.016 85);
  --text-3:      oklch(0.715 0.013 85);
  --link:        oklch(0.780 0.110 252); /* blueprint blue, light: links, citations, score fill */
  --accent:      oklch(0.520 0.170 260); /* blueprint blue: hero block, primary button */
  --accent-ink:  oklch(0.955 0.015 85);  /* bone on blue: 4.7:1 */
  --accent-text: oklch(0.780 0.110 252); /* blue used as text, line or border on graphite */
  --accent-bg:   oklch(0.270 0.045 258);
  --hero-bg:     var(--accent);
  --hero-ink:    oklch(0.955 0.015 85);
  --hero-ink-2:  oklch(0.955 0.015 85 / 0.92);
  --hero-line:   oklch(0.955 0.015 85 / 0.16);
  --hero-btn:    oklch(0.200 0.008 250);
  --focus:       oklch(0.880 0.140 95);  /* signal yellow: visible on graphite, paper and blue */
  --score:       var(--link);
  --score-off:   oklch(0.335 0.010 250);

  --yes:      oklch(0.82 0.14 155);  --yes-bg:   oklch(0.27 0.045 160);
  --twist:    oklch(0.81 0.13 70);   --twist-bg: oklch(0.28 0.045 65);
  --nope:     oklch(0.74 0.15 25);   --nope-bg:  oklch(0.28 0.055 25);

  /* type: Archivo (grotesk, width axis) for display and body, IBM Plex Mono for labels */
  --font-display: "Archivo", "Arial", sans-serif;
  --font-body:    "Archivo", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --step--2: 0.75rem;     /* 12 · micro labels */
  --step--1: 0.875rem;    /* 14 · meta, chips */
  --step-0:  1.0625rem;   /* 17 · body */
  --step-1:  1.25rem;     /* 20 · lede, h3 */
  --step-2:  1.5625rem;   /* 25 · stat values */
  --step-3:  clamp(2rem, 1.4rem + 2.4vw, 3.5rem);      /* h2 */
  --step-4:  clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);  /* page h1 */
  --step-5:  clamp(2.5rem, 1.2rem + 4.4vw, 5.25rem);   /* home hero */

  /* space: 4pt scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --gutter: var(--s-4);
  --max: 1180px;
  --measure: 68ch;
  --radius: 0;            /* shape lock: everything is square-cut */
  --border: 1px;
  --border-strong: 2px;
  --tap: 44px;

  --z-dropdown: 10; --z-sticky: 20;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 120ms; --t-state: 220ms; --t-layout: 360ms; --t-enter: 520ms;
}

:root[data-theme="light"] {
  color-scheme: light;
  /* bone paper: warm off-white, graphite ink, the same blueprint blue */
  --bg:          oklch(0.965 0.010 85);
  --surface-1:   oklch(0.985 0.006 85);
  --surface-2:   oklch(0.930 0.012 85);
  --surface-3:   oklch(0.895 0.014 85);
  --line:        oklch(0.860 0.014 85);
  --line-strong: oklch(0.640 0.014 85);
  --grid:        oklch(0.40 0.02 250 / 0.045);
  --grid-major:  oklch(0.40 0.02 250 / 0.08);
  --text:        oklch(0.220 0.010 250);
  --text-2:      oklch(0.370 0.012 250);
  --text-3:      oklch(0.465 0.012 250);
  --link:        oklch(0.480 0.170 260);
  --accent-text: oklch(0.480 0.170 260);
  --accent-bg:   oklch(0.935 0.035 255);
  --hero-btn:    oklch(0.220 0.010 250);
  --focus:       oklch(0.480 0.170 260);
  --score-off:   oklch(0.880 0.014 85);

  --yes:   oklch(0.47 0.12 155);  --yes-bg:   oklch(0.94 0.04 155);
  --twist: oklch(0.51 0.13 55);   --twist-bg: oklch(0.95 0.04 65);
  --nope:  oklch(0.51 0.18 25);   --nope-bg:  oklch(0.95 0.03 25);
}

@media (min-width: 768px) { :root { --gutter: var(--s-6); } }

/* ---------- 2. base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  letter-spacing: 0.005em;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); font-weight: 760; font-stretch: 106%; line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); font-weight: 740; font-stretch: 106%; line-height: 1; letter-spacing: -0.032em; }
h3 { font-size: var(--step-1); font-weight: 680; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); text-decoration-color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
code, kbd, .mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: var(--z-sticky);
  background: var(--accent); color: var(--accent-ink); padding: var(--s-3) var(--s-4); font-family: var(--font-mono); }
.skip-link:focus { top: var(--s-4); }

/* ---------- 3. layout ------------------------------------------------ */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: var(--s-8); }
.section + .section { border-top: var(--border) solid var(--line); }
@media (min-width: 1024px) { .section { padding-block: var(--s-9); } }
/* drafting frame: on wide screens every section's column is ruled left and right, so the page
   reads as one sheet. the rules run through the section padding, so padding moves onto the wrap */
@media (min-width: 1280px) {
  :root { --max: 1240px; }
  .section, .report-head, .browse-head { padding-block: 0; }
  .section > .wrap, .report-head > .wrap, .browse-head > .wrap {
    border-inline: var(--border) solid var(--line); padding-inline: var(--s-7); }
  .section > .wrap { padding-block: var(--s-9); }
  .report-head > .wrap { padding-block: var(--s-6) var(--s-7); }
  .browse-head > .wrap { padding-block: var(--s-7) var(--s-6); }
  .site-header .wrap { padding-inline: var(--s-7); }
  .hero .wrap { padding-inline: var(--s-7); }
}
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: var(--s-2) var(--s-5); margin-bottom: var(--s-6); }
.section__head p { color: var(--text-2); max-width: 52ch; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-4); }
.lede { font-size: var(--step-1); color: var(--text-2); max-width: 56ch; line-height: 1.5; }

/* header */
.site-header { border-bottom: var(--border) solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); min-height: 72px; }
/* logo: the mark is a part half drawn (solid) and half still a plan (dashed); wordmark unbuilt + it */
.brand { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); color: var(--text);
  text-decoration: none; font-family: var(--font-display); font-weight: 800; font-stretch: 112%;
  font-size: 1.375rem; line-height: 1; letter-spacing: -0.045em; }
.brand:hover { color: var(--text); }
.brand svg { flex: none; width: 28px; height: 28px; }
.brand b { font-weight: inherit; color: var(--accent-text); }
.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a, .theme-toggle {
  display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--s-2);
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-2); text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: underline;
  text-decoration-color: var(--accent-text); text-decoration-thickness: 2px; }
.theme-toggle { background: none; border: 0; cursor: pointer; white-space: nowrap; }
.theme-toggle:hover { color: var(--text); }
.nav .hide-sm, .nav .hide-md { display: none; }
@media (min-width: 560px) { .nav .hide-sm { display: inline-flex; } .nav { gap: var(--s-3); } }
/* stats and dead startups (pages served by the link-builder project) need the extra width; the footer always lists them */
@media (min-width: 900px) { .nav .hide-md { display: inline-flex; } }
/* phones: logo + three nav items need ~440px, so the nav takes its own row under the logo; the first
   link's text lines up with the logo and the theme toggle sits at the right edge */
@media (max-width: 559.98px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-block: var(--s-1); }
  .nav { flex: 1 0 100%; margin-inline-start: calc(-1 * var(--s-2)); }
  .nav .theme-toggle { margin-inline-start: auto; margin-inline-end: calc(-1 * var(--s-2)); }
}

/* footer */
.site-footer { border-top: var(--border) solid var(--line); padding-block: var(--s-7);
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); }
.site-footer a { color: var(--text-2); }

/* the hidden attribute always wins over component display rules (e.g. .btn is inline-flex) */
[hidden] { display: none !important; }

/* ---------- 4. components -------------------------------------------- */

/* buttons */
/* primary button: a cut-corner plate (top-left and bottom-right chamfered) */
.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-6); border: 0;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono);
  font-size: var(--step-0); font-weight: 600; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform var(--t-fast) var(--ease-out), filter var(--t-state) var(--ease-out);
}
.btn:hover { color: var(--accent-ink); transform: translateY(-2px); filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--surface-3);
  color: var(--text-3); cursor: not-allowed; transform: none; filter: none; }
/* ghost and small buttons stay square with a hairline: clip-path would cut the border */
.btn--ghost { background: transparent; border: var(--border) solid var(--line-strong); color: var(--text); clip-path: none; }
.btn--ghost:hover { color: var(--text); border-color: var(--accent-text); filter: none; }
.btn--sm { min-height: 44px; padding: 0 var(--s-3); font-size: var(--step--1); font-weight: 500; }
/* clip-path hides an outside outline, so the plate shows focus as an inner ring */
.btn:not(.btn--ghost):focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--focus); }

/* eyebrow: a small boxed mono label above a heading, "01 / the short version" */
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-4);
  padding: var(--s-1) var(--s-3); border: var(--border) solid var(--line-strong); background: var(--bg);
  font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500; line-height: 1.8;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; }

/* ticker: recent teardowns scrolling under the hero. pauses on hover/focus, static with reduced motion */
.ticker { overflow: hidden; border-top: var(--border) solid var(--hero-line); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker li { display: flex; align-items: center; }
.ticker li::after { content: "·"; padding-inline: var(--s-5); color: var(--hero-ink-2); }
.ticker a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap);
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--hero-ink); text-decoration: none; white-space: nowrap; }
.ticker a:hover { text-decoration: underline; color: var(--hero-ink); }
.ticker a span { color: var(--hero-ink-2); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* report page actions: copy, view markdown, link, ask an ai, share */
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-4); }
.page-actions__status { flex-basis: 100%; min-height: 1.5em; margin: 0; font-family: var(--font-mono);
  font-size: var(--step--2); color: var(--text-3); }
.ask-ai { position: relative; }
.ask-ai summary { list-style: none; }
.ask-ai summary::-webkit-details-marker { display: none; }
.ask-ai summary::after { content: "▾"; margin-left: var(--s-1); }
.ask-ai[open] summary { border-color: var(--accent-text); }
.ask-ai__menu { position: absolute; z-index: 5; top: calc(100% + var(--s-1)); left: 0; min-width: 100%;
  margin: 0; padding: var(--s-1) 0; list-style: none; background: var(--surface-2);
  border: var(--border) solid var(--line-strong); }
.ask-ai__menu a { display: block; padding: var(--s-2) var(--s-3); min-height: 44px; line-height: 28px;
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--text); text-decoration: none; white-space: nowrap; }
.ask-ai__menu a:hover, .ask-ai__menu a:focus-visible { background: var(--surface-3); }

/* verdict tag: a parts tag with a punched hole. data-v = yes | twist | nope */
.tag { --v: var(--twist); --v-bg: var(--twist-bg);
  position: relative; display: inline-grid; gap: var(--s-1); align-content: center;
  padding: var(--s-3) var(--s-5) var(--s-3) var(--s-7);
  background: var(--v-bg); border: var(--border-strong) solid var(--v); color: var(--text); }
.tag[data-v="yes"]   { --v: var(--yes);   --v-bg: var(--yes-bg); }
.tag[data-v="twist"] { --v: var(--twist); --v-bg: var(--twist-bg); }
.tag[data-v="nope"]  { --v: var(--nope);  --v-bg: var(--nope-bg); }
.tag::before { content: ""; position: absolute; left: var(--s-4); top: 50%; width: 14px; height: 14px;
  margin-top: -7px; border-radius: 50%; background: var(--bg); border: var(--border-strong) solid var(--v); }
.tag__verdict { font-family: var(--font-mono); font-weight: 600; font-size: var(--step-2);
  letter-spacing: 0.08em; line-height: 1; color: var(--v); }
.tag__line { font-size: var(--step--1); color: var(--text-2); line-height: 1.3; }
.tag--lg { transform: rotate(-1deg); }
.tag--sm { white-space: nowrap; padding: var(--s-1) var(--s-3) var(--s-1) var(--s-6); border-width: var(--border); }
.tag--sm::before { width: 8px; height: 8px; margin-top: -4px; left: var(--s-3); border-width: var(--border); }
.tag--sm .tag__verdict { font-size: var(--step--2); letter-spacing: 0.06em; }

/* evidence chip: verified = solid, estimate = dashed */
.chip { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0 var(--s-2);
  border: var(--border) solid currentColor; font-family: var(--font-mono); font-size: var(--step--2);
  line-height: 1.8; white-space: nowrap; }
.chip--verified { color: var(--yes); }
.chip--estimate { color: var(--text-2); border-style: dashed; }
.chip--none { color: var(--text-3); border-style: dotted; }

/* citation link: [3] */
.cite { font-family: var(--font-mono); font-size: var(--step--2); text-decoration: none;
  padding-inline: 2px; vertical-align: 0.1em; white-space: nowrap; }
.cite:hover { text-decoration: underline; }

/* score bar 1 to 5 */
.bar5 { display: inline-flex; gap: 3px; vertical-align: middle; }
.bar5 i { width: 14px; height: 10px; background: var(--score-off); }
.bar5 i.on { background: var(--score); }

/* thin track for x/15 and x/10 */
.track { display: block; height: 6px; background: var(--score-off); }
.track > span { display: block; height: 100%; background: var(--score); }

/* cost tags in the playbook */
.cost { display: inline-block; padding: 0 var(--s-2); font-family: var(--font-mono);
  font-size: var(--step--2); line-height: 1.8; border: var(--border) solid var(--line-strong);
  color: var(--text-2); white-space: nowrap; }
.cost[data-cost="free"] { border-color: var(--yes); color: var(--yes); }

/* filter chips: links, server renders aria-current on the active one */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.chip-link { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap);
  padding: 0 var(--s-4); border: var(--border) solid var(--line-strong); color: var(--text-2);
  font-family: var(--font-mono); font-size: var(--step--1); text-decoration: none;
  transition: border-color var(--t-state) var(--ease-out), color var(--t-state) var(--ease-out); }
.chip-link:hover { color: var(--text); border-color: var(--text-2); }
.chip-link[aria-current="true"] { background: var(--accent); border-color: var(--accent-text); color: var(--accent-ink); }
.chip-link .dot { width: 8px; height: 8px; background: var(--v, var(--text-3)); }
.chip-link .count { color: inherit; opacity: 1; font-size: var(--step--2); }
.filter-group { display: grid; gap: var(--s-2); }
.filter-group > span { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }

/* text input with autocomplete (combobox) */
.field { display: grid; gap: var(--s-2); }
.field label { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-2); }
.input { min-height: 48px; width: 100%; padding: 0 var(--s-4); background: var(--surface-1);
  border: var(--border) solid var(--line-strong); color: var(--text); font-family: var(--font-mono);
  font-size: var(--step-0); }
.input::placeholder { color: var(--text-3); }
.input:focus-visible { outline-offset: 0; border-color: var(--focus); }
.ac { position: relative; }
.ac-list { position: absolute; z-index: var(--z-dropdown); top: calc(100% + var(--s-2)); left: 0; right: 0;
  margin: 0; padding: var(--s-1); list-style: none; background: var(--surface-2);
  border: var(--border) solid var(--line-strong); font-family: var(--font-body); font-size: var(--step-0);
  font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.ac-list[hidden] { display: none; }
.ac-opt { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: var(--tap); padding: var(--s-2) var(--s-3); cursor: pointer; color: var(--text); }
.ac-opt small { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }
.ac-opt[aria-selected="true"], .ac-opt:hover { background: var(--surface-3); }
.ac-opt[aria-selected="true"] .ac-name::before { content: "> "; color: var(--accent-text); font-family: var(--font-mono); }
.ac-opt--new { border-top: var(--border) solid var(--line); color: var(--text-2); font-size: var(--step--1); }
.ac-opt--new b { color: var(--accent-text); font-weight: 600; }

/* product card (whole card is one link) */
.cards { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: grid; gap: var(--s-4); grid-template-rows: auto 1fr auto auto; padding: var(--s-5);
  background: var(--surface-1); border: var(--border) solid var(--line);
  transition: transform var(--t-state) var(--ease-out), border-color var(--t-state) var(--ease-out); }
.card:hover { transform: translateY(-2px); border-color: var(--accent-text); }
.card:focus-within { border-color: var(--focus); }
.card__top { display: flex; justify-content: space-between; align-items: start; gap: var(--s-3); }
.card__top > div { flex: 1; min-width: 0; }
.card h3 { font-size: var(--step-2); font-stretch: 85%; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; }
.card__cat { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }
.card p { color: var(--text-2); font-size: var(--step--1); }
.meter { display: grid; grid-template-columns: 1fr auto; gap: var(--s-1) var(--s-3); align-items: center;
  font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-2); }
.meter .track { grid-column: 1 / -1; }

/* stats row as an engineering title block */
.spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--border);
  background: var(--line-strong); border: var(--border) solid var(--line-strong); }
.spec > div { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-4) var(--s-4) var(--s-5);
  background: var(--surface-1); min-width: 0; }
.spec dt { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); }
.spec dd { margin: 0; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700;
  font-stretch: 85%; line-height: 1.15; font-variant-numeric: tabular-nums; }
.spec dd small { font-family: var(--font-mono); font-size: var(--step--2); font-weight: 400;
  color: var(--text-2); display: block; margin-top: var(--s-1); }
.spec .spec--wide { grid-column: 1 / -1; }
.spec .spec--key dd { color: var(--accent-text); }
@media (min-width: 768px) { .spec { grid-template-columns: repeat(3, 1fr); } .spec .spec--wide { grid-column: auto; } }
@media (min-width: 1100px) { .spec { grid-template-columns: repeat(5, 1fr); } .spec .spec--wide { grid-column: span 2; } }
.spec-note { margin-top: var(--s-2); font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }

/* data tables (rubric, already built, leaderboard). Stack below 768px. */
.table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.table th { text-align: left; font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500;
  color: var(--text-3); padding: var(--s-3); border-bottom: var(--border) solid var(--line-strong); }
.table td { padding: var(--s-4) var(--s-3); border-bottom: var(--border) solid var(--line); vertical-align: top; }
.table td.r, .table th.r { text-align: right; }
.table .group td { padding-top: var(--s-6); font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--text); border-bottom-color: var(--line-strong); }
.table .group b { color: var(--accent-text); font-weight: 600; }
.table .name { font-family: var(--font-display); font-size: var(--step-1); font-weight: 650; }
.table .name a { color: var(--text); text-decoration: none; }
.table .name a:hover { text-decoration: underline; text-decoration-color: var(--accent-text); }
.table .muted { color: var(--text-3); font-family: var(--font-mono); font-size: var(--step--2); }
.table .score { display: flex; align-items: center; gap: var(--s-2); font-family: var(--font-mono);
  white-space: nowrap; }
.table .why { color: var(--text-2); }
.evi { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.evi .muted { color: var(--text-3); font-family: var(--font-mono); font-size: var(--step--2); }
.th-sort a { color: inherit; text-decoration: none; }
.th-sort[aria-sort] a { color: var(--text); }
@media (max-width: 767px) {
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; }
  .table--stack tr { padding: var(--s-4) 0; border-bottom: var(--border) solid var(--line); }
  .table--stack td { border: 0; padding: var(--s-1) 0; }
  .table--stack td[data-label]::before { content: attr(data-label); display: block;
    font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }
  .table--stack .group { border-bottom: 0; padding-bottom: 0; }
  .table--stack td.r { text-align: left; }
}

/* breadcrumb */
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none;
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--line-strong); }
.crumbs a { color: var(--text-2); }

/* meta line under titles */
.meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-family: var(--font-mono);
  font-size: var(--step--2); color: var(--text-3); }
.meta b { color: var(--text-2); font-weight: 500; }

/* FAQ accordion */
.faq { border-top: var(--border) solid var(--line); max-width: var(--measure); }
.faq details { border-bottom: var(--border) solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center;
  min-height: var(--tap); padding: var(--s-4) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq__q { margin: 0; font: inherit; color: inherit; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-text);
  transition: transform var(--t-state) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--link); }
.faq details p { padding-bottom: var(--s-5); color: var(--text-2); }

/* state panel (researching, queued, not found, errors, empty) */
.panel { border: var(--border) solid var(--line-strong); background: var(--surface-1); }
.panel__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  padding: var(--s-2) var(--s-4); border-bottom: var(--border) solid var(--line);
  font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }
.panel__body { display: grid; gap: var(--s-5); padding: var(--s-5); }
@media (min-width: 768px) { .panel__body { padding: var(--s-6); } }
.panel__body > p { color: var(--text-2); max-width: 60ch; }
.panel h2 { font-size: var(--step-2); }
.state-icon { font-family: var(--font-mono); font-size: var(--step-2); font-weight: 600; line-height: 1; }

/* progress steps */
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: var(--s-1) var(--s-3); padding: var(--s-3) 0;
  border-top: var(--border) solid var(--line); }
.step__mark { grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px;
  font-family: var(--font-mono); font-size: var(--step--1); border: var(--border) solid var(--line-strong); color: var(--text-3); }
.step__name { font-weight: 600; }
.step__detail { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }
.step[data-state="done"] .step__mark { border-color: var(--yes); color: var(--yes); }
.step[data-state="done"] .step__name { color: var(--text-2); }
.step[data-state="active"] .step__mark { border-color: var(--accent-text); background: var(--accent); }
.step[data-state="active"] .step__mark::before { content: ""; width: 8px; height: 8px; background: var(--accent-ink); }
.step[data-state="active"] .step__name { color: var(--text); }
.step[data-state="active"] .step__detail { color: var(--text-2); }
.step[data-state="pending"] .step__name { color: var(--text-3); font-weight: 400; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-1); }
.progress i { height: 8px; background: var(--score-off); }
.progress i.done { background: var(--yes); }
.progress i.active { background: var(--accent); }

/* ---------- 5. pages ------------------------------------------------- */

/* blueprint grid: only on surfaces that are literally drawings (home hero, report head) */
.blueprint { background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px; }

/* home hero: a full-bleed blueprint sheet. bone ink on blue, faint construction lines, fill-in-the-blank */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink);
  --text: var(--hero-ink); --text-2: var(--hero-ink-2); --text-3: var(--hero-ink-2);
  --accent-text: var(--hero-ink); --accent-bg: oklch(1 0 0 / 0.08); --link: var(--hero-ink); --focus: oklch(0.88 0.14 95); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--hero-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-line) 1px, transparent 1px),
    repeating-linear-gradient(0deg, oklch(0 0 0 / 0.05) 0 1px, transparent 1px 3px);
  background-size: 120px 120px, 120px 120px, auto;
  mask-image: linear-gradient(100deg, transparent 30%, #000 85%); }
.hero > .wrap { padding-block: var(--s-8) var(--s-8); }
@media (min-width: 1024px) { .hero > .wrap { padding-block: var(--s-9) var(--s-8); } }
.hero .btn { --accent: var(--hero-btn); --accent-ink: var(--hero-ink); }
.hero .btn:not(.btn--ghost):focus-visible { box-shadow: inset 0 0 0 3px var(--focus); }
.hero .ac-list { --text: oklch(0.925 0.018 85); --text-2: oklch(0.82 0.016 85); --text-3: oklch(0.715 0.013 85);
  --accent-text: oklch(0.78 0.11 252); color: var(--text); }
.hero__title { display: flex; width: fit-content; margin-bottom: var(--s-6); background: transparent;
  border-color: var(--hero-line); font-stretch: normal; text-wrap: wrap; }
.hero__lede { margin-top: var(--s-7); max-width: 34ch; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 560; line-height: 1.45; letter-spacing: -0.01em; color: var(--hero-ink-2); }
.ask { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.26em;
  font-family: var(--font-display); font-size: var(--step-5); font-weight: 760; font-stretch: 106%;
  line-height: 0.98; letter-spacing: -0.04em; }
.ask__lead { margin: 0; }
.ask__blank { position: relative; display: flex; align-items: baseline; flex: 0 1 10ch; min-width: min(100%, 6ch); }
.ask__input { flex: 1; min-width: 0; width: 100%; padding: 0 0.04em; background: transparent; border: 0;
  border-bottom: 0.08em solid var(--accent-text); border-radius: 0; color: var(--accent-text); font: inherit;
  letter-spacing: inherit; caret-color: var(--accent-text); }
.ask__input::placeholder { color: oklch(0.955 0.015 85 / 0.6); }
.ask__input:focus-visible { outline: none; background: var(--accent-bg); }
.ask__q { padding-left: 0.04em; }
.dim { position: absolute; top: calc(100% + var(--s-2)); left: 0; right: 0.6em; display: flex; align-items: center;
  gap: var(--s-2); font-family: var(--font-mono); font-size: var(--step--2); font-weight: 400; letter-spacing: 0;
  line-height: 1.4; color: var(--link); white-space: nowrap; }
.dim::before, .dim::after { content: ""; flex: 1; height: 9px; border: solid var(--link);
  border-width: 0 0 1px 1px; }
.dim::after { border-width: 0 1px 1px 0; }
.ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); margin-top: var(--s-7); }
/* second field for new products, between the lede and the button */
.ask-site { display: grid; gap: var(--s-2); max-width: 560px; margin-top: var(--s-7); }
.ask-site[hidden] { display: none; }
.ask-site__label { font-family: var(--font-mono); font-size: var(--step--1); color: var(--hero-ink-2); }
.ask-site__input[aria-invalid="true"] { border-color: var(--nope); }
.hint { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-2); max-width: 52ch; }
.hint a { color: var(--text); }
.try { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin-top: var(--s-3);
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); }

/* category drawers: a parts cabinet */
.drawers { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: drawer;
  border-top: var(--border) solid var(--line-strong); border-left: var(--border) solid var(--line-strong); }
.drawer { counter-increment: drawer; }
.drawer::after { content: "00" counter(drawer); position: absolute; top: var(--s-5); right: var(--s-5);
  font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.12em; color: var(--text-3); }
@media (min-width: 640px) { .drawers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .drawers { grid-template-columns: repeat(3, 1fr); } }
.drawer { position: relative; display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--surface-1);
  border-right: var(--border) solid var(--line-strong); border-bottom: var(--border) solid var(--line-strong);
  color: var(--text); text-decoration: none; transition: background-color var(--t-state) var(--ease-out); }
.drawer:hover { background: var(--surface-2); color: var(--text); }
.drawer__label { display: grid; gap: var(--s-2); padding-right: 4ch; }
.drawer__label b { font-family: var(--font-display); font-size: var(--step-2); font-weight: 740;
  font-stretch: 106%; letter-spacing: -0.03em; line-height: 1.05; }
.drawer__label span { order: -1; font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-text); }
.drawer__handle { justify-self: center; width: 64px; height: 6px; border: var(--border) solid var(--line-strong);
  transition: background-color var(--t-state) var(--ease-out), transform var(--t-state) var(--ease-out); }
.drawer:hover .drawer__handle { background: var(--accent); border-color: var(--accent-text); transform: translateY(2px); }
.drawer p { font-size: var(--step--1); color: var(--text-2); }
.mix { display: flex; height: 8px; gap: 2px; }
.mix i { display: block; }
.mix .y { background: var(--yes); } .mix .t { background: var(--twist); } .mix .n { background: var(--nope); }
.mix-legend { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }

/* how it works */
.how { display: grid; gap: var(--s-6); margin: 0; padding: 0; list-style: none; counter-reset: how; }
@media (min-width: 768px) { .how { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.how li { counter-increment: how; display: grid; gap: var(--s-2); padding-top: var(--s-4);
  border-top: var(--border-strong) solid var(--line-strong); }
.how li::before { content: "0" counter(how); font-family: var(--font-mono); font-size: var(--step--2);
  letter-spacing: 0.12em; color: var(--accent-text); }
.how li:first-child { border-top-color: var(--accent-text); }
.how p { color: var(--text-2); }

/* report head */
.report-head { padding-block: var(--s-6) var(--s-7); border-bottom: var(--border) solid var(--line);
  overflow-x: clip; /* the stamp's 1.25x start frame must not widen the page on small phones */ }
.report-head__grid { display: grid; gap: var(--s-6); margin-top: var(--s-5); align-items: center; }
@media (min-width: 900px) { .report-head__grid { grid-template-columns: 1fr auto; } }
/* one column: the tag keeps its own width, so the stamp's 1.25x start frame stays inside the screen */
@media (max-width: 899.98px) { .report-head__grid .tag--lg { justify-self: start; } }
.report-head h1 .blank { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em; }
.report-head .meta { margin-top: var(--s-5); }
.report-head .spec { margin-top: var(--s-6); }

/* summary: copy / avoid / why */
/* copy vs avoid side by side like a before/after diff, why underneath across both */
.summary { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; counter-reset: sum;
  border: var(--border) solid var(--line-strong); }
@media (min-width: 768px) { .summary { grid-template-columns: 1fr 1fr; } }
.summary > div { counter-increment: sum; display: grid; gap: var(--s-4); align-content: start; padding: var(--s-5);
  border-top: var(--border-strong) solid var(--line-strong); }
.summary > div:first-child { border-top-color: var(--accent-text); }
.summary > div:nth-child(2) { border-top-color: var(--nope); }
.summary > div:last-child { grid-column: 1 / -1; background: var(--surface-1); border-top-width: var(--border); }
@media (min-width: 768px) { .summary > div { padding: var(--s-6); }
  .summary > div:nth-child(2) { border-left: var(--border) solid var(--line-strong); } }
.summary dt { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); }
.summary dt::before { content: "0" counter(sum) " / "; }
.summary dd { margin: 0; font-size: var(--step-1); line-height: 1.5; max-width: 60ch; }

/* lessons */
.lessons { display: grid; gap: var(--s-6); margin: 0; padding: 0; list-style: none; counter-reset: lesson; max-width: 80ch; }
.lessons li { counter-increment: lesson; display: grid; grid-template-columns: 3ch 1fr; gap: var(--s-1) var(--s-4); }
.lessons li::before { content: counter(lesson); grid-row: span 3; font-family: var(--font-mono);
  font-size: var(--step-1); color: var(--accent-text); line-height: 1.2; }
.lessons p { color: var(--text-2); }

/* timeline: rail + square nodes. vertical on mobile, 4 columns on desktop */
.timeline { display: grid; gap: var(--s-6); margin: 0; padding: 0 0 0 var(--s-6); list-style: none;
  border-left: var(--border-strong) solid var(--line-strong); }
.timeline > li { position: relative; display: grid; gap: var(--s-3); align-content: start; }
.timeline > li::before { content: ""; position: absolute; left: calc(-1 * var(--s-6) - 7px); top: 6px;
  width: 12px; height: 12px; background: var(--bg); border: var(--border-strong) solid var(--accent-text); }
.timeline h3 { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600; color: var(--accent-text); }
.timeline ul { margin: 0; padding-left: var(--s-4); display: grid; gap: var(--s-2); font-size: var(--step--1); color: var(--text-2); }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); padding: var(--s-6) 0 0;
    border-left: 0; border-top: var(--border-strong) solid var(--line-strong); }
  .timeline > li::before { left: 0; top: calc(-1 * var(--s-6) - 7px); }
}

/* pricing facts */
.facts { display: grid; grid-template-columns: 1fr; gap: var(--border); margin: var(--s-7) 0 0;
  background: var(--line); border: var(--border) solid var(--line); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts > div { display: grid; gap: var(--s-1); padding: var(--s-4); background: var(--bg); }
.facts dt { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }
.facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.facts .facts--wide { grid-column: 1 / -1; }
@media (min-width: 1024px) { .facts .facts--wide { grid-column: span 1; } }

/* steal this playbook: dashed cut-out coupon */
.steal { margin-top: var(--s-7); padding: var(--s-5); border: var(--border-strong) dashed var(--accent-text);
  background: var(--accent-bg); }
@media (min-width: 768px) { .steal { padding: var(--s-6); } }
.steal__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s-2) var(--s-4); }
.steal__head p { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-2); }
.steal ol { display: grid; gap: var(--s-3); margin: var(--s-5) 0 0; padding: 0; list-style: none; counter-reset: steal; }
.steal li { counter-increment: steal; display: grid; grid-template-columns: 3ch 1fr; gap: var(--s-2) var(--s-3);
  padding-top: var(--s-3); border-top: var(--border) solid var(--line); }
.steal li::before { content: counter(steal) "."; font-family: var(--font-mono); color: var(--accent-text); }
.steal li > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); }

/* sources */
.sources { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; font-size: var(--step--1); }
.sources li { display: grid; grid-template-columns: 4ch 1fr; gap: var(--s-3); scroll-margin-top: var(--s-6); }
.sources li:target { background: var(--accent-bg); outline: var(--border) solid var(--accent-text); outline-offset: var(--s-1); }
.sources .n { font-family: var(--font-mono); color: var(--text-3); }
.sources small { display: block; font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }
.sources a { overflow-wrap: anywhere; }

/* browse */
.browse-head { padding-block: var(--s-7) var(--s-6); border-bottom: var(--border) solid var(--line); }
.browse-intro { color: var(--text-2); line-height: 1.6; }
.filters { display: grid; gap: var(--s-5); padding-block: var(--s-6); }
@media (min-width: 1024px) { .filters { grid-template-columns: 1fr auto; align-items: end; } }
.results-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); padding-bottom: var(--s-3); }
.rank { font-family: var(--font-mono); color: var(--text-3); }
.cell-metric { display: grid; gap: var(--s-1); min-width: 96px; font-family: var(--font-mono); font-size: var(--step--1); }
@media (max-width: 767px) {
  .board tr { display: grid; grid-template-columns: 3ch 1fr 1fr; gap: var(--s-2) var(--s-3); align-items: center; }
  .board td.c-verdict { justify-self: end; }
  .board td.c-rank { grid-row: 1; }
  .board td.c-name { grid-column: 2; }
  .board td.c-verdict { grid-column: 3; grid-row: 1; }
  .board td.c-cat, .board td.c-date { grid-column: 1 / -1; }
  .board td.c-diff { grid-column: 1 / 3; }
  .board td.c-res { grid-column: 3; }
  .board td.c-cat::before, .board td.c-date::before { display: inline; margin-right: var(--s-2); }
}
/* below 360px a long name (HeadshotPro, Acquire.com) and the verdict do not fit on one line:
   the name takes the whole first row and the verdict drops under the category */
@media (max-width: 359.98px) {
  .board td.c-name { grid-column: 2 / -1; }
  .board td.c-verdict { grid-row: auto; grid-column: 1 / -1; justify-self: start; }
}
.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding-block: var(--s-6);
  font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-3); }

/* how we score */
.rules { display: grid; gap: var(--border); background: var(--line-strong); border: var(--border) solid var(--line-strong);
  margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li { counter-increment: rule; display: grid; gap: var(--s-3); padding: var(--s-5); background: var(--surface-1); }
@media (min-width: 768px) { .rules li { grid-template-columns: 4ch 200px 1fr; align-items: center; } }
.rules li::before { content: counter(rule) "."; font-family: var(--font-mono); color: var(--text-3); }
.rules code { font-size: var(--step--1); color: var(--text); }
.calc { margin: 0; padding: var(--s-5); background: var(--surface-1); border: var(--border) solid var(--line-strong);
  font-family: var(--font-mono); font-size: var(--step--1); line-height: 1.7; color: var(--text-2);
  white-space: pre-wrap; overflow-wrap: anywhere; }
.calc b { color: var(--accent-text); font-weight: 600; }
.legend { display: grid; gap: var(--s-4); grid-template-columns: 1fr; margin: 0; }
@media (min-width: 768px) { .legend { grid-template-columns: repeat(2, 1fr); } }
.legend > div { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border: var(--border) solid var(--line); }
.legend dt { display: flex; } .legend dd { margin: 0; color: var(--text-2); font-size: var(--step--1); }

.stack-sm > * + * { margin-top: var(--s-2); }
.stack-md > * + * { margin-top: var(--s-5); }
.stack-lg > * + * { margin-top: var(--s-7); }

/* ---------- 6. motion ------------------------------------------------ */
@keyframes stamp {
  from { transform: scale(1.25) rotate(-8deg); opacity: 0; }
  to   { transform: scale(1) rotate(-1deg); opacity: 1; }
}
.tag--lg { animation: stamp var(--t-enter) var(--ease-out) 150ms backwards; }
@keyframes blink { 50% { opacity: 0.35; } }
.step[data-state="active"] .step__mark::before, .progress i.active { animation: blink 1.1s steps(2, jump-none) infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .btn:hover, .card:hover { transform: none; }
}

/* small modifiers used by state panels */
.is-accent { color: var(--accent-text); }
.state-icon--queued { color: var(--twist); }
.state-icon--notfound { color: var(--nope); }
.state-icon--retry { color: var(--link); }
.ask-row--tight { margin-top: 0; }
.input--inline { flex: 1 1 220px; max-width: 360px; }
.ask .ac-list { right: auto; width: min(440px, calc(100vw - 2 * var(--gutter))); }
@media (max-width: 767px) { .table--stack td.name::before { display: none; } }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.pager > span { white-space: nowrap; }
.pager { flex-wrap: wrap; }
.board td { vertical-align: middle; }
@media (min-width: 768px) and (max-width: 1099px) { .board .c-date { display: none; } }
.rules .tag { justify-self: start; }

/* a POST button that reads as a text link (research it, try names). works without JS */
.linklike { display: inline; padding: 0; margin: 0; background: none; border: 0; cursor: pointer;
  color: var(--link); font: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; }
.linklike.mono { font-family: var(--font-mono); }
.linklike:hover { color: var(--text); text-decoration-color: var(--accent-text); }
.inline-form { display: inline; margin: 0; }
/* form error under the hero input (both themes: --nope passes 4.5:1 on --bg) */
.form-error { flex-basis: 100%; padding: var(--s-2) var(--s-3); border-left: var(--border-strong) solid var(--nope);
  background: var(--nope-bg); color: var(--nope); font-family: var(--font-mono); font-size: var(--step--1); }
.ask__input[aria-invalid="true"] { border-bottom-color: var(--nope); }
/* age note on old reports */
.note { display: inline-flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin-top: var(--s-3);
  padding: var(--s-1) var(--s-3); border: var(--border) dashed var(--line-strong);
  font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-2); }

/* headings read as sentences: capitalize the first letter, including titles built in code */
h1::first-letter, h2::first-letter, h3::first-letter { text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .ticker { overflow-x: auto; } }
.drawer__handle { display: none; }
/* home: the header sits on the blueprint sheet, one blue block like a cover page */
.is-home .site-header { background: var(--hero-bg); border-bottom-color: var(--hero-line);
  --text: var(--hero-ink); --text-2: var(--hero-ink-2); --accent-text: var(--hero-ink); --focus: oklch(0.88 0.14 95); }
.is-home .brand svg rect { opacity: 0.9; }
/* drafting frame, repeated last so it wins over the page rules above that set head padding */
@media (min-width: 1280px) {
  .report-head, .browse-head { padding-block: 0; }
}
@media (min-width: 1280px) {
  main .wrap, .site-footer .wrap { padding-inline: var(--s-7); }
}

/* product logo tile: the product's own icon on bone, so dark and light logos both read on any theme.
   no logo yet: the first letter in mono on the same tile */
.plogo { --size: 40px; flex: none; display: inline-grid; place-items: center; width: var(--size); height: var(--size);
  padding: calc(var(--size) * 0.14); background: oklch(0.975 0.008 85); border: var(--border) solid var(--line);
  overflow: hidden; }
.plogo img { width: 100%; height: 100%; object-fit: contain; }
.plogo--sm { --size: 28px; }
.plogo--lg { --size: 72px; }
.plogo--letter { padding: 0; background: var(--surface-2); border-color: var(--line-strong);
  font-family: var(--font-mono); font-weight: 600; font-size: calc(var(--size) * 0.46); color: var(--text-2); }
.card__top { align-items: center; }
.name-logo { display: inline-flex; align-items: center; gap: var(--s-3); }
.report-title { display: grid; gap: var(--s-5); justify-items: start; }
@media (min-width: 900px) { .report-title { grid-template-columns: auto 1fr; align-items: center; } }
/* product cards: logo and verdict share the top row, name and category sit under them.
   minmax(0, 1fr) keeps long words from pushing the grid past the frame */
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card__top { flex-wrap: wrap; align-items: center; row-gap: var(--s-4); }
.card__top > div { order: 2; flex-basis: 100%; }
.how li { align-content: start; }
@media (max-width: 899px) { .report-title .plogo--lg { --size: 56px; } }

/* bill of materials: parts to rebuild, under the scoring table */
.bom { margin-top: var(--s-8); }
.bom__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.bom__head p { color: var(--text-2); max-width: 70ch; }
.bom__job { display: block; margin-top: var(--s-1); font-family: var(--font-mono); font-size: var(--step--2);
  font-weight: 400; color: var(--text-3); }
.bom__use { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text); }
.bom .name { font-size: var(--step-0); }
.bom__total td { border-top: var(--border-strong) solid var(--accent-text); font-family: var(--font-mono);
  font-weight: 600; color: var(--text); }
.cost[data-cost="buy"] { border-color: var(--link); color: var(--link); }
.bom td.r { white-space: nowrap; }
.bom td.r .bom__job { white-space: normal; }
@media (max-width: 767px) {
  .bom__total td { border-top: 0; }
  .table--stack tr.bom__total { border-top: var(--border-strong) solid var(--accent-text); }
  .bom__total td:empty { display: none; }
}

/* alternatives pages */
.alt-lede { margin-top: var(--s-5); max-width: 70ch; }
.note-18 { margin-top: var(--s-4); max-width: 70ch; padding: var(--s-2) var(--s-3); border: var(--border) solid var(--nope);
  color: var(--text-2); font-size: .9rem; }
.note-18 b, .badge-18 { color: var(--nope); font-family: var(--font-mono); }
.badge-18 { font-size: .7em; vertical-align: middle; border: var(--border) solid var(--nope); padding: 0 .35em; }
.free-answer { max-width: 70ch; }
.free-groups { display: grid; gap: var(--s-7); margin-top: var(--s-6); }
.free-group h3 { margin: 0 0 var(--s-3); font-family: var(--font-mono); font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.free-items { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: var(--border) solid var(--line-strong); }
.free-items li { display: grid; gap: var(--s-2); padding: var(--s-4) 0; border-bottom: var(--border) solid var(--line); }
@media (min-width: 768px) { .free-items li { grid-template-columns: 28ch 1fr; gap: var(--s-5); align-items: start; } }
.free-items__name { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); font-weight: 600;
  text-decoration: none; }
.free-items__name:hover span { text-decoration: underline; text-decoration-color: var(--accent-text); }
.free-items p { color: var(--text-2); max-width: 75ch; padding-top: 0.15em; }
.free-group--muted .free-items p { color: var(--text-3); }
/* "know a good alternative?": a short section; the tint fills only the framed column on wide screens,
   outside the frame stays the page background */
@media (max-width: 1279.98px) { .section.suggest { padding-block: var(--s-7); background: var(--surface-1); } }
@media (min-width: 1280px) {
  .section.suggest, .section.suggest + .section { border-top: 0; }
  .section.suggest > .wrap { padding-block: var(--s-7); background: var(--surface-1);
    border-block: var(--border) solid var(--line); }
}
.suggest__q { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 0.88rem + 1.12vw, 1.8rem); font-weight: 800;
  font-stretch: 112%; line-height: 1.1; letter-spacing: -0.01em; color: var(--text); text-wrap: balance; }
.suggest__text { margin-top: var(--s-3); color: var(--text-2); font-size: var(--step-1); }
.suggest__text a { font-weight: 600; }
.alts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.alt { display: grid; gap: var(--s-5); padding: var(--s-5); border: var(--border) solid var(--line-strong);
  background: var(--surface-1); scroll-margin-top: var(--s-6); }
@media (min-width: 768px) { .alt { padding: var(--s-6); } }
.alt:target { outline: var(--border-strong) solid var(--accent-text); }
.alt__head { display: flex; gap: var(--s-4); align-items: center; }
.alt__one { color: var(--text-2); margin-top: var(--s-1); }
.alt__body { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .alt__body { grid-template-columns: 1fr 1fr; } }
.alt h4 { margin: 0 0 var(--s-2); font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.alt__body ul { margin: 0; padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.alt__facts { display: grid; gap: var(--s-3); margin: 0; }
.alt__facts > div { display: grid; grid-template-columns: 13ch 1fr; gap: var(--s-3); }
.alt__facts dt { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); padding-top: 0.2em; }
.alt__facts dd { margin: 0; }
.alt__facts small { display: block; color: var(--text-3); font-size: var(--step--1); }
.alt__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5);
  padding-top: var(--s-4); border-top: var(--border) solid var(--line); }
.alt-index { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; grid-template-columns: 1fr;
  border-top: var(--border) solid var(--line-strong); border-left: var(--border) solid var(--line-strong); }
@media (min-width: 640px) { .alt-index { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .alt-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.alt-index a { display: flex; gap: var(--s-4); align-items: center; min-height: 88px; padding: var(--s-4) var(--s-5);
  background: var(--surface-1); color: var(--text); text-decoration: none;
  border-right: var(--border) solid var(--line-strong); border-bottom: var(--border) solid var(--line-strong); }
.alt-index a:hover { background: var(--surface-2); }
.alt-index b { display: block; font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; }
.alt-index small { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }
.how li > p:only-child { color: var(--text); }
.alt-link { margin-top: var(--s-4); font-family: var(--font-mono); font-size: var(--step--1); }

/* contact page */
.contact-form { display: grid; gap: var(--s-5); max-width: 640px; }
.contact-form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.input--area { min-height: 160px; padding: var(--s-3) var(--s-4); line-height: 1.5; resize: vertical; font-family: var(--font-body); }
select.input { appearance: auto; }
.contact-form__note { color: var(--text-3); font-size: var(--step--1); }
.contact-form .form-error { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { display: grid; gap: var(--s-3); max-width: 640px; padding: var(--s-5); border: var(--border) solid var(--line-strong);
  background: var(--surface-1); }
.sent__links { font-family: var(--font-mono); font-size: var(--step--1); }

/* guides: hand-written articles (app/guides.py renders the markdown body) */
.guide-h1 { margin-top: var(--s-5); max-width: 22ch; }
.guide-draft { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border: var(--border) dashed var(--twist);
  color: var(--twist); font-family: var(--font-mono); font-size: var(--step--1); max-width: 70ch; }
.guide-layout { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); } /* a wide table scrolls, the page does not */
@media (min-width: 1024px) { .guide-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
  .guide-toc { position: sticky; top: var(--s-5); } }
.guide-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); font-size: var(--step--1); }
.guide-toc a { color: var(--text-2); text-decoration: none; }
.guide-toc a:hover { color: var(--text); text-decoration: underline; }
.guide-body { line-height: 1.65; }
.guide-body h2 { margin-top: var(--s-8); font-size: var(--step-2); scroll-margin-top: var(--s-5); }
.guide-body h3 { margin-top: var(--s-6); scroll-margin-top: var(--s-5); }
.guide-body h2 + *, .guide-body h3 + * { margin-top: var(--s-3); }
.guide-body > :first-child { margin-top: 0; }
.guide-body ul, .guide-body ol { padding-left: var(--s-5); }
.guide-body li + li { margin-top: var(--s-2); }
.guide-body blockquote { margin-inline: 0; padding: var(--s-4) var(--s-5); border-left: var(--border-strong) solid var(--accent-text);
  background: var(--surface-1); color: var(--text-2); }
.guide-body code { font-size: 0.92em; }
.issue-body pre { margin: var(--s-4) 0; padding: var(--s-4); background: var(--surface-1); border: var(--border) solid var(--line-strong);
  font-family: var(--font-mono); font-size: var(--step--1); line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.issue-body pre code { font-size: inherit; }
.issue-body :not(pre) > code { padding: 0.05em 0.35em; background: var(--surface-1); border: var(--border) solid var(--line); }
.guide-body img, .guide-body svg { max-width: 100%; height: auto; }
.guide-body table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.guide-body th { text-align: left; font-family: var(--font-mono); font-size: var(--step--2); font-weight: 500;
  color: var(--text-3); padding: var(--s-3); border-bottom: var(--border) solid var(--line-strong); }
.guide-body td { padding: var(--s-3); border-bottom: var(--border) solid var(--line); vertical-align: top; }
.guide-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: var(--border) solid var(--line); }
.guide-list a { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: var(--border) solid var(--line);
  color: var(--text); text-decoration: none; }
.guide-list a:hover b { text-decoration: underline; text-decoration-color: var(--accent-text); }
.guide-list b { font-family: var(--font-display); font-size: var(--step-1); font-weight: 680; }
.guide-list span { color: var(--text-2); max-width: 70ch; }
.guide-figure { margin: var(--s-6) 0; }
.guide-figure svg { display: block; width: 100%; max-width: 520px; height: auto; }
.guide-figure figcaption { margin-top: var(--s-3); font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-3); }

/* newsletter signup box (app/templates/_newsletter.html) and the /newsletter page */
.signup { display: grid; gap: var(--s-4); max-width: 760px; padding: var(--s-6) var(--s-5);
  border: var(--border) solid var(--line-strong); background: var(--surface-1); }
.signup--page { padding: 0; border: 0; background: none; }
.signup__text { display: grid; gap: var(--s-2); justify-items: start; }
.signup__text h2 { font-size: var(--step-2); }
.signup__text p:last-child { color: var(--text-2); }
.signup__row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.signup__row .input { flex: 1 1 240px; }
.signup__note { color: var(--text-3); font-size: var(--step--1); }
.signup .form-error { margin: 0; }
