/* ============================================================
   ARTIKELPAGINA — specifiek voor artikel.html (base.css bevat het gedeelde deel)
   ============================================================ */

main { display: block; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.article-hero { padding-top: 40px; }
/* Zonder foto (aria-hidden op de div, alleen het bijschrift erin) is het
   gestreepte vlak zelf de placeholder. Mét foto (een echte <img> erin)
   vult die de hele tegel en verdwijnt het gestreepte vlak eronder; de
   gradient staat dan los erbovenop (::after) zodat het bijschrift op
   beide varianten leesbaar blijft. */
.hero-image {
  width: 100%; aspect-ratio: 16/8; border-radius: var(--r-l); margin-bottom: 18px;
  background: repeating-linear-gradient(90deg, var(--ph1) 0 2px, var(--ph2) 2px 44px);
  position: relative; overflow: hidden;
}
.hero-image-foto {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  object-fit: cover;
}
.hero-image::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,47,99,0) 40%, rgba(14,47,99,0.78) 100%);
}
.hero-image .hero-image-caption {
  position: absolute; left: 18px; bottom: 14px; color: rgba(255,255,255,0.75);
  font-size: var(--fs-label); font-family: 'Inter', sans-serif; z-index: 1;
}

.article-date {
  font-family: 'Inter', sans-serif; font-size: var(--fs-ui); color: var(--muted);
  margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.article-date .updated { color: var(--muted); }
.article-date .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
/* subtiel: net als de rest van de metaregel, alleen duidelijk als link
   te herkennen zodra je erover zweeft */
.article-date a {
  color: var(--blue); text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 2px; transition: text-decoration-color .15s;
}
.article-date a:hover { text-decoration-color: currentColor; }

/* GROTE UPDATES (niveau 3) — direct onder de kop, boven de inleiding; de
   nieuwste bovenaan. Gegenereerd door tools/nieuws.py uit het veld 'updates'
   in assets/js/artikelen.js. */
.updates {
  display: grid; gap: 12px; margin: 0 0 20px; padding: 12px 14px;
  background: var(--blue-tint); border-radius: var(--r-l);
  font-family: 'Inter', sans-serif; font-size: var(--fs-tekst); line-height: 1.55; color: var(--ink);
}
.upd + .upd { padding-top: 12px; border-top: 1px solid var(--line); }
.upd p { margin: 0; text-wrap: pretty; }
.upd-kop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 2px !important; }
.upd-kop strong { font-weight: 700; }
.upd-kop time { font-size: var(--fs-klein); color: var(--muted); font-variant-numeric: tabular-nums; }

.article-title {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: var(--fs-titel); line-height: 1.2;
  color: var(--blue-dark); margin-bottom: 16px; letter-spacing: 0.002em; text-wrap: balance;
}
.article-lead {
  font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-soft); margin-bottom: 26px;
  max-width: 640px; text-wrap: pretty;
}

.article-actions {
  display: flex; align-items: center; gap: 16px; padding-bottom: 24px;
  border-bottom: 1px solid var(--line); margin-bottom: 32px; flex-wrap: wrap;
}
/* primaire CTA: dezelfde rode knop als "Word lid" en "Reageren" */
.action-comments {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white); font-weight: 700; font-size: var(--fs-ui);
  padding: 10px 18px; border-radius: var(--r-m); border: none; cursor: pointer;
  transition: background .15s, scale .15s ease-out;
}
.action-comments:hover { background: var(--red-dark); }
.action-comments:active { scale: 0.96; }
.action-comments svg { width: 17px; height: 17px; }
/* secundaire CTA: zelfde vorm, maar ingetogen — een omlijnde knop in
   plaats van een gevulde, zodat "Delen" duidelijk de tweede actie is */
.action-deel {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); color: var(--ink-soft); font-weight: 600; font-size: var(--fs-ui);
  padding: 9px 17px; border-radius: var(--r-m); box-shadow: var(--shadow-border); cursor: pointer;
  transition: background .15s, box-shadow .15s, color .15s, scale .15s ease-out; position: relative;
}
.action-deel:hover { box-shadow: var(--shadow-border-hover); color: var(--blue); }
.action-deel:active { scale: 0.96; }
.action-deel svg { width: 14px; height: 14px; }
.deel-feedback {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-4px);
  background: var(--ink); color: var(--white); font-size: var(--fs-klein); font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-m); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.deel-feedback.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.article-body { font-size: var(--fs-lead); line-height: 1.75; color: var(--ink); }
.article-body p { margin-bottom: 22px; }
.article-body p:last-child { margin-bottom: 0; }
/* links in de lopende tekst: blauw, vet en onderstreept, zodat ze duidelijk klikbaar zijn */
.article-body p a {
  color: var(--blue); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .15s;
}
.article-body p a:hover { color: var(--blue-dark); }
.article-body h2 {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: var(--fs-kop); line-height: 1.25;
  color: var(--blue-dark); margin: 36px 0 12px; text-wrap: balance;
}
/* ondertitel direct onder de kop (bv. verslagen) */
.article-subtitel {
  margin: -6px 0 14px; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: var(--fs-kop);
  line-height: 1.25; color: var(--muted);
}
.article-body blockquote {
  border-left: 3px solid var(--red); padding: 2px 0 2px 22px; margin: 30px 0;
  font-family: 'Oswald', sans-serif; font-weight: 500; font-style: normal;
  font-size: var(--fs-kop-s); line-height: 1.45; color: var(--ink-soft);
}

.discussion-divider {
  /* de lijn staat precies in het midden: 40px tot het einde van het artikel
     en 40px tot de kop (samen de 80px die er altijd al stond) */
  margin-top: 40px; padding-top: 40px; position: relative;
  scroll-margin-top: calc(var(--header-h, 65px) + 16px);
}
/* de lijn staat in een eigen element zodat hij precies zo breed is als de
   tekst; een border zou over de opvulling aan de zijkanten heen lopen */
.discussion-divider::before {
  content: ''; position: absolute; top: 0; left: var(--zij, 24px); right: var(--zij, 24px);
  height: 1px; background: var(--line);
}
/* zelfde stijl als een tussenkop in het artikel (.article-body h2), zodat
   de discussie leest als een onderdeel van het artikel en niet als een
   nieuw stuk pagina */
.discussion-heading {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: var(--fs-kop); line-height: 1.25;
  color: var(--blue-dark); margin-bottom: 12px; transition: color .3s; text-wrap: balance;
}
.discussion-heading.pulse { color: var(--red); }

/* reactie-aantal en sorteerknoppen op één regel: horen inhoudelijk bij elkaar
   (allebei "besturing" van de lijst), los van het schrijfblok eronder */
/* staat onder het schrijfveld en boven de reacties; bij 0 reacties is hij weg
   en de sortering verschijnt pas vanaf 2 (zie updateCommentCounts) */
.discussion-toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 16px; margin-bottom: 4px;
}
.discussion-toolbar[hidden], .sort-row[hidden] { display: none; }
.discussion-count { font-size: var(--fs-tekst); color: var(--muted); }

.sort-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort-label { font-size: var(--fs-ui); color: var(--muted); font-weight: 500; }
/* de schakelaar zelf (.sort-options, .sort-btn) staat in base.css */

.rules-reminder { font-size: var(--fs-ui); color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.rules-reminder a, .rules-link {
  color: var(--blue); font-weight: 600; background: none; border: none; padding: 0;
  font-size: inherit; font-family: 'Inter', sans-serif; cursor: pointer;
}
.rules-reminder a:hover, .rules-link:hover { text-decoration: underline; }

/* Forumregels-popup: leesbaar en met één klik weg te klikken, i.p.v. weg te
   navigeren vanuit het schrijfmoment (zoals bv. een cookiemelding werkt). */
.rules-card h2 {
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: var(--fs-kop-s); color: var(--blue-dark);
  margin-bottom: 14px;
}
.rules-popup-body { max-height: 50vh; overflow-y: auto; margin-bottom: 18px; }
.rules-popup-body p { font-size: var(--fs-ui); color: var(--ink-soft); line-height: 1.6; margin-bottom: 12px; text-wrap: pretty; }
.rules-popup-body ol { padding-left: 20px; margin-bottom: 12px; }
.rules-popup-body li { font-size: var(--fs-ui); color: var(--ink-soft); line-height: 1.6; margin-bottom: 8px; text-wrap: pretty; }
.rules-popup-body a { color: var(--blue); font-weight: 600; }
.rules-popup-body a:hover { text-decoration: underline; }

/* COMPOSER — start ingeklapt als rustige, dunne regel; klapt pas open
   (en toont teller/knop) zodra iemand er echt in klikt */
/* de vraag boven het schrijfveld, alleen op artikelen waar er een bij staat:
   een tekstwolkje in de vorm van het reactie-icoon (bijna rechthoekig, met een
   scherpe punt links onderin die naar links leunt), gevuld en zonder rand. De
   breedte volgt de tekst (pasVraagAan in artikel.js). */
.discussion-vraag {
  position: relative; width: fit-content; max-width: 100%;
  margin: 2px 0 24px; padding: 13px 16px 14px; border-radius: var(--r-s); background: var(--blue-tint);
  /* dezelfde tekststijl als de kop op de homepage (.hero-title): licht in de
     donkere modus, donkerblauw in de lichte, via --blue-dark */
  font-family: 'Inter', sans-serif; font-weight: 550; font-size: var(--fs-kop-s); line-height: 1.25;
  color: var(--blue-dark); text-wrap: balance;
}
.discussion-vraag::after {
  content: ''; position: absolute; top: calc(100% - 1px); left: 24px; width: 17px; height: 14px;
  background: var(--blue-tint); clip-path: polygon(3px 0, 16.5px 0, 0 14px);
}
.composer { margin-bottom: 28px; position: relative; }

.composer-collapsed {
  display: block; width: 100%; text-align: left; cursor: text;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-l);
  height: 46px; padding: 0 14px; line-height: 43px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: 'Inter', sans-serif; font-size: var(--fs-tekst); color: var(--muted);
  transition: border-color .15s;
}
.composer-collapsed:hover, .composer-collapsed:focus-visible { border-color: var(--blue); }
.composer-collapsed[hidden] { display: none; }

.composer-expanded { display: flex; flex-direction: column; }
.composer-expanded[hidden] { display: none; }
.composer-textarea {
  display: block; width: 100%; height: 46px; max-height: 260px; resize: none; overflow-y: auto;
  border: 1.5px solid var(--line); border-radius: var(--r-l); padding: 10px 14px; line-height: 22px;
  font-family: 'Inter', sans-serif; font-size: var(--fs-tekst); color: var(--ink); outline: none;
  transition: border-color .15s;
}
.composer-textarea:focus { border-color: var(--blue); }
/* De knop Plaatsen staat onder het veld, rechts. Hij verschijnt zodra het veld
   opengaat en schuift daarna alleen mee met de regels die erbij komen. */
.composer-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.composer-footer .btn-primary { height: 34px; padding: 0 15px; font-size: var(--fs-ui); border-radius: var(--r-m); }
.composer-footer-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.composer-counter { font-size: var(--fs-klein); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.composer-counter.limit-near { color: var(--red); font-weight: 600; }

#commentsList { list-style: none; }
.comment {
  padding: 20px 0; border-bottom: 1px solid var(--line);
  border-radius: var(--r-l); transition: background-color 2.5s ease;
}
.comment.just-posted {
  background-color: var(--blue-tint);
  padding-left: 14px; padding-right: 14px;
  margin-left: -14px; margin-right: -14px;
  animation: commentArrive .3s ease, fadeHighlight 2.5s ease forwards;
}
@keyframes commentArrive {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeHighlight {
  0% { background-color: var(--blue-tint); }
  70% { background-color: var(--blue-tint); }
  100% { background-color: transparent; }
}
.just-posted-badge {
  font-size: var(--fs-label); font-weight: 700; color: var(--blue); background: rgba(0,79,159,0.1);
  padding: 2px 8px; border-radius: var(--r-pil);
}
.comment-inner { display: flex; gap: 12px; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.comment-username { font-family: 'Inter', sans-serif; font-weight: 700; font-size: var(--fs-tekst); color: var(--ink); }
.comment-since { font-size: var(--fs-ui); color: var(--muted); }
.comment-time { font-size: var(--fs-ui); color: var(--muted); }
.comment-time::before { content: '·'; margin-right: 8px; }
.comment-text { font-size: var(--fs-tekst); line-height: 1.6; color: var(--ink); margin-bottom: 10px; word-wrap: break-word; white-space: pre-wrap; text-wrap: pretty; }

.comment-actions { display: flex; align-items: center; gap: 4px; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--line);
  border-radius: var(--r-pil); padding: 5px 12px; cursor: pointer; font-size: var(--fs-klein); font-weight: 700;
  color: var(--ink-soft); transition: border-color .15s, color .15s, background .15s, scale .15s ease-out;
}
.vote-btn svg { width: 13px; height: 13px; }
.vote-btn:hover { border-color: var(--blue); color: var(--blue); }
.vote-btn.voted { background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }
.vote-btn:active { scale: 0.96; }
.vote-btn.vote-pop { animation: vote-pop .45s var(--ease-zacht); }
@keyframes vote-pop { 0% { scale: 0.9; } 50% { scale: 1.18; } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .vote-btn.vote-pop { animation: none; } }

.reply-btn, .more-btn {
  background: none; border: none; font-size: var(--fs-klein); font-weight: 600; color: var(--muted);
  padding: 5px 10px; border-radius: var(--r-pil); cursor: pointer; transition: background .15s, color .15s, scale .15s ease-out;
}
.reply-btn:active, .more-btn:active { scale: 0.96; }
.reply-btn:hover, .more-btn:hover { background: var(--blue-tint); color: var(--blue); }
.more-wrap { position: relative; margin-left: auto; }
.more-menu {
  display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 20;
  background: var(--surface); border-radius: var(--r-l);
  box-shadow: var(--shadow-border), 0 8px 24px rgba(20,33,61,0.14); min-width: 160px; overflow: hidden;
}
.more-menu.open { display: block; }
.more-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 14px; font-size: var(--fs-ui);
  background: none; border: none; cursor: pointer; color: var(--ink);
}
.more-menu button:hover { background: var(--blue-tint); }

.reply-composer { display: none; margin-top: 14px; gap: 10px; }
.reply-composer.open { display: flex; }
.reply-input-area { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.reply-composer textarea {
  min-height: 40px; border: 1.5px solid var(--line); border-radius: var(--r-l);
  padding: 10px 12px; font-family: 'Inter', sans-serif; font-size: var(--fs-ui); resize: vertical; outline: none;
}
.reply-composer textarea:focus { border-color: var(--blue); }
.reply-counter { font-size: var(--fs-label); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.reply-counter.limit-near { color: var(--red); font-weight: 600; }
.reply-composer-btns { display: flex; flex-direction: column; gap: 6px; }
.reply-composer-btns button { white-space: nowrap; }
.btn-cancel {
  background: none; border: none; color: var(--muted); font-size: var(--fs-klein); font-weight: 600;
  cursor: pointer; padding: 6px 4px;
}
.btn-cancel:hover { color: var(--ink); }

.replies { list-style: none; margin: 14px 0 0; padding-left: 24px; border-left: 2px solid var(--line); }
.replies .comment { padding: 14px 0; border-bottom: none; }
.replies .comment-username { font-size: var(--fs-ui); }
.replies .comment-text { font-size: var(--fs-ui); }


/* knop onderaan de reactielijst: springt naar de composer, zodat je bij
   tientallen reacties niet helemaal terug naar boven hoeft te scrollen */
.discussion-cta { display: none; text-align: center; padding-top: 28px; margin-top: 4px; border-top: 1px solid var(--line); }
.discussion-cta.show { display: block; }

/* "Nieuwste artikelen" onder de discussie */
.more-articles { margin-top: 48px; }
/* Op de homepage staat deze kop in een rij met de tipknop en draagt die rij
   de onderlijn (zie .lijst-kop in home.css). Hier staat hij alleen, dus
   krijgt hij de lijn zelf — met dezelfde afstanden als .lijst-kop, zodat
   de sprong naar de lijst eronder overal even groot is. */
.more-articles .list-head {
  display: block; margin-bottom: 4px; padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-dark);
}

footer { margin-top: 70px; }

@media (max-width: 640px) {
  /* alleen links en rechts: de korte schrijfwijze "0 18px" zette ook de
     bovenopvulling van de reactiesectie (onder de lijn) op nul */
  /* dezelfde zijruimte als .wrap op home (10px), zodat de tekst op één lijn
     staat met het logo in de header */
  .article-wrap { padding-left: var(--pagina-zij); padding-right: var(--pagina-zij); --zij: var(--pagina-zij); }

  .article-hero { padding-top: 28px; }
  .hero-image { aspect-ratio: 2/1; margin-bottom: 14px; }  /* zelfde verhouding als op desktop en als de beelden zelf (2:1), zodat samengestelde afbeeldingen niet aan de zijkant wegvallen */
  .article-title { font-size: var(--fs-titel-s); }
  .article-lead { font-size: var(--fs-lees); }
  .article-actions { gap: 14px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 26px; }
  .action-comments { font-size: var(--fs-ui); }
  .action-deel { font-size: var(--fs-ui); }
  .article-body { font-size: var(--fs-lees); }
  .article-body h2 { font-size: var(--fs-kop-s); }
  .article-body blockquote { font-size: var(--fs-lead); padding-left: 16px; }

  /* lijn in het midden: 24px tot het artikel, 24px tot de kop (samen de 48px
     die hier al stond) */
  .discussion-divider { margin-top: 24px; padding-top: 24px; }
  .discussion-heading { font-size: var(--fs-kop-s); }
  .discussion-vraag { font-size: var(--fs-kop-s); }
  .sort-row { gap: 8px; flex-wrap: nowrap; }
  /* zonder het woord "Sorteer op" passen aantal en knoppen op één regel */
  .sort-btn { padding: 6px 10px; font-size: var(--fs-klein); }

  .replies { padding-left: 14px; }
  .comment.just-posted { padding-left: var(--pagina-zij); padding-right: var(--pagina-zij); margin-left: calc(-1 * var(--pagina-zij)); margin-right: calc(-1 * var(--pagina-zij)); }
  .comment-time { flex-basis: 100%; margin-top: 2px; }
  .comment-time::before { display: none; }
}

/* ============================================================
   PEILING onder de tekst van een artikel (optioneel per artikel).
   De uitslag verschijnt pas na je stem en je stem staat dan vast.
   Opmaak en gedrag: assets/js/peiling.js
   ============================================================ */
.peiling { margin: 33px 0 0;  /* + ruimte boven de letters = 40px, net als tussen balk en streep en tussen streep en kop */ scroll-margin-top: 84px; }
.peiling-vraag {
  margin: 0 0 14px; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: var(--fs-kop);
  line-height: 1.25; color: var(--blue-dark); text-wrap: balance;
}
.peiling-opties {
  display: flex; flex-direction: column; gap: 8px;
  /* alle rijen even breed: zo breed als het langste antwoord, met een nette ondergrens */
  width: fit-content; min-width: min(100%, 300px); max-width: 100%;
}
/* ---------- een antwoord ---------- */
.po {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px;
  padding: 6px 14px; text-align: left; cursor: pointer; overflow: hidden;
  font: 600 var(--fs-tekst)/1.3 'Inter', sans-serif; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-l);
  transition: border-color .15s, background-color .15s, box-shadow .15s, scale .45s var(--ease-veer);
}
@media (hover: hover) {
  /* hover: de rij kleurt blauw en de radio toont alvast een stip, zodat duidelijk is dat je hiervoor kiest */
  .po:not([aria-disabled="true"]):hover {
    border-color: var(--blue); background: var(--blue-tint);
    box-shadow: 0 0 0 1px var(--blue), 0 2px 8px color-mix(in srgb, var(--blue) 22%, transparent);
  }
  .po:not([aria-disabled="true"]):hover .po-radio {
    border-color: var(--blue); background: radial-gradient(color-mix(in srgb, var(--blue) 45%, transparent) 0 42%, transparent 46%);
  }
  .po:not([aria-disabled="true"]):hover .po-label { color: var(--blue-dark); }
}
/* indrukken: de rij zakt direct in en veert terug bij loslaten */
.po.is-down:not([aria-disabled="true"]) {
  scale: 0.97; background: color-mix(in srgb, var(--blue) 18%, var(--surface)); border-color: var(--blue);
  box-shadow: inset 0 2px 6px color-mix(in srgb, var(--blue-dark) 30%, transparent);
  transition: scale .07s ease-out, background-color .07s, box-shadow .07s, border-color .07s;
}
.po > * { position: relative; z-index: 1; }
.po.is-down .po-radio { border-color: var(--blue); background: radial-gradient(var(--blue) 0 30%, transparent 34%); }

.po-radio {
  flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted);
  transition: border-color .15s, background .15s;
}
.po[aria-checked="true"] .po-radio {
  border-color: var(--blue); background: radial-gradient(var(--blue) 0 42%, transparent 46%);
}
.po-label { flex: 1; min-width: 0; text-wrap: pretty; }
.po-pct { font-variant-numeric: tabular-nums; visibility: hidden; }  /* plek blijft gereserveerd, zodat de rijen niet verspringen bij je stem */
.po-pct { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: var(--fs-lees); color: var(--blue-dark); }
.peiling--uitslag .po-pct { visibility: visible; }
.po-balk {
  position: absolute !important; z-index: 0 !important; inset: 0 auto 0 0; width: 0;
  background: var(--tik); transition: width .5s ease;
}
.peiling--uitslag .po-balk { width: var(--w); }
.po[aria-checked="true"] { border-color: var(--blue); }
.po[aria-checked="true"] .po-balk { background: color-mix(in srgb, var(--blue) 24%, var(--surface)); }

/* na je stem staat de uitslag vast: de rijen zijn niet meer klikbaar */
.po[aria-disabled="true"] { cursor: default; }

/* stem net geplaatst: gekozen rij veert op, de stip knalt aan, de balken vullen zich vanaf links */
@keyframes po-veer { 0% { scale: 0.97; } 45% { scale: 1.025; } 100% { scale: 1; } }
@keyframes po-stip { 0% { transform: scale(0.4); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes po-vul { from { width: 0; } }
@keyframes po-ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--blue) 45%, transparent); } to { box-shadow: 0 0 0 10px transparent; } }
.peiling--net .po[aria-checked="true"] { animation: po-veer .5s var(--ease-zacht), po-ring .6s ease-out; }
.peiling--net .po[aria-checked="true"] .po-radio { animation: po-stip .45s var(--ease-zacht); }
.peiling--net .po-balk { animation: po-vul .7s var(--ease-zacht) both; }
.peiling--net .po-pct { animation: po-in .3s ease-out both; }
@keyframes po-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .peiling--net .po, .peiling--net .po-radio, .peiling--net .po-balk, .peiling--net .po-pct { animation: none !important; } }
@media (max-width: 640px) {
  .peiling { margin-top: 17px; }
  .peiling-vraag { font-size: var(--fs-kop-s); }
}

/* ============================================================
   TABEL IN HET ARTIKEL — zelfde uiterlijk als de widgets op
   "Seizoen in cijfers" (stand.html): kaart met kopje in Oswald,
   om-en-om een licht vlak in plaats van lijnen, rangnummer met
   een punt (leeg bij een gedeelde plek).
   ============================================================ */
.artikel-tabel {
  margin: 30px 0; padding: 14px 12px 12px; border-radius: var(--r-l); box-shadow: var(--shadow-border);
}
.article-body .artikel-tabel .tabel-kop {
  margin: 0 0 12px; padding: 0 4px; font-size: var(--fs-lees); line-height: 1.25; letter-spacing: 0.01em;
}
.artikel-tabel table.standings { font-size: var(--fs-tekst); line-height: 1.4; }
.artikel-tabel table.standings th { font-size: var(--fs-klein); padding: 0 8px 10px; }
.artikel-tabel table.standings td { padding: 8px; border-top: none; }
.artikel-tabel table.standings tbody tr:nth-child(even) td { background: var(--zebra); }
.artikel-tabel table.standings tbody tr td:first-child { border-radius: var(--r-s) 0 0 var(--r-s); }
.artikel-tabel table.standings tbody tr td:last-child { border-radius: 0 var(--r-s) var(--r-s) 0; }
.artikel-tabel table.standings th:first-child, .artikel-tabel table.standings td:first-child { width: 1%; white-space: nowrap; padding-right: 2px; }
.artikel-tabel table.standings td:first-child:not(:empty)::after { content: '.'; }
.artikel-tabel table.standings th:nth-child(2), .artikel-tabel table.standings td:nth-child(2) { padding-left: 2px; }
.artikel-tabel table.standings td.num, .artikel-tabel table.standings th.num { text-align: right; }

/* ============================================================
   VIDEO IN HET ARTIKEL — eerst alleen een plaatje met afspeelknop;
   pas na een tik laadt de YouTube-speler (youtube-nocookie.com,
   zonder cookies vooraf). Zie assets/js/artikelvideo.js.
   ============================================================ */
.artikel-video { margin: 30px 0 0; }
.article-body p + .artikel-video { margin-top: 8px; }  /* de alinea ervoor heeft al 22px onderruimte */
.video-facade {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--r-l); overflow: hidden; background: #000;
}
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.35); transition: background-color .15s, scale .2s var(--ease-veer);
}
.video-play svg { width: 30px; height: 30px; margin-left: 3px; }
.video-facade:hover .video-play { background: var(--red-dark); scale: 1.08; }
.video-facade:active .video-play { scale: 0.94; }
.artikel-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-l); background: #000; }
.artikel-video figcaption { margin-top: 10px; font-size: var(--fs-ui); line-height: 1.45; color: var(--muted); }
.artikel-video figcaption a { margin-left: 4px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.artikel-video figcaption a:hover { text-decoration: underline; }
@media (max-width: 640px) { .artikel-tabel { padding: 12px 8px 8px; } .video-play { width: 56px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .video-play { transition: none; } }

/* ============================================================
   LINK NAAR EEN EXTERNE BRON (bv. een video die niet in te sluiten is).
   Tweede-actie-knop zoals "Open in Spotify" in de podcastartikelen: omrand,
   kleine rechthoek met 6px hoek; het pijltje laat zien dat je de site verlaat.
   ============================================================ */
.article-body p.extern-rij { margin: 4px 0 0; }
.extern-knop svg { flex: none; width: 11px; height: 11px; }

/* Onderlinge duels in een voorbeschouwing: de opbouw van "Vorige ontmoetingen"
   op programma.html (datum, wedstrijd, uitslag), dus de eerste kolom is een
   datum en geen rangnummer — zonder smalle kolom en zonder punt erachter. */
.artikel-tabel--duels table.standings th:first-child,
.artikel-tabel--duels table.standings td:first-child { width: auto; padding-right: 8px; }
.artikel-tabel--duels table.standings td:first-child:not(:empty)::after { content: none; }
.artikel-tabel--duels table.standings th:nth-child(2),
.artikel-tabel--duels table.standings td:nth-child(2) { padding-left: 8px; }
.artikel-tabel--duels table.standings th:last-child,
.artikel-tabel--duels table.standings td:last-child { text-align: right; }

/* ============================================================
   BLOKKEN UIT HET BEHEER (tools/artikelbron.py)
   ============================================================ */
/* een eigen tabel: de eerste kolom is gewoon tekst, geen rangnummer
   (alleen een tabel met "#" als eerste kolom krijgt de punt erachter) */
.artikel-tabel--vrij table.standings th:first-child,
.artikel-tabel--vrij table.standings td:first-child { width: auto; padding-right: 8px; white-space: normal; }
.artikel-tabel--vrij table.standings td:first-child:not(:empty)::after { content: none; }
.artikel-tabel--vrij table.standings th:nth-child(2),
.artikel-tabel--vrij table.standings td:nth-child(2) { padding-left: 8px; }
.artikel-tabel { overflow-x: auto; }

/* Volgende tegenstander: twee tabjes, Vorm en Onderling (artikel.js) */
.artikel-tabjes .comp-kies {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: max-content; max-width: 100%;
  background: var(--zebra); border-radius: var(--r-pil); padding: 2px; margin: 0 4px 12px;
}
.artikel-tabjes .comp-kies button {
  border: 0; background: transparent; font: inherit; font-size: var(--fs-klein); font-weight: 600;
  color: var(--muted); padding: 5px 14px; border-radius: var(--r-pil); cursor: pointer; min-height: 30px; white-space: nowrap;
}
.artikel-tabjes .comp-kies button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-border); }
.artikel-tabjes [data-paneel][hidden] { display: none; }
.artikel-tabel-leeg { margin: 0; padding: 4px; font-size: var(--fs-tekst); color: var(--muted); }

/* citaat met naam, opsomming en foto in de tekst */
.article-body blockquote cite {
  display: block; margin-top: 8px; font-family: 'Inter', sans-serif; font-size: var(--fs-tekst);
  font-weight: 500; font-style: normal; color: var(--muted);
}
.article-body blockquote cite::before { content: '— '; }
.article-body ul { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.artikel-beeld { margin: 30px 0; }
.artikel-beeld img { display: block; width: 100%; height: auto; border-radius: var(--r-l); }
.artikel-beeld figcaption { margin-top: 8px; font-size: var(--fs-klein); color: var(--muted); }

/* Volgende tegenstander en stand: compacte blokjes, op een laptop hoogstens
   440 px breed (net als op de programmapagina); op de telefoon de volle breedte */
@media (min-width: 640px) {
  .artikel-tabjes, .artikel-tabel--stand { max-width: 440px; }
}
.artikel-tabjes table.standings td, .artikel-tabel--stand table.standings td { padding-top: 6px; padding-bottom: 6px; }
