/* =========================================================================
   VoltNieuws - design system
   Light, premium-clean, newspaper-worthy. One font family (system stack),
   one accent, one button scale, baseline spacing, readability first.
   ========================================================================= */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
/* icons declare their own fill/stroke explicitly - no global svg fill override */
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
:where(h1, h2, h3, h4) { line-height: 1.15; text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }

/* ----- Tokens ----- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --ink: #16191f;
  --ink-soft: #383f49;
  --muted: #5a6472;
  --line: #e6e8ec;
  --line-strong: #d3d7de;
  --paper: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef1f4;

  --accent: #0a5f3d;          /* AA on white (7.7:1) both as text and as fill */
  --accent-hover: #0b7048;
  --accent-tint: #e7f2ec;
  --accent-tint-line: #c9e3d6;

  --focus: #10552f;

  /* spacing scale (4px baseline) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --maxw: 1180px;
  --prose: 42rem;             /* ~66-72 chars at 18px */
  --radius: 10px;
  --radius-sm: 7px;
  --shadow-1: 0 1px 2px rgba(16,19,25,.05), 0 4px 14px rgba(16,19,25,.05);
  --shadow-2: 0 2px 6px rgba(16,19,25,.06), 0 12px 30px rgba(16,19,25,.08);
}

/* ----- Base ----- */
html { color-scheme: light; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

a { text-decoration: none; }
a:where(:not([class])) { color: var(--accent); }
a:where(:not([class])):hover { color: var(--accent-hover); }
/* content links (article body, legal pages, sources, cookie text) stay underlined for readability */
.prose a, .sources a, .cookie__text a, .article__byline a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s5); }

.skip-link {
  position: absolute; left: var(--s3); top: -100px;
  background: var(--ink); color: #fff; padding: var(--s2) var(--s4);
  border-radius: var(--radius-sm); z-index: 200; transition: top .15s ease;
}
.skip-link:focus { top: var(--s3); }

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

/* ----- Typography scale ----- */
.h-eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  padding-bottom: var(--s3); margin-bottom: var(--s5);
  border-bottom: 2px solid var(--ink);
}
.section-head h2 { font-size: 1.375rem; letter-spacing: -.01em; }
.section-head a { display: inline-flex; align-items: center; gap: 6px; font-size: .9375rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.section-head a:hover { color: var(--accent-hover); }
/* "Alle artikelen" arrow: keep it a small inline glyph (unsized svg would render ~89px) */
.section-head a svg { width: 18px; height: 18px; flex: none; }

/* ----- Buttons (one scale) ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-size: .9375rem; font-weight: 600; line-height: 1;
  padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 9px 14px; font-size: .875rem; }
/* Inline icons inside buttons: fixed size so an unsized <svg> can't collapse (0x0) or blow up */
.btn svg { width: 18px; height: 18px; flex: none; }

/* ----- Category chip (one style, no rainbow) ----- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint);
  border: 1px solid var(--accent-tint-line);
  padding: 4px 10px; border-radius: 999px; line-height: 1.2;
}
a.chip:hover { background: #dcebe3; }

/* ----- Header / masthead ----- */
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 50; }
.masthead__bar { display: flex; align-items: center; gap: var(--s5); padding-block: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.brand__mark svg { width: 18px; height: 18px; }
.brand__name { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.brand__tag { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 1px; }

.nav-toggle {
  margin-left: auto; display: none; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

.mainnav { margin-left: auto; }
.mainnav ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.mainnav a {
  display: inline-block; padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: .9375rem; font-weight: 600; color: var(--ink-soft);
}
.mainnav a:hover { color: var(--ink); background: var(--surface); }
.mainnav a[aria-current="page"] { color: var(--accent); }

/* ----- Card ----- */
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media {
  display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--accent-tint); margin-bottom: var(--s3); position: relative;
}
.card__media svg { width: 100%; height: 100%; }
.card__cat { margin-bottom: var(--s2); }
.card__title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.28; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--accent); }
.card__excerpt { color: var(--ink-soft); font-size: .9375rem; margin-top: var(--s2); }
.card__meta { margin-top: var(--s3); font-size: .8125rem; color: var(--muted); }
.card__meta time { font-variant-numeric: tabular-nums; }

.card--lead .card__media { max-height: 400px; }
.card--lead .card__title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.35rem); line-height: 1.1; letter-spacing: -.02em; }
.card--lead .card__title a { text-decoration: none; }
.card--lead .card__excerpt { font-size: 1.0625rem; margin-top: var(--s3); max-width: 46rem; }
.card--wide { flex-direction: row; gap: var(--s4); align-items: flex-start; }
.card--wide .card__media { width: 150px; flex: none; margin-bottom: 0; }

/* ----- Home grids ----- */
.home-lead {
  padding-block: var(--s7);
  display: grid; gap: var(--s7);
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: start;
}
.home-lead__aside { border-left: 1px solid var(--line); padding-left: var(--s6); }

.latest-list { display: flex; flex-direction: column; }
.latest-list__item { padding-block: var(--s4); border-top: 1px solid var(--line); }
.latest-list__item:first-child { border-top: 0; padding-top: 0; }
.latest-list__item:last-child { padding-bottom: 0; }
.latest-list__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.latest-list__title a { color: var(--ink); }
.latest-list__title a:hover { color: var(--accent); }
.latest-list__meta { margin-top: 6px; font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }

.section { padding-block: var(--s7); border-top: 1px solid var(--line); }
.section--tint { background: var(--surface); border-top: 1px solid var(--line); }

.cards-grid { display: grid; gap: var(--s6) var(--s5); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ----- Rubrieken (category) cards ----- */
.rubrieken { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.rubriek {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rubriek:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.rubriek__icon { width: 34px; height: 34px; color: var(--accent); }
.rubriek__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.rubriek__desc { font-size: .9rem; color: var(--ink-soft); }
.rubriek__count { margin-top: auto; padding-top: var(--s2); font-size: .8125rem; font-weight: 600; color: var(--muted); }

/* ----- Home intro (H1) ----- */
.home-intro { padding-block: var(--s6) 0; max-width: 52rem; }
.home-intro__title {
  margin-top: var(--s2);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  letter-spacing: -.02em; line-height: 1.15;
}
.home-intro__lede { margin-top: var(--s3); color: var(--ink-soft); font-size: 1.0625rem; }

/* ----- Page header (category / static) ----- */
.page-head { padding-block: var(--s7) var(--s6); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.7rem); letter-spacing: -.02em; }
.page-head p { margin-top: var(--s3); color: var(--ink-soft); font-size: 1.0625rem; max-width: 48rem; }

/* ----- Breadcrumb ----- */
.crumbs { font-size: .8125rem; color: var(--muted); padding-block: var(--s4); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink-soft); }

/* ----- Pagination ----- */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s8); }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: .9375rem; font-weight: 600; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination [aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .is-disabled { opacity: .4; }

/* ----- Empty state ----- */
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: var(--s7) var(--s5); text-align: center; color: var(--ink-soft); background: var(--surface);
}
.empty h2 { font-size: 1.125rem; color: var(--ink); margin-bottom: var(--s2); }
.empty p { max-width: 34rem; margin-inline: auto; }
.empty .btn { margin-top: var(--s4); }

/* ----- Article ----- */
.article { padding-block: var(--s6) var(--s8); }
.article__header { max-width: var(--prose); margin-inline: auto; }
.article__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); letter-spacing: -.022em; line-height: 1.08; margin-top: var(--s4); }
.article__standfirst { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-soft); margin-top: var(--s5); }
.article__byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4);
  margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line);
  font-size: .875rem; color: var(--muted);
}
.article__byline strong { color: var(--ink-soft); font-weight: 600; }
.article__byline time { font-variant-numeric: tabular-nums; }
.article__hero { margin: var(--s6) auto 0; max-width: 60rem; }
.article__hero .media-plate { border-radius: var(--radius); aspect-ratio: 21 / 9; max-height: 360px; }

.prose { max-width: var(--prose); margin-inline: auto; margin-top: var(--s6); font-size: 1.125rem; line-height: 1.72; color: var(--ink); }
.prose > * + * { margin-top: var(--s5); }
.prose h2 { font-size: 1.4rem; letter-spacing: -.01em; margin-top: var(--s7); }
.prose h3 { font-size: 1.15rem; margin-top: var(--s6); }
.prose p { }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-hover); }
/* A .btn link inside prose keeps its own button colours (otherwise ".prose a" wins on
   specificity and paints the primary button's label green-on-green = invisible). */
.prose a.btn { text-decoration: none; }
.prose a.btn--primary, .prose a.btn--primary:hover { color: #fff; }
.prose a.btn--ghost, .prose a.btn--ghost:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: var(--s2); }
.prose strong { font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: var(--s2) 0 var(--s2) var(--s5);
  color: var(--ink-soft); font-size: 1.2rem; line-height: 1.5;
}

/* Sources / bronvermelding */
.sources { max-width: var(--prose); margin: var(--s8) auto 0; padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sources h2 { font-size: 1.0625rem; display: flex; align-items: center; gap: 8px; }
.sources h2 svg { width: 18px; height: 18px; color: var(--accent); }
.sources p.sources__note { font-size: .875rem; color: var(--muted); margin-top: var(--s2); }
.sources ol { margin-top: var(--s4); padding-left: 1.3em; display: flex; flex-direction: column; gap: var(--s3); }
.sources li { font-size: .9375rem; }
.sources a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.sources .src-pub { color: var(--muted); }

/* Tags */
.tags { max-width: var(--prose); margin: var(--s6) auto 0; display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.tags__label { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.tag { font-size: .8125rem; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
a.tag:hover { border-color: var(--line-strong); color: var(--ink); }

/* Related */
.related { border-top: 1px solid var(--line); }

/* ----- Static / prose page ----- */
.static-page { padding-block: var(--s7) var(--s8); }
.static-page .prose { margin-top: 0; }
.static-page .prose h2:first-child { margin-top: 0; }

/* ----- Ad slot (only rendered when a client id is configured) ----- */
.adslot { margin: var(--s7) auto; max-width: var(--maxw); text-align: center; }
.adslot__label { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.adslot ins { display: block; }

/* ----- Footer ----- */
.site-footer { margin-top: var(--s8); background: var(--surface); border-top: 1px solid var(--line); }
.site-footer__top { display: grid; gap: var(--s7); grid-template-columns: 1.4fr 1fr 1fr; padding-block: var(--s8) var(--s7); }
.site-footer__brand .brand { color: var(--ink); }
.site-footer__blurb { margin-top: var(--s3); color: var(--ink-soft); font-size: .9375rem; max-width: 30rem; }
.footer-col h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: var(--s3); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--s2); list-style: none; }
.footer-col a { font-size: .9375rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent); }
.site-footer__bottom { border-top: 1px solid var(--line); padding-block: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; align-items: center; font-size: .8125rem; color: var(--muted); }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.site-footer__bottom a:hover { color: var(--accent); }

/* Cookie-instellingen: knop die eruitziet als een footerlink (heropent de banner) */
.footer-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-size: inherit; font-weight: inherit; }
.footer-linkbtn:hover { color: var(--accent); }

/* Netwerkblok — bescheiden rij met zusterwebsites, boven de onderbalk */
.site-footer__network {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4);
  border-top: 1px solid var(--line); padding-block: var(--s5);
}
.site-footer__network-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.site-footer__network ul { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; }
.site-footer__network a { font-size: .875rem; color: var(--ink-soft); }
.site-footer__network a:hover { color: var(--accent); }

/* ----- Cookie banner ----- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--paper); border-top: 1px solid var(--line-strong); box-shadow: var(--shadow-2);
}
.cookie__inner {
  max-width: var(--maxw); margin-inline: auto; padding: var(--s5); display: flex; gap: var(--s5);
  align-items: center; flex-wrap: wrap;
}
.cookie__text { flex: 1 1 320px; min-width: 0; font-size: .9375rem; color: var(--ink-soft); line-height: 1.5; }
.cookie__text strong { color: var(--ink); display: block; margin-bottom: 2px; font-size: 1rem; }
.cookie__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: var(--s2); flex: none; }

/* ----- Media plate (generated category art / hero fallback) ----- */
.media-plate { width: 100%; height: 100%; display: block; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .home-lead { grid-template-columns: 1fr; gap: var(--s6); padding-block: var(--s6); }
  .home-lead__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: var(--s5); }
  .cards-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding-inline: var(--s4); }
  .nav-toggle { display: inline-flex; }
  .mainnav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    display: none; padding: var(--s3) var(--s4) var(--s5);
  }
  .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav a { padding: 12px var(--s3); border-radius: var(--radius-sm); }
  .mainnav li + li a { border-top: 1px solid var(--line); border-radius: 0; }

  .cards-grid, .cards-grid--3 { grid-template-columns: 1fr; }
  .card--wide .card__media { width: 116px; }
  .rubrieken { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; gap: var(--s6); }
  .cookie__inner { flex-direction: column; align-items: stretch; gap: var(--s4); }
  .cookie__actions { justify-content: stretch; }
  .cookie__actions .btn { flex: 1; }
  .section, .home-lead { padding-block: var(--s6); }
  .prose { font-size: 1.0625rem; }
}

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

@media print {
  .masthead, .site-footer, .cookie, .related, .tags, .nav-toggle { display: none !important; }
  .prose { max-width: none; }
  a { color: inherit; text-decoration: none; }
}
