/* Shared WOD League navigation. Markup is generated only by /js/api.js renderNav(). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable-Italic.woff2') format('woff2');
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1500;
  height: 64px;
  background: rgba(5, 10, 17, 0.76);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: #f4f8fd;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - 56px, 1180px);
  height: 100%;
  margin: 0 auto;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #f4f8fd;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.navbar-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(56,189,248,0.18));
}

.navbar-brand-text {
  display: inline-block;
  color: #f4f8fd;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.navbar-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: rgba(244,248,253,0.72);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.16s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: #38bdf8;
}

.navbar-menu a.active::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56,189,248,0.9);
  transform: translateX(-50%);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-actions .btn {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: none;
}

.navbar-actions .btn-primary {
  border: 0;
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(14,165,233,0.28);
}

.navbar-actions .btn-primary:hover {
  background: linear-gradient(180deg, #7dd3fc 0%, #22b7f4 100%);
  color: #ffffff;
}

.navbar-actions .btn-secondary {
  border: 1px solid rgba(244,248,253,0.13);
  background: rgba(244,248,253,0.045);
  color: #f4f8fd;
}

.navbar-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #f4f8fd;
  cursor: pointer;
  font-size: 0;
}

.navbar-toggle::before,
.navbar-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.2s ease, top 0.18s ease, box-shadow 0.18s ease;
}

.navbar-toggle::before {
  top: 12px;
  box-shadow: 0 7px 0 currentColor;
}

.navbar-toggle::after {
  top: 26px;
}

.navbar-toggle.is-open::before {
  top: 19px;
  box-shadow: none;
  transform: translate(-50%, 0) rotate(45deg);
}

.navbar-toggle.is-open::after {
  top: 19px;
  transform: translate(-50%, 0) rotate(-45deg);
}

body.mobile-menu-open {
  overflow: hidden;
  touch-action: none;
}

body.mobile-menu-open #cookie-banner {
  display: none !important;
}

@media (max-width: 768px) {
  .navbar {
    height: 60px;
    background: rgba(5,10,17,0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .navbar-inner {
    width: min(100% - 28px, 1180px);
    gap: 12px;
  }

  .navbar-brand {
    flex: 1;
    font-size: 14px;
  }

  .navbar-logo-icon {
    width: 27px;
    height: 27px;
  }

  .desktop-menu,
  .desktop-actions {
    display: none !important;
  }

  .navbar-toggle {
    display: inline-flex;
  }

  .mobile-menu-wrapper {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100dvh;
    padding: calc(78px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background:
      radial-gradient(circle at top right, rgba(14,165,233,0.16), transparent 26%),
      linear-gradient(180deg, #06111b 0%, #081420 56%, #050c14 100%);
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 0 18px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(244,248,253,0.10);
    color: #f4f8fd;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-menu-close {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(244,248,253,0.14);
    border-radius: 8px;
    background: rgba(244,248,253,0.04);
    color: rgba(244,248,253,0.82);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu-wrapper .navbar-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 0 !important;
    background: transparent !important;
  }

  .mobile-menu-wrapper .navbar-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(244,248,253,0.07);
  }

  .mobile-menu-wrapper .navbar-menu a {
    display: flex;
    min-height: 54px;
    align-items: center;
    padding: 0;
    color: rgba(244,248,253,0.62);
    font-size: 1.05rem;
    font-weight: 720;
    letter-spacing: 0.08em;
  }

  .mobile-menu-wrapper .navbar-menu a.active {
    color: #38bdf8;
  }

  .mobile-menu-wrapper .navbar-menu a::after {
    display: none;
  }

  .mobile-menu-wrapper .navbar-actions {
    width: 100%;
    margin-top: 28px;
  }

  .mobile-menu-wrapper .navbar-actions .btn {
    width: 100%;
    min-height: 58px;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.06em;
  }
}

@media (min-width: 769px) {
  #mobile-menu,
  #nav-toggle {
    display: none !important;
  }
}

/* Final authority over legacy page CSS. Keep all pages pixel-synced. */
.navbar {
  height: 64px !important;
  display: block !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: rgba(5, 10, 17, 0.76) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

.navbar-inner {
  width: min(100% - 56px, 1180px) !important;
  max-width: 1180px !important;
  height: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.navbar-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  color: #f4f8fd !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 17px !important;
  font-style: italic !important;
  font-weight: 950 !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
}

.navbar-logo-icon {
  width: 30px !important;
  height: 30px !important;
}

.navbar-brand-text {
  color: #f4f8fd !important;
}

.navbar-actions .btn,
.navbar-actions .btn-primary,
.navbar-actions button.btn-primary,
.navbar-actions a.btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  border: 0 !important;
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  text-transform: none !important;
  box-shadow: 0 14px 34px rgba(14,165,233,0.28) !important;
}

.navbar-actions .btn:hover,
.navbar-actions .btn-primary:hover,
.navbar-actions button.btn-primary:hover,
.navbar-actions a.btn-primary:hover {
  background: linear-gradient(180deg, #7dd3fc 0%, #22b7f4 100%) !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .navbar {
    height: 60px !important;
  }

  .navbar-inner {
    width: min(100% - 28px, 1180px) !important;
  }

  .navbar-brand {
    flex: 1 !important;
    font-size: 14px !important;
  }

  .navbar-logo-icon {
    width: 27px !important;
    height: 27px !important;
  }

  .navbar-toggle {
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
  }

  .mobile-menu-wrapper .navbar-actions .btn,
  .mobile-menu-wrapper .navbar-actions .btn-primary {
    min-height: 58px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
  }
}
