/* Hubpagina's (/laden, /kopen, /geld-en-regels, /rijden, /kopen/tweedehands). Scoped onder .evg-hub. */
.evg-hub { color: var(--char); }
.evg-hub-head { padding: 24px 0 28px; background: #fff; border-bottom: 1px solid var(--line); }
.evg-hub-head h1 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -.015em;
    margin: 6px 0 12px;
    color: var(--navy);
}
.evg-hub-kicker {
    margin: 18px 0 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #1d4ed8;
}
.evg-hub-intro { max-width: 70ch; font-size: 1.12rem; line-height: 1.6; color: #5b6478; margin: 0 0 20px; }
.evg-hub-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
.evg-hub-subnav a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: .92rem;
    color: var(--char);
    text-decoration: none;
}
.evg-hub-subnav a:hover, .evg-hub-subnav a:focus-visible { border-color: var(--blue); color: var(--blue); }
.evg-hub .evg-hub-body { padding-top: 0; padding-bottom: 0; }
.evg-hub-sec { position: relative; padding: 44px 0 48px; margin: 0; scroll-margin-top: 90px; }
.evg-hub-sec h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--navy);
    margin: 0 0 6px;
}
.evg-hub-sec h2 a { color: inherit; text-decoration: none; }
.evg-hub-sec h2 a:hover { color: var(--blue); }
.evg-hub-sec__desc { margin: 0 0 14px; color: var(--text-body); }
.evg-hub-empty { color: var(--gray); }

/* Begin hier: 3 kaarten */
.evg-hub-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.evg-hub-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.evg-hub-card:hover, .evg-hub-card:focus-visible { border-color: var(--blue); box-shadow: 0 6px 20px rgba(8, 22, 63, .08); }
.evg-hub-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.evg-hub-card picture, .evg-hub-card img { display: block; width: 100%; }
.evg-hub-card img { aspect-ratio: 16 / 10; object-fit: cover; }
.evg-hub-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.evg-hub-card__body strong { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.25; color: var(--navy); }
.evg-hub-card__body span { color: var(--text-body); font-size: .94rem; line-height: 1.5; }

/* Tools */
.evg-hub-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.evg-hub-tool {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-left: 5px solid var(--yellow);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
}
.evg-hub-tool:hover, .evg-hub-tool:focus-visible { border-color: var(--blue); border-left-color: var(--yellow); }
.evg-hub-tool strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.evg-hub-tool span { color: var(--text-body); font-size: .94rem; flex: 1; }
.evg-hub-tool em { font-style: normal; font-weight: 700; color: var(--blue); font-size: .94rem; }

/* Artikellijst */
.evg-hub-rows { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 12px; }
.evg-hub-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 2px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    align-items: baseline;
}
.evg-hub-row:last-child { border-bottom: 0; }
.evg-hub-row:hover, .evg-hub-row:focus-visible { background: var(--bg); }
.evg-hub-row strong { color: var(--navy); font-size: 1.02rem; line-height: 1.35; grid-column: 2; }
.evg-hub-row__type {
    grid-row: 1 / span 2;
    justify-self: start;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--gray);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.evg-hub-row__type--tool { background: #fff4d6; color: #7a5a00; }
.evg-hub-row__intro { grid-column: 2; color: var(--text-body); font-size: .92rem; line-height: 1.45; }

@media (max-width: 860px) {
    .evg-hub-cards { grid-template-columns: 1fr; }
    .evg-hub-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
    .evg-hub-row__type { grid-row: auto; margin-bottom: 4px; }
    .evg-hub-row strong, .evg-hub-row__intro { grid-column: 1; }
}

/* Lange lijsten inklappen */
.evg-hub-more { border-top: 1px solid var(--line); }
.evg-hub-more > summary {
    list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; font-size: .95rem;
    color: var(--blue); background: #fff;
}
.evg-hub-more > summary::-webkit-details-marker { display: none; }
.evg-hub-more > summary:hover { background: var(--bg); }
.evg-hub-more[open] > summary { display: none; }
.evg-hub-more .evg-hub-row:first-of-type { border-top: 0; }

/* Secties als volle-breedte banden (zoals de home): afwisselend licht en wit */
.evg-hub-sec::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw;
    z-index: -1; border-top: 1px solid var(--line); background: var(--page-bg);
}
.evg-hub-sec:nth-of-type(even)::before { background: #fff; }
.evg-hub-sec:first-of-type::before { border-top: 0; }
.evg-hub .evg-hub-body { position: relative; z-index: 0; isolation: isolate; }

/* Nieuwsbrief onderaan: eigen band met lucht rondom de blauwe kaart */
.evg-hub .nl { padding: 48px 0 56px; border-top: 1px solid var(--line); background: var(--page-bg); }

/* Nieuwsbriefband krijgt altijd de andere kleur dan de sectie erboven */
.evg-hub:has(.evg-hub-body > section:last-of-type:nth-of-type(odd)) .nl { background: #fff; }
.evg-hub:has(.evg-hub-body > section:last-of-type:nth-of-type(even)) .nl { background: var(--page-bg); }
