@charset "UTF-8";
/* DagWeek.nl — eigen stylesheet, geen frameworks, geen jQuery. */

/* ---------- tokens ---------- */
:root {
  --accent: #0b7285;
  --accent-soft: #e3f3f6;
  --accent-ink: #06525f;

  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --border: #dde3e6;
  --border-strong: #c3ced3;

  --ink: #16242a;
  --ink-soft: #4d6168;
  --ink-mute: #76898f;

  --vrij: #b5391f;
  --vrij-soft: #fdeeea;
  --vakantie: #946200;
  --vakantie-soft: #fff6e0;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 36, 42, .06), 0 8px 24px -12px rgba(16, 36, 42, .18);
  --wrap: 68rem;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #4bb8cd;
    --accent-soft: #10323a;
    --accent-ink: #9fdeea;

    --bg: #0b1114;
    --surface: #131c20;
    --surface-2: #18242a;
    --border: #25343b;
    --border-strong: #32464f;

    --ink: #e6eef1;
    --ink-soft: #a9bcc3;
    --ink-mute: #7d9299;

    --vrij: #ff9478;
    --vrij-soft: #3a1b14;
    --vakantie: #e8bd63;
    --vakantie-soft: #33280d;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
  }
}

:root[data-theme="dark"] {
  --accent: #4bb8cd;
  --accent-soft: #10323a;
  --accent-ink: #9fdeea;
  --bg: #0b1114;
  --surface: #131c20;
  --surface-2: #18242a;
  --border: #25343b;
  --border-strong: #32464f;
  --ink: #e6eef1;
  --ink-soft: #a9bcc3;
  --ink-mute: #7d9299;
  --vrij: #ff9478;
  --vrij-soft: #3a1b14;
  --vakantie: #e8bd63;
  --vakantie-soft: #33280d;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -14px rgba(0, 0, 0, .7);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.65 var(--font);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); margin-top: 2rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li + li { margin-top: .25rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
main.wrap { flex: 1 0 auto; padding-block: clamp(1.5rem, 4vw, 2.75rem); }

.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.print-only { display: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
}
.site-header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4rem; flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark {
  display: grid; place-items: center;
  width: 2.3rem; height: 2.3rem;
  background: var(--accent); color: #fff;
  border-radius: 9px;
  font: 650 1rem/1 var(--font-num);
  font-variant-numeric: tabular-nums;
}
.brand__text { font-size: 1.2rem; letter-spacing: -.02em; }
.brand__text strong { font-weight: 750; }
.brand__tld { color: var(--ink-mute); font-size: .85em; }

.nav-toggle {
  display: none; align-items: center; gap: .5rem;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .5rem .8rem; font: inherit; font-size: .9rem; cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 1rem; height: 2px; background: currentColor; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav ul { display: flex; flex-wrap: wrap; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a {
  display: block; padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; white-space: nowrap;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }

@media (max-width: 52rem) {
  .nav-toggle { display: inline-flex; }
  .nav { flex-basis: 100%; display: none; padding-bottom: .75rem; }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; gap: .1rem; }
  .nav a { padding: .7rem .75rem; }
}

/* ---------- hero: het weeknummer ---------- */
.hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  display: grid; gap: clamp(1rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  margin-bottom: 1.5rem;
}
@media (min-width: 46rem) { .hero { grid-template-columns: auto minmax(0, 1fr); } }

.hero__week { text-align: center; }
.hero__label { display: block; color: var(--ink-soft); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.hero__number {
  display: block;
  font: 300 clamp(5rem, 16vw, 9.5rem)/0.95 var(--font);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  letter-spacing: -.04em;
}
.hero__range { display: block; color: var(--ink-soft); font-size: .95rem; }

.hero__facts { display: grid; gap: .75rem; }
.hero__today { font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); font-weight: 650; margin: 0; }
.hero__datum { margin: .1rem 0 0; color: var(--ink-soft); font-size: 1rem; }

.factgrid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); margin: .25rem 0 0; padding: 0; list-style: none; }
.factgrid li { margin: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .75rem; }
.factgrid dt, .factgrid .factgrid__label { display: block; color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.factgrid .factgrid__value { display: block; font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; text-decoration: none; color: inherit; display: block;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
a.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.card h2, .card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: 1.5rem;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.prose { max-width: 42rem; }
.prose h2 { padding-top: .25rem; }

/* ---------- toolbar / paginatie ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin-bottom: 1.25rem;
}
.toolbar__spacer { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent); color: #fff; border: 1px solid transparent;
  border-radius: var(--radius-sm); padding: .55rem 1rem;
  font: inherit; font-size: .92rem; font-weight: 550;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-ink); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--accent); }

.yearnav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.yearnav__current { font-weight: 650; font-variant-numeric: tabular-nums; padding-inline: .25rem; }

select.select {
  font: inherit; padding: .5rem .6rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
}

/* ---------- tabellen ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%; border-collapse: collapse; font-size: .95rem;
  background: var(--surface);
}
table.data caption { text-align: left; color: var(--ink-soft); font-size: .9rem; padding-bottom: .5rem; }
table.data th, table.data td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data thead th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data td.num, table.data th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr.is-today { background: var(--accent-soft); }
table.data tr.is-today td { font-weight: 600; }

.tag {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: .12rem .5rem; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--border);
}
.tag--vrij { background: var(--vrij-soft); color: var(--vrij); border-color: transparent; }
.tag--vakantie { background: var(--vakantie-soft); color: var(--vakantie); border-color: transparent; }
.tag--nu { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }

/* ---------- jaarkalender ---------- */
.calendar-year {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.month {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .85rem;
  break-inside: avoid;
}
.month__name { margin: 0 0 .5rem; font-size: 1rem; text-transform: capitalize; }
.month table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.month th, .month td { padding: .22rem; text-align: center; font-variant-numeric: tabular-nums; }
.month thead th { color: var(--ink-mute); font-weight: 600; font-size: .72rem; text-transform: uppercase; }
.month .wk {
  color: var(--ink-mute); font-size: .72rem; font-weight: 600;
  border-right: 1px solid var(--border); padding-right: .4rem;
}
.month .wk a { color: var(--ink-mute); text-decoration: none; }
.month .wk a:hover { color: var(--accent); text-decoration: underline; }
.month td.day { border-radius: 6px; }
.month td.weekend { color: var(--ink-mute); }
.month td.holiday { background: var(--vrij-soft); color: var(--vrij); font-weight: 650; }
.month td.today { background: var(--accent); color: #fff; font-weight: 700; }
.month td.empty { color: transparent; }

.legend { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; list-style: none; padding: 0; margin: 1.25rem 0 0; font-size: .875rem; color: var(--ink-soft); }
.legend li { display: flex; align-items: center; gap: .4rem; margin: 0; }
.legend .swatch { width: .9rem; height: .9rem; border-radius: 4px; border: 1px solid var(--border); }
.legend .swatch--today { background: var(--accent); border-color: transparent; }
.legend .swatch--holiday { background: var(--vrij-soft); border-color: transparent; }

/* ---------- weekoverzicht ---------- */
.weekdays { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); list-style: none; padding: 0; margin: 0 0 1.5rem; }
.weekdays li {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .75rem;
}
.weekdays li.is-today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.weekdays li.is-weekend { background: var(--surface-2); }
.weekdays__day { display: block; color: var(--ink-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.weekdays__date { display: block; font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.weekdays__meta { display: block; font-size: .8rem; color: var(--ink-soft); }

/* ---------- formulier ---------- */
.form { display: grid; gap: 1rem; max-width: 34rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea {
  font: inherit; width: 100%;
  padding: .6rem .7rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field--error input, .field--error textarea { border-color: var(--vrij); }
.field__error { color: var(--vrij); font-size: .85rem; }
.field__hint { color: var(--ink-soft); font-size: .85rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1.25rem; border: 1px solid; }
.notice--ok { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.notice--error { background: var(--vrij-soft); border-color: transparent; color: var(--vrij); }
.notice > :last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 2.5rem; }
.site-footer__inner { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding-block: 2rem; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin: 0 0 .6rem; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { margin: 0 0 .3rem; }
.linklist a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; }
.linklist a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; border-top: 1px solid var(--border); padding-block: 1rem; color: var(--ink-mute); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- cookiebar ---------- */
.cookiebar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--border-strong); box-shadow: 0 -8px 24px -16px rgba(0,0,0,.4); }
.cookiebar__inner { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; padding-block: .9rem; }
.cookiebar p { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.cookiebar__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- advertenties ---------- */
.ad { margin: 1.5rem 0; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad:empty { display: none; }

[hidden] { display: none !important; }

/* ---------- compacte maandkalender ---------- */
.hero__kalender { display: flex; justify-content: center; }

.monthpicker {
  width: 100%; max-width: 22rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .7rem;
}

.monthpicker__head { display: flex; align-items: center; gap: .35rem; margin-bottom: .6rem; }

.monthpicker__arrow {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 1.15rem; line-height: 1; text-decoration: none;
}
.monthpicker__arrow:hover { background: var(--accent-ink); color: #fff; }

.monthpicker__select {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: .9rem;
  padding: .35rem .4rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
}

.monthpicker__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.monthpicker__grid th,
.monthpicker__grid td { padding: 1px; text-align: center; }

.monthpicker__grid thead th {
  font-size: .72rem; font-weight: 700; text-transform: lowercase;
  color: var(--ink-soft); padding-bottom: .3rem;
}
.monthpicker__grid abbr { text-decoration: none; border: 0; }

.monthpicker__grid .mp-wk {
  font-size: .72rem; font-weight: 600; color: var(--ink-mute);
  border-right: 1px solid var(--border);
}
.monthpicker__grid .mp-wk a { color: var(--ink-mute); text-decoration: none; }
.monthpicker__grid .mp-wk a:hover { color: var(--accent); text-decoration: underline; }

.monthpicker__grid td a {
  display: block; padding: .3rem 0;
  border: 1px solid transparent; border-radius: 6px;
  background: var(--surface);
  color: var(--accent); font-size: .88rem; font-weight: 600;
  font-variant-numeric: tabular-nums; text-decoration: none;
}
.monthpicker__grid td a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.monthpicker__grid td.is-weekend a { color: var(--ink-soft); }
.monthpicker__grid td.is-feestdag a { background: var(--vrij-soft); color: var(--vrij); }
.monthpicker__grid td.is-vandaag a {
  border-color: var(--ink); background: var(--surface);
  color: var(--ink); font-weight: 750;
}
.monthpicker__grid td.mp-leeg { background: none; }

.monthpicker__foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--border);
}
.btn--small { padding: .32rem .7rem; font-size: .85rem; }
.monthpicker__jaar { font-size: .85rem; color: var(--ink-soft); text-decoration: none; }
.monthpicker__jaar:hover { color: var(--accent); }

/* Op brede schermen staat de kalender naast het weeknummer en de feiten. */
@media (min-width: 62rem) {
  .hero { grid-template-columns: auto minmax(0, 1fr) auto; }
  .hero__kalender { justify-content: flex-end; }
}
/* ---------- kruimelpad ---------- */
.kruimels { background: var(--surface); border-bottom: 1px solid var(--border); font-size: .85rem; }
.kruimels ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem;
  list-style: none; margin: 0; padding: .55rem 0;
}
.kruimels li { margin: 0; display: flex; align-items: center; gap: .3rem; color: var(--ink-soft); }
.kruimels li + li::before { content: "/"; color: var(--ink-mute); }
.kruimels a { color: var(--ink-soft); text-decoration: none; }
.kruimels a:hover { color: var(--accent); text-decoration: underline; }
.kruimels [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- inleidende alinea ---------- */
.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 46rem; }
.lead strong { color: var(--ink); }

/* ---------- weeknummertabel ---------- */
table.data--weken th[scope="row"] { white-space: nowrap; }
table.data--weken th[scope="row"] a { text-decoration: none; font-weight: 650; }
table.data--weken th[scope="row"] a:hover { text-decoration: underline; }

.jaarlijst { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; padding: 0; }
.jaarlijst li { margin: 0; }

/* ---------- omrekenen ---------- */
.rekenblokken { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.rekenblok { margin: 0; }
.rekenblok h2 { margin-top: 0; font-size: 1.15rem; }

.form--inline { gap: .75rem; max-width: none; }
.veldrij { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.uitslag {
  margin-top: 1rem; padding: 1rem;
  background: var(--accent-soft); border-radius: var(--radius-sm);
}
.uitslag__label { margin: 0; font-size: .9rem; color: var(--accent-ink); }
.uitslag__groot {
  margin: .15rem 0 .5rem;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 650; line-height: 1.15; color: var(--accent-ink);
}
.uitslag__groot a { color: inherit; text-decoration: none; }
.uitslag__groot a:hover { text-decoration: underline; }
.uitslag__detail { list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--accent-ink); }
.uitslag__detail li { margin: 0 0 .15rem; }
/* ---------- antwoord-eerst blok ---------- */
.antwoord {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  max-width: 48rem;
}
.antwoord__kern {
  margin: 0;
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  line-height: 1.5;
  color: var(--accent-ink);
}
.antwoord__kern strong { font-weight: 700; }
.antwoord__extra { margin: .5rem 0 0; font-size: .92rem; color: var(--accent-ink); opacity: .85; }
/* ---------- toegankelijkheid ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
/* ---------- print ---------- */
@page {
  size: A4 portrait;
  margin: 9mm 8mm;
}

@media print {
  :root {
    --surface: #fff; --surface-2: #fff; --bg: #fff;
    --ink: #000; --ink-soft: #333; --ink-mute: #555;
    --border: #bbb; --border-strong: #999;
    --accent: #000; --accent-soft: #eee; --accent-ink: #000;
    --vrij: #000; --vrij-soft: #e8e8e8;
    --shadow: none;
  }

  html, body { background: #fff; color: #000; }
  /* De flex-stretch van het scherm zou hier een lege tweede pagina geven. */
  body { display: block; min-height: 0; font-size: 9pt; line-height: 1.3; }
  main.wrap { flex: none; }

  /* Navigatie, knoppen, advertenties en toelichtende tekstblokken weg. */
  .site-header,
  .site-footer__inner,
  .nav, .nav-toggle, .toolbar, .yearnav,
  .cookiebar, .ad, .skip,
  .monthpicker__head, .monthpicker__foot,
  .legend { display: none !important; }

  /* Op de jaarkalender is de toelichting niet gewenst op papier.
     Op /weeknummer is diezelfde opmaak juist de hele inhoud. */
  body[data-route="kalender"] .panel.prose { display: none !important; }

  .print-only { display: block; }

  main.wrap { padding: 0; max-width: none; width: 100%; }
  .wrap { padding-inline: 0; }

  h1 { font-size: 14pt; margin: 0 0 2mm; }
  h2 { font-size: 11pt; margin: 3mm 0 1.5mm; page-break-after: avoid; }
  p { margin: 0 0 2mm; }

  .panel, .card, .hero { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }

  a { color: #000; text-decoration: none; }

  .site-footer { border: 0; margin: 2mm 0 0; }
  .site-footer__bottom { border: 0; justify-content: center; padding: 1mm 0; font-size: 7pt; }

  /* --- jaarkalender: alle twaalf maanden op één A4 --- */
  .calendar-year {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5mm;
    page-break-inside: avoid;
  }

  .month {
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 2mm 2.2mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .month__name { font-size: 11pt; margin: 0 0 1.6mm; font-weight: 700; }
  .month table { font-size: 10pt; line-height: 1.3; }
  .month th, .month td { padding: 0.5mm 0; }
  .month thead th { font-size: 8pt; padding-bottom: .9mm; }
  .month .wk { font-size: 8pt; padding-right: 1.5mm; }
  .month td.holiday { background: #e4e4e4 !important; font-weight: 700; }
  .month td.today { background: #c9c9c9 !important; color: #000 !important; font-weight: 700; }
  .month td.weekend { color: #666; }

  /* Tabellen compact en nooit half over een paginagrens. */
  .table-scroll { overflow: visible !important; }
  table.data { font-size: 8pt; }
  table.data th, table.data td { padding: .8mm 1.5mm; }
  table.data thead { display: table-header-group; }
  table.data tr { break-inside: avoid; }
  table.data tbody tr:hover { background: none; }
  table.data tr.is-today { background: #e4e4e4 !important; }
  .tag { border: 1px solid #999; background: none !important; color: #000 !important; }
}
