/* 📰 Nieuws (nieuws.html, nieuws-bericht.html). Kleuren uit site.css, licht en donker. */
.nieuws-pagina { padding-bottom: 56px; }
.nieuws-kop { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 40px 0 18px; }
.nieuws-kop h1 { margin: 0 0 4px; } .nieuws-kop p { margin: 0; }
.zacht { color: var(--zacht); }

/* ▦ Tegels als collage: 6 kolommen; nieuws.js geeft elke tegel --k kolommen en --r rijen (vaste patronen, altijd zonder gaten).
   Het plaatje vult de tegel, de tekst staat er onderaan overheen. */
.nieuws-lijst { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 16px; }
.nieuws-lijst > p { grid-column: 1 / -1; }
.nieuws-kaart { grid-column: span var(--k, 2); grid-row: span var(--r, 1); position: relative; display: block; border-radius: 18px; overflow: hidden;
  background: var(--tint-blauw); color: #fff; text-decoration: none; box-shadow: 0 1px 3px rgba(0, 40, 60, .1); transition: transform .18s ease, box-shadow .18s ease; }
.nieuws-kaart:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 60, 90, .2); }
.nieuws-kaart:focus-visible { outline: 3px solid var(--primair); outline-offset: 3px; }
.nieuws-kaart .nieuws-beeld { position: absolute; inset: 0; padding-bottom: 70px; }
.nieuws-kaart .nieuws-beeld img { transition: transform .5s ease; }
.nieuws-kaart:hover .nieuws-beeld img { transform: scale(1.04); }
.nieuws-kaart-tekst { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 56px 18px 16px;
  background: linear-gradient(to top, rgba(6, 24, 36, .9) 0%, rgba(6, 24, 36, .66) 55%, rgba(6, 24, 36, 0) 100%); }
.nieuws-kaart-tekst small { font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.nieuws-kaart-tekst h2 { margin: 0; font-size: 18px; line-height: 1.25; color: #fff; }
.nieuws-kaart-tekst p { display: none; margin: 0; color: rgba(255, 255, 255, .88); }
.nieuws-verder { display: none; color: #fff; font-weight: 700; font-size: 14px; margin-top: 4px; }
.nieuws-kaart.groot .nieuws-kaart-tekst { padding: 80px 24px 22px; gap: 6px; }
.nieuws-kaart.groot .nieuws-kaart-tekst h2 { font-size: clamp(22px, 2.3vw, 30px); }
.nieuws-kaart.groot .nieuws-kaart-tekst p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nieuws-kaart.groot .nieuws-verder { display: block; }
@media (max-width: 600px) { .nieuws-lijst { grid-auto-rows: 240px; gap: 12px; } }

/* ☰ Lijst: één bericht per regel, klein plaatje links. */
.nieuws-lijst.als-lijst { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 10px; }
.nieuws-lijst.als-lijst .nieuws-kaart { grid-column: auto; grid-row: auto; display: flex; background: var(--vlak); color: var(--tekst); border: 1px solid var(--rand); border-radius: 14px; box-shadow: none; }
.nieuws-lijst.als-lijst .nieuws-kaart:hover { border-color: var(--primair); box-shadow: 0 8px 20px rgba(0, 60, 90, .1); }
.nieuws-lijst.als-lijst .nieuws-beeld { position: relative; inset: auto; padding: 0; flex: 0 0 168px; aspect-ratio: 16 / 9; min-height: 0; font-size: 30px; }
.nieuws-lijst.als-lijst .nieuws-kaart-tekst { position: static; background: none; padding: 10px 14px; gap: 2px; align-content: center; }
.nieuws-lijst.als-lijst .nieuws-kaart-tekst small { color: var(--zacht); }
.nieuws-lijst.als-lijst .nieuws-kaart-tekst h2 { color: var(--tekst); font-size: 17px; }
.nieuws-lijst.als-lijst .nieuws-kaart-tekst p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--zacht); font-size: 14px; }
.nieuws-lijst.als-lijst .nieuws-verder { display: none; }
@media (max-width: 560px) { .nieuws-lijst.als-lijst .nieuws-beeld { flex-basis: 96px; } }

/* Het plaatje (ook zonder plaatje: de kleur en het icoon van de soort). */
.nieuws-beeld, .nieuws-groot { display: flex; align-items: center; justify-content: center; font-size: 46px; background: var(--tint-blauw); overflow: hidden; }
.nieuws-beeld img, .nieuws-groot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nieuws-beeld img[src$=".jpg"], .nieuws-groot img[src$=".jpg"] { object-position: center top; }   /* schermafbeeldingen: de bovenkant */
.nieuws-beeld img { position: absolute; inset: 0; }
.soort-veiligheid { background: var(--tint-roze); } .soort-update { background: var(--tint-groen); } .soort-onderhoud { background: var(--tint-oranje); } .soort-verhaal { background: var(--tint-paars); }

/* Eén bericht */
.nieuws-bericht { max-width: 760px; margin: 0 auto; }
.nieuws-terug { display: inline-block; margin: 32px 0 6px; text-decoration: none; font-weight: 600; }
.nieuws-meta { margin: 0; font-size: 14px; }
.nieuws-bericht h1 { margin: 6px 0 10px; line-height: 1.15; font-size: clamp(28px, 4.5vw, 40px); }
.nieuws-intro { font-size: 19px; color: var(--zacht); margin: 0 0 18px; }
.nieuws-groot { border-radius: 18px; min-height: 200px; max-height: 420px; font-size: 64px; margin-bottom: 22px; }
.nieuws-groot img { height: auto; aspect-ratio: 16 / 9; }
.nieuws-tekst { font-size: 17px; line-height: 1.7; }
.nieuws-tekst h2, .nieuws-tekst h3, .nieuws-tekst h4 { margin: 28px 0 8px; line-height: 1.25; }
.nieuws-tekst .tip { padding: 10px 14px; border-left: 4px solid var(--primair); background: var(--tint-blauw); border-radius: 0 12px 12px 0; }
.nieuws-tekst code { background: var(--tint-blauw); padding: 1px 6px; border-radius: 6px; }
.nieuws-onder { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rand); }

/* 🗂️ Archief: jaren, en in een druk jaar de maanden. */
.nieuws-archief { display: grid; gap: 8px; margin: -4px 0 18px; }
.nieuws-archief-rij { display: flex; flex-wrap: wrap; gap: 6px; }
.nieuws-chip { font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--rand); background: var(--vlak); color: var(--zacht); text-decoration: none; }
.nieuws-chip:hover { color: var(--primair); border-color: var(--primair); }
.nieuws-chip[aria-current="true"] { background: var(--primair); border-color: var(--primair); color: #fff; font-weight: 700; }
.nieuws-archief-rij.maanden .nieuws-chip { font-size: 12.5px; padding: 3px 10px; }
/* Eén strookje: tegels/lijst, en (na een streepje) de RSS-link, rustig, voor wie hem zoekt. */
.nieuws-weergave { display: inline-flex; align-items: center; border: 1px solid var(--rand); border-radius: 999px; padding: 2px; background: var(--vlak); }
.nieuws-weergave button, .nieuws-rss { border: 0; background: none; color: var(--zacht); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.nieuws-weergave button[aria-pressed="true"] { background: var(--tint-blauw); color: var(--primair); font-weight: 700; }
.nieuws-rss { position: relative; margin-left: 5px; }
.nieuws-rss::before { content: ""; position: absolute; left: -3px; top: 6px; bottom: 6px; width: 1px; background: var(--rand); }
.nieuws-weergave button:hover, .nieuws-rss:hover { color: var(--primair); }
/* Opmaak in de tekst: een lijn en markeren (==zo==). */
.nieuws-tekst hr { border: 0; border-top: 1px solid var(--rand); margin: 28px 0; }
.nieuws-tekst mark { background: #FFF1A8; color: inherit; padding: 0 3px; border-radius: 4px; }
html.donker .nieuws-tekst mark { background: #5C4A00; }
