/* Extra mobile links and controls never change the approved desktop navigation. */
.cbsp-menu-toggle,
.site-header .menu .cbsp-mobile-only {
    display: none;
}

.footer-bottom .disclaimer a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1000px) {
    /* Size the white header around the full logo, including the tail. */
    .site-header .container.nav {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        column-gap: 12px !important;
        row-gap: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    .site-header .nav > .brand,
    .site-header .nav > .custom-logo-link {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        height: auto !important;
    }

    .site-header .nav > .brand.cbsp-empty-brand {
        display: none !important;
    }

    .site-header .brand img,
    .site-header .custom-logo {
        display: block !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .site-header .custom-logo {
        max-width: min(250px, 100%) !important;
    }

    .site-header .nav-actions {
        grid-column: 2;
        grid-row: 1;
        flex-shrink: 0;
    }

    .site-header .cbsp-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid var(--line, #dfe7f1);
        border-radius: 999px;
        background: #fff;
        color: var(--navy, #0a1e4e);
        font: inherit;
        font-size: 13px;
        font-weight: 800;
        line-height: 1;
    }

    .cbsp-menu-icon {
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        width: 16px;
        height: 12px;
    }

    .cbsp-menu-icon span {
        display: block;
        width: 100%;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
    }

    .site-header .cbsp-menu-toggle:focus-visible,
    .site-header .menu a:focus-visible {
        outline: 3px solid #087f8c;
        outline-offset: 3px;
    }

    /* Without JavaScript the existing links remain visible and usable. */
    .site-header .menu {
        display: block !important;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--line, #dfe7f1);
    }

    .site-header .menu ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 4px 14px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .site-header .menu li {
        display: block;
        min-width: 0;
    }

    .site-header .menu .cbsp-mobile-only {
        display: block;
    }

    .site-header .menu a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 8px;
        font-size: 14px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .site-header.cbsp-menu-ready .menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: auto;
        margin-top: 0;
        padding: 14px max(16px, calc((100vw - 1180px) / 2));
        background: #fff;
        border-bottom: 1px solid var(--line, #dfe7f1);
        box-shadow: 0 12px 24px rgba(10, 30, 78, .09);
        max-height: max(120px, calc(100vh - var(--cbsp-header-clearance, 150px)));
        max-height: max(120px, calc(100dvh - var(--cbsp-header-clearance, 150px)));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .site-header.cbsp-menu-ready:not(.cbsp-menu-open) .menu {
        display: none !important;
    }
}

@media (max-width: 650px) {
    .site-header .nav-actions {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .site-header .cbsp-menu-toggle,
    .site-header .cart-btn {
        min-height: 44px;
    }
}
