/* Readability: slightly larger base type for the whole membership (mobile-first) */
html { font-size: 106.25%; }  /* ~17px base; rem-based text scales up ~6% */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');
/* ══════════════════════════════════════════════════════════
   SHARED NAV — xpsiupsilon.com
   Single source of truth for all page navigation.
   Edit THIS file to change the nav on every page at once.
   ══════════════════════════════════════════════════════════ */

nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(30, 45, 78, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(196,153,42,0.2);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0; text-decoration: none !important;
}
.nav-owl {
  height: 48px; width: auto; object-fit: contain;
  opacity: 0.92; transition: opacity 0.2s;
}
.nav-owl:hover { opacity: 1; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  line-height: 1.35;
}
.nav-logo-text em {
  font-style: italic; display: block;
  color: #C4992A;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 0; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links li { list-style: none; }
.nav-links a {
  display: block; color: rgba(255,255,255,0.7);
  font-family: 'Marcellus', Georgia, serif;
  font-size: 0.96rem; font-weight: 400;
  letter-spacing: 0.07em;
  padding: 1.2rem 1rem;
  transition: color 0.2s, background 0.2s;
  text-decoration: none; white-space: nowrap;
}
.nav-links a:hover {
  color: #C4992A;
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

/* Hamburger toggle */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: #C4992A;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Auth pill capsule (injected by auth-gate.js) */
.auth-injected {
  flex-shrink: 0; margin-left: 1.25rem;
}

/* ── DESKTOP: two-tier masthead ──────────────────────────────
   Row 1: crest + wordmark centered (auth pill pinned right).
   Row 2: full-width link rail under a gold hairline.
   Links use fixed px so the site-wide rem bump never squeezes
   the rail; active page gets a gold underline via auth-gate.js. */
@media (min-width: 1161px) {
  nav { flex-wrap: wrap; justify-content: center; padding: 0 2rem; }
  .nav-logo { padding: 0.5rem 0 0.35rem; }
  .nav-owl { height: 42px; }
  .nav-logo-text { text-align: center; }
  .auth-injected { position: absolute; right: 1.4rem; top: 0.9rem; margin-left: 0; }
  .nav-links {
    flex-basis: 100%; justify-content: center; margin: 0;
    border-top: 1px solid rgba(196,153,42,0.28);
  }
  .nav-links a {
    font-size: 13.5px; letter-spacing: 0.05em; line-height: 1;
    padding: 13px 15px 11px;
    border-bottom: 2px solid transparent;
  }
  .nav-links li:last-child a { color: #F0C75E; }
  .nav-links li:last-child a:hover { color: #C4992A; }
}

/* ── MOBILE / TABLET ── */
@media (max-width: 1160px) {
  nav { position: relative !important; }
  /* Hamburger moves to the far right, beside the auth pill, so it never crowds the logo */
  .nav-logo   { order: 1 !important; min-width: 0 !important; flex-shrink: 1 !important; }
  .auth-injected { order: 2 !important; margin-left: auto !important; }
  .nav-toggle {
    display: flex !important; flex-shrink: 0 !important;
    order: 3 !important; margin-left: 0.85rem !important;
  }
  .nav-links { display: none !important; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important; left: 0 !important; right: 0 !important;
    background: #0A1120 !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.45) !important;
    gap: 0 !important; padding: 0.4rem 0 !important;
    z-index: 1000 !important;
  }
  .nav-links.open li { width: 100% !important; }
  .nav-links.open a { padding: 0.95rem 1.5rem !important; display: block !important; }
}
/* Mid-size tablets: trim the logo a touch so the second line never reaches the hamburger */
@media (max-width: 900px) {
  nav { padding: 0 1.25rem !important; }
  .nav-owl { height: 40px !important; }
  .nav-logo-text { font-size: 0.95rem !important; }
  .nav-logo-text em { font-size: 0.74rem !important; }
}
@media (max-width: 768px) {
  nav { padding: 0 0.6rem !important; overflow: visible !important; }
  .nav-owl { width: 30px !important; height: auto !important; }
  .nav-logo { gap: 7px !important; max-width: 62% !important; }
  .nav-logo-text { font-size: 0.74rem !important; line-height: 1.2 !important; }
  .nav-logo-text em { font-size: 0.6rem !important; display: block !important; }
  .nav-toggle { margin-left: 0.5rem !important; }
  .auth-injected { max-width: 130px !important; }
}
