/* Load last: only the two visible controls may intercept pointer input. */
.header,
.header.header_background {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: 0 !important;
    pointer-events: none;
}
.header .header-content,
.header .header__logo { pointer-events: none; }
.header .brand,
.header .header-menu { pointer-events: auto; }
.header::before,
.header::after { display: none !important; }
.header .header-menu,
.header .header-menu-top {
    position: relative;
    width: 56px !important;
    min-width: 56px;
    max-width: 56px;
    height: 56px;
    min-height: 56px;
    flex: 0 0 56px;
}
.header .header-menu { margin-left: auto; }
.header .header-menu-btn {
    top: 0 !important;
    right: 0;
    width: 56px !important;
    height: 56px !important;
    border-radius: 50%;
    z-index: 2;
}
.header .header-menu:not(.active) .header-menu-list {
    display: none !important;
    pointer-events: none !important;
}
.header .header-menu.active .header-menu-list { pointer-events: auto; }

/* Compact scroll state: a dark disk with the existing white SVG, no strip. */
.header.header_background .header-content {
    height: 104px !important;
    min-height: 104px !important;
    padding: 16px 30px;
    align-items: center;
}
.header.header_background .header__logo {
    width: 72px;
    height: 72px;
    margin: 0;
    flex: 0 0 72px;
}
.header.header_background .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 72px !important;
    height: 72px !important;
    padding: 8px;
    border-radius: 50%;
    background: #1a2b4f;
    transform: none !important;
    transition: none;
}
.header.header_background .brand::before { display: none !important; }
.header.header_background .brand img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    filter: none;
    transform: none;
    transition: none;
}
.header.header_background .header-menu-btn {
    background: #1a2b4f;
    box-shadow: 0 0 0 1px #ffffff24 inset;
}
.header .brand:focus-visible,
.header .header-menu-btn:focus-visible {
    outline: 2px solid #8bdfff;
    outline-offset: 4px;
}
@media (min-width: 1024px) {
    .header .header-menu.active .header-menu-list {
        display: flex !important;
        position: absolute;
        right: 0;
        left: auto;
        top: 0;
        width: max-content !important;
        max-width: calc(100vw - 170px);
        height: 56px;
        margin: 0;
        padding: 0 76px 0 24px;
        gap: clamp(10px, 1.4vw, 20px);
        overflow: visible;
        z-index: 1;
    }
    .header .header-menu.active .header-menu-list > li {
        visibility: visible;
        opacity: 1;
    }
    .header .header-menu-list > li.dropdown:has(> a[aria-expanded="true"]) > ul.header-menu-subs {
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
    }
}
@media (max-width: 1023.98px) {
    .header.header_background .header-content {
        height: 84px !important;
        min-height: 84px !important;
        padding: 12px 20px;
    }
    .header.header_background .header__logo {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }
    .header.header_background .brand {
        width: 60px !important;
        height: 60px !important;
        padding: 7px;
    }
    .header .header-menu.active .header-menu-list {
        overscroll-behavior-y: contain;
    }
}
