#header-container,
#full-screen-header-container {
    --banner-height-admin: 0px;
    --banner-height-info: 0px;
    --banner-height-sso: 48px;
}

#header-logo img {
    max-width: 36px;
    display: block;
}

/* SSO */

#header-sso {
    height: var(--banner-height-sso);
    padding: 0 1.35rem;
    background-color: var(--wp--preset--color--black);
    display: flex;
    justify-content: center;
    align-items: center;
}

#header-sso > nav {
    max-width: var(--wp--style--global--content-size);
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#header-sso > nav > div {
    display: flex;
    gap: 0.85rem;
}

#header-sso a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.65;
    transition-property: opacity;
    transition-duration: var(--transition-duration);
    transition-timing-function: ease-in-out;
}

#header-sso a:hover {
    opacity: 1;
}

/* Banner */

#header-banner {
    height: var(--banner-height-info);
    width: 100%;
    padding: 0 1.35rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

/* Navigation */

#header-navigation {
    height: 3.5rem;
    box-sizing: border-box;
    background-color: var(--color-partials);
    padding: 0.35rem var(--wp--preset--spacing--20);
    display: flex;
    justify-content: center;
    z-index: 999;
}

.header-navigation-fixed {
    position: fixed;
    top: var(--banner-height-admin);
    left: 0;
    right: 0;
    /* stylelint-disable */
    animation: slideDown 350ms ease-in-out forwards;
    /* stylelint-enable */
}

.no-animation {
    animation: none;
}

/* stylelint-disable */
@keyframes slideDown {
    /* stylelint-enable */
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

@media (width<=600px) {
    .header-navigation-fixed {
        top: 0;
    }
}

#header-navigation-placeholder {
    display: none;
}

.header-navigation-fixed + #header-navigation-placeholder {
    display: block;
    height: 3.5rem;
}

#header-navigation-locator {
    position: absolute;
    top: calc(var(--banner-height-sso) + var(--banner-height-info));
}

#header-navigation * {
    /* stylelint-disable */
    color: white;
    /* stylelint-enable */

    text-decoration: none;
    white-space: nowrap;
}

#header-navigation > div {
    /* stylelint-disable */
    max-width: var(--wp--style--global--content-size);
    /* stylelint-enable */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* for when there is no hamburger menu */
#header-container {
    #header-toggle {
        display: none;
        visibility: hidden;
    }

    .header-nav-items {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    /* Navigation sub-menus */

    .header-nav-items > li::before {
        content: '';
        position: absolute;
        inset: 0;
        bottom: calc(-1 * 0.35rem);
    }

    .header-nav-items > li.menu-item-has-children::after {
        content: '';
        position: absolute;
        inset: 0;
        top: 50%;
        right: -1rem;
        background-color: transparent;
        border-width: 5px 4px 0;
        border-color: var(--wp--preset--color--orange) transparent transparent
            transparent;
        border-style: solid;
        height: 0;
        width: 0;
        left: auto;
        transform: translateY(-50%);
        line-height: 1;
    }

    .header-nav-items > li {
        position: relative;
        white-space: nowrap;
    }

    .header-nav-items > li ul {
        display: none;
    }

    .header-nav-items > li:hover ul {
        margin-top: 0.35rem;
        padding: calc(0.35rem / 2) 0;
        display: flex;
        flex-direction: column;
        position: absolute;
        right: 0;
        background-color: var(--color-partials);
        list-style: none;
        outline: 1px solid white;
        z-index: 999;
    }

    .header-nav-items > li ul li {
        width: 15em;
        display: block;
        position: relative;
        z-index: 0;
    }

    .header-nav-items > li > a {
        color: white;
        text-decoration: none;
        position: relative;
    }

    .header-nav-items > li ul li a {
        width: 100%;
        display: block;
        color: white;
        text-decoration: none;
        padding: 0.85em 1.35em;
        font-size: 0.9rem;
    }

    .header-nav-items > li ul li:not(:last-child) {
        margin-bottom: 0.35rem;
        position: relative;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .header-nav-items > li ul li:not(:last-child)::after {
        content: '';
        margin: 0 auto;
        width: 80%;
        height: 1px;
        position: absolute;
        bottom: calc(-1 * 0.35rem / 2);
        background-color: white;
        opacity: 0.35;
    }

    .header-nav-items > li > a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background-color: var(--wp--preset--color--orange);
        transition: width 0.3s ease-in-out;
    }

    .header-nav-items > li:hover > a::after,
    .header-nav-items > li.current-menu-item > a::after {
        width: 100%;
    }

    .header-nav-items > li ul li:hover::before {
        content: '';
        position: absolute;
        inset: 0;
        background-color: var(--wp--preset--color--orange);
        opacity: 0.5;
        z-index: -1;
    }
}

/* for when there is a hamburger menu */
#full-screen-header-container {
    /* Navigation toggle button */

    #header-toggle {
        width: 2em;
        height: 1.6em;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5em;
        justify-content: space-between;
        background-color: transparent;
        border: none;
        cursor: pointer;
    }

    #header-toggle > span {
        width: 100%;
        height: 2px;
        display: block;
        background-color: white;
        transform-origin: left;
        opacity: 1;
        transition-property: transform, opacity;
        transition-duration: 350ms;
        transition-timing-function: ease-in-out;
    }

    #header-toggle.active > span:nth-child(1) {
        transform: rotateZ(45deg);
    }

    #header-toggle.active > span:nth-child(2) {
        opacity: 0;
    }

    #header-toggle.active > span:nth-child(3) {
        transform: rotateZ(-45deg);
    }

    /* Navigation menu */

    #header-navigation #header-nav {
        display: none;
    }

    #header-navigation.active #header-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        height: calc(100vh - 3.5rem);
        background-color: var(--color-partials);
        padding: 0.85rem;
        box-sizing: border-box;
        overflow-y: scroll;
        z-index: 999;
    }

    .menu-main-nav-container {
        /* stylelint-disable */
        width: var(--wp--style--global--content-size);
        /* stylelint-enable */
    }

    #header-nav > div {
        /* stylelint-disable custom-property-pattern */
        max-width: var(--wp--style--global--content-size);
        /* stylelint-enable custom-property-pattern */
        width: 100%;
    }

    #header-nav > div > ul {
        margin: 0;
        padding: 0;
    }

    #header-nav > div > ul > li {
        padding-bottom: 0.85rem;
        border-bottom: 1px solid white;
    }

    #header-nav > div > ul li {
        margin: 0.85rem 0;
        font-size: 1.15rem;
        list-style: none;
    }

    #header-nav > div > ul li a {
        display: block;
        width: 100%;
    }
}

@media (width <=900px) {
    /* SSO */

    #header-sso {
        height: fit-content;
        padding: 0.35rem 1.35rem;
    }

    #header-sso > nav {
        flex-direction: column;
        gap: 0.35rem;
    }
}
