/* Shared header and navigation styles */

#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header {
    background: var(--primary-gradient);
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    right: 1rem;
    top: 0.75rem;
    z-index: 10;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    display: block;
}

.menu-toggle .icon-close {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

/* Site-wide navigation bar */
.site-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.15);
}

.site-nav a {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Mobile: hamburger menu */
@media (max-width: 639px) {
    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

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

    .site-nav a {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-nav a:last-child {
        border-bottom: none;
    }
}
