/* nieuws.php: eigen berichten links, berichten van andere sites in een zijvak rechts.
   Voorvoegsel .nw-. */
.nw-body { padding: clamp(1.5rem, 4vw, 2.5rem) 0 3rem; }
.nw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2rem; align-items: start; }
.nw-hoofd { min-width: 0; }

.nw-leeg { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--text-muted); padding: 3rem 0; }
.nw-leeg .bi { font-size: 1.5rem; opacity: .5; }

.nw-datum { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--text-muted); margin: 0 0 .4rem; }

/* ── Uitgelicht bericht ─────────────────────────────────────────────────── */
.nw-uitgelicht {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.nw-uitgelicht-beeld { display: block; min-height: 15rem; }
.nw-uitgelicht-beeld img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-uitgelicht-tekst { padding: clamp(1.15rem, 3vw, 1.75rem); display: flex; flex-direction: column; justify-content: center; }
.nw-uitgelicht h2 { font-family: var(--font-body); font-size: clamp(1.15rem, 2.3vw, 1.5rem); font-weight: 700; line-height: 1.3; margin: 0 0 .5rem; }
.nw-uitgelicht h2 a { color: var(--text); text-decoration: none; }
.nw-uitgelicht h2 a:hover { color: var(--primary-dark); }
.nw-samenvatting { font-size: .93rem; color: var(--text-muted); line-height: 1.65; margin: 0 0 1rem; }

/* ── Raster met de overige berichten ────────────────────────────────────── */
.nw-rooster { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.nw-kaart {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.nw-kaart-beeld { display: block; }
.nw-kaart-beeld img { width: 100%; height: 10rem; object-fit: cover; display: block; }
.nw-geenbeeld {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6rem;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 1.75rem;
}
.nw-kaart-tekst { padding: 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.nw-kaart h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0 0 .4rem; }
.nw-kaart h3 a { color: var(--text); text-decoration: none; }
.nw-kaart h3 a:hover { color: var(--primary-dark); }
.nw-kaart .nw-samenvatting { font-size: .86rem; margin-bottom: .75rem; flex: 1; }
.nw-meer { margin: 0; }
.nw-meer a { font-size: .87rem; font-weight: 600; color: var(--primary-dark); text-decoration: none; }
.nw-meer a:hover { text-decoration: underline; }

.nw-paginering { margin-top: 2rem; }

/* ── Zijvak: berichten van andere sites ─────────────────────────────────── */
.nw-extern {
    position: sticky;
    top: 5.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.nw-extern-kop { background: var(--blue-light); border-bottom: 1px solid var(--blue-border); padding: 1rem 1.15rem; }
.nw-extern-kop h2 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; color: var(--blue-darker); margin: 0 0 .25rem; }
.nw-extern-kop p { font-size: .84rem; color: var(--blue-dark); line-height: 1.5; margin: 0; }

.nw-extern-lijst { list-style: none; margin: 0; padding: 0; }
.nw-extern-lijst li { padding: .85rem 1.15rem; border-bottom: 1px solid var(--border); }
.nw-extern-lijst li:last-child { border-bottom: 0; }
.nw-extern-lijst a {
    display: block;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
}
.nw-extern-lijst a:hover { color: var(--blue-dark); text-decoration: underline; }
.nw-extern-lijst a .bi { font-size: .72rem; color: var(--text-muted); margin-left: .25rem; vertical-align: baseline; }
.nw-extern-bron {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .6rem;
    font-size: .78rem;
    color: var(--text-muted);
    margin: .35rem 0 0;
}
.nw-bronnaam { font-weight: 600; }
.nw-extern-leeg { font-size: .88rem; color: var(--text-muted); padding: 1.15rem; margin: 0; }
.nw-extern-uitleg {
    font-size: .76rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    padding: .8rem 1.15rem;
    border-top: 1px solid var(--border);
    background: var(--surface-warm);
}

@media (max-width: 1099px) {
    .nw-grid { grid-template-columns: 1fr; }
    .nw-extern { position: static; }
}
@media (max-width: 767px) {
    .nw-uitgelicht { grid-template-columns: 1fr; }
    .nw-uitgelicht-beeld { min-height: 0; }
    .nw-uitgelicht-beeld img { height: 12rem; }
}
