/* Public navbar — desktop matches original; hamburger only on small phones */

.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0;
}

.site-nav > a:not(.btn) {
    color: var(--muted, #a0b3cf);
    text-decoration: none;
    margin-left: 18px;
    white-space: nowrap;
}

.site-nav > a:not(.btn):hover {
    color: var(--fg, #e6eefb);
}

.site-nav .culture-selector {
    margin-left: 18px;
}

.site-nav > .btn {
    margin-left: 18px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--fg, #e6eefb);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Phones only */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        background: rgba(11, 15, 23, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
        z-index: 1100;
    }

    .nav.is-open .site-nav {
        display: flex;
    }

    .nav.is-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav.is-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav.is-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile menu entries look like outline buttons */
    .site-nav > a:not(.btn) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 12px 16px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--fg, #e6eefb);
        background: transparent;
        text-decoration: none;
        font-weight: 600;
    }

    .site-nav > .btn {
        width: 100%;
        margin: 0;
        justify-content: center;
    }

    .site-nav .culture-selector {
        width: 100%;
        margin: 0;
    }

    body.nav-open {
        overflow: hidden;
    }
}
