/* Inner page sections: nieuws card grid + agenda list */
.agenda-page {
    padding: 2rem 0 4rem;
}

.agenda-page__lead {
    margin: 0 0 1.5rem;
    color: var(--home-muted, #5c5660);
    max-width: 40rem;
}

.agenda-page__split {
    display: grid;
    gap: 2.5rem;
}

/* Month calendar */
.agenda-calendar {
    margin: 0;
    min-width: 0;
}

.agenda-calendar__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agenda-calendar__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a171b;
    text-transform: capitalize;
}

.agenda-calendar__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e0d9cf;
    border-radius: 4px;
    color: #8b1e1e;
    text-decoration: none;
    background: #fff;
}

.agenda-calendar__nav:hover {
    background: #f7f3ec;
}

.agenda-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: #e0d9cf;
    border: 1px solid #e0d9cf;
    border-radius: 6px;
    overflow: hidden;
}

.agenda-calendar__dow {
    background: #8b1e1e;
    color: #fff;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.55rem 0.25rem;
}

.agenda-calendar__day {
    min-height: 6.5rem;
    background: #fff;
    padding: 0.4rem 0.45rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.agenda-calendar__day.is-outside {
    background: #f7f3ec;
    color: #9a948c;
}

.agenda-calendar__day.is-today .agenda-calendar__daynum {
    background: #8b1e1e;
    color: #fff;
}

.agenda-calendar__daynum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    align-self: flex-start;
}

.agenda-calendar__events {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.agenda-calendar__events a {
    display: block;
    padding: 0.2rem 0.35rem;
    border-radius: 3px;
    background: rgba(139, 30, 30, 0.08);
    color: #1a171b;
    text-decoration: none;
    font-size: 0.72rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agenda-calendar__events a:hover {
    background: rgba(139, 30, 30, 0.16);
    color: #8b1e1e;
}

.agenda-calendar__time {
    font-weight: 700;
    color: #8b1e1e;
    margin-right: 0.25rem;
}

.agenda-upcoming__title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    color: #1a171b;
}

.agenda-upcoming {
    min-width: 0;
}

.agenda-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 960px) {
    .agenda-page__split {
        grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.85fr);
        gap: 2rem 2.5rem;
        align-items: start;
    }

    .agenda-upcoming {
        position: sticky;
        top: 1.25rem;
        max-height: calc(100vh - 2rem);
        overflow: auto;
        padding-right: 0.25rem;
    }

    .agenda-calendar__day {
        min-height: 5.5rem;
    }

    .agenda-calendar__events a {
        font-size: 0.68rem;
    }

    .agenda-list__link {
        grid-template-columns: 72px 1fr auto;
        gap: 0.75rem;
        padding: 0.95rem 0;
    }

    .agenda-list__title {
        font-size: 1.05rem;
    }

    .agenda-list__body p {
        font-size: 0.92rem;
    }
}

@media (min-width: 960px) and (max-width: 1180px) {
    .agenda-page__split .agenda-calendar__events a {
        font-size: 0;
        line-height: 0;
        padding: 0;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 999px;
        background: #8b1e1e;
        margin: 0.08rem auto 0;
    }

    .agenda-page__split .agenda-calendar__time,
    .agenda-page__split .agenda-calendar__evtitle {
        display: none;
    }

    .agenda-page__split .agenda-calendar__events {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.18rem;
    }
}

@media (max-width: 800px) {
    .agenda-calendar__day {
        min-height: 4.75rem;
        padding: 0.3rem;
    }

    .agenda-calendar__events a {
        font-size: 0;
        line-height: 0;
        padding: 0;
        width: 0.55rem;
        height: 0.55rem;
        border-radius: 999px;
        background: #8b1e1e;
        margin: 0.1rem auto 0;
    }

    .agenda-calendar__events a:hover {
        background: #6e1717;
    }

    .agenda-calendar__time,
    .agenda-calendar__evtitle {
        display: none;
    }

    .agenda-calendar__events {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.2rem;
    }
}

@media (max-width: 560px) {
    .agenda-calendar__day {
        min-height: 3.5rem;
    }

    .agenda-calendar__title {
        font-size: 1.1rem;
    }
}

.agenda-list__item {
    border-bottom: 1px solid #e0d9cf;
}

.agenda-list__item:last-child {
    border-bottom: 0;
}

.agenda-list__link {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 0;
    text-decoration: none;
    color: inherit;
}

.agenda-list__date {
    background: #8b1e1e;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 0.65rem 0.4rem;
}

.agenda-list__day {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
}

.agenda-list__month {
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.agenda-list__year {
    display: block;
    font-size: 0.75rem;
    opacity: 0.85;
}

.agenda-list__time {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8b1e1e;
}

.agenda-list__title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    color: var(--home-ink, #1a171b);
}

.agenda-list__body p {
    margin: 0;
    color: var(--home-muted, #5c5660);
    line-height: 1.45;
}

.agenda-list__chevron {
    color: #8b1e1e;
    opacity: 0.7;
}

.agenda-list__link:hover .agenda-list__title {
    color: #8b1e1e;
}

@media (max-width: 560px) {
    .agenda-list__link {
        grid-template-columns: 72px 1fr;
    }

    .agenda-list__chevron {
        display: none;
    }
}


.nieuws-page {
    padding: 2rem 0 4rem;
}

.nieuws-page__lead {
    margin: 0 0 1.75rem;
    color: var(--home-muted, #5c5660);
    font-size: 1.05rem;
    max-width: 40rem;
}

.nieuws-page__empty {
    margin: 0;
    color: var(--home-muted, #5c5660);
}

.nieuws-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.nieuws-badge__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.nieuws-badge__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: #e8e4dc;
}

.nieuws-badge__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.nieuws-badge__link:hover .nieuws-badge__media img {
    transform: scale(1.03);
}

.nieuws-badge__chip {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 1;
    margin: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 3px;
    background: #8b1e1e;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}

.nieuws-badge__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 0 0;
}

.nieuws-badge__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--home-ink, #1a171b);
}

.nieuws-badge__link:hover .nieuws-badge__title {
    color: #8b1e1e;
}

.nieuws-badge__excerpt {
    margin: 0 0 0.85rem;
    color: var(--home-muted, #5c5660);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nieuws-badge__more {
    font-weight: 600;
    color: #8b1e1e;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nieuws-badge__link:hover .nieuws-badge__more {
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .nieuws-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nieuws-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}
