/* ── Header ── */
.site-header
{
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fff;
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.site-header-inner
{
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo
{
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.1rem;
    align-self: stretch;
}

.site-logo img
{
    width: 32px;
    height: 32px;
    align-self: flex-end;
}

.site-logo:hover
{
    text-decoration: none;
}



/* Desktop nav */
.site-nav
{
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav > a
{
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav > a:hover
{
    background: var(--color-surface);
    color: #333;
    text-decoration: none;
}

/* Dropdown */
.nav-dropdown
{
    position: relative;
}

.nav-dropdown-toggle
{
    padding: 8px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #595959;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-toggle:hover
{
    background: var(--color-surface);
    color: #333;
}

.nav-dropdown-arrow
{
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu
{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    margin-top: 4px;
    z-index: 110;
}

.nav-dropdown.open .nav-dropdown-menu
{
    display: block;
}

.nav-dropdown.open .nav-dropdown-arrow
{
    transform: rotate(180deg);
}

.nav-dropdown-menu a
{
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: background 0.1s ease;
}

.nav-dropdown-menu a:hover
{
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
}

.nav-dropdown-sep
{
    height: 1px;
    background: var(--color-border);
    margin: 4px 0;
}

.nav-disabled,
.nav-disabled:hover
{
    opacity: 0.4;
    pointer-events: none;
}
