/* ── Top navigation bar ── */
:root {
    --resistance-blue: #00c8ff;
    --resistance-blue-glow: rgba(0, 200, 255, 0.6);
    --text-muted: #7a9bb8;
    --text-light: #e8f4ff;
    --prague-gold: #c9a94e;
}

.top-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 200, 255, 0.15);
}

.top-nav-brand {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--resistance-blue);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-decoration: none;
}

.top-nav-brand-dot {
    width: 7px; height: 7px;
    background: var(--resistance-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--resistance-blue-glow);
    animation: navPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes navPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.75); }
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-nav-links a {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: color .2s, border-color .2s, background .2s;
    white-space: nowrap;
}

.top-nav-links a:hover {
    color: var(--resistance-blue);
    border-color: rgba(0, 200, 255, 0.3);
    background: rgba(0, 200, 255, 0.06);
}

.top-nav-links a.nav-active {
    color: var(--resistance-blue);
    border-color: rgba(0, 200, 255, 0.35);
    background: rgba(0, 200, 255, 0.08);
}

.top-nav-links a.nav-highlight {
    color: var(--prague-gold);
    border-color: rgba(201, 169, 78, 0.3);
}

.top-nav-links a.nav-highlight:hover {
    background: rgba(201, 169, 78, 0.08);
    border-color: rgba(201, 169, 78, 0.55);
}

@media (max-width: 630px) {
    .top-nav { padding: 0.6rem 1rem; }
    .top-nav-brand { display: none; }
    .top-nav-links a { font-size: 0.65rem; padding: 0.3rem 0.5rem; }
}
