/**
 * WK 2026 — uniforme minimale footer (zelfde op alle WK-pagina’s).
 * Neutrale achtergrond; geen paarse site-gradient door de voet.
 */
@import url('/wk-2026-deadlines-table.css');

/* Onderaan viewport bij scroll/overscroll */
html:has(body.wk-poule-page),
html:has(body.wk-artikel-page) {
    background-color: #f1f5f9;
}

html:has(body.wk-poule-page.wk-land-national.wk-land-nl) {
    background-color: #fff7ed;
}

html:has(body.wk-poule-page.wk-land-national.wk-land-be) {
    background-color: #f1f5f9;
}

html:has(body.wk-wk-legal-page) {
    background-color: #f1f5f9;
}

/* Statische juridische WK-pagina’s (spelregels / voorwaarden) — groen op wit, geen banner */
body.wk-wk-legal-page .wk-hero-banner-only {
    display: none !important;
}

body.wk-wk-legal-page .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

body.wk-wk-legal-page .wk-wrap {
    width: 100%;
    max-width: min(100%, 42rem);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    text-align: center;
}

body.wk-wk-legal-page .wk-back-link {
    display: inline-block;
}

body.wk-wk-legal-page .wk-wk-legal-doc {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
    line-height: 1.55;
    font-size: 0.84rem;
}

body.wk-wk-legal-page .wk-wk-legal-doc :is(h1, h2, h3, p, li, .wk-wk-legal-lead, .wk-wk-legal-footnote) {
    text-align: center;
}

body.wk-wk-legal-page .wk-wk-legal-doc :is(h1, h2, h3) {
    font-family: Fredoka, system-ui, sans-serif;
    font-weight: 700;
    color: #14532d !important;
    -webkit-text-fill-color: #14532d !important;
}

body.wk-wk-legal-page .wk-wk-legal-doc h1 {
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

body.wk-wk-legal-page .wk-wk-legal-doc h2 {
    font-size: clamp(0.92rem, 2.5vw, 1rem);
    margin: 1.35rem 0 0.4rem;
}

body.wk-wk-legal-page .wk-wk-legal-doc p,
body.wk-wk-legal-page .wk-wk-legal-doc li,
body.wk-wk-legal-page .wk-wk-legal-doc .wk-wk-legal-lead,
body.wk-wk-legal-page .wk-wk-legal-doc .wk-wk-legal-footnote {
    margin: 0 0 0.65rem;
    font-size: clamp(0.78rem, 2.1vw, 0.84rem);
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
}

body.wk-wk-legal-page .wk-wk-legal-doc .wk-wk-legal-lead {
    font-size: clamp(0.8rem, 2.2vw, 0.86rem);
    margin-bottom: 1rem;
}

body.wk-wk-legal-page .wk-wk-legal-doc .wk-wk-legal-footnote {
    margin-top: 1.25rem;
    font-size: clamp(0.78rem, 2.1vw, 0.84rem);
}

body.wk-wk-legal-page .wk-wk-legal-doc ul {
    margin: 0 auto 0.85rem;
    padding: 0;
    list-style-position: inside;
    text-align: center;
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
}

body.wk-wk-legal-page .wk-wk-legal-doc li {
    margin-bottom: 0.3rem;
    text-align: center;
}

body.wk-wk-legal-page .wk-wk-legal-doc a.wk-scholen-btn-primary,
body.wk-wk-legal-page .wk-wk-legal-doc .wk-wk-legal-actions {
    display: block;
    text-align: center;
    margin-top: 2rem;
}

body.wk-wk-legal-page .wk-wk-legal-doc a.wk-scholen-btn-primary {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

body.wk-wk-legal-page .wk-wk-legal-doc :is(p, li, .wk-wk-legal-lead, .wk-wk-legal-footnote) strong,
body.wk-wk-legal-page .wk-wk-legal-doc :is(p, li) b {
    color: #14532d !important;
    -webkit-text-fill-color: #14532d !important;
    font-weight: 700;
}

body.wk-wk-legal-page .wk-wk-legal-doc a:not(.wk-scholen-btn):not(.wk-scholen-btn-primary) {
    color: #15803d !important;
    -webkit-text-fill-color: #15803d !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.wk-wk-legal-page .wk-wk-legal-doc a:not(.wk-scholen-btn):not(.wk-scholen-btn-primary):hover {
    color: #14532d !important;
    -webkit-text-fill-color: #14532d !important;
}

/* CTA onderaan spelregels / poule-voorwaarden: proza-linkkleur (#c2410c) wint anders van de oranje knop */
body.wk-wk-legal-page .wk-wk-legal-doc a.wk-scholen-btn-primary {
    color: #ffffff !important;
}

body.wk-wk-legal-page .wk-wk-legal-doc a.wk-scholen-btn-primary:hover,
body.wk-wk-legal-page .wk-wk-legal-doc a.wk-scholen-btn-primary:focus-visible {
    color: #ffffff !important;
}

/* Compacte knoppen (alleen landelijke poule met muziek) */
.wk-wk-footer-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    max-width: 42rem;
    width: 100%;
    margin: 0.65rem auto 0.35rem;
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.wk-wk-footer-tools__btn,
.wk-wk-footer-tools__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    color: #475569;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    box-sizing: border-box;
}

.wk-wk-footer-tools__btn:hover,
.wk-wk-footer-tools__link:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.wk-wk-footer-tools--hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Geen oude grote site-footer (footer-nav / site-footer) op WK-poule — alleen wk-wk-global-footer */
body.wk-poule-page nav.footer-nav,
body.wk-poule-page footer.site-footer {
    display: none !important;
}

/* Footstrip = wit vlak, groene inhoud (NL, BE, org, scholen, legal) */
.wk-scholen-footer.wk-wk-global-footer,
footer.wk-wk-global-footer {
    max-width: 42rem;
    width: 100%;
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem 1.35rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    background: #ffffff !important;
    box-sizing: border-box;
    color: #166534;
}

body.wk-scholen-page .wk-scholen-footer.wk-wk-global-footer {
    margin-top: 2rem;
}

.wk-wk-global-footer .wk-deadlines-block--footer {
    text-align: center;
}

.wk-wk-global-footer .wk-schedule-disclaimer--hero {
    margin: 0 auto 0.45rem;
    max-width: 32rem;
    padding: 0;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.45;
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
    letter-spacing: 0.03em;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0;
}

.wk-wk-global-footer .wk-schedule-disclaimer--hero strong {
    color: #14532d !important;
    -webkit-text-fill-color: #14532d !important;
}

.wk-wk-global-footer .wk-wk-footer-links {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
}

.wk-wk-global-footer .wk-wk-footer-links a {
    color: #15803d !important;
    -webkit-text-fill-color: #15803d !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    font-weight: 700;
}

.wk-wk-global-footer .wk-wk-footer-links a:hover,
.wk-wk-global-footer .wk-wk-footer-links a:focus-visible {
    color: #14532d !important;
    -webkit-text-fill-color: #14532d !important;
}

.wk-wk-global-footer .wk-scholen-footer-copy {
    margin: 0;
    font-size: 0.8rem;
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
    font-weight: 600;
}

.wk-wk-global-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    gap: 0.45rem;
}

.wk-wk-global-footer__inner > :is(p, .wk-deadlines-block--footer) {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Landelijke poule: extra marge binnen .wk-wrap */
body.wk-poule-page .wk-poule-footstrip.wk-wk-global-footer {
    margin-left: auto;
    margin-right: auto;
}

/* Landelijke poule NL/BE: footer even breed als .wk-wrap (1140px), tekst gecentreerd */
@media (min-width: 769px) {
    body.wk-poule-page.wk-land-national .wk-wk-footer-area {
        width: 100%;
        max-width: 1140px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
        align-items: stretch;
    }

    body.wk-poule-page.wk-land-national .wk-wk-footer-area footer.wk-wk-global-footer {
        max-width: 100%;
        width: 100%;
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    body.wk-poule-page.wk-land-national .wk-wk-global-footer .wk-deadlines-block--footer,
    body.wk-poule-page.wk-land-national .wk-wk-global-footer .wk-schedule-disclaimer--hero,
    body.wk-poule-page.wk-land-national .wk-wk-global-footer .wk-wk-footer-links,
    body.wk-poule-page.wk-land-national .wk-wk-global-footer .wk-scholen-footer-copy {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }

    body.wk-poule-page.wk-land-national .wk-wk-global-footer .wk-deadlines-block--footer {
        max-width: 32rem;
    }

    body.wk-poule-page.wk-land-national .wk-wk-global-footer .wk-schedule-disclaimer--hero {
        font-size: 0.74rem;
        line-height: 1.5;
    }
}

/*
 * Footer staat buiten <main>; smalle kolom laat body-gradient zien op brede schermen.
 * Full-bleed ondergrond (zelfde als footstrip) op alle poule-/artikel-pagina’s met deze include.
 */
body.wk-poule-page .wk-wk-footer-area {
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    gap: 1.5rem;
    box-sizing: border-box;
}

body.wk-poule-page .wk-wk-footer-area::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    pointer-events: none;
}

body.wk-poule-page .wk-wk-footer-area .wk-wk-footer-tools:not(.wk-wk-footer-tools--hidden) {
    margin-top: 0;
    margin-bottom: 0;
}

body.wk-poule-page .wk-wk-footer-area footer.wk-wk-global-footer {
    margin-top: 0;
    margin-bottom: 0;
    border-top: none;
}

/* Oude custom footer-blok (indien nog in HTML) */
.wk-poule-footer {
    display: none !important;
}

/* Poule met voetbal-nav: geen dubbele deel/muziek-balk (FAB rechtsonder) */
body.wk-has-football-nav.wk-poule-page .wk-wk-footer-tools:not(.wk-wk-footer-tools--hidden) {
    display: none !important;
}

@media (max-width: 768px) {
    body.wk-poule-page .wk-wk-footer-tools:not(.wk-wk-footer-tools--hidden) {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    body.wk-poule-page.uitjes-page .main-content,
    body.wk-artikel-page.uitjes-page .main-content {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Laatste laag: footer altijd wit + groen (NL/BE/org/scholen/legal) */
body.wk-poule-page .wk-wk-footer-area,
body.wk-scholen-page .wk-wk-footer-area,
body.wk-artikel-page .wk-wk-footer-area,
body.wk-wk-legal-page .wk-wk-footer-area {
    background: transparent;
}

body.wk-poule-page .wk-wk-global-footer,
body.wk-scholen-page .wk-wk-global-footer,
body.wk-artikel-page .wk-wk-global-footer,
body.wk-wk-legal-page .wk-wk-global-footer,
body.wk-pool-org .wk-wk-global-footer,
body.wk-land-national .wk-wk-global-footer,
body.wk-land-be .wk-wk-global-footer,
body.wk-land-nl .wk-wk-global-footer,
footer.wk-wk-global-footer.wk-scholen-footer {
    background: #ffffff !important;
    border-top-color: #e2e8f0 !important;
}

body.wk-poule-page .wk-wk-global-footer :is(p, a, span, strong),
body.wk-scholen-page .wk-wk-global-footer :is(p, a, span, strong),
body.wk-artikel-page .wk-wk-global-footer :is(p, a, span, strong),
body.wk-wk-legal-page .wk-wk-global-footer :is(p, a, span, strong),
footer.wk-wk-global-footer :is(p, span) {
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
}

body.wk-poule-page .wk-wk-global-footer a,
body.wk-scholen-page .wk-wk-global-footer a,
body.wk-artikel-page .wk-wk-global-footer a,
body.wk-wk-legal-page .wk-wk-global-footer a,
footer.wk-wk-global-footer a {
    color: #15803d !important;
    -webkit-text-fill-color: #15803d !important;
}

body.wk-poule-page .wk-wk-global-footer a:hover,
body.wk-scholen-page .wk-wk-global-footer a:hover,
body.wk-artikel-page .wk-wk-global-footer a:hover,
body.wk-wk-legal-page .wk-wk-global-footer a:hover,
footer.wk-wk-global-footer a:hover {
    color: #14532d !important;
    -webkit-text-fill-color: #14532d !important;
}

body.wk-poule-page .wk-wk-global-footer .wk-schedule-disclaimer--hero strong,
body.wk-scholen-page .wk-wk-global-footer .wk-schedule-disclaimer--hero strong,
footer.wk-wk-global-footer .wk-schedule-disclaimer--hero strong {
    color: #14532d !important;
    -webkit-text-fill-color: #14532d !important;
}

/* België landelijke poule: rode footer-tekst (na groene defaults hierboven) */
body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer :is(p, a, span, strong),
body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer .wk-deadlines-block--footer,
body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer .wk-deadlines-block--footer .wk-deadlines-block__title,
body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer .wk-deadlines-block--footer .wk-deadlines-table,
body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer .wk-deadlines-block--footer th,
body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer .wk-deadlines-block--footer td,
body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer .wk-schedule-disclaimer--hero {
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
}

body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer .wk-deadlines-block--footer .wk-deadlines-table thead th {
    border-bottom-color: rgba(185, 28, 28, 0.35);
}

body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer .wk-deadlines-block--footer .wk-deadlines-table tbody tr {
    border-bottom-color: rgba(185, 28, 28, 0.2);
}

body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer .wk-schedule-disclaimer--hero strong,
body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer a {
    color: #991b1b !important;
    -webkit-text-fill-color: #991b1b !important;
}

body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer a:hover,
body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-global-footer a:focus-visible {
    color: #7f1d1d !important;
    -webkit-text-fill-color: #7f1d1d !important;
}

body.wk-poule-page.wk-land-national.wk-land-be .wk-wk-footer-area::before {
    border-top-color: #fecaca;
}

/* FAB rechtsonder: iets lager op alle WK-pagina’s (wint van styles.css / uitjes-defaults) */
body.wk-poule-page .wk-fab-wrap.uitjes-fab-wrap,
body.wk-scholen-page .wk-fab-wrap.uitjes-fab-wrap,
body.wk-artikel-page .wk-fab-wrap.uitjes-fab-wrap,
body.wk-wk-legal-page .wk-fab-wrap.uitjes-fab-wrap,
body.wk-has-football-nav .wk-fab-wrap.uitjes-fab-wrap {
    bottom: calc(3.35rem + env(safe-area-inset-bottom, 0px)) !important;
    right: max(0.85rem, env(safe-area-inset-right, 0px)) !important;
    z-index: 9998 !important;
}

@media (min-width: 1025px) {
    body.wk-poule-page .wk-fab-wrap.uitjes-fab-wrap,
    body.wk-scholen-page .wk-fab-wrap.uitjes-fab-wrap,
    body.wk-artikel-page .wk-fab-wrap.uitjes-fab-wrap,
    body.wk-wk-legal-page .wk-fab-wrap.uitjes-fab-wrap,
    body.wk-has-football-nav .wk-fab-wrap.uitjes-fab-wrap {
        bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 1024px) {
    body.wk-poule-page .wk-fab-wrap.uitjes-fab-wrap,
    body.wk-scholen-page .wk-fab-wrap.uitjes-fab-wrap,
    body.wk-artikel-page .wk-fab-wrap.uitjes-fab-wrap,
    body.wk-wk-legal-page .wk-fab-wrap.uitjes-fab-wrap,
    body.wk-has-football-nav .wk-fab-wrap.uitjes-fab-wrap {
        bottom: calc(3.35rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Groen WK-thema op scholen/legal (poule heeft eigen regels in poule-mobile.css) */
body.wk-scholen-page .wk-fab-wrap .uitjes-share-btn,
body.wk-scholen-page .wk-fab-wrap .uitjes-back-to-top,
body.wk-artikel-page .wk-fab-wrap .uitjes-share-btn,
body.wk-artikel-page .wk-fab-wrap .uitjes-back-to-top,
body.wk-wk-legal-page .wk-fab-wrap .uitjes-share-btn,
body.wk-wk-legal-page .wk-fab-wrap .uitjes-back-to-top {
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 45%, #15803d 100%) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 6px 20px rgba(21, 128, 61, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
