.top-nav {
    font-weight: 500;
    font-size: 1.4rem;
    z-index: 6;
    width: 100%;
    background: var(--color-primary-white);

    :where(ul, li) {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: inline-block;
    }

    :where(a) {
        color: var(--color-brand-navy);
    }

    .shared {
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-end;
        gap: 2rem;
        align-items: center;

        li {
            padding-inline: 2rem;
            padding-block: 1rem;
        }

        > .menu-footer-nav-container {
            display: none;
        }

        .member-login-links {
            display: flex;
            flex-flow: row nowrap;
            gap: 4rem;
            text-indent: 0;
            padding-inline: 4rem;

            a {
                display: flex;
                gap: 0.5rem;
                flex-flow: row nowrap;
                align-items: center;
                color: var(--color-brand-navy);

                svg {
                    width: 2rem;
                }
            }
        }
    }

    li.static-links {
        text-indent: 0;
        padding-block: 0;

        a {
            display: inline-block;
            padding: 1rem 2rem;

            &.dashboard-link {
                display: inline-flex;
                align-items: center;
                gap: 1rem;

                svg {
                    width: 1.5rem;
                    height: 1.5rem;
                }
            }

            &:hover {
                text-decoration: none;
            }
        }

        .ask-aggie-link {
            background: var(--color-brand-pale-blue);
        }

        .regions-link {
            display: inline-flex;
            flex-flow: row nowrap;
            align-items: baseline;
            justify-content: center;
            gap: 1rem;
            border-left: solid 1px var(--color-gray-light);

            svg {
                width: 1.5rem;
                height: 1.5rem;
                transform: translateY(0.2rem);
            }
        }
    }

    .top-nav-item {
        svg {
            margin-left: 0.5rem;
            width: 1rem;
        }

        svg path {
            fill: var(--color-brand-navy);
        }
    }

    /* Responsive */

    @media (max-width: 1245px) {
        background: var(--color-gray-light-web);
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;

        > .shared-links-container {
            background: var(--color-gray-light);
            width: 100%;
        }

        .shared {
            display: flex;
            flex-flow: row;
            gap: 2rem;
            justify-content: flex-end;

            li {
                padding-inline: 1.5rem;
            }

            > .menu-footer-nav-container {
                display: block;
            }
        }
    }

    @media screen and (max-width: 1024px) {
        .shared > *:not(.member-login-links) {
            display: none;
        }
    }

    @media (max-width: 812px) {
        > * {
            margin-inline: 0;
        }
    }

    @media (max-width: 600px) {
        display: flex;
    }
}

/* Cannot nest — #gcBodyTag is an ancestor outside .top-nav */
@media screen and (max-width: 45em) {
    #gcBodyTag .top-nav-text {
        display: inline-block !important;
    }
}
