/* ==========================================================================
   22 · Nieuwsartikels /news/<artikel> (src/lib/nieuwsartikel.mjs)
   Witte kop met de foto eronder (geen tekst op een foto), tekst in een leesbare kolom.
   Huisstijl: Ink #231f20, Eniris Red #9b1915 voor links, Web Red alleen als accent; geen pijlen.
   ========================================================================== */

.na-x { background: #fff; }
.hn.na-kop { padding-top: 40px; }
.na-kop-tx { max-width: 880px; }
.na-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none !important; margin: 0 0 20px !important; padding: 0 !important; }
.na-tags li { margin: 0 !important; padding: 3px 10px !important; border-radius: 4px; background: var(--hn-vlak); color: var(--hn-ink); font-size: 13px; line-height: 18px; }
.na-tags li::before { content: none !important; }
.hn .na-h1 { margin: 0; font: 700 56px/62px var(--hn-kop) !important; letter-spacing: -.035em; color: var(--hn-ink); text-wrap: balance; }
.hn .na-lead { margin-top: 24px; font-size: 20px; line-height: 32px; color: var(--hn-muted); max-width: 40em; }
.na-foto { margin-top: 48px; border-radius: 12px; overflow: hidden; background: var(--hn-vlak); aspect-ratio: 21 / 9; }
.na-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Tekst */
.hn.na-body { padding-top: 64px; }
.na-tekst { max-width: 800px; color: var(--hn-ink); }
.na-tekst .w-richtext { color: var(--hn-ink); }
.na-tekst p, .na-tekst li { font-size: 18px !important; line-height: 30px !important; color: var(--hn-ink) !important; }
.na-tekst p { margin: 0 0 20px !important; }
.na-tekst h2 { margin: 56px 0 16px !important; font: 700 34px/42px var(--hn-kop) !important; letter-spacing: -.025em; color: var(--hn-ink) !important; }
.na-tekst h3 { margin: 40px 0 12px !important; font: 700 24px/32px var(--hn-kop) !important; letter-spacing: -.015em; color: var(--hn-ink) !important; }
.na-tekst h4 { margin: 32px 0 8px !important; font: 700 19px/26px var(--hn-kop) !important; color: var(--hn-ink) !important; }
.na-tekst h2 strong, .na-tekst h3 strong, .na-tekst h4 strong { font-weight: inherit; }
.na-tekst > .w-richtext:first-child > :first-child, .na-tekst .w-richtext > h2:first-child, .na-tekst .w-richtext > h3:first-child { margin-top: 0 !important; }
.na-tekst strong { font-weight: 600; }
.na-tekst ul, .na-tekst ol { margin: 0 0 24px !important; padding-left: 24px !important; }
.na-tekst li { margin: 0 0 8px !important; padding-left: 4px !important; }
.na-tekst ul li { list-style: disc outside !important; }
.na-tekst ol li { list-style: decimal outside !important; }
.na-tekst li::before { content: none !important; }
.na-tekst li::marker { content: normal !important; color: var(--hn-muted) !important; } /* de site zet ::marker op none en in #ee1c25 */
.na-tekst li ul { margin: 8px 0 0 !important; }
.na-tekst a:not(.hn-tlink) { color: var(--hn-rood) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.na-tekst a:not(.hn-tlink):hover { color: #7d1411 !important; }
.na-tekst img { max-width: 100%; height: auto; border-radius: 8px; }
.na-tekst figure { margin: 32px 0 !important; max-width: 100% !important; }
.na-tekst figure img { border-radius: 8px; }
.na-tekst figure[data-rt-type="video"] { border-radius: 12px; overflow: hidden; }
.na-tekst figcaption { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--hn-muted); text-align: left; }
.na-tekst blockquote { margin: 32px 0 !important; padding: 4px 0 4px 24px !important; border-left: 2px solid var(--hn-lijn) !important; font-size: 20px; line-height: 32px; color: var(--hn-ink); }
.na-tekst table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; line-height: 22px; }
.na-tekst th, .na-tekst td { padding: 10px 12px 10px 0; border-top: 1px solid var(--hn-lijn); text-align: left; vertical-align: top; }

/* Het 50/50-blok van het sjabloon (tekst + beeld) */
.na-tekst .flex_horizontal { display: grid !important; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin: 32px 0; }
.na-tekst .flex_horizontal > .width._50 { width: auto !important; max-width: none !important; min-width: 0; padding: 0 !important; margin: 0 !important; }
.na-tekst .flex_horizontal > .width._50:empty { display: none; }
.na-tekst .flex_horizontal:has(> .width._50:empty) { grid-template-columns: 1fr; }
.na-tekst .w-dyn-list:has(.w-dyn-hide) { display: none; }

.na-terug { margin-top: 48px !important; padding-top: 32px; border-top: 1px solid var(--hn-lijn); }

@media (max-width: 991px) {
  .hn .na-h1 { font-size: 40px !important; line-height: 46px !important; }
  .na-foto { aspect-ratio: 16 / 9; margin-top: 32px; }
}
@media (max-width: 767px) {
  .hn.na-kop { padding-top: 24px; }
  .hn .na-h1 { font-size: 32px !important; line-height: 38px !important; }
  .hn .na-lead { font-size: 18px; line-height: 28px; margin-top: 16px; }
  .na-foto { border-radius: 8px; }
  .hn.na-body { padding-top: 40px; }
  .na-tekst p, .na-tekst li { font-size: 17px !important; line-height: 28px !important; }
  .na-tekst h2 { font-size: 26px !important; line-height: 32px !important; margin-top: 40px !important; }
  .na-tekst h3 { font-size: 21px !important; line-height: 28px !important; }
  .na-tekst .flex_horizontal { grid-template-columns: 1fr; gap: 24px; }
}
