/* ============================================================
   main.css: basis, layout en componenten in designtaal F.
   Bron van waarheid: sandbox-claude/design-f.md plus de drie
   goedgekeurde voorbeelden (variant-f-fris, pagina-oficina,
   pagina-guia). Flat: geen gradients, geen schaduwen, geen
   afgeronde hoeken. Kleuren uitsluitend via tokens.css.
   ============================================================ */

/* ---- Reset & basis ---------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: var(--fs-root);
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: var(--lh-body);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    font-weight: 800;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
h2[id], h3[id] { scroll-margin-top: 24px; }

p { margin: 0 0 16px; }

a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); text-decoration-thickness: 3px; }
.prose a[href^="#"] {
    color: var(--ink);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.prose a[href^="#"]:hover {
    color: var(--ink);
    text-decoration-style: dotted;
    text-decoration-thickness: 3px;
}
.prose .prose-red-cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 20px 30px;
    background: var(--red);
    color: var(--bg);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.08rem;
    line-height: 1.2;
}
.prose .prose-red-cta::before {
    content: "";
    flex: 0 0 auto;
    width: 1.4em;
    height: 1.4em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='square'%20stroke-linejoin='miter'%3E%3Crect%20x='2'%20y='5'%20width='20'%20height='14'/%3E%3Cpath%20d='M6%2010h4'/%3E%3Cpath%20d='M6%2014h6'/%3E%3Cpath%20d='M15%2010h3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='square'%20stroke-linejoin='miter'%3E%3Crect%20x='2'%20y='5'%20width='20'%20height='14'/%3E%3Cpath%20d='M6%2010h4'/%3E%3Cpath%20d='M6%2014h6'/%3E%3Cpath%20d='M15%2010h3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.prose .prose-red-cta:hover {
    background: var(--red-dark);
    color: var(--bg);
    text-decoration: none;
}

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

ul, ol { margin: 0 0 16px; padding-left: 1.25em; }
li { margin-bottom: 8px; }

img { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: var(--border-hair); margin: 40px 0; }

mark {
    background: var(--yellow);
    color: var(--ink);
    padding: 0 8px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

table { border-collapse: collapse; width: 100%; margin-bottom: 24px; }
th, td { text-align: left; padding: 13px 20px; border-bottom: var(--border-hair); }
th {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--bg-alt);
}
td { font-variant-numeric: tabular-nums; }

.skip-link {
    position: absolute;
    left: -9999px;
    background: var(--ink);
    color: var(--on-ink);
    padding: 12px 18px;
    z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Header & navigatie ------------------------------------ */

.site-header { border-bottom: var(--border-hair); background: var(--bg); }
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink);
    text-decoration: none;
}
.brand .dot { width: 16px; height: 16px; background: var(--yellow); border: 3px solid var(--red); flex: 0 0 auto; }
.brand:hover { color: var(--red); }
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 42px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
}
.menu-toggle-line {
    display: block;
    width: 24px;
    height: 3px;
    background: currentColor;
}
.menu-toggle:hover,
.menu-toggle:focus-visible,
.site-header.menu-open .menu-toggle {
    background: var(--yellow);
    outline: 0;
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 26px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:not(.language-option) {
    position: relative;
    display: inline-block;
}
.site-nav a:not(.language-option)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease-out;
}
.site-nav a:hover,
.site-nav a[aria-current] {
    color: var(--red);
}
.site-nav a:hover::after,
.site-nav a[aria-current]::after {
    transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
    .site-nav a:not(.language-option)::after { transition: none; }
}
.site-nav .language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 30px;
}
.site-nav .language-option,
.site-nav .language-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 30px;
    height: 24px;
    border: 0;
    background: transparent;
    color: var(--ink);
    line-height: 1;
    text-decoration: none;
}
.site-nav .language-option:hover {
    background: transparent;
    color: var(--ink);
    text-decoration: none;
}
.site-nav .language-current {
    background: transparent;
    color: var(--ink);
}
.site-nav .language-current::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    left: 0;
    height: 3px;
    background: var(--ink);
}
.site-nav .language-flag {
    width: 30px;
    height: 18px;
    object-fit: cover;
}

@media (max-width: 760px) {
    .site-header .container {
        align-items: center;
        flex-wrap: wrap;
        gap: 0 14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .brand {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 1.05rem;
    }
    .site-header.is-mobile-menu .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }
    .site-nav {
        flex: 0 0 100%;
        width: 100%;
        margin-top: 14px;
    }
    .site-nav ul {
        display: grid;
        gap: 0;
        padding-top: 8px;
        border-top: 2px solid var(--ink);
    }
    .site-nav li {
        border-bottom: var(--border-hair);
    }
    .site-nav a {
        display: block;
        min-height: 48px;
        padding: 14px 0;
        font-size: 1rem;
    }
    .site-nav a:hover,
    .site-nav a[aria-current] {
        text-decoration: none;
    }
    .site-nav a:not(.language-option) { display: block; }
    .site-nav a:not(.language-option)::after { content: none; }
    .site-nav a[aria-current] {
        color: var(--red);
    }
    .site-nav .language-switch {
        justify-content: flex-start;
        gap: 12px;
        margin-left: 0;
        padding: 14px 0 4px;
        border-bottom: 0;
    }
    .site-nav .language-option,
    .site-nav .language-current {
        width: 38px;
        height: 30px;
    }
    .site-nav .language-flag {
        width: 34px;
        height: 21px;
    }
    .site-header.is-mobile-menu .site-nav {
        max-height: 0;
        margin-top: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: max-height 280ms ease, margin-top 280ms ease, opacity 220ms ease, transform 220ms ease;
    }
    .site-header.is-mobile-menu.menu-open .site-nav {
        max-height: 420px;
        margin-top: 14px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* ---- Footer -------------------------------------------------- */

.site-footer { margin-top: 88px; background: var(--ink); color: var(--on-ink); }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-disclaimer { border-bottom: 1px solid var(--on-ink-line); padding: 28px 0; }
.footer-disclaimer p { font-weight: 600; max-width: 52em; margin: 0; }
.footer-main { padding: 52px 0 46px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
.footer-cols h2 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--yellow);
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 4px 0; margin: 0; font-size: 0.98rem; }
.footer-cols p { margin: 0; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin: 0 0 4px; }
.footer-meta {
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid var(--on-ink-line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--on-ink-soft);
}

@media (max-width: 960px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---- Breadcrumbs ---------------------------------------------- */

.breadcrumbs { margin: 24px 0 32px; font-size: 0.9rem; font-weight: 600; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; margin: 0; }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; background: var(--yellow); margin: 0 12px; flex: 0 0 auto; }
.breadcrumbs a { color: var(--ink); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; text-decoration-thickness: 3px; }
.breadcrumbs [aria-current] { color: var(--muted); font-weight: 400; }

@media (max-width: 760px) {
    .breadcrumbs {
        margin: 18px 0 20px;
        color: var(--muted);
        font-size: 0.82rem;
        font-weight: 500;
        line-height: 1.55;
    }
    .breadcrumbs ol {
        display: block;
    }
    .breadcrumbs li {
        display: inline;
    }
    .breadcrumbs li + li::before {
        display: inline-block;
        width: 5px;
        height: 5px;
        margin: 0 8px 2px;
        vertical-align: middle;
    }
    .breadcrumbs a,
    .breadcrumbs [aria-current] {
        color: var(--muted);
    }
    .breadcrumbs a {
        font-weight: 500;
    }
}

/* ---- Knoppen --------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 30px;
    border: 0;
    cursor: pointer;
    background: var(--red);
    color: var(--bg);
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn svg {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
}
.btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 14px 28px; }
.btn-ghost:hover { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.btn-compact { padding: 14px 24px; }

/* ---- Secties --------------------------------------------------- */

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); border-top: var(--border-hair); border-bottom: var(--border-hair); }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0; }
.section-head .more { font-weight: 600; white-space: nowrap; }
.section-head.has-sub { margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 40em; margin: 0 0 36px; }
.section-line { border-top: var(--border-hair); }
.section-h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

/* Compacte variant voor herhaalde groepen (gemeenten, comunidades, categorieën) */
.section-compact { margin: 52px 0 0; }
.section-compact h2 { font-size: 1.4rem; margin-bottom: 22px; }

@media (max-width: 560px) {
    .section { padding: var(--section-pad-sm) 0; }
}

/* ---- Hero (homepage) ------------------------------------------- */

.hero {padding: 50px 0 70px;}
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.95rem; margin: 0 0 26px; }
.hero .eyebrow::before { content: ""; width: 28px; height: 10px; background: var(--yellow); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; max-width: 17ch; margin-bottom: 26px; }
.hero .lead {font-size: 1.28rem;max-width: 37em;margin-bottom: 34px;}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .gratis { margin-top: 26px; margin-bottom: 0; font-weight: 600; display: inline-block; border-bottom: 4px solid var(--yellow); padding-bottom: 4px; }

@media (max-width: 560px) {
    .hero { padding: 52px 0 44px; }
    .hero .eyebrow { align-items: stretch; gap: 12px; }
    .hero .eyebrow::before { width: 6px; height: auto; align-self: stretch; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}

/* ---- Feitenstrip (donker) --------------------------------------- */

.strip { background: var(--ink); color: var(--bg); }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; padding: 14px 0; margin: 0; font-size: 0.95rem; font-weight: 500; }
.strip li { margin: 0; }
.strip li + li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--yellow); margin: 0 22px; vertical-align: middle; }
.strip strong { color: var(--yellow); font-weight: 700; }

@media (max-width: 560px) {
    .strip ul { flex-direction: column; gap: 10px; padding: 18px 0; }
    .strip li { display: flex; align-items: baseline; gap: 12px; }
    .strip li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; background: var(--yellow); transform: translateY(-1px); }
    .strip li + li::before { display: inline-block; margin: 0; }
}

/* ---- Kaart-tegels (taken) ---------------------------------------- */

.task-grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 22px; }
.task-card {
    border: var(--border-strong);
    padding: 34px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
}
.task-card.big { grid-row: 1 / 3; background: var(--yellow); border-color: var(--ink); justify-content: flex-end; min-height: 380px; }
.task-card .tag {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    margin-bottom: auto;
}
.task-card.big .tag { color: var(--ink); }
.task-card h3 { font-size: 1.5rem; font-weight: 800; margin: 18px 0 8px; }
.task-card.big h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.task-card p { font-size: 1.02rem; margin: 0; }
.task-card .go { margin-top: 16px; font-weight: 700; color: var(--red); }
.task-card.big .go { color: var(--ink); }
.task-card:hover { background: var(--ink); color: var(--bg); }
.task-card:hover .tag, .task-card:hover .go { color: var(--yellow); }
.task-links { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin: 26px 0 0; padding: 0; font-size: 1.05rem; }
.task-links li { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.task-links li::before { content: ""; width: 8px; height: 8px; background: var(--yellow); flex: 0 0 auto; transform: translateY(-1px); }
.task-links a { font-weight: 700; }
.task-links .org { color: var(--muted); font-weight: 500; }
.tool-row { margin: 30px 0 0; font-size: 1.08rem; }

@media (max-width: 560px) {
    .task-links li { display: block; }
    .task-links li::before { display: inline-block; margin-right: 12px; transform: none; }
    .task-links .org { white-space: nowrap; }
}

@media (max-width: 960px) {
    .task-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .task-card.big { grid-row: auto; min-height: 260px; }
}

/* ---- Begrippen: grote nummers ------------------------------------- */

.basics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 44px; }
.basics-item .num {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    display: block;
}
.basics-item h3 { font-size: 1.22rem; font-weight: 700; margin: 16px 0 10px; }
.basics-item p { margin: 0; }
.method-line { margin: 44px 0 0; max-width: 46em; font-size: 1.05rem; }

@media (max-width: 960px) {
    .basics-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Rij-lijsten (gidsen, kantoren, elke klikbare opsomming) ------- */
/* Brede variant: .guide-rows. Compacte variant (rail): .row-list.      */
/* Tweekoloms variant onder artikelen: .related-grid.                   */

.guide-rows, .row-list, .related-grid { border-top: var(--border-strong); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }

.guide-rows a, .row-list a, .related-grid a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 20px 8px 20px 0;
    border-bottom: var(--border-hair);
    text-decoration: none;
    color: var(--ink);
    transition: background 200ms ease;
}
.row-list a { gap: 16px; padding: 18px 8px 18px 0; }
.guide-rows a > span:first-child,
.row-list a > span:first-child,
.related-grid a > span:first-child { transition: transform 200ms ease; }
.guide-rows a strong, .row-list a strong, .related-grid a strong {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
}
.guide-rows a strong { font-size: 1.18rem; }
.row-list a strong { font-size: 1.02rem; }
.related-grid a strong { font-size: 1.08rem; }
.guide-rows a small, .row-list a small, .related-grid a small {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 400;
    margin-top: 4px;
}
.guide-rows a small { font-size: 0.98rem; }
.guide-rows a .arr, .row-list a .arr, .related-grid a .arr {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--red);
}
.row-list a .arr, .related-grid a .arr { font-size: 1.2rem; }
.guide-rows a:hover, .row-list a:hover, .related-grid a:hover { background: var(--yellow); color: var(--ink); }
.guide-rows a:hover small, .row-list a:hover small, .related-grid a:hover small,
.guide-rows a:hover .arr, .row-list a:hover .arr, .related-grid a:hover .arr { color: var(--ink); }
.guide-rows a:hover > span:first-child,
.row-list a:hover > span:first-child,
.related-grid a:hover > span:first-child { transform: translateX(8px); }

.rail h2, .nearby h2, .related h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 22px; }
.related .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0; }
.province-link { margin: 24px 0 0; font-weight: 600; }

@media (max-width: 960px) {
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .guide-rows a { grid-template-columns: 1fr; gap: 6px; }
    .guide-rows a .arr { display: none; }
}

/* ---- Chips (provincies, compacte navigatie) ------------------------ */

.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    border: var(--border-strong);
    padding: 10px 18px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 1rem;
}
.chip span { font-size: 0.85rem; color: var(--red); font-weight: 700; }
.chip:hover { background: var(--ink); color: var(--bg); }
.chip:hover span { color: var(--yellow); }
.chip-all { background: var(--red); border-color: var(--red); color: var(--bg); }
.chip-all:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ---- Nieuws ---------------------------------------------------------- */

.news-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.news-lead {
    position: relative;
    background: var(--yellow);
    border: var(--border-strong);
    border-color: var(--ink);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 320px;
    color: var(--ink);
}
.news-lead time, .news-item time { font-weight: 700; font-size: 0.9rem; }
.news-lead time {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: auto;
}
.news-lead h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; margin: 10px 0; }
.news-lead h3 a { color: inherit; text-decoration: none; }
.news-lead h3 a::after { content: ""; position: absolute; inset: 0; }
.news-lead p { font-size: 1.05rem; margin: 0; }
.news-lead:hover { background: var(--ink); color: var(--bg); }
.news-lead:hover time { color: var(--yellow); }
.news-lead-row.has-photo {
    display: grid;
    grid-template-columns: 6fr 6fr;
}
.news-lead-row.has-photo .news-lead { min-height: 320px; }
.news-lead-photo {
    border: var(--border-strong);
    border-color: var(--ink);
    border-left: 0;
}
.news-lead-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-side { display: flex; flex-direction: column; }
.news-item { padding: 20px 0; border-bottom: var(--border-hair); }
.news-item:first-child { padding-top: 0; }
.news-item time { color: var(--red); }
.news-item h3 { font-size: 1.12rem; font-weight: 700; margin: 4px 0 0; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--red); text-decoration: underline; }
.news-item p { margin: 6px 0 0; }

@media (max-width: 960px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-lead { min-height: 240px; }
    .news-lead-row.has-photo { grid-template-columns: 1fr; }
    .news-lead-photo { border-left: var(--border-strong); border-left-color: var(--ink); border-top: 0; aspect-ratio: var(--ratio-card); }
}

/* ---- Subpagina-kop ----------------------------------------------------- */

.page-head { margin-bottom: 44px; }
.page-head h1 { margin-bottom: 16px; }
.page-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 16px;
}
.page-head .lead, .lead { font-size: 1.28rem; max-width: 36em; }

.badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 5px 12px;
}
.badge-neutral { background: var(--border); }

/* ---- Gidskop, inhoudsopgave en direct antwoord -------------------------- */

.guide-head { margin-bottom: 44px; }
.guide-head h1 { margin-bottom: 16px; max-width: calc((100% - 64px) * 8 / 12); }
.guide-head .page-meta { margin-bottom: 32px; }
.guide-intro {
    font-size: 1.15rem;
    max-width: 46em;
    margin-bottom: 32px;
}

.toc { padding-bottom: 24px; border-bottom: var(--border-hair); }
.toc-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { display: flex; align-items: center; padding: 4px 0; margin: 0; }
.toc li::before { content: ""; width: 6px; height: 6px; background: var(--yellow); margin-right: 12px; flex: 0 0 auto; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.toc a:hover, .toc a.is-active { color: var(--red); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }

.direct-answer { background: var(--yellow); border: var(--border-strong); padding: 30px 32px; margin-bottom: 48px; }
.direct-answer .tag {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.direct-answer p { font-size: 1.08rem; max-width: 62em; margin: 0; }

/* ---- Detail-layouts: artikel + rail -------------------------------------- */

.guide-body, .office-body { display: grid; grid-template-columns: 8fr 4fr; gap: 64px; padding-bottom: 88px; align-items: start; }

/* Intro-variant: tweekoloms kop midden op een pagina, zonder eindpadding */
.guide-body.intro-split { padding-bottom: 40px; }

@media (max-width: 960px) {
    .guide-head h1 { max-width: none; }
    .guide-body, .office-body { grid-template-columns: 1fr; gap: 52px; }
    .guide-body.intro-split { gap: 22px; }
}
@media (max-width: 560px) {
    .guide-body, .office-body { padding-bottom: 60px; }
    .direct-answer { padding: 24px; }
}

/* ---- Prose (gegenereerde gids- en nieuwscontent) -------------------------- */

.prose h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); font-weight: 800; margin: 56px 0 18px; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 14px; scroll-margin-top: 24px; }
.prose p { margin-bottom: 16px; max-width: 68ch; }

/* Checklist-opsommingen: gele vierkantjes in plaats van bolletjes */
.prose ul, ul.checklist {
    list-style: none;
    margin: 30px 0 5px;
    padding: 0;
}
.prose ul > li, ul.checklist > li {padding-left: 38px;position: relative;margin-bottom: 14px;max-width: 68ch;}
.prose ul > li::before, ul.checklist > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    background: var(--yellow);
}
.prose ul ul { margin: 10px 0 0; }
.prose ul ul > li { padding-left: 22px; margin-bottom: 8px; }
.prose ul ul > li::before { width: 7px; height: 7px; background: transparent; border: 2px solid var(--yellow); top: 0.62em; }

/* Feitentabel in artikelcontent: zwart kader */
.prose table { border: var(--border-strong); }

/* ---- Stappen met grote rode nummers ---------------------------------------- */

.steps, ol.steps { list-style: none; counter-reset: step; margin: 8px 0 24px; padding: 0; border-top: var(--border-strong); }
.steps > li {
    counter-increment: step;
    position: relative;
    padding: 24px 0 24px 42px;
    margin: 0;
    border-bottom: var(--border-hair);
}
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 24px;
    width: 44px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--red);
}
.steps > li > strong, .steps strong:first-child {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}
.steps p { max-width: 60ch; }
.steps p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
    .steps > li { padding-left: 50px; }
    .steps > li::before { width: 38px; font-size: 1.25rem; }
}

/* ---- Waarschuwingsblok ------------------------------------------------------- */

.warning-box {
    border: var(--border-strong);
    border-left: 12px solid var(--yellow);
    padding: 22px 26px;
    margin: 28px 0;
    max-width: 72ch;
}
.warning-box > strong:first-child { font-family: var(--font-display); font-weight: 700; display: block; margin-bottom: 6px; }
.warning-box p { max-width: none; margin: 0; }
.warning-box p + p { margin-top: 10px; }

/* ---- Route-selector (custom paginatype guia-nie) ------------------------------ */
/* Hero direct onder de H1: drie ankerkaarten (ik-vorm) naast elkaar, elk 4 van
   de 12 kolommen; klikken scrollt naar de sectie. Werkt zonder JS.
   .route-picker blijft bestaan voor een eventuele selector binnen prose-content. */

.route-hero { margin: 34px 0 42px; }
/* Zelfde stijl als de artikel-h2's ("What a NIE is, and what it is not"). */
.route-hero-title {
    scroll-margin-top: 24px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    margin: 0 0 22px;
}
.route-hero-grid, .route-picker { display: grid; gap: 22px; }
.route-hero-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.route-picker { gap: 14px; margin: 8px 0 28px; }
/* Kaartstijl = de gele uitgelichte taakkaart van de homepage (task-card.big). */
.route-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 340px;
    border: var(--border-strong);
    padding: 34px;
    background: var(--yellow);
    color: var(--ink);
    text-decoration: none;
    transition: background 200ms ease, color 200ms ease;
}
.route-option .tag {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
}
.route-option strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    margin: 38px 0 8px;
}
.route-option p { margin: 0 0 8px; max-width: 68ch; color: var(--ink); font-size: 1.02rem; }
.route-option .route-result { font-weight: 600; margin-bottom: 0; }
.route-option .go {
    position: relative;
    margin-top: auto;
    padding-top: 36px;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 3px solid var(--ink);
    padding-bottom: 3px;
}
.route-option .go::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease-out;
}
.route-option:hover .go::after, .route-option.is-active .go::after { transform: scaleX(1); }
.route-option:hover, .route-option.is-active { background: var(--ink); color: var(--bg); }
.route-option:hover p, .route-option.is-active p { color: var(--bg); }
.route-option:hover .tag, .route-option:hover .go, .route-option:hover .route-result,
.route-option.is-active .tag, .route-option.is-active .go, .route-option.is-active .route-result { color: var(--yellow); }
.route-option:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.route-option:hover:focus-visible { outline-color: var(--red); }

/* Wizard stap 2 + 3 (alleen zichtbaar met JS, zie enhance.js) */
.route-hero.has-active .route-option { transition: background 200ms ease, color 200ms ease, opacity 200ms ease; }
.route-hero.has-active .route-option:not(.is-active) { opacity: 0.45; }
.route-hero.has-active .route-option:not(.is-active):hover { opacity: 1; }
.route-refine {
    margin-top: 34px;
}
.route-refine-question {
    margin: 0 0 22px;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    font-weight: 800;
}
.route-refine-options { display: flex; flex-direction: column; gap: 12px; }
.route-refine-option {
    width: 100%;
    padding: 18px 22px;
    background: var(--yellow);
    color: var(--ink);
    border: var(--border-strong);
    border-radius: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: var(--lh-tight);
    text-align: left;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}
.route-refine-option:hover,
.route-refine-option.is-active {
    background: var(--ink);
    color: var(--yellow);
}
.route-refine-option:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.route-refine-options.has-active .route-refine-option { transition: background 200ms ease, color 200ms ease, opacity 200ms ease; }
.route-refine-options.has-active .route-refine-option:not(.is-active) { opacity: 0.45; }
.route-refine-options.has-active .route-refine-option:not(.is-active):hover { opacity: 1; }
.route-answer {
    position: relative;
    margin-top: 18px;
    padding: 34px;
    background: var(--ink);
    color: var(--bg);
    cursor: pointer;
}
/* Stretched link: het hele antwoordblok is klikbaar */
.route-answer-link::before {
    content: "";
    position: absolute;
    inset: 0;
}
.route-answer-title {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--bg);
}
.route-answer p { margin: 0 0 18px; color: var(--bg); }
.route-answer-facts {
    margin: 0 0 22px;
}
.route-answer-facts div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    padding: 6px 0;
}
.route-answer-facts dt {
    font-weight: 600;
    color: var(--yellow);
}
.route-answer-facts dd { margin: 0; }
/* Subtiel inschuiven van wizardstap 2 en 3 */
.route-refine:not([hidden]),
.route-answer:not([hidden]) {
    animation: wizard-in 0.28s ease-out;
}
@keyframes wizard-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.route-answer-link {
    position: relative;
    display: inline-block;
    color: var(--yellow);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 3px solid var(--yellow);
    padding-bottom: 3px;
}
.route-answer-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease-out;
}
/* Bij hover blijft de link geel; alleen de onderlijn bouwt opnieuw op */
.route-answer-link:hover,
.route-answer:hover .route-answer-link { color: var(--yellow); border-bottom-color: transparent; }
.route-answer:hover .route-answer-link::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
    .route-option { transition: none; }
    .route-option .go::after { transition: none; }
}
@media (max-width: 960px) {
    .route-hero-grid { grid-template-columns: 1fr; }
    .route-option { min-height: 0; }
    .route-answer-facts div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
    .route-hero { margin: 26px 0 34px; }
    .route-option { padding: 22px 20px; }
}

/* ---- FAQ (details/summary, werkt zonder JS) ----------------------------------- */

.faq h2 { margin-bottom: 22px; }
.faq-list { border-top: var(--border-strong); }
.faq details { border-bottom: var(--border-hair); }
.faq summary {
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.08rem;
    transition: background 200ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--red);
    line-height: 1;
    transition: transform 250ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--yellow); }
.faq .faq-answer { padding: 6px 8px 22px; }
.faq .faq-answer p { max-width: 68ch; }
@media (prefers-reduced-motion: no-preference) {
    .faq details[open] .faq-answer { animation: faq-in 250ms ease; }
}
@keyframes faq-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* ---- Trámite oficial-blok (officiële CTA) --------------------------------------- */
/* Geel vlak met zwart kader en donkere kopstrip. Nooit een tweede knop ernaast.    */

.official { background: var(--yellow); border: var(--border-strong); margin: 64px 0 0; }
.official-head {
    background: var(--ink);
    color: var(--bg);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    margin: 0;
}
.official-body { padding: 30px 28px; }
.official-body h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.official-body p { max-width: 60ch; margin-bottom: 16px; }
.official-note { font-weight: 600; font-size: 0.95rem; margin: 14px 0 0; }
.official a:focus-visible, .official :focus-visible { outline: 3px solid var(--ink); }

/* Gecentreerde CTA-variant (kantoor- en provinciepagina's) */
.official-cta { width: 80%; margin: 0 auto 56px; }
.official-cta .official-body {padding: 36px 68px 32px;text-align: center;}
.official-cta .official-body h2 { font-size: 1.5rem; }
.official-cta .official-body p { max-width: 46em; margin-left: auto; margin-right: auto; }
.official-cta .btn { margin: 20px 0 14px; }

@media (max-width: 960px) {
    .official-cta { width: 100%; }
}

/* Bronnenlijst-variant (gidsen zonder centrale trámite-URL) */
.official-body ul { list-style: none; margin: 0; padding: 0; }
.official-body li,
.prose .official-body li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 14px;
    padding: 14px 0;
    margin: 0;
    border-top: 1px solid var(--on-yellow-line);
    max-width: none;
}
.official-body li::before,
.prose .official-body li::before {
    content: "";
    position: static;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='square'%20stroke-linejoin='miter'%3E%3Cpath%20d='M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71'/%3E%3Cpath%20d='M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='square'%20stroke-linejoin='miter'%3E%3Cpath%20d='M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71'/%3E%3Cpath%20d='M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71'/%3E%3C/svg%3E") center / contain no-repeat;
}
.official-body li a { grid-column: 2; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
/* Domeinnamen zijn één onbreekbaar woord (bv. sede.administracionespublicas.gob.es)
   en duwden op mobiel de artikelkolom breder dan de viewport. */
.official-body li .ext { grid-column: 2; display: block; font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }

/* ---- Ad-slot ----------------------------------------------------------------------- */
/* Neutraal en eerlijk gelabeld: nooit geel of rood, nooit knop-styling,               */
/* nooit boven het eerste antwoord of naast het Trámite oficial-blok.                  */

.ad-slot {
    border: 1px dashed var(--border);
    padding: 24px;
    margin: 52px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}
.ad-slot::before {
    content: attr(data-label);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.ad-slot-body { min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* ---- Affiliate-aanbeveling ----------------------------------------------------------- */
/* Bewust neutraal en redactioneel: warm vlak met hairline, geen geel/zwart kader,       */
/* geen knop. Mag nooit op de official-box of op de ad-slot lijken.                      */

.affiliate-box {
    border: var(--border-hair);
    background: var(--bg-alt);
    padding: 26px 28px;
    margin: 52px 0;
}
.affiliate-box::before {
    content: attr(data-label);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 12px;
}
.affiliate-box-body p { margin-bottom: 12px; }
.affiliate-link { font-weight: 700; }
.affiliate-disclosure {
    margin: 18px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
    border-top: var(--border-hair);
    padding-top: 12px;
}

/* ---- Kantoorpagina: feitenblok, foto, kaart ------------------------------------------- */

.office-top {display: grid;grid-template-columns: 7fr 5fr;gap: 22px;align-items: stretch;margin-bottom: 45px;}
.facts { border: var(--border-strong); background: var(--bg); margin: 0; }
.facts-row { display: grid; grid-template-columns: 160px 1fr; border-bottom: var(--border-hair); }
.facts-row:last-child { border-bottom: 0; }
.facts-row dt { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; padding: 20px 0 20px 24px; }
.facts-row dd { padding: 20px 24px; font-size: 1rem; margin: 0; }
.facts-row .note { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 6px; }

/* Foto- en kaartplaceholder: egaal vlak met cursieve omschrijving */
.photo {
    background: var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    border: var(--border-strong);
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
.map-slot { aspect-ratio: var(--ratio-map); min-height: 0; }
.photo-img { position: relative; padding: 0; font-style: normal; }
.photo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.block { margin-bottom: 52px; }
.block h2 { font-size: clamp(1.4rem, 2.5vw, 1.7rem); margin-bottom: 18px; }
.block .warning-box:last-child, .block p:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
    .office-top { grid-template-columns: 1fr; }
    .photo { aspect-ratio: 1 / 1; height: auto; }
}
@media (max-width: 560px) {
    .facts-row { grid-template-columns: 1fr; }
    .facts-row dt { padding: 16px 24px 0; }
    .facts-row dd { padding: 6px 24px 16px; }
}

/* ---- Afbeeldingsslots ------------------------------------------------------------------ */
/* Conventie: bestaat assets/img/{type}/{slug}.webp dan <img>, anders de placeholder.      */

.img-slot { background: var(--border); }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot-hero  { aspect-ratio: var(--ratio-hero); }
.img-slot-wide  { aspect-ratio: var(--ratio-wide); }
.img-slot-card  { aspect-ratio: var(--ratio-card); }
.img-slot-square { aspect-ratio: var(--ratio-square); }
.img-slot-photo { aspect-ratio: var(--ratio-photo); }
.img-credit { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---- Zoekformulier & autocomplete -------------------------------------------------------- */

.search-form { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 40px; }
.search-form input[type="search"] {
    flex: 1 1 280px;
    font: inherit;
    padding: 14px 18px;
    border: 2px solid var(--ink);
    color: var(--ink);
    background: var(--bg);
}
.search-form input[type="search"]:focus {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}

.search-form.has-autocomplete { position: relative; }
.autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    background: var(--bg);
    border: var(--border-strong);
    z-index: 30;
    max-height: 420px;
    overflow-y: auto;
}
.autocomplete li { margin: 0; border-bottom: var(--border-hair); }
.autocomplete li:last-child { border-bottom: 0; }
.autocomplete a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.autocomplete a strong { display: block; font-weight: 600; }
.autocomplete a span { font-size: 0.9rem; color: var(--muted); }
.autocomplete a:hover,
.autocomplete li.is-selected a { background: var(--yellow); }
.autocomplete a:hover span,
.autocomplete li.is-selected a span { color: var(--ink); }

/* ---- Kaart (Leaflet, lazy) ----------------------------------------------------------------- */

/* isolation: eigen stacking context, zodat Leaflets interne z-index (tot 1000)
   nooit boven pagina-elementen zoals de autocomplete uitkomt */
.map-frame { aspect-ratio: var(--ratio-card); border: var(--border-strong); background: var(--border); margin: 0 0 40px; isolation: isolate; }
.map-frame .leaflet-container { width: 100%; height: 100%; }
.map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted);
    font-style: italic;
    font-size: 0.95rem;
    padding: 20px;
    text-align: center;
    margin: 0;
}

/* Grote navigatiekaart op de kantorenhub */
.map-frame-tall { aspect-ratio: auto; height: 560px; margin: 0 0 40px; }
@media (max-width: 560px) { .map-frame-tall { height: 420px; } }

/* Homepage: kaart binnen de container, met ruimte boven de kaart */
.map-home { margin: 36px 0 0; }

/* Tellerbubbels op regio's en provincies */
.map-bubble-wrap { background: none; border: none; }
.map-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    min-width: 34px;
    height: 34px;
    padding-inline: 8px;
    background: var(--red);
    color: var(--bg);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid var(--bg);
    cursor: pointer;
    white-space: nowrap;
}

/* Contextbalk op de kaart (terug + huidige regio + paginalink) */
.map-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg);
    border: var(--border-strong);
    padding: 8px 16px;
    font-family: var(--font);
    font-size: 0.9rem;
}
.map-bar[hidden] { display: none; }
.map-bar a { font-weight: 600; text-decoration: none; }
.map-bar a:hover { text-decoration: underline; }
.map-bar strong { color: var(--ink); }

/* Kantoorpopup. Scoped op .map-frame: leaflet.css wordt lazy NA main.css geladen
   en wint anders op bronvolgorde bij gelijke specificiteit. */
.map-popup strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 1rem; }
.map-popup p { margin: 0 0 8px; font-size: 0.9rem; color: var(--muted); }
.map-frame.leaflet-container { font-family: var(--font); }
.map-frame .leaflet-popup-content-wrapper,
.map-frame .leaflet-popup-tip {
    border-radius: 0;
    box-shadow: none;
    border: var(--border-strong);
    background: var(--bg);
    color: var(--ink);
}
.map-frame .leaflet-popup-content { margin: 16px 20px; line-height: 1.5; }
.map-frame .leaflet-popup-close-button { color: var(--ink); font-family: var(--font); }
.map-frame .leaflet-tooltip { border-radius: 0; box-shadow: none; border: var(--border-strong); }

/* ---- Decision tool (details/summary, zonder JS) ----------------------------------------------- */

.decision { border-top: var(--border-strong); margin: 0 0 52px; }
.decision > details { border-bottom: var(--border-hair); }
.decision > details > summary {
    cursor: pointer;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 22px 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    transition: background 200ms ease;
}
.decision > details > summary::-webkit-details-marker { display: none; }
.decision > details > summary::after {
    content: "+";
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--red);
    line-height: 1;
    transition: transform 250ms ease;
}
.decision > details[open] > summary::after { transform: rotate(45deg); }
.decision > details > summary:hover { background: var(--yellow); }
.decision .decision-options { padding: 6px 8px 26px; }
.decision .decision-options ul { list-style: none; margin: 0 0 18px; padding: 0; }
.decision .decision-options li { padding-left: 26px; position: relative; margin-bottom: 10px; }
.decision .decision-options li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    background: var(--yellow);
}
.decision .decision-options a { font-weight: 600; }

/* ---- Utilities --------------------------------------------------------------------------------- */

.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---- NIE-routepagina: feitenblok, downloads, voorbeeld-EX-15, checklists, sticky ----
   Alles hieronder hoort bij het paginatype guia-nie. De afvinkbare checklist en
   de sticky routebalk zijn progressive enhancement: de klassen worden pas door
   enhance.js gezet, zonder JS rendert er niets anders dan voorheen. */

.route-block { margin: 26px 0 34px; }
.route-facts .facts-row { grid-template-columns: 180px 1fr; }
.route-downloads { border: var(--border-strong); border-top: 0; padding: 20px 24px; background: var(--bg-alt); }
.route-downloads-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0px 0px 86px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
}
.route-downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
/* neutraliseer de gele prose-bullets binnen het downloadsblok */
.prose .route-downloads-list > li { padding-left: 0; margin-bottom: 0; max-width: none; }
.prose .route-downloads-list > li::before { content: none; }
.route-download {
    display: flex;
    align-items: center;
    gap: 18px;
    border: var(--border-strong);
    background: var(--bg);
    padding: 22px 24px;
    text-decoration: none;
    color: var(--ink);
    transition: background-color 200ms ease;
}
.route-download:hover { background: var(--yellow); }
.route-download-doc {
    flex: 0 0 auto;
    position: relative;
    width: 44px;
    height: 54px;
    border: var(--border-strong);
    background: var(--bg);
    color: var(--ink);
}
.route-download-doc::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 15px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 9px 0 currentColor, 0 18px 0 currentColor;
    pointer-events: none;
}
.route-download-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.route-download-title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.route-download-src { font-size: 0.85rem; color: var(--muted); }
.route-download:hover .route-download-src { color: var(--ink); }
.route-download-go {
    margin-left: auto;
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--red);
    transition: transform 200ms ease;
}
.route-download:hover .route-download-go { transform: translateY(4px); }
@media (max-width: 560px) {
    .route-facts .facts-row { grid-template-columns: 1fr; }
    .route-downloads-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .route-download, .route-download-go { transition: none; }
    .route-download:hover .route-download-go { transform: none; }
}

/* Voorbeeldformulier EX-15 (HTML-figuur, zichtbaar fictief) */
.ex15-sample { border: var(--border-strong); margin: 34px 0; }
.ex15-sample-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: var(--border-strong);
}
.ex15-sample-head strong { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; }
.ex15-sample-form { padding: 24px; background: var(--bg-alt); border-bottom: var(--border-hair); }
.ex15-sample-formtitle { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ex15-sample-section { margin: 18px 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.ex15-sample-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ex15-sample-field { border: var(--border-hair); background: var(--bg); padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.ex15-sample-field-wide { grid-column: 1 / -1; }
.ex15-sample-label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.ex15-sample-value { font-weight: 600; letter-spacing: 0.02em; }
.ex15-sample-ref { font-family: var(--font-display); font-weight: 800; color: var(--red); font-size: 0.85rem; }
.ex15-sample-notes { padding: 24px; }
.ex15-sample-notestitle { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.ex15-sample-notes ol { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: none; }
.ex15-sample-notes ol li { position: relative; padding-left: 34px; margin-bottom: 12px; max-width: 68ch; }
.ex15-sample-notes ol li::before {
    content: counter(list-item);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--red);
}
.ex15-sample-aviso { margin: 0; font-weight: 600; border-bottom: 4px solid var(--yellow); display: inline; padding-bottom: 4px; }
@media (max-width: 560px) {
    .ex15-sample-grid { grid-template-columns: 1fr; }
}

/* Documentchecklist als printbaar "papiertje": kader op --bg-alt met vaste titel.
   "Checklist" is in het Spaans en Engels hetzelfde woord, dus geen taalvariant nodig. */
.prose ul.checklist {
    background: var(--bg-alt);
    border: var(--border-strong);
    padding: 32px 36px 44px;
    margin: 32px 0 16px;
}
.prose ul.checklist::before {
    content: "Checklist";
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    border-bottom: var(--border-strong);
    padding-bottom: 14px;
    margin-bottom: 35px;
}
.prose ul.checklist[data-checklist-title]::before { content: attr(data-checklist-title); }
.prose ul.checklist > li:last-child { margin-bottom: 0; }

/* Uitlegregel direct onder de "Checklist"-titel: waarvoor de lijst dient.
   Bij een intro verhuist de scheidingsstreep van de titel naar onder de
   uitlegregel (titel -> zin -> streep -> lijst). Geen vierkantje/checkbox. */
.prose ul.checklist:has(> li.checklist-intro)::before {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 14px;
}
.prose ul.checklist > li.checklist-intro {
    padding-left: 0;
    margin: 0 0 24px;
    padding-bottom: 22px;
    border-bottom: var(--border-strong);
    color: var(--muted);
    max-width: 68ch;
}
.prose ul.checklist > li.checklist-intro::before { display: none; }

/* Afvinkbare checklist (enhance.js zet .checklist-enhanced en voegt checkboxes toe) */
.checklist-enhanced > li { cursor: pointer; }
.checklist-enhanced > li.checklist-intro { cursor: default; }
.checklist-enhanced > li::before { display: none; }
.checklist-check {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid var(--ink);
    background: var(--bg);
    cursor: pointer;
}
.checklist-check:checked { background: var(--yellow); }
.checklist-check:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.checklist-enhanced > li.is-checked { color: var(--muted); }
.checklist-enhanced > li.is-checked > strong { color: var(--muted); }
.checklist-print {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 26px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 18px;
    border: 2px solid var(--ink);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.checklist-print:hover { background: var(--yellow); }
.checklist-print:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Kale printversie: alleen de gekozen checklist, met titel via data-attribuut */
@media print {
    html[data-print-checklist] body * { visibility: hidden; }
    html[data-print-checklist] .print-target,
    html[data-print-checklist] .print-target * { visibility: visible; }
    html[data-print-checklist] .print-target {
        position: absolute;
        left: 0;
        top: 40px;
        width: 100%;
        background: none;
        border: 0;
        padding: 0;
        margin: 0;
    }
    html[data-print-checklist] .print-target::before {
        content: attr(data-print-title);
        border-bottom: 0;
        padding-bottom: 0;
        margin-bottom: 0;
        text-transform: none;
        letter-spacing: normal;
        visibility: visible;
        position: absolute;
        top: -40px;
        left: 0;
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 1.3rem;
    }
    html[data-print-checklist] .print-target .checklist-check { top: 0.28em; }
    .checklist-print, .route-sticky { display: none !important; }
}

/* Sticky route-herinnering op mobiel (door enhance.js aangemaakt na wizard-keuze) */
.route-sticky {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--ink);
    color: var(--on-ink);
    border-top: 2px solid var(--yellow);
    padding: 12px 16px;
    font-size: 0.9rem;
    align-items: center;
    gap: 12px;
}
.route-sticky strong { color: var(--yellow); font-family: var(--font-display); font-weight: 700; }
.route-sticky a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-sticky a:hover { color: var(--yellow); }
.route-sticky-close {
    background: transparent;
    border: 0;
    color: var(--on-ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
    padding: 4px 8px;
    cursor: pointer;
}
.route-sticky-close:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (max-width: 720px) {
    .route-sticky.is-visible { display: flex; }
}
