/* ==========================================================================
   True Cost of Car Ownership — stylesheet
   Single file, no build step, no framework. Mobile-first.
   ========================================================================== */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #f0f2f5;
  --border: #dfe3e8;
  --border-strong: #c3cad3;
  --text: #16202c;
  --text-muted: #5b6875;
  --text-faint: #7c8895;

  --brand: #0b5fff;
  --brand-dark: #0847c4;
  --brand-tint: #e8f0ff;

  --accent: #0d9a6c;
  --accent-tint: #e4f6ef;
  --warn: #b4690e;
  --warn-tint: #fdf3e3;
  --danger: #c0362c;
  --danger-tint: #fdeceb;

  /* Category colours: distinct in hue and in lightness, so the breakdown
     stays readable in greyscale and for colour-vision deficiencies. */
  --cat-depreciation: #0b5fff;
  --cat-fuel: #e8743b;
  --cat-insurance: #19a979;
  --cat-registration: #945ecf;
  --cat-maintenance: #13a4b4;
  --cat-repairs: #d64550;
  --cat-tires: #6c7a89;
  --cat-financing: #bd9b16;
  --cat-other: #a0a7b0;

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
  --maxw: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161d;
    --surface: #18202a;
    --surface-alt: #202a36;
    --border: #2b3643;
    --border-strong: #3c4a5a;
    --text: #e9eef4;
    --text-muted: #a7b4c2;
    --text-faint: #8593a3;
    --brand: #5b96ff;
    --brand-dark: #82b0ff;
    --brand-tint: #16253f;
    --accent: #3ec99a;
    --accent-tint: #123528;
    --warn: #e0a34a;
    --warn-tint: #33260f;
    --danger: #f0776c;
    --danger-tint: #35191a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --- Header / nav ------------------------------------------------------- */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand svg { flex: none; color: var(--brand); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
/* Four items wrap to a second row at phone widths and eat the fold. Scroll
   them horizontally instead, keeping the header one row tall throughout. */
@media (max-width: 720px) {
  .site-header .wrap { min-height: 54px; gap: 8px; flex-wrap: nowrap; }
  .brand span { font-size: 0.92rem; }
  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; padding: 6px 9px; font-size: 0.86rem; }
}
@media (max-width: 460px) {
  /* Below this the wordmark and four links cannot share a row legibly. */
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav { width: 100%; padding-bottom: 6px; }
}
.site-nav a {
  padding: 7px 11px;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { background: var(--surface-alt); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); font-weight: 600; }

/* --- Hero --------------------------------------------------------------- */

.hero { padding: 40px 0 8px; }
@media (max-width: 720px) {
  .hero { padding: 22px 0 4px; }
  .hero p.lede { font-size: 1rem; margin-bottom: 1rem; }
}
.hero p.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 1.25rem;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
  padding: 0;
  list-style: none;
}
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.trust-row li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* --- Cards / layout ----------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.card + .card { margin-top: 20px; }

.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 48px;
}

/* On phones the result comes first. Defaults are pre-filled, so there is
   always an answer to show, and burying it under a nine-field form would
   mean scrolling past everything to see the number people came for. */
@media (max-width: 959px) {
  .calc-results { order: -1; }
}

@media (min-width: 960px) {
  .calc-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .calc-results { position: sticky; top: 76px; }
}

/* --- Forms -------------------------------------------------------------- */

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
  min-width: 0;
}
.form-heading {
  font-size: 1.15rem;
  margin: 8px 0 14px;
}
legend {
  font-weight: 650;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  padding: 0 0 10px;
  width: 100%;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .field-grid.two { grid-template-columns: 1fr 1fr; }
}

/* Rows align on the input, not the cell: a hint under one field would
   otherwise push its neighbour's input out of line. */
.field-grid.two { align-items: start; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field label {
  font-size: 0.88rem;
  font-weight: 550;
  margin-bottom: 5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.field .hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  /* Overrides the global paragraph margin, which would otherwise add ~16px
     of dead space under every hinted field. */
  margin: 4px 0 0;
  line-height: 1.45;
}

input[type="text"],
input[type="number"],
select {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  transition: border-color 0.12s, box-shadow 0.12s;
  appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
input:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
  outline: none;
}
input[aria-invalid="true"] { border-color: var(--danger); }
input::placeholder { color: var(--text-faint); opacity: 1; }

/* Remove spinner arrows: the arrows invite clicking through hundreds of
   euros one step at a time, which is never how these values are entered. */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.input-affix {
  display: flex;
  align-items: stretch;
}
/* The input yields space to the affix rather than the other way round, so a
   unit label like "L/100km" or "per litre" is never clipped. */
.input-affix input { border-radius: var(--radius) 0 0 var(--radius); flex: 1 1 0; min-width: 0; }
.input-affix .affix { flex: 0 0 auto; }
.input-affix .affix {
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  white-space: nowrap;
}
/* A select affix is changeable, so it reads as a control rather than a static
   suffix: pointer cursor, a chevron, and a hover state. */
.input-affix select.affix {
  border-radius: 0 var(--radius) var(--radius) 0;
  width: auto;
  cursor: pointer;
  color: var(--text);
  font-weight: 550;
  padding-right: 28px;
  background-position: calc(100% - 13px) calc(50% + 1px), calc(100% - 8px) calc(50% + 1px);
}
.input-affix select.affix:hover { background-color: var(--border); }

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin: 4px 0 0;
}
/* Collapse entirely while empty so the placeholder adds no vertical space. */
.field-error:empty { display: none; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  padding: 11px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
  min-height: 44px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { background: var(--surface-alt); color: var(--text); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(0.93); color: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 auto; }

/* --- Results ------------------------------------------------------------ */

/* Fixed 2x2 rather than auto-fit: four tiles in an auto-fit grid resolve to
   3+1 at common widths, leaving a conspicuous empty cell. */
.result-headline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
/* The compact comparison card shows three tiles in one row. They are narrower
   than the main ones, so the figure scales down rather than overflowing. */
.car-panel .result-headline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.car-panel .stat { padding: 11px 6px; }
.car-panel .stat .stat-value { font-size: clamp(0.95rem, 0.6rem + 1.5vw, 1.3rem); }
.car-panel .stat .stat-label { font-size: 0.66rem; letter-spacing: 0.03em; }
/* Give the label column the space it needs; the numeric columns are narrow
   and predictable, so fixing them stops the labels from being squeezed. */
.car-panel .breakdown { table-layout: fixed; }
.car-panel .breakdown th:first-child { width: auto; }
.car-panel .breakdown th:not(:first-child),
.car-panel .breakdown td:not(:first-child) { width: 5.5em; }
.stat {
  background: var(--surface-alt);
  padding: 14px 12px;
  text-align: center;
}
.stat .stat-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 3px;
}
.stat .stat-value {
  display: block;
  font-size: clamp(1.2rem, 1rem + 1.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.stat.primary { background: var(--brand-tint); }
.stat.primary .stat-value { color: var(--brand); }
.stat .stat-sub { display: block; font-size: 0.75rem; color: var(--text-faint); margin-top: 2px; }

/* Stacked proportional bar: one glance at where the money goes. */
.share-bar {
  display: flex;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-alt);
  margin-bottom: 16px;
}
.share-bar span { display: block; height: 100%; min-width: 0; }

.breakdown { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.breakdown caption { text-align: left; color: var(--text-faint); font-size: 0.8rem; padding-bottom: 8px; }
.breakdown th, .breakdown td { padding: 9px 6px; text-align: right; }
.breakdown th:first-child, .breakdown td:first-child { text-align: left; }
.breakdown thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.breakdown tbody tr { border-bottom: 1px solid var(--border); }
.breakdown tbody tr.is-zero { color: var(--text-faint); }
.breakdown td { font-variant-numeric: tabular-nums; }
.breakdown tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--border-strong);
  padding-top: 11px;
}
.breakdown th[scope="row"] { font-weight: 500; }
/* Swatch and label sit in a flex row, so a category that needs two lines
   wraps within the text column instead of dropping beneath its own dot. */
.cat-cell {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cat-dot {
  width: 9px; height: 9px;
  border-radius: 2px;
  flex: none;
  /* Nudged off the baseline so the square optically centres on the text. */
  transform: translateY(-1px);
}
.breakdown td .share-cell { color: var(--text-faint); font-size: 0.85em; }

/* Four numeric columns do not fit beside a label at phone widths, and the
   labels start wrapping onto their own swatches. The monthly figure is
   already the headline stat, so the per-month column is dropped here rather
   than shrinking everything into illegibility. */
@media (max-width: 560px) {
  .breakdown thead th:nth-child(2),
  .breakdown tbody td:nth-child(2),
  .breakdown tfoot td:nth-child(2) { display: none; }
  .breakdown { font-size: 0.89rem; }
  .breakdown th, .breakdown td { padding: 9px 4px; }
  .breakdown .cat-cell { gap: 6px; }
}

.insight {
  background: var(--brand-tint);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 15px;
  margin: 18px 0 0;
  font-size: 0.93rem;
}
.insight strong { font-weight: 650; }

.notice {
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 0.88rem;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.notice-warn { background: var(--warn-tint); color: var(--warn); border-color: currentColor; }
.notice-error { background: var(--danger-tint); color: var(--danger); border-color: currentColor; }

.empty-state {
  text-align: center;
  padding: 36px 18px;
  color: var(--text-muted);
}
.empty-state svg { color: var(--border-strong); margin-bottom: 10px; }

/* --- Comparison --------------------------------------------------------- */

/* The comparison cards live inside the results column, which is roughly half
   the viewport on desktop. Two cards side by side inside it leaves each about
   250px — too narrow for a money figure plus a label — so they stack and use
   the full column width instead. */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.compare-grid .card { padding: 16px; }
.compare-grid .card h3 { font-size: 1.02rem; margin-bottom: 12px; }
.car-panel { border-top: 3px solid var(--cat-depreciation); }
.car-panel.car-b { border-top-color: var(--cat-fuel); }

.verdict {
  background: var(--accent-tint);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}
.verdict .verdict-amount {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem);
  font-weight: 750;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: block;
  font-variant-numeric: tabular-nums;
}

/* --- Monetization ------------------------------------------------------- */

.offers { margin-top: 22px; }
.offers-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.offer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
  background: var(--surface);
}
.offer + .offer { margin-top: 10px; }
.offer h3 { font-size: 1rem; margin: 0; }
.offer p { margin: 0; font-size: 0.89rem; color: var(--text-muted); }
.offer .btn { align-self: flex-start; }
.ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 1px 5px;
  font-weight: 600;
}

.report-cta {
  border: 1px solid var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 22px;
}
.report-cta ul { margin: 10px 0 14px; padding-left: 20px; font-size: 0.9rem; }
.report-cta li { margin-bottom: 4px; }
.price-tag { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }

/* --- Content pages ------------------------------------------------------ */

.prose { max-width: 72ch; padding-bottom: 40px; }
.prose h2 { margin-top: 2em; scroll-margin-top: 76px; }
.prose h3 { margin-top: 1.6em; scroll-margin-top: 76px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.93rem; }
.prose th, .prose td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.prose thead th { background: var(--surface-alt); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.prose td:not(:first-child), .prose th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

.formula {
  font-family: var(--mono);
  font-size: 0.9rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin: 1em 0;
  overflow-x: auto;
  line-height: 1.7;
}

.answer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 15px 17px;
  margin: 1.2em 0;
}
.answer-box p:last-child { margin-bottom: 0; }

details.faq {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--text-faint);
  font-weight: 400;
  flex: none;
  line-height: 1;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { padding-bottom: 12px; }
details.faq .faq-body > :last-child { margin-bottom: 0; }

.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}

.card-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  margin: 24px 0;
}
.card-links a {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 17px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.card-links a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--text); }
.card-links strong { display: block; color: var(--brand); margin-bottom: 4px; font-size: 1.02rem; }
.card-links span { font-size: 0.89rem; color: var(--text-muted); }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}
.footer-grid h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 8px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 5px; }
.footer-grid a { color: var(--text-muted); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--border); padding-top: 16px; font-size: 0.82rem; color: var(--text-faint); }
.footer-legal p { margin-bottom: 6px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* --- Print: the free report ---------------------------------------------- */

@media print {
  /* Forced light, and repeated at :root[data-theme] specificity so the dark
     scheme block above cannot win and print a black page. */
  :root,
  :root:not([data-theme="light"]),
  :root[data-theme="dark"] {
    --bg: #fff;
    --surface: #fff;
    --surface-alt: #f2f2f2;
    --border: #bbb;
    --border-strong: #999;
    --text: #000;
    --text-muted: #333;
    --text-faint: #555;
    --brand: #0b3fa8;
    --brand-dark: #0b3fa8;
    --brand-tint: #eef3fd;
    --accent: #0a6b4c;
    --accent-tint: #eaf5f0;
    --shadow: none;
    --shadow-sm: none;
  }

  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 10.5pt; }

  .site-header, .site-footer, .no-print, .btn, .offers, .report-cta,
  .skip-link, .toggle-row, .trust-row, .cta-band, .card-links { display: none !important; }

  /* The form is input, not output: a printed report leads with the numbers. */
  form { display: none !important; }
  .calc-layout > .card:first-child { display: none !important; }

  .calc-layout { display: block; padding: 0; }
  .calc-results { position: static !important; order: 0 !important; }
  .wrap { max-width: none; padding: 0; }

  .card {
    border: 1px solid #bbb;
    box-shadow: none;
    padding: 0;
    page-break-inside: avoid;
    break-inside: avoid;
    border: 0;
  }

  /* On a calculator page the printed sheet carries its own header, so the
     hero and the explanatory prose are dropped: a report is the numbers and
     their assumptions, not the marketing page around them. Content pages
     (the formula, privacy) keep their hero, since it holds their title. */
  body:has(.calc-layout) .hero,
  body:has(.calc-layout) .prose { display: none !important; }
  body:has(.calc-layout) .calc-results .card > h2 { display: none !important; }

  .result-headline { border: 1px solid #bbb; }
  .stat { background: #f7f7f7 !important; }
  .stat.primary { background: #eef3fd !important; }
  .stat .stat-value { color: #000 !important; font-size: 14pt; }

  /* Colour bars and swatches must survive the printer's colour stripping,
     otherwise the breakdown loses its only visual key. */
  .share-bar, .share-bar span, .cat-dot, .stat, .stat.primary, .verdict {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .breakdown { font-size: 9.5pt; }
  .breakdown thead th { background: #f2f2f2; }
  .insight, .verdict { border: 1px solid #999; }

  .print-only { display: block !important; }

  .print-header {
    border-bottom: 2px solid #000;
    padding-bottom: 6pt;
    margin-bottom: 12pt;
  }
  .print-header h1 { font-size: 17pt; margin: 0 0 2pt; }
  .print-header p { font-size: 9pt; color: #444; margin: 0; }

  .assumptions {
    margin-top: 14pt;
    padding-top: 8pt;
    border-top: 1px solid #bbb;
    font-size: 8.5pt;
    color: #444;
  }
  .assumptions h2 {
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 4pt;
  }
  .assumptions p { margin: 0 0 3pt; }

  a[href]::after { content: ""; }
  h1, h2, h3 { page-break-after: avoid; break-after: avoid; color: #000; }
  table, .compare-grid { page-break-inside: auto; }
  tr { page-break-inside: avoid; break-inside: avoid; }
}

.print-only { display: none; }
