/* ══════════════════════════════════════════════════════════════
   NatuurInBeeld — homepage
   Rustig, professioneel: wit + grijstinten, diep-neutrale donkere
   panelen en één accentkleur (thema-primary). De seizoenssectie
   gebruikt secondary als enige tweede accent.
   ══════════════════════════════════════════════════════════════ */

/* ── Design tokens — licht thema ─────────────────────────────── */
:root {
    --nib-hp-parchment:   #f4f6f8;            /* zachte grijze paginarand */
    --nib-hp-card:        #ffffff;            /* witte panelen */
    --nib-hp-forest:      #15191e;            /* diep neutraal donker paneel */
    --nib-hp-forest-mid:  #1e242b;            /* iets lichter donker (statsband) */
    --nib-hp-gold:        var(--rz-primary);  /* accent = thema-primary */
    --nib-hp-gold-lt:     #e6eef5;            /* lichte tint voor cijfers op donker */
    --nib-hp-text2:       #5b6770;
    --nib-hp-muted:       #99a3ab;
}

/* ── Design tokens — donker thema (Radzen schakelaar) ─────────── */
.rz-material-dark {
    --nib-hp-parchment:  var(--rz-base-background-color);
    --nib-hp-card:       var(--rz-panel-background-color);
    --nib-hp-forest:     #0f1216;
    --nib-hp-forest-mid: #161b21;
    --nib-hp-gold-lt:    #e6eef5;
    --nib-hp-text2:      rgba(255, 255, 255, 0.55);
    --nib-hp-muted:      rgba(255, 255, 255, 0.35);
}

/* ── Design tokens — donker thema (systeem voorkeur) ─────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --nib-hp-parchment:  #0f1216;
        --nib-hp-card:       #161b21;
        --nib-hp-forest:     #0c0f12;
        --nib-hp-forest-mid: #14181d;
        --nib-hp-text2:      rgba(255, 255, 255, 0.55);
        --nib-hp-muted:      rgba(255, 255, 255, 0.35);
    }
}

/* ── Pagina-wrapper ─────────────────────────────────────────── */
.nib-home-wrap {
    background: var(--nib-hp-parchment);
}

/* ── /fotos-stijl blokken (NibBlock + NibBlockHeader) ──────────
   Inhoud-padding voor blok-bodies op de homepage. De blokken zelf
   staan flush onder elkaar (zoals op /fotos). */
.nib-home-block-body {
    padding: 1.25rem;
}

@media (max-width: 600px) {
    .nib-home-block-body {
        padding: 0.85rem 0.6rem;
    }
}

/* ── Foto's-blok: PhotoGrid flush (geen padding-wrapper) ────── */
.nib-photos-block {
    overflow: hidden;
}

.nib-photos-block > .photo-grid-container {
    margin: 0;
    padding: 0;
}

/* ── NibHomeHeader — gedeeld component voor alle homepage-blokken ─
   Gebruik: <NibHomeHeader Icon="..." Eyebrow="..." Title="..." Subtitle="..." />
   Variant "main" (groot, standaard) of "compact" (disc-rijen).       */
.nib-home-header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: color-mix(in oklab, var(--rz-primary) 20%, #ffffff) !important;
}

.nib-home-header--main    { padding: 2rem 2.5rem; }
.nib-home-header--compact { padding: 1.25rem 2rem; }

.rz-material-dark .nib-home-header {
    background: color-mix(in oklab, var(--rz-primary) 8%, #1a2029) !important;
}

@media (prefers-color-scheme: dark) {
    .nib-home-header {
        background: color-mix(in oklab, var(--rz-primary) 8%, #1a2029) !important;
    }
}

.nib-home-header-watermark {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rz-primary);
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

.nib-home-header--main    .nib-home-header-watermark .rzi { font-size: 13rem; }
.nib-home-header--compact .nib-home-header-watermark .rzi { font-size: 8rem; }

.nib-home-header-body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.nib-home-header-eyebrow {
    display: block;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rz-primary);
    margin-bottom: 0.2rem;
}

.nib-home-header--main .nib-home-header-title {
    margin: 0 0 0.3rem;
    font-family: "allroundgothic", sans-serif;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    color: var(--rz-text-color);
    line-height: 1.1;
}

.nib-home-header--compact .nib-home-header-title {
    margin: 0;
    font-family: "allroundgothic", sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: var(--rz-text-color);
    line-height: 1.1;
}

.nib-home-header-subtitle {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    color: var(--rz-text-secondary-color);
    line-height: 1.55;
    max-width: 60ch;
}

.nib-home-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nib-home-header-all-link {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--rz-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.nib-home-header-all-link:hover {
    color: color-mix(in oklab, var(--rz-primary), black 15%);
}

@media (max-width: 700px) {
    .nib-home-header--main {
        padding: 1.5rem 1.25rem;
        align-items: flex-start;
    }

    .nib-home-header--compact { padding: 1rem 1.25rem; }
}

/* Statistiek-blok — cijfers nu op lichte blok-achtergrond (was donkere balk) */
.nib-stats-block .nib-stats-val            { color: var(--rz-primary); }
.nib-stats-block .nib-stats-lbl            { color: var(--rz-text-secondary-color); }
.nib-stats-block .nib-stats-sep            { background: var(--rz-base-300); }
.nib-stats-block .nib-stats-item:hover     { background: var(--rz-base-100); }
.nib-stats-block .nib-stats-item--live .nib-stats-val { color: var(--rz-secondary); }
.nib-stats-block .nib-stats-item--sk .nib-stats-val   { background: var(--rz-base-200); }

/* Join-blok — lichte variant binnen NibBlock (was donkere CTA-sectie) */
.nib-join-block-body {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2rem;
}

.nib-join-block .nib-join-impact-benefit-icon {
    background: color-mix(in oklab, var(--rz-primary) 10%, transparent);
    border-color: var(--rz-base-200);
    color: var(--rz-primary);
}

.nib-join-block .nib-join-impact-benefit-label { color: var(--rz-text-color); }
.nib-join-block .nib-join-impact-benefit-text  { color: var(--rz-text-secondary-color); }
.nib-join-block .nib-join-impact-proof         { color: var(--rz-text-secondary-color); }

.nib-join-block .nib-join-impact-ctas .rz-button.rz-button-light.rz-variant-text {
    color: var(--rz-text-secondary-color) !important;
}

.nib-join-block .nib-join-impact-ctas .rz-button.rz-button-light.rz-variant-text:hover {
    color: var(--rz-text-color) !important;
    background: var(--rz-base-100) !important;
}

/* ══════════════════════════════════════════════════════════════
   HERO — "Veldpost"
   Links: community foto, rechts: portaal-paneel
   ══════════════════════════════════════════════════════════════ */
.nib-hero {
    --nib-hero-max-h: 640px;       /* cap op de hero-hoogte (brede schermen) */
    --hp-photo-color: var(--rz-primary);  /* fallback; Blazor zet dit via inline style */
    display: flex;
    height: clamp(420px, 58vw, var(--nib-hero-max-h));
}

/* ── Fotovlak ─────────────────────────────────────────────── */
/* Hoogte = hero-hoogte; breedte volgt via aspect-ratio. */
.nib-hero-photo {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    height: 100%;
    aspect-ratio: 4 / 3;
    background: color-mix(in srgb, var(--hp-photo-color) 22%, #000 78%);
}

/* <picture> mag de layout niet beïnvloeden — de <img> vult .nib-hero-photo */
.nib-hero-photo picture {
    display: contents;
}

/* Tablet: vierkant (1/1) */
@media (max-width: 1024px) and (min-width: 701px) {
    .nib-hero-photo {
        aspect-ratio: 1 / 1;
    }
}


.nib-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.55s ease;
}

.nib-hero-img--out { opacity: 0; }

.nib-hero-img-placeholder {
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--hp-photo-color) 22%, #000 78%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nib-hero-placeholder-icon {
    font-size: 4rem !important;
    color: rgba(255, 255, 255, 0.18);
    animation: nib-hero-sk-pulse 2.2s ease-in-out infinite;
    user-select: none;
    pointer-events: none;
}

@keyframes nib-hero-sk-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.08); }
}


/* ── Portaal-paneel ───────────────────────────────────────── */
/* Paneel-lokale tokens: afgeleid van de PrimaryColor van de actieve foto.
   Blazor zet --hp-photo-color via inline style; CSS valt terug op primary.
   Licht thema: zachte tint van de fotokleur; donker thema: idem maar op dark bg. */
.nib-hero-panel {
    --hp-bg:       color-mix(in oklab, var(--hp-photo-color) 15%, #ffffff);
    --hp-text:     var(--rz-text-color);
    --hp-dim:      var(--rz-text-secondary-color);
    --hp-tile:     color-mix(in oklab, var(--hp-photo-color) 40%, #f5f6f8);
    --hp-tile-hov: color-mix(in oklab, var(--hp-photo-color) 50%, #edeef1);
    --hp-border:   color-mix(in oklab, var(--hp-photo-color) 35%, #e5e7ea);

    flex: 1;
    min-width: 0;
    background: var(--hp-bg);
    transition: background 0.55s ease;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem 1.5rem;
    gap: 1.5rem;
    overflow: hidden;
}

/* Dark mode — donker paneel; tegels licht getint met fotokleur */
.rz-material-dark .nib-hero-panel {
    --hp-bg:       var(--nib-hp-forest);
    --hp-text:     rgba(255, 255, 255, 0.88);
    --hp-dim:      rgba(255, 255, 255, 0.5);
    --hp-tile:     color-mix(in oklab, var(--hp-photo-color) 12%, #1a2029);
    --hp-tile-hov: color-mix(in oklab, var(--hp-photo-color) 18%, #20272f);
    --hp-border:   color-mix(in oklab, var(--hp-photo-color) 12%, #212930);
}

@media (prefers-color-scheme: dark) {
    .nib-hero-panel {
        --hp-bg:       var(--nib-hp-forest);
        --hp-text:     rgba(255, 255, 255, 0.88);
        --hp-dim:      rgba(255, 255, 255, 0.5);
        --hp-tile:     color-mix(in oklab, var(--hp-photo-color) 12%, #1a2029);
        --hp-tile-hov: color-mix(in oklab, var(--hp-photo-color) 18%, #20272f);
        --hp-border:   color-mix(in oklab, var(--hp-photo-color) 12%, #212930);
    }
}

.nib-hero-panel-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.nib-hero-logo {
    height: 76px;
    width: auto;
    display: block;
    margin-left: auto;          /* logo helemaal rechts */
}

/* Logo volgt het paneel: donker logo op wit paneel (licht thema),
   wit logo op donker paneel (dark mode) — zelfde signalen als de paneel-bg. */
.nib-hero-logo--dark { display: none; }

.rz-material-dark .nib-hero-logo--light { display: none; }
.rz-material-dark .nib-hero-logo--dark  { display: block; }

@media (prefers-color-scheme: dark) {
    .nib-hero-logo--light { display: none; }
    .nib-hero-logo--dark  { display: block; }
}

.nib-hero-tagline {
    margin: 0;
    font-family: "allroundgothic", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hp-text);
    line-height: 1.25;
    max-width: 20ch;
}

/* ── Portaal-navigatiegrid ────────────────────────────────── */
.nib-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    flex: 1;
}

.nib-hero-entry {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.1rem;
    min-height: 124px;
    padding: 1.1rem 1.1rem 1rem;
    background: var(--hp-tile);
    border: 1px solid var(--hp-border);
    text-decoration: none !important;
    transition: background 0.18s ease, border-color 0.18s ease;
}

/* Subtiele hover — geen kermis */
.nib-hero-entry:hover {
    background: var(--hp-tile-hov);
    border-color: color-mix(in oklab, var(--hp-photo-color) 35%, var(--hp-border));
}

/* Groot, vaag icoon als achtergrond-watermerk */
.nib-hero-entry-icon {
    position: absolute;
    right: -0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hp-photo-color);
    opacity: 0.12;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.18s ease;
}

.nib-hero-entry-icon .rzi {
    font-size: 5.5rem;
}

.nib-hero-entry:hover .nib-hero-entry-icon {
    opacity: 0.16;
}

/* Inhoud boven het watermerk */
.nib-hero-entry-count,
.nib-hero-entry-label,
.nib-hero-entry-label--big {
    position: relative;
    z-index: 1;
}

/* Groot getal = focus van de tegel */
.nib-hero-entry-count {
    font-family: "allroundgothic", sans-serif;
    font-size: clamp(2.2rem, 3.2vw, 3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--hp-text);
    font-variant-numeric: tabular-nums;
    transition: color 0.18s ease;
}

.nib-hero-entry-label {
    font-family: "allroundgothic", sans-serif;
    font-size: 0.82rem;
    color: var(--hp-dim);
    white-space: nowrap;
}

/* Tegels zonder getal (Nieuws, Logboek): sectienaam groot als focus */
.nib-hero-entry-label--big {
    font-size: clamp(1.25rem, 1.9vw, 1.6rem);
    line-height: 1.05;
    color: var(--hp-text);
    transition: color 0.18s ease;
}

.nib-hero-entry:hover .nib-hero-entry-count,
.nib-hero-entry:hover .nib-hero-entry-label--big {
    color: var(--hp-photo-color);
}

/* ── Paneel-onderkant: live stats + CTA ───────────────────── */
.nib-hero-panel-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--hp-border);
}

.nib-hero-live {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--hp-dim);
    flex-wrap: wrap;
}

.nib-hero-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rz-secondary);
    flex-shrink: 0;
    animation: nib-live-blink 2s ease-in-out infinite;
}

@keyframes nib-live-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.nib-hero-live-sep {
    opacity: 0.4;
}

.nib-hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

/* Inloggen — scheidingslijn + drie gelabelde knoppen */
.nib-hero-login-divider {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--hp-dim);
    font-size: 0.72rem;
}

.nib-hero-login-divider::before,
.nib-hero-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hp-border);
}

.nib-hero-login-btns {
    display: flex;
    gap: 0.5rem;
}

.nib-hero-login-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.4rem;
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    background: var(--hp-tile);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--rz-text-color);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.nib-hero-login-btn:hover {
    background: var(--hp-tile-hov);
    border-color: color-mix(in oklab, var(--hp-photo-color) 30%, var(--hp-border));
}

.nib-hero-login-btn .rzi {
    font-size: 15px;
    color: var(--hp-photo-color);
}

.nib-hero-login-btn svg {
    display: block;
    flex-shrink: 0;
}

/* ── Radzen button override: compacte primary CTA ─────────── */
.nib-hero-ctas .rz-button.rz-button-primary.rz-variant-filled {
    background: var(--nib-hp-gold) !important;
    border-color: var(--nib-hp-gold) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.nib-hero-ctas .rz-button.rz-button-primary.rz-variant-filled:hover {
    background: color-mix(in oklab, var(--nib-hp-gold), white 12%) !important;
}

/* ══════════════════════════════════════════════════════════════
   STATISTIEKEN BAND — donkere data-balk
   ══════════════════════════════════════════════════════════════ */
.nib-stats-band {
    background: var(--nib-hp-forest-mid);
    color: #fff;
}

.nib-stats-band-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.75rem 1.75rem;
    gap: 0;
}

.nib-stats-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 1.4rem;
    text-decoration: none !important;
    transition: background 0.15s;
    border-radius: 4px;
}

.nib-stats-item:hover {
    background: rgba(255,255,255,0.07);
}

.nib-stats-val {
    font-family: "allroundgothic", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nib-hp-gold-lt);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.nib-stats-lbl {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

.nib-stats-sep {
    width: 1px;
    height: 1.4rem;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
    margin: 0 0.25rem;
}

.nib-stats-sep--live {
    height: 1rem;
    background: rgba(255,255,255,0.2);
    margin: 0 0.75rem;
}

.nib-stats-item--live .nib-stats-val {
    color: color-mix(in oklab, var(--rz-secondary), white 45%);
}

.nib-stats-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rz-secondary);
    flex-shrink: 0;
    animation: nib-live-blink 2s ease-in-out infinite;
}

/* Skeleton voor stats */
.nib-stats-item--sk .nib-stats-val {
    min-width: 3rem;
    min-height: 1.25rem;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    color: transparent;
    animation: nib-hero-sk-pulse 1.8s ease-in-out infinite;
}

@media (max-width: 640px) {
    .nib-stats-band-inner {
        padding: 0.5rem 1rem;
        gap: 0;
    }

    .nib-stats-item {
        padding: 0.4rem 0.7rem;
    }

    .nib-stats-val {
        font-size: 1.05rem;
    }

    .nib-stats-sep { display: none; }
    .nib-stats-sep--live { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   EDITORIAL FOTOGALERIJ — magazine-grid
   ══════════════════════════════════════════════════════════════ */
.nib-eg {
    background: var(--nib-hp-parchment);
}

.rz-material-dark .nib-eg {
    background: var(--rz-base-background-color);
}

/* Sectiekop: eyebrow + titel + sorteer-tabs + alle-link */
.nib-eg-head {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.75rem 1.5rem 1.1rem;
    border-bottom: 1px solid var(--rz-base-200, #e6eaee);
}

.nib-eg-head-titles {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-right: auto;
}

.nib-eg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rz-primary);
}

.nib-eg-eyebrow .rzi { font-size: 0.85rem; }

.nib-eg-title {
    font-family: "allroundgothic", sans-serif;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-weight: 600;
    margin: 0;
    color: var(--rz-text-color);
}

.nib-eg-sort {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    flex-shrink: 0;
}

.nib-eg-sort-btn {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.65rem;
    border-radius: 99px;
    border: none;
    background: transparent;
    color: var(--rz-text-secondary-color);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.nib-eg-sort-btn:hover {
    background: color-mix(in oklab, var(--rz-primary) 10%, transparent);
    color: var(--rz-primary);
}

.nib-eg-sort-btn--active {
    background: color-mix(in oklab, var(--rz-primary) 14%, transparent);
    color: var(--rz-primary);
    font-weight: 700;
}

.nib-eg-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    font-family: "allroundgothic", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--rz-primary);
    flex-shrink: 0;
    transition: gap 0.2s;
}

.nib-eg-all-link:hover { gap: 0.6rem; }
.nib-eg-all-link .rzi { font-size: 1rem; }

/* Hoofd-fotogrid: featured (groot) + 4 secondair */
.nib-eg-top {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 2px;
}

.nib-eg-photo {
    position: relative;
    overflow: hidden;
    display: block;
    background: color-mix(in oklab, var(--rz-primary) 8%, var(--rz-base-background-color));
    text-decoration: none !important;
}

.nib-eg-photo--featured {
    grid-row: 1 / 3;
}

.nib-eg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nib-eg-photo:hover img {
    transform: scale(1.04);
}

/* Overlay met info onderin elke foto */
.nib-eg-photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 0.9rem 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.62));
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    pointer-events: none;
}

.nib-eg-photo-title {
    font-family: "allroundgothic", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nib-eg-photo--featured .nib-eg-photo-title {
    font-size: clamp(1rem, 1.8cqw, 1.35rem);
}

/* Skeleton placeholder foto */
.nib-eg-photo--sk {
    pointer-events: none;
    animation: nib-hero-sk-pulse 1.8s ease-in-out infinite;
    background: color-mix(in oklab, var(--rz-primary) 12%, var(--rz-base-background-color));
}

/* Strip met meer foto's (horizontaal scroll) */
.nib-eg-strip {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    background: color-mix(in oklab, var(--rz-primary) 12%, transparent);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in oklab, var(--rz-primary) 40%, transparent) transparent;
}

.nib-eg-strip-photo {
    flex: 0 0 200px;
    height: 150px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    background: color-mix(in oklab, var(--rz-primary) 8%, var(--rz-base-background-color));
    display: block;
    text-decoration: none !important;
}

.nib-eg-strip-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.nib-eg-strip-photo:hover img {
    transform: scale(1.06);
}

.nib-eg-strip-photo--sk {
    pointer-events: none;
    animation: nib-hero-sk-pulse 1.8s ease-in-out infinite;
    background: color-mix(in oklab, var(--rz-primary) 12%, var(--rz-base-background-color));
}

@media (max-width: 900px) {
    .nib-eg-top {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 180px 180px;
    }
}

@media (max-width: 600px) {
    .nib-eg-head {
        padding: 1.25rem 1rem 0.9rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nib-eg-sort { order: 3; width: 100%; }

    .nib-eg-top {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 150px 150px;
    }

    .nib-eg-photo--featured {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .nib-eg-strip-photo {
        flex-basis: 150px;
        height: 120px;
    }
}

/* ══════════════════════════════════════════════════════════════
   SEIZOENSSECTIE — herontworpen editorial
   Overschrijft de stijlen in home-carousel.css
   ══════════════════════════════════════════════════════════════ */
.nib-season {
    position: relative;
    overflow: hidden;
    border-left: none;
    border-top: 4px solid var(--season);
    background: var(--nib-hp-parchment);
    color: var(--rz-text-color);
}

.rz-material-dark .nib-season {
    background: var(--rz-base-background-color);
}

/* Watermark maandnaam op de achtergrond */
.nib-season::before {
    content: attr(data-month);
    position: absolute;
    right: -0.05em;
    top: -0.15em;
    font-family: "allroundgothic", sans-serif;
    font-size: clamp(7rem, 22vw, 20rem);
    font-weight: 700;
    color: var(--season);
    opacity: 0.04;
    line-height: 0.85;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.nib-season-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.8rem 2rem 2.5rem;
}

.nib-season-eyebrow {
    color: var(--season);
}

.nib-season-title {
    color: var(--rz-text-color);
}

.nib-season-card {
    background: var(--nib-hp-card);
}

.rz-material-dark .nib-season-card {
    background: var(--rz-card-background-color);
}

/* Tip als citaat-stijl */
.nib-season-tip {
    font-style: italic;
    border-left: 3px solid var(--season);
    padding-left: 0.85rem;
}

/* ══════════════════════════════════════════════════════════════
   NIEUWSSECTIE — magazine editorial grid
   ══════════════════════════════════════════════════════════════ */
.nib-news-section {
    background: var(--nib-hp-card);
    border-top: 1px solid color-mix(in oklab, var(--rz-primary) 12%, transparent);
}

.rz-material-dark .nib-news-section {
    background: var(--rz-panel-background-color);
    border-top-color: var(--rz-base-300);
}

.nib-news-head {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.75rem 1.5rem 1.1rem;
    border-bottom: 1px solid var(--rz-base-200, #e6eaee);
}

.nib-news-head-titles { display: flex; flex-direction: column; gap: 0.1rem; margin-right: auto; }

.nib-news-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rz-primary);
}

.nib-news-eyebrow .rzi { font-size: 0.85rem; }

.nib-news-title {
    font-family: "allroundgothic", sans-serif;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    font-weight: 600;
    margin: 0;
    color: var(--rz-text-color);
}

.nib-news-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    font-family: "allroundgothic", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--rz-primary);
    white-space: nowrap;
    flex-shrink: 0;
    transition: gap 0.2s;
}

.nib-news-all-link:hover { gap: 0.6rem; }
.nib-news-all-link .rzi { font-size: 1rem; }

/* Grid: featured links + 3 kleiner rechts */
.nib-news-grid {
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 1px;
    background: color-mix(in oklab, var(--rz-primary) 14%, transparent);
}

/* Featured artikel */
.nib-news-featured {
    position: relative;
    display: block;
    text-decoration: none !important;
    overflow: hidden;
}

.nib-news-featured-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: color-mix(in oklab, var(--rz-primary) 10%, var(--rz-base-background-color));
}

.nib-news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nib-news-featured:hover .nib-news-featured-img img {
    transform: scale(1.03);
}

.nib-news-featured-body {
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--nib-hp-card);
}

.rz-material-dark .nib-news-featured-body {
    background: var(--rz-panel-background-color);
}

.nib-news-featured-date {
    font-size: 0.72rem;
    color: var(--rz-text-secondary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.nib-news-featured-title {
    font-family: "allroundgothic", sans-serif;
    font-size: clamp(1.1rem, 2cqw, 1.45rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--rz-text-color);
    margin: 0 0 0.6rem;
}

.nib-news-featured-excerpt {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--rz-text-secondary-color);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nib-news-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rz-primary);
    text-decoration: none !important;
    transition: gap 0.2s;
}

.nib-news-featured-cta:hover { gap: 0.6rem; }
.nib-news-featured-cta .rzi { font-size: 0.95rem; }

/* Rechterkolom: kleinere artikelen */
.nib-news-aside {
    display: flex;
    flex-direction: column;
    background: var(--nib-hp-card);
    gap: 1px;
}

.rz-material-dark .nib-news-aside {
    background: var(--rz-panel-background-color);
}

.nib-news-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    text-decoration: none !important;
    background: var(--nib-hp-card);
    flex: 1;
    transition: background 0.15s;
    align-items: flex-start;
}

.rz-material-dark .nib-news-item {
    background: var(--rz-panel-background-color);
}

.nib-news-item:hover {
    background: color-mix(in oklab, var(--rz-primary) 5%, var(--nib-hp-card));
}

.rz-material-dark .nib-news-item:hover {
    background: color-mix(in oklab, var(--rz-primary) 8%, var(--rz-panel-background-color));
}

.nib-news-item-img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: color-mix(in oklab, var(--rz-primary) 12%, var(--rz-base-background-color));
}

.nib-news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nib-news-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nib-news-item-date {
    font-size: 0.68rem;
    color: var(--rz-text-secondary-color);
}

.nib-news-item-title {
    font-family: "allroundgothic", sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--rz-text-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skeletons */
.nib-news-sk-img {
    animation: nib-hero-sk-pulse 1.8s ease-in-out infinite;
    background: color-mix(in oklab, var(--rz-primary) 10%, var(--rz-base-background-color));
}

@media (max-width: 860px) {
    .nib-news-grid {
        grid-template-columns: 1fr;
    }

    .nib-news-aside {
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .nib-news-item {
        flex: 0 0 260px;
        flex-direction: column;
    }

    .nib-news-item-img {
        width: 100%;
        height: 130px;
    }
}

@media (max-width: 560px) {
    .nib-news-head {
        padding: 1.25rem 1rem 0.9rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   JOIN IMPACT — donkere impactvolle sectie voor niet-ingelogden
   ══════════════════════════════════════════════════════════════ */
.nib-join-impact {
    background: var(--nib-hp-forest);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtiele achtergrond-textuur met CSS */
.nib-join-impact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 60% 40% at 20% 50%, color-mix(in oklab, var(--rz-primary), transparent 82%) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 80% 30%, rgba(0,0,0,0.55) 0%, transparent 70%);
    pointer-events: none;
}

.nib-join-impact-inner {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0 auto;
}

.nib-join-impact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--nib-hp-gold);
    margin-bottom: 0.85rem;
}

.nib-join-impact-eyebrow .rzi { font-size: 0.88rem; }

.nib-join-impact-headline {
    font-family: "allroundgothic", sans-serif;
    font-size: clamp(1.9rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: #fff;
}

.nib-join-impact-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
    margin: 0 auto 2.5rem;
    max-width: 52ch;
}

.nib-join-impact-benefits {
    display: flex;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    list-style: none;
    padding: 0;
}

.nib-join-impact-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 130px;
}

.nib-join-impact-benefit-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nib-hp-gold);
}

.nib-join-impact-benefit-icon .rzi { font-size: 1.4rem; }

.nib-join-impact-benefit-label {
    font-family: "allroundgothic", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    text-align: center;
}

.nib-join-impact-benefit-text {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.42);
    text-align: center;
    line-height: 1.4;
}

.nib-join-impact-ctas {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nib-join-impact-proof {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.nib-join-impact-proof .rzi { font-size: 0.88rem; opacity: 0.7; }

/* Radzen button overrides in impact sectie */
.nib-join-impact-ctas .rz-button.rz-button-primary.rz-variant-filled {
    background: var(--nib-hp-gold) !important;
    border-color: var(--nib-hp-gold) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.65rem 1.75rem !important;
    box-shadow: 0 4px 18px color-mix(in oklab, var(--rz-primary), transparent 65%) !important;
}

.nib-join-impact-ctas .rz-button.rz-button-primary.rz-variant-filled:hover {
    background: color-mix(in oklab, var(--nib-hp-gold), white 12%) !important;
}

.nib-join-impact-ctas .rz-button.rz-button-light.rz-variant-text {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.95rem !important;
}

.nib-join-impact-ctas .rz-button.rz-button-light.rz-variant-text:hover {
    color: rgba(255,255,255,0.9) !important;
    background: rgba(255,255,255,0.07) !important;
}

@media (max-width: 600px) {
    .nib-join-impact {
        padding: 3rem 1.25rem;
    }

    .nib-join-impact-benefits {
        gap: 1.25rem 1.5rem;
    }

    .nib-join-impact-benefit {
        width: 110px;
    }
}

/* ══════════════════════════════════════════════════════════════
   HERO responsive
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .nib-hero {
        flex-direction: column;
        height: auto;
    }

    /* Gestapeld: 4/3 banner boven het paneel */
    .nib-hero-photo {
        aspect-ratio: 4 / 3;
        height: auto;
        width: 100%;
    }

    .nib-hero-panel {
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    .nib-hero-logo { height: 44px; }

    .nib-hero-tagline { display: none; }

    .nib-hero-entry {
        min-height: 96px;
        padding: 0.85rem 0.8rem;
    }

    .nib-hero-entry-icon .rzi { font-size: 3.4rem; }
    .nib-hero-entry-count { font-size: 1.9rem; }
    .nib-hero-entry-label { font-size: 0.74rem; }
    .nib-hero-entry-label--big { font-size: 1.15rem; }
}

/* ══════════════════════════════════════════════════════════════
   DONKER THEMA — systeem voorkeur
   Tokens (--nib-hp-parchment / --nib-hp-card) handelen
   achtergronden automatisch af. Dit blok dekt de resterende
   kleur-waarden die Radzen-variabelen gebruiken.
   ══════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {

    /* Pagina-wrapper */
    .nib-home-wrap {
        background: #111410;
    }

    /* Redactionele fotogalerij */
    .nib-eg {
        background: #111410;
    }

    /* Seizoenssectie */
    .nib-season {
        background: #111410;
    }

    .nib-season-card {
        background: #1a1d18;
        border-color: rgba(255, 255, 255, 0.06);
    }

    .nib-season-card:hover {
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    }

    /* Watermark iets zichtbaarder op donkere achtergrond */
    .nib-season::before {
        opacity: 0.06;
    }

    /* Nieuwssectie */
    .nib-news-section {
        background: #1a1d18;
        border-top-color: rgba(255, 255, 255, 0.08);
    }

    .nib-news-featured-body {
        background: #1a1d18;
    }

    .nib-news-aside {
        background: #1a1d18;
    }

    .nib-news-item {
        background: #1a1d18;
    }

    .nib-news-item:hover {
        background: color-mix(in oklab, var(--rz-primary) 10%, #1a1d18);
    }

    /* Statistieken-balk: scheidingslijnen */
    .nib-stats-sep {
        background: rgba(255, 255, 255, 0.18);
    }
}
