/* ═══════════════════════════════════════════════════
   Triage — Shared Navigation Styles
   Single source of truth for ALL pages.
   ═══════════════════════════════════════════════════ */

/* Force stable scrollbar gutter to prevent layout shift between pages */
html { scrollbar-gutter: stable; }

/* ── NAV CONTAINER ── */
nav, #nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12,12,11,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── LOGO ── */
.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  color: #F0EDE6;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.nav-logo .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C8F060;
  box-shadow: 0 0 8px #C8F060;
  display: inline-block;
  flex-shrink: 0;
}

/* ── NAV LINKS ── */
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-size: 13px;
  color: #8A8880;
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #F0EDE6;
}

/* ── DROPDOWNS ── */
.nav-dd {
  position: relative;
}

.dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -8px;
  background: #1C1C1A;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 0 8px 8px;
  min-width: 210px;
  padding: 12px 8px 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  z-index: 200;
}

.dd-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #8A8880;
  border-radius: 5px;
  transition: background .15s, color .15s;
  text-decoration: none;
  letter-spacing: 0;
  white-space: normal;
}

.dd-menu a:hover {
  background: rgba(255,255,255,.04);
  color: #F0EDE6;
}

.nav-dd:hover > .dd-menu {
  display: block !important;  /* !important to override any inline display:none */
}

/* ── RIGHT SIDE ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-signin {
  font-size: 13px;
  color: #8A8880;
  text-decoration: none;
  transition: color .2s;
}

.nav-signin:hover {
  color: #F0EDE6;
}

.btn-sm {
  background: #C8F060;
  color: #1A1A18;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
  display: inline-block;
  white-space: nowrap;
}

.btn-sm:hover {
  background: #A8D040;
  transform: translateY(-1px);
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  nav, #nav {
    padding: 16px 24px;
  }
  .nav-links {
    display: none;
  }
  .nav-signin {
    display: none;
  }
}
