/* Compact IOR public navigation header. Loaded after legacy public shell rules. */

.site-header--navigation {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(11, 40, 95, 0.1);
    box-shadow: 0 10px 30px rgba(7, 28, 66, 0.075);
    backdrop-filter: blur(18px);
}

.site-header--navigation.is-scrolled {
    background: rgba(255, 255, 255, 0.992);
    box-shadow: 0 15px 42px rgba(7, 28, 66, 0.13);
}

.site-header--navigation .navbar {
    min-height: 84px;
    padding: 0;
}

.site-header--navigation .navbar > .container-xxl {
    align-items: center;
    display: flex;
    min-height: 84px;
    position: relative;
}

.site-header--navigation .header-brand-lockup {
    flex: 0 0 auto;
    margin: 0;
    min-width: 0;
    padding: 6px 0;
    width: auto;
}

.site-header--navigation .header-brand-logo {
    display: block;
    height: 58px;
    max-width: 190px;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.gateway-header-collapse {
    align-items: center;
    min-width: 0;
}

.gateway-header-menu {
    align-items: center;
    gap: 1px;
}

.site-header--navigation .gateway-header-menu .nav-link {
    color: var(--ior-ink);
    font-size: 0.735rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    padding: 0.95rem 0.48rem !important;
    white-space: nowrap;
}

.site-header--navigation .gateway-header-menu .nav-link::after {
    bottom: 0.55rem;
    left: 0.48rem;
}

.site-header--navigation .gateway-header-menu .nav-link:hover::after,
.site-header--navigation .gateway-header-menu .nav-link:focus::after {
    right: 0.48rem;
}

.gateway-header-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
    margin-left: 12px;
}

.gateway-header-quote {
    align-items: center;
    background: var(--ior-navy);
    border: 1px solid var(--ior-navy);
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 850;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.gateway-header-quote:hover,
.gateway-header-quote:focus-visible {
    background: var(--ior-green-deep);
    border-color: var(--ior-green-deep);
    color: #fff;
    outline: 0;
    transform: translateY(-1px);
}

.gateway-header-quote svg {
    height: 15px;
    width: 15px;
}

.gateway-header-toggler {
    align-items: center;
    background: var(--ior-navy);
    border: 0;
    border-radius: 4px;
    color: #fff;
    height: 42px;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    width: 42px;
}

.gateway-header-toggler svg {
    height: 21px;
    width: 21px;
}

@media (min-width: 1200px) {
    .site-header.site-header--navigation,
    .site-header.site-header--navigation .navbar {
        height: 84px !important;
        min-height: 84px !important;
    }

    .site-header.site-header--navigation .navbar > .container-xxl {
        align-items: center !important;
        display: flex !important;
        grid-template-columns: none !important;
        height: 84px !important;
        max-width: 1360px;
        min-height: 84px !important;
    }

    .site-header.site-header--navigation .navbar-brand,
    .site-header.site-header--navigation .header-brand-lockup {
        grid-column: auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

    .site-header.site-header--navigation .header-brand-logo {
        height: 58px !important;
        max-width: 190px !important;
        width: auto !important;
    }

    .site-header.site-header--navigation .gateway-header-collapse {
        align-items: center !important;
        align-self: center;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-basis: auto !important;
        height: auto !important;
        justify-content: flex-end;
        left: auto !important;
        margin: 0 0 0 22px !important;
        padding: 0 !important;
        position: static !important;
        right: auto !important;
        top: auto !important;
        width: auto !important;
    }

    .site-header.site-header--navigation .gateway-header-menu {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        margin: 0 0 0 auto !important;
    }
}

@media (max-width: 1199.98px) {
    .site-header--navigation .navbar > .container-xxl {
        flex-wrap: wrap;
    }

    .site-header--navigation .header-brand-logo {
        height: 54px;
        max-width: 178px;
    }

    .gateway-header-collapse {
        background: rgba(255, 255, 255, 0.995);
        border: 1px solid rgba(11, 40, 95, 0.11);
        box-shadow: 0 24px 54px rgba(7, 28, 66, 0.16);
        left: 12px;
        max-height: calc(100vh - 104px);
        overflow-y: auto;
        padding: 16px;
        position: absolute;
        right: 12px;
        top: calc(100% - 1px);
    }

    .gateway-header-menu {
        align-items: stretch;
    }

    .site-header--navigation .gateway-header-menu .nav-link {
        border-bottom: 1px solid rgba(11, 40, 95, 0.08);
        font-size: 0.82rem;
        padding: 0.82rem 0.3rem !important;
    }

    .site-header--navigation .gateway-header-menu .nav-link::after {
        display: none;
    }

    .gateway-header-actions {
        justify-content: space-between;
        margin: 16px 0 0;
    }
}

@media (max-width: 767.98px) {
    .site-header--navigation .navbar,
    .site-header--navigation .navbar > .container-xxl {
        min-height: 72px;
    }

    .site-header--navigation .header-brand-logo {
        height: 46px;
        max-width: 155px;
    }

    .gateway-header-collapse {
        left: 8px;
        right: 8px;
    }

    .gateway-header-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .gateway-header-quote {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 430px) {
    .site-header--navigation .header-brand-logo {
        height: 42px;
        max-width: 138px;
    }

    .gateway-header-actions {
        grid-template-columns: 1fr;
    }

    .gateway-header-actions .language-toggle-group {
        justify-self: start;
    }
}
