/* Clear, compact global navigation. Primary destinations stay visible and
   secondary editorial links live in one small menu. */
#header .gm-navbar {
    min-height: 66px;
    padding-top: .48rem;
    padding-bottom: .48rem;
}

#header .gm-navbar .navbar-nav {
    align-items: center;
    gap: .12rem;
}

#header .gm-navbar .nav-link {
    display: inline-flex;
    min-height: 38px;
    gap: .38rem;
    align-items: center;
    justify-content: center;
    padding: .5rem .68rem !important;
    border: 1px solid transparent;
    border-radius: .62rem;
    white-space: nowrap;
}

#header .gm-navbar .nav-link:hover {
    border-color: rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .055);
}

#header .gm-navbar .nav-link.active {
    border-color: rgba(53, 216, 255, .18);
    color: #eafcff !important;
    background: rgba(53, 216, 255, .105);
}

#header .gm-navbar .nav-link.active::after {
    display: none;
}

#header .gm-navbar .nav-link > i {
    font-size: .78rem;
}

.gm-more-menu {
    min-width: 175px;
    padding: .42rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: .82rem;
    background: rgba(12, 20, 34, .98);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

.gm-more-menu .dropdown-item {
    display: flex;
    gap: .65rem;
    align-items: center;
    padding: .62rem .7rem;
    border-radius: .56rem;
    color: #d9e6f5;
    font-size: .78rem;
    font-weight: 750;
}

.gm-more-menu .dropdown-item i {
    width: 1.1rem;
    color: #55dcf6;
    text-align: center;
}

.gm-more-menu .dropdown-item:hover,
.gm-more-menu .dropdown-item:focus {
    color: #fff;
    background: rgba(53, 216, 255, .09);
}

.gm-user-link {
    min-height: 42px !important;
    justify-content: flex-start !important;
    padding-top: .28rem !important;
    padding-bottom: .28rem !important;
}

.gm-user-link .gm-avatar {
    width: 30px;
    height: 30px;
}

.gm-user-link__copy,
.gm-user-link__copy strong,
.gm-user-link__copy small {
    display: block;
}

.gm-user-link__copy {
    min-width: 0;
}

.gm-user-link__copy strong {
    overflow: hidden;
    max-width: 116px;
    color: #f6fbff;
    font-size: .76rem;
    line-height: 1.05;
    text-overflow: ellipsis;
}

.gm-user-link__copy small {
    margin-top: .18rem;
    color: #70dff6;
    font-size: .57rem;
    font-weight: 800;
    line-height: 1;
}

.gm-user-link + .gm-dropdown {
    width: min(290px, calc(100vw - 2rem));
    padding: .52rem;
    border-radius: .9rem;
}

.gm-account-home {
    display: grid;
    grid-template-columns: 2.45rem minmax(0, 1fr) auto;
    gap: .68rem;
    align-items: center;
    padding: .55rem;
    border-radius: .65rem;
    color: inherit;
    text-decoration: none;
}

.gm-account-home:hover,
.gm-account-home:focus {
    color: inherit;
    background: rgba(53, 216, 255, .08);
}

.gm-account-home img {
    width: 2.45rem;
    height: 2.45rem;
    border: 2px solid rgba(53, 216, 255, .48);
    border-radius: .68rem;
    object-fit: cover;
}

.gm-account-home span,
.gm-account-home strong,
.gm-account-home small {
    display: block;
    min-width: 0;
}

.gm-account-home strong {
    overflow: hidden;
    color: var(--gm-ink, #18243a);
    font-size: .8rem;
    text-overflow: ellipsis;
}

.gm-account-home small {
    margin-top: .14rem;
    color: var(--gm-subtle, #74839a);
    font-size: .61rem;
}

.gm-account-home > i {
    color: #22b8d7;
    font-size: .74rem;
}

html[data-theme="dark"] .gm-account-home strong {
    color: #f4f8ff;
}

html[data-theme="dark"] .gm-account-home small {
    color: #899ab0;
}

@media (max-width: 1240px) and (min-width: 992px) {
    #header .container {
        max-width: 100%;
        padding-right: .85rem;
        padding-left: .85rem;
    }

    #header .gm-navbar .nav-link {
        padding-right: .5rem !important;
        padding-left: .5rem !important;
        font-size: .78rem;
    }

    .gm-user-link__copy small {
        display: none;
    }

    .gm-user-link__copy strong {
        max-width: 88px;
    }
}

@media (max-width: 991.98px) {
    #header .gm-navbar {
        min-height: 62px;
    }

    #mainNav {
        margin-top: .65rem;
        padding: .65rem;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: .85rem;
        background: rgba(8, 14, 25, .98);
        box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
    }

    #header .gm-navbar .navbar-nav {
        align-items: stretch;
        gap: .14rem;
    }

    #header .gm-navbar .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: .66rem .72rem !important;
    }

    .gm-more-menu,
    .gm-user-link + .gm-dropdown {
        width: 100%;
        margin: .12rem 0 .35rem !important;
        border-color: rgba(255, 255, 255, .08);
        background: rgba(17, 28, 45, .98);
        box-shadow: none;
    }

    .gm-user-link__copy small {
        display: block;
    }

    .gm-theme-toggle,
    .gm-search-toggle {
        width: 100% !important;
        margin: .08rem 0 0 !important;
        justify-content: flex-start !important;
        padding: .66rem .72rem !important;
    }

    .gm-theme-toggle::after {
        margin-left: .55rem;
        content: "Color theme";
        font-size: .78rem;
        font-weight: 700;
    }

    .gm-search-toggle::after {
        margin-left: .55rem;
        content: "Search";
        font-size: .78rem;
        font-weight: 700;
    }
}
