/* v1.2.6 — NATIVE SITE SHELL.
 * The theme renders the real site header and real footer. This file styles only
 * the sitemap body and neutralizes page-content wrappers that contain it.
 */
body.chc-sitemap-native-site-shell {
    background: #f3f7fb !important;
}

/* Neutralize only ancestors that actually contain our unique sitemap marker. */
body.chc-sitemap-native-site-shell main:has(#chc-sitemap-body-anchor),
body.chc-sitemap-native-site-shell article:has(#chc-sitemap-body-anchor),
body.chc-sitemap-native-site-shell .entry-content:has(#chc-sitemap-body-anchor),
body.chc-sitemap-native-site-shell .page-content:has(#chc-sitemap-body-anchor),
body.chc-sitemap-native-site-shell .h-section:has(#chc-sitemap-body-anchor),
body.chc-sitemap-native-site-shell [class*="content"]:has(> #chc-sitemap-body-anchor) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

#chc-sitemap-body-anchor.chc-smap-native-page {
    box-sizing: border-box !important;
    position: relative !important;
    left: 50% !important;
    width: 100vw !important;
    max-width: none !important;
    margin: 0 0 0 -50vw !important;
    padding: 102px 18px 96px !important;
    background: #f3f7fb !important;
    color: #14243a !important;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

#chc-sitemap-body-anchor .chc-smap-outer {
    box-sizing: border-box !important;
    width: min(1240px, 100%) !important;
    margin: 0 auto !important;
    padding: 42px 34px 30px !important;
    background: #fff !important;
    border: 1px solid #d8e1e9 !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 55px rgba(20,36,58,.055) !important;
    overflow: hidden !important;
}

/* Isolate the exact approved French sitemap component from theme typography. */
#chc-sitemap-body-anchor .mcc-sitemap { font-family: inherit !important; }
#chc-sitemap-body-anchor .mcc-sitemap h1,
#chc-sitemap-body-anchor .mcc-sitemap h2,
#chc-sitemap-body-anchor .mcc-sitemap p,
#chc-sitemap-body-anchor .mcc-sitemap ul,
#chc-sitemap-body-anchor .mcc-sitemap li { font-family: inherit !important; }
#chc-sitemap-body-anchor .mcc-sitemap__hero h1 {
    color: #14243a !important;
    font-weight: 800 !important;
    letter-spacing: -.025em !important;
}
#chc-sitemap-body-anchor .mcc-sitemap__section-head h2 {
    color: #14243a !important;
    border: 0 !important;
    padding: 0 !important;
    font-weight: 800 !important;
}
#chc-sitemap-body-anchor .mcc-sitemap__section a {
    color: #263443 !important;
    text-decoration: none !important;
}
#chc-sitemap-body-anchor .mcc-sitemap__section a:hover,
#chc-sitemap-body-anchor .mcc-sitemap__section a:focus-visible {
    color: #c62828 !important;
    text-decoration: underline !important;
}

@media (max-width: 840px) {
    #chc-sitemap-body-anchor.chc-smap-native-page { padding: 42px 12px 64px !important; }
    #chc-sitemap-body-anchor .chc-smap-outer { padding: 18px 4px 8px !important; border-radius: 15px !important; }
}


/* v1.2.12 structural emergency fallback.
 * On /sitemap/ only, remove any native pre-content hero/title branch inside the
 * site header. The navigation branch is protected because ancestors containing
 * <nav> are excluded; the approved sitemap is protected by its unique anchor.
 * Chrome/Edge support :has(), so this applies before first paint.
 */
body.chc-sitemap-native-site-shell header :is(section, div):has(h1):not(:has(nav)):not(:has(#chc-sitemap-body-anchor)),
body.chc-sitemap-native-site-shell .site-header :is(section, div):has(h1):not(:has(nav)):not(:has(#chc-sitemap-body-anchor)),
body.chc-sitemap-native-site-shell .kubio-header :is(section, div):has(h1):not(:has(nav)):not(:has(#chc-sitemap-body-anchor)),
body.chc-sitemap-native-site-shell .h-header :is(section, div):has(h1):not(:has(nav)):not(:has(#chc-sitemap-body-anchor)) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}
