/* Mobile navigation: one compact level, with the section pages as destinations. */
@media (max-width: 900px) {
    .primary-nav .sub-menu {
        display: none !important;
    }

    .primary-nav .is-submenu-open > .sub-menu {
        display: grid !important;
        margin: .15rem 0 .45rem .7rem;
        padding: .25rem 0 .25rem .7rem;
        gap: .05rem;
        border: 0;
        border-left: 2px solid rgba(209, 40, 56, .55);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .primary-nav .menu-item-has-children {
        position: relative;
    }

    .primary-nav .menu-item-has-children > a {
        padding-right: 3.5rem;
    }

    .primary-nav .submenu-toggle {
        position: absolute;
        z-index: 2;
        top: .35rem;
        right: .3rem;
        display: grid;
        width: 40px;
        height: 40px;
        padding: 0;
        place-items: center;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 50%;
        background: rgba(255,255,255,.055);
        color: var(--white);
    }

    .primary-nav .submenu-toggle span {
        font-size: 1.3rem;
        line-height: 1;
        transition: transform .2s ease;
    }

    .primary-nav .is-submenu-open > .submenu-toggle span {
        transform: rotate(180deg);
    }

    .primary-nav .sub-menu a {
        min-height: 42px;
        padding: .55rem .75rem;
        color: var(--hunter-silver);
        font-size: .92rem;
        white-space: normal;
    }

    .primary-nav {
        padding: .55rem;
    }

    .primary-nav > ul {
        display: grid;
        gap: .15rem;
    }

    .primary-nav > ul > li > a {
        display: flex;
        min-height: 48px;
        padding: .78rem .9rem;
        align-items: center;
        justify-content: space-between;
        border-radius: .85rem;
        font-size: 1rem;
        font-weight: 650;
        letter-spacing: -.02em;
    }

    .primary-nav > ul > li > a::after {
        content: "→";
        position: static;
        display: inline;
        width: auto;
        height: auto;
        margin-left: 1rem;
        background: none;
        color: var(--hunter-silver);
        opacity: .65;
    }

    .primary-nav > ul > .current-menu-item > a,
    .primary-nav > ul > .current-menu-ancestor > a {
        background: rgba(209, 40, 56, .14);
        color: var(--white);
    }
}

@media (min-width: 901px) {
    .submenu-toggle {
        display: none;
    }
}

@media (max-width: 520px) {
    .header-cta {
        display: none;
    }
}
