/* ── SHARED NAV BREAKPOINT RULES ──────────────────────────
   Loaded on every page that uses .nav. Selectors are scoped
   to `.nav .x` to outrank single-class inline rules. */

@media (max-width: 768px) {
  /* will-change AND backdrop-filter on .nav both create a containing
     block that traps position:fixed descendants. Clear both at mobile
     so the open menu can fill the viewport. The nav keeps a solid
     background instead of the frosted glass — close enough at mobile. */
  nav.nav {
    will-change: auto;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav .nav-links-right {
    display: none;
  }
  /* Open state — full-screen overlay */
  .nav .nav-links-right.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    z-index: 99;
  }
  .nav .nav-links-right.is-open li {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .nav .nav-links-right.is-open a {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
  }
  .nav .nav-hamburger {
    display: flex;
  }
}

@media (min-width: 769px) {
  .nav .nav-hamburger {
    display: none;
  }
}
