/* ── Shared nav component ── loaded by every page that uses nav.js ── */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fafaf9;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(231,229,228,.9);
  z-index: 1000;
  transition: box-shadow 200ms ease;
  display: block;
}
#navbar.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
}

#navbar .nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#navbar .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1c1917;
  flex-shrink: 0;
}

#navbar .nav-logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #0891b2, #0e7490);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(8,145,178,.30);
  flex-shrink: 0;
}
#navbar .nav-logo-mark svg { width: 32px; height: 32px; }

#navbar .nav-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1c1917;
}

#navbar .nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#navbar .nav-links li { margin: 0; padding: 0; }
#navbar .nav-links a {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #57534e;
  text-decoration: none;
  transition: color 150ms;
}
#navbar .nav-links a:hover,
#navbar .nav-links a.active { color: #0891b2; }

#navbar .nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  /* Reset article.css which incorrectly styles .nav-cta as a green pill */
  background: none;
  border-radius: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

#navbar .nav-app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 180ms ease;
  border-radius: 9999px;
  padding: 11px 26px;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #0891b2, #0e7490);
  box-shadow: 0 8px 28px rgba(13,148,136,.22);
}
#navbar .nav-app-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(13,148,136,.30);
  color: #fff;
}

#navbar .nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #57534e;
}

@media (max-width: 768px) {
  #navbar .nav-links { display: none; }
  #navbar .nav-mobile-toggle { display: flex; }
}
