/* A restrained header that uses the same mint, slate and white palette as the site. */
body {
    margin-top: 78px;
}

.puzzle-navbar {
    min-height: 78px;
    padding: 0 24px;
    border: 0;
    border-bottom: 1px solid #e4eae8;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 7px 24px rgba(30, 56, 62, .07);
    backdrop-filter: blur(16px);
    z-index: 1050;
    transform: none;
    transition: none;
}

.puzzle-navbar::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #70d5d8, #5bcf9c 55%, #70d5d8);
    content: "";
}

.puzzle-navbar .puzzle-navbar-container {
    width: 100%;
    max-width: 1400px;
    min-height: 77px;
    gap: 38px;
    padding: 0;
}

.puzzle-navbar-brand {
    align-items: flex-start;
}

.puzzle-navbar-brand img {
    width: 117px;
}

.puzzle-navbar .logo-caption {
    padding-inline-start: 3px;
    font-size: 9px;
    color: #6e8a98;
}

.puzzle-navbar .navbar-collapse {
    min-width: 0;
    gap: 25px;
}

.puzzle-navbar .puzzle-nav-links {
    justify-content: center;
    gap: 4px;
}

.puzzle-navbar .navbar-nav .nav-link {
    min-height: 77px;
    gap: 7px;
    padding: 0 .6rem;
    color: #334b52;
    font-size: 13px;
    font-weight: 700;
}

.puzzle-navbar .navbar-nav .nav-link::after {
    right: .6rem;
    bottom: 0;
    left: .6rem;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #55c999;
}

.puzzle-navbar .navbar-nav .dropdown-toggle::after {
    position: static;
    display: inline-block;
    width: .4em;
    height: .4em;
    margin: 0 2px 2px 0;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    border-radius: 0;
    background: none;
    opacity: .7;
    transform: rotate(45deg);
}

.puzzle-navbar .navbar-nav .dropdown-toggle:hover::after,
.puzzle-navbar .navbar-nav .dropdown-toggle:focus-visible::after {
    transform: rotate(45deg);
}

.puzzle-navbar .navbar-nav .nav-link:hover,
.puzzle-navbar .navbar-nav .nav-link:focus-visible,
.puzzle-navbar .navbar-nav .nav-link.is-current {
    color: #168867;
}

.puzzle-navbar .navbar-nav .nav-link.is-current::after {
    opacity: 1;
    transform: scaleX(1);
}

.puzzle-nav-icon,
.mobile-nav-heading {
    display: none;
}

.puzzle-navbar .puzzle-language-switcher {
    position: relative;
    margin-inline-start: 10px;
    padding-inline-start: 12px;
}

.puzzle-navbar .puzzle-language-switcher::before {
    position: absolute;
    inset-block: 27px;
    inset-inline-start: 0;
    width: 1px;
    background: #e1e8e6;
    content: "";
}

.puzzle-navbar .puzzle-language-switcher .nav-link {
    gap: 7px;
    color: #54707a;
}

.puzzle-navbar .fa-globe {
    color: #36b990;
    font-size: 15px;
}

.puzzle-navbar .auth-button {
    min-height: 43px;
    gap: 11px;
    padding: 6px 7px 6px 17px;
    border: 0;
    border-radius: 9px;
    background: #55c98f;
    box-shadow: 0 4px 12px rgba(85, 201, 143, .17);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

.puzzle-navbar .auth-button:hover,
.puzzle-navbar .auth-button:focus-visible {
    background: #36b881;
    box-shadow: 0 7px 16px rgba(54, 184, 129, .22);
}

.puzzle-auth-arrow {
    display: inline-grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, .19);
}

html[dir="ltr"] .puzzle-auth-arrow i {
    transform: rotate(180deg);
}

.puzzle-navbar .customer-menu-dropdown .auth-button {
    padding: 5px 12px 5px 5px;
}

.puzzle-account-avatar {
    display: inline-grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, .19);
}

.puzzle-account-name {
    display: inline-block;
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.puzzle-navbar .dropdown-item.is-selected {
    color: #168867;
    background: #eaf8f0;
}

.puzzle-navbar :is(a, button):focus-visible {
    outline: 3px solid rgba(63, 195, 145, .48);
    outline-offset: 3px;
}

@media (max-width: 1199px) {
    body {
        margin-top: 70px;
    }

    .puzzle-navbar {
        min-height: 70px;
        padding: 0 16px;
    }

    .puzzle-navbar .puzzle-navbar-container {
        min-height: 69px;
    }

    .puzzle-navbar-brand img {
        width: 108px;
    }

    .puzzle-navbar .navbar-toggler {
        width: 42px;
        height: 42px;
        border-radius: 9px;
        border-color: #dfe9e5;
        background: #f6faf8;
        box-shadow: none;
    }

    .puzzle-menu-lines {
        display: grid;
        justify-items: center;
        gap: 4px;
    }

    .puzzle-menu-lines span {
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: #287159;
    }

    .puzzle-menu-lines span:nth-child(2) {
        width: 13px;
    }

    .puzzle-navbar .navbar-collapse.collapse.show,
    .puzzle-navbar .navbar-collapse.collapsing {
        width: min(88vw, 370px);
        gap: 0;
        padding: 0 17px calc(env(safe-area-inset-bottom) + 22px);
        background: #fff;
    }

    .mobile-nav-heading {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: calc(env(safe-area-inset-top) + 77px);
        margin-bottom: 10px;
        padding-top: env(safe-area-inset-top);
        border-bottom: 1px solid #e6eeea;
        background: #fff;
    }

    .mobile-nav-heading img {
        width: 108px;
        height: auto;
    }

    .puzzle-navbar .mobile-nav-close {
        position: static;
        display: inline-grid;
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .puzzle-navbar .puzzle-nav-links {
        display: grid;
        gap: 2px;
    }

    .puzzle-navbar .navbar-nav .nav-link {
        justify-content: flex-start;
        min-height: 50px;
        gap: 11px;
        padding: 7px 9px;
        border-bottom: 0;
        border-radius: 9px;
        font-size: 15px;
    }

    .puzzle-nav-icon {
        display: inline-grid;
        width: 32px;
        height: 32px;
        flex: 0 0 auto;
        place-items: center;
        border-radius: 7px;
        background: #edf8f2;
        color: #26916b;
        font-size: 13px;
        text-align: center;
    }

    .puzzle-navbar .puzzle-language-switcher {
        margin: 8px 0 0;
        padding: 8px 0 0;
        border-top: 1px solid #e6eeea;
    }

    .puzzle-navbar .puzzle-language-switcher::before {
        display: none;
    }

    .puzzle-navbar .navbar-collapse .auth-button {
        justify-content: space-between;
        min-height: 48px;
        margin-top: 0;
        padding: 7px 8px 7px 16px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .puzzle-navbar,
    .puzzle-navbar .navbar-nav .nav-link,
    .puzzle-navbar .auth-button {
        transition: none !important;
    }
}
