/* ============================================================
   De Onderstroom — Design System
   Consolidated from design/press/ foundations + components
   ============================================================ */

/* ---- Google Fonts ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=Inter:wght@400;500;600;700&display=swap');

/* ---- Design tokens ---------------------------------------- */
:root {
  /* Color palette */
  --paper:     #F9F6F0;
  --ink:       #161412;
  --ink-soft:  #52493E;
  --hairline:  #D9D2C4;
  --accent:    #B23A1E;   /* vermiljoen — labels, framing-kant */
  --data:      #1A4D8F;   /* data-blauw — cijfers, bronlinks */
  --highlight: #F1EADB;   /* kaders, stat-blokken */
  --white:     #FFFFFF;

  /* Typefaces */
  --display: 'Playfair Display', Georgia, serif;
  --serif:   'Source Serif 4', Georgia, serif;
  --sans:    'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---- Base -------------------------------------------------- */
html { font-size: 16px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAPHY SCALE
   (from foundations/typography.html)
   ============================================================ */

.nameplate {
  font-family: var(--display);
  font-weight: 900;
  font-size: 56px;
  letter-spacing: -.01em;
}

.kop-1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.12;
}

.kop-2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.18;
}

.kop-3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
}

.standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.body-text {
  font-size: 17px;
  line-height: 1.62;
}

.byline {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.byline b { color: var(--ink); font-weight: 600; }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.label.alt { color: var(--data); }

.source-link {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--data);
  text-decoration: none;
  border-bottom: 1px solid var(--data);
}

/* ============================================================
   MASTHEAD COMPONENT
   (from components/masthead.html)
   ============================================================ */

.masthead {
  max-width: 1020px;
  margin: 0 auto;
}

.masthead .topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 7px 2px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.masthead .nameplate-wrap {
  text-align: center;
  padding: 24px 0 10px;
}

.masthead .nameplate-wrap h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 56px;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--ink);
}

.masthead .motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.masthead nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin-top: 18px;
  padding: 10px 0;
  margin-bottom: 30px;
}

.masthead nav a {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a.active { color: var(--accent); }

/* ============================================================
   SITE SHELL
   ============================================================ */

.site-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 36px 28px;
}

/* ============================================================
   FRONT PAGE GRID
   (from pages/front-page.html)
   ============================================================ */

.frontpage-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 0;
}

/* Lead column */
.lead {
  padding-right: 30px;
  border-right: 1px solid var(--hairline);
}

.lead h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.13;
  margin: 10px 0 12px;
}

.lead h2 a { color: inherit; text-decoration: none; }
.lead h2 a:hover { color: var(--accent); }

.lead .standfirst {
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.lead .byline {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.lead p.body {
  font-size: 15.5px;
  line-height: 1.62;
  margin-bottom: 14px;
}

/* Mini framing-module on front page */
.mini-module {
  background: var(--white);
  border: 1px solid var(--hairline);
  margin-top: 8px;
}

.mini-head {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-bottom: 2px solid var(--ink);
}

.mini-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mini-col { padding: 14px 16px; }
.mini-col + .mini-col { border-left: 1px solid var(--hairline); }

.mini-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mini-col.framing .mini-label { color: var(--accent); }
.mini-col.data .mini-label    { color: var(--data); }

.mini-col.framing q {
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.mini-col.data .fig {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  color: var(--data);
}

.mini-col.data small {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 4px;
}

/* Secondary sidebar */
.side { padding-left: 30px; }

.side article {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}

.side article:last-child { border-bottom: none; margin-bottom: 0; }

.side h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.22;
  margin: 8px 0;
}

.side h3 a { color: inherit; text-decoration: none; }
.side h3 a:hover { color: var(--accent); }

.side p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.side .label { font-size: 10px; }

/* ============================================================
   ARTICLE PAGE
   (from pages/article.html)
   ============================================================ */

.article-page {
  max-width: 680px;
  margin: 0 auto;
}

.crumb {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 10px;
  margin-bottom: 26px;
}

.crumb b {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 900;
}

.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { color: var(--accent); }

.article-page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.12;
  margin: 12px 0 16px;
}

.article-page .standfirst {
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.article-page .byline {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 9px 0;
  margin-bottom: 28px;
}

.article-page p.body {
  font-size: 17.5px;
  line-height: 1.66;
  margin-bottom: 20px;
}

/* Drop cap on first body paragraph */
.article-page p.body:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 900;
  font-size: 58px;
  float: left;
  line-height: .82;
  padding: 6px 10px 0 0;
}

/* Stat block (from components/stat-block.html + article styles) */
.stat {
  background: var(--highlight);
  border-top: 3px solid var(--ink);
  padding: 20px 24px;
  margin: 28px 0;
}

.stat .kicker {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.stat .figure {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--data);
  letter-spacing: -.02em;
}

.stat .context {
  font-size: 14.5px;
  line-height: 1.55;
  margin-top: 8px;
}

.stat .source {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--data);
  text-decoration: none;
  border-bottom: 1px solid var(--data);
  margin-top: 12px;
}

/* Bar chart variant */
.bars { display: grid; gap: 9px; margin-top: 16px; }

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 52px;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
}

.bar-track {
  background: var(--white);
  border: 1px solid var(--hairline);
  height: 14px;
}

.bar-fill { background: var(--data); height: 100%; }
.bar-row.ref .bar-fill { background: var(--ink-soft); }
.bar-val { font-weight: 600; color: var(--data); text-align: right; }
.bar-row.ref .bar-val { color: var(--ink-soft); }

/* ============================================================
   SOURCES FOOTER
   (from components/source-list.html + article.html)
   ============================================================ */

.sources {
  border-top: 3px solid var(--ink);
  margin-top: 36px;
  padding-top: 14px;
}

.sources h2 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sources .note {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.sources ul { list-style: none; }

.sources ul li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.sources ul li:last-child { border-bottom: none; }

.sources .arrow {
  color: var(--data);
  font-family: var(--sans);
}

.sources a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--data);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.sources a:hover { border-bottom-color: var(--data); }

/* Flat link list variant (article page) */
.sources-flat a {
  display: block;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--data);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
}

.sources-flat a:last-child { border-bottom: none; }

.sources .meta {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 3px;
}

.sources .meta .kind { color: var(--accent); font-weight: 600; }

/* ============================================================
   FRAMING VS DATA MODULE
   (from components/framing-vs-facts.html)
   ============================================================ */

.framing-module {
  max-width: 860px;
  background: var(--white);
  border: 1px solid var(--hairline);
  margin: 28px 0;
}

.framing-module .module-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 2px solid var(--ink);
}

.framing-module .module-head .tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 4px 8px;
}

.framing-module .module-head .topic {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.framing-module .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.framing-module .col { padding: 24px 24px 20px; }
.framing-module .col + .col { border-left: 1px solid var(--hairline); }

.framing-module .col-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.framing-module .col.framing .col-label { color: var(--accent); }
.framing-module .col.data .col-label    { color: var(--data); }

.framing-module .col.framing blockquote {
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.framing-module .col.framing cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 12px;
}

.framing-module .col.data .fig-num {
  font-family: var(--sans);
  font-size: 44px;
  font-weight: 700;
  color: var(--data);
  line-height: 1;
  letter-spacing: -.02em;
}

.framing-module .col.data .fig-context {
  font-size: 15px;
  line-height: 1.55;
  margin-top: 10px;
}

.framing-module .module-foot {
  padding: 10px 20px;
  border-top: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-soft);
}

/* ============================================================
   ARCHIVE PAGE
   (from pages/archive.html)
   ============================================================ */

.archive-page {
  max-width: 760px;
  margin: 0 auto;
}

.archive-page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 8px;
}

.archive-page .intro {
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 30px;
  max-width: 56ch;
  line-height: 1.5;
}

.digest-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}

.digest-row:first-of-type { border-top: 3px solid var(--ink); }

.digest-row .when {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.digest-row .when b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.digest-row h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.digest-row h2 a { color: inherit; text-decoration: none; }
.digest-row h2 a:hover { color: var(--accent); }

.digest-row .themes {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.digest-row .meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.digest-row .meta .count { color: var(--data); font-weight: 600; }

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 7px;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ============================================================
   DIGEST PAGE
   ============================================================ */

.digest-page {
  max-width: 760px;
  margin: 0 auto;
}

.digest-page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  margin: 12px 0 14px;
}

.digest-page .digest-meta {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: 8px 0;
  margin-bottom: 28px;
}

.digest-page .digest-meta span { margin-right: 18px; }
.digest-page .digest-meta .count { color: var(--data); font-weight: 600; }

/* Digest body content */
.digest-body { font-size: 16.5px; line-height: 1.65; }
.digest-body p { margin-bottom: 18px; }

.digest-body h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin: 32px 0 12px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.digest-body h2:first-of-type { border-top: none; padding-top: 0; }

.digest-body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  margin: 22px 0 8px;
}

.digest-body ul,
.digest-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.digest-body li { margin-bottom: 6px; line-height: 1.6; }

.digest-body hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 28px 0;
}

/* Catalog item links — placeholder style, resolved in a later publish step */
.catalog-link {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--data);
  text-decoration: none;
  border-bottom: 1px solid var(--data);
  opacity: 0.7;
  cursor: default;
}

.catalog-link::before { content: '→ '; }

/* TL;DR block */
.digest-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  margin: 18px 0;
  background: var(--highlight);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  border-top: 3px solid var(--ink);
  margin-top: 34px;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 760px) {
  .frontpage-grid {
    grid-template-columns: 1fr;
  }

  .lead {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .side { padding-left: 0; }

  .masthead nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .digest-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mini-cols,
  .framing-module .cols {
    grid-template-columns: 1fr;
  }

  .mini-col + .mini-col,
  .framing-module .col + .col {
    border-left: none;
    border-top: 1px solid var(--hairline);
  }
}

/* ============================================================
   DOSSIER PAGES (generated from chronicles by `xcatalog publish`)
   ============================================================ */

.dossier,
.dossier-index {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 0 44px;
}

.dossier-head {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
}

.dossier-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  margin: 8px 0 12px;
}

.dossier-head .byline { font-size: 12.5px; }

/* Section heads: "Stand van zaken — …" and "Tijdlijn" */
.dossier h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.2;
  margin: 36px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}

.dossier h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.dossier p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 17px;
}

/* Timeline day labels (### 2026-06-29) */
.dossier h3 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink-soft);
  margin: 30px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hairline);
}

.dossier ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.dossier li {
  line-height: 1.6;
  margin-bottom: 15px;
  padding-left: 16px;
  border-left: 2px solid var(--hairline);
}

.dossier li strong { font-weight: 600; }

/* Sourcing-tier chips — `BEVESTIGD` / `GEMELD` render as inline code.
   Mono chip, Style A: a tag, not a verdict. */
.dossier li code {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 1px 6px 2px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--ink-soft);
  background: transparent;
  vertical-align: 1px;
}

/* Verification tiers: externally corroborated = data-blauw, disputed = vermiljoen */
.dossier li code.chip-extern {
  color: var(--data);
  border-color: var(--data);
}

.dossier li code.chip-betwist {
  color: var(--accent);
  border-color: var(--accent);
}

/* Legend line directly under the Tijdlijn heading */
.dossier h2 + p > em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* Source links — small sans "bron" tags in data-blauw */
.dossier li a,
.dossier p a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--data);
  text-decoration: none;
  border-bottom: 1px solid var(--data);
  white-space: nowrap;
}

.dossier hr {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 32px 0;
}

.dossier-foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Dossier index */
.dossier-index h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 10px;
}

.dossier-index .standfirst { margin-bottom: 28px; }

.dossier-index article {
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}

.dossier-index article h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 6px;
}

.dossier-index article h2 a { color: inherit; text-decoration: none; }

.dossier-index article p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
}
