nav {
    display: flex;
    background: rgb(var(--color-foreground-grey-dark));
    justify-content: center;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    min-width: min(800px, 95vw);
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    justify-content: center;
    width: 100%;
}

.nav-link,
.nav-link:visited {
    color: rgb(var(--color-text-bright));
    font-weight: 600;
    padding: 30px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link img {
    height: 30px;
}

nav .user {
    white-space: nowrap;
    width: fit-content;
}

.sub-nav {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    gap: 5px;
}

.sub-nav-header {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: rgb(var(--color-foreground-grey-dark));
    border-radius: 4px;
}

.sub-nav-header svg {
    height: 20px;
}

.sub-nav-link:active,
.sub-nav-link:hover {
    background: rgb(var(--color-foreground-grey));
}

.sub-nav-link {
    display: flex;
    align-items: center;
    padding: 8px 15px 8px 8px;
    gap: 5px;
    border-radius: 4px;
    font-size: .9rem;
}

.sub-nav-link svg {
    height: 20px;
}

.has-sub-nav {
    display: grid;
    grid-template-columns: max-content auto;
    gap: 40px;
}

@media screen and (max-width: 850px) {
    .has-sub-nav {
        grid-template-columns: 1fr;        
    }
}