/* One contrast policy for shared headers and older standalone pages. */
header.header[data-adaptive-header][data-header-tone="light"] {
    --ah-text: #101214;
    --ah-muted: #555b61;
    --ah-surface: #ffffff;
    --ah-border: rgba(16, 18, 20, .22);
    --ah-button: #f1f2f3;
}
header.header[data-adaptive-header][data-header-tone="dark"] {
    --ah-text: #ffffff;
    --ah-muted: #d0d4d8;
    --ah-surface: #171b20;
    --ah-border: rgba(255, 255, 255, .3);
    --ah-button: #30353c;
}
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] {
    background: transparent !important;
    color: var(--ah-text) !important;
}
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] > .container > nav {
    background: var(--ah-surface) !important;
    color: var(--ah-text) !important;
    transition: background-color .16s ease, color .16s ease;
    border-color: var(--ah-border) !important;
}
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] nav a,
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] .lang-switcher__link {
    color: var(--ah-text) !important;
}
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] .lang-switcher,
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] .lang-switcher__divider {
    color: var(--ah-muted) !important;
}
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] nav a:hover,
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] .lang-switcher__active {
    color: #e16b36 !important;
}
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] .btn--nav,
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] .burger {
    color: var(--ah-text) !important;
    background: var(--ah-button) !important;
    border-color: var(--ah-border) !important;
}
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header] .burger span {
    background: var(--ah-text) !important;
}
/* The expanded menu has its own dark surface, regardless of the page below. */
body header.header[data-adaptive-header] .nav__list.mobile-open {
    --ah-text: #ffffff;
    --ah-muted: #d0d4d8;
    --ah-button: #30353c;
    --ah-border: rgba(255, 255, 255, .3);
    background: #171b20 !important;
}
@media (prefers-reduced-motion: reduce) {
    body header.header[data-adaptive-header] > .container > nav { transition: none; }
}
/* At the top, preserve contrast without drawing a separate navigation panel. */
body header.header[data-adaptive-header][data-adaptive-header][data-adaptive-header][data-header-at-top="true"] > .container > nav {
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
}
