/* EnergieNuchter — design system "Nagekeken" (see DESIGN.md). No green anywhere. */

/* Self-hosted fonts (SIL OFL 1.1, see static/fonts/). No requests to third parties. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/schibsted-grotesk-700.d656a2dcc2.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/schibsted-grotesk-800.46876fbd58.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-next-400.5cb240a4d9.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-next-400-italic.59bc0e9656.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-next-700.0dbe07ed76.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-mono-400.87b5b94c18.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/atkinson-hyperlegible-mono-600.a52c1396b3.woff2") format("woff2"); }

:root {
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --ink: #141414;
  --pencil: #5C5C57;
  --rule: #D6D6CF;
  --marker: #FFE14D;
  --on-marker: #141414;
  --correction: #C8231B;
  --verdict-yes: #1E3A9E;
  --verdict-partly: #7A4E00;
  --primary: #141414;
  --on-primary: #FAFAF7;
  --primary-hover: #000000;
  --shadow-doc: 0 12px 28px -18px rgba(0, 0, 0, .35);

  --display: "Schibsted Grotesk", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 56px;
  --space-3xl: 88px;

  --radius-sm: 3px;
  --radius-md: 6px;
  --gutter: 24px;

  color-scheme: light dark;
}

/* Dark tokens, twice with the same values (tests/web/test_theme.py keeps them equal):
   - following the OS, unless the visitor chose "Licht" with the theme toggle;
   - chosen with the toggle (data-theme="dark" on <html>, set by js/theme.js before paint).
   Without JavaScript there is never a data-theme, so the site follows the OS. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #161614;
    --surface: #1F1F1C;
    --ink: #EDEDE8;
    --pencil: #A5A59E;
    --rule: #3A3A35;
    --marker: #E8C534;
    --correction: #FF6B5E;
    --verdict-yes: #8FA6FF;
    --verdict-partly: #E0AE55;
    --primary: #EDEDE8;
    --on-primary: #161614;
    --primary-hover: #FFFFFF;
    --shadow-doc: 0 12px 28px -18px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --paper: #161614;
  --surface: #1F1F1C;
  --ink: #EDEDE8;
  --pencil: #A5A59E;
  --rule: #3A3A35;
  --marker: #E8C534;
  --correction: #FF6B5E;
  --verdict-yes: #8FA6FF;
  --verdict-partly: #E0AE55;
  --primary: #EDEDE8;
  --on-primary: #161614;
  --primary-hover: #FFFFFF;
  --shadow-doc: 0 12px 28px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--body);
  padding-inline: var(--gutter);
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--verdict-yes); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

/* Focus: 3px highlighter ring, backed by an ink ring so it passes 3:1 on paper. */
:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
  border-radius: var(--radius-sm);
}

.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;
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 10;
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 18px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-md); }

.wrap { max-width: 1120px; margin: 0 auto; }

/* Figures */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--pencil); }
.small { font-size: 1.125rem; }
.mark {
  background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%);
  color: var(--on-marker);
  padding: 0 .15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.strike {
  text-decoration: line-through;
  text-decoration-color: var(--correction);
  text-decoration-thickness: 2px;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--space-md);
}
.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.logo span { background: var(--marker); color: var(--on-marker); padding: 0 4px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-md); }
.site-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.125rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.site-nav .lang-switch {
  min-width: 48px;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  font-family: var(--mono);
  text-decoration: none;
}
.site-nav .lang-switch:hover { border-color: var(--ink); text-decoration: none; }

/* Nav links: inline on wide screens; in a no-JS disclosure ("Menu") on phones, so the nav
   row never wraps. Exactly one of the two copies is displayed. */
.site-nav { align-items: center; }
.nav-links { display: contents; }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.125rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: "▾"; font-size: .9em; }
.nav-menu[open] summary::after { content: "▴"; }
.nav-menu-links {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 6;
  min-width: 15rem;
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
}
@media (max-width: 820px) {
  .site-nav { flex-wrap: nowrap; gap: 0 var(--space-sm); }
  .nav-links { display: none; }
  .nav-menu { display: block; }
}

/* Theme toggle (js/theme.js): icon plus a visible label, 48px target, like the language
   switch. Hidden without JavaScript. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 12px;
  font: 700 1.125rem var(--body);
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle[hidden], .theme-icon[hidden] { display: none; }
.theme-icon { flex: none; }

/* ---- Progress steps (_progress.html), shared by the advice flow and the check form ---- */
.progress-steps { margin-top: var(--space-lg); }
.progress-count {
  margin: 0 0 var(--space-sm);
  font: 700 .8125rem/1.3 var(--body);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pencil);
}
.progress-steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); }
.pstep { display: inline-flex; align-items: center; gap: 10px; color: var(--pencil); }
.pstep-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  border: 1px solid var(--pencil);
  border-radius: var(--radius-sm);
  font: 600 1.125rem/1 var(--mono);
}
.pstep.is-current { color: var(--ink); font-weight: 700; }
.pstep.is-current .pstep-n { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pstep.is-done { color: var(--ink); }
.pstep.is-done .pstep-n { border-color: var(--ink); }

/* Waiting screen: honest lines, plain text with a short rule as marker. */
.honest-steps { list-style: none; margin: var(--space-sm) 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.honest-steps li { display: flex; gap: 10px; align-items: baseline; }
.honest-steps li::before { content: ""; flex: none; width: 10px; height: 2px; background: var(--ink); transform: translateY(-.3em); }


/* Shown by js/theme.js (data-lang-hint on <html>) when the browser prefers the other
   language: the page's HTML is the same for every visitor, so a CDN can cache it. */
.lang-hint { display: none; }
:root[data-lang-hint] .lang-hint:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--space-sm);
  font-size: 1.125rem;
}
.lang-hint[hidden] { display: none; }
.lang-hint-close {
  font: 700 1.125rem var(--body);
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  min-height: 48px;
  padding: 0 14px;
  cursor: pointer;
}
.lang-hint-close:hover { border-color: var(--ink); }

.split .sub { margin-top: var(--space-sm); }

.ref-note {
  border-bottom: 1px solid var(--rule);
  padding-block: var(--space-sm);
  font-size: 1.125rem;
  color: var(--pencil);
}
.ref-note b { color: var(--ink); }

main { display: block; padding-block: var(--space-xl) var(--space-3xl); }
main:focus { outline: none; }
.stack { display: flex; flex-direction: column; gap: var(--space-3xl); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font: 700 1.1875rem/1.2 var(--body);
  padding: 16px 26px;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 56px;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: var(--primary-hover); }
.btn[disabled], .btn[aria-disabled="true"] {
  background: transparent;
  color: var(--pencil);
  border: 2px dashed var(--pencil);
  cursor: not-allowed;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  /* Pencil, not rule: a button border needs 3:1 against paper (WCAG 1.4.11). */
  border: 1px solid var(--pencil);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--ink); }

/* Landing hero (poster) */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding-top: var(--space-lg);
}
.display {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
}
.lead { font-size: 1.375rem; line-height: 1.45; max-width: 30ch; margin: 20px 0 32px; }
.hero .small { margin-top: 14px; max-width: 42ch; }

/* The quote document: the one lifted, rotated object. */
.doc {
  margin: 0 0 var(--space-3xl);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-doc);
  padding: 28px 30px 30px;
  transform: rotate(-1.2deg);
  position: relative;
}
.doc-hdr {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--pencil);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.doc table { width: 100%; border-collapse: collapse; font-size: 1.125rem; }
.doc td { padding: 9px 0; border-bottom: 1px dashed var(--rule); vertical-align: baseline; }
.doc td:last-child {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 12px;
}
.doc .total td { border-bottom: 0; font-weight: 700; padding-top: 12px; }
.doc-foot { margin-top: 18px; }

.stamp {
  display: inline-block;
  font: 800 .9375rem/1.2 var(--display);
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid currentColor;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transform: rotate(-2deg);
}
.stamp small {
  display: block;
  font: italic 400 .9375rem/1.3 var(--body);
  letter-spacing: 0;
  text-transform: none;
}
.stamp-no { color: var(--correction); }
.stamp-partly { color: var(--verdict-partly); }
.stamp-yes { color: var(--verdict-yes); }

.margin-note {
  position: absolute;
  /* Pinned to the document edge but kept inside the 1120px grid (rotation included). */
  right: 12px;
  bottom: -72px;
  background: var(--paper);
  border: 1.5px solid var(--correction);
  color: var(--correction);
  font: italic 400 1.125rem/1.35 var(--body);
  padding: 10px 14px;
  max-width: 270px;
  transform: rotate(1.5deg);
}
.margin-note b { font-style: normal; }

/* Two-column sections separated by hairlines, no cards. */
.split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: var(--space-xl);
}
.split h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.split .body > * + * { margin-top: var(--space-md); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.steps li:first-child { padding-top: 0; }
.steps li::before {
  content: counter(step);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
}
.steps b { display: block; font-size: 1.25rem; }

/* Prose pages */
.page-head { display: flex; flex-direction: column; gap: var(--space-md); max-width: 62ch; }
.page-title { font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.prose { max-width: 66ch; }
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--rule);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: var(--space-md) 0 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--space-sm); }
.prose code { font-family: var(--mono); font-size: 1em; }
.prose .status { margin-top: var(--space-xl); font-size: 1.125rem; color: var(--pencil); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; }
.field .hint { font-size: 1.125rem; color: var(--pencil); }
.field .field-note { font-size: 1.125rem; color: var(--pencil); }
.input-wrap { display: flex; align-items: stretch; }
.input-wrap .unit {
  display: inline-flex; align-items: center;
  padding: 0 12px;
  border: 1px solid var(--pencil);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--mono);
  color: var(--pencil);
  background: var(--paper);
}
.input-wrap .unit-before {
  border-left: 1px solid var(--pencil);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
input[type="text"], input[type="number"] {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  font: 400 1.125rem/1.3 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--pencil);
  border-radius: var(--radius-sm);
}
.input-wrap input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-wrap .unit-before + input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.form-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); margin-top: var(--space-xl); }

/* Monetisation slots (never rendered in clean mode). */
.slot {
  border: 1px dashed var(--rule);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  color: var(--pencil);
  font-size: 1.125rem;
  max-width: 66ch;
}
.slot b { color: var(--ink); }
.slots { display: flex; flex-direction: column; gap: var(--space-md); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--space-xl) var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  font-size: 1.125rem;
  color: var(--pencil);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.site-footer a { color: var(--ink); min-height: 48px; display: inline-flex; align-items: center; }

/* Error pages */
.error-code { font-family: var(--mono); color: var(--pencil); font-size: 1.125rem; }

/* ---- Check form ------------------------------------------------------------------------ */
.stack-form { display: flex; flex-direction: column; gap: var(--space-3xl); }
.optional { font-weight: 400; color: var(--pencil); }
.field.wide, fieldset.wide { grid-column: 1 / -1; }
.field-pair { display: contents; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.options { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--pencil);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); flex: none; }
.option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option:has(input:focus-visible) { outline: 3px solid var(--marker); outline-offset: 2px; }
input[type="file"] {
  width: 100%;
  font: 400 1.125rem var(--body);
  color: var(--ink);
  max-width: 100%;
  min-height: 48px;
}
input[type="file"]::file-selector-button {
  font: 700 1.125rem var(--body);
  min-height: 48px;
  margin-right: 12px;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--pencil);
  border-radius: var(--radius-md);
  cursor: pointer;
}
select {
  min-height: 48px;
  padding: 8px 12px;
  font: 400 1.125rem var(--body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--pencil);
  border-radius: var(--radius-sm);
  max-width: 100%;
}
/* Form errors: ink plus icon plus message, never red (DESIGN.md). */
.field.has-error input, .field.has-error .option { border-color: var(--ink); border-width: 2px; }
.field-error, .notice-title { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--ink); }
.icon { flex: none; margin-top: 3px; }
.notice {
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  max-width: 66ch;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.notice ul { margin: 0; padding-left: 1.3em; }
.notice code, .columns code, .mapping code { font-family: var(--mono); font-size: 1.125rem; overflow-wrap: anywhere; }
.columns { margin: 0; padding-left: 1.3em; }
.mapping { display: grid; gap: var(--space-md); }
.meter-upload { display: flex; flex-direction: column; gap: var(--space-md); max-width: 720px; }
.hp-details summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.hp-details[open] summary { margin-bottom: var(--space-lg); }
.share-price { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-md); }
.share-price p { margin: 0; }
.share-more summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; text-decoration: underline; }
.form-submit { border-top: 0; padding-top: 0; }
.form-submit .form-actions { margin-top: 0; }

/* ---- Report: verdict column + evidence column ------------------------------------------ */
.eyebrow { font-weight: 700; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--pencil); }
.report-row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: var(--space-xl);
}
.report-row h2 { font-size: 1.875rem; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.verdict-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }
.evidence-col { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; max-width: 720px; }
.stamp-wrap { padding: 4px 0; }
.figure {
  font: 600 2.75rem/1.1 var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.figure-label { color: var(--pencil); max-width: 26ch; }
.lead-text { font-size: 1.25rem; line-height: 1.45; }
/* The one authored moment: the highlighter sweeps once across the verdict figure. */
.mark-sweep {
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 55% / 100% 76%;
}
@media (prefers-reduced-motion: no-preference) {
  .mark-sweep { animation: sweep 450ms ease-out 300ms both; }
}
@keyframes sweep {
  from { background-size: 0% 76%; }
  to { background-size: 100% 76%; }
}
.figures { width: 100%; border-collapse: collapse; font-size: 1.125rem; }
.figures caption:not(.visually-hidden) { text-align: left; font-weight: 700; padding-bottom: var(--space-sm); }
.figures thead th {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pencil);
  border-bottom: 2px solid var(--ink);
  padding: 6px 0;
  text-align: left;
  vertical-align: bottom;
}
.figures th[scope="row"] { font-weight: 400; text-align: left; padding-right: 12px; }
.figures td, .figures th[scope="row"] { padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.figures .n {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-left: 16px;
}
.figures thead .n { font-family: var(--body); white-space: normal; }
.figures thead th { hyphens: auto; }
.figures .wrap, .figures .n.wrap { white-space: normal; }
.split > *, .report-row > * { min-width: 0; }
.figures .total th, .figures .total td { font-weight: 700; border-bottom: 0; }
.figures .better-row th { font-weight: 700; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.tag {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--verdict-yes);
  border: 1.5px solid currentColor;
  border-radius: var(--radius-sm);
  padding: 0 5px;
  margin-left: 4px;
}
.section-status { font-size: 1.125rem; color: var(--pencil); border-top: 1px dashed var(--rule); padding-top: var(--space-sm); }
.section-status .status-label { font-weight: 700; }
.section-status .status-date { display: block; }
.assumptions { margin: 0; padding-left: 1.3em; color: var(--pencil); }
.award-conditions { margin: 4px 0 0; padding-left: 1.1em; color: var(--pencil); font-weight: 400; }
.assumptions li + li { margin-top: 4px; }
.caveats ul, .evidence-col > ul { margin: var(--space-sm) 0 0; padding-left: 1.3em; }

/* Year ruler: quote vs us, the gap highlighted. Always paired with the table. */
.ruler { margin: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.ruler figcaption { font-weight: 700; }
.ruler-svg { width: 100%; height: 40px; display: block; overflow: visible; }
.ruler-gap { fill: var(--marker); }
.ruler-line { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ruler-tick { stroke-width: 4; vector-effect: non-scaling-stroke; }
.ruler-tick-quote { stroke: var(--pencil); }
.ruler-tick-ours { stroke: var(--ink); }
.ruler-axis { display: flex; justify-content: space-between; font-family: var(--mono); }
.ruler-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.ruler-legend li { display: inline-flex; align-items: center; gap: 8px; }
.key { display: inline-block; width: 4px; height: 20px; }
.key-quote { background: var(--pencil); }
.key-ours { background: var(--ink); }

.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.inline-form label { font-weight: 700; width: 100%; }
.amounts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.slot .btn-secondary { font-family: var(--body); }
.slot form { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.slot { display: flex; flex-direction: column; gap: var(--space-sm); }

/* Being calculated */
.pending-status { display: flex; flex-direction: column; gap: var(--space-md); }
.pending-steps { margin: 0; padding-left: 1.3em; }
.calc-mark { display: flex; gap: 8px; padding-top: 12px; }
.calc-mark span { width: 14px; height: 14px; background: var(--marker); border: 1px solid var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .calc-mark span { animation: calc 1.2s ease-in-out infinite; }
  .calc-mark span:nth-child(2) { animation-delay: .2s; }
  .calc-mark span:nth-child(3) { animation-delay: .4s; }
}
@keyframes calc { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---- Quote upload and confirmation --------------------------------------------------- */
.upload-form { display: flex; flex-direction: column; gap: var(--space-md); max-width: 720px; }
.upload-form .form-actions { margin-top: 0; }
.or-manual {
  display: flex; align-items: center; gap: var(--space-md);
  margin: 0; font-weight: 700; color: var(--pencil);
}
.or-manual::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
/* "Please check": a value read from the quote that we were unsure about. Ink, a dashed
   2px border and an eye icon; never red (DESIGN.md) and never the highlighter. */
.field.needs-check input[type="text"], .field.needs-check .option { border: 2px dashed var(--ink); }
.field.needs-check .input-wrap .unit { border: 2px dashed var(--ink); border-left: 0; }
.field.needs-check .input-wrap .unit-before { border: 2px dashed var(--ink); border-right: 0; }
.field-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--ink); margin: 0; }
.notice-check { border-style: dashed; }
.confirm-notes { display: flex; flex-direction: column; gap: var(--space-md); max-width: 720px; }
.confirm-list { margin: 0; padding-left: 1.3em; }
.confirm-list li + li { margin-top: var(--space-sm); }
.option-picker h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.option-picker ul { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.option-link {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--pencil); border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; background: var(--surface);
}
.option-link:hover { border-color: var(--ink); }
.option-link.is-current { border: 2px solid var(--ink); }
.option-link .num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--pencil); }
.discard-form { margin-top: calc(-1 * var(--space-xl)); }
.summary { border-top: 1px solid var(--rule); padding-top: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.summary h3 { font-size: 1.25rem; margin: 0; }
.unit-inline { font-family: var(--mono); }

@media (max-width: 820px) {
  .hero, .split, .site-footer { grid-template-columns: 1fr; }
  .split { gap: var(--space-lg); }
  .doc { transform: none; margin-bottom: 0; padding: 20px 18px 22px; }
  .margin-note { position: static; margin-top: var(--space-md); transform: none; max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .report-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .report-row .verdict-col:empty { display: none; }
  .stack-form { gap: var(--space-2xl); }
  .stack { gap: var(--space-2xl); }
}

@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .figures .n { padding-left: 8px; }
  .figure { font-size: 2.25rem; }
  .lead { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .btn-secondary, .site-nav a { transition: background-color 80ms ease-out, border-color 80ms ease-out; }
}

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

@media print {
  .site-header nav, .site-footer, .slots, .slot, .skip-link, form { display: none; }
  .doc { transform: none; box-shadow: none; }
}

/* "Mail dit naar jezelf" (shared partial). */
.mailto-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); margin: 0; }
.mailto-note { max-width: 40ch; }

/* A note that must stay at the point of use (components/notes.html): ink annotation, a short
   ink rule on the left, no colour (red means "does not hold"; no green). */
.safety-note { border-left: 2px solid var(--ink); padding-left: var(--space-sm); color: var(--ink); margin: 0; }
