.bambi-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: #001f2c;
    color: #fff;
    font-family: Tahoma, sans-serif;
}

.admin-bar .bambi-header {
    top: 32px;
}

.bambi-header__inner {
    display: grid;
    grid-template-columns: 25% 70% 5%;
    align-items: center;
    min-height: 63px;
    max-width: 1140px;
    margin-inline: auto;
    padding-bottom: 3px;
}

.bambi-header .bambi-header__inner a {
    color: #fff;
    text-decoration: none;
}

.bambi-header :is(a, button):focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.bambi-header__logo,
.bambi-header__facebook {
    display: grid;
    place-items: center;
}

.bambi-header__logo img {
    display: block;
    width: auto;
    height: 38px;
    max-width: 100%;
    object-fit: contain;
}

.bambi-header__facebook svg {
    width: 1.1rem;
    height: 1.7rem;
    fill: currentColor;
}

.bambi-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bambi-header__menu {
    display: flex;
    justify-content: center;
}

.bambi-header li {
    position: relative;
}

.bambi-header .bambi-header__nav a {
    display: block;
    font: 400 1.2rem/1.2 Tahoma, sans-serif;
    padding: 13px clamp(12px, 2vw, 26px);
    text-transform: uppercase;
}

.bambi-header__nav .menu-item-has-children > a {
    padding-right: 32px;
}

.bambi-header__menu > li + li::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 1.1rem;
    border-left: 1px solid #fff;
    transform: translateY(-50%);
}

.bambi-header .bambi-header__menu > li > a:hover {
    color: #b4bfc3;
}

.bambi-header .bambi-header__menu > .current-menu-item > a {
    color: #9CC9E2;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
}

.bambi-header .sub-menu {
    border: 1px solid #005477;
    background: #001f2c;
}

.bambi-header .sub-menu a {
    font-size: 1.1rem;
}

.bambi-header .bambi-header__nav .sub-menu a:is(:hover, :focus-visible),
.bambi-header .bambi-header__nav .sub-menu .current-menu-item > a {
    color: #fff;
    background: #005477;
}

.bambi-header button:is(.bambi-header__toggle, .bambi-header__submenu-toggle) {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.bambi-header button.bambi-header__toggle {
    display: none;
}

.bambi-header [hidden] {
    display: none !important;
}

.bambi-header__submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 44px;
    width: 32px;
}

.bambi-header__submenu-toggle::before {
    content: "";
    border: 5px solid transparent;
    border-bottom: 0;
    border-top-color: currentColor;
}

.bambi-header__submenu-toggle[aria-expanded="true"]::before {
    transform: rotate(180deg);
}

@media (min-width: 1025px) {
    .bambi-header.is-ready .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: max-content;
    }

    .bambi-header.is-ready .sub-menu .sub-menu {
        top: 0;
        left: 100%;
    }
}

.bambi-header .bambi-header__mobile-facebook {
    display: none;
}

@media (max-width: 1024px) {
    .bambi-header__inner {
        grid-template-columns: minmax(0, 1fr) 44px;
        min-height: 64px;
        column-gap: 12px;
        padding: 0 16px;
    }

    .bambi-header__logo {
        justify-items: start;
        width: fit-content;
        max-width: 100%;
    }

    .bambi-header__logo img {
        width: min(250px, 100%);
        height: auto;
    }

    .bambi-header__facebook {
        display: none;
    }

    .bambi-header.is-ready button.bambi-header__toggle {
        display: grid;
        width: 44px;
        height: 44px;
    }

    .bambi-header__nav {
        grid-column: 1 / -1;
        width: 100%;
    }

    .bambi-header.is-ready .bambi-header__nav {
        position: absolute;
        top: 100%;
        left: 0;
        max-height: 65vh;
        max-height: 65dvh;
        overflow: auto;
        background: #001f2c;
        border-block: 1px solid #005477;
    }

    .bambi-header__menu {
        display: block;
    }

    .bambi-header__menu > li + li::before {
        content: none;
    }

    .bambi-header .bambi-header__nav a {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 1.1rem;
        line-height: 20px;
    }

    .bambi-header .bambi-header__nav .bambi-header__menu > li > a:is(:hover, :focus-visible),
    .bambi-header .bambi-header__nav .bambi-header__menu > .current-menu-item > a,
    .bambi-header .bambi-header__nav .bambi-header__mobile-facebook:is(:hover, :focus-visible) {
        color: #fff;
        background: #005477;
        text-decoration: none;
    }

    .bambi-header .bambi-header__nav .bambi-header__menu > .current-menu-item > a {
        box-shadow: inset 3px 0 #9cc9e2;
    }

    .bambi-header .sub-menu {
        margin-left: 16px;
        border-width: 0 0 0 1px;
    }

    .bambi-header__submenu-toggle {
        width: 48px;
        height: 48px;
    }

    .bambi-header__nav .menu-item-has-children > a {
        padding-right: 56px;
    }

    .bambi-header .bambi-header__nav .bambi-header__mobile-facebook[hidden] {
        display: block !important;
        border-top: 1px solid #005477;
        text-transform: none;
    }
}

@media (max-width: 782px) {
    .admin-bar .bambi-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    .admin-bar .bambi-header {
        top: 0;
    }
}

/* Keep the desktop separators clear while retaining keyboard and touch controls. */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    .bambi-header .bambi-header__menu > .menu-item-has-children > a {
        padding-right: clamp(12px, 2vw, 26px);
    }

    .bambi-header__menu > li > .bambi-header__submenu-toggle:not(:focus-visible) {
        opacity: 0;
        pointer-events: none;
    }

    .bambi-header__menu > li > .bambi-header__submenu-toggle:focus-visible {
        background: #001f2c;
    }
}
