/* Findra — site.css
   One stylesheet: design tokens (light + dark) then components.
   Visual basis: Modernist — flat, zero radius, strong 2px rules, one red accent, flush-left everything.
   System fonts only. Text colour pairs are AA (4.5:1) against --bg and --surface in both themes. */

/* ───────────── 1. Tokens ───────────── */
:root {
  color-scheme: light;
  /* surfaces */
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --surface-2: #dfdddd;
  /* text */
  --text: #201e1d;
  --text-2: #4f4b4a;
  --text-3: #645f5e;
  /* rules */
  --rule-strong: #201e1d;
  --rule: #8c8887;
  --rule-soft: #c9c6c5;
  /* accent (one colour, used sparingly) */
  --brand: #ec3013;
  --accent: #dd2b0f;
  --accent-hover: #ae1800;
  --accent-ink: #ae1800;
  --accent-tint: #fff2ef;
  --on-accent: #ffffff;
  /* verdicts: colour AND glyph AND word */
  --great-bg: #201e1d;   --great-fg: #f3f2f2;   --great-bd: #201e1d;
  --usable-bg: #f3f2f2;  --usable-fg: #201e1d;  --usable-bd: #201e1d;
  --painful-bg: #ffe0d9; --painful-fg: #7c1405; --painful-bd: #dd2b0f;
  --wont-bg: #dfdddd;    --wont-fg: #4f4b4a;    --wont-bd: #8c8887;
  /* score gauge */
  --gauge-fill: #dd2b0f;
  --gauge-track: #d2cfce;
  /* type */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --fw-heading: 800;
  --fs-xs: 0.75rem;     /* 12 — labels, eyebrows */
  --fs-sm: 0.875rem;    /* 14 — meta, captions, table */
  --fs-base: 1rem;      /* 16 — body */
  --fs-lg: 1.1875rem;   /* 19 — lead */
  --fs-h4: 1.25rem;
  --fs-h3: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
  --fs-display: clamp(2.5rem, 1.5rem + 4.6vw, 5.25rem);
  --lh-body: 1.6;
  --lh-tight: 1.08;
  --ls-tight: -0.025em;
  /* spacing (4px base) */
  --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;
  /* shape + layout */
  --radius: 0;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --tap: 44px;
  --shadow: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #171514; --surface: #211f1e; --surface-2: #2c2a29;
    --text: #f3f2f2; --text-2: #cdc9c8; --text-3: #aaa5a4;
    --rule-strong: #f3f2f2; --rule: #7a7472; --rule-soft: #3d3a39;
    --accent: #ff563c; --accent-hover: #ff9783; --accent-ink: #ff9783; --accent-tint: #3a140c; --on-accent: #171514;
    --great-bg: #f3f2f2; --great-fg: #171514; --great-bd: #f3f2f2;
    --usable-bg: #171514; --usable-fg: #f3f2f2; --usable-bd: #f3f2f2;
    --painful-bg: #4d170e; --painful-fg: #ffc4b8; --painful-bd: #ff563c;
    --wont-bg: #2c2a29; --wont-fg: #cdc9c8; --wont-bd: #7a7472;
    --gauge-fill: #ff563c; --gauge-track: #3d3a39;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f2f2; --surface: #eae9e9; --surface-2: #dfdddd;
  --text: #201e1d; --text-2: #4f4b4a; --text-3: #645f5e;
  --rule-strong: #201e1d; --rule: #8c8887; --rule-soft: #c9c6c5;
  --accent: #dd2b0f; --accent-hover: #ae1800; --accent-ink: #ae1800; --accent-tint: #fff2ef; --on-accent: #ffffff;
  --great-bg: #201e1d; --great-fg: #f3f2f2; --great-bd: #201e1d;
  --usable-bg: #f3f2f2; --usable-fg: #201e1d; --usable-bd: #201e1d;
  --painful-bg: #ffe0d9; --painful-fg: #7c1405; --painful-bd: #dd2b0f;
  --wont-bg: #dfdddd; --wont-fg: #4f4b4a; --wont-bd: #8c8887;
  --gauge-fill: #dd2b0f; --gauge-track: #d2cfce;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171514; --surface: #211f1e; --surface-2: #2c2a29;
  --text: #f3f2f2; --text-2: #cdc9c8; --text-3: #aaa5a4;
  --rule-strong: #f3f2f2; --rule: #7a7472; --rule-soft: #3d3a39;
  --accent: #ff563c; --accent-hover: #ff9783; --accent-ink: #ff9783; --accent-tint: #3a140c; --on-accent: #171514;
  --great-bg: #f3f2f2; --great-fg: #171514; --great-bd: #f3f2f2;
  --usable-bg: #171514; --usable-fg: #f3f2f2; --usable-bd: #f3f2f2;
  --painful-bg: #4d170e; --painful-fg: #ffc4b8; --painful-bd: #ff563c;
  --wont-bg: #2c2a29; --wont-fg: #cdc9c8; --wont-bd: #7a7472;
  --gauge-fill: #ff563c; --gauge-track: #3d3a39;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ───────────── 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); font-size: var(--fs-base); line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-weight: var(--fw-heading); line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight); margin: 0 0 var(--s-3); text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0 0 var(--s-4); }
p, li { text-wrap: pretty; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--text); text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
hr, .hr { height: 2px; border: 0; margin: var(--s-6) 0; background: var(--rule); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
code, kbd { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--surface); padding: 1px 5px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--accent); color: var(--on-accent); padding: var(--s-3) var(--s-4); font-weight: 700; }
.skip:focus { left: var(--s-4); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────────── 3. Layout ───────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.page { padding-block: var(--s-5) var(--s-8); }
.section { border-top: 2px solid var(--rule); padding-block: var(--s-7); }
.section-strong { border-top: 2px solid var(--rule-strong); }
.section:first-child { border-top: 0; }
.section-head { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.section-head p { margin: 0; color: var(--text-2); max-width: 60ch; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3); }
.grid { display: grid; gap: var(--s-5); }
.grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Ruled grid: cells separated by visible 2px lines — the Modernist signature */
.ruled { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--rule-strong); }
.ruled > * { padding: var(--s-5) 0; border-bottom: 2px solid var(--rule); }
@media (min-width: 640px) {
  .ruled-2, .ruled-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruled-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ruled-3 > *, .ruled-2 > *, .ruled-4 > * { padding: var(--s-5); border-left: 2px solid var(--rule); margin-left: -2px; }
  .ruled-2 > *:nth-child(2n+1), .ruled-3 > *:nth-child(3n+1), .ruled-4 > *:nth-child(2n+1) { padding-left: 0; border-left: 0; margin-left: 0; }
}
@media (min-width: 960px) {
  .ruled-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ruled-4 > *:nth-child(2n+1) { padding-left: var(--s-5); border-left: 2px solid var(--rule); margin-left: -2px; }
  .ruled-4 > *:nth-child(4n+1) { padding-left: 0; border-left: 0; margin-left: 0; }
}
.split { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); }
  .split-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-side { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .split-main { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.measure { max-width: 68ch; }

/* ───────────── 4. Type helpers ───────────── */
.display { font-size: var(--fs-display); font-weight: var(--fw-heading); line-height: 1; letter-spacing: -0.035em; margin: 0 0 var(--s-5); text-wrap: balance; }
.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--text-2); max-width: 60ch; }
.kicker { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: var(--s-2); }
.label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.meta-line { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.meta-line > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; background: var(--rule); vertical-align: middle; margin-right: var(--s-4); }

/* ───────────── 5. Header + nav ───────────── */
.banner-demo { background: var(--surface); border-bottom: 1px solid var(--rule-soft); font-size: var(--fs-sm); color: var(--text-2); }
.banner-demo .container { padding-block: var(--s-2); }
.banner-demo strong { color: var(--text); }
.site-header { border-bottom: 2px solid var(--rule-strong); background: var(--bg); position: relative; z-index: 20; }
.site-header .container { display: flex; align-items: center; gap: var(--s-5); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.375rem; letter-spacing: -0.04em; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-mark { width: 18px; height: 18px; background: var(--brand); flex: none; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s-1); }
.nav a, .nav summary { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); padding: 0 var(--s-2); color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.nav a:hover, .nav summary:hover, .nav a[aria-current="page"] { color: var(--accent-ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after, .m-menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 4px; }
.nav details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.dropdown { position: relative; }
.dropdown-panel { position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px; background: var(--bg); border: 2px solid var(--rule-strong); box-shadow: var(--shadow); padding: var(--s-2) 0; }
.dropdown-panel ul { display: block; }
.dropdown-panel a { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: var(--s-2) var(--s-4); min-height: 0; }
.dropdown-panel a span { font-weight: 400; color: var(--text-3); font-size: var(--fs-xs); }
.dropdown-panel li + li { border-top: 1px solid var(--rule-soft); }
.btn.header-cta { display: none; }
@media (min-width: 1100px) {
  .nav { display: block; }
  .btn.header-cta { display: inline-flex; }
  .m-menu { display: none; }
}
/* mobile menu — no JS, native <details> */
.m-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 var(--s-4); border: 2px solid var(--rule-strong); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; }
.m-menu > summary::-webkit-details-marker { display: none; }
.m-menu[open] > summary { background: var(--text); color: var(--bg); }
.m-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 2px solid var(--rule-strong); box-shadow: var(--shadow); max-height: calc(100vh - 64px); overflow: auto; }
.m-panel ul { list-style: none; margin: 0; padding: 0; }
.m-panel > ul > li { border-top: 1px solid var(--rule-soft); }
.m-panel a { display: flex; align-items: center; min-height: 52px; padding: 0 var(--gutter); color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.0625rem; }
.m-panel a[aria-current="page"] { color: var(--accent-ink); box-shadow: inset 4px 0 0 var(--accent); }
.m-panel .m-sub a { min-height: 44px; font-weight: 400; font-size: var(--fs-base); padding-left: calc(var(--gutter) + var(--s-4)); }
.m-panel .m-label { display: block; padding: var(--s-4) var(--gutter) var(--s-1); }
.m-panel .m-cta { padding: var(--s-4) var(--gutter) var(--s-5); border-top: 1px solid var(--rule-soft); }

.crumbs { font-size: var(--fs-sm); color: var(--text-3); margin: 0 0 var(--s-5); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--rule); }
.crumbs a { color: var(--text-2); }

/* ───────────── 6. Footer ───────────── */
.site-footer { border-top: 2px solid var(--rule-strong); background: var(--surface); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: var(--s-7) var(--s-6); }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-grid > :first-child { grid-column: auto; } }
.footer-grid h2 { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-1); }
.footer-grid a { color: var(--text); text-decoration: none; display: inline-block; padding-block: 4px; }
.footer-grid a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-base { border-top: 1px solid var(--rule); padding-block: var(--s-4) var(--s-6); color: var(--text-2); display: grid; gap: var(--s-2); }
.footer-base p { margin: 0; max-width: 90ch; }

/* ───────────── 7. Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: var(--s-3);
  min-height: var(--tap); padding: 10px var(--s-5); border: 2px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: var(--fs-base); font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: left; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn .arr { margin-left: auto; padding-left: var(--s-4); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--rule-strong); }
.btn-secondary:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--accent-ink); padding-inline: 0; text-decoration: underline; text-underline-offset: 4px; }
.btn-ghost:hover { background: transparent; border-color: transparent; color: var(--text); }
.btn-sm { min-height: 36px; padding: 6px var(--s-4); font-size: var(--fs-sm); }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-direction: column; gap: var(--s-3); margin: var(--s-5) 0 var(--s-3); }
@media (min-width: 640px) { .actions { flex-direction: row; flex-wrap: wrap; } }
.disclosure { font-size: var(--fs-sm); color: var(--text-3); margin: 0; max-width: 70ch; }
.on-accent .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }

/* ───────────── 8. Verdict chips, badges, tags ───────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border: 1.5px solid; font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; white-space: nowrap; }
.chip .glyph { font-size: 0.85em; width: 1em; text-align: center; }
.chip-great { background: var(--great-bg); color: var(--great-fg); border-color: var(--great-bd); }
.chip-usable { background: var(--usable-bg); color: var(--usable-fg); border-color: var(--usable-bd); }
.chip-painful { background: var(--painful-bg); color: var(--painful-fg); border-color: var(--painful-bd); }
.chip-wont { background: var(--wont-bg); color: var(--wont-fg); border-color: var(--wont-bd); border-style: dashed; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1.5px solid var(--rule-strong); color: var(--text); white-space: nowrap; }
.badge-stock { border-color: var(--text); background: var(--text); color: var(--bg); }
.badge-stock::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.badge-accent { border-color: var(--accent); color: var(--accent-ink); }
.tier { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--rule-strong); font-weight: 900; font-size: var(--fs-sm); color: var(--text); text-decoration: none; }
a.tier:hover { background: var(--text); color: var(--bg); }

/* ───────────── 9. Score gauge (0–100) ───────────── */
.score { display: flex; align-items: baseline; gap: 2px; line-height: 0.9; font-variant-numeric: tabular-nums; }
.score-num { font-size: clamp(4rem, 3rem + 5vw, 7rem); font-weight: 900; letter-spacing: -0.05em; }
.score-of { font-size: var(--fs-h3); font-weight: 700; color: var(--text-3); }
.gauge { --s: 0; height: 14px; width: 100%;
  background: linear-gradient(90deg, var(--gauge-fill) calc(var(--s) * 1%), var(--gauge-track) 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 3px), transparent 0 10%);
          mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 3px), transparent 0 10%); }
.gauge-scale { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.score-card { border: 2px solid var(--rule-strong); padding: var(--s-5); display: grid; gap: var(--s-3); background: var(--bg); }
.score-card .label { margin: 0; }
.mini-score { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-score .gauge { width: 64px; height: 8px; -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 1px), transparent 0 10%); mask: repeating-linear-gradient(90deg, #000 0 calc(10% - 1px), transparent 0 10%); }

/* ───────────── 10. Tables ───────────── */
.table-wrap { width: 100%; overflow-x: auto; margin-bottom: var(--s-4); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table caption { caption-side: bottom; text-align: left; padding-top: var(--s-3); color: var(--text-3); font-size: var(--fs-sm); }
.table th, .table td { padding: var(--s-3) var(--s-3); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--rule-soft); }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table thead th { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 700; border-bottom: 2px solid var(--rule-strong); white-space: nowrap; }
.table tbody th { font-weight: 700; font-size: var(--fs-base); }
.table tbody th a { color: var(--text); text-decoration: none; }
.table tbody th a:hover { color: var(--accent-ink); text-decoration: underline; }
.table tbody tr:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.table .num { text-align: right; }
.table-lg td, .table-lg th { padding-block: var(--s-4); }
.sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-transform: inherit; letter-spacing: inherit; }
.sort::after { content: "↕"; font-size: 1.1em; color: var(--rule); }
th[aria-sort="ascending"] .sort::after { content: "↑"; color: var(--accent-ink); }
th[aria-sort="descending"] .sort::after { content: "↓"; color: var(--accent-ink); }
th[aria-sort] .sort { color: var(--text); }
.sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rank { font-weight: 900; font-size: var(--fs-h4); color: var(--text-3); width: 2.5rem; }
tr.is-top .rank { color: var(--accent-ink); }
/* Stacked table on small screens: each row becomes a block, cells carry data-label */
@media (max-width: 719px) {
  .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 th, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border-bottom: 2px solid var(--rule); padding: var(--s-3) 0; }
  .table-stack tbody tr:first-child { border-top: 2px solid var(--rule-strong); }
  .table-stack th, .table-stack td { border: 0; padding: 4px 0; text-align: left; }
  .table-stack td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
  .table-stack td[data-label]::before { content: attr(data-label); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
  .table-stack .rank { width: auto; }
}

/* ───────────── 11. Cards ───────────── */
.card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); background: var(--surface); border-radius: var(--radius); }
.card > :last-child { margin-bottom: 0; }
.card-title { font-size: var(--fs-h4); font-weight: var(--fw-heading); letter-spacing: -0.01em; line-height: 1.2; margin: 0; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent-ink); text-decoration: underline; }
.card-body { color: var(--text-2); margin: 0; flex: 1; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--rule); font-size: var(--fs-sm); }
.card-outline { background: transparent; border: 2px solid var(--rule-strong); }
.card-link { position: relative; }
.card-link:hover { background: var(--surface-2); }
.laptop-card .row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); }
.laptop-card .big { font-size: 2.75rem; font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.laptop-card .big small { font-size: var(--fs-sm); font-weight: 700; color: var(--text-3); letter-spacing: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-4); margin: 0; font-size: var(--fs-sm); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Facts strip (scorecard "In real life") */
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--rule-strong); }
.facts li { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 1px solid var(--rule); display: grid; gap: 2px; }
.facts li:nth-child(2n) { padding-left: var(--s-4); border-left: 1px solid var(--rule); }
.facts .fact-v { font-size: var(--fs-h3); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.facts .fact-l { font-size: var(--fs-sm); color: var(--text-2); }
@media (min-width: 960px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li { padding-left: var(--s-4); border-left: 1px solid var(--rule); }
  .facts li:first-child { padding-left: 0; border-left: 0; }
}

/* Buy it if / Skip it if */
.two-col { display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); border: 2px solid var(--rule-strong); }
.two-col > * { padding: var(--s-5); }
.two-col > * + * { border-top: 2px solid var(--rule-strong); }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col > * + * { border-top: 0; border-left: 2px solid var(--rule-strong); } }
.two-col h2, .two-col h3 { font-size: var(--fs-h4); display: flex; align-items: center; gap: var(--s-2); }
.two-col p { margin: 0; color: var(--text-2); }
.mark { display: inline-grid; place-items: center; width: 24px; height: 24px; font-size: 14px; font-weight: 900; flex: none; }
.mark-yes { background: var(--text); color: var(--bg); }
.mark-no { background: var(--painful-bg); color: var(--painful-fg); border: 1.5px solid var(--painful-bd); }

/* Price row */
.price-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--rule-strong); border-bottom: 2px solid var(--rule-strong); }
.price-row > div { padding: var(--s-4) var(--s-4) var(--s-4) 0; display: grid; gap: 2px; align-content: start; }
.price-row > div + div { padding-left: var(--s-4); border-left: 1px solid var(--rule); }
.price-row > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
@media (min-width: 720px) { .price-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .price-row > div:nth-child(3) { grid-column: auto; border-left: 1px solid var(--rule); padding-left: var(--s-4); border-top: 0; } }
.price-v { font-size: var(--fs-h3); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.price-l { font-size: var(--fs-sm); color: var(--text-2); }

/* Collapsed technical details + FAQ */
details.tech, details.faq-item { border-top: 2px solid var(--rule-strong); border-bottom: 2px solid var(--rule-strong); }
details.faq-item + details.faq-item { border-top: 0; }
details.faq-item { border-bottom-width: 1px; border-bottom-color: var(--rule); }
details.tech > summary, details.faq-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 60px; cursor: pointer; font-weight: 800; font-size: var(--fs-h4); letter-spacing: -0.01em; }
details.faq-item > summary { font-size: var(--fs-base); font-weight: 700; min-height: 56px; }
details > summary::-webkit-details-marker { display: none; }
details.tech > summary::after, details.faq-item > summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; flex: none; }
details.tech[open] > summary::after, details.faq-item[open] > summary::after { content: "−"; }
details.tech > summary:hover, details.faq-item > summary:hover { color: var(--accent-ink); }
.tech-body { padding-bottom: var(--s-5); }
.faq-item > div { padding-bottom: var(--s-4); color: var(--text-2); max-width: 68ch; }
.faq-item > div p:last-child { margin: 0; }

/* ───────────── 12. Forms ───────────── */
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field > label, .field > .label-text, fieldset > legend { font-size: var(--fs-sm); font-weight: 700; color: var(--text); padding: 0; }
.hint { font-size: var(--fs-sm); color: var(--text-3); margin: 0; }
.input, .select, textarea.input {
  width: 100%; min-height: var(--tap); padding: 10px var(--s-3); font: inherit; font-size: var(--fs-base);
  color: var(--text); background: var(--bg); border: 2px solid var(--rule); border-radius: var(--radius); caret-color: var(--accent);
}
.input:hover, .select:hover { border-color: var(--text-3); }
.input:focus-visible, .select:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
textarea.input { min-height: 120px; resize: vertical; }
.select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
fieldset { border: 0; margin: 0 0 var(--s-4); padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: 6px; }
.check { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-4); border: 2px solid var(--rule); cursor: pointer; font-size: var(--fs-sm); font-weight: 700; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check:hover { border-color: var(--text); }
.check:has(input:checked) { background: var(--text); color: var(--bg); border-color: var(--text); }
.check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-inline { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-sm); cursor: pointer; }
.check-inline input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form-row { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inline-form { display: flex; flex-direction: column; gap: var(--s-2); }
@media (min-width: 560px) { .inline-form { flex-direction: row; } .inline-form .input { flex: 1; } }
.filters { display: grid; gap: var(--s-4); padding: var(--s-5) 0; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-5); }
@media (min-width: 900px) { .filters { grid-template-columns: auto auto minmax(180px, 240px) 1fr; align-items: end; } .filters fieldset, .filters .field { margin: 0; } }
.result-count { font-size: var(--fs-sm); color: var(--text-2); margin: 0; align-self: center; justify-self: end; }

/* ───────────── 13. Page patterns ───────────── */
.hero { padding-block: var(--s-7) var(--s-8); }
.hero .lead { margin-bottom: var(--s-5); }
.hero-grid { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }
.poster { background: var(--accent); color: var(--on-accent); }
.poster .container { padding-block: var(--s-8); display: grid; gap: var(--s-5); }
.poster h2 { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.04em; margin: 0; max-width: 16ch; }
.poster p { font-size: var(--fs-lg); max-width: 52ch; margin: 0; }
.poster a:not(.btn) { color: var(--on-accent); }
.band { background: var(--surface); }
.band .container { padding-block: var(--s-7); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--rule-strong); }
.steps li { counter-increment: step; padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 56px 1fr; gap: var(--s-3); }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: var(--fs-h3); font-weight: 900; color: var(--accent-ink); line-height: 1; }
.steps h3 { font-size: var(--fs-h4); margin-bottom: var(--s-1); }
.steps p { margin: 0; color: var(--text-2); }
@media (min-width: 960px) {
  .steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps-row li { grid-template-columns: 1fr; padding: var(--s-5); border-bottom: 0; border-left: 1px solid var(--rule); }
  .steps-row li:first-child { padding-left: 0; border-left: 0; }
}
.package { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); border: 2px solid var(--rule-strong); background: var(--bg); }
.package h3 { margin: 0; }
.package ul { list-style: none; padding: 0; margin: 0; flex: 1; border-top: 1px solid var(--rule); }
.package li { padding: var(--s-2) 0 var(--s-2) 24px; border-bottom: 1px solid var(--rule-soft); position: relative; }
.package li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 10px; height: 2px; background: var(--accent); }
.package-featured { border-color: var(--accent); box-shadow: inset 0 6px 0 var(--accent); }
.ph { position: relative; background: var(--surface-2); background-image: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--text) 6%, transparent) 14px 15px); display: grid; place-items: end start; padding: var(--s-3); aspect-ratio: 4 / 3; color: var(--text-3); font-family: var(--font-mono); font-size: var(--fs-xs); }
.ph-wide { aspect-ratio: 16 / 9; }
.ph-square { aspect-ratio: 1; }
.grayscale { filter: grayscale(1) contrast(1.08); }
.list-rows { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--rule-strong); }
.list-rows > li { border-bottom: 1px solid var(--rule); }
.list-rows a.row-link { display: grid; gap: var(--s-1); padding: var(--s-4) 0; color: var(--text); text-decoration: none; }
@media (min-width: 720px) { .list-rows a.row-link { grid-template-columns: 140px 1fr auto; gap: var(--s-5); align-items: baseline; } }
.list-rows a.row-link:hover h3 { color: var(--accent-ink); text-decoration: underline; }
.list-rows h3 { font-size: var(--fs-h4); margin: 0; }
.list-rows p { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.callout { border-left: 0; border-top: 2px solid var(--accent); background: var(--accent-tint); padding: var(--s-4) var(--s-5); }
.callout p:last-child { margin: 0; }
.notice { border: 2px solid var(--rule-strong); padding: var(--s-4) var(--s-5); }
.notice p:last-child { margin: 0; }
.tabs-tier { display: flex; gap: 0; border: 2px solid var(--rule-strong); width: max-content; max-width: 100%; overflow-x: auto; }
.tabs-tier a { display: grid; padding: var(--s-2) var(--s-4); min-width: 88px; color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.tabs-tier a + a { border-left: 2px solid var(--rule-strong); }
.tabs-tier a strong { font-size: var(--fs-h4); }
.tabs-tier a[aria-current="page"] { background: var(--text); color: var(--bg); }
.tabs-tier a:not([aria-current]):hover { background: var(--surface); }
.toc { font-size: var(--fs-sm); border-top: 2px solid var(--rule-strong); padding-top: var(--s-3); }
.toc ol { padding-left: 1.2em; margin: 0; display: grid; gap: var(--s-1); }
.toc a { color: var(--text); }
@media (min-width: 960px) { .sticky { position: sticky; top: var(--s-5); } }
.prose { max-width: 68ch; font-size: 1.0625rem; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--s-7); padding-top: var(--s-4); border-top: 2px solid var(--rule); }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: var(--s-2); }
.prose blockquote { margin: var(--s-5) 0; padding: var(--s-3) 0 var(--s-3) var(--s-5); border-left: 4px solid var(--accent); font-size: var(--fs-lg); font-weight: 600; }
.vs { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: end; }
@media (min-width: 720px) { .vs { grid-template-columns: 1fr auto 1fr auto; } }
.vs-word { font-weight: 900; font-size: var(--fs-h4); color: var(--text-3); padding-bottom: 10px; }
.compare-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 2px solid var(--rule-strong); }
.compare-head > div { padding: var(--s-5) var(--s-4) var(--s-5) 0; display: grid; gap: var(--s-3); align-content: start; }
.compare-head > div + div { padding-left: var(--s-4); border-left: 2px solid var(--rule-strong); }
.winner { box-shadow: inset 0 6px 0 var(--accent); }
.cmp-table td { width: 50%; }
.cmp-table .task-row th { padding-top: var(--s-4); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); border-bottom: 0; padding-bottom: 0; }
.cmp-cell { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.swatch-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.swatch { border: 1px solid var(--rule); }
.swatch div:first-child { height: 64px; }
.swatch div:last-child { padding: var(--s-2); font-size: var(--fs-xs); font-family: var(--font-mono); background: var(--bg); }
.ds-theme-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border: 2px solid var(--rule-strong); }
@media (min-width: 900px) { .ds-theme-pair { grid-template-columns: 1fr 1fr; } }
.ds-theme-pair > div { padding: var(--s-5); background: var(--bg); color: var(--text); }
@media print {
  .site-header, .site-footer, .banner-demo, .actions, .m-menu { display: none; }
  details.tech { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* draft banner (build-time only; shares the demo banner look) */
.banner-draft { background: var(--surface); border-bottom: 1px solid var(--rule-soft); font-size: var(--fs-sm); color: var(--text-2); }
.banner-draft .container { padding-block: var(--s-2); }
.banner-draft strong { color: var(--text); }

/* progressive enhancement helpers (site.js adds .js to <html>) */
.js-only { display: none; }
.js .js-only { display: block; }
.chip-info { background: var(--surface); color: var(--text); border-color: var(--rule); }
.anchor { margin-left: 0.4em; color: var(--text-3); text-decoration: none; opacity: 0; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }

/* ───────────── Finder ───────────── */
.finder-legend { margin-bottom: var(--s-5); }
.finder-legend ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.finder-filters { display: grid; gap: var(--s-3) var(--s-4); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: var(--s-4) 0; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-5); }
.finder-filters .field { margin: 0; }
.js .finder-filters { display: grid; }
.finder-filters p { grid-column: 1 / -1; margin: 0; }
#finder-results { margin-bottom: var(--s-6); }
.table .chip { white-space: normal; }
