/* ===========================================================================
   nav.css — main navigation (Markets · Signals · News).
   Additive, loaded globally after main.css. Uses finscans design tokens.
   The nav markup lives inside .header-inner (a 60px flex row); we push it to
   the right and turn it into a dropdown on mobile.
   =========================================================================== */

.site-header { position: relative; }   /* anchor for the mobile dropdown */

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

.nav-link {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg-subtle); }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Mobile hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    z-index: 60;
  }
  .site-nav.is-open { max-height: 320px; }
  .nav-link {
    padding: 15px 20px;
    border-radius: 0;
    border-top: 1px solid var(--border);
  }
}