/* ===== Site-wide Navigation Bar ===== */
/* Self-contained: does not inherit or leak styles to/from host pages */
/* Uses position:fixed to avoid interfering with host page layout (flex/grid/etc) */

/* Push page content down to compensate for the fixed nav bar */
body {
    padding-top: 40px !important;
}

.site-nav {
    --sn-bg: #1a1a2e;
    --sn-fg: #e8e8e8;
    --sn-fg-muted: #8b8b9e;
    --sn-hover: rgba(255, 255, 255, 0.12);
    --sn-active: #538d4e;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    background: var(--sn-bg);
    color: var(--sn-fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 1;
    user-select: none;
}

.site-nav a {
    color: var(--sn-fg);
    text-decoration: none;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.site-nav a:hover {
    background: var(--sn-hover);
}

.site-nav a.is-current {
    color: #fff;
    box-shadow: inset 0 -2px 0 var(--sn-active);
}

.site-nav .site-nav-brand {
    color: var(--sn-fg-muted);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    padding: 0 14px 0 16px;
    margin-right: auto;
    pointer-events: none;
}

.site-nav .site-nav-links {
    display: flex;
    height: 100%;
    align-items: center;
}

@media (max-width: 480px) {
    .site-nav {
        font-size: 12px;
    }
    .site-nav a {
        padding: 0 10px;
    }
    .site-nav .site-nav-brand {
        display: none;
    }
}
