/* ==========================================================
   GBS Ten Bos · "Het bos"
   Gelaagde groene heuvels als ritme, een speelse groene kopbalk,
   en Ed (blauw), Tyto (rood) en Flo (geel) als wegwijzers.
   ========================================================== */
:root {
  --paper: #fbfdf3;
  --b1: #f2f7e1;
  --b2: #e2eec6;
  --b3: #d0e3a3;
  --mos: #79a62b;
  --mos-2: #93bf47;
  --mos-3: #a9cf63;
  --bos: #1e4526;
  --forest: #163a1f;
  --ink: #17231a;
  --muted: #45533f;
  --line: #c5d6a2;
  --card: #ffffff;
  --ed: #0f5ba8;
  --tyto: #c8073d;
  --flo: #f5b50f;
  --flo-soft: #fdf0c4;
  --tyto-soft: #fbe3e8;
  --ed-soft: #e1edf9;
  --link: #1e5a1f;
  --focus: #0b3d91;
  --halo: #ffffff;
  --on-dark: #f3f8e6;
  --shadow: 0 10px 30px -18px rgb(30 69 38 / .45);
  --w: 1180px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-mode="dark"] {
  --paper: #0e1910;
  --b1: #122015;
  --b2: #172a1a;
  --b3: #1d3420;
  --mos: #2f5320;
  --mos-2: #3a6527;
  --mos-3: #44722d;
  --bos: #c9e59a;
  --forest: #08120a;
  --ink: #e9f2dc;
  --muted: #bccab2;
  --line: #34502c;
  --card: #18271a;
  --ed: #8cbcf2;
  --tyto: #ff8aa4;
  --flo: #ffd257;
  --flo-soft: #3a3214;
  --tyto-soft: #3d1a22;
  --ed-soft: #172a40;
  --link: #b9df7a;
  --focus: #ffd257;
  --halo: #0e1910;
  --on-dark: #eef6e2;
  --shadow: 0 10px 30px -18px rgb(0 0 0 / .8);
  color-scheme: dark;
}

/* ---------- basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; overflow-wrap: break-word; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--bos); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 6.2vw, 4.9rem); }
h2 { font-weight: 800; font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-weight: 700; font-size: 1.55rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 7px var(--halo); border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--w), 100% - 40px); margin-inline: auto; }
.preview-note { background: var(--flo); color: #1b1a10; text-align: center; font-size: .9rem; padding: 6px 16px; }

/* ---------- knoppen ---------- */
.btn, a.btn { display: inline-flex; align-items: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px; border: 2px solid var(--bos);
  background: var(--bos); color: var(--paper); font: 700 1.02rem/1.2 var(--text); text-decoration: none; cursor: pointer; margin: 0 .5em .5em 0; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn .arr { width: 1.05em; height: 1.05em; flex: none; }
.btn.ghost, a.btn.ghost { background: transparent; color: var(--bos); }
.btn.ghost:hover { background: var(--b2); }
.btn.yellow { background: var(--flo); border-color: var(--flo); color: #1b1a10; }
.btn.yellow:hover { background: #ffd257; }
:root[data-mode="dark"] .btn:not(.ghost):not(.yellow) { color: #10200f; }
:root[data-mode="dark"] .btn:not(.ghost):not(.yellow):hover { background: #e3f3c6; border-color: #e3f3c6; }
.more-link { font-weight: 700; color: var(--link); display: inline-flex; gap: .35em; align-items: center; }
.more-link .arr { width: 1em; height: 1em; }
p.concept { border: 2px dashed var(--tyto); background: var(--tyto-soft); border-radius: 14px; padding: .6em .9em; font-size: .95rem; color: var(--ink); }
p.big-line { font-family: var(--display); font-weight: 700; font-size: 1.8rem; line-height: 1.15; color: var(--bos); }

/* ---------- kop: de groene kruin ---------- */
.site-header { position: relative; z-index: 50; }
.bar { position: relative; background: var(--mos); min-height: 92px; display: flex; align-items: center; gap: 18px;
  padding: 10px max(20px, calc((100% - var(--w)) / 2)) 14px; }
.canopy { position: absolute; left: 0; right: 0; top: 100%; width: 100%; height: 40px; pointer-events: none; }
.canopy .c1 { fill: var(--mos); }
.canopy .c2 { fill: var(--mos-2); }
.brand { position: relative; z-index: 2; flex: none; align-self: flex-start; margin-top: -2px; margin-bottom: -46px;
  background: #fff; border-radius: 46% 54% 52% 48% / 56% 50% 50% 44%; padding: 10px 14px 12px; box-shadow: var(--shadow); }
.brand img { width: 104px; }
.primary-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; border: 0; background: none;
  font: 700 1rem/1.2 var(--text); color: #10200f; text-decoration: none; cursor: pointer; }
.menu > li > a:hover, .menu > li > button:hover, .menu > li > button[aria-expanded="true"] { background: rgb(255 255 255 / .55); }
.menu > li > a[aria-current="page"], .menu > li.has-current > button { background: #fff; }
.menu .chev { transition: transform .2s; }
.menu button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu > li.m-cta > a { background: var(--flo); color: #1b1a10; box-shadow: 0 3px 0 #c98f00; }
.menu > li.m-cta > a:hover { background: #ffd257; }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); min-width: 240px;
  background: var(--card); border-radius: 22px 22px 26px 18px; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .35); border: 2px solid var(--line); }
.sub[hidden] { display: none; }
.sub a { display: block; padding: 9px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.sub a:hover { background: var(--b2); }
.sub a[aria-current="page"] { background: var(--b2); color: var(--bos); }
:root[data-mode="dark"] .menu > li > a, :root[data-mode="dark"] .menu > li > button { color: var(--ink); }
:root[data-mode="dark"] .menu > li > a[aria-current="page"], :root[data-mode="dark"] .menu > li.has-current > button { background: var(--paper); }
:root[data-mode="dark"] .menu > li > a:hover, :root[data-mode="dark"] .menu > li > button:hover { background: rgb(255 255 255 / .12); }
:root[data-mode="dark"] .menu > li.m-cta > a, :root[data-mode="dark"] .menu > li.m-cta > a[aria-current="page"] { background: var(--flo); color: #1b1a10; }
:root[data-mode="dark"] .menu > li.m-cta > a:hover { background: #ffe38a; }
:root[data-mode="dark"] .brand { background: #f6f9ee; }

.nav-search { display: flex; align-items: center; background: rgb(255 255 255 / .75); border-radius: 999px; padding: 2px 2px 2px 14px; border: 2px solid transparent; }
.nav-search:focus-within { background: #fff; border-color: var(--bos); }
.nav-search input { border: 0; background: none; font: inherit; font-size: .95rem; width: 92px; color: #10200f; padding: 6px 0; }
.nav-search input:focus { outline: none; }
.nav-search input::placeholder { color: #4b5a45; }
.nav-search button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bos); color: #fff; display: grid; place-items: center; cursor: pointer; }
:root[data-mode="dark"] .nav-search { background: rgb(0 0 0 / .25); }
:root[data-mode="dark"] .nav-search input { color: var(--ink); }
:root[data-mode="dark"] .nav-search input::placeholder { color: #c2cfb6; }
:root[data-mode="dark"] .nav-search button { background: var(--bos); color: #10200f; }

.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.kwieb-badge { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--tyto);
  color: #fff; font-weight: 700; transition: box-shadow .25s, transform .25s; box-shadow: 0 0 0 0 rgb(245 181 15 / 0); }
.kb-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--tyto); }
.kb-dot img { width: 40px; height: 40px; }
.kwieb-badge:hover { box-shadow: 0 0 0 5px var(--flo), 0 0 26px 8px rgb(245 181 15 / .75); transform: translateY(-1px); }
:root[data-mode="dark"] .kwieb-badge, :root[data-mode="dark"] .kb-dot { background: #b0063a; }
.mode-toggle, .menu-toggle { height: 46px; min-width: 46px; border-radius: 999px; border: 2px solid rgb(16 32 15 / .25); background: rgb(255 255 255 / .6);
  color: #10200f; display: inline-grid; place-items: center; cursor: pointer; font: 700 1rem var(--text); }
.mode-toggle:hover, .menu-toggle:hover { background: #fff; }
.mode-toggle .i-sun { display: none; }
.mode-toggle[aria-pressed="true"] .i-sun { display: block; }
.mode-toggle[aria-pressed="true"] .i-moon { display: none; }
:root[data-mode="dark"] .mode-toggle, :root[data-mode="dark"] .menu-toggle { background: rgb(0 0 0 / .25); color: var(--ink); border-color: rgb(255 255 255 / .25); }
.menu-toggle { display: none; padding: 0 14px; gap: 8px; grid-auto-flow: column; }
.mt-lines { display: grid; gap: 4px; width: 20px; }
.mt-lines i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .mt-lines i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .mt-lines i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .mt-lines i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1320px) { .menu > li.m-home { display: none; } .kb-txt { display: none; } .kwieb-badge { padding: 4px; } }
@media (max-width: 1120px) {
  html { scroll-padding-top: 90px; }
  body { padding-top: 76px; }
  .site-header { position: fixed; inset: 0 0 auto 0; }
  .bar { min-height: 76px; padding-block: 8px 10px; }
  .canopy { height: 22px; }
  .brand { margin-bottom: -30px; padding: 7px 10px 9px; }
  .brand img { width: 78px; }
  .menu-toggle { display: inline-grid; position: relative; z-index: 3; }
  .tools { margin-left: auto; position: relative; z-index: 3; }
  .primary-nav { position: fixed; inset: 76px 0 0 0; background: var(--paper); display: none; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 46px 20px 40px; overflow-y: auto; gap: 18px; }
  .primary-nav.open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; gap: 4px; }
  .menu > li.m-home { display: block; }
  .menu > li > a, .menu > li > button { width: 100%; justify-content: space-between; font-size: 1.2rem; padding: 13px 16px; color: var(--ink); background: var(--b1); border-radius: 18px; }
  .menu > li > a[aria-current="page"], .menu > li.has-current > button { background: var(--b3); }
  .menu > li > a:hover, .menu > li > button:hover { background: var(--b2); }
  .menu > li.m-cta > a { background: var(--flo); }
  .sub { position: static; transform: none; box-shadow: none; border: 0; background: none; padding: 4px 0 8px 14px; min-width: 0; }
  .nav-search { background: var(--card); border: 2px solid var(--line); }
  .nav-search input { width: 100%; flex: 1; color: var(--ink); }
}
@media (max-width: 560px) {
  .kb-txt { display: none; }
  .kwieb-badge { padding: 3px; }
  .mt-txt { display: none; }
  .menu-toggle { padding: 0; }
  .brand img { width: 70px; }
}

/* ---------- heuvels ---------- */
.hill { display: block; width: 100%; height: clamp(34px, 6vw, 80px); margin-top: -1px; }
.b1c { color: var(--b1); } .b2c { color: var(--b2); } .b3c { color: var(--b3); }
.band { position: relative; }
.band.b1 { background: var(--b1); } .band.b2 { background: var(--b2); } .band.b3 { background: var(--b3); }
.band > .wrap { padding-block: clamp(48px, 7vw, 92px) clamp(28px, 4vw, 52px); }
.band .hill { margin-bottom: -1px; }
/* the wave on top of the CTA takes the colour of the band above it, also when an empty feed band (agenda, nieuws) is hidden
   (the wave at the bottom of the band before a hidden one is recoloured by hideEmptyBlock in site.js) */
:is(.band.b1:not([hidden]) + .cta, .band.b1:not([hidden]) + [hidden] + .cta) > .cta-hill { background: var(--b1); }
:is(.band.b2:not([hidden]) + .cta, .band.b2:not([hidden]) + [hidden] + .cta) > .cta-hill { background: var(--b2); }
:is(.band.b3:not([hidden]) + .cta, .band.b3:not([hidden]) + [hidden] + .cta) > .cta-hill { background: var(--b3); }
.sec-h { margin-bottom: .25em; }
.sec-lede { font-size: 1.15rem; max-width: 60ch; color: var(--muted); }
.two { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.two.rev { grid-template-columns: .95fr 1.05fr; }
.two-a { display: grid; grid-template-columns: .8fr 1.5fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two, .two.rev, .two-a { grid-template-columns: 1fr; } }
.blob-a img, .blob-a { border-radius: 58% 42% 46% 54% / 46% 56% 44% 54%; }
.blob-b img, .blob-b { border-radius: 42% 58% 60% 40% / 54% 42% 58% 46%; }
.blob-a img, .blob-b img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--paper); padding-top: clamp(64px, 8vw, 96px); }
.hero-in { width: min(var(--w), 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-text h1 { color: var(--bos); margin-bottom: .3em; }
.hero-text .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 36ch; color: var(--muted); }
.hero-btns { margin-top: 1.4em; }
.hero-visual { position: relative; padding: 0 0 56px 40px; }
.hero-photo { position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: -18px -14px 18px 26px; background: var(--b3); border-radius: 52% 48% 40% 60% / 56% 46% 54% 44%; z-index: 0; }
.hero-photo [data-slot] { position: relative; z-index: 1; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 46% 54% 38% 62% / 52% 44% 56% 48%; }
.hero-friends { position: absolute; left: -24px; bottom: -6px; width: clamp(150px, 19vw, 250px); z-index: 2; filter: drop-shadow(0 12px 18px rgb(30 69 38 / .3)); }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { padding: 0 0 40px 30px; }
  .hero-friends { left: -12px; width: 136px; }
}
.quick { width: min(var(--w), 100% - 40px); margin: clamp(22px, 3vw, 40px) auto 0; position: relative; z-index: 3; }
.quick ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ql a { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--card); text-decoration: none; color: var(--ink);
  border: 3px solid var(--qc); box-shadow: 0 5px 0 var(--qc); transition: transform .15s, box-shadow .15s; }
.ql a:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--qc); }
.ql-flo { --qc: var(--flo); } .ql-tyto { --qc: var(--tyto); } .ql-ed { --qc: var(--ed); }
.ql-face { flex: none; position: relative; width: 74px; height: 74px; border-radius: 50%; background: color-mix(in srgb, var(--qc) 22%, var(--card)); margin-block: -14px -4px; }
.ql-face img { position: absolute; left: 50%; bottom: 0; width: 96px; height: 96px; max-width: none; transform: translateX(-50%); object-fit: contain; transition: transform .2s; }
.ql a:hover .ql-face img { transform: translateX(-50%) translateY(-4px) rotate(-4deg); }
.ql a { padding-block: 14px 10px; }
.ql-txt { display: grid; line-height: 1.2; }
.ql-txt b { font: 800 1.55rem/1.05 var(--display); color: var(--bos); }
.ql-txt span { font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .quick ul { grid-template-columns: 1fr; gap: 26px; } }
.h-hill { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- welkom ---------- */
.welkom .prose { font-size: 1.1rem; }
.welkom-img { position: relative; }
.welkom-img::after { content: ""; position: absolute; width: 90px; height: 90px; right: 6%; bottom: -14px; background: var(--flo); border-radius: 50%; z-index: -1; }
.welkom-img [data-slot] img { position: relative; }

/* ---------- troeven ---------- */
.troef-grid { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 34px; }
.troef { --tc: var(--mos); }
.t-ed { --tc: var(--ed); } .t-tyto { --tc: var(--tyto); } .t-flo { --tc: var(--flo); } .t-mos { --tc: var(--mos); }
.troef-img { position: relative; margin-bottom: 18px; }
.troef-img::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; background: var(--tc); z-index: 0; }
.troef-img [data-slot] { position: relative; z-index: 1; }
.troef-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shape-0 img, .shape-0::before { border-radius: 54% 46% 42% 58% / 48% 58% 42% 52%; }
.shape-1 img, .shape-1::before { border-radius: 40% 60% 56% 44% / 58% 44% 56% 42%; }
.shape-2 img, .shape-2::before { border-radius: 62% 38% 50% 50% / 44% 54% 46% 56%; }
.troef h3 { margin-bottom: .25em; }
.troef p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .troef-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .troef-grid { grid-template-columns: 1fr; } }

/* ---------- agenda ---------- */
.ag-head { position: relative; }
.ag-flo { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--flo); margin-bottom: 14px; }
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ag-item { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: 22px 26px 22px 18px; padding: 12px 16px 12px 12px; box-shadow: var(--shadow); }
.ag-date { flex: none; width: 64px; height: 66px; border-radius: 18px; background: var(--b2); display: grid; place-items: center; align-content: center; line-height: 1; color: var(--bos); }
.ag-date b { font: 800 1.9rem/1 var(--display); }
.ag-date span { font-size: .85rem; font-weight: 700; }
.ag-item[data-keys~="vakantie"] .ag-date { background: var(--flo); color: #1b1a10; }
.ag-item[data-keys~="vrij"] .ag-date { background: var(--tyto); color: #fff; }
.ag-item[data-keys~="activiteit"] .ag-date { background: var(--ed); color: #fff; }
:root[data-mode="dark"] .ag-item[data-keys~="vrij"] .ag-date, :root[data-mode="dark"] .ag-item[data-keys~="activiteit"] .ag-date { color: #10180f; }
.ag-txt { display: grid; flex: 1; min-width: 0; }
.ag-txt strong { font-size: 1.1rem; }
.ag-when { color: var(--muted); font-size: .95rem; }
.ag-tags { display: flex; gap: 6px; }
.ag-tag { font: 700 .82rem var(--text); padding: 4px 10px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; }
.ag-tag[aria-pressed="true"] { background: var(--bos); color: var(--paper); border-color: var(--bos); }
@media (max-width: 560px) { .ag-tags { display: none; } }
h3.agenda-month { margin: 26px 0 12px; font-size: 1.7rem; text-transform: none; }
h3.agenda-month:first-of-type { margin-top: 10px; }
.ag-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ag-chip { display: inline-flex; gap: 8px; align-items: center; font: 700 .95rem var(--text); padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.ag-chip .n { background: var(--b2); border-radius: 999px; padding: 0 8px; font-size: .82rem; }
.ag-chip[aria-pressed="true"] { background: var(--bos); color: var(--paper); border-color: var(--bos); }
.ag-chip[aria-pressed="true"] .n { background: var(--paper); color: var(--bos); }
.feed-status { color: var(--muted); }
.feed-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* ---------- video ---------- */
.video-pic { position: relative; display: block; }
.video-pic img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: inherit; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; background: var(--tyto); color: #fff;
  display: grid; place-items: center; box-shadow: 0 0 0 10px rgb(255 255 255 / .55); transition: transform .2s; }
.play svg { margin-left: 5px; }
.video-pic:hover .play { transform: translate(-50%, -50%) scale(1.07); }

/* ---------- nieuws ---------- */
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.news-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.news-card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 28px 28px 24px 24px; overflow: hidden; box-shadow: var(--shadow); }
.nc-img { position: relative; aspect-ratio: 16 / 10; background: var(--b2); }
.nc-img img { width: 100%; height: 100%; object-fit: cover; }
.media-count { position: absolute; left: 12px; bottom: 12px; background: rgb(16 32 15 / .82); color: #fff; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.nc-txt { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.nc-date { font-size: .9rem; color: var(--muted); margin: 0 0 .3em; }
.nc-txt h3 { font-size: 1.45rem; margin-bottom: .3em; }
.nc-sum { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-link { color: inherit; text-decoration: none; }
.nc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.nc-link:focus-visible { outline: 0; box-shadow: none; }
.news-card:has(.nc-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.nc-more { margin-top: auto; display: inline-flex; gap: .35em; align-items: center; font-weight: 700; color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nc-more .arr { width: 1em; height: 1em; }
.news-card:hover .nc-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- ouders ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 18px; }
.quote { --qc: var(--mos); margin: 0; background: var(--card); border-radius: 30px 30px 30px 8px; padding: 26px 24px 22px; position: relative; border-top: 6px solid var(--qc); }
.quote.q-ed { --qc: var(--ed); } .quote.q-tyto { --qc: var(--tyto); } .quote.q-flo { --qc: var(--flo); }
.quote blockquote { margin: 0 0 12px; font-size: 1.1rem; }
.quote blockquote p { margin: 0; }
.quote figcaption { font-weight: 700; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- cta: lichtgroene heuvel die overloopt in de donkere footer ---------- */
.cta { --cta-bg: var(--mos-3); --cta-ink: #10200f; background: var(--cta-bg); color: var(--cta-ink); }
:root[data-mode="dark"] .cta { --cta-bg: #2f5320; --cta-ink: var(--ink); }
.cta-hill { background: var(--b2); color: var(--cta-bg); margin-top: -1px; }
.cta-foot { color: var(--forest); background: var(--cta-bg); margin-top: 0; margin-bottom: -1px; }
.cta-in { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: 20px 36px; }
.cta h2 { color: var(--cta-ink); }
.cta p { font-size: 1.12rem; max-width: 56ch; }
.cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.cta-btns .btn { margin: 0; }
.cta-tel { color: var(--cta-ink); font-weight: 700; }
.cta-friends { position: relative; width: clamp(200px, 22vw, 290px); aspect-ratio: 1.35; }
.cta-friends img { position: absolute; width: 58%; height: auto; filter: drop-shadow(0 10px 12px rgb(16 32 15 / .25)); }
.cf-tyto { left: 0; top: 4%; transform: rotate(-6deg); }
.cf-flo { right: 0; top: -14%; width: 50% !important; transform: rotate(8deg); }
.cf-ed { left: 26%; bottom: -6%; z-index: 2; }
body:has(main:not([hidden]) > .cta:last-child) .f-hill { display: none; }
@media (max-width: 600px) { .cta-in { grid-template-columns: 1fr; } .cta-friends { width: 220px; } }

/* ---------- paginakop ---------- */
.page-head { position: relative; background: var(--b2); padding-top: clamp(56px, 7vw, 84px); }
.page-head.tone-flo { background: var(--flo-soft); }
.page-head.tone-tyto { background: var(--tyto-soft); }
.ph-in { width: min(var(--w), 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.page-head.has-photo .ph-in { grid-template-columns: 1.1fr .9fr; }
.ph-text .lede { font-size: 1.2rem; max-width: 52ch; color: var(--muted); margin: 0; }
.ph-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 54% 46% 44% 56% / 50% 56% 44% 50%; border: 6px solid var(--card); }
.ph-hill { color: var(--paper); margin-top: 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--link); }
@media (max-width: 760px) { .page-head.has-photo .ph-in { grid-template-columns: 1fr; } .ph-photo { max-width: 460px; } }

/* ---------- pagina-inhoud ---------- */
.page-body { width: min(var(--w), 100% - 40px); margin: 0 auto; padding: 24px 0 80px; }
.page-body.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(30px, 5vw, 72px); align-items: start; }
.pb-main { max-width: 760px; min-width: 0; }
.page-body:not(.with-side) .pb-main { max-width: 860px; }
.side { position: sticky; top: 24px; background: var(--b1); border-radius: 28px 22px 28px 22px; padding: 20px; border: 2px solid var(--line); }
.side-h { font: 800 1.45rem/1.1 var(--display); color: var(--bos); margin: 0 0 10px; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side a { display: block; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.side a:hover { background: var(--b2); }
.side a[aria-current="page"] { background: var(--mos); color: #10200f; }
:root[data-mode="dark"] .side a[aria-current="page"] { color: var(--ink); }
@media (max-width: 900px) { .page-body.with-side { grid-template-columns: 1fr; } .side { position: static; } }
.prose { margin-bottom: 1.4em; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-top: 1.2em; }
.prose h2:first-child, .prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--mos); font-weight: 700; }
:root[data-mode="dark"] .prose li::marker { color: var(--bos); }
.block { margin: 0 0 2em; }
.block > h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }

/* tabel */
.table-scroll { overflow-x: auto; margin-bottom: 1.6em; border-radius: 22px; border: 2px solid var(--line); }
table.times { width: 100%; border-collapse: collapse; background: var(--card); min-width: 440px; }
table.times th, table.times td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.times thead th { background: var(--mos); color: #10200f; font-weight: 700; }
:root[data-mode="dark"] table.times thead th { color: var(--ink); }
table.times tbody tr:last-child > * { border-bottom: 0; }

/* mensen */
ul.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
ul.people li { background: var(--card); border-radius: 22px; padding: 16px 18px; border-left: 6px solid var(--mos); display: grid; gap: 2px; box-shadow: var(--shadow); }
ul.people b { font-size: 1.08rem; }
ul.people span { color: var(--muted); font-size: .95rem; }
ul.people a { overflow-wrap: anywhere; }

/* vrienden */
.friends { background: var(--b1); border-radius: 36px 28px 36px 28px; padding: clamp(20px, 4vw, 36px); margin: 0 0 2em; }
.friend-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.friend-list li { display: flex; gap: 18px; align-items: center; }
.friend-list img { width: 92px; height: 92px; border-radius: 50%; flex: none; border: 4px solid var(--fc); }
.friend-list h3 { margin: 0 0 .15em; }
.friend-list p { margin: 0; }
.fr-flo { --fc: var(--flo); } .fr-ed { --fc: var(--ed); } .fr-tyto { --fc: var(--tyto); }

/* faq */
.faq-wrap { position: relative; }
.faq-tyto { width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--tyto); margin-bottom: 18px; }
.faq { display: grid; gap: 10px; margin-bottom: 1.6em; }
.faq-item { background: var(--card); border-radius: 20px; border: 2px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 14px 52px 14px 18px; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%;
  background: var(--b2); display: grid; place-items: center; font: 800 1.3rem/1 var(--display); color: var(--bos); }
.faq-item[open] summary::after { content: "−"; background: var(--flo); color: #1b1a10; }
.faq-item p { padding: 0 18px 16px; margin: 0; }

/* stappen */
ol.steps-list { min-width: 0; list-style: none; counter-reset: st; margin: 0 0 1.6em; padding: 0; display: grid; gap: 14px; }
.step { counter-increment: st; position: relative; padding: 16px 18px 16px 76px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); }
.step::before { content: counter(st); position: absolute; left: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--mos); color: #10200f;
  display: grid; place-items: center; font: 800 1.5rem/1 var(--display); }
.step h3 { margin: 0 0 .15em; font-size: 1.4rem; }
.step.s-ed::before { background: var(--ed); color: #fff; } .step.s-tyto::before { background: var(--tyto); color: #fff; } .step.s-flo::before { background: var(--flo); color: #1b1a10; }
:root[data-mode="dark"] .step.s-ed::before, :root[data-mode="dark"] .step.s-tyto::before { color: #10180f; }
.step p { margin: 0; }
ol.steps { list-style: none; counter-reset: s; padding: 0; }
ol.steps li { counter-increment: s; position: relative; padding-left: 48px; margin-bottom: .9em; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--mos); color: #10200f; display: grid; place-items: center; font-weight: 700; }
.kennis { background: var(--ed-soft); border-radius: 36px 28px 36px 28px; padding: clamp(20px, 4vw, 34px); }
.kn-ed { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--ed); margin-bottom: 14px; }

/* documenten */
.doc-list { list-style: none; margin: 18px 0 1.6em; padding: 0; display: grid; gap: 10px; }
.doc-list li { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 18px; padding: 12px 16px; border: 2px solid var(--line); }
.doc-ic { flex: none; width: 46px; height: 52px; border-radius: 10px 18px 10px 10px; background: var(--tyto); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.doc-list span:last-child { display: grid; }
.doc-list small { color: var(--muted); }

/* kwieb */
.kw-intro { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; margin-bottom: 1em; }
.kw-app { background: var(--bos); border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; padding: 10px; }
:root[data-mode="dark"] .kw-app { background: #2a5a30; }
.kw-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kw-cards li { --tc: var(--mos); background: var(--card); border-radius: 24px; padding: 18px 20px; border-top: 6px solid var(--tc); box-shadow: var(--shadow); }
.kw-cards li.t-ed { --tc: var(--ed); } .kw-cards li.t-tyto { --tc: var(--tyto); } .kw-cards li.t-flo { --tc: var(--flo); }
.kw-cards h3 { font-size: 1.4rem; margin-bottom: .2em; }
.kw-cards p { margin: 0; }
@media (max-width: 640px) { .kw-intro, .kw-cards { grid-template-columns: 1fr; } .kw-app { max-width: 220px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; }
.c-card { background: var(--b1); border-radius: 28px; padding: 22px 24px; border: 2px solid var(--line); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.mail-form { display: grid; gap: 4px; max-width: 560px; }
.mail-form p { margin: 0 0 10px; display: grid; gap: 4px; }
.mail-form label { font-weight: 700; }
.mail-form input, .mail-form textarea, .search-page input { font: inherit; padding: 11px 14px; border: 2px solid var(--muted); border-radius: 14px; background: var(--card); color: var(--ink); width: 100%; }
.mail-out { background: var(--b1); border-radius: 22px; padding: 18px; margin-top: 12px; }
.mail-out pre { white-space: pre-wrap; font: inherit; font-size: .95rem; background: var(--card); padding: 12px; border-radius: 12px; }

/* zoeken */
.search-page label { font-weight: 700; display: block; margin-bottom: 6px; }
.sp-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-row input { flex: 1; min-width: 200px; }
.sp-row .btn { margin: 0; }
.sp-status { margin-top: 14px; color: var(--muted); }
.sr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sr-list li { background: var(--card); border-radius: 20px; padding: 14px 18px; border: 2px solid var(--line); display: grid; gap: 2px; }
.sr-type { font-size: .85rem; font-weight: 700; color: var(--muted); }
.sr-list a { font: 700 1.35rem/1.15 var(--display); }
.sr-sec { font-size: .9rem; color: var(--muted); }
.sr-list p { margin: 4px 0 0; }
mark { background: var(--flo); color: #1b1a10; border-radius: 3px; padding: 0 2px; }

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: var(--on-dark); position: relative; }
.f-hill { background: var(--paper); color: var(--forest); box-shadow: inset 0 -3px 0 currentColor; } /* the shadow fills the bottom rows so the wave's anti-aliased edge never shows the paper as a hairline */
main:has(> .cta:last-child) + .site-footer .f-hill { background: var(--bos); }
:root[data-mode="dark"] main:has(> .cta:last-child) + .site-footer .f-hill { background: #1d3a22; }
.f-in { width: min(var(--w), 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; padding: 28px 0 36px; }
.f-brand img { width: 110px; background: #fff; border-radius: 50%; padding: 5px; margin-bottom: 14px; }
.f-motto { font: 800 1.6rem/1.1 var(--display); color: #fff; }
.site-footer h2 { font-size: 1.5rem; color: #fff; margin-bottom: .5em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #e2f2c4; }
.site-footer a:hover { color: #fff; }
.f-sick { font-size: .95rem; margin-top: 12px; }
a.f-btn { display: inline-block; background: var(--flo); color: #1b1a10; font-weight: 700; padding: 8px 18px; border-radius: 999px; text-decoration: none; }
.f-bottom { border-top: 1px solid rgb(255 255 255 / .18); width: min(var(--w), 100% - 40px); margin: 0 auto; padding: 18px 0 28px; font-size: .92rem; display: grid; gap: 6px; }
.f-bottom p { margin: 0; }
/* Ziber-creditregel (referentie): eigen donkere strook onder de footer; vast onderdeel, altijd goed leesbaar (min. 12px, geen verlaagde opacity) */
.footer-credit { background: #0d2613; color: #fff; }
:root[data-mode="dark"] .footer-credit { background: #040a05; }
.footer-credit .wrap { width: min(var(--w), 100% - 40px); margin: 0 auto; padding-block: 14px; }
.ziber-credit { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; font-size: .82rem; font-weight: 600; color: #fff; }
.site-footer .ziber-credit .zc-ziber { display: inline-flex; align-items: center; gap: .4em; min-height: 32px; padding: 5px 14px 5px 12px; border: 1px solid rgb(255 255 255 / .28); border-radius: 999px; background: rgb(255 255 255 / .08); color: #fff; text-decoration: none; line-height: 1.2; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.site-footer .ziber-credit .zc-ziber:hover { background: rgb(255 255 255 / .16); border-color: var(--flo); transform: translateY(-1px); }
.site-footer .ziber-credit .zc-ziber:focus-visible { outline: 3px solid #ffd257; outline-offset: 2px; box-shadow: 0 0 0 6px #0d2613; }
.ziber-credit .zc-heart { width: 1.35em; height: auto; flex: none; fill: var(--flo); transform-origin: 50% 60%; }
.ziber-credit .zc-ziber:hover .zc-heart, .ziber-credit .zc-ziber:focus-visible .zc-heart { animation: zc-pulse .6s ease-in-out 1; }
@keyframes zc-pulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .ziber-credit .zc-ziber { transition: none; } .ziber-credit .zc-ziber:hover { transform: none; } .ziber-credit .zc-ziber:hover .zc-heart, .ziber-credit .zc-ziber:focus-visible .zc-heart { animation: none; } }
.site-footer :focus-visible { outline-color: #ffd257; box-shadow: 0 0 0 7px var(--forest); }
@media (max-width: 960px) { .f-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .f-in { grid-template-columns: 1fr; } }

/* ---------- nieuwsdialoog ---------- */
.news-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 28px; background: var(--card); color: var(--ink); overflow: auto; }
.news-dialog::backdrop { background: rgb(14 30 16 / .6); }
.nd-close { position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: 1.6rem; cursor: pointer; box-shadow: var(--shadow); }
.nd-media { position: relative; background: var(--b2); }
.nd-media img { width: 100%; max-height: 440px; object-fit: cover; }
.nd-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); color: #10200f; font-size: 1.6rem; cursor: pointer; }
.nd-prev { left: 12px; } .nd-next { right: 12px; }
.nd-count { position: absolute; right: 12px; bottom: 12px; background: rgb(16 32 15 / .82); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .85rem; }
.nd-gallery { display: flex; gap: 6px; padding: 10px; overflow-x: auto; }
.nd-thumb { flex: none; width: 70px; height: 52px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.nd-thumb[aria-current="true"] { border-color: var(--mos); }
.nd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 20px 26px 26px; }
.eyebrow { display: block; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.nd-body h2 { font-size: 2rem; }
.nd-videos video { width: 100%; border-radius: 16px; }
.nd-video { margin: 0 0 12px; }
.byline { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.by-logo { width: 40px; height: 40px; border-radius: 50%; background: var(--b2); display: grid; place-items: center; overflow: hidden; font-weight: 700; }
.by-text { display: grid; font-size: .9rem; }
.by-name { font-weight: 700; }
.nd-files .btn { margin-bottom: 6px; }
.nd-file-name { margin-left: 6px; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.mail-form .btn, .mail-out .btn { justify-self: start; }
.step { min-width: 0; } .step p { overflow-wrap: anywhere; }
:root[data-mode="dark"] .menu > li.m-cta > a { color: #1b1a10; }

/* losse figuren Ed, Tyto en Flo: hele figuur op een zacht gekleurd rondje */
.ag-flo, .faq-tyto, .kn-ed, .friend-list img { object-fit: contain; padding: 6px; }
.ag-flo { background: var(--flo-soft); }
.faq-tyto { background: var(--tyto-soft); }
.kn-ed { background: #fff; }
.friend-list img { background: color-mix(in srgb, var(--fc) 18%, var(--card)); }

.pg-mascot { width: 96px; height: 96px; border-radius: 50%; object-fit: contain; padding: 6px; margin-bottom: 18px; border: 4px solid var(--mc); background: color-mix(in srgb, var(--mc) 18%, var(--card)); }
.pm-ed { --mc: var(--ed); } .pm-flo { --mc: var(--flo); }
.agenda ul.agenda-list { padding: 0; margin: 0; list-style: none; }
/* zoekveld in de kop: focusring op het hele veld, niet op het invoerveld zelf */
.nav-search input:focus-visible { outline: none; box-shadow: none; border-radius: 0; }
.nav-search:focus-within { box-shadow: 0 0 0 3px var(--focus), 0 0 0 6px var(--halo); }

/* snelknoppen onder het welkomstblok */
.welkom .quick { margin: 0 auto; padding-bottom: clamp(36px, 5vw, 64px); }
.welkom > .wrap { padding-bottom: clamp(36px, 5vw, 56px); }
/* mobiel: de drie vrienden met het logo staan over de foto, groter */
@media (max-width: 860px) {
  .hero-visual { padding: 0; margin-bottom: 44px; }
  .hero-friends { left: 2%; bottom: -36px; width: clamp(160px, 44vw, 250px); }
}
/* geen lichte naad onder de golvende randen: de golf overlapt het vlak eronder 2px */
.hill { position: relative; z-index: 1; margin-bottom: -2px !important; }
.f-hill, .cta-foot { margin-bottom: -2px !important; }
.site-footer > .f-in, .site-footer > .f-bottom, .site-footer > .footer-credit { position: relative; z-index: 2; }

/* documentenlijst (pdf's op de site zelf) */
.doc-list li { position: relative; }
.doc-txt { display: grid; gap: 2px; min-width: 0; }
.doc-txt a { font-weight: 700; font-size: 1.05rem; }
.doc-txt a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.doc-list li:hover { border-color: var(--mos); }
.doc-list li:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.doc-txt a:focus-visible { outline: none; box-shadow: none; }
.doc-meta { font-size: .85rem; }
:root[data-mode="dark"] .doc-ic { color: #10180f; }
/* welkom: foto links, tekst rechts (op mobiel blijft de tekst eerst) */
@media (min-width: 861px) {
  .welkom .two { grid-template-columns: .95fr 1.05fr; }
  .welkom .welkom-img { order: -1; }
  .welkom .welkom-img::after { right: auto; left: 6%; }
}


/* ---------- site.js v10: verborgen blijft verborgen ---------- */
[hidden] { display: none !important; }

/* ---------- agenda: foto in het rondje, omschrijving, klikbare kaart ---------- */
.ag-item { position: relative; }
.ag-date { position: relative; overflow: hidden; isolation: isolate; }
.ag-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ag-date:has(.ag-photo)::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 50%, rgb(10 24 12 / .62), rgb(10 24 12 / .78)); }
.ag-item .ag-date:has(.ag-photo), :root[data-mode="dark"] .ag-item .ag-date:has(.ag-photo) { color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.ag-sum { color: var(--ink); font-size: .95rem; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-txt strong + .ag-when { margin-top: 0; }
.ag-open { position: absolute; inset: 0; z-index: 1; width: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; color: transparent; font-size: 0; cursor: pointer; }
.ag-open:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: none; }
.ag-item > :not(.ag-open):not(.ag-tags) { pointer-events: none; }
.ag-tags { position: relative; z-index: 2; flex-wrap: wrap; justify-content: flex-end; max-width: 40%; }
.ag-item:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ag-item:hover { box-shadow: 0 14px 34px -18px rgb(30 69 38 / .6); }
a.ag-tag { color: var(--ink); }
.ag-tag:hover { border-color: var(--mos); }
@media (max-width: 560px) { .ag-item { align-items: flex-start; } }

/* ---------- popup: agenda ---------- */
.nd-when { font-weight: 700; color: var(--bos); margin: -.2em 0 .8em; }
.nd-more { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.nd-more:not(:has(a:not([hidden]))) { display: none; }
.nd-files:not(:has(a:not([hidden]))) { display: none; }
@media (max-width: 560px) { .nd-body { padding: 18px 18px 22px; } .nd-body h2 { font-size: 1.7rem; } .nd-more .btn, .nd-files .btn { width: 100%; justify-content: center; } }

/* ---------- berichtpagina ---------- */
.na-band .na-head { padding-bottom: 4px; }
.na-kicker { display: block; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.na-head h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 22ch; }
.na-date { color: var(--muted); margin: 0; }
.na-status { font-size: 1.1rem; }
.na-wrap { max-width: 860px; }
.na-media { margin: 0 0 22px; }
.na-figure { position: relative; border-radius: 28px; overflow: hidden; background: var(--b2); box-shadow: var(--shadow); }
.na-figure img { width: 100%; max-height: 560px; object-fit: cover; }
.na-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92); color: #10200f; font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.na-prev { left: 12px; } .na-next { right: 12px; }
.na-count { position: absolute; right: 12px; bottom: 12px; background: rgb(16 32 15 / .82); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: .9rem; }
.na-gallery { display: flex; gap: 8px; padding: 10px 0 0; overflow-x: auto; }
.na-gallery button, .na-gallery .na-thumb { flex: none; width: 84px; height: 62px; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.na-gallery [aria-current="true"] { border-color: var(--mos); }
.na-gallery img { width: 100%; height: 100%; object-fit: cover; }
.na-body { font-size: 1.1rem; }
.na-section { margin: 30px 0 0; }
.na-section h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: .45em; }
.na-section ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.na-section li { background: var(--card); border-radius: 18px 22px 18px 16px; padding: 12px 16px; box-shadow: var(--shadow); }
.na-section li a { font-weight: 700; }
.na-videos video { width: 100%; border-radius: 18px; background: #000; }
.na-videos figure { margin: 0 0 12px; }
.na-tag-list { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.na-tag-list li { padding: 0; background: none; box-shadow: none; }
.na-back { margin: 34px 0 0; }
.news-article .byline { margin: 0 0 18px; }
.initials { font-weight: 700; color: var(--bos); }
@media (max-width: 560px) { .na-nav { width: 42px; height: 42px; } }
.na-section li:has(> a) { padding: 0; }
.na-yt, .na-link, .na-file { display: flex; align-items: center; gap: 14px; padding: 12px 16px; text-decoration: none; color: var(--ink); border-radius: inherit; }
.na-yt:hover .na-yt-title, .na-link:hover .na-link-label, .na-file:hover .na-file-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.na-yt-play { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--tyto); position: relative; }
.na-yt-play::after { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
:root[data-mode="dark"] .na-yt-play::after { border-left-color: #10180f; }
.na-yt-text, .na-link { flex-wrap: wrap; }
.na-yt-text { display: grid; }
.na-yt-title, .na-link-label, .na-file-name { font-weight: 700; color: var(--link); }
.na-yt-host, .na-link-host { font-size: .9rem; color: var(--muted); }
.na-link { display: grid; gap: 0; }
.na-file-type { flex: none; font: 800 .8rem/1 var(--text); text-transform: uppercase; letter-spacing: .04em; background: var(--b2); color: var(--bos); padding: 8px 10px; border-radius: 10px; }
.na-file-ext { color: var(--muted); font-size: .9rem; margin-left: -10px; }
.na-place { display: grid; gap: 8px; }
.na-place-label { font-weight: 700; }
.na-place-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.na-place-actions a { display: inline-flex; align-items: center; padding: .45em 1em; border-radius: 999px; border: 2px solid var(--bos); color: var(--bos); font-weight: 700; text-decoration: none; }
.na-place-actions a:hover { background: var(--b2); }
.na-yt-list { margin-top: 10px !important; }
.news-article:has([data-na=byline]:not([hidden])) .na-date { display: none; }

/* ---------- mobiel menu: hele scherm in de kleur van de kopbalk; knop springt niet ---------- */
html { scrollbar-gutter: stable; }
@media (max-width: 1120px) {
  .primary-nav { background: var(--mos); padding-top: 40px; }
  .primary-nav .menu > li > a, .primary-nav .menu > li > button { background: rgb(255 255 255 / .5); color: #10200f; }
  .primary-nav .menu > li > a:hover, .primary-nav .menu > li > button:hover, .primary-nav .menu > li > button[aria-expanded="true"] { background: rgb(255 255 255 / .75); }
  .primary-nav .menu > li > a[aria-current="page"], .primary-nav .menu > li.has-current > button { background: #fff; }
  .primary-nav .menu > li.m-cta > a { background: var(--flo); color: #1b1a10; }
  .primary-nav .sub { padding: 6px 0 8px 12px; }
  .primary-nav .sub a { color: #10200f; }
  .primary-nav .sub a:hover { background: rgb(255 255 255 / .5); }
  .primary-nav .sub a[aria-current="page"] { background: #fff; color: #10200f; }
  .primary-nav .nav-search { background: rgb(255 255 255 / .8); border-color: transparent; }
  .primary-nav .nav-search:focus-within { background: #fff; border-color: var(--bos); }
  .primary-nav .nav-search input { color: #10200f; }
  .primary-nav :focus-visible { outline-color: #10200f; box-shadow: 0 0 0 6px rgb(255 255 255 / .7); }
  :root[data-mode="dark"] .primary-nav .menu > li > a, :root[data-mode="dark"] .primary-nav .menu > li > button { background: rgb(0 0 0 / .22); color: var(--ink); }
  :root[data-mode="dark"] .primary-nav .menu > li > a:hover, :root[data-mode="dark"] .primary-nav .menu > li > button:hover, :root[data-mode="dark"] .primary-nav .menu > li > button[aria-expanded="true"] { background: rgb(0 0 0 / .35); }
  :root[data-mode="dark"] .primary-nav .menu > li > a[aria-current="page"], :root[data-mode="dark"] .primary-nav .menu > li.has-current > button { background: var(--paper); }
  :root[data-mode="dark"] .primary-nav .menu > li.m-cta > a { background: var(--flo); color: #1b1a10; }
  :root[data-mode="dark"] .primary-nav .sub a { color: var(--ink); }
  :root[data-mode="dark"] .primary-nav .sub a:hover { background: rgb(0 0 0 / .25); }
  :root[data-mode="dark"] .primary-nav .sub a[aria-current="page"] { background: var(--paper); color: var(--bos); }
  :root[data-mode="dark"] .primary-nav .nav-search { background: rgb(0 0 0 / .3); }
  :root[data-mode="dark"] .primary-nav .nav-search input { color: var(--ink); }
  :root[data-mode="dark"] .primary-nav :focus-visible { outline-color: #ffd257; box-shadow: 0 0 0 6px var(--mos); }
}
@media (max-width: 1120px) { html:has(.primary-nav.open) { background: var(--mos); } }

/* ---------- nieuwsoverzicht: volle breedte ---------- */
.page-body.wide .pb-main { max-width: none; }
.page-body.wide .news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1180px) { .page-body.wide .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .page-body.wide .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .page-body.wide .news-grid { grid-template-columns: 1fr; } }
.nc-img { overflow: hidden; } .nc-img img { position: absolute; inset: 0; }

/* ---------- logo's en teamfoto ---------- */
.logo-card { display: inline-grid; place-items: center; background: #fff; border-radius: 22px; padding: 14px 18px; border: 2px solid var(--line); box-shadow: var(--shadow); margin: 0 0 1.2em; }
.logo-card img { display: block; width: auto; max-width: 100%; height: auto; max-height: 120px; }
.logo-card.lg img { max-height: 170px; }
.logo-float { float: right; margin: .2em 0 1em 1.4em; max-width: 40%; }
@media (max-width: 600px) { .logo-float { float: none; margin: 0 0 1.2em; max-width: 100%; } }
.prose .logo-grid, .logo-grid { list-style: none; margin: 1em 0 1.6em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.logo-grid li { margin: 0; display: grid; grid-template-rows: auto 1fr; gap: 10px; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 10px 10px 14px; text-align: center; }
.logo-grid .lg-img { display: grid; place-items: center; height: 120px; background: #fff; border-radius: 14px; padding: 10px; }
.logo-grid .lg-img img { max-width: 100%; max-height: 100px; width: auto; height: auto; }
.logo-grid b { display: block; font-size: 1rem; line-height: 1.25; }
.logo-grid small { color: var(--muted); }
.team-photo { margin: 0 0 2em; }
.team-photo img { display: block; width: 100%; height: auto; border-radius: 28px; border: 6px solid var(--card); box-shadow: var(--shadow); }
.team-photo figcaption { margin-top: .6em; color: var(--muted); font-size: .95rem; text-align: center; }
.prose .sig { font-weight: 700; }
.prose:has(> .logo-float) { display: flow-root; }
