/* NavWidget — shared Tools|Data mode toggle (nav-widget.js). Loaded by both
   the OSINT Navigator frontend and Data Navigator's /data pages; var()
   fallbacks keep it identical on either stylesheet's tokens. */

.nav-toggle-slot {
    position: absolute;
    left: 50%;
    top: calc(50% - 12px);
    transform: translate(-50%, -50%);
    z-index: 5;
}

.nav-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border, rgba(55, 65, 81, 0.1));
    border-radius: 999px;
    background: rgba(55, 65, 81, 0.05);
}

.nav-mode-toggle a,
.nav-mode-toggle .active {
    display: inline-flex;
    align-items: center;
    padding: 6px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.nav-mode-toggle a {
    color: var(--text-muted, #6b7280);
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-mode-toggle a:hover {
    color: var(--text, #374151);
    background: rgba(255, 255, 255, 0.7);
}

.nav-mode-toggle .active {
    background: var(--blue, #2451c9);
    color: white;
    box-shadow: 0 1px 3px rgba(26, 61, 158, 0.35);
}

@media (max-width: 640px) {
    .nav-toggle-slot {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
}
