/* Hero met datakaart (30-11-2026): Nederland als bewegende stippenkaart.
   Breed: de boodschap links, het land rechts in de kolom.
   Smal (telefoon en tablet staand): de kaart is het scherm, de boodschap staat in de duimzone,
   de teller is het bijschrift in de zee.
   De grens smal/breed staat hier in de mediaregel en als SMAL in hero-kaart.js: wijzig ze samen.
   Motor: assets/hero-kaart.js. Data: assets/hero-kaart-data.js. */
.hk {
    --hk-blauw: #162447;
    --hk-nacht: #12152C;
    --hk-creme: #DDD4CB;
    --hk-lijn: #C8CDDC;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(180deg, var(--hk-blauw) 0%, var(--hk-nacht) 100%);
    touch-action: pan-y;
}
.hk-kaart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hk-inhoud {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding-block: 112px 72px;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
    pointer-events: none;
}
@media (min-width: 1024px) {
    .hk-inhoud { padding-left: 32px; padding-right: 32px; }
}
.hk-inhoud a { pointer-events: auto; }
.hk-tekst { position: relative; }
.hk-tekst > * { position: relative; }
.hk-kicker {
    margin: 0 0 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--hk-creme);
}
.hk-titel {
    margin: 0;
    max-width: 13ch;
    font-size: clamp(2.1rem, 5.1vw, 4.9rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.035em;
    color: #fff;
    text-wrap: balance;
    -webkit-hyphens: manual;
    hyphens: manual;
}
.hk-creme { color: var(--hk-creme); }
.hk-lede {
    margin: 34px 0 0;
    max-width: 42ch;
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
    text-wrap: initial;
}
.hk-acties { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.hk-knop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .25s ease, border-color .25s ease;
}
.hk-knop svg { width: 16px; height: 16px; flex: none; }
.hk-vol { background: var(--hk-creme); color: var(--hk-blauw); }
.hk-vol:hover { transform: translateY(-2px); }
.hk-lijn { border: 1px solid rgba(221, 212, 203, .45); color: #fff; }
.hk-lijn:hover { border-color: var(--hk-creme); }
.hk-knop:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Het bijschrift bij de kaart: een regel bron, een regel getal. De plek (--hk-lx, --hk-ly, --hk-lw) zet de motor.
   Bewust weinig: geen streep, geen derde regel, de letter van de kicker; anders wordt het naast de kop te druk. */
.hk-bijschrift {
    position: absolute;
    left: var(--hk-lx, 24px);
    top: var(--hk-ly, 120px);
    width: var(--hk-lw, 170px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    pointer-events: none;
}
.hk-bijschrift p { margin: 0; text-wrap: initial; }
.hk-bron { font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .22em; text-transform: uppercase; color: var(--hk-creme); }
.hk-regel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.hk-getal { font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #fff; }
.hk-wat { font-size: 11px; font-weight: 600; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: var(--hk-lijn); }
.hk-zonder-bijschrift .hk-bijschrift { display: none; }

/* Smal: telefoon en tablet staand. */
@media (max-width: 1099px) and (max-aspect-ratio: 11/10) {
    .hk-inhoud { justify-content: flex-end; padding-block: 24px max(28px, env(safe-area-inset-bottom, 0px)); }
    .hk-tekst::before {
        content: "";
        position: absolute;
        inset: -96px -50vw -80px;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(18, 21, 44, 0) 0, rgba(18, 21, 44, .62) 88px, rgba(18, 21, 44, .86) 150px, rgba(18, 21, 44, .95) 230px, var(--hk-nacht) 100%);
    }
    .hk-breed { display: none; }
    .hk-kicker { margin-bottom: 14px; font-size: 11px; }
    .hk-titel { max-width: none; font-size: min(7.5vw, 4.5rem); text-wrap: initial; }
    .hk-creme { display: inline-block; }
    .hk-lede { margin-top: 16px; max-width: 34em; font-size: clamp(.94rem, 2.1vw, 1.15rem); line-height: 1.55; }
    .hk-acties { margin-top: 22px; gap: 4px 10px; }
    .hk-knop { padding: 14px 13px; gap: 5px; font-size: clamp(13px, 3.5vw, 16px); }
    .hk-knop svg { width: 14px; height: 14px; }
    /* De tweede knop is hier een tekstlink naast de eerste: zo blijft de rij een regel en de kaart groot. */
    .hk-lijn {
        min-height: 48px;
        padding: 0;
        border: 0;
        border-radius: 0;
        text-decoration: underline;
        text-decoration-color: rgba(221, 212, 203, .55);
        text-decoration-thickness: 1px;
        text-underline-offset: 6px;
    }
    .hk-bijschrift { gap: 6px; }
    .hk-bron { font-size: clamp(8.5px, 2.2vw, 11px); letter-spacing: .16em; }
    .hk-getal { font-size: clamp(19px, 5.4vw, 30px); }
    .hk-wat { font-size: clamp(8.5px, 2.2vw, 11px); letter-spacing: .14em; }
}
@media (max-width: 374px) {
    .hk-vol { padding-inline: 10px; }
}
@media (max-width: 359px) {
    .hk-kicker { font-size: 10px; letter-spacing: .14em; }
    .hk-lede { font-size: .875rem; }
}
/* Liggend en laag (telefoon op zijn kant): compacte tekst naast de kaart, zonder bijschrift. */
@media (max-height: 640px) and (min-aspect-ratio: 11/10) {
    .hk-inhoud { padding-block: 72px 16px; }
    .hk-kicker { margin-bottom: 10px; font-size: 10px; }
    .hk-titel { max-width: 15ch; font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
    .hk-lede { margin-top: 12px; max-width: 36ch; font-size: 13px; line-height: 1.5; }
    .hk-breed { display: none; }
    .hk-acties { margin-top: 14px; gap: 10px; }
    .hk-knop { min-height: 44px; padding: 11px 16px; font-size: 13.5px; }
    .hk-bijschrift { display: none; }
}
@media (max-height: 360px) and (min-aspect-ratio: 11/10) {
    .hk-inhoud { padding-block: 68px 10px; }
    .hk-kicker { display: none; }
}
