/* Zendo Stereo — shared site navigation styles.
   Linked by every page (index.html, deck.html, training.html, …) so the nav
   looks identical everywhere. Self-contained: uses hard-coded values rather
   than per-page CSS variables, since the deck uses a different palette.
   Pair with js/nav.js, which is the single source of truth for the links. */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 6, 18, 0.7);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(243, 233, 245, 0.10);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav .brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}
.nav .brand img { height: 42px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a { color: #9889a8; text-decoration: none; transition: color 0.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.nav-links a:hover { color: #ffffff; }
.nav-links a.is-current { color: #ffffff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #f3e9f5; margin: 5px 0; transition: all 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* Light theme (only when a page opts in via [data-theme="light"]) */
[data-theme="light"] .nav { background: rgba(245, 242, 236, 0.72); }
[data-theme="light"] .nav .brand img { filter: none; opacity: 0.9; }

/* Mobile: brand left, hamburger right, links collapse into a dropdown */
@media (max-width: 900px) {
  .nav-inner { padding: 14px 22px; gap: 12px; }
  .nav .brand img { height: 36px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #0a0612;
    flex-direction: column;
    padding: 12px 22px 18px;
    border-bottom: 1px solid rgba(243, 233, 245, 0.10);
    gap: 0;
    font-size: 15px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid rgba(243, 233, 245, 0.10);
    letter-spacing: 0.06em;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: block; order: 99; padding: 6px; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 12px 18px; gap: 10px; }
  .nav .brand img { height: 33px; }
}

/* Print: hide nav entirely (used by the deck) */
@media print { .nav { display: none; } }
