/* De website van FIRE Dashboard. Kleuren, letters en beweging volgen het brandbook (brand/brandbook.md).
   De letters staan zelf gehost in /assets/fonts/, zodat de site geen extern verzoek doet. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/newsreader-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/newsreader-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-normal-latin.woff2) format('woff2'); }

/* Papier en inkt, messing, nacht. De oude namen (--bg, --text, --muted ...) staan eronder en wijzen
   naar deze tokens, zodat pagina's die nog de oude namen gebruiken dezelfde kleuren krijgen. */
:root {
  --paper: #faf7f2;
  --paper-2: #f2ede4;
  --surface-2: #ffffff;
  --ink: #111a2e;
  --ink-muted: #55606f;
  --line: #e4ddd0;
  --line-strong: #cfc5b2;
  --brass: #7a5a26;
  --brass-line: #c8b48a;
  --link: #1d4ed8;
  --fill: #2563eb;
  --fill-hover: #1d4ed8;
  --on-fill: #ffffff;
  --deep: #0a1220;
  --shadow: 0 1px 2px rgba(17, 26, 46, .05), 0 24px 60px -24px rgba(17, 26, 46, .28);
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Roboto, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: 1rem;
  /* De hoogte van de header (een regel; op een telefoon twee). Voor een band die eronder doorloopt. */
  --header-h: 4.7rem;
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }
@media (max-width: 44rem) { :root { --header-h: 6.5rem; } }
/* Nacht: de donkere banden in het lichte thema, en het hele donkere thema. */
.night {
  --paper: #0a1220; --paper-2: #0d1728; --surface-2: #111b2e; --ink: #f3efe7; --ink-muted: #a3adbd;
  --line: #22304a; --line-strong: #34435f; --brass: #d6b97b; --brass-line: #6f5f3c; --link: #8fb8ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 30px 70px -28px rgba(0, 0, 0, .8);
  /* De oude namen opnieuw, want een variabele die naar een andere wijst, wordt op :root al uitgerekend. */
  --bg: var(--paper); --surface: var(--surface-2); --text: var(--ink); --muted: var(--ink-muted);
  --border: var(--line); --accent: var(--link); --accent-soft: #14213d; --input-border: #6f7d93;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0a1220; --paper-2: #0d1728; --surface-2: #111b2e; --ink: #f3efe7; --ink-muted: #a3adbd;
    --line: #22304a; --line-strong: #34435f; --brass: #d6b97b; --brass-line: #6f5f3c; --link: #8fb8ff;
    --deep: #060b15; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 30px 70px -28px rgba(0, 0, 0, .8);
  }
}
:root[data-theme='dark'] {
  --paper: #0a1220; --paper-2: #0d1728; --surface-2: #111b2e; --ink: #f3efe7; --ink-muted: #a3adbd;
  --line: #22304a; --line-strong: #34435f; --brass: #d6b97b; --brass-line: #6f5f3c; --link: #8fb8ff;
  --deep: #060b15; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 30px 70px -28px rgba(0, 0, 0, .8);
}

/* De oude namen. */
:root {
  --bg: var(--paper);
  --surface: var(--surface-2);
  --text: var(--ink);
  --muted: var(--ink-muted);
  --border: var(--line);
  --accent: var(--link);
  --accent-fill: var(--fill);
  --accent-text: var(--on-fill);
  --accent-soft: #f2ede4;
  --spark: #f59e0b;
  --ok: #15803d;
  --warn-bg: #fef3c7;
  --warn-text: #78350f;
  --input-border: #7c8798;
  --font: var(--sans);
  --font-display: var(--serif);
  color-scheme: light dark;
}
/* Donker thema: volgt het apparaat, tenzij je met de knop in de header zelf kiest (data-theme op <html>,
   gezet door theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --accent-soft: #14213d;
    --ok: #4ade80;
    --warn-bg: #422006;
    --warn-text: #fde68a;
    --input-border: #6f7d93;
  }
}
:root[data-theme='dark'] {
  --accent-soft: #14213d;
  --ok: #4ade80;
  --warn-bg: #422006;
  --warn-text: #fde68a;
  --input-border: #6f7d93;
  color-scheme: dark;
}
:root[data-theme='light'] { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: .25rem; }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* De header: op elke pagina een nachtband (class="site night"), ook in het lichte thema. Op de voorpagina
   ligt hij doorzichtig over de hero (home.css); een andere pagina kan dat ook met class="header-over" op
   <body>, met --header-h als ruimte bovenin de band eronder. Op een telefoon: logo, thema en de knop naar
   de app op de eerste regel, de links op de tweede. */
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 60; background: var(--fill); color: var(--on-fill); padding: .5rem .9rem; border-radius: .5rem; text-decoration: none; font-weight: 600; }
.skip:focus { top: .75rem; }
header.site { position: relative; z-index: 30; background: var(--deep); }
.header-over header.site { position: absolute; left: 0; right: 0; top: 0; background: transparent; }
header.site .wrap, footer.site .wrap { max-width: 75rem; padding-inline: var(--gutter); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; padding-block: 1.1rem; }
.site .brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -.01em; }
.site .brand b { font-weight: 700; }
.site .brand span { font-weight: 500; color: var(--ink-muted); }
.site .brand span b { color: var(--ink); }
header.site .brand { margin-right: auto; }
header.site .nav-links { display: flex; align-items: center; gap: 0 1.75rem; font-size: .9375rem; }
header.site .nav-links a { color: var(--ink); text-decoration: none; padding-block: .4rem; opacity: .86; }
header.site .nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .4em; }
header.site .nav-links a[aria-current] { opacity: 1; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .5em; }
header.site .nav-actions { display: flex; align-items: center; gap: .6rem; }
header.site .nav-cta { min-height: 2.5rem; padding: .45rem 1rem; font-size: .9375rem; }
header.site .theme-toggle { font: inherit; font-size: 1rem; line-height: 1; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; padding: 0; border: 1px solid var(--input-border); border-radius: .5rem; background: transparent; color: var(--ink); cursor: pointer; transition: border-color .15s ease; }
header.site .theme-toggle:hover { border-color: var(--ink); }
header.site .theme-toggle[hidden] { display: none; }
header.site :focus-visible, footer.site :focus-visible { outline-color: var(--link); }
@media (max-width: 44rem) {
  header.site .wrap { column-gap: .75rem; }
  header.site .brand { font-size: 1rem; gap: .5rem; }
  header.site .brand svg { width: 30px; height: 30px; }
  header.site .nav-actions { gap: .4rem; }
  header.site .nav-cta { padding-inline: .8rem; }
  header.site .nav-links { order: 3; width: 100%; gap: 0 1.5rem; border-top: 1px solid var(--line); padding-top: .4rem; }
}
@media (max-width: 23rem) {
  header.site .brand { font-size: .9rem; gap: .4rem; }
  header.site .brand svg { width: 28px; height: 28px; }
  header.site .theme-toggle { width: 2.25rem; height: 2.25rem; }
  header.site .nav-cta { padding-inline: .55rem; font-size: .875rem; }
  header.site .nav-links { gap: 0 1.1rem; }
}

/* De footer: ook een nachtband. Het merk met één regel, drie kolommen met links, en de voetregel. */
/* Geen marge boven de footer: de band sluit aan op het vel erboven. Pagina's met <main class="wrap"> krijgen de ruimte in main zelf. */
main.wrap { padding-bottom: 5rem; }
footer.site { padding-block: 4rem 2.5rem; background: var(--deep); color: var(--ink-muted); font-size: .875rem; line-height: 1.65; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand { display: inline-flex; }
.footer-brand p { margin: 1rem 0 0; max-width: 20rem; font: italic 400 1.125rem/1.45 var(--serif); color: var(--ink); }
.footer-title { font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 .9rem; }
footer.site a:not(.brand) { display: block; color: var(--ink-muted); text-decoration: none; padding: .22rem 0; }
footer.site a:not(.brand):hover { color: var(--ink); text-decoration: underline; }
.footer-note { margin: 3rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
footer.site button.link { all: unset; cursor: pointer; display: block; padding: .22rem 0; }
footer.site button.link:hover { color: var(--ink); text-decoration: underline; }
footer.site button.link:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: .25rem; }
@media (min-width: 62rem) {
  .footer-cols { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 3rem; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 23rem) { .footer-cols { grid-template-columns: 1fr; } }

/* De vraag om toestemming voor statistiekcookies (assets/consent.js), onderaan het scherm. */
.cookie-banner {
  position: fixed; z-index: 50; left: 1rem; right: 1rem; bottom: 1rem; max-width: 40rem; margin-inline: auto;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: .75rem;
  padding: 1rem 1.25rem; box-shadow: var(--shadow); font-size: 15px;
}
.cookie-banner p { margin: 0 0 .75rem; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.cookie-banner-actions .button { padding: .5rem 1.1rem; }

/* Tekst */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; font-variant-numeric: lining-nums; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3rem); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; margin: 3rem 0 1rem; }
h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -.01em; margin: 2.75rem 0 .75rem; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 1.75rem 0 .5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.muted { color: var(--muted); font-size: 14px; }
.notice { background: var(--warn-bg); color: var(--warn-text); padding: .75rem 1rem; border-radius: .5rem; }
.num { font-variant-numeric: tabular-nums; }

/* Knoppen en formulieren. Primair: het blauw van het teken. Tweede knop: doorzichtig met een rand. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .7rem 1.4rem;
  border-radius: .5rem; border: 1px solid var(--fill); background: var(--fill); color: var(--on-fill);
  font: 600 1rem/1.2 var(--font); text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.button:hover { background: var(--fill-hover); border-color: var(--fill-hover); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--input-border); }
.button.secondary:hover { background: transparent; border-color: var(--text); }
.button:disabled { opacity: .6; cursor: not-allowed; }
.button:disabled:hover { background: var(--fill); border-color: var(--fill); }
.button.secondary:disabled:hover { background: transparent; border-color: var(--input-border); }
.cookie-banner-actions .button { min-height: 2.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
input[type='email'] { font: inherit; min-height: 3rem; padding: .6rem .9rem; border: 1px solid var(--input-border); border-radius: .5rem; background: var(--surface); color: var(--text); min-width: 0; flex: 1 1 14rem; }
input[type='email']::placeholder { color: var(--muted); opacity: 1; }
form.inline { display: flex; flex-wrap: wrap; gap: .6rem; }
form.inline .nb-status { flex-basis: 100%; margin: .25rem 0 0; }
form.inline .nb-status:empty { display: none; }
.nb-form { max-width: 34rem; margin: 1.5rem 0 .5rem; }
/* Aanmelden voor de nieuwsbrief onder een gids (partials/newsletter-cta.html): een blok tussen twee lijnen. */
.newsletter-cta { margin: 3rem 0; padding: 1.75rem 0 2rem; border-block: 1px solid var(--line-strong); }
.newsletter-cta-label { margin: 0 0 .6rem; font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.newsletter-cta-title { margin: 0 0 .5rem; font: 400 1.625rem/1.2 var(--serif); letter-spacing: -.01em; color: var(--text); }
.newsletter-cta > p:not(.newsletter-cta-title, .newsletter-cta-label) { margin: 0 0 1.1rem; color: var(--muted); }
.newsletter-cta form { max-width: 34rem; }
.nb-confirm { margin: 1.5rem 0 2rem; padding: 1.25rem 1.4rem; border: 1px solid var(--brass-line); border-radius: .75rem; background: var(--surface); scroll-margin-top: 5rem; }
.nb-confirm h2 { margin-top: 0; }
.nb-confirm .button[hidden] { display: none; }
/* Kaarten en prijzen */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: .75rem; padding: 1.25rem 1.5rem; }
.card h3 { margin-top: 0; }
a.card { color: inherit; text-decoration: none; display: block; }
a.card:hover { border-color: var(--accent); }
a.card h3 { color: var(--accent); }
a.card p { margin-bottom: 0; color: var(--muted); }
/* Gidsen */
.article { max-width: 42rem; }
.crumbs { font-size: 14px; color: var(--muted); margin-top: 1.5rem; }
.crumbs a { color: inherit; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.crumbs li + li::before { content: '›'; margin-right: .25rem; }
.crumbs + h1 { margin-top: 1rem; }
.summary { background: var(--accent-soft); border-radius: .75rem; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.summary p { margin: 0 0 .35rem; font-weight: 600; }
.summary ul { margin: 0; padding-left: 1.2rem; }
.summary li { margin: .2rem 0; }
.cta { border: 1px solid var(--border); background: var(--surface); border-radius: .75rem; padding: 1.25rem 1.5rem; margin: 2.5rem 0; }
.cta h2 { margin-top: 0; font-size: 1.2rem; }
.cta .actions { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 15px; }
th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; }
td.r, th.r { text-align: right; }
.formula { font-variant-numeric: tabular-nums; background: var(--surface); border: 1px solid var(--border); border-radius: .5rem; padding: .75rem 1rem; }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1rem; }
.sources ul { padding-left: 1.2rem; }
.related { margin-top: 2.5rem; }
.chart { margin: 1.5rem 0; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .band { fill: var(--accent); fill-opacity: .18; }
.chart .median { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis { stroke: var(--muted); stroke-width: 1; }
.chart text { fill: var(--muted); font: 13px var(--font); }
.chart figcaption { color: var(--muted); font-size: 14px; margin-top: .5rem; }
.legend-swatch { display: inline-block; width: .9em; height: .9em; border-radius: .2em; vertical-align: -.1em; margin-right: .3em; }
.legend-swatch.band { background: var(--accent); opacity: .3; }
.legend-swatch.median { background: var(--accent); height: .25em; vertical-align: .2em; }
details { border-bottom: 1px solid var(--border); padding: .75rem 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details > div { padding-top: .5rem; }
.legal { max-width: 42rem; }
.legal h2 { font-size: 1.2rem; }

/* Artikelen: de regel met maker en datum, een knop halverwege, en de afsluitende knop met een regel over
   Plus of Pro als het onderwerp daarom vraagt. */
.byline a { color: inherit; }
.cta-inline { margin: 1.25rem 0; font-weight: 600; }
.cta-inline a::after { content: ' →'; }
.cta { background: var(--accent-soft); border-color: transparent; border-left: 4px solid var(--accent-fill); }
.cta .actions { margin-bottom: 0; }
.cta .cta-tier { margin: 1rem 0 0; font-size: 15px; color: var(--muted); }
.cta .cta-tier a { font-weight: 600; }

/* Tabellen die breder zijn dan het scherm: een schaduw aan de kant waar nog meer staat. */
.table-wrap {
  background:
    linear-gradient(to right, var(--bg) 30%, transparent) left / 2.5rem 100% no-repeat local,
    linear-gradient(to left, var(--bg) 30%, transparent) right / 2.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--text) 18%, transparent), transparent) left / .9rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--text) 18%, transparent), transparent) right / .9rem 100% no-repeat scroll;
}
.table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 30rem) { table { font-size: 14px; } th, td { padding: .45rem .55rem; } }

/* De grafiek schaalt mee met de breedte; op een telefoon krijgen de labels een grotere letter, zodat ze
   na het verkleinen nog leesbaar zijn (13px op 640 breed wordt anders 9px). */
@media (max-width: 32rem) { .chart text { font-size: 20px; } }

/* Schermafbeeldingen van de app, in het thema van de site: licht of donker. */
.shot { display: block; width: 100%; height: auto; border-radius: .75rem; border: 1px solid var(--border); background: var(--surface); }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .shot-light { display: none; } :root:not([data-theme='light']) .shot-dark { display: block; } }
:root[data-theme='dark'] .shot-light { display: none; }
:root[data-theme='dark'] .shot-dark { display: block; }

/* Kopjes in smalle kaarten niet midden in een samenstelling breken (FIRE-⏎getal). */
.card h3 { text-wrap: pretty; }
/* In een donkere band staat de donkere schermafbeelding, ook in het lichte thema. */
.night .shot-light { display: none; }
.night .shot-dark { display: block; }

/* Losse alinea's direct in <main class="wrap"> blijven op leesbreedte. */
main.wrap > p { max-width: 42rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Een schermafbeelding in een artikel: een figuur zonder de standaardmarge van de browser. */
/* Uitlegvideo's (video/): eigen bestanden, geen embed van buiten. Laden pas na een klik (preload="none"). */
figure.video { margin: 1.5rem 0; }
figure.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: .75rem; border: 1px solid var(--border); background: #0a1220; }
figure.video figcaption { color: var(--muted); font-size: 14px; margin-top: .5rem; }
figure.video ol.chapters { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .75rem 0 0; padding: 0; }
figure.video ol.chapters button { font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .75rem; cursor: pointer; }
figure.video ol.chapters button:hover { border-color: var(--accent); color: var(--accent); }
figure.video ol.chapters span { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .25rem; }
video::cue { font-family: var(--font); background: rgba(10, 18, 32, .84); color: #ffffff; }
figure.shot { margin: 1.5rem 0; padding: 0; border: 0; background: none; border-radius: 0; }
figure.shot img { display: block; width: 100%; height: auto; border-radius: .75rem; border: 1px solid var(--border); }
figure.shot figcaption { color: var(--muted); font-size: 14px; margin-top: .5rem; }
.table-wrap { position: relative; }
