/* ==========================================================================
   Mentor High School Science Olympiad - Professional Design System
   Brand Colors: Mentor Cardinal Red (#C41230), Black (#0B0D11), White, Cool Gray
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@600;700;800;900&family=Satisfy&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Brand Core */
  --cardinal: #C41230;
  --cardinal-dark: #8F0A20;
  --cardinal-light: #E02646;
  --cardinal-glow: rgba(196, 18, 48, 0.35);
  --cardinal-subtle: rgba(196, 18, 48, 0.12);

  /* Clean Professional Dark Theme */
  --bg-body: #0B0D11;
  --bg-header: rgba(11, 13, 17, 0.94);
  --bg-surface: #12151B;
  --bg-surface-elevated: #181C24;
  --bg-surface-hover: #1F2430;
  --bg-card: rgba(18, 22, 30, 0.85);

  /* Cool Grays & Text */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.16);

  /* Accents */
  --accent-gold: #F59E0B;
  --accent-green: #22C55E;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: 'Satisfy', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
}

/* Base Reset & Typography */
html, body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

a {
  color: var(--cardinal-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #FFF;
}

/* Header & Navigation (Northview-inspired clean aesthetic) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-navbar {
  padding: 12px 0;
}

.navbar-brand-mentor {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Mascot Logo */
.brand-cardinal-logo {
  height: 42px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(196, 18, 48, 0.45));
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.navbar-brand-mentor:hover .brand-cardinal-logo {
  transform: scale(1.08);
}

.brand-full-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.01em;
}

/* Nav links */
.site-nav-link {
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.site-nav-link:hover {
  color: #FFF !important;
  background: rgba(255, 255, 255, 0.06);
}

/* Active Nav pill highlight */
.site-nav-link.active {
  background: var(--cardinal) !important;
  color: #FFF !important;
  box-shadow: 0 2px 10px var(--cardinal-glow);
}

/* Live Results Header Button */
.btn-live-results {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-live-results:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFF !important;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* ==========================================================================
   Hero Section with Frosted Background (Matches uploaded photo & screenshot)
   ========================================================================== */
.hero-frosted-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('/images/mentor-campus-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-frosted-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 18, 0.42);
  backdrop-filter: blur(4px) brightness(0.88) saturate(115%);
  -webkit-backdrop-filter: blur(4px) brightness(0.88) saturate(115%);
  z-index: 1;
}

.hero-frosted-content {
  position: relative;
  z-index: 2;
  padding: 90px 20px 80px 20px;
  max-width: 960px;
}

/* Giant "Mentor" Title (Matching "Northview" from screenshot) */
.hero-giant-title {
  font-family: var(--font-heading);
  font-size: clamp(4.2rem, 12vw, 9.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: #C41230; /* Mentor Cardinal Red */
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.85);
  margin-bottom: 4px;
  user-select: none;
}

/* Cursive "Science Olympiad" (Matching script font in screenshot) */
.hero-script-subtitle {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 400;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
  margin-bottom: 28px;
  line-height: 1.1;
  user-select: none;
}

.hero-lead-text {
  font-size: 1.1rem;
  color: #E2E8F0;
  max-width: 680px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Scroll Chevron Indicator */
.hero-scroll-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  animation: bounceSlow 2.5s infinite;
  text-decoration: none;
}

.hero-scroll-indicator:hover {
  background: var(--cardinal);
  color: #FFF;
  border-color: var(--cardinal);
  transform: translateY(2px);
}

@keyframes bounceSlow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* Buttons */
.btn-cardinal {
  background: var(--cardinal);
  color: #FFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px var(--cardinal-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-cardinal:hover {
  background: var(--cardinal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 18, 48, 0.45);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-cardinal-outline {
  background: transparent;
  color: #FFF !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cardinal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-cardinal-outline:hover {
  background: var(--cardinal);
  color: #FFF !important;
}

/* Professional Cards & Sections */
.mentor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.25s ease;
}

.mentor-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-surface-elevated);
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  color: var(--cardinal-light);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #FFF;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 680px;
  margin-top: 8px;
}

/* Event Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}

.filter-btn.active {
  background: var(--cardinal);
  border-color: var(--cardinal);
  color: #FFF;
  box-shadow: 0 2px 10px var(--cardinal-glow);
}

/* Event Cards */
.event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.event-card:hover {
  border-color: rgba(196, 18, 48, 0.4);
  transform: translateY(-3px);
}

.event-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  text-transform: uppercase;
}

.event-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  margin: 10px 0 6px 0;
}

.event-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

/* Gallery Showcase */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  aspect-ratio: 16 / 11;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 13, 17, 0.92) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-title {
  color: #FFF;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.gallery-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  position: relative;
}

.lightbox-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #FFF;
  font-size: 2rem;
  cursor: pointer;
}

/* Contact Forms */
.mentor-form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: #FFF;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.mentor-form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cardinal);
  box-shadow: 0 0 0 3px var(--cardinal-glow);
  color: #FFF;
  outline: none;
}

.mentor-form-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #080A0E;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 25px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-col-title {
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li {
  margin-bottom: 8px;
}

.footer-link-list a {
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-link-list a:hover {
  color: #FFF;
}

.footer-partner-plates {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.partner-plate {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.partner-plate img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  margin-top: 36px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Mobile Bottom Navigation Toolbar (Native App Experience)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background: rgba(11, 13, 17, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.mobile-nav-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav-item {
  flex: 1;
  text-align: center;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  min-height: 48px;
}

.mobile-nav-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #FFF;
}

.mobile-nav-link.active svg {
  stroke: var(--cardinal-light);
  transform: translateY(-2px);
}

.mobile-nav-link.active .mobile-nav-label {
  color: var(--cardinal-light);
  font-weight: 700;
}

.mobile-nav-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cardinal);
  box-shadow: 0 0 8px var(--cardinal);
  animation: pulseLive 1.8s infinite;
}

/* Mobile Offcanvas Drawer */
.offcanvas-mentor {
  background-color: var(--bg-surface-elevated) !important;
  color: var(--text-primary);
  border-left: 1px solid var(--border-subtle);
}

.offcanvas-mentor .offcanvas-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 20px;
}

.offcanvas-mentor .offcanvas-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
}

.offcanvas-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offcanvas-nav-list li {
  margin-bottom: 6px;
}

.offcanvas-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.offcanvas-nav-list a:hover {
  background: var(--cardinal-subtle);
  border-color: var(--cardinal);
  color: #FFF;
  transform: translateX(4px);
}

/* ==========================================================================
   Northview-Inspired Season Roadmap & Timeline
   ========================================================================== */
.season-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.timeline-event-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}

.timeline-event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--border-medium);
  transition: background 0.25s ease;
}

.timeline-event-card.featured::before {
  background: var(--cardinal);
}

.timeline-event-card.next-up::before {
  background: var(--accent-gold);
}

.timeline-event-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.timeline-event-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cardinal-light);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-event-title {
  color: #FFF;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.timeline-event-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   Northview-Inspired Cardinal News / Updates
   ========================================================================== */
.cardinal-news-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.cardinal-news-card:hover {
  border-color: rgba(196, 18, 48, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.news-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.news-badge.announcement {
  background: var(--cardinal-subtle);
  color: var(--cardinal-light);
  border: 1px solid rgba(196, 18, 48, 0.3);
}

.news-badge.competition {
  background: rgba(34, 197, 94, 0.12);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.news-badge.volunteer {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Premier Sponsor Spotlight (SphinxTEK LLC)
   ========================================================================== */
.premier-sponsor-hero {
  background: linear-gradient(135deg, rgba(196, 18, 48, 0.12) 0%, rgba(18, 22, 30, 0.95) 100%);
  border: 1px solid rgba(196, 18, 48, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.premier-sponsor-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--cardinal-glow) 0%, transparent 70%);
  pointer-events: none;
}

.sponsor-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--cardinal);
  color: #FFF;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px; /* Space for mobile bottom toolbar */
  }
  .mobile-bottom-nav {
    display: block;
  }
  .site-header {
    padding: 2px 0;
  }
  .hero-giant-title {
    font-size: 3rem;
  }
}
/* Footer: keep secondary text readable on the dark background */
.site-footer .text-muted,
.site-footer .text-secondary { color: rgba(234, 238, 245, 0.68) !important; }

/* Countdown: tournament-day state and Invitational hero placement */
.cd-today { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 10px; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.35); color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.cd-today[hidden] { display: none; }
.cd-today-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: cdPulse 1.6s infinite; }
@keyframes cdPulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .cd-today-dot { animation: none; } }
.inv-countdown { max-width: 460px; margin: 0 0 24px; }
#mainCountdownBox .text-muted, #cd-where { color: rgba(234, 238, 245, 0.62) !important; }

/* Bottom dock: floats off the screen edge on phones */
.mobile-bottom-nav {
  left: 50%;
  right: auto;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 560px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.mobile-nav-link { min-height: 52px; gap: 4px; border-radius: 16px; line-height: 1; }
.mobile-nav-label { display: block; font-size: 0.68rem; white-space: nowrap; }
.mobile-nav-link.active { background: rgba(196, 18, 48, 0.14); }
.mobile-nav-link:focus-visible { outline: 2px solid var(--cardinal-light); outline-offset: 2px; }
@media (max-width: 768px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Desktop top menu uses the same icon-over-label buttons as the phone dock */
@media (min-width: 992px) {
  .site-nav-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 76px;
    padding: 7px 12px !important;
    font-size: 0.74rem;
    line-height: 1;
    border-radius: 14px;
  }
  .site-nav-link svg { width: 20px; height: 20px; stroke-width: 2; transition: transform 0.2s ease; }
  .site-nav-link.active {
    background: rgba(196, 18, 48, 0.16) !important;
    box-shadow: none;
    color: var(--cardinal-light) !important;
  }
  .site-nav-link.active svg { stroke: var(--cardinal-light); transform: translateY(-1px); }
  .site-nav-link:focus-visible { outline: 2px solid var(--cardinal-light); outline-offset: 2px; }
}
@media (max-width: 991.98px) {
  .site-nav-link svg { display: none; }
}

/* Phones use the bottom dock, so the header menu button isn't needed */
@media (max-width: 768px) {
  .site-header .navbar-toggler { display: none !important; }
}
