/* Shared sitegen stylesheet: one design system for every content site.
   A site's colour tokens (and anything else of its own) come from its site.yaml `extra_css`, loaded
   after this file. Per-site dark tokens must use the same selector as below,
   `@media (prefers-color-scheme: dark) { :root:not(.light-only) { ... } }`, so light-only sites stay light.
   Fonts are self-hosted (CSP font-src 'self'); see engine/sitegen/fetch_fonts.py. No framework. */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin-wght-normal-5.3.0.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin-wght-italic-5.3.0.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-greek-wght-normal-5.3.0.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Arial, resized to Inter's metrics, while Inter loads: less layout shift on the swap. */
@font-face {
  font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica");
  size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --bg: #fcfcfd;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --surface-3: #eceff4;
  --zebra: #fafbfc;
  --text: #0f172a;
  --heading: #0b1222;
  --muted: #596273;
  --border: #e3e7ee;
  --border-strong: #cdd3dd;
  /* Accent (StatementBench's blue is the default; other sites override these in their extra_css). */
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eef3ff;
  --accent-ring: #1d4ed833;
  --accent-text: #ffffff;
  --link: #1d4ed8;
  --link-underline: #1d4ed855;
  --glow: #3b82f626;
  --grid-line: #0f172a0b;
  /* Status */
  --ok-bg: #e8f6ee; --ok-fg: #166534;
  --review-bg: #fff5db; --review-fg: #7a4b00; --review-row: #fffaeb;
  --info-bg: #eef3fb; --info-fg: #1e3a5f;
  --error-fg: #b42318; --error-bg: #fdecea;
  /* Type, shape, depth */
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: var(--sans);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 72rem;
  --measure: 44rem;
  --header-bg: rgb(252 252 253 / 0.82);
  --shadow-sm: 0 1px 2px rgb(15 23 42 / 0.05), 0 1px 3px rgb(15 23 42 / 0.04);
  --shadow-md: 0 1px 2px rgb(15 23 42 / 0.04), 0 6px 16px -4px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 2px 4px rgb(15 23 42 / 0.04), 0 18px 36px -10px rgb(15 23 42 / 0.16);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light-only) {
    --bg: #0c0f14;
    --surface: #141821;
    --surface-2: #1b202b;
    --surface-3: #232a37;
    --zebra: #171b25;
    --text: #e6e9ef;
    --heading: #f3f5f9;
    --muted: #9aa3b2;
    --border: #262c38;
    --border-strong: #353d4c;
    --accent: #7aa2ff;
    --accent-hover: #a5c0ff;
    --accent-soft: #16213d;
    --accent-ring: #7aa2ff40;
    --accent-text: #0b1226;
    --link: #8fb1ff;
    --link-underline: #8fb1ff66;
    --glow: #7aa2ff24;
    --grid-line: #ffffff0a;
    --ok-bg: #11291b; --ok-fg: #86efac;
    --review-bg: #33280f; --review-fg: #fcd34d; --review-row: #2a220e;
    --info-bg: #17243a; --info-fg: #b4ccec;
    --error-fg: #ff9a8a; --error-bg: #3a1714;
    --header-bg: rgb(12 15 20 / 0.78);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 20px -6px rgb(0 0 0 / 0.45);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 20px 40px -12px rgb(0 0 0 / 0.6);
  }
}
:root.light-only { color-scheme: light; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  position: relative;
  isolation: isolate;
  background: radial-gradient(60rem 34rem at 85% -12rem, var(--glow), transparent 70%) no-repeat, var(--bg);
  font: 16px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--link-underline); text-underline-offset: 0.2em; transition: text-decoration-color 0.15s, color 0.15s; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-ring); }
img, svg { max-width: 100%; height: auto; }
code, pre, .mono { font-family: var(--mono); font-size: 0.875em; letter-spacing: 0; }
pre { background: var(--surface-2); border: 1px solid var(--border); padding: 0.9rem 1.1rem; border-radius: var(--radius); overflow-x: auto; line-height: 1.55; }
code { background: var(--surface-2); border: 1px solid var(--border); padding: 0.08em 0.35em; border-radius: 6px; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; background: var(--accent); color: var(--accent-text); padding: 0.5rem 1rem; border-radius: var(--radius); z-index: 50; }
.skip-link:focus { left: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 48rem) { .wrap { padding-left: 24px; padding-right: 24px; } }

/* ---------------------------------------------------------------- header */
.site-header { position: relative; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--border); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--heading); text-decoration: none; }
.brand-mark { width: 1.75rem; height: 1.75rem; flex: none; border-radius: 25%; box-shadow: var(--shadow-sm); }
.nav-list { list-style: none; display: flex; gap: 0.15rem; margin: 0; padding: 0; font-size: 0.9375rem; }
.nav-list a { display: block; padding: 0.4rem 0.75rem; border-radius: 999px; color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 0.15s, background-color 0.15s; }
.nav-list a:hover { color: var(--text); background: var(--surface-2); }
.nav-list a[aria-current="page"] { color: var(--link); background: var(--accent-soft); }
@media (min-width: 48rem) {
  .site-header { position: sticky; top: 0; }
  html { scroll-padding-top: 5rem; }
  .nav-list { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 47.99rem) {
  .header-inner { padding-top: 0.75rem; min-height: 0; }
  .site-nav { width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-list { flex-wrap: nowrap; width: max-content; padding: 0.35rem 1.5rem 0.6rem 0; margin-left: -0.75rem; }
}

/* ---------------------------------------------------------------- page structure and prose */
main { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 4rem; overflow-wrap: break-word; }
.prose > :where(p, ul, ol, dl, h2, h3, h4, blockquote, details, .md-twin, .footnote) { max-width: var(--measure); }
.prose > :where(p, ul, ol, dl, blockquote) { font-size: 1.0625rem; line-height: 1.7; }
.prose li { margin: 0.3rem 0; }
.prose li::marker { color: var(--muted); }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--heading); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3rem); line-height: 1.1; margin: 0.35rem 0 1rem; letter-spacing: -0.032em; font-weight: 750; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); line-height: 1.25; margin: 3rem 0 0.85rem; letter-spacing: -0.024em; font-weight: 700; }
h3 { font-size: 1.1875rem; line-height: 1.35; margin: 2rem 0 0.5rem; letter-spacing: -0.016em; font-weight: 650; }
h4 { font-size: 1rem; line-height: 1.4; margin: 1.5rem 0 0.4rem; letter-spacing: -0.01em; font-weight: 650; }
strong { font-weight: 650; color: var(--heading); }
.page-header { max-width: 48rem; margin-bottom: 2.25rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.kicker { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--link); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.kicker::before { content: ""; width: 1.25rem; height: 2px; border-radius: 2px; background: currentColor; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--muted); margin: 0 0 1.1rem; }
.byline { font-size: 0.875rem; color: var(--muted); margin: 0.75rem 0 0; }
.byline a { color: var(--text); font-weight: 600; text-decoration: none; }
.byline a:hover { color: var(--link); }
.disclosure { font-size: 0.875rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--border-strong); padding: 0.7rem 1rem; border-radius: var(--radius); margin: 1rem 0 0; }
.disclosure[data-disclosure="paid"] { border-left-color: var(--review-fg); }
.paid-label { font-size: 0.85em; color: var(--muted); white-space: nowrap; }
.md-twin { font-size: 0.8125rem; color: var(--muted); margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
blockquote { margin: 1.5rem 0; padding: 0.15rem 0 0.15rem 1.1rem; border-left: 3px solid var(--accent); color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.callout { background: var(--info-bg); color: var(--info-fg); padding: 0.9rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--border); }
.footnote { font-size: 0.875rem; color: var(--muted); margin-top: 3rem; }
.footnote hr { margin: 0 0 1rem; }
dl dt { font-weight: 600; }
mark { background: var(--review-bg); color: var(--review-fg); border-radius: 3px; padding: 0 0.15em; }
del { color: var(--error-fg); }
ins { color: var(--ok-fg); text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- home */
/* A faint grid behind the hero, positioned against <body> so it spans the page without 100vw. */
.page-home::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 46rem; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 0%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse 75% 70% at 70% 0%, #000 25%, transparent 72%); }
.hero { max-width: 50rem; padding: clamp(0.5rem, 3vw, 2.5rem) 0 0; margin-bottom: 3rem; border-bottom: 0; }
.hero h1 { font-size: clamp(2.3rem, 1.25rem + 4.2vw, 3.9rem); line-height: 1.04; letter-spacing: -0.04em; margin-top: 0.75rem; }
.hero .lede { font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); max-width: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }
.hero-actions .button-link { min-height: 3rem; padding: 0.65rem 1.3rem; font-size: 1rem; }
.tool-cards { margin: 0 0 3.5rem; }
.tool-cards > h2 { margin: 0 0 1.25rem; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; max-width: none !important; }
.card { position: relative; display: flex; flex-direction: column; gap: 0.45rem; margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 1.25rem 1.3rem 1.15rem; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card h3 { margin: 0; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.016em; }
.card h3 a { color: var(--heading); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.card p { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }
.card .card-kicker { color: var(--link); font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.card-cta { margin-top: auto; padding-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.35rem; color: var(--link); font-size: 0.875rem; font-weight: 600; }
.card-cta svg { width: 1rem; height: 1rem; transition: transform 0.2s ease; }
.card:hover .card-cta svg { transform: translateX(3px); }
.home-body > h2:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.25rem 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.prose > table { display: block; overflow-x: auto; max-width: 100%; margin: 1.25rem 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
caption { text-align: left; padding: 0.7rem 0.9rem; color: var(--muted); font-size: 0.8125rem; }
th, td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); color: var(--muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
tbody tr:nth-child(even) > * { background: var(--zebra); }
tbody tr:hover > * { background: var(--surface-2); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--heading); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table.compact th, .data-table.compact td { padding: 0.4rem 0.65rem; }
td.mono { font-family: var(--mono); font-size: 0.8rem; }
.muted { color: var(--muted); }
tbody tr[data-status="review"] > * { background: var(--review-row); }
tbody tr[data-status="review"] > td:last-child { color: var(--review-fg); font-weight: 600; }
tbody tr[data-status="no_fit"] > * { color: var(--muted); }

/* ---------------------------------------------------------------- tools */
.tool { position: relative; font-size: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 1.35rem 1rem 1.5rem; margin: 2rem 0 2.75rem; box-shadow: var(--shadow-md); }
.tool::before { content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--accent); }
@media (min-width: 40rem) { .tool { padding: 1.6rem 1.75rem 1.75rem; } }
.tool-title { margin-top: 0; font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.45rem); }
.tool-privacy { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8125rem; font-weight: 600; color: var(--ok-fg); background: var(--ok-bg); padding: 0.3rem 0.8rem 0.3rem 0.65rem; border-radius: 999px; margin: 0 0 1rem; }
.tool-privacy::before { content: ""; flex: none; width: 0.9rem; height: 0.9rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.tool .notice, .notice { font-size: 0.9rem; background: var(--info-bg); color: var(--info-fg); padding: 0.65rem 0.95rem; border-radius: var(--radius); }
.step-title { font-size: 1.0625rem; margin: 1.5rem 0 0.6rem; }
.tool-step[hidden] { display: none; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 1.6rem 1rem; text-align: center; cursor: pointer; background: var(--surface-2); transition: border-color 0.15s, background-color 0.15s; }
.drop::before { content: ""; width: 1.75rem; height: 1.75rem; margin-bottom: 0.2rem; background: var(--link);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4m0 0L7.5 8.5M12 4l4.5 4.5'/%3E%3Cpath d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4m0 0L7.5 8.5M12 4l4.5 4.5'/%3E%3Cpath d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat; }
.drop:hover, .drop.dragging, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop-main { font-weight: 650; color: var(--link); }
.drop-sub { font-size: 0.875rem; color: var(--muted); }
.drop input[type="file"] { margin-top: 0.6rem; max-width: 100%; font-size: 0.85rem; color: var(--muted); }
input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 0.75rem; padding: 0.35rem 0.85rem; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.85rem 1rem; margin: 0.85rem 0; align-items: end; }
.field-grid label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.875rem; font-weight: 550; }
.field-grid label.check { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: 400; }
.field-grid.iqc-pair { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: stretch; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 1rem 0.85rem; margin: 0.85rem 0; }
fieldset.inline label { display: block; margin: 0.3rem 0; }
legend { font-weight: 650; padding: 0 0.3rem; font-size: 0.9375rem; }
input, select, textarea, button { font: inherit; color: inherit; letter-spacing: inherit; }
input[type="number"], input:not([type]), input[type="text"], input[type="password"], input[type="url"], input[type="email"], input[type="search"], select, textarea {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 0.5rem 0.7rem; min-height: 2.625rem; width: 100%; font-weight: 400;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
input:disabled, select:disabled { opacity: 0.55; cursor: not-allowed; }
input[type="checkbox"], input[type="radio"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
input[type="range"] { accent-color: var(--accent); width: 100%; }
textarea { font-family: var(--mono); font-size: 0.85rem; line-height: 1.5; }
button, .button-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.625rem; padding: 0.5rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
button:hover, .button-link:hover { border-color: var(--accent); color: var(--link); }
button:active, .button-link:active { transform: translateY(1px); }
button.primary, .button-link.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / 0.14); }
button.primary:hover, .button-link.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
button.link-button { background: none; border: 0; padding: 0; min-height: 0; color: var(--link); text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 0.2em; font-weight: 500; box-shadow: none; }
button.link-button:hover { text-decoration-color: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0; }
.note { font-size: 0.875rem; color: var(--muted); }
.note.warn { color: var(--review-fg); background: var(--review-bg); padding: 0.55rem 0.8rem; border-radius: var(--radius); }
.error { color: var(--error-fg); font-weight: 600; }
.status { font-weight: 600; padding: 0.75rem 1rem; border-radius: var(--radius); margin: 0.85rem 0; }
.status-ok { background: var(--ok-bg); color: var(--ok-fg); }
.status-review { background: var(--review-bg); color: var(--review-fg); }
.status-unverified { background: var(--info-bg); color: var(--info-fg); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: 0.6rem; margin: 0.9rem 0; }
.stats div { background: var(--surface-2); border: 1px solid var(--border); padding: 0.65rem 0.85rem; border-radius: var(--radius); }
.stats dt { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.stats dd { margin: 0.1rem 0 0; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stats-list { padding-left: 1.1rem; }
.calc-results { margin-top: 1.25rem; }
.calc-form { margin: 0; }
.formula { font-size: 0.8125rem; }
.warnings { font-size: 0.875rem; color: var(--review-fg); }
.warnings:empty { display: none; }
.breakdown, .caveats { margin: 0.3rem 0; padding-left: 1.1rem; font-size: 0.85rem; }
.caveats { color: var(--muted); }
.source { font-size: 0.8rem; }
.pricing-data { margin: 2rem 0; }
.benchmark-data { margin: 1.5rem 0 2.5rem; }
.research-notes dt { font-weight: 600; margin-top: 0.85rem; }
.research-notes dd { margin: 0.15rem 0 0; font-size: 0.875rem; color: var(--muted); }
details > summary { cursor: pointer; font-weight: 600; }
details.paste, details.options { margin: 0.85rem 0; }
.prose > details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 0.7rem 1rem; margin: 1rem 0; }
.prose > details[open] > summary { margin-bottom: 0.5rem; }
.iqc-map { display: block; width: min(100%, 32rem); height: auto; margin: 0.85rem 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.iqc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; }
.iqc-legend canvas { width: min(100%, 16rem); height: 12px; border-radius: 999px; border: 1px solid var(--border); }
.iqc-legend .note { margin: 0; }
.irc-figure { margin: 1rem 0; }
.irc-figure img { display: block; max-height: 70vh; width: auto; border-radius: var(--radius); border: 1px solid var(--border);
  background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.irc-figure figcaption { margin-top: 0.5rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 3rem 0 1.75rem; font-size: 0.9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.1fr 1.7fr 0.8fr; gap: 3rem; } }
.footer-brand .brand { margin-bottom: 0.75rem; }
.footer-brand p { margin: 0 0 0.5rem; max-width: 22rem; }
.site-footer h2 { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--heading); margin: 0.4rem 0 0.8rem; }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer ul { padding-left: 1.1rem; margin: 0.25rem 0; }
.author-bio li { margin: 0.35rem 0; }
.footer-nav ul { list-style: none; padding: 0; }
.footer-nav li { margin: 0.4rem 0; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--link); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.fineprint { color: var(--muted); font-size: 0.8125rem; margin: 0; }

/* ---------------------------------------------------------------- motion, print */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .card:hover, .card:hover .card-cta svg, button:active, .button-link:active { transform: none; }
}
@media print {
  body { background: #fff; }
  .site-header nav, .tool, .site-footer nav, .hero-actions { display: none; }
  .site-header { position: static; }
  .card, .table-wrap { box-shadow: none; }
}
