/* ==========================================================================
   Zovoc Lievegem — designsysteem
   Alle waarden komen letterlijk uit de handoff. Twee merkkleuren: rood
   #C01818 en zwart #16120F, allebei uit het logo. Rood is voor actie en
   wedstrijd, nooit decoratief. Border-radius is overal 0 — dat is bewust.
   ========================================================================== */

:root {
    --ink: #16120F;
    --ink-soft: #3A342C;
    --text-muted: #584F43;
    --meta: #8A7E6D;
    --red: #C01818;
    --red-dark: #8E1010;
    --paper: #F2EDE4;
    --paper-deep: #E4DCCE;
    --line: #E0D8CA;
    --line-dashed: #D6CCBB;
    --dash-text: #A99C88;
    --white: #FFFFFF;
    --hero-card: rgba(252, 250, 246, .94);
    --ink-tint: #2B241D;

    --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --body: 'Public Sans', system-ui, -apple-system, sans-serif;
    --mono: ui-monospace, Menlo, Consolas, monospace;

    --gut: 34px;
    --page: 1280px;
    /* De inhoudslijn: de pagina is 1280 px breed mét haar gutters, dus de
       inhoud zelf staat op 1212 px. Kop, banden, hero en footer lijnen
       allemaal op deze ene maat uit — een vlak met de padding erbuiten
       (.band) neemt --inner als maximum, een vlak met de padding erbinnen
       (.masthead > div) neemt --page. Beide komen op dezelfde lijn uit. */
    --inner: calc(var(--page) - 2 * var(--gut));

    --shadow-menu: 0 18px 40px rgba(22, 18, 15, .18);
    --shadow-card: 0 12px 38px rgba(22, 18, 15, .28);
    --shadow-tile: 0 4px 18px rgba(22, 18, 15, .07);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 400 15px/1.6 var(--body);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }

ul, ol { padding: 0; list-style: none; }

table { border-collapse: collapse; width: 100%; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

input, select, textarea { font: inherit; border-radius: 0; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--ink); color: #fff; padding: 12px 18px;
    font: 700 12px/1 var(--body); text-transform: uppercase; letter-spacing: .08em;
}
.skip:focus { left: 0; }

/* --- Typografie ---------------------------------------------------------- */

.display {
    font-family: var(--display);
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.eyebrow {
    font: 700 10px/1 var(--body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red);
}

.eyebrow--ink { color: var(--ink); }
.eyebrow--meta { color: var(--meta); }
.eyebrow--light { color: rgba(255, 255, 255, .7); }

.lead { font-size: 16px; line-height: 1.65; color: var(--text-muted); }

.meta { font-size: 12.5px; line-height: 1.6; color: var(--meta); }

/* --- Kruimelpad ---------------------------------------------------------- */

/* Staat op elke pagina behalve de home: klein, rustig, en altijd boven de
   titel. De donkere koppen (fotokop, ploegkop) zetten er --light naast. */
.crumbs { margin-bottom: 18px; font: 500 12px/1.5 var(--body); color: var(--meta); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: '/'; padding: 0 6px; opacity: .5; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink-soft); }

/* Op een fotokop staat deze regel op de foto zelf, waar de sluier nog licht
   is — vandaar de schaduw; op de effen ploegkop zie je die niet. */
.crumbs--light { color: rgba(255, 255, 255, .72); text-shadow: 0 1px 3px rgba(22, 18, 15, .55); }
.crumbs--light a:hover { color: #fff; }
.crumbs--light [aria-current="page"] { color: rgba(255, 255, 255, .82); }

/* Pagina's uit de paginabouwer beginnen met een blok, niet met een kop waar
   het kruimelpad in past — die krijgen deze strook eronder. Sluit ze aan op
   een papieren vlak, dan schuiven ze tegen elkaar. */
.crumbbar { background: var(--paper); padding: 20px var(--gut) 0; }
.crumbbar > * { max-width: var(--inner); margin-inline: auto; margin-bottom: 0; }
.crumbbar + .band--paper { padding-top: 22px; }

.mono { font: 500 10px/1 var(--mono); color: var(--dash-text); }

/* --- Knoppen ------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 13px 18px;
    font: 700 12px/1 var(--body);
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--paper); }

.btn--white-red { background: #fff; color: var(--red); }
.btn--white-red:hover { background: var(--paper); }

.btn--ghost { border-color: var(--line-dashed); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }

.btn--sm { padding: 11px 15px; font-size: 11.5px; letter-spacing: .06em; }

.link-more {
    font: 600 12px/1 var(--body);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--red);
    white-space: nowrap;
}
.link-more:hover { text-decoration: underline; }

/* --- Vlakken ------------------------------------------------------------- */

.band { padding: 48px var(--gut) 52px; }
.band > * { max-width: var(--inner); margin-inline: auto; }

.band--paper { background: var(--paper); }
.band--white { background: var(--white); }
.band--ink { background: var(--ink); color: #fff; }
.band--red { background: var(--red); color: #fff; }
.band--tight { padding-top: 40px; padding-bottom: 40px; }

.band-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.band-head h2 { font-size: 42px; }
.band--ink .band-head h2 { font-size: 32px; }

/* Beeldplaceholder voor foto's die de club nog moet aanleveren. */
.ph {
    background: var(--paper-deep);
    background-image: repeating-linear-gradient(135deg, rgba(22, 18, 15, .07) 0 5px, transparent 5px 12px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 8px;
}

.ph--dark {
    background: var(--ink-tint);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 15px);
}
.ph--dark .mono { color: rgba(255, 255, 255, .35); }

/* ==========================================================================
   Adminbalk: alleen zichtbaar voor wie in het CMS is aangemeld
   ========================================================================== */

.adminbar {
    background: var(--ink-tint);
    color: rgba(255, 255, 255, .78);
    font: 500 11.5px/1 var(--body);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.adminbar > div {
    max-width: var(--page);
    margin-inline: auto;
    min-height: 38px;
    padding: 4px var(--gut);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.adminbar-merk {
    font-family: var(--display);
    font-style: italic;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #fff;
}
.adminbar-merk span { color: var(--red); }
.adminbar-merk:hover span { color: #fff; }

.adminbar nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.adminbar nav a:hover { color: #fff; }

.adminbar-acties { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* De sprong naar het bewerkscherm van wat hier op de pagina staat: een
   actie, dus in het clubrood. */
.adminbar-bewerk {
    background: var(--red);
    color: #fff;
    padding: 7px 12px;
    font: 700 11px/1 var(--body);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.adminbar-bewerk:hover { background: var(--red-dark); }

.adminbar-wie { color: var(--dash-text); }

@media (max-width: 899px) {
    .adminbar nav, .adminbar-wie { display: none; }
    .adminbar-acties { gap: 10px; }
}

/* ==========================================================================
   Kop: utility bar + navigatie met megamenu's
   ========================================================================== */

.utility {
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font: 500 11.5px/1 var(--body);
}

.utility > div {
    max-width: var(--page);
    margin-inline: auto;
    height: 36px;
    padding: 0 var(--gut);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.utility nav { display: flex; gap: 20px; }
.utility a:hover { color: #fff; }
.utility .is-strong { color: #fff; }

.masthead { position: relative; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }

.masthead > div {
    max-width: var(--page);
    margin-inline: auto;
    height: 84px;
    padding: 0 var(--gut);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.masthead img { height: 54px; width: auto; }

.mainnav {
    display: flex;
    gap: 32px;
    align-self: stretch;
    align-items: center;
    font: 700 13px/1 var(--body);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.mainnav > li { display: flex; align-items: center; align-self: stretch; }

.mainnav > li > a,
.mainnav > li > button {
    display: flex;
    align-items: center;
    height: 100%;
    border-bottom: 3px solid transparent;
    letter-spacing: inherit;
    text-transform: inherit;
}

.mainnav > li > a[aria-current="page"],
.mainnav > li.is-current > a,
.mainnav > li.is-current > button { border-bottom-color: var(--red); }

.mainnav > li > button[aria-expanded="true"] { border-bottom-color: var(--red); }

.navtoggle { display: none; }

/* Het mobiele slot en de bal bestaan alleen in het uitschuifpaneel. */
/* .mainnav > erbij: anders wint .mainnav > li { display: flex } en staat de
   mobiele staart gewoon in de desktopbalk. */
.mainnav > .mobielslot, .mobielbal { display: none; }

@keyframes zfade { from { opacity: 0 } to { opacity: 1 } }

.mega {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 3px solid var(--red);
    box-shadow: var(--shadow-menu);
    animation: zfade .18s ease;
}

.mega[hidden] { display: none; }

/* De terugkop bestaat alleen in het mobiele drill-down-menu (site.js zet hem
   in elk paneel); op desktop blijft hij weg. */
.megakop { display: none; }

.mega > div {
    max-width: var(--page);
    margin-inline: auto;
    padding: 30px var(--gut);
    display: grid;
    gap: 34px;
}

.mega--club > div { grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; }
.mega--teams > div { grid-template-columns: repeat(4, 1fr) 210px; gap: 20px; }
.mega--youth > div { grid-template-columns: 1.5fr 1fr 300px; }
.mega--calendar > div { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.mega--news > div { grid-template-columns: 1fr 1fr 1fr 220px; gap: 24px; }
.mega--support > div { grid-template-columns: 1.4fr 1fr; gap: 40px; }

.mega .eyebrow { margin-bottom: 16px; }

.menulist { font: 400 14.5px/2.2 var(--body); }
.menulist a:hover { color: var(--red); }

.menuside { border-left: 1px solid var(--line); padding-left: 22px; }

.menucard { display: flex; gap: 18px; background: var(--paper); padding: 18px; }
.menucard img { width: 150px; height: 118px; object-fit: cover; flex: none; }
.menucard h3 { font-size: 26px; }
.menucard p { font: 400 13px/1.6 var(--body); color: var(--text-muted); margin: 8px 0 12px; }

.menuteams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

.menutile { border: 1px solid var(--line); padding: 12px 13px; }
.menutile b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 24px; line-height: 1; }
.menutile span { display: block; font: 400 11.5px/1.4 var(--body); color: var(--meta); margin-top: 5px; }
.menutile:hover { border-color: var(--ink); }

/* Jeugdtegel met compacte ploegfoto — lager dan de grote tegels van de eerste
   ploegen, zodat het raster van vier kolommen in het menu blijft passen. */
.menutile--photo { display: block; padding: 0; }
.menutile--photo .menuthumb { display: block; height: 72px; overflow: hidden; }
.menutile--photo .menuthumb img,
.menutile--photo .menuthumb .ph { width: 100%; height: 100%; }
.menutile--photo .menuthumb img { display: block; object-fit: cover; object-position: center; }
.menutile--photo b { padding: 10px 13px 12px; }

.teamthumb { position: relative; height: 132px; }
.teamthumb img { width: 100%; height: 100%; object-fit: cover; }
.teamthumb .flag {
    position: absolute; top: 0; left: 0;
    background: var(--red); color: #fff;
    font: 700 9.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
    padding: 6px 9px;
}
.teamthumb .flag--ink { background: var(--ink); }

.megateam h3 { font-size: 24px; margin: 12px 0 6px; }
.megateam p { font: 400 12.5px/1.5 var(--body); color: var(--meta); }

.megacta { background: var(--red); color: #fff; display: flex; flex-direction: column; }
.megacta img { width: 100%; height: 110px; object-fit: cover; object-position: center 30%; }
.megacta > div { padding: 18px 20px; }
.megacta h3 { font-size: 26px; }
.megacta p { font: 400 12.5px/1.6 var(--body); color: rgba(255, 255, 255, .85); margin: 8px 0 14px; }

.megabox { background: var(--paper); padding: 20px; }
.megabox h3 { font-size: 24px; }
.megabox p { font: 400 12.5px/1.6 var(--body); color: var(--text-muted); margin: 8px 0 14px; }

.megapacks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
/* De tegels even hoog, ook als de ene samenvatting langer is dan de andere:
   het raster rekt de li's al uit, de li geeft die hoogte door aan de link. */
.megapacks li { display: grid; }
/* Elke pakkettegel draagt de tint van haar niveau, met de beginletter als
   outline-arenaletter in de hoek — hetzelfde motief als de reuzenletters
   ZOVOC elders op de site. */
/* Blok- in plaats van inline-weergave is verplicht: een inline <a> met
   blokinhoud tekent zijn rand en achtergrond als losse flarden over de
   tekst heen. */
.megapack {
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    border: 1px solid var(--line); padding: 14px 15px; background: var(--paper);
    transition: transform .3s cubic-bezier(.2, .7, .3, 1), box-shadow .3s, border-color .3s;
}
.megapack::after {
    content: attr(data-letter); position: absolute; right: -4px; bottom: -24px;
    font: italic 700 78px/1 var(--display); text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 1px rgba(22, 18, 15, .18);
    pointer-events: none;
    transition: transform .45s cubic-bezier(.2, .7, .3, 1), -webkit-text-stroke-color .3s;
}
.megapack--golden { background: linear-gradient(135deg, #F7EFDA, #ECDDBC); }
.megapack--silver { background: linear-gradient(135deg, #F2F2F1, #E2E4E6); }
.megapack--bronze { background: linear-gradient(135deg, #F3E7DA, #E6D1BC); }
.megapack.is-top, .megapack--diamond { background: linear-gradient(135deg, var(--ink), var(--ink-tint)); color: #fff; border-color: var(--ink); }
.megapack.is-top::after, .megapack--diamond::after { -webkit-text-stroke-color: rgba(242, 237, 228, .22); }
/* Bij hover komt de tegel van de pagina los en groeit de arenaletter
   speels mee; het glansje eronder veegt er schuin overheen. */
.megapack::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
    transform: translateX(-110%); pointer-events: none;
}
.megapack.is-top::before, .megapack--diamond::before {
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%);
}
.megapack:hover, .megapack:focus-visible {
    border-color: var(--ink);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(22, 18, 15, .14);
}
.megapack:hover::before, .megapack:focus-visible::before { transition: transform .6s ease; transform: translateX(110%); }
.megapack:hover::after, .megapack:focus-visible::after {
    transform: translate(-3px, -8px) scale(1.12) rotate(-4deg);
    -webkit-text-stroke-color: rgba(22, 18, 15, .32);
}
.megapack.is-top:hover::after, .megapack--diamond:hover::after,
.megapack.is-top:focus-visible::after, .megapack--diamond:focus-visible::after { -webkit-text-stroke-color: rgba(242, 237, 228, .4); }
@media (prefers-reduced-motion: reduce) {
    .megapack, .megapack::before, .megapack::after { transition: none; }
    .megapack:hover, .megapack:focus-visible { transform: none; }
    .megapack:hover::before, .megapack:focus-visible::before { transform: translateX(-110%); }
    .megapack:hover::after, .megapack:focus-visible::after { transform: none; }
}
.megapack b { display: block; position: relative; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; line-height: 1; text-transform: uppercase; }
.megapack span { display: block; position: relative; font: 400 11.5px/1.4 var(--body); color: var(--meta); margin-top: 6px; }
.megapack.is-top span, .megapack--diamond span { color: rgba(255, 255, 255, .6); }

.megalogos {
    display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.megalogos img { height: 30px; width: auto; object-fit: contain; }

.meganews h3 { font-size: 22px; line-height: 1.05; }
.meganews img { width: 100%; height: 118px; object-fit: cover; }
.meganews .eyebrow { font-size: 9.5px; letter-spacing: .12em; margin: 11px 0 7px; }

/* ==========================================================================
   Hero met carrousel en wedstrijdkaart
   ========================================================================== */

.herowrap { position: relative; }

.hero { position: relative; height: 560px; background: var(--ink); overflow: hidden; }

/* Het beeld loopt tot de rand van het scherm; tekst en dots staan op de
   inhoudslijn (dezelfde als de kop en de banden eronder) via de
   max()-berekening hieronder. */
.hero-inner { position: relative; height: 100%; }

/* De wedstrijdkaart zweeft over de hero, maar staat er in de opmaak náást —
   anders knipt overflow:hidden haar weg zodra ze eronder moet schuiven. */
.hero-aside {
    position: absolute; inset: 0; z-index: 5;
    max-width: var(--page); margin-inline: auto;
    pointer-events: none;
}
.hero-aside > * { pointer-events: auto; }

/* Elke hero — carrousel, fotokop, ploegkop, uitgelicht bericht — toont het
   beeld bijgesneden op het midden. Een kop is te groot om de uitsnede van een
   klein kaartje te volgen: die gaat over de kaarten en de menu's, niet hier. */
.slide { position: absolute; inset: 0; }
.slide[hidden] { display: none; }
.slide.is-active { animation: zfade .5s ease; }
.slide > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(22, 18, 15, .94) 0%, rgba(22, 18, 15, .74) 40%, rgba(22, 18, 15, .35) 100%);
}

.slide-text {
    position: absolute; left: max(var(--gut), calc(50% - var(--inner) / 2)); top: 172px; z-index: 2;
    max-width: 560px; color: #fff;
}

.slide-label {
    display: inline-block; background: var(--red); color: #fff;
    font: 700 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
    padding: 7px 11px; margin-bottom: 18px;
}

.slide-text h1 { font-size: 82px; line-height: .9; }
.slide-text.is-news h1 { font-size: 64px; line-height: .94; }
.slide-text p {
    margin: 18px 0 24px; max-width: 420px;
    font: 400 17px/1.55 var(--body); color: rgba(255, 255, 255, .75);
}

/* De maskers voor de tekstchoreografie van de hero (zie initHero in
   site.js): elke regel zit in een strook met overflow hidden en veegt van
   onderuit in beeld. De kleine marge-truc voorkomt dat het masker de
   staarten van de cursieve letters afsnijdt. */
.slide-text .zv-regel { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.slide-text .zv-regel-in { display: block; will-change: transform; }

.hero-dots {
    position: absolute; left: max(var(--gut), calc(50% - var(--inner) / 2)); bottom: 34px; z-index: 3;
    display: flex; align-items: center; gap: 9px;
}
.hero-dots button { width: 38px; height: 4px; background: rgba(255, 255, 255, .4); }
.hero-dots button[aria-current="true"] { background: var(--red); }

/* Clublogo's naast ploegnamen (Beheer → Clubs). Klein en uitgelijnd op de
   tekstregel; ontbreekt een logo, dan staat er gewoon niets. */
.clublogo {
    display: inline-block; width: 20px; height: 20px;
    object-fit: contain; vertical-align: -4px; margin-right: 8px;
}
.ranking .clublogo { width: 18px; height: 18px; margin-right: 7px; }

/* Het clublogo als witte tegel (wedstrijdkop, wedstrijdkaart): groter en met
   een eigen vlak, zodat het loskomt van elke achtergrond. Zonder logo dragen
   de initialen van de club de tegel — zie partials/clubtile. */
.clubtile { flex: none; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.clubtile img { width: 76%; height: 76%; object-fit: contain; }
.clubtile b { font-family: var(--display); font-style: italic; font-weight: 700; line-height: 1; color: var(--ink); }

/* De wedstrijdkaart zweeft rechts in de hero, met haar rechterkant op de
   inhoudslijn: .hero-aside is de 1280-box, de gutter doet de rest. */
.matchcard {
    position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%); z-index: 3;
    width: 352px;
    background: var(--hero-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(22, 18, 15, .10);
    box-shadow: var(--shadow-card);
    color: var(--ink);
}

.matchcard-tabs { display: flex; }
.matchcard-tabs button {
    flex: 1; padding: 15px 0 12px; text-align: center;
    font: 700 11px/1 var(--body); letter-spacing: .09em; text-transform: uppercase;
    color: var(--dash-text); border-bottom: 3px solid var(--line);
}
.matchcard-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }

.matchcard-body { padding: 24px 26px 26px; }
.matchcard-panel[hidden] { display: none; }
.matchcard-panel { animation: zfade .3s ease; }
.matchcard .eyebrow { margin-bottom: 16px; }
.matchcard .side { display: flex; align-items: center; gap: 14px; font-size: 32px; line-height: 1.02; }
.matchcard .clubtile { width: 46px; height: 46px; border: 1px solid var(--line); }
.matchcard .clubtile b { font-size: 19px; }
.matchcard .vs { font: 600 12px/1 var(--body); color: var(--red); letter-spacing: .12em; margin: 9px 0; }
.matchcard .when { font: 400 12.5px/1.6 var(--body); color: var(--meta); margin-top: 12px; }

.countdown {
    display: flex; gap: 20px; margin: 20px 0; padding: 16px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.countdown b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1; }
.countdown span {
    display: block; margin-top: 5px;
    font: 500 9px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--meta);
}

.matchcard-actions { display: flex; gap: 8px; }
.matchcard-actions .btn { flex: 1; text-align: center; padding: 12px 0; font-size: 11px; letter-spacing: .06em; }

.matchcard .score { display: flex; gap: 14px; align-items: baseline; margin-top: 14px; }
.matchcard .score b { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 34px; line-height: 1; }

/* ==========================================================================
   Diamond ace-strip
   ========================================================================== */

.acestrip { background: #fff; border-bottom: 1px solid var(--line); }

.acestrip > div {
    max-width: var(--page); margin-inline: auto;
    padding: 22px var(--gut);
    display: flex; align-items: center; gap: 34px;
}

.acestrip .label { min-width: 132px; }
.acestrip .label span { display: block; font: 400 11.5px/1.4 var(--body); color: var(--meta); margin-top: 6px; }
/* De pakketnaam als echte titel: cursief Barlow Condensed in kapitalen. */
.acestrip .label .eyebrow {
    font: italic 700 38px/1 var(--display);
    text-transform: uppercase; letter-spacing: .01em;
    color: var(--ink); margin-top: 0;
}
.acestrip ul { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: center; }
.acestrip img { max-height: 46px; width: auto; margin-inline: auto; object-fit: contain; transition: transform .35s ease; }
.acestrip a:hover img, .acestrip a:focus-visible img { transform: scale(1.08); }
.acestrip .link-more { color: var(--ink); font-size: 11.5px; }

/* De Golden smash-banner halfweg de home: dezelfde strook, maar als donkere
   band met witte logotegels zodat hij als banner leest. --kolommen komt uit
   het sjabloon en volgt het aantal partners (max. zes). */
.acestrip--golden { background: var(--ink); border-bottom: 0; }
.acestrip--golden .label .eyebrow { color: #fff; }
.acestrip--golden .label span { color: rgba(255, 255, 255, .55); }
.acestrip--golden ul { grid-template-columns: repeat(var(--kolommen, 6), 1fr); gap: 12px; }
.acestrip--golden li {
    background: #fff; height: 74px; padding: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: transform .3s ease, box-shadow .3s ease;
}
.acestrip--golden li.is-dark { background: var(--ink-tint); }
.acestrip--golden li:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .35); }
.acestrip--golden li a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.acestrip--golden img { max-height: 100%; max-width: 100%; }
.acestrip--golden .link-more { color: #fff; }

/* ==========================================================================
   Partnerstrip: alle partners, op elke pagina net boven de footer
   ========================================================================== */

/* De partnerstrook boven de footer: dezelfde niveaurasters als op de
   partnerpagina (levelhead + logogrid), op het papieren vlak. */
.partnerstrip { background: var(--paper); border-top: 1px solid var(--line); }

.partnerstrip > div {
    max-width: var(--page); margin-inline: auto;
    padding: 36px var(--gut) 44px;
}

.partnerstrip-kop {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
    margin-bottom: 24px;
}
.partnerstrip-kop h2 { font-size: 30px; }

/* ==========================================================================
   Ploegkaarten op de homepage
   ========================================================================== */

.teamcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.teamcard { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.teamcard.is-dark { background: var(--ink); color: #fff; border-color: var(--ink); }

.teamcard-photo { position: relative; height: 250px; }
.teamcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.teamcard-photo .flag {
    position: absolute; top: 0; left: 0;
    background: var(--ink); color: #fff;
    font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
    padding: 9px 13px;
}
.teamcard.is-dark .teamcard-photo .flag { background: var(--red); }

.teamcard-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.teamcard-body h3 { font-size: 34px; }

/* Naam, reeks, stand en aantal wedstrijden op één lijn: de cijfers staan
   naast elkaar rechts van de ploegnaam. */
.teamcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.teamcard-head h3 { flex: 1; min-width: 0; }
.teamcard-side { display: flex; gap: 24px; text-align: right; flex-shrink: 0; padding-top: 5px; }
.teamcard-side b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 21px; line-height: 1; }
.teamcard-side span {
    display: block; margin-top: 4px;
    font: 500 9.5px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--meta);
}
.teamcard.is-dark .teamcard-side span { color: rgba(255, 255, 255, .5); }

/* De laatst gespeelde wedstrijd op de tweede lijn van de kaart. */
.teamcard-last {
    display: flex; align-items: center; gap: 16px;
    margin: 14px 0 18px; padding: 12px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    color: inherit; text-decoration: none;
}
.teamcard-last-text { flex: 1; min-width: 0; }
.teamcard-last-tag {
    display: block;
    font: 500 9.5px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--meta);
}
.teamcard-last-fixture {
    display: block; margin-top: 4px;
    font: 600 14px/1.3 var(--body);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.teamcard-last b { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 24px; line-height: 1; flex-shrink: 0; }
.teamcard-last:hover .teamcard-last-fixture { text-decoration: underline; }
.teamcard.is-dark .teamcard-last { border-color: rgba(255, 255, 255, .14); }
.teamcard.is-dark .teamcard-last-tag { color: rgba(255, 255, 255, .5); }

/* Volgt er nog een statrij (spelers, training), dan delen de twee lijnen
   één scheidingslijn. */
.teamcard-last + .statrow { margin-top: -18px; border-top: 0; }

.statrow {
    display: flex; gap: 30px; flex-wrap: wrap;
    margin: 16px 0 18px; padding: 14px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.teamcard.is-dark .statrow,
.band--ink .statrow { border-color: rgba(255, 255, 255, .14); }

.statrow b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 24px; line-height: 1; }
.statrow b sup { font-size: 14px; vertical-align: baseline; }
.statrow span {
    display: block; margin-top: 5px; max-width: 200px;
    font: 500 9.5px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--meta);
}
.teamcard.is-dark .statrow span,
.band--ink .statrow span { color: rgba(255, 255, 255, .5); }

.teamcard .btn { align-self: flex-start; margin-top: auto; }

/* ==========================================================================
   Nieuws
   ========================================================================== */

.newsgrid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }

.newslead img { width: 100%; height: 280px; object-fit: cover; object-position: center; }
.newslead h3 { font-size: 34px; line-height: 1.05; max-width: 600px; }
.newslead p { margin: 10px 0 0; max-width: 560px; font: 400 14.5px/1.6 var(--body); color: var(--text-muted); }

/* Het hele kaartvlak is de link; het beeld zoomt traag in (site.js, GSAP)
   en de knop kleurt mee zodat duidelijk is dat je overal kunt klikken. */
.newslead-media { display: block; position: relative; overflow: hidden; }

.newslead .btn { margin-top: 18px; }
.newslead .btn i { display: inline-block; font-style: normal; margin-left: 8px; transition: transform .25s ease; }
.newslead a:hover .btn { background: var(--red); }
.newslead a:hover .btn i { transform: translateX(4px); }

.newstag {
    display: flex; gap: 10px; align-items: center; margin: 16px 0 8px;
}
.newstag b {
    background: var(--red); color: #fff;
    font: 700 10px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
    padding: 5px 8px;
}
.newstag time { font: 400 12px/1 var(--body); color: var(--meta); }

.newslist { display: flex; flex-direction: column; gap: 16px; }
.newslist li { display: flex; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.newslist li:last-child { padding-bottom: 0; border-bottom: 0; }
.newslist img, .newslist .ph { width: 118px; height: 82px; flex: none; object-fit: cover; object-position: center; }
.newslist .eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 7px; }
.newslist h3 { font-size: 22px; line-height: 1.05; }

.newscards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.newscard { background: #fff; border: 1px solid var(--line); }
.newscard img, .newscard .ph { width: 100%; height: 168px; object-fit: cover; object-position: center; }
.newscard > div { padding: 16px 18px 20px; }
.newscard .eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 9px; }
.newscard h3 { font-size: 26px; line-height: 1.05; }
.newscard:hover { box-shadow: 0 4px 18px rgba(22, 18, 15, .10); }

.band--ink .newscards .newscard { background: transparent; border: 0; }
.band--ink .newscard img, .band--ink .newscard .ph { height: 148px; }
.band--ink .newscard > div { padding: 0; }
.band--ink .newscard .eyebrow { margin: 14px 0 8px; }

/* ==========================================================================
   Jeugdblok
   ========================================================================== */

.youthband { display: flex; align-items: flex-start; justify-content: space-between; gap: 50px; }
.youthband-text { max-width: 430px; }
.youthband-text h2 { font-size: 48px; line-height: .98; }
.youthband-text p { margin: 16px 0 22px; font: 400 15px/1.6 var(--body); color: rgba(255, 255, 255, .85); }
.youthband-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.youthgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; max-width: 620px; }
.youthgrid li { border: 1px solid rgba(255, 255, 255, .28); padding: 16px 14px; }
.youthgrid li.is-wide { grid-column: span 2; }
.youthgrid b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 30px; line-height: 1; }
.youthgrid li.is-wide b { font-size: 26px; text-transform: uppercase; }
.youthgrid span { display: block; margin-top: 6px; font: 400 11.5px/1.4 var(--body); color: rgba(255, 255, 255, .7); }
/* Hover: de tegel licht op als een wisselbord — wit vlak, rode naam, tikje
   omhoog. */
.youthgrid li {
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.youthgrid b, .youthgrid span { transition: color .18s ease, transform .18s ease; }
.youthgrid li:hover { background: #fff; border-color: #fff; transform: translateY(-4px); }
.youthgrid li:hover b { color: var(--red); transform: translateX(4px); }
.youthgrid li:hover span { color: var(--ink); }

/* ==========================================================================
   Partners in vier niveaus
   ========================================================================== */

.levelhead { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
/* De niveaunamen als echte titels in het titelfont, niet als kleine labels. */
.levelhead span {
    min-width: 104px;
    font: italic 700 30px/1 var(--display);
    letter-spacing: .01em; text-transform: uppercase;
    color: var(--ink);
}
.levelhead i { flex: 1; height: 1px; background: var(--line); }

.logogrid { display: grid; gap: 12px; margin-bottom: 30px; }
.logogrid:last-child { margin-bottom: 0; }

.logogrid li {
    background: #fff; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; padding: 14px;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* Sponsorhover: de tegel komt van de pagina los en het logo groeit even. */
.logogrid li:has(> a):hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(22, 18, 15, .14);
    border-color: var(--ink);
}
.logogrid li.is-dark:has(> a):hover { border-color: var(--ink); box-shadow: 0 12px 26px rgba(22, 18, 15, .28); }
.logogrid li a img { transition: transform .35s ease; }
.logogrid li a:hover img, .logogrid li a:focus-visible img { transform: scale(1.08); }
.logogrid li.is-dark { background: var(--ink); border-color: var(--ink); }
.logogrid li.is-empty {
    background: transparent; border-style: dashed; border-color: var(--line-dashed);
    font: 500 10px/1 var(--mono); color: var(--dash-text);
}
/* De link om het logo moet de hele tegel vullen: max-height: 100% op het
   beeld rekent tegen zijn ouder, en een <a> die om zijn inhoud krimpt geeft
   geen hoogte om tegen te rekenen. */
.logogrid li a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logogrid img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }

.logogrid--diamond { grid-template-columns: repeat(3, 1fr); }
.logogrid--diamond li { height: 104px; padding: 16px; }
.logogrid--golden { grid-template-columns: repeat(6, 1fr); }
.logogrid--golden li { height: 84px; padding: 12px; }
.logogrid--silver { grid-template-columns: repeat(6, 1fr); }
.logogrid--silver li { height: 68px; padding: 10px; }
.logogrid--bronze { grid-template-columns: repeat(6, 1fr); }
.logogrid--bronze li { height: 58px; padding: 10px; }
.logogrid--all { grid-template-columns: repeat(8, 1fr); }
.logogrid--all li { height: 76px; padding: 10px; }

@media (prefers-reduced-motion: reduce) {
    .logogrid li, .logogrid li a img, .acestrip img, .acestrip--golden li { transition: none; }
    .logogrid li:has(> a):hover, .acestrip--golden li:hover { transform: none; }
    .logogrid li a:hover img, .acestrip a:hover img { transform: none; }
}

/* ==========================================================================
   Ploegpagina
   ========================================================================== */

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

.teamhead-text {
    background: var(--ink); color: #fff;
    padding: 44px var(--gut) 36px;
    /* De kop is viewportbreed (foto = halve view), maar de tekst lijnt uit
       met de gecentreerde pagina-container in plaats van met de schermrand. */
    padding-left: max(var(--gut), calc((100vw - var(--inner)) / 2));
    display: flex; flex-direction: column; justify-content: flex-end;
}
.teamhead-text h1 { font-size: 78px; line-height: .9; }
.teamhead-text > p { margin: 18px 0 0; max-width: 420px; font: 400 14.5px/1.6 var(--body); color: rgba(255, 255, 255, .62); }
.teamhead-text .statrow { margin: 26px 0 0; padding: 22px 0 0; border-bottom: 0; gap: 36px; }
.teamhead-text .statrow b { font-size: 32px; }
.teamhead-text .statrow b sup { font-size: 17px; }

.teamhead-photo { min-height: 420px; }
.teamhead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.teamhead-photo .ph { height: 100%; }

/* Fotokop met de titel onderaan (jeugdploeg, nieuwsartikel, word lid). */
.photohead { position: relative; }
.photohead > img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; }
.photohead .ph { position: absolute; inset: 0; }
.photohead::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(22, 18, 15, .94) 8%, rgba(22, 18, 15, .15) 65%);
}
.photohead > div {
    position: relative; z-index: 2;
    max-width: var(--page); margin-inline: auto;
    height: 100%; padding: 30px var(--gut);
    display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
    color: #fff;
}
.photohead h1 { font-size: 76px; line-height: .9; }
.photohead p { margin: 14px 0 0; max-width: 440px; font: 400 15px/1.6 var(--body); color: rgba(255, 255, 255, .78); }
.photohead-actions { display: flex; gap: 10px; flex: none; }

.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav > ul {
    max-width: var(--page); margin-inline: auto;
    padding: 0 var(--gut);
    display: flex; gap: 32px;
    font: 700 12.5px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
    color: var(--meta);
    overflow-x: auto;
}
.subnav a { display: block; padding: 19px 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav .is-active a, .subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }

.squad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.squad--wide { grid-template-columns: repeat(4, 1fr); }

.player { background: #fff; border: 1px solid var(--line); }
.player.is-staff { background: var(--ink); border-color: var(--ink); color: #fff; }
.player-photo { position: relative; height: 132px; }
.player-photo img { width: 100%; height: 100%; object-fit: cover; }
.player-photo .ph { height: 100%; }
.player-photo b {
    position: absolute; left: 8px; top: 8px;
    font-family: var(--display); font-style: italic; font-weight: 700; font-size: 26px; line-height: 1;
    color: var(--red);
}
.player.is-staff .player-photo b { font-size: 20px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.player-name { padding: 10px 11px; font: 600 13px/1.3 var(--body); }

.staffrow { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.staffchip {
    background: var(--ink); color: #fff; padding: 14px 18px;
    display: flex; align-items: center; gap: 12px;
}
.staffchip b { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 20px; line-height: 1; }
.staffchip span { font: 600 13px/1 var(--body); }

.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }

.nextmatch {
    border: 1px solid var(--red); padding: 16px 18px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nextmatch > div { flex: 1; min-width: 0; }
.nextmatch .eyebrow { margin-bottom: 10px; }
/* De affiche in de box: zelfde bord als in de kalender-rijen, klikbaar. */
.nextmatch-board { display: block; min-width: 0; color: inherit; text-decoration: none; }
.nextmatch-board:hover .display { color: var(--red); }
.nextmatch .where { font: 400 12px/1.5 var(--body); color: var(--meta); margin-top: 10px; }
.nextmatch .btn { white-space: nowrap; }

/* De kalender als affiches: datum en tijd links, de ploegen met hun
   logotegels rond het midden, en daar de setstand — of een streepje zolang
   er geen uitslag is. De middenkolom is overal even breed, zodat de scores
   onder elkaar uitlijnen zoals op een uitslagenbord. */
.matchlist { border-top: 1px solid var(--line); }
.matchrow {
    display: grid; grid-template-columns: 84px minmax(0, 1fr) 12px;
    align-items: center; gap: 8px 14px;
    padding: 13px 0 14px; border-bottom: 1px solid var(--line);
    color: inherit; text-decoration: none;
}
.matchrow-when { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.matchrow-when b { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 17px; line-height: 1; white-space: nowrap; }
.matchrow-when > span { font: 500 10px/1.35 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--meta); text-wrap: balance; }
.matchrow-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.matchrow-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.matchrow-team .display { font-size: 16px; line-height: 1; text-wrap: balance; }
.matchrow-team--home { justify-content: flex-end; text-align: right; }
.matchrow-team .clubtile { width: 30px; height: 30px; border: 1px solid var(--line); }
.matchrow-team .clubtile b { font-size: 13px; }
.matchrow-mid {
    min-width: 58px; display: flex; align-items: center; justify-content: center; gap: 5px;
    font-family: var(--display); font-style: italic; font-weight: 700; font-size: 20px; line-height: 1;
}
.matchrow-mid b { font-weight: 700; }
.matchrow-mid b.is-loss { color: var(--red); }
.matchrow-mid i { font-style: normal; font-size: 14px; color: var(--meta); }
.matchrow-mid.is-empty i { font-size: 18px; }
.matchrow-go { color: var(--meta); font-size: 15px; text-align: right; }
.matchrow:hover .matchrow-team .display,
.matchrow:hover .matchrow-go { color: var(--red); }

/* De compacte variant voor smalle kolommen (zijbalk, megamenu): datum en
   tijd als regel boven de affiche, zoals de gewone rij op mobiel. */
.matchlist--compact .matchrow { grid-template-columns: minmax(0, 1fr) 14px; }
.matchlist--compact .matchrow-when { grid-column: 1; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; }
.matchlist--compact .matchrow-when b { font-size: 15px; }
.matchlist--compact .matchrow-go { grid-row: 1; grid-column: 2; }
.matchlist--compact .matchrow-board { grid-column: 1 / -1; gap: 10px; }
.matchlist--compact .matchrow-team { gap: 9px; }
.matchlist--compact .matchrow-team .display { font-size: 15px; }
.matchlist--compact .matchrow-team .clubtile { width: 26px; height: 26px; }
.matchlist--compact .matchrow-team .clubtile b { font-size: 11px; }
.matchlist--compact .matchrow-mid { min-width: 48px; font-size: 17px; }

.results { font: 400 13px/1 var(--body); }
.results td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.results tr:last-child td { border-bottom: 0; }
.results .date { color: var(--meta); width: 74px; white-space: nowrap; }
.results .score {
    text-align: right; white-space: nowrap;
    font-family: var(--display); font-style: italic; font-weight: 700; font-size: 16px; line-height: 1;
}
.results .score.is-loss { color: var(--red); }
.results .time { text-align: right; color: var(--meta); }

.ranking { font: 400 13px/1 var(--body); }
.ranking th {
    text-align: left; padding: 0 0 9px;
    font: 700 9.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--meta);
    border-bottom: 1px solid var(--ink);
}
.ranking th.num, .ranking td.num { text-align: right; }
.ranking th:first-child { width: 34px; }
.ranking td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.ranking tr:last-child td { border-bottom: 0; }
.ranking .pos { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 14px; line-height: 1; }
.ranking td.num { color: var(--meta); }
.ranking td.pts { text-align: right; font-weight: 600; color: var(--ink); }
.ranking .is-own { background: var(--red); color: #fff; }
.ranking .is-own td { border-bottom-color: var(--red); padding: 11px 0; font-weight: 700; }
.ranking .is-own td:first-child { padding-left: 6px; font-size: 15px; }
.ranking .is-own td:last-child { padding-right: 6px; }
.ranking .is-own td.num { color: #fff; }

.sidebox { background: var(--paper); border-left: 3px solid var(--ink); padding: 16px 18px; margin-top: 22px; }
.sidebox .eyebrow { color: var(--meta); font-size: 10px; letter-spacing: .14em; margin-bottom: 10px; }
.sidebox p { font: 600 14px/1.6 var(--body); }
.sidebox .where { font: 400 12.5px/1.5 var(--body); color: var(--meta); margin-top: 6px; }

.emptybox { border: 1px dashed var(--line-dashed); padding: 18px; margin-bottom: 20px; }
.emptybox b { display: block; font: 600 13px/1.6 var(--body); }
.emptybox p { font: 400 12.5px/1.6 var(--body); color: var(--meta); margin-top: 6px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--paper); padding: 18px; }
.tile b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 34px; line-height: 1; }
.tile span { display: block; margin-top: 6px; font: 500 10px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--meta); }

.form-strip { display: flex; gap: 7px; margin-bottom: 24px; }
.form-strip span {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font: 700 13px/1 var(--body); color: #fff; background: var(--ink);
}
.form-strip span.is-loss { background: var(--red); }

.roundbox { background: #fff; border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 12px; }
.roundbox .eyebrow { color: var(--meta); font-size: 10px; letter-spacing: .14em; margin-bottom: 14px; }
.roundbox .ranking { font-size: 12.5px; }
.roundbox .ranking td { padding: 7px 0; border-bottom-color: var(--paper); }
.roundbox .ranking .pos { font-size: 13px; }

.trainingtiles { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.trainingtile { flex: 1; min-width: 180px; background: var(--paper); padding: 18px; }
.trainingtile .eyebrow { margin-bottom: 10px; }
.trainingtile b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 26px; line-height: 1; }
.trainingtile span { display: block; font: 400 12px/1.5 var(--body); color: var(--meta); margin-top: 6px; }

.deflist > div {
    display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line);
}
.deflist > div:last-child { border-bottom: 1px solid var(--line); }
.deflist dt { min-width: 150px; font: 600 13px/1.5 var(--body); }
.deflist dd { font: 400 13px/1.6 var(--body); color: var(--text-muted); }

.parentbox { background: var(--paper); padding: 28px 30px; }
.parentbox h2 { font-size: 30px; margin-bottom: 18px; }
.parentbox .btn { margin-top: 20px; }

/* ==========================================================================
   Jeugdoverzicht
   ========================================================================== */

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.split h1 { font-size: 66px; line-height: .94; }
.split p { margin: 18px 0 24px; max-width: 520px; }
.split-photo { height: 330px; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split-photo .ph { height: 100%; }

/* Beeld + tekst met het beeld links: zelfde raster, gespiegeld. */
.split--flip { grid-template-columns: 1fr 1.1fr; }
.split--flip > :first-child { order: 2; }

.keyfigures { display: flex; gap: 34px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.keyfigures b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 34px; line-height: 1; }
.keyfigures b.is-red { color: var(--red); }
.keyfigures span { display: block; margin-top: 6px; font: 500 10px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--meta); }

.agebar { height: 6px; background: linear-gradient(to right, var(--paper-deep), var(--red)); margin-bottom: 26px; }

.youthcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.youthcard { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; }
.youthcard h3 { font-size: 30px; }
.youthcard .years { font: 600 12px/1 var(--body); color: var(--red); margin: 12px 0 10px; }
.youthcard .details { font: 400 12.5px/1.7 var(--body); color: var(--meta); }
.youthcard:hover { border-color: var(--ink); }
.youthcard.is-cta {
    background: var(--red); color: #fff; border-color: var(--red);
    justify-content: space-between;
}
.youthcard.is-cta .details { color: rgba(255, 255, 255, .85); margin-top: 12px; }
.youthcard.is-cta .btn { align-self: flex-start; margin-top: 16px; }

/* ==========================================================================
   Formulieren
   ========================================================================== */

.formcard { background: var(--ink); color: #fff; padding: 32px 34px; }
.formcard h2 { font-size: 34px; }
.formcard > p { margin: 12px 0 24px; font: 400 14px/1.6 var(--body); color: rgba(255, 255, 255, .65); }

.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formgrid .wide { grid-column: span 2; }

/* Een selectievakje uit de veldenbouwer: vakje en tekst op één regel. */
.formgrid .check { display: flex; align-items: flex-start; gap: 10px; font: 400 14px/1.5 var(--body); color: var(--text-muted); }
.formgrid .check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--red); }

.formgrid label { display: block; }
.formgrid .field-label {
    display: block; margin-bottom: 6px;
    font: 500 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}

.formgrid input,
.formgrid select,
.formgrid textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    padding: 13px 15px;
    font: 400 13px/1.3 var(--body);
}
.formgrid textarea { min-height: 84px; resize: vertical; }
.formgrid input::placeholder, .formgrid textarea::placeholder { color: rgba(255, 255, 255, .4); }
.formgrid input:focus, .formgrid select:focus, .formgrid textarea:focus { border-color: #fff; outline: none; }
.formgrid select option { color: var(--ink); }

.formcard .btn { margin-top: 18px; }
.formcard .footnote { font: 400 12px/1.6 var(--body); color: rgba(255, 255, 255, .45); margin-top: 16px; }

.form-note {
    background: var(--paper); border-left: 3px solid var(--red);
    padding: 14px 16px; margin-bottom: 18px;
    font: 500 13.5px/1.6 var(--body); color: var(--ink);
}
.formcard .form-note { background: rgba(255, 255, 255, .08); color: #fff; }
.form-errors { color: #fff; background: var(--red); padding: 12px 15px; margin-bottom: 16px; font: 500 13px/1.5 var(--body); }

/* Honeypot — onzichtbaar voor mensen, ingevuld door bots. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* reCAPTCHA v3 — de badge van Google (afgeronde hoeken, rechtsonder) blijft
   weg; de tekst onder het formulier vervangt ze, zoals Google dat toelaat. */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note a { color: inherit; text-decoration: underline; }
.formcard form.is-verifying .btn { opacity: .6; pointer-events: none; }

.faq > div { padding: 16px 0; border-top: 1px solid var(--line); }
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font: 600 15px/1.4 var(--body); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--red); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq p { font: 400 13.5px/1.65 var(--body); color: var(--text-muted); margin-top: 8px; }

.callout { background: #fff; border: 1px solid var(--line); padding: 20px 22px; margin-top: 22px; }
.callout .eyebrow { color: var(--meta); font-size: 10px; letter-spacing: .14em; margin-bottom: 10px; }
.callout b { display: block; font: 600 14px/1.6 var(--body); }
.callout span { display: block; font: 400 13px/1.6 var(--body); color: var(--text-muted); margin-top: 4px; }

/* ==========================================================================
   Nieuwsoverzicht en artikel
   ========================================================================== */

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip {
    background: #fff; border: 1px solid var(--line); color: var(--ink);
    font: 700 11.5px/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
    padding: 11px 15px;
}
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip:hover { border-color: var(--ink); }

.featured { background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 26px; }
.featured-photo { min-height: 300px; }
.featured-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.featured-photo .ph { height: 100%; }
.featured-body { padding: 36px var(--gut); display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-size: 44px; line-height: 1.02; }
.featured-body p { margin: 14px 0 20px; font: 400 15px/1.65 var(--body); color: rgba(255, 255, 255, .68); }
.featured-body .btn { align-self: flex-start; }
.featured .newstag time { color: rgba(255, 255, 255, .55); }
/* Uitgelicht evenement op de home: dezelfde donkere kaart, als band. */
.eventband .featured { margin-bottom: 0; }
.eventband .featured-photo { display: block; }
.eventband .featured-body p.eventband-meta { margin: 0 0 18px; color: #fff; font-weight: 600; }
.eventband .featured-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.eventband .featured-body .featured-actions .btn { align-self: auto; }

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 10px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line);
    font: 700 13px/1 var(--body);
}
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .is-disabled { border: 0; background: transparent; color: var(--meta); font-weight: 400; }

.article { display: grid; grid-template-columns: 1fr 330px; gap: 52px; }
.article-body { max-width: 680px; }
.article-body .article-lead { margin: 0 0 22px; font: 400 20px/1.6 var(--body); color: var(--ink); }
.article-body p { margin: 0 0 18px; font: 400 16px/1.75 var(--body); color: var(--ink-soft); }
.article-body h2 { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 32px; line-height: 1; margin: 30px 0 14px; }
.article-body h3 { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1; margin: 24px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 20px; list-style: disc; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.article-body ol { list-style: decimal; }
.article-body a { color: var(--red); text-decoration: underline; }
/* Een knop in de tekst blijft een knop: wit op rood, zonder onderlijn. */
.article-body a.btn { text-decoration: none; }
.article-body a.btn--red { color: #fff; }
.article-body blockquote {
    border-left: 3px solid var(--red); padding: 6px 0 6px 20px; margin: 26px 0;
    font: italic 600 22px/1.5 var(--body); color: var(--ink);
}

.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.share > span { font: 600 12px/1 var(--body); color: var(--meta); }
.share a, .share button { border: 1px solid var(--line); padding: 9px 13px; font: 600 11.5px/1 var(--body); }
.share a:hover, .share button:hover { border-color: var(--ink); }

.scorecard { background: var(--ink); color: #fff; padding: 22px 24px; margin-bottom: 16px; }
.scorecard .eyebrow { margin-bottom: 16px; }
.scorecard .line { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scorecard .line:first-of-type { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.scorecard .line:last-of-type { padding-top: 12px; }
.scorecard .side { font-size: 22px; }
.scorecard .sets { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 26px; line-height: 1; }
.scorecard .sets.is-loss { color: var(--red); }
.scorecard .when { font: 400 12px/1.6 var(--body); color: rgba(255, 255, 255, .5); margin-top: 14px; }

.asidebox { border: 1px solid var(--line); padding: 20px 22px; margin-bottom: 16px; }
.asidebox .eyebrow { color: var(--meta); font-size: 10px; letter-spacing: .14em; margin-bottom: 14px; }
.asidebox h3 { font-size: 26px; margin-bottom: 10px; }
.asidebox p { font: 400 13px/1.6 var(--body); color: var(--text-muted); margin-bottom: 16px; }
.asidebox li { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 20px; line-height: 1.1; }
.asidebox li:first-child { padding-top: 0; }
.asidebox li:last-child { border-bottom: 0; padding-bottom: 0; }
.asidebox a:hover { color: var(--red); }

/* Het korte klassement bij een nieuwsbericht: drie rijen, eigen ploeg rood.
   Zonder kolomkoppen bepaalt de cel de breedte, dus de positiekolom krijgt
   er hier een — anders plakt het rugnummer tegen de ploegnaam. */
.asidebox .ranking { width: 100%; margin-bottom: 14px; }
.asidebox .ranking td.pos { width: 34px; padding-right: 10px; white-space: nowrap; }
.asidebox .ranking td:nth-child(2) { width: 100%; }

/* ==========================================================================
   Sponsorpakketten
   ========================================================================== */

.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.package { background: var(--paper); border: 1px solid var(--line); padding: 26px 24px; }
.package.is-top { background: var(--ink); color: #fff; border-color: var(--ink); }
.package h3 { font-size: 30px; white-space: nowrap; }
.package .price { font: 500 11px/1 var(--mono); color: var(--dash-text); margin: 12px 0 20px; }
.package.is-top .price { color: rgba(255, 255, 255, .45); }
.package .price.is-set { color: var(--ink); font-size: 13px; }
.package.is-top .price.is-set { color: #fff; }
.package ul { border-top: 1px solid var(--line); padding-top: 16px; font: 400 13px/2 var(--body); color: var(--text-muted); }
.package.is-top ul { border-top-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .78); }
.package .btn { margin-top: 22px; }

.contactband {
    background: var(--ink); color: #fff; margin-top: 26px; padding: 30px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.contactband h2 { font-size: 32px; }
.contactband p { font: 400 14px/1.6 var(--body); color: rgba(255, 255, 255, .65); margin-top: 8px; }
.contactband .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ==========================================================================
   Blokken uit de paginabuilder
   ========================================================================== */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { border-top: 3px solid var(--line); padding-top: 18px; }
.step:first-child { border-top-color: var(--red); }
.step b { display: block; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 42px; line-height: 1; }
.step:first-child b { color: var(--red); }
.step h3 { font: 600 17px/1.3 var(--body); text-transform: none; font-style: normal; margin: 10px 0 8px; }
.step p { font: 400 13.5px/1.65 var(--body); color: var(--text-muted); }

.prose { max-width: 720px; }
.prose p { margin: 0 0 18px; font: 400 16px/1.75 var(--body); color: var(--ink-soft); }
.prose h2 { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 32px; line-height: 1; margin: 28px 0 14px; }
.prose h3 { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1; margin: 22px 0 12px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 20px; list-style: disc; color: var(--ink-soft); }
.prose ol { list-style: decimal; }
.prose a { color: var(--red); text-decoration: underline; }

/* ==========================================================================
   Footer
   ========================================================================== */

.sitefoot { background: var(--ink); color: #fff; padding: 46px var(--gut); }
.sitefoot > div { max-width: var(--inner); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.sitefoot img { height: 34px; width: auto; }
.sitefoot p { margin: 18px 0 0; font: 400 13px/1.7 var(--body); color: rgba(255, 255, 255, .55); }
.sitefoot .eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: .14em; }
.sitefoot li a { font: 400 13px/2 var(--body); color: rgba(255, 255, 255, .6); }
.sitefoot li a:hover { color: #fff; }

/* De kolomtitel is een knop: op desktop onmerkbaar (alles staat open), op
   mobiel klapt hij de kolom als accordeon open en dicht — zie verderop. */
.sitefoot .footcol-toggle {
    background: none; border: 0; padding: 0; margin: 0;
    font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
    cursor: default; text-align: left;
}
.sitefoot .footcol-toggle::after { content: '+'; font: 400 17px/1 var(--body); opacity: 0; }

@media (max-width: 700px) {
    .sitefoot > div { row-gap: 10px; }
    .sitefoot nav { border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .sitefoot nav .eyebrow { margin-bottom: 0; }
    .sitefoot .footcol-toggle { cursor: pointer; padding: 13px 0; }
    .sitefoot .footcol-toggle::after { opacity: .7; transition: transform .25s ease; }
    .sitefoot nav ul { display: none; padding-bottom: 14px; }
    .sitefoot nav.is-open ul { display: block; }
    .sitefoot nav.is-open .footcol-toggle::after { transform: rotate(45deg); }
}

@media (prefers-reduced-motion: reduce) {
    .sitefoot .footcol-toggle::after { transition: none; }
}
.sitefoot .colophon {
    grid-column: 1 / -1; margin-top: 14px; padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font: 400 12px/1.6 var(--body); color: rgba(255, 255, 255, .38);
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

/* De makerscredit: het volledige Awelja-logo, in de witte versie voor de
   donkere footer ("Glans", aangeleverd door Awelja). Bij hover glijdt een
   glans in de Awelja-brandkleur door de letters: de vulling wisselt naar de
   gradiënt in de SVG, die permanent van links naar rechts schuift. */
.awelja-credit {
    --awelja-ink: #fff;
    --awelja-accent: #4089A6;      /* het petrolblauw uit de Awelja-huisstijl */
    --awelja-logo-h: 2.4em;
    display: inline-flex; align-items: center; gap: .7em;
    font: inherit; font-size: .8rem; font-weight: 500; letter-spacing: .005em;
    line-height: 1; color: var(--awelja-ink); text-decoration: none; white-space: nowrap;
}
.awelja-credit__text { opacity: .82; transition: opacity .3s ease; }
.awelja-credit:hover .awelja-credit__text,
.awelja-credit:focus-visible .awelja-credit__text { opacity: 1; }
.awelja-credit__logo { height: var(--awelja-logo-h); width: auto; display: block; overflow: visible; }
.awelja-fill { fill: var(--awelja-ink); }
.awelja-sheen-basis { stop-color: var(--awelja-ink); }
.awelja-sheen-glans { stop-color: var(--awelja-accent); }
.awelja-credit:hover .awelja-fill,
.awelja-credit:focus-visible .awelja-fill { fill: url(#awelja-sheen); }

@media (prefers-reduced-motion: reduce) {
    /* Geen bewegende glans; de brandkleur licht wel nog op. */
    .awelja-credit:hover .awelja-fill,
    .awelja-credit:focus-visible .awelja-fill { fill: var(--awelja-accent); }
}

/* ==========================================================================
   Responsief — ontworpen op 1280px
   ========================================================================== */

@media (max-width: 1199px) {
    .mega--teams > div { grid-template-columns: repeat(2, 1fr); }
    .mega--news > div { grid-template-columns: repeat(2, 1fr); }
    .mega--youth > div,
    .mega--calendar > div,
    .mega--club > div { grid-template-columns: 1fr 1fr; }

    .squad { grid-template-columns: repeat(4, 1fr); }
    .logogrid--golden, .logogrid--silver, .logogrid--bronze { grid-template-columns: repeat(4, 1fr); }
    .logogrid--all { grid-template-columns: repeat(4, 1fr); }
    .youthcards { grid-template-columns: repeat(2, 1fr); }
    .newscards { grid-template-columns: repeat(2, 1fr); }
    .packages { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }

    .slide-text h1 { font-size: 62px; }
    .slide-text.is-news h1 { font-size: 50px; }
    .matchcard { width: 300px; right: var(--gut); }
    .slide-text { left: var(--gut); }
    .hero-dots { left: var(--gut); }

    .teamhead-text h1 { font-size: 62px; }
    .photohead h1 { font-size: 58px; }
    .split h1 { font-size: 52px; }
}

@media (max-width: 899px) {
    :root { --gut: 18px; }

    .band { padding: 26px var(--gut) 30px; }
    .band-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
    .band-head h2, .band--ink .band-head h2 { font-size: 28px; }

    /* Navigatie wordt "De Zaal": een volschermpaneel in de donkere
       arena-stijl van het aanmeldscherm. Rugnummers voor de items, een rode
       gloed in de hoek en een volleybal die binnenrolt (site.js, GSAP). */
    .navtoggle {
        display: flex; flex-direction: column; gap: 4px;
        padding: 10px; margin-right: -10px;
    }
    .navtoggle span {
        display: block; width: 20px; height: 2px; background: var(--ink);
        transition: transform .3s ease, opacity .2s ease;
    }

    /* De hamburger wordt het kruisje: de kop blijft boven het paneel staan. */
    html.zv-menuopen .navtoggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    html.zv-menuopen .navtoggle span:nth-child(2) { opacity: 0; }
    html.zv-menuopen .navtoggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    html.zv-menuopen { overflow: hidden; }

    /* De secundaire balk verdwijnt op mobiel; haar links (Word lid, Aangifte
       ongeval) staan in de staart van het menupaneel. De kop zelf blijft
       plakken zodat het menu overal bereikbaar is. */
    .utility { display: none; }
    .masthead { position: sticky; top: 0; }
    .masthead > div { height: 60px; }
    .masthead img { height: 34px; width: auto; }

    .mainnav {
        display: none; position: fixed; left: 0; right: 0; top: 60px; bottom: 0; z-index: 39;
        flex-direction: column; gap: 0; align-items: stretch;
        background: var(--ink); color: #fff;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        padding: 10px var(--gut) 26px;
        counter-reset: rugnummer;
    }
    .mainnav.is-open { display: flex; }

    /* De zaalverlichting: een rode gloed uit de hoek, zoals op het scorebord. */
    .mainnav::before {
        content: ''; position: fixed; inset: 60px 0 0; pointer-events: none;
        background:
            radial-gradient(520px 360px at 88% 0%, rgba(192, 24, 24, .30), transparent 62%),
            radial-gradient(420px 300px at 0% 100%, rgba(192, 24, 24, .12), transparent 60%);
    }

    .mainnav > li {
        /* Zonder flex: none knijpt de kolom met vaste hoogte de items samen
           zodra een megamenu openstaat — het paneel schuift dan over de
           volgende items heen in plaats van dat de lijst scrolt. */
        display: block; flex: none; position: relative; z-index: 1;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    /* z-index: 1 op de items maakt van elk item een eigen stapelcontext —
       het item met het open paneel moet erbovenuit, anders schijnen de
       volgende items en de staart door het paneel heen. */
    .mainnav > li:has(> .mega:not([hidden])) { z-index: 42; }

    .mainnav > li > a,
    .mainnav > li > button {
        /* height: auto overschrijft de 100% van de desktopbalk — anders vult
           de knop het hele item en duwt hij het open megamenu eruit. */
        width: 100%; height: auto; min-height: 64px; padding: 0 2px;
        display: flex; align-items: center; gap: 14px;
        justify-content: flex-start; border-bottom: 0;
        color: #fff;
        font: italic 700 27px/1 var(--display);
        text-transform: uppercase; letter-spacing: .01em;
        text-align: left;
    }

    /* Elk item draagt een rugnummer. */
    .mainnav > li > button::before,
    .mainnav > li > a::before {
        counter-increment: rugnummer;
        content: counter(rugnummer, decimal-leading-zero);
        font: 700 10.5px/1 var(--body); letter-spacing: .14em;
        color: var(--red); min-width: 24px;
    }
    .mainnav > li.is-current > button::before,
    .mainnav > li.is-current > a::before { background: var(--red); color: #fff; padding: 4px 5px; min-width: 14px; }

    /* Een chevron naar rechts: elk item met inhoud schuift een nieuw scherm in. */
    .mainnav > li > button::after {
        content: ''; flex: none; margin-left: auto;
        width: 9px; height: 9px;
        border-right: 2px solid rgba(255, 255, 255, .55);
        border-bottom: 2px solid rgba(255, 255, 255, .55);
        transform: rotate(-45deg);
    }

    /* Niveau twee is een eigen scherm dat van rechts binnenschuift
       (drill-down, site.js), met bovenaan de terugknop en de titel. */
    .mainnav .mega {
        position: fixed; inset: 60px 0 0; z-index: 41;
        box-shadow: none; border-bottom: 0; animation: none;
        background:
            radial-gradient(520px 360px at 88% 0%, rgba(192, 24, 24, .30), transparent 62%),
            radial-gradient(420px 300px at 0% 100%, rgba(192, 24, 24, .12), transparent 60%),
            var(--ink);
        overflow-y: auto; -webkit-overflow-scrolling: touch; overflow-x: hidden;
        padding: 0 var(--gut) 34px;
    }

    .mainnav .megakop { display: block; padding: 6px 0 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 20px; }
    .mainnav .megaterug {
        display: inline-flex; align-items: center; gap: 9px;
        min-height: 44px; padding: 0 12px 0 2px;
        color: rgba(255, 255, 255, .7);
        font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
    }
    .mainnav .megaterug::before {
        content: ''; flex: none; width: 8px; height: 8px;
        border-left: 2px solid var(--red); border-bottom: 2px solid var(--red);
        transform: rotate(45deg);
    }
    .mainnav .megaterug:hover { color: #fff; }
    .mainnav .megakop .display {
        margin: 2px 0 14px;
        font: italic 700 34px/.95 var(--display); text-transform: uppercase; color: #fff;
    }

    .mainnav .mega > div { padding: 0 2px 20px; grid-template-columns: 1fr !important; gap: 26px; }
    /* Elke groep als eigen sectie, met de kolomkop als rode wimpel erboven. */
    .mainnav .mega > div > div + div { border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 22px; }
    .mainnav .mega .teamthumb, .mainnav .mega .menuthumb, .mainnav .mega .megacta, .mainnav .mega .menucard, .mainnav .mega .megalogos, .mainnav .mega .meganews img { display: none; }
    /* Zonder miniatuur krijgt de jeugdtegel zijn gewone binnenmarge terug. */
    .mainnav .menutile--photo b { padding: 12px 13px; }
    .mainnav .mega :is(a, b, h3, p, strong) { color: #fff; }
    .mainnav .mega .eyebrow { color: var(--red); }
    .mainnav .mega .menulist a { font-size: 15px; line-height: 2.3; color: rgba(255, 255, 255, .85); }
    .mainnav .mega .menulist a:hover { color: #fff; }
    .mainnav .mega .meta, .mainnav .mega .menutile span { color: rgba(255, 255, 255, .55); }
    /* De affiche-rijen in het donkere paneel: witte tegels houden hun inkt-
       initialen, de lijnen en metaregels verstillen tot wit-transparant. */
    .mainnav .mega .matchlist { border-color: rgba(255, 255, 255, .14); }
    .mainnav .mega .matchrow { border-color: rgba(255, 255, 255, .14); }
    .mainnav .mega .clubtile b { color: var(--ink); }
    .mainnav .mega .matchrow-when > span { color: rgba(255, 255, 255, .55); }
    .mainnav .mega .matchrow-mid i { color: rgba(255, 255, 255, .55); }
    .mainnav .mega .matchrow-mid b.is-loss { color: var(--red); }
    .mainnav .menutile { border-color: rgba(255, 255, 255, .22); }
    .mainnav .menutile:hover { border-color: #fff; }
    .mainnav .menuside { border-left: 0; padding-left: 0; }
    .mainnav .menuteams { grid-template-columns: repeat(3, 1fr); }
    /* Eén kolom: twee pakketten naast elkaar passen niet op 390px en duwen
       het hele paneel breder dan het scherm. De witte overlegkaart is een
       desktopding. */
    .mainnav .megapacks { grid-template-columns: 1fr; gap: 0; }
    /* display: block erbij — een inline <a> met blokinhoud tekent zijn rand
       en achtergrond als losse flarden over de tekst heen. */
    .mainnav .megapack { display: block; border: 0; padding: 8px 0; background: transparent; }
    /* De niveautint, de arenaletter en het hover-spel zijn een desktopding;
       in het donkere uitschuifmenu blijft het een gewone tekstregel. */
    .mainnav .megapack::after, .mainnav .megapack::before { display: none; }
    .mainnav .megapack:hover { transform: none; box-shadow: none; }
    .mainnav .megabox { display: none; }

    /* De staart: actieknop, snelkoppelingen, en de bal in de hoek. */
    .mainnav > .mobielslot { display: block; border-bottom: 0 !important; margin-top: auto; padding-top: 28px; }
    .mobielslot .btn { display: block; text-align: center; }
    .mobielslot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 14px; }
    .mobielslot-links a {
        color: rgba(255, 255, 255, .6);
        font: 400 13px/1 var(--body); padding: 10px 0;
    }
    .mobielslot-links a:hover { color: #fff; }

    .mobielbal {
        display: block;
        position: fixed; right: -60px; bottom: -46px; z-index: 0;
        width: 230px; height: 230px;
        color: rgba(242, 237, 228, .13);
        pointer-events: none;
    }

    /* Hero: titel onderaan, wedstrijdkaart als volvlak rode band eronder. */
    .hero { height: 330px; }
    .slide::after { background: linear-gradient(to top, rgba(22, 18, 15, .94) 15%, rgba(22, 18, 15, 0) 70%); }
    .slide-text { top: auto; bottom: 22px; left: var(--gut); right: var(--gut); max-width: none; }
    .slide-text h1, .slide-text.is-news h1 { font-size: 46px; line-height: .92; }
    .slide-text p { display: none; }
    .slide-label { font-size: 9.5px; padding: 6px 9px; margin-bottom: 12px; }
    .slide-text .btn { display: none; }
    .hero-dots { top: 14px; bottom: auto; left: var(--gut); }

    .hero-aside { position: static; max-width: none; }

    .matchcard {
        position: static; transform: none; width: auto;
        background: var(--red); color: #fff;
        border: 0; box-shadow: none; backdrop-filter: none;
    }
    .matchcard-tabs button { color: rgba(255, 255, 255, .6); border-bottom-color: rgba(255, 255, 255, .3); }
    .matchcard-tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
    .matchcard-body { padding: 16px var(--gut) 20px; }
    .matchcard .eyebrow { color: rgba(255, 255, 255, .75); }
    .matchcard .side { font-size: 27px; gap: 12px; }
    /* Op het rode volvlak springt de witte tegel er vanzelf uit. */
    .matchcard .clubtile { width: 40px; height: 40px; border: 0; }
    .matchcard .clubtile b { font-size: 17px; }
    .matchcard .vs { color: rgba(255, 255, 255, .8); }
    .matchcard .when { color: rgba(255, 255, 255, .8); }
    .countdown { border-color: rgba(255, 255, 255, .3); }
    .countdown span { color: rgba(255, 255, 255, .75); }
    .matchcard-actions .btn--red { background: #fff; color: var(--red); }
    .matchcard-actions .btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }

    .acestrip > div { flex-direction: column; align-items: flex-start; gap: 16px; }
    .acestrip ul { width: 100%; gap: 16px; }
    .acestrip--golden ul { grid-template-columns: repeat(3, 1fr); gap: 10px; }

    .teamcards { grid-template-columns: 1fr; gap: 12px; }
    .teamcard { flex-direction: row; align-items: stretch; }
    .teamcard-photo { width: 104px; flex: none; height: auto; }
    .teamcard-body { padding: 14px 16px; }
    .teamcard-body h3 { font-size: 22px; }
    .teamcard .statrow { gap: 16px; margin: 10px 0 12px; padding: 10px 0; }
    .teamcard .statrow b { font-size: 18px; }
    .teamcard-head { flex-wrap: wrap; gap: 6px 16px; }
    .teamcard-side { gap: 16px; padding-top: 0; }
    .teamcard-side b { font-size: 18px; }
    .teamcard-last { margin: 10px 0 12px; padding: 10px 0; gap: 12px; }
    .teamcard-last + .statrow { margin-top: -12px; }
    .teamcard-last b { font-size: 18px; }
    .teamcard .btn { padding: 10px 13px; font-size: 11px; }

    .newsgrid { grid-template-columns: 1fr; gap: 18px; }
    .newslead img { height: 170px; }
    .newslead h3 { font-size: 24px; }
    .newscards { grid-template-columns: 1fr; }
    .newslist img, .newslist .ph { width: 84px; height: 60px; }
    .newslist h3 { font-size: 19px; }

    .youthband { flex-direction: column; gap: 20px; }
    .youthband-text h2 { font-size: 30px; }
    .youthgrid { grid-template-columns: repeat(4, 1fr); gap: 7px; max-width: none; width: 100%; }
    .youthgrid li { padding: 11px 8px; text-align: center; }
    .youthgrid b { font-size: 19px; }
    .youthgrid span, .youthgrid li.is-wide { display: none; }
    .youthband-actions .btn { flex: 1; text-align: center; }

    .logogrid--diamond { grid-template-columns: repeat(2, 1fr); }
    .logogrid--golden, .logogrid--silver, .logogrid--bronze, .logogrid--all { grid-template-columns: repeat(3, 1fr); }

    .teamhead { grid-template-columns: 1fr; }
    .teamhead-photo { min-height: 220px; order: -1; }
    .teamhead-text { padding: 24px var(--gut) 28px; }
    .teamhead-text h1 { font-size: 44px; }
    .teamhead-text .statrow b { font-size: 24px; }

    .photohead h1 { font-size: 40px; }
    /* De vaste hoogte staat in de opmaak van de pagina zelf; op een smal
       scherm past een lange titel er met kruimelpad en al niet meer in, dus
       laten we de kop hier meegroeien met wat erin staat. */
    .photohead { height: auto !important; min-height: 300px; }
    .photohead > div { flex-direction: column; align-items: flex-start; gap: 18px; padding: 26px var(--gut) 20px; min-height: 300px; }
    .photohead-actions { flex-wrap: wrap; }

    .squad, .squad--wide { grid-template-columns: repeat(2, 1fr); }
    .twocol { grid-template-columns: 1fr; gap: 30px; }
    .split { grid-template-columns: 1fr; gap: 24px; }
    .split h1 { font-size: 38px; }
    .split-photo { height: 200px; }
    .youthcards { grid-template-columns: 1fr; }
    .article { grid-template-columns: 1fr; gap: 30px; }
    .featured { grid-template-columns: 1fr; }
    .featured-body { padding: 24px var(--gut) 28px; }
    .featured-body h2 { font-size: 30px; }
    .packages { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .tiles { grid-template-columns: repeat(3, 1fr); }
    .formgrid { grid-template-columns: 1fr; }
    .formgrid .wide { grid-column: span 1; }
    .formcard { padding: 24px var(--gut); }
    .deflist > div { flex-direction: column; gap: 4px; }
    .deflist dt { min-width: 0; }
    .nextmatch { flex-direction: column; align-items: flex-start; }
    .contactband { flex-direction: column; align-items: flex-start; }

    .sitefoot > div { grid-template-columns: 1fr 1fr; gap: 26px; }

    /* Raakvlakken minimaal 44px hoog. */
    .btn { padding: 14px 18px; }
    .chip { padding: 13px 15px; }
}

@media (max-width: 520px) {
    .sitefoot > div { grid-template-columns: 1fr; }
    .menuteams { grid-template-columns: repeat(2, 1fr); }
    .megapacks { grid-template-columns: 1fr; }
    .tiles { grid-template-columns: 1fr; }
}

@media print {
    .adminbar, .utility, .masthead, .hero-dots, .matchcard-actions, .partnerstrip, .sitefoot, .subnav { display: none; }
    body { color: #000; }
}

/* Jeugdploegpagina: kern links, klassementen rechts. */
@media (max-width: 899px) {
    .youth-split { grid-template-columns: 1fr !important; gap: 26px !important; }
}

/* ==========================================================================
   Cookiebanner — onderaan verankerd, in de stijl van de site: rechte hoeken,
   cursieve kop, rood alleen op de knop die iets doet.
   ========================================================================== */

.sitefoot .colophon__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.sitefoot .colophon__legal a { color: rgba(255, 255, 255, .55); text-decoration: none; }
.sitefoot .colophon__legal a:hover { color: #fff; text-decoration: underline; }

.cookiebar {
    position: fixed; inset: auto 0 0 0; z-index: 90;
    background: var(--ink); color: #fff;
    border-top: 3px solid var(--red);
    box-shadow: 0 -18px 40px rgba(22, 18, 15, .28);
}

.cookiebar__in {
    max-width: var(--page); margin: 0 auto; padding: 26px var(--gut);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px 34px; align-items: center;
}

.cookiebar.is-open .cookiebar__in { grid-template-columns: minmax(0, 1fr); }

.cookiebar .eyebrow { color: rgba(255, 255, 255, .55); margin-bottom: 8px; }
.cookiebar h2 { font-size: 26px; line-height: 1; margin: 0 0 10px; }
.cookiebar p { font: 400 13.5px/1.7 var(--body); color: rgba(255, 255, 255, .74); margin: 0; max-width: 74ch; }
.cookiebar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.cookiebar__keuze {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    padding: 20px 0;
}

.cookieoptie { display: flex; gap: 12px; align-items: flex-start; padding: 4px 18px 4px 0; cursor: pointer; }
.cookieoptie input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.cookieoptie input:disabled { opacity: .5; cursor: not-allowed; }
.cookieoptie b { display: block; font: 600 12.5px/1.4 var(--body); letter-spacing: .01em; }
.cookieoptie em { font: 400 10px/1 var(--body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .4); }
.cookieoptie .meta { display: block; font: 400 12px/1.6 var(--body); color: rgba(255, 255, 255, .55); margin-top: 5px; }

.cookiebar__acties { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookiebar .btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.cookiebar .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

@media (max-width: 899px) {
    .cookiebar__in { grid-template-columns: minmax(0, 1fr); padding: 22px var(--gut); gap: 18px; }
    .cookiebar { max-height: 86vh; overflow-y: auto; }
    .cookiebar__acties .btn { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   Cookietabel op het cookiebeleid.
   ========================================================================== */

.cookietabel { width: 100%; border-collapse: collapse; font: 400 13px/1.6 var(--body); }
.cookietabel caption {
    text-align: left; font: 600 11px/1 var(--body); letter-spacing: .14em;
    text-transform: uppercase; color: var(--meta); padding: 26px 0 12px;
}
.cookietabel th {
    text-align: left; font: 600 10.5px/1 var(--body); letter-spacing: .12em;
    text-transform: uppercase; color: var(--meta);
    border-bottom: 1px solid var(--line); padding: 0 14px 10px 0;
}
.cookietabel td { border-bottom: 1px solid var(--line); padding: 12px 14px 12px 0; vertical-align: top; }
.cookietabel td:first-child { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.cookietabel td:last-child, .cookietabel th:last-child { padding-right: 0; }
.cookiescroll { overflow-x: auto; }

@media print {
    .cookiebar { display: none; }
}

/* Ingesloten video's en kaarten die op toestemming wachten. */
.embedgate {
    border: 1px dashed var(--line-dashed); background: var(--paper);
    padding: 30px 26px; text-align: center; margin: 26px 0;
}
.embedgate b { display: block; font: 600 13px/1.3 var(--body); color: var(--ink); margin-bottom: 8px; }
.embedgate p { font: 400 13px/1.7 var(--body); color: var(--text-muted); margin: 0 auto 18px; max-width: 52ch; }
.embedgate__acties { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.linkish {
    background: none; border: 0; padding: 0; cursor: pointer;
    font: 400 12.5px/1 var(--body); color: var(--meta);
    text-decoration: underline; text-underline-offset: 3px;
}
.linkish:hover { color: var(--ink); }

/* ==========================================================================
   Beeld en video in lopende tekst — artikels en pagina's uit het CMS.
   Zonder deze regels valt een <video> terug op 300x150 en loopt een foto uit
   de kolom: de opmaak van WordPress komt niet mee, alleen de inhoud.
   ========================================================================== */

.article-body img,
.article-body video,
.prose img,
.prose video {
    display: block; width: 100%; height: auto; max-width: 100%;
    margin: 26px 0; background: var(--paper-deep);
}

.article-body video,
.prose video { background: var(--ink); }

/* Een staande telefoonvideo hoeft niet de volle kolom te vullen. */
.article-body video[height][width],
.prose video[height][width] { width: auto; max-height: 70vh; margin-inline: auto; }

.article-body figure,
.prose figure { margin: 26px 0; }

.article-body figure img,
.article-body figure video,
.prose figure img,
.prose figure video { margin: 0; }

.article-body figcaption,
.prose figcaption {
    font: 400 12.5px/1.6 var(--body); color: var(--meta);
    padding-top: 8px; border-top: 1px solid var(--line);
    margin-top: 10px;
}

/* ==========================================================================
   Evenementen — één rij per activiteit, met de datum als blok links.
   ========================================================================== */

.chip__count {
    display: inline-block; margin-left: 6px; padding: 0 5px;
    background: var(--line); color: var(--ink-soft); font-size: 10px; line-height: 16px;
}
.chip.is-active .chip__count { background: rgba(255, 255, 255, .22); color: #fff; }

.eventlist { display: grid; gap: 2px; }

.eventcard {
    display: grid; grid-template-columns: 92px 1fr auto; gap: 0 24px; align-items: center;
    background: #fff; border: 1px solid var(--line); padding: 0 24px 0 0;
}
.eventcard:has(.eventcard__photo) { grid-template-columns: 92px 168px 1fr auto; }
.eventcard.is-past { background: transparent; color: var(--meta); }

.eventcard__date {
    background: var(--ink); color: #fff; text-align: center; text-decoration: none;
    padding: 20px 8px; align-self: stretch;
    display: flex; flex-direction: column; justify-content: center;
}
.eventcard.is-past .eventcard__date { background: var(--meta); }
.eventcard__date b { font: 700 30px/1 var(--display); font-style: italic; }
.eventcard__date span { font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.eventcard__date em { font: 400 10px/1 var(--body); font-style: normal; color: rgba(255, 255, 255, .55); margin-top: 4px; }

.eventcard__photo { align-self: stretch; overflow: hidden; }
.eventcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.eventcard__body { padding: 20px 0; min-width: 0; }
.eventcard__body .eyebrow { margin-bottom: 6px; }
.eventcard__body h3 { font-size: 26px; line-height: 1.05; margin: 0 0 8px; }
.eventcard__body h3 a { color: inherit; text-decoration: none; }
.eventcard__body h3 a:hover { color: var(--red); }
.eventcard__body p { font: 400 13.5px/1.65 var(--body); color: var(--text-muted); margin: 0; }
.eventcard__meta {
    display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px !important;
    font: 500 12px/1.4 var(--body) !important; color: var(--ink-soft) !important;
}
.eventcard__meta span::before { content: '·'; margin-right: 14px; color: var(--line-dashed); }
.eventcard__cta { padding: 20px 0; }

@media (max-width: 899px) {
    .eventcard,
    .eventcard:has(.eventcard__photo) { grid-template-columns: 78px 1fr; padding-right: 18px; }
    .eventcard__photo { display: none; }
    .eventcard__cta { grid-column: 2; padding-top: 0; }
}

/* ==========================================================================
   Partnerpagina — tekst links, logo en kaders rechts.
   ========================================================================== */

.partnerpage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; align-items: start; }
.partnerpage__body { max-width: 680px; }
.partnerpage__acties { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.partnercard {
    border: 1px solid var(--line); background: #fff;
    display: flex; align-items: center; justify-content: center;
    height: 150px; padding: 26px; margin-bottom: 16px;
}
.partnercard.is-dark { background: var(--ink); border-color: var(--ink); }
.partnercard img { max-width: 100%; max-height: 100%; object-fit: contain; }

.partnerpage__photo { width: 100%; height: auto; display: block; margin-bottom: 16px; }

@media (max-width: 899px) {
    .partnerpage { grid-template-columns: 1fr; gap: 30px; }
    .partnerpage__aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
    .partnerpage__aside > * { margin-bottom: 0; }
}

/* Bekerwedstrijden — een klein label, want het is een andere competitie. */
.cupflag {
    display: inline-block; margin-left: 8px; padding: 2px 6px; vertical-align: 1px;
    background: var(--ink); color: #fff;
    font: 700 9.5px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase;
}
.cupflag--light { background: rgba(255, 255, 255, .18); color: #fff; }

/* ==========================================================================
   Galerij onder een nieuwsbericht, met een lightbox voor de foto's.
   ========================================================================== */

/* start, niet stretch: een beeld zonder onderschrift krijgt anders een lege
   witte staart zolang er in dezelfde rij wél een onderschrift staat. */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 2px; align-items: start; list-style: none; margin: 0; padding: 0; }
/* De strook onder een artikel staat in de tekstkolom en is dus smaller: daar
   passen miniaturen, geen halve pagina's. */
.gallery--compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery li { background: #fff; border: 1px solid var(--line); }
.gallery img, .gallery video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery video { background: var(--ink); }
.gallery__open { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* Het vergrootglas zegt dat er meer te zien is; het verschijnt pas bij hover
   of toetsenbordfocus, zodat de strook zelf rustig blijft. */
.gallery__open::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(22, 18, 15, .38)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='square'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E")
        center / 28px 28px no-repeat;
    opacity: 0; transition: opacity .16s ease;
}
.gallery__open:hover::after,
.gallery__open:focus-visible::after { opacity: 1; }

/* Een video-tegel draagt haar afspeelknop altijd: anders lijkt het een foto. */
.gallery__open--video { cursor: pointer; }
.gallery__open--video::after {
    opacity: 1;
    background-color: rgba(22, 18, 15, .28);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 4.5v15l12-7.5z'/%3E%3C/svg%3E");
    background-size: 34px 34px;
}
.gallery__open--video:hover::after,
.gallery__open--video:focus-visible::after { background-color: rgba(192, 24, 24, .55); }

.gallery figcaption { font: 400 12.5px/1.6 var(--body); color: var(--text-muted); padding: 10px 14px; border-top: 1px solid var(--line); }

/* De strook sluit aan op het artikel erboven. Ze staat in de tekstkolom, dus
   de regels voor beeld in lopende tekst hierboven raken haar ook: die geven
   elke foto 26px lucht, een grijze grond en een los onderschrift. Hier zetten
   we dat terug — een miniatuur vult haar tegel. */
.media { margin-top: 34px; }
.media > h2 { font-size: 30px; margin: 0 0 14px; }
.article-body .gallery { list-style: none; margin: 0; padding: 0; color: inherit; }
.article-body .gallery img,
.article-body .gallery video { margin: 0; background: none; }
.article-body .gallery video { background: var(--ink); }
.article-body .gallery figcaption { margin-top: 0; padding: 10px 14px; }

.lightbox {
    border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%;
    background: rgba(22, 18, 15, .96); color: #fff;
    align-items: center; justify-content: center; gap: 10px;
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: rgba(22, 18, 15, .9); }
.lightbox figure { margin: 0; max-width: min(1100px, 88vw); text-align: center; }
.lightbox img,
.lightbox video { max-width: 100%; max-height: 78vh; object-fit: contain; display: block; margin: 0 auto; }
.lightbox video { width: min(1100px, 88vw); background: #000; }
.lightbox img[hidden],
.lightbox video[hidden] { display: none; }
.lightbox figcaption { font: 400 13.5px/1.7 var(--body); color: rgba(255, 255, 255, .7); padding-top: 14px; }
.lightbox__close, .lightbox__nav {
    background: none; border: 0; color: rgba(255, 255, 255, .65); cursor: pointer;
    font: 400 34px/1 var(--body); padding: 12px 16px;
}
.lightbox__close { position: absolute; top: 10px; right: 14px; font-size: 24px; }
.lightbox__close:hover, .lightbox__nav:hover { color: #fff; }
.lightbox__nav { font-size: 46px; flex: none; }

@media (max-width: 640px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .lightbox__nav { position: absolute; bottom: 16px; font-size: 38px; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
}

@media print { .lightbox { display: none; } }

/* ==========================================================================
   Organigram — lagen van boven naar onder, verbonden met een stamlijn
   ========================================================================== */

.orgchart { display: flex; flex-direction: column; }

.orgchart-laag { position: relative; padding-top: 34px; }
.orgchart-laag:first-child { padding-top: 0; }

/* De stamlijn tussen de lagen. */
.orgchart-laag + .orgchart-laag::before {
    content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 34px;
    background: var(--line); transform: translateX(-50%);
}

.orgchart-laagtitel {
    text-align: center; margin: 0 0 18px;
}
.orgchart-laagtitel span {
    display: inline-block; background: var(--ink); color: #fff;
    font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
    padding: 7px 12px;
}

.orgchart-rij {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}

.orgchart-kaart {
    width: 168px; padding: 16px 14px 18px;
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-tile);
    text-align: center;
}

.orgchart-kaart img,
.orgchart-initialen {
    width: 84px; height: 84px; object-fit: cover; object-position: center top;
    display: block; margin: 0 auto 12px;
}

.orgchart-initialen {
    display: flex; align-items: center; justify-content: center;
    background: var(--paper-deep); color: var(--dash-text);
    font: italic 700 28px/1 var(--display); text-transform: uppercase;
}

.orgchart-kaart b { display: block; font-size: 21px; line-height: 1.02; }

.orgchart-functie {
    display: block; margin-top: 5px;
    font: 700 10px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase;
    color: var(--red);
}

.orgchart-kaart a {
    display: block; margin-top: 6px;
    font: 400 11.5px/1.4 var(--body); color: var(--meta);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.orgchart-kaart a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 700px) {
    .orgchart-kaart { width: calc(50% - 7px); }
}

/* ==========================================================================
   Instagram-band, net boven de footer
   ========================================================================== */

/* Vierkante tegels, van de eigen server. Hover: het beeld zoomt en
   een donker vlak met camera-icoon schuift eroverheen. Desktop toont één
   rij van zes; op mobiel worden het drie rijen van drie — daar mogen de
   tegels zeven tot negen dus wél tevoorschijn komen. */
.instagrid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}

.instagrid li:nth-child(n + 7) { display: none; }

.instagrid a {
    position: relative; display: block; aspect-ratio: 1;
    overflow: hidden; background: var(--paper-deep);
}

.instagrid img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    transition: transform .5s ease;
}

.instagrid a:hover img { transform: scale(1.06); }

.instagrid-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(22, 18, 15, .45); color: #fff;
    opacity: 0; transition: opacity .25s ease;
}

.instagrid a:hover .instagrid-overlay { opacity: 1; }

@media (max-width: 900px) {
    .instagrid { grid-template-columns: repeat(3, 1fr); }
    .instagrid li:nth-child(n + 7) { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .instagrid img, .instagrid-overlay { transition: none; }
    .instagrid a:hover img { transform: none; }
}

/* ==========================================================================
   Beeld + tekst — de uitvoeringen van het paginablok
   ========================================================================== */

/* Kaderaccent: een rood kader dat een stukje verschoven achter het beeld ligt. */
.beeldtekst-kader { position: relative; }
.beeldtekst-kader::before {
    content: ''; position: absolute; inset: 0;
    transform: translate(14px, 14px);
    border: 2px solid var(--red);
    pointer-events: none;
}
.beeldtekst-kader img { position: relative; }
.split--flip .beeldtekst-kader::before { transform: translate(-14px, 14px); }

/* Overlappend: de tekst op een witte kaart die over het beeld schuift. */
.split--overlap { position: relative; align-items: center; }
.beeldtekst-kaart {
    position: relative; z-index: 2;
    background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    padding: 34px 36px;
    margin-right: -70px;
}
.split--flip .beeldtekst-kaart { margin-right: 0; margin-left: -70px; }
.band--white .beeldtekst-kaart { background: var(--paper); border-color: var(--line); }

/* Breed beeld: foto van kant tot kant binnen de band, tekst eronder. */
.beeldtekst-breed { max-width: var(--inner); margin-inline: auto; }
.beeldtekst-breedfoto img {
    width: 100%; height: 400px;
    object-fit: cover; object-position: center;
    display: block;
}
.beeldtekst-breedtekst { max-width: 720px; padding-top: 26px; }

@media (max-width: 900px) {
    .beeldtekst-kaart, .split--flip .beeldtekst-kaart { margin: -40px 16px 0; }
    .beeldtekst-breedfoto img { height: 240px; }
}

/* ==========================================================================
   Kolommen — het paginablok met twee, drie of vier kolommen
   ========================================================================== */

/* Gelijke kolommen met beeld, titel, tekst en link. Vier kolommen krijgen
   iets minder ruimte ertussen; op een tablet vallen ze terug op twee, op een
   telefoon staat alles onder elkaar. */
.kolommen { display: grid; gap: 34px; align-items: start; }
.kolommen--2 { grid-template-columns: repeat(2, 1fr); }
.kolommen--3 { grid-template-columns: repeat(3, 1fr); }
.kolommen--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

.kolom { min-width: 0; }
.kolom-beeld { aspect-ratio: 4 / 3; margin-bottom: 18px; background: var(--paper-deep); }
.kolom-beeld a { display: block; height: 100%; }
.kolom-beeld img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.kolom h3 { font-size: 28px; line-height: 1.02; margin-bottom: 10px; }
.kolommen--4 .kolom h3 { font-size: 24px; }
.kolom-tekst { max-width: none; }
.kolom-tekst p { font-size: 14.5px; line-height: 1.65; margin-bottom: 12px; }
.kolom-tekst > :last-child { margin-bottom: 0; }

.kolom-link {
    display: inline-block; margin-top: 14px;
    font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
    color: var(--red);
}
.kolom-link i { font-style: normal; display: inline-block; transition: transform .25s ease; }
.kolom-link:hover i { transform: translateX(4px); }

@media (max-width: 1199px) {
    .kolommen--4 { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 899px) {
    .kolommen--2, .kolommen--3, .kolommen--4 { grid-template-columns: 1fr; gap: 26px; }
    .kolom h3, .kolommen--4 .kolom h3 { font-size: 26px; }
}

/* De linkregel onderaan een kaart uit het kaartenraster. */
.newscard-meer {
    display: inline-block; margin-top: 12px;
    font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
    color: var(--red);
}
.newscard-meer i { font-style: normal; display: inline-block; transition: transform .25s ease; }
.newscard:hover .newscard-meer i { transform: translateX(4px); }

/* ==========================================================================
   Wedstrijdpagina (/wedstrijden/{id}-{affiche})
   ========================================================================== */

/* Een klikbare affiche in kalender- en uitslagenrijen. */
a.fixture:hover { color: var(--red); }

/* De clublogo's in die rijen: kleine tegels op de tekstregel, met kaderlijn
   zodat ze ook op wit loskomen van de achtergrond. */
.fixture .clubtile { width: 28px; height: 28px; border: 1px solid var(--line); vertical-align: middle; margin: -3px 8px -3px 0; }
.fixture .clubtile b { font-size: 12px; }

/* De artikelkolom rekt elk beeld op tot kolombreedte (zie hierboven) — een
   clublogo naast een ploegnaam moet daar klein en op de regel blijven. */
.article-body img.clublogo {
    display: inline-block; width: 20px; height: 20px;
    margin: 0 8px 0 0; background: none;
}
.article-body .clubtile img {
    display: block; width: 76%; height: 76%;
    margin: 0; background: none;
}

/* … en een affichelink is daar een gewone tabelregel, geen rode tekstlink. */
.article-body a.fixture { color: inherit; text-decoration: none; }
.article-body a.fixture:hover { color: var(--red); }
.article-body a.matchrow { color: inherit; text-decoration: none; }

/* In de smalle zijbalk nóg een maat kleiner, zodat een lange affiche niet
   over drie regels breekt. */
.asidebox .matchrow-team { gap: 7px; }
.asidebox .matchrow-team .display { font-size: 13.5px; }
.asidebox .matchrow-team .clubtile { width: 22px; height: 22px; }
.asidebox .matchrow-team .clubtile b { font-size: 10px; }
.asidebox .matchrow-board { gap: 8px; }
.asidebox .matchrow-mid { min-width: 38px; font-size: 15px; }

/* Het volledige klassement in de zijbalk: lucht tussen de cijferkolommen. */
.asidebox .ranking td.num, .asidebox .ranking th.num,
.asidebox .ranking td.pts, .asidebox .ranking th:last-child { padding-left: 10px; }

/* Op de donkere scorekaart is rood onleesbaar; de linkregel wordt daar wit. */
.scorecard .link-more { display: inline-block; margin-top: 14px; color: #fff; }
.scorecard-sets { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 6px; }
.scorecard-sets li { display: flex; align-items: baseline; gap: 6px; font: 400 12px/1.4 var(--body); color: rgba(255, 255, 255, .7); }
.scorecard-sets li span { flex: 1; letter-spacing: .05em; text-transform: uppercase; font-size: 10px; }
.scorecard-sets li b { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 17px; line-height: 1; color: #fff; min-width: 22px; text-align: center; }
.scorecard-sets li b.is-loss { color: var(--red); }
.scorecard-sets li i { font-style: normal; color: rgba(255, 255, 255, .4); }
/* De wedstrijd als affiche bovenaan een verslag, en het verslag voluit op de wedstrijdpagina. */
.article-body .article-match { margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.gamereport { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.gamereport .eyebrow { margin-bottom: 10px; }
.gamereport .link-more { display: inline-block; margin-top: 6px; }

.gamehead { position: relative; background: var(--ink); color: #fff; padding: 44px var(--gut) 46px; overflow: hidden; }

/* Het sfeerbeeld achter de kop: zoals elke hero bijgesneden op het midden,
   met een inktlaag erover zodat de scorekaart leesbaar blijft. */
.gamehead-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.gamehead.has-photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(22, 18, 15, .96) 0%, rgba(22, 18, 15, .88) 55%, rgba(22, 18, 15, .72) 100%);
}

.gamehead > div { position: relative; z-index: 2; max-width: var(--inner); margin-inline: auto; }
.gamehead .eyebrow { color: rgba(255, 255, 255, .55); margin-bottom: 20px; }

/* De affiche: thuisploeg links, bezoekers rechts, de setstand ertussen. De
   twee zijden zijn even breed, zodat de score in het midden blijft; de
   thuiskant spiegelt (naam vóór het logo) en leunt tegen de score aan. */
.gamehead-board { display: flex; align-items: center; gap: 30px; padding: 10px 0 6px; }
.gamehead .boardside { display: flex; align-items: center; gap: 18px; margin: 0; flex: 1 1 0; min-width: 0; font-size: 40px; line-height: .95; }
.gamehead .boardside span { text-wrap: balance; }
.gamehead .boardside--home { flex-direction: row-reverse; }
.gamehead .boardside--home span { text-align: right; }

.gamehead .clubtile { width: 58px; height: 58px; }
.gamehead .clubtile b { font-size: 24px; }

/* De setstand tussen de ploegen; nog niet gespeeld = enkel het streepje. */
.gamehead .boardscore { display: flex; align-items: center; gap: 12px; margin: 0; flex: none; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 50px; line-height: 1; }
.gamehead .boardscore b { min-width: 64px; padding: 10px 4px; text-align: center; background: rgba(255, 255, 255, .1); font-weight: 700; }
.gamehead .boardscore b.is-loss { color: var(--red); }
.gamehead .boardscore i { font-style: normal; font-size: 30px; color: rgba(255, 255, 255, .45); }
.gamehead .boardscore.is-empty i { font-size: 44px; }
.gamehead .when { font: 400 13px/1.7 var(--body); color: rgba(255, 255, 255, .55); margin-top: 20px; }
.gamehead .when a { text-decoration: underline; }
.gamehead .when a:hover { color: #fff; }
.gamehead .countdown { max-width: 660px; border-color: rgba(255, 255, 255, .25); margin-bottom: 0; }
.gamehead .countdown span { color: rgba(255, 255, 255, .6); }
.gamehead-actions { display: flex; gap: 10px; margin-top: 22px; }

/* De standen per set; de verliezende kant wordt grijs, nooit rood — rood is
   op deze pagina al de kleur van een verloren wedstrijd. */
.setstable { width: 100%; max-width: 480px; font: 400 13.5px/1.3 var(--body); }
.setstable th {
    text-align: left; padding: 0 0 10px;
    font: 600 10.5px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--meta);
}
.setstable td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.setstable tr:last-child td { border-bottom: 0; }
.setstable .setlabel { color: var(--meta); }
.setstable th.num, .setstable td.num { text-align: right; width: 90px; }
.setstable td.num { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 19px; line-height: 1; }
.setstable td.num.is-lost { color: var(--meta); font-weight: 500; }
.setstable .total td { border-top: 2px solid var(--ink); }
.setstable .total .num { font-size: 24px; }

@media (max-width: 720px) {
    /* De affiche valt uiteen in drie regels: thuisploeg, score, bezoekers. */
    .gamehead-board { flex-direction: column; align-items: flex-start; gap: 14px; }
    .gamehead .boardside { flex: none; width: 100%; font-size: 30px; gap: 12px; }
    .gamehead .boardside--home { flex-direction: row; text-align: left; }
    .gamehead .boardscore { font-size: 36px; gap: 10px; }
    .gamehead .boardscore b { min-width: 46px; padding: 7px 2px; }
    .gamehead .boardscore i { font-size: 22px; }
    .gamehead .boardscore.is-empty i { font-size: 30px; }
    .gamehead .clubtile { width: 40px; height: 40px; }
    .gamehead .clubtile b { font-size: 17px; }
    .gamehead-actions { flex-wrap: wrap; }

    /* De affiche-rij op mobiel: datum en tijd als regel erboven, de ploegen
       met de score in het midden eronder. */
    .matchrow { grid-template-columns: minmax(0, 1fr) 14px; padding: 11px 0 13px; }
    .matchrow-when { grid-column: 1; flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; }
    .matchrow-when b { font-size: 15px; }
    .matchrow-go { grid-row: 1; grid-column: 2; }
    .matchrow-board { grid-column: 1 / -1; gap: 10px; }
    .matchrow-team { gap: 9px; }
    .matchrow-team .display { font-size: 15px; }
    .matchrow-team .clubtile { width: 26px; height: 26px; }
    .matchrow-team .clubtile b { font-size: 11px; }
    .matchrow-mid { min-width: 48px; font-size: 17px; }
}
