/* Shared header/navigation (index, news, shorts) */
.nav-links {
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.nav-links .nav-icon {
    height: 40px;
    width: auto;
    display: block;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    max-width: none;
}

.header .logo img {
    height: 50px;
    width: auto;
    margin-left: 30px;
}

.header-spacer {
    height: 5rem;
}

.lang-switch {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    text-decoration: none;
}

.lang-switch:hover,
.lang-switch.active {
    color: #ffd700;
}

.nav-links .lang-switch::after,
.nav-links .lang-switch.active::after {
    display: none;
    content: none;
}

.nav-lang {
    margin-left: 0.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .header .nav {
        position: relative;
        height: auto;
        min-height: 3rem;
        padding: 0.35rem 0;
        justify-content: flex-start;
    }

    .header .logo {
        flex: 0 0 auto;
    }

    .header .menu-button {
        display: block;
        flex: 0 0 auto;
        margin-left: auto;
        margin-right: 30px;
    }

    .header .nav-links:not(.active) {
        display: none !important;
    }

    .header .logo img {
        height: 32px !important;
        margin-left: 30px;
    }

    .header .nav-links.active {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.25rem 0.35rem;
    }

    .header .nav-links .nav-icon {
        height: 40px !important;
        width: auto !important;
        max-width: none !important;
    }

    .header .nav-lang {
        flex: 0 0 100%;
        text-align: center;
        margin: 0.25rem 0 0;
        font-size: 0.75rem;
    }

    .header-spacer {
        height: 3.25rem;
    }
}
