/* Spacing for the Nieuws/Agenda overviews and news articles. */
:is(.news-overview, .agenda-overview) #links h1 { margin: 0 0 8px; padding-bottom: 12px; }
:is(.news-overview, .agenda-overview) .anoverzicht { float: none; clear: both; width: 100%; padding-top: 8px; }
:is(.news-overview, .agenda-overview) .omartikelrij {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    float: none;
    clear: both;
    width: 100%;
    margin: 0;
    padding: 24px 0;
    border-bottom: 1px solid #d7e2e5;
}
:is(.news-overview, .agenda-overview) .omartikelrij .afbeelding { float: none; width: auto; margin: 0; padding: 0; }
:is(.news-overview, .agenda-overview) .omartikelrij .afbeelding img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
:is(.news-overview, .agenda-overview) .omartikelrij .titels { float: none; width: auto; min-width: 0; }
:is(.news-overview, .agenda-overview) .omartikelrij .titels h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; float: none; width: auto; margin: 0 0 10px; padding: 0; font-size: 15px; line-height: 1.5; }
:is(.news-overview, .agenda-overview) .omartikelrij :is(.nsnieuws, .nsagenda) { float: none; display: inline-block; margin: 0; padding: 2px 7px; border-radius: 3px; font-size: 12px; line-height: 1.4; }
:is(.news-overview, .agenda-overview) .omartikelrij .titels h2 { float: none; width: auto; margin: 0 0 10px; padding: 0; font-size: 25px; line-height: 1.3; }
:is(.news-overview, .agenda-overview) .omartikelrij .titels h2 a { overflow-wrap: anywhere; }
:is(.news-overview, .agenda-overview) .omartikelrij .tekst { font-family: 'PT Sans Narrow', sans-serif; font-size: 18px; line-height: 1.55; }
:is(.news-overview, .agenda-overview) .omartikelrij .tekst:empty { display: none; }
:is(.news-overview, .agenda-overview) .omartikelrij .tekst p { margin: 0 0 12px; padding: 0; line-height: 1.55; }
.news-article > h1 { margin: 0 0 12px; padding: 0; line-height: 1.25; }
.news-article #datum { float: none; clear: both; margin: 0 0 24px; padding: 0; font-size: 15px; line-height: 1.5; }
.news-article #afbeelding { float: none; clear: both; margin: 0 0 28px; padding: 0; }
.news-article #afbeelding img { display: block; max-width: 100%; height: auto; }
.news-article-body { display: flow-root; clear: both; padding-bottom: 12px; }
.news-article .news-article-body p { margin: 0 0 20px; padding: 0; font-size: 18px; line-height: 1.65; }
.news-article .news-article-body h2, .news-article .news-article-body h3, .news-article .news-article-body h4 { margin: 28px 0 12px; line-height: 1.35; }
.news-article .news-article-body ul, .news-article .news-article-body ol { margin: 0 0 20px; padding: 0 0 0 22px; line-height: 1.65; }
.news-article .news-article-body li { margin-bottom: 8px; }
@media (max-width: 600px) {
    :is(.news-overview, .agenda-overview) .omartikelrij { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px 0; }
    .news-overview .omartikelrij .afbeelding { display: none; }
    .agenda-overview .omartikelrij { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
    .agenda-overview .omartikelrij .afbeelding { display: block; }
    .agenda-overview .omartikelrij .afbeelding img { width: 88px; height: auto; }
    :is(.news-overview, .agenda-overview) .omartikelrij .titels h2 { font-size: 24px; }
    .news-article > h1 { margin-bottom: 12px; font-size: 28px; }
    .news-article #datum { margin-bottom: 20px; }
    .news-article .news-article-body p { margin-bottom: 18px; }
}

.agenda-overview .omartikelrij.without-image { grid-template-columns: minmax(0, 1fr); }

/* Nieuws/Agenda panels shared by the home page and article pages. */
.news-home-articles {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    float: none;
    clear: both;
    width: 100%;
    margin: 24px 0;
    padding: 24px 0;
}
.news-home-articles > :is(section.links, section.rechts, section.beiden) {
    box-sizing: border-box;
    float: none;
    clear: none;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}
.news-home-articles > section.beiden { grid-column: 1 / -1; }
.news-home-articles > section > h2 { margin: 0 0 8px; padding: 0; color: #226c7f; font-size: 24px; line-height: 1.3; }
.news-home-articles :is(section.links, section.rechts, section.beiden) > aside {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 6px 14px;
    float: none;
    clear: both;
    width: 100%;
    margin: 0;
    padding: 18px 0;
    border-bottom: 1px solid #d7e2e5;
}
.news-home-articles :is(section.links, section.rechts, section.beiden) > aside:has(.image img) { grid-template-columns: 84px minmax(0, 1fr); }
.news-home-articles :is(section.links, section.rechts, section.beiden) aside .image {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    float: none;
    width: 84px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.news-home-articles :is(section.links, section.rechts, section.beiden) aside .image:not(:has(img)) { display: none; }
.news-home-articles :is(section.links, section.rechts, section.beiden) aside .image img { display: block; width: 84px; max-width: 100%; height: 56px; object-fit: cover; border-radius: 4px; }
.news-home-articles :is(section.links, section.rechts, section.beiden) > aside > p {
    grid-column: 1;
    float: none;
    clear: none;
    display: block;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 18px;
    line-height: 1.45;
}
.news-home-articles :is(section.links, section.rechts, section.beiden) > aside:has(.image img) > p { grid-column: 2; }
.news-home-articles :is(section.links, section.rechts, section.beiden) > aside > p.datum { margin: 0; padding: 0; font-size: 14px; line-height: 1.5; color: #526970; }
.news-home-articles :is(section.links, section.rechts, section.beiden) aside a { color: #226c7f; font-size: inherit; line-height: inherit; overflow-wrap: anywhere; }
.news-home-articles :is(section.links, section.rechts, section.beiden) aside a:hover { color: #195363; }
.news-home-articles > section > p.meer { float: none; width: auto; margin: 18px 0 0; padding: 0; font-size: 17px; line-height: 1.4; }
@media (max-width: 600px) {
    .news-home-articles { grid-template-columns: minmax(0, 1fr); gap: 32px; margin: 20px 0; padding: 20px 0; }
    .news-home-articles :is(section.links, section.rechts, section.beiden) > aside:has(.image img) { grid-template-columns: 72px minmax(0, 1fr); }
    .news-home-articles :is(section.links, section.rechts, section.beiden) aside .image { width: 72px; }
    .news-home-articles :is(section.links, section.rechts, section.beiden) aside .image img { width: 72px; height: 48px; }
}


/* Keep pagination separate from the theme's global nav/menu rules. */
.news-overview nav.news-pagination {
    box-sizing: border-box;
    clear: both;
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 16px 0 24px;
    background: transparent;
    color: #526970;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 16px;
    line-height: 1.4;
}
.news-overview .news-pagination p { margin: 0 0 12px; padding: 0; }
.news-overview .news-pagination ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    float: none;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
.news-overview .news-pagination li {
    display: block;
    position: static;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    cursor: auto;
}
.news-overview .news-pagination li a,
.news-overview .news-pagination li span[aria-current] {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #b8cbcf;
    border-radius: 4px;
    background: #fff;
    font: inherit;
    line-height: 1.25;
    text-decoration: none;
}
.news-overview .news-pagination li a {
    /* The legacy mobile menu sets every nav link to white with !important. */
    color: #226c7f !important;
}
.news-overview .news-pagination li a:hover,
.news-overview .news-pagination li a:focus-visible {
    background: #edf4f5;
    border-color: #226c7f;
    text-decoration: underline;
}
.news-overview .news-pagination li a:focus-visible { outline: 2px solid #226c7f; outline-offset: 2px; }
.news-overview .news-pagination li span[aria-current] { background: #226c7f; border-color: #226c7f; color: #fff; font-weight: bold; }
.news-overview .news-pagination .news-pagination-gap { padding: 0 2px; }
