/* THE site-wide nav. Loaded by every page, wins over any page-local rules,
   so the top bar looks and behaves identically everywhere.
   Desktop: sticky row, links + App Store badge centered right.
   Mobile: sticky compact stack; the badge hides because the fixed bottom
   bar owns the download CTA on small screens. */

nav {
  position: sticky !important; top: 0 !important; z-index: 50;
  padding: 14px 0 !important;
  border-bottom: 1px solid var(--border) !important;
  background: var(--bg) !important;
}
nav .container {
  display: flex !important; flex-direction: row !important;
  align-items: center !important; justify-content: space-between !important;
  gap: 16px !important;
}
nav .logo { flex-shrink: 0; }
.nav-links {
  display: flex !important; align-items: center !important;
  flex-wrap: wrap !important; justify-content: flex-end !important;
  gap: 10px 22px !important;
}
.nav-links a { margin-left: 0 !important; white-space: nowrap !important; }
.nav-links a.nav-cta { display: inline-flex !important; padding: 0 !important; background: none !important; }
.nav-links a.nav-cta img { display: block; height: 40px; width: auto; }

@media (max-width: 720px) {
  nav { padding: 10px 0 !important; }
  nav .container {
    flex-direction: column !important; align-items: flex-start !important;
    gap: 8px !important;
  }
  .nav-links { justify-content: flex-start !important; gap: 8px 14px !important; }
  .nav-links a { font-size: 13px !important; }
  .nav-links a.nav-cta { display: none !important; }
}
