.site-nav {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #111827;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nav-inner {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav-brand {
    font-weight: 700;
    color: #ffffff;
    margin-right: 8px;
}

.site-nav a.active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    cursor: default;
}

.nav-role-local {
    background: #1e3a8a;
    color: #bfdbfe;
}

.nav-role-server {
    background: #4c1d95;
    color: #ddd6fe;
}

.nav-more {
    position: relative;
}

.nav-more summary {
    list-style: none;
    cursor: pointer;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1;
    padding: 4px 10px 8px;
    border-radius: 4px;
    user-select: none;
}

.nav-more summary::-webkit-details-marker {
    display: none;
}

.nav-more summary:hover,
.nav-more[open] summary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 180px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    padding: 6px;
    display: flex;
    flex-direction: column;
    z-index: 1100;
}

.site-nav .nav-menu a {
    padding: 8px 10px;
    white-space: nowrap;
}

.page-container {
    padding: 30px 40px 40px;
}

@media (max-width: 720px) {
    .page-container {
        padding: 20px;
    }

    .nav-inner {
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .nav-role {
        display: none;
    }
}
