/* nieuwsbericht.php: één nieuwsbericht. Voorvoegsel .nwb-.
   De klassen binnen .nwb-inhoud gelden voor HTML die in de beheerpagina is getypt;
   daar staan geen eigen klassen op, dus die worden op elementnaam opgemaakt. */
.nwb-body { padding: clamp(1.5rem, 4vw, 2.5rem) 0 3rem; }
.nwb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.25rem; align-items: start; }
.nwb-artikel { min-width: 0; }

.nwb-beeld { margin: 0 0 1.5rem; }
.nwb-beeld img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

.nwb-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    border-left: 3px solid var(--primary);
    padding-left: 1.1rem;
    margin: 0 0 1.5rem;
}

.nwb-inhoud { font-size: 1.02rem; line-height: 1.8; color: var(--text); }
.nwb-inhoud > :first-child { margin-top: 0; }
.nwb-inhoud h2 { font-family: var(--font-body); font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .7rem; }
.nwb-inhoud h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.nwb-inhoud p { margin: 0 0 1.15rem; }
.nwb-inhoud ul, .nwb-inhoud ol { padding-left: 1.3rem; margin: 0 0 1.15rem; }
.nwb-inhoud li { margin-bottom: .4rem; }
.nwb-inhoud img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1rem 0; }
.nwb-inhoud a { color: var(--blue-dark); }
.nwb-inhoud blockquote {
    border-left: 3px solid var(--primary);
    background: var(--band-groen);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: .9rem 1.2rem;
    margin: 1.5rem 0;
    color: var(--primary-darker);
}
.nwb-inhoud blockquote p:last-child { margin-bottom: 0; }
.nwb-inhoud hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--border); }
.nwb-inhoud table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .94rem; }
.nwb-inhoud th, .nwb-inhoud td { border: 1px solid var(--border); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.nwb-inhoud th { background: var(--blue-light); color: var(--blue-dark); font-weight: 700; }

/* ── Delen ──────────────────────────────────────────────────────────────── */
.nwb-delen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.nwb-delen > span { font-size: .88rem; font-weight: 600; color: var(--text-muted); margin-right: .2rem; }
.nwb-deelknop {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .87rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    padding: .45rem .9rem;
}
.nwb-facebook { background: #1877F2; }
.nwb-facebook:hover { background: #135fc4; color: #fff; }
.nwb-whatsapp { background: #128c7e; }
.nwb-whatsapp:hover { background: #0b6b58; color: #fff; }
.nwb-terug { margin-left: auto; font-size: .88rem; color: var(--text-muted); text-decoration: none; }
.nwb-terug:hover { color: var(--primary); text-decoration: underline; }

/* ── Zijbalk ────────────────────────────────────────────────────────────── */
.nwb-zijbalk { display: grid; gap: 1rem; position: sticky; top: 5.5rem; }
.nwb-zijkaart {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.15rem 1.25rem;
}
.nwb-zijkaart h2 {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin: 0 0 .85rem;
}
.nwb-zijkaart p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 .9rem; }
.nwb-zijkaart-hulp { background: var(--band-groen); border-color: var(--band-groen-rand); }
.nwb-zijkaart-hulp h2, .nwb-zijkaart-hulp p { color: var(--primary-dark); }

.nwb-verwant { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.nwb-verwant li { display: flex; gap: .75rem; align-items: flex-start; }
.nwb-verwant img, .nwb-verwant-geenfoto {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.nwb-verwant-geenfoto {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-light);
    color: var(--blue);
}
.nwb-verwant a { display: block; font-size: .89rem; font-weight: 600; line-height: 1.35; color: var(--text); text-decoration: none; }
.nwb-verwant a:hover { color: var(--primary-dark); }
.nwb-verwant small { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }

.nwb-nietgevonden { text-align: center; padding: 3rem 0; }
.nwb-nietgevonden h1 { font-family: var(--font-body); font-size: 1.5rem; font-weight: 700; margin: 0 0 1rem; }

@media (max-width: 1099px) {
    .nwb-grid { grid-template-columns: 1fr; }
    .nwb-zijbalk { position: static; }
}

/* Bronvermelding onder een bericht dat op een artikel elders volgt. */
.nwb-bron {
    background: var(--blue-light);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius-sm);
    padding: .9rem 1.1rem;
    margin-top: 2rem;
}
.nwb-bron h2 {
    font-family: var(--font-body);
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--blue-dark);
    margin: 0 0 .3rem;
}
.nwb-bron p { margin: 0; font-size: .92rem; color: var(--blue-dark); }
.nwb-bron a { color: var(--blue-darker); font-weight: 600; }
.nwb-bron a .bi { font-size: .72rem; margin-left: .2rem; }
.nwb-bron-uitleg { font-size: .8rem !important; color: var(--text-muted) !important; margin-top: .35rem !important; }
