/**
 * The blog index.
 *
 * Auto-loaded by inc/enqueue.php because the filename matches the template
 * slug. The article card and the feature card themselves live in style.css
 * section 11 — both the kennisbank and the related rows use them.
 */

/* --- Hero ------------------------------------------------------------------ */

.blogHero {
    padding-block-start: var(--space7);
}

.blogHeroGrid {
    display: grid;
    gap: var(--space6);
    align-items: end;
    margin-block-start: var(--space6);
}

@media (min-width: 62rem) {
    .blogHeroGrid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: var(--space9);
    }
}

.blogHeroCopy {
    margin-block-end: 0;
    max-inline-size: none;
}

/* --- Topic chips ------------------------------------------------------------ */

.blogTopicsLabel {
    font-family: var(--fontMono);
    font-size: var(--textXs);
    letter-spacing: var(--trackingWider);
    text-transform: uppercase;
    color: var(--colorInkSubtle);
    margin-block-end: var(--space3);
}

.blogTopicsList {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space2);
    list-style: none;
}

.blogTopicsList .pill {
    text-decoration: none;
    transition:
        border-color var(--durationFast) var(--easeOut),
        color var(--durationFast) var(--easeOut);
}

.blogTopicsList .pill:hover {
    border-color: var(--colorBrandBorder);
    color: var(--colorBrand);
}

.blogTopicsCount {
    font-size: var(--textXs);
    color: var(--colorInkSubtle);
}

/* --- Grid header -------------------------------------------------------------- */

.blogGridHeader {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space3);
    margin-block-end: var(--space6);
    padding-block-end: var(--space4);
    border-block-end: 1px solid var(--colorBorder);
}

/* --- Handoff to the kennisbank -------------------------------------------------- */

.blogHandoff {
    display: grid;
    gap: var(--space7);
    align-items: start;
}

@media (min-width: 60rem) {
    .blogHandoff {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--space9);
    }
}

.blogHandoffCopy {
    display: flex;
    flex-direction: column;
    gap: var(--space3);
}

.blogHandoffActions {
    margin-block-start: var(--space2);
}

.blogHandoffList {
    display: grid;
    gap: 0;
    list-style: none;
    border: 1px solid var(--colorBorder);
    border-radius: var(--radiusLg);
    background-color: var(--colorSurface);
    overflow: hidden;
}

.blogHandoffList li + li {
    border-block-start: 1px solid var(--colorBorder);
}

.blogHandoffList a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space4);
    align-items: center;
    padding: var(--space4) var(--space5);
    color: inherit;
    text-decoration: none;
    font-size: var(--textSm);
    font-weight: var(--weightMedium);
    text-wrap: pretty;
    transition: background-color var(--durationFast) var(--easeOut);
}

.blogHandoffList a:hover {
    background-color: var(--colorSurfaceRaised);
    color: var(--colorBrand);
}

.blogHandoffList a:hover .iconTile {
    border-color: var(--colorBrandBorder);
    background-color: var(--colorBrandSoft);
    color: var(--colorBrand);
}
