.site-header {
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 40px;
}

.site-header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-header-logo img {
    display: block;
    height: 48px;
    width: auto;
}

.site-header-nav {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 28px;
}

.site-header-nav a {
    color: #000000;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.site-header-nav a:hover {
    color: #333333;
}

/* Hamburger: hidden on desktop, swaps to an X while open. */
.site-header-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000000;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.site-header-menu .bi-x-lg,
.site-header-menu[aria-expanded="true"] .bi-list {
    display: none;
}

.site-header-menu[aria-expanded="true"] .bi-x-lg {
    display: inline;
}

@media (max-width: 768px) {
    .site-header-inner {
        flex-wrap: wrap;
        padding: 14px 20px;
        gap: 12px;
    }

    .site-header-logo img {
        height: 36px;
    }

    .theme-toggle {
        margin-left: auto;
    }

    .site-header-menu {
        display: inline-flex;
    }

    /* Collapsed menu: full-width column below the bar, shown while the button is expanded. */
    .site-header-nav {
        display: none;
        order: 1;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-header-inner:has(.site-header-menu[aria-expanded="true"]) .site-header-nav {
        display: flex;
    }

    .site-header-nav a {
        padding: 12px 0;
        border-top: 1px solid #e0e0e0;
        font-size: 16px;
    }
}
