/* Header layout refinements for v1.0.2. */
.bhlt-header .bhlt-container {
    width: min(100% - 48px, 1440px);
}

.bhlt-header__inner {
    display: grid;
    grid-template-columns: minmax(164px, 1fr) auto minmax(275px, 1fr);
    min-height: 82px;
    gap: 18px;
}

.bhlt-brand {
    justify-self: start;
}

.bhlt-brand__logo {
    width: 164px;
    height: auto;
}

.bhlt-nav {
    margin-left: 0;
    justify-self: center;
}

.bhlt-nav > ul {
    gap: 3px;
}

.bhlt-nav a,
.bhlt-prediction-toggle {
    padding: 10px 9px;
    font-size: .88rem;
}

.bhlt-header__actions {
    justify-self: end;
    gap: 8px;
}

.bhlt-nav__dropdown:hover .bhlt-submenu,
.bhlt-nav__dropdown:focus-within .bhlt-submenu,
.bhlt-prediction-toggle[aria-expanded="true"] + .bhlt-submenu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

@media (max-width: 1320px) {
    .bhlt-nav {
        display: none;
    }

    .bhlt-menu-button {
        display: block;
    }

    .bhlt-desktop-cta {
        display: none;
    }

    .bhlt-header__inner {
        display: flex;
        min-height: 76px;
    }

    .bhlt-header__actions {
        justify-self: auto;
        margin-left: auto;
    }

    .bhlt-brand__logo {
        width: 160px;
    }

    .bhlt-drawer {
        display: flex;
        position: fixed;
        z-index: 300;
        top: 0;
        right: 0;
        width: min(88vw, 390px);
        height: 100dvh;
        flex-direction: column;
        background: var(--bhlt-bg2);
        border-left: 1px solid var(--bhlt-border);
        box-shadow: var(--bhlt-shadow);
        transform: translateX(105%);
        transition: transform .25s;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .bhlt-drawer.is-open {
        transform: none;
    }

    .bhlt-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 250;
        background: rgba(0,0,0,.62);
    }

    .bhlt-drawer-overlay[hidden] {
        display: none;
    }

    .bhlt-menu-open {
        overflow: hidden;
    }

    .bhlt-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px;
        border-bottom: 1px solid var(--bhlt-border);
    }

    .bhlt-drawer-close {
        width: 44px;
        height: 44px;
        border: 1px solid var(--bhlt-border);
        border-radius: 12px;
        background: var(--bhlt-surface);
        color: var(--bhlt-text);
        font-size: 1.8rem;
    }

    .bhlt-drawer nav {
        padding: 14px;
    }

    .bhlt-drawer ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .bhlt-drawer a,
    .bhlt-mobile-prediction-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 14px;
        border: 0;
        border-bottom: 1px solid var(--bhlt-border);
        background: transparent;
        color: var(--bhlt-text);
        text-align: left;
        overflow-wrap: anywhere;
    }

    .bhlt-drawer ul ul {
        padding-left: 18px;
        background: rgba(255,255,255,.025);
    }

    .bhlt-drawer__actions {
        display: grid;
        gap: 10px;
        margin-top: auto;
        padding: 20px;
    }

    .bhlt-drawer__actions .bhlt-language {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .bhlt-header .bhlt-container {
        width: min(100% - 30px, 1440px);
    }
}

@media (max-width: 380px) {
    .bhlt-header .bhlt-container {
        width: min(100% - 22px, 1440px);
    }
}
