:root {
    --header-bar-height: 0px;
    --header-bar-font-size: 0px;
    --header-offset: 0px;
    --header-height: 90px;
}

html body.admin-bar {
    --header-offset: 32px;
    margin-top: var(--header-offset);
}

.aigm-ux section[data-header-fix] {
    padding-top: calc(var(--section-padding) + var(--header-bar-height) + var(--header-height));
}

/* Nav Menu */

.aigm-ux nav.header {
    top: calc(var(--header-bar-height) + var(--header-offset));
    height: var(--header-height);
    transition: backgroundColor .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    --gap: 0px;
    background: #fff;
    border-bottom: 2px solid #EFEFEF;
    width: 100%;
}

.aigm-ux nav.header .container {
    --gap: 24px;
}

.aigm-ux nav.header a.logo {
    height: 56px;
    user-select: none;
}

.aigm-ux nav.header a.logo img {
    height: 100%;
    object-fit: contain;
    transition: opacity .2s ease;
}

.aigm-ux nav.header a.logo img.dark {
    opacity: 0;
    position: absolute;
    top: 0;
    pointer-events: none;
}

nav.header .right {
    display: flex;
    gap: inherit;
    align-items: center;
    justify-content: end;
    flex: 1;
}

nav.header .nav-menu-items {
    --nav-item-gap: 16px;
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    gap: var(--nav-item-gap);
    font-size: .94rem;
}

nav.header .nav-menu-items .item {
    
}

nav.header .nav-menu-items .item > a,
nav.header .nav-menu-items .item > span {
    display: block;
    color: #082451;
    font-weight: 400;
    font-family: var(--font-body);
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    padding: 12px 16px;
    border-radius: 8px;
}

nav.header .nav-menu-items .item:hover > a,
nav.header .nav-menu-items .item:hover > span {
    /*text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-style: solid;
    text-underline-offset: 2px;
    text-underline-position: under;
    text-decoration-skip-ink: none;*/

    background: rgba(18, 124, 120, 0.15);
}

nav.header .nav-menu-items .item.expand {
    
}

nav.header .nav-menu-items .item.expand .submenu {
    display: none;
    position: fixed;
    width: calc(100% - (var(--container-padding) * 2));
    left: 50%;
    top: calc(var(--header-height) + var(--header-offset));
    background: #fff;
    max-width: calc(var(--container-width) - (var(--container-padding) * 2));
    transform: translateX(-50%);
    z-index: 2;
}

/* For desktop it's hover, on mobile its tap. */
@media only screen and (min-width: 1127px) {
    nav.header .nav-menu-items .item.expand:hover .submenu,
    nav.header .nav-menu-items .item.expand .submenu:hover {
        display: block;
    }

    nav.header .nav-menu-items .item.expand:hover > a i,
    nav.header .nav-menu-items .item.expand:hover > span i {
        rotate: 180deg;
    }

    nav.header .nav-menu-items .item.expand:hover .overlay {
        display: block;
    }
}

nav.header .nav-menu-items .item.expand .submenu .spacer {
    position: absolute;
    top: -24px;
    left: 0;
    width: 100%;
    height: 24px;
}

nav.header .nav-menu-items .item.expand .submenu .contents {
    width: 100%;
    padding: 24px;
}

nav.header .nav-menu-items .item.expand .overlay {
    display: none;
    position: fixed;
    top: calc(var(--header-height) + var(--header-offset));
    left: 0;
    width: 100%;
    height: calc(100% - (var(--header-height) + var(--header-offset)));
    background: rgba(29, 42, 76, 0.90);
    z-index: 1;
    pointer-events: none;
}

nav.header .nav-menu-items .item.expand > a i,
nav.header .nav-menu-items .item.expand > span i {
    margin-left: 8px;
    color: #666666;
    transform: translateY(-1px);
}

nav.header .nav-menu-items .item.icon svg {
    display: block;
    width: 18px;
    height: 18px;
    transform: scale(1.16);
}

nav.header .nav-menu-items .item.icon a {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav.header .nav-menu-items .item.mini-basket span.count {
    background: rgb(25 119 139);
    padding: 4px 6px;
    line-height: 1;
    margin: -4px 0;
    color: #fff;
    border-radius: 4px;
    font-size: 17.4px;
    font-weight: 400;
    display: block;
    font-family: var(--font-body);
}

nav.header .nav-menu-items .highlight .button {
    font-size: .94rem;
}

nav.header .submenu .big-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

nav.header .submenu .big-cards .card {
    display: flex;
    flex: 1;
    padding: 16px;
    text-decoration: none;
    height: 236px;
    min-width: 20%;
}

nav.header .submenu .big-cards .card img.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45);
}

nav.header .submenu .big-cards .card span.card-name {
    margin-top: auto;
    color: #fff;
    font-weight: 600;
    line-height: 1.28;
    font-size: var(--para-font-size);
    z-index: 2;
    width: 100%;
}

nav.header .submenu .big-cards .card:hover {
    
}

nav.header .submenu .big-cards .card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgb(0 0 0 / 55%) 25%, transparent);
    z-index: 1;
}

nav.header .submenu .big-cards .card:hover img.card-bg {
    filter: brightness(1);
}

nav.header .submenu .big-cards .card.is-primary {
    flex: 0;
    flex-basis: 220px;
    margin-right: calc(24px + 2px);
}

nav.header .submenu .big-cards .card.is-primary::before {
    position: absolute;
    content: "";
    top: 0;
    right: -26px;
    height: 100%;
    width: 2px;
    background: #EFEFEF;
    pointer-events: none;
}

nav.header .submenu .big-cards.is-issues .card:not(.is-primary) img.card-bg {
    object-fit: contain;
    background: #1D2A4C;
    padding: 24px;
}

nav.header .submenu .big-cards.is-awards .card:not(.is-primary) img.card-bg {
    object-fit: contain;
    background: #1D2A4C;
    padding: 24px;
}

nav.header .submenu .big-cards.is-awards .card .award-status-label {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    background: #fff;
    font-size: .8rem;
}

/* Global Search Banner */

.global-search-banner {
    
}

.global-search-banner .banner {
    position: fixed;
    z-index: 5;
    top: calc(var(--header-height) + var(--header-offset));
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.10);
}

.global-search-banner .banner .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-search-banner .banner input {
    display: block;
    height: 64px;
    width: 100%;
    font-family: var(--font-titles);
    font-size: 1.38rem;
    line-height: 1;
    color: #082451;
    flex: 1;
}

.global-search-banner .banner .close-button-global {
    background: #EAEDF7;
    width: 42px;
    height: 42px;
    position: relative;
    right: unset;
    top: unset;
    --padding: 12px;
    flex-shrink: 0;
    border-radius: 8px;
    margin: auto;
}

.global-search-banner .banner .close-button-global:hover {
    background: rgba(18, 124, 120, 0.15);
}

.global-search-banner .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 42, 76, 0.90);
    z-index: 4;
}

/* Mobile Menu */

nav.header .mobile-burger {
    --normal: #EAEDF7;
    --hover: rgba(18, 124, 120, 0.15);
    background: var(--normal);
    display: none;
    width: 48px;
    height: 42px;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

nav.header .mobile-burger:hover {
    background: var(--hover);
}

nav.header .mobile-burger svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: #082451;
}

nav.header .mobile-burger svg.close { display: none; }

nav.header .nav-menu-items .item i.mobile-icon {
    display: none;
}