/*
Theme Name: Balderschool
Description: Rustig, helder en warm thema voor BSBO De Balderschool (Berlaar). Klassiek thema; het hoofdmenu komt uit het bestaande navigatieblok.
Version: 1.1.0
Author: Scholengroep Fluxus – ICT
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: balderschool
*/

/* ------------------------------------------------------------------ */
/* Lettertypes (lokaal, geen verbinding met Google)                    */
/* ------------------------------------------------------------------ */
@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("fonts/atkinson-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("fonts/atkinson-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Nunito";
	src: url("fonts/nunito-var.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
}

/* Cijfers uit Nunito (Atkinson schrijft de nul met een schuine streep). */
@font-face {
	font-family: "BS Cijfers";
	src: url("fonts/nunito-var.woff2") format("woff2");
	font-weight: 200 1000;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0030-0039;
}

/* ------------------------------------------------------------------ */
/* Kleuren en maten                                                    */
/* ------------------------------------------------------------------ */
:root {
	--green: #7ab51d;        /* logo, decoratief */
	--green-dark: #3d6e12;   /* tekst/knoppen op wit (7:1) */
	--green-deep: #24440a;
	--green-soft: #eef6e1;
	--green-tint: #f6faef;
	--pink: #e2007a;         /* logo, decoratief */
	--pink-dark: #b4005f;    /* links op wit (6,6:1) */
	--pink-soft: #fde8f3;
	--ink: #1d2618;
	--muted: #4a5643;
	--line: #dfe7d3;
	--paper: #fffdf8;
	--white: #fff;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(29, 38, 24, .06), 0 8px 24px rgba(29, 38, 24, .07);
	--wrap: 1280px;
	--font-body: "BS Cijfers", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-head: "Nunito", "Segoe UI", system-ui, sans-serif;
	font-size: 112.5%; /* 18px */
}
:root[data-tekst="groot"] { font-size: 131.25%; } /* 21px */

/* ------------------------------------------------------------------ */
/* Basis                                                               */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--pink-dark); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--green-deep); text-decoration-thickness: .14em; }
:focus-visible {
	outline: 3px solid var(--pink-dark);
	outline-offset: 3px;
	border-radius: 4px;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 800;
	line-height: 1.2;
	color: var(--green-deep);
	margin: 1.6em 0 .5em;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }
p, ul, ol, table, figure { margin: 0 0 1.1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000;
	background: var(--green-deep); color: #fff; padding: .7rem 1.2rem; border-radius: var(--radius-sm);
	font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* ------------------------------------------------------------------ */
/* Bovenbalk                                                           */
/* ------------------------------------------------------------------ */
.topbar { background: var(--green-deep); color: #eaf3dc; font-size: .85rem; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1.5rem; padding: .45rem 0; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .45rem; }
.topbar-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.4rem; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar :focus-visible { outline-color: #fff; }
.topbar svg { flex: none; opacity: .85; }
.textsize { display: inline-flex; gap: .25rem; }
.textsize button {
	font: 700 .85rem/1 var(--font-head); color: #fff; background: transparent;
	border: 2px solid rgba(255,255,255,.45); border-radius: 8px; padding: .25rem .5rem; cursor: pointer; min-width: 2.1rem;
}
.textsize button.a-big { font-size: 1.1rem; padding: .1rem .45rem; }
.textsize button[aria-pressed="true"] { background: #fff; color: var(--green-deep); border-color: #fff; }

/* ------------------------------------------------------------------ */
/* Kop en menu                                                         */
/* ------------------------------------------------------------------ */
.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 50;
	box-shadow: 0 2px 12px rgba(29, 38, 24, .05);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 92px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 210px; height: auto; display: block; }

.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.main-nav .menu-item { position: relative; display: flex; align-items: center; }
.main-nav .menu > li > a {
	display: block; padding: .55rem .65rem; border-radius: 999px; white-space: nowrap;
	font-family: var(--font-head); font-weight: 750; font-size: .97rem; color: var(--ink); text-decoration: none;
}
.main-nav .menu > li.has-sub > a { padding-right: .2rem; }
.main-nav .menu > li > a:hover,
.main-nav .menu > li.sub-open > a { color: var(--green-dark); background: var(--green-soft); }
.main-nav .menu > li.is-current > a { color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--green); border-radius: 999px 999px 6px 6px; }
.sub-toggle {
	display: inline-grid; place-items: center; width: 2rem; height: 2rem; margin-right: .2rem;
	border: 0; background: transparent; color: var(--green-dark); border-radius: 999px; cursor: pointer; padding: 0;
}
.sub-toggle:hover { background: var(--green-soft); }
.sub-toggle svg { transition: transform .2s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub-menu {
	list-style: none; margin: 0; padding: .5rem;
	position: absolute; top: calc(100% + .4rem); left: 0; min-width: 290px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
	display: none;
}
.has-sub.sub-open > .sub-menu { display: block; }
@media (hover: hover) and (min-width: 1241px) {
	.has-sub:hover > .sub-menu { display: block; }
	.has-sub:hover > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
}
.sub-menu a {
	display: block; padding: .6rem .85rem; border-radius: 9px; color: var(--ink); text-decoration: none; line-height: 1.35;
}
.sub-menu a:hover { background: var(--green-soft); color: var(--green-deep); }
.sub-menu a[aria-current="page"] { background: var(--pink-soft); color: var(--pink-dark); font-weight: 700; }

.nav-toggle {
	display: none; align-items: center; gap: .6rem;
	font: 800 1rem var(--font-head); color: var(--green-deep);
	background: var(--green-soft); border: 2px solid transparent; border-radius: 999px; padding: .6rem 1.1rem; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars span, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 3px; border-radius: 3px; background: currentColor; }
.nav-toggle .bars { position: relative; background: transparent; }
.nav-toggle .bars span { position: absolute; top: 0; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; transition: transform .2s; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.menu-open .nav-toggle .bars span { opacity: 0; }
.menu-open .nav-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
	.header-inner { flex-wrap: wrap; min-height: 76px; padding: .6rem 0; }
	.brand img { width: 190px; }
	.nav-toggle { display: inline-flex; }
	.main-nav { display: none; width: 100%; padding: .3rem 0 1rem; }
	.menu-open .main-nav { display: block; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: .2rem; }
	.main-nav .menu-item { flex-wrap: wrap; border-radius: var(--radius-sm); }
	.main-nav .menu > li > a { flex: 1; padding: .8rem 1rem; font-size: 1.1rem; border-radius: var(--radius-sm); }
	.main-nav .menu > li.is-current > a { box-shadow: inset 4px 0 0 var(--green); border-radius: var(--radius-sm); }
	.sub-toggle { width: 3rem; height: 3rem; background: var(--green-tint); border-radius: var(--radius-sm); }
	.sub-menu { position: static; width: 100%; box-shadow: none; border: 0; border-left: 3px solid var(--green-soft); border-radius: 0; margin: .2rem 0 .5rem 1rem; padding: 0 0 0 .5rem; min-width: 0; }
	.sub-menu a { padding: .7rem .9rem; }
}
@media (max-width: 600px) {
	.topbar-info { display: none !important; }
	.topbar-inner { justify-content: center; }
	.topbar-links li:nth-child(2) { display: none; }
	.header-inner { gap: .75rem; }
	.brand img { width: 165px; }
	.nav-toggle { padding: .55rem .9rem; }
}

/* ------------------------------------------------------------------ */
/* Knoppen en kaarten                                                  */
/* ------------------------------------------------------------------ */
.btn {
	display: inline-flex; align-items: center; gap: .6rem;
	font: 800 1.05rem/1.2 var(--font-head); text-decoration: none;
	padding: .9rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
	transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--green-dark); color: #fff; box-shadow: 0 6px 16px rgba(61, 110, 18, .28); }
.btn-primary:hover { background: var(--green-deep); color: #fff; }
.btn-secondary { background: #fff; color: var(--pink-dark); border-color: var(--pink-dark); }
.btn-secondary:hover { background: var(--pink-soft); color: var(--pink-dark); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.section-title { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Startpagina                                                         */
/* ------------------------------------------------------------------ */
.hero {
	background:
		radial-gradient(circle at 92% 8%, rgba(226, 0, 122, .08), transparent 32%),
		radial-gradient(circle at 5% 95%, rgba(122, 181, 29, .16), transparent 40%),
		var(--green-tint);
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
	overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow {
	display: inline-block; margin: 0 0 1rem; padding: .35rem .9rem; border-radius: 999px;
	background: var(--pink-soft); color: var(--pink-dark); font: 800 .95rem var(--font-head); letter-spacing: .01em;
}
.hero h1 { margin: 0 0 1rem; font-size: clamp(2.3rem, 1.6rem + 3vw, 3.8rem); }
.hero-address { font-size: 1.2rem; margin-bottom: 1rem; }
.hero-entrance {
	display: flex; gap: .7rem; align-items: flex-start; max-width: 32rem;
	background: #fff; border: 2px dashed var(--green); border-radius: var(--radius-sm); padding: .8rem 1rem;
	font-weight: 700; color: var(--green-deep);
}
.hero-entrance svg { flex: none; color: var(--green-dark); margin-top: .1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img {
	position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: 42% 58% 45% 55% / 52% 42% 58% 48%;
	border: 8px solid #fff; box-shadow: var(--shadow);
}
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.blob-1 { width: 38%; aspect-ratio: 1; background: var(--green); opacity: .9; right: -6%; top: -8%; border-radius: 58% 42% 55% 45%; }
.blob-2 { width: 22%; aspect-ratio: 1; background: var(--pink); opacity: .85; left: -4%; bottom: -6%; }

.tiles-section { padding: clamp(3rem, 6vw, 4.5rem) 0 1rem; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile {
	position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.5rem 1.5rem 1.3rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tile:hover, .tile:focus-within { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 12px 30px rgba(29, 38, 24, .12); }
.tile-icon { display: inline-grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 16px; margin-bottom: .9rem; }
.tile-0 .tile-icon { background: var(--green-soft); color: var(--green-dark); }
.tile-1 .tile-icon { background: var(--pink-soft); color: var(--pink-dark); }
.tile-2 .tile-icon { background: #fff4d6; color: #8a5a00; }
.tile h3 { margin: 0 0 .35rem; font-size: 1.25rem; }
.tile h3 a { color: var(--green-deep); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tile h3 a:focus-visible { outline: none; }
.tile:focus-within { outline: 3px solid var(--pink-dark); outline-offset: 3px; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; padding-right: 1.5rem; }
.tile-arrow { position: absolute; right: 1.2rem; bottom: 1.1rem; font-size: 1.3rem; color: var(--green-dark); transition: transform .15s; }
.tile:hover .tile-arrow { transform: translateX(4px); }

.visit { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.visit-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.2rem; align-items: stretch; }
.photo-card { margin: 0; overflow: hidden; display: flex; flex-direction: column; }
.photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card figcaption { padding: .9rem 1.1rem 1rem; line-height: 1.45; }
.photo-card:first-child figcaption { background: var(--pink-soft); color: var(--pink-dark); flex: 1; }
.info-card { padding: 1.5rem; background: var(--green-deep); color: #eef6e1; border: 0; }
.info-card h3 { color: #fff; margin-top: 0; }
.info-card a { color: #fff; font-weight: 700; word-break: break-word; }
.info-card a:hover { color: #d9f0b8; }
.info-card :focus-visible { outline-color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.contact-list .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }

.video { background: var(--green-soft); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.video-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-deep); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-decoration: none; }
.video-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.video-link:hover img { opacity: .65; }
.video-link .play { position: relative; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--pink); box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .15s; }
.video-link:hover .play { transform: scale(1.06); }
.video-label { position: absolute; bottom: 1rem; left: 1rem; background: rgba(0,0,0,.65); padding: .3rem .8rem; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.front-content { padding: 3rem 0; }

/* Nieuws */
.news-section { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1rem; }
.section-head .section-title { margin: 0; }
.more-link { font-family: var(--font-head); font-weight: 800; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.news-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.news-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s, border-color .15s; }
.news-card:hover, .news-card:focus-within { transform: translateY(-3px); border-color: var(--green); }
.news-card:focus-within { outline: 3px solid var(--pink-dark); outline-offset: 3px; }
.news-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { padding: 1.1rem 1.3rem 1.3rem; }
.news-body .post-date { margin: 0 0 .3rem; font-size: .85rem; }
.news-body h3 { margin: 0 0 .4rem; font-size: 1.2rem; }
.news-body h3 a { color: var(--green-deep); text-decoration: none; }
.news-body h3 a::after { content: ""; position: absolute; inset: 0; }
.news-body h3 a:focus-visible { outline: none; }
.news-body p:last-child { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (max-width: 900px) { .news-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-cards { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
	.hero-grid, .video-grid { grid-template-columns: 1fr; }
	.hero-photo { max-width: 520px; margin: 1rem auto 0; width: 92%; }
	.visit-grid { grid-template-columns: 1fr 1fr; }
	.visit-grid .photo-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.visit-grid { grid-template-columns: 1fr; }
	.btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* Pagina's                                                            */
/* ------------------------------------------------------------------ */
.page-hero { position: relative; background: var(--green-tint); padding: 1.8rem 0 3.2rem; color: var(--paper); }
.page-hero .wrap { color: var(--ink); }
.page-hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 40px; display: block; }
.page-title { margin: .4rem 0 0; color: var(--green-deep); max-width: 22em; }
.page-title::after { content: ""; display: block; width: 64px; height: 6px; border-radius: 6px; margin-top: .8rem; background: linear-gradient(90deg, var(--green) 0 60%, var(--pink) 60%); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--green-dark); }
.breadcrumbs a { color: var(--green-dark); }

.page-layout { padding: 1.5rem 0 4rem; }
.page-layout.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.page-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: clamp(1.3rem, 4vw, 2.8rem);
	max-width: 52rem;
}
.page-layout:not(.has-aside) .page-card { margin-inline: auto; }
.section-nav { position: sticky; top: 120px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem; }
.section-nav h2 { font-size: 1.15rem; margin: 0 0 .6rem; padding-bottom: .6rem; border-bottom: 3px solid var(--green-soft); }
.section-nav h2 a { color: var(--green-deep); text-decoration: none; }
.section-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.section-nav li a { display: block; padding: .5rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.section-nav li a:hover { background: var(--green-soft); color: var(--green-deep); }
.section-nav a[aria-current="page"] { background: var(--pink-soft); color: var(--pink-dark); font-weight: 700; }
.aside-contact { margin-top: 1.2rem; padding: 1rem; border-radius: var(--radius-sm); background: var(--green-tint); font-size: .92rem; line-height: 1.5; }
.aside-contact p { margin: 0 0 .5rem; }
.aside-contact p:last-child { margin: 0; }
.aside-contact a { word-break: break-word; }
@media (max-width: 1000px) {
	.page-layout.has-aside { grid-template-columns: 1fr; }
	.section-nav { position: static; }
}

.child-pages-wrap { margin-top: 1.5rem; }
.child-pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.child-pages a {
	display: flex; align-items: center; justify-content: space-between; gap: .8rem; height: 100%;
	padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--green-tint); border: 1px solid var(--line);
	color: var(--green-deep); font-family: var(--font-head); font-weight: 800; text-decoration: none; line-height: 1.3;
}
.child-pages a::after { content: "→"; color: var(--pink-dark); }
.child-pages a:hover { border-color: var(--green); background: var(--green-soft); }
.lead { font-size: 1.15rem; }

.post-list { list-style: none; padding: 0; }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.post-list h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.post-list h2 a { color: var(--green-deep); }
.post-list li.has-thumb { display: grid; grid-template-columns: 160px 1fr; gap: 1.2rem; align-items: start; }
.post-list .post-thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.post-list .post-date { margin: 0 0 .2rem; }
@media (max-width: 560px) { .post-list li.has-thumb { grid-template-columns: 1fr; } }
.post-date { color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------------ */
/* Inhoud uit de editor (veel oude Joomla-opmaak)                      */
/* ------------------------------------------------------------------ */
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
/* Inline lettertypes, -groottes en -kleuren uit Joomla neutraliseren. */
.entry-content :is(span, font, p, td, th, div, li, strong, b, em, i, u, a, blockquote)[style],
.entry-content font {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit !important;
	background-color: transparent !important;
}
.entry-content :is(h1, h2, h3, h4, h5, h6)[style],
.entry-content :is(h1, h2, h3, h4, h5, h6) :is(span, font, strong)[style] {
	font-family: var(--font-head) !important;
	color: var(--green-deep) !important;
	font-size: revert !important;
	line-height: 1.25 !important;
}
.entry-content :is(h1, h2, h3, h4, h5, h6) span[style] { font-size: inherit !important; }
.entry-content a[style] { color: var(--pink-dark) !important; }
.entry-content h1 { font-size: 1.9rem; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content h4 { font-size: 1.2rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--green-dark); }
.entry-content strong, .entry-content b { font-weight: 700; color: var(--green-deep); }
.entry-content img { border-radius: var(--radius-sm); max-width: 100% !important; height: auto !important; vertical-align: middle; }
.entry-content img[style*="float: left"], .entry-content img[align="left"] { float: left; margin: .3rem 1.2rem 1rem 0; }
.entry-content img[style*="float: right"], .entry-content img[align="right"] { float: right; margin: .3rem 0 1rem 1.2rem; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 5px solid var(--green); background: var(--green-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content hr { border: 0; height: 2px; background: var(--line); margin: 2rem 0; }
.entry-content iframe { border: 0; border-radius: var(--radius-sm); }
.entry-content a.is-pdf::before {
	content: "PDF"; display: inline-block; margin-right: .4rem; padding: .05rem .4rem; border-radius: 6px;
	background: var(--pink-dark); color: #fff; font: 800 .7rem/1.5 var(--font-head); vertical-align: .15em; text-decoration: none;
}

/* Tabellen (vaak gebruikt als opmaak in Joomla) */
.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
.entry-content table { width: 100% !important; height: auto !important; border-collapse: collapse; margin: 0; }
.entry-content td, .entry-content th { padding: .5rem .7rem; vertical-align: top; text-align: left; width: auto !important; height: auto !important; border-color: var(--line) !important; }
.entry-content table[border="1"] td, .entry-content table[border="1"] th { border: 1px solid var(--line) !important; }
.entry-content th { background: var(--green-soft); color: var(--green-deep); font-family: var(--font-head); }
.entry-content td:empty { display: none; }
@media (max-width: 700px) {
	.entry-content :not(.wp-block-table) > .table-wrap > table:not([border="1"]),
	.entry-content :not(.wp-block-table) > .table-wrap > table:not([border="1"]) :is(tbody, tr, td, th) { display: block; width: 100% !important; }
	.entry-content :not(.wp-block-table) > .table-wrap > table:not([border="1"]) td { padding: .3rem 0; }
}
/* Tabellen gemaakt in de editor (bv. de kalender): echte tabel met lijnen en zebrastrepen */
.entry-content .wp-block-table { margin: 0 0 1.4rem; overflow-x: auto; }
.entry-content .wp-block-table table { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.entry-content .wp-block-table :is(td, th) { border: 0 !important; border-bottom: 1px solid var(--line) !important; padding: .7rem .9rem; }
.entry-content .wp-block-table td:empty { display: table-cell; }
.entry-content .wp-block-table thead th, .entry-content .wp-block-table thead td { background: var(--green-deep); color: #fff; font-family: var(--font-head); font-weight: 800; }
.entry-content .wp-block-table tbody tr:nth-child(even) { background: var(--green-tint); }
.entry-content .wp-block-table td:first-child { white-space: nowrap; font-weight: 700; color: var(--green-deep); }
.entry-content .wp-block-table figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }

.wp-block-button__link, .entry-content .wp-element-button {
	background: var(--green-dark); color: #fff; border-radius: 999px; padding: .8rem 1.3rem; font-family: var(--font-head); font-weight: 800; text-decoration: none;
}

/* Zoekformulier */
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-form input[type="search"] { flex: 1; min-width: 12rem; font: inherit; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: 999px; }
.search-form input[type="search"]:focus { border-color: var(--green-dark); outline: none; }
.search-form .search-submit { font: 800 1rem var(--font-head); background: var(--green-dark); color: #fff; border: 0; border-radius: 999px; padding: .7rem 1.3rem; cursor: pointer; }

/* ------------------------------------------------------------------ */
/* Voettekst                                                           */
/* ------------------------------------------------------------------ */
.site-footer { margin-top: 2rem; color: #e6f0d8; }
.footer-wave { color: var(--green-deep); line-height: 0; }
.footer-wave svg { display: block; width: 100%; height: 50px; }
.footer-main { background: var(--green-deep); padding: 2rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 2rem; }
.site-footer h2 { color: #fff; font-size: 1.2rem; margin: 0 0 .7rem; }
.footer-tag { color: #f9c4e0; font-weight: 700; margin-bottom: .6rem; }
.site-footer address { font-style: normal; }
.footer-note { display: inline-block; margin-top: .4rem; font-size: .9rem; opacity: .9; }
.footer-list { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .35rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #d9f0b8; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-bottom { background: #1a3307; font-size: .85rem; padding: .9rem 0; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer-bottom p { margin: 0; }
.footer-menu { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
@media (max-width: 800px) {
	.footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Afdrukken */
@media print {
	.topbar, .site-header, .site-footer, .section-nav, .page-hero-wave, .demo-banner { display: none !important; }
	.page-card { box-shadow: none; border: 0; padding: 0; }
	body { background: #fff; }
}
