.nav-container {
    position: fixed;
    inset: 0 0 0 50%;
    overflow-x: hidden;
    margin: 0;
    padding: 3rem 0;
    border: none;
    max-height: unset;
    height: 100%;
    left: auto;
    right: 0;
    width: 100%;
    max-width: 75vw;
    display: grid;
    grid-template-rows: 5rem 1fr;
}

.nav-container .back-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-container .back-button > svg {
    margin-right: 3rem;
}

[data-current-nav-index="0"] .back-button {
    display: none;
}

.nav-container:not([open]) {
    display: none;
}

.nav-container :focus-visible {
    outline: 0.2rem solid blue;
    outline-offset: 0.2rem;
}

.nav-container::backdrop {
    backdrop-filter: blur(3px);
    /* background-color: rgb(0 0 0 / 0.25); */
}

.nav-container :where(ul, li) {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-container :where(li) svg {
    max-height: 1.5rem;
    width: auto;
}

.nav-container :where(li) svg path{
    fill: var(--color-brand-pale-blue);
}


.nav-wrap {
    display: grid;
    position: absolute;
    inset: 0;
    width: 100%;
    transition: left 250ms ease-in;
    grid-row: 2;
}

@supports selector(:has(+ *)) {

    .nav-wrap:has([data-nav-index="0"]) {
        grid-template-columns: repeat(1, 100%);
    }

    .nav-wrap:has([data-nav-index="1"]) {
        grid-template-columns: repeat(2, 100%);
    }

    .nav-wrap:has([data-nav-index="2"]) {
        grid-template-columns: repeat(3, 100%);
    }

    .nav-wrap:has([data-nav-index="3"]) {
        grid-template-columns: repeat(4, 100%);
    }

    .nav-wrap:has([data-nav-index="4"]) {
        grid-template-columns: repeat(5, 100%);
    }
}

.nav-wrap:where(:not([data-nav-index="1"])) {
    grid-template-columns: repeat(1, 100%);
}

.nav-wrap:where(:not([data-nav-index="2"])) {
    grid-template-columns: repeat(2, 100%);
}

.nav-wrap:where(:not([data-nav-index="3"])) {
    grid-template-columns: repeat(3, 100%);
}

.nav-wrap:where(:not([data-nav-index="4"])) {
    grid-template-columns: repeat(4, 100%);
}


[data-current-nav-index="1"] .nav-wrap {
    left: -100%;
}

[data-current-nav-index="2"] .nav-wrap {
    left: -200%;
}

[data-current-nav-index="3"] .nav-wrap {
    left: -300%;
}

[data-current-nav-index="4"] .nav-wrap {
    left: -400%;
}

.nav {
    position: relative;
    height: 100%;
    width: 100%;
}

[data-nav-index="0"] {
    /* background-color: rgb(255 0 0 / 0.25); */
}

[data-nav-index="1"] {
    /* background-color: rgb(0 255 0 / 0.25); */
}

[data-nav-index="2"] {
    /* background-color: rgb(0 0 255 / 0.25); */
}

.nav li {
    display: grid;
    grid-template-columns: 1fr 5rem;
    padding-left: 2rem;
}

.nav li a {
    padding-block: 1rem;
    padding-right: 2rem;

}

dialog.nav-container a.locked{
    display: grid;
    grid-template-columns: 1fr 2rem;
    align-items: center;
    gap: 2rem;
}

dialog.nav-container a.locked::after {
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    background-size: contain;
    background: url("/wp-content/themes/aana/svgs/lock-light-blue.svg") no-repeat;
    display: inline-block;
    margin-left: 0.5rem;
}





@supports selector(:has(+ *)) {
    .nav li:has(a + button) a {
        border-right: var(--color-brand-pale-blue) 0.1rem solid !important;
        padding-right: 2rem;
    }
}


.nav ul:not(.menu-top-nav-container) li {
    border: var(--color-nav-border) 0.1rem solid;
    display: grid;
    padding-right: 3rem;
    align-items: center;
    justify-content: space-between;
    min-height: 4.24rem;
}
.nav ul:not(.menu-top-nav-container) li svg + svg{
    width: 1rem;
    display: none;
}

.responsive-only .menu-top-nav-container .menu li {
    border: none !important;
}

.nav .arrow:not(.empty) {
    color: var(--color-primary-white);
    cursor: pointer;
    background-color: var(--color-brand-navy-dark);
    min-width: 8rem;
    padding-block: 1rem;
}

.nav .arrow.empty {
    cursor: default;
}

dialog.nav-container {
    background-color: var(--color-brand-navy-dark);
}

/* dialog.nav-container .nav-wrap .nav .shared.responsive-only.new-shared-nav:not(:first-of-type){
    display: none;
} */

dialog.nav-container a {
    color: #fff;
    text-indent: initial;

}

dialog .mobile-button {
    margin-block: 0.5rem !important;
    background: var(--color-brand-orange) !important;
    color: var(--color-brand-navy);
}

dialog .nav .mobile-button:first-of-type {
    margin-top: 4rem !important;
}

/* dialog.nav-container .nav ul {
    margin-left: 3rem;
} */

@supports selector(:has(+ *)) {
    dialog.nav-container span:has([data-role="close"]) {
        position: absolute;
        right: 1.5rem;
        top: -5.5rem;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-flow: column wrap;
        font-size: 1.2rem;
    }
}

dialog.nav-container span.closeButtonSpan {
    position: absolute;
    right: 1.5rem;
    top: -5.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column wrap;
    font-size: 1.2rem;
}


dialog.nav-container span.curtainCloseMobile:hover {
    cursor: pointer;
}

@supports selector(:has(+ *)) {
    dialog.nav-container span:has([data-role="close"]):hover {
        cursor: pointer;
    }
}

dialog.nav-container span [data-role="close"] {
    max-width: 2rem;

}

dialog.nav-container .nav li.mobile-button.nav-cta {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    height: fit-content;
}

dialog.nav-container .nav li.mobile-button.nav-cta:hover,
dialog.nav-container .nav li.mobile-button.nav-cta:active {
    background: var(--color-brand-pale-blue) !important;
    transition: all 250ms ease-in-out;
}

dialog.nav-container .nav li.mobile-button.nav-cta > a {
    text-align: center;
    text-decoration: none !important;
    display: inline-block;
    padding-block: 0;
}

dialog.nav-container .nav-cta.mobile-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

dialog.nav-container .nav-cta.mobile-button h2 {
    margin: 0 auto;
    color: var(--color-brand-navy);
    width: fit-content;
    text-align: center;
    font-weight: 500;
    font-size: 1.8rem;
}

dialog.nav-container .nav-cta.mobile-button .nav-svg {
    display: none;
}


@media screen and (max-width: 45em) {

    #gcBodyTag .top-nav-text{
        display: inline-block !important;
    }

    .member.grid,
    .dashboard.grid,
    .state {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-inline: 2.5rem;
    }

    .member.grid svg,
    .dashboard.grid svg,
    .state svg {
        min-height: 2rem;
    }

}
