/* ============================================================
   Shared header / logo system — single source of truth.
   Loaded on every page after that page's own stylesheet, so these
   rules win the cascade without needing !important. Do not duplicate
   .logo-img / .nav-left .logo / .navbar padding sizing in any per-page
   stylesheet — edit only here so every page stays in sync automatically.

   Logo source (classic-cult-logo-cropped.png) is a wide/flat lockup
   (~4.5:1 aspect ratio) — sizing is height-driven, width follows.
   ============================================================ */

/* !important is deliberate here: in dev, Vite's CSS HMR re-injects an inline
   copy of a page's own style.css AFTER this file in the DOM (only on pages
   that reference /src/*.css, e.g. home.html), which otherwise silently wins
   the cascade and reverts these sizes. Marking them !important makes this
   file authoritative everywhere regardless of injection order. */
.navbar {
  padding: 12px 0 !important;
}

.nav-left .logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 64px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.nav-left {
  min-width: 300px !important;
}

@media (max-width: 1024px) {
  .logo-img { height: 52px !important; }
  .nav-left { min-width: 240px !important; }
}

@media (max-width: 768px) {
  .navbar { padding: 10px 0 !important; }
  .logo-img { height: 42px !important; }
  .nav-left { min-width: 0 !important; }
}

@media (max-width: 480px) {
  .logo-img { height: 34px !important; }
}

/* Login session indicator + account dropdown (shared across every page) */
.user-btn.is-logged-in {
  color: #0a0a0a;
  position: relative;
}
.user-btn.is-logged-in::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1fa84f;
  border: 1.5px solid #fff;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  padding: 14px 16px;
  min-width: 190px;
  z-index: 50;
  text-align: left;
}
.auth-menu-name { font-weight: 700; font-size: 14px; color: #111; }
.auth-menu-email { font-size: 12.5px; color: #777; margin: 2px 0 12px; word-break: break-all; }
.auth-menu-logout {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.nav-icons-group { position: relative; }

/* SEO: every page needs exactly one H1 for search engines/screen readers,
   but the hero banner is a full-bleed image with its own baked-in text —
   an on-page visible H1 would be redundant. Standard accessible pattern:
   present in the DOM and readable by crawlers/assistive tech, invisible
   on screen (not display:none, which crawlers and screen readers skip). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile menu drawer must actually slide into view. Something in the
   per-page stylesheets keeps `left` pinned at -100% even with !important
   overrides here, so drive the slide with `transform` instead — it's an
   independent property and reliably wins regardless of whatever is holding
   `left` in place. */
@media (max-width: 768px) {
  .mobile-menu-drawer {
    transform: translateX(-100%) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .mobile-menu-drawer.active {
    transform: translateX(0) !important;
  }

  /* Tighter, more compact spacing now that the support/social footer
     blocks are gone — a shorter list reads more professional than one
     padded out to fill space. */
  .mobile-menu-links a {
    padding: 13px 18px !important;
    font-size: 13.5px !important;
  }
  .mobile-frame-toggle > a {
    padding: 13px 18px !important;
  }
}
