@charset "UTF-8";
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-nav);
  text-decoration: none;
  text-transform: uppercase;
  transition: background 200ms ease-in-out;
  /* ACTIVE LINK — no background here anymore (pill handles it) */
}
.nav-link:hover, .nav-link:focus-visible {
  text-decoration: none;
}
.nav-link.active {
  background: transparent;
}
.nav-link.discipline-link {
  padding-right: 8px; /* reserve a bit of space */
}

/* Caret is always present for discipline links to prevent layout shift */
.nav-link-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid transparent;
  transform: translateY(1px);
}

.nav-link-caret.is-visible {
  border-top-color: #f6c366;
}

/* ============================= */
/* ACTIVE DISCIPLINE PILL WRAPPER */
/* ============================= */
.nav-item--active-discipline .nav-item-inner {
  position: relative; /* ✅ dropdown anchors to this */
  display: inline-flex;
  align-items: center;
  background: var(--color-nav-current);
  border-radius: 4px;
}

/* ensure link doesn't create a second pill */
.nav-item--active-discipline .nav-link {
  background: transparent;
}

/* dropdown anchor should not become the positioning context */
.nav-item--active-discipline .nav-discipline-anchor {
  position: static;
  display: inline-flex;
  align-items: center;
}.nav-container {
  flex: 1;
}

/* Desktop nav list layout */
.nav-container.nav-desktop .nav-list {
  display: flex;
  container-type: normal;
  gap: clamp(10px, 3.4cqw, 50px);
  justify-content: flex-end;
  padding: 0 32px;
  list-style: none;
}

.nav-container.nav-desktop .nav-list > li {
  display: flex;
  align-items: center;
}

/* Dropdown anchor */
.nav-discipline-anchor {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

/* Mobile-first: show mobile, hide desktop */
.nav-container.nav-desktop {
  display: none;
}

/* IMPORTANT: support BOTH class names that exist in your project */
.nav-container.nav-container--mobile,
.nav-container.nav-mobile {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Desktop breakpoint */
@media screen and (min-width: 769px) {
  .nav-container.nav-desktop {
    display: block;
  }
  .nav-container.nav-container--mobile,
  .nav-container.nav-mobile {
    display: none;
  }
  .nav-item-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .nav-item--active-discipline .nav-item-inner {
    background: var(--color-nav-current);
    border-radius: 4px;
  }
  .nav-item--active-discipline .nav-link {
    background: transparent;
  }
  .nav-discipline-anchor {
    display: inline-flex;
    align-items: center;
  }
}
/* ✅ Mobile nav container should keep a stable width in the header
   even when the hamburger becomes position:fixed (open state). */
.nav-container--mobile {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* ✅ This prevents header GGW from shifting when button becomes fixed */
  min-width: 56px;
}

/* ✅ Keeps header layout stable even when the real button becomes fixed */
.nav-drawer-button-slot {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger button (in header) */
.nav-drawer-button {
  color: var(--color-nav);
  background: transparent;
  border: 0;
  /* ✅ fixed button size so header layout is stable */
  width: 56px;
  height: 56px;
  padding: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10000;
}
.nav-drawer-button:not(:focus-visible) {
  outline: none;
}

/* ✅ When open, pin the SAME button to top-right of the screen (acts as X) */
.nav-drawer-button.is-open {
  position: fixed;
  top: 18px;
  right: 16px;
  z-index: 10001;
}

.hamburger {
  width: 26px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

/* Animate to X when open */
.nav-drawer-button[aria-expanded=true] .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-drawer-button[aria-expanded=true] .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-drawer-button[aria-expanded=true] .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Backdrop */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9997;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

/* Full-screen drawer */
.nav-drawer {
  position: fixed;
  z-index: 9998;
  inset: 0;
  width: 100vw;
  background: var(--color-background);
  padding: 18px 16px;
  overflow-y: auto;
}

/* Top row inside the drawer */
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  /* space for the pinned X button */
  padding-right: 56px;
  padding-bottom: 10px;
}

/* Drawer logo link wrapper */
.nav-drawer-logo {
  text-decoration: none;
  color: inherit;
}

/* ✅ Match the real header logo exactly (from Header.astro) */
.nav-drawer-header .logo {
  padding: 10px;
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  color: var(--orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Menu list */
.nav-drawer-list {
  list-style: none;
  margin: 8px 0 0 0;
  padding: 0;
}

.nav-drawer-item {
  margin: 0;
  padding: 0;
}

/* Main links */
.nav-drawer-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-nav);
  text-decoration: none;
  padding: 10px 6px;
  border-radius: 8px;
}
.nav-drawer-link:hover, .nav-drawer-link:focus-visible {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.nav-drawer-link.is-current {
  background: rgba(255, 255, 255, 0.08);
}

/* Subpages list */
.nav-drawer-sublist {
  list-style: none;
  margin: 6px 0 14px 0;
  padding: 6px 0 0 0;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.nav-drawer-sublink {
  display: block;
  padding: 10px 10px 10px 14px;
  margin-left: 6px;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 650;
  border-radius: 10px;
}
.nav-drawer-sublink:hover, .nav-drawer-sublink:focus-visible {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.nav-drawer-sublink.is-current {
  background: rgba(255, 255, 255, 0.08);
}
.header-discipline-menu {
  display: inline-flex;
  align-items: stretch;
}

/* Toggle button */
.header-discipline-menu__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1;
}
.header-discipline-menu__button:not(:focus-visible) {
  outline: none;
}

/* CSS-only caret */
.header-discipline-menu__caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #f6c366;
  transform: translateY(2px);
}

/* Dropdown panel — positioned relative to the RED PILL wrapper */
.header-discipline-menu__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  z-index: 9999;
  background: var(--color-background);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.header-discipline-menu__list ul {
  margin: 0;
  padding: 8px 0;
  list-style: none;
}

.header-discipline-menu__list li {
  margin: 0;
}

.header-discipline-menu__list a {
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease-in-out;
}

.header-discipline-menu__list a:hover,
.header-discipline-menu__list a[aria-current=page] {
  background: rgba(255, 255, 255, 0.08);
}