/* Component: Level tabs (extends "The Journey" — Figma node 588:3405)
   Deliberately border-free, matching the rest of the design: level names
   are plain text, separated by a thin gold vertical rule instead of a
   pill/chip. The current level is denoted only by color + weight (gold,
   medium) — no background fill, no outline. A hairline progress line below
   marks how far into the 4-level certification the current tab sits. */
.level-tabs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.level-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  row-gap: 12px;
  flex-wrap: wrap;
}

.level-tabs__divider {
  width: 1px;
  height: 16px;
  flex-shrink: 0;
  background: var(--gold);
}

.level-tabs__tab {
  display: flex;
  align-items: center;
  /* Rendered 22px tall, just under the 24x24 minimum in WCAG 2.2 SC 2.5.8.
     The tabs are already centred flex boxes, so a min-height grows the hit
     area without shifting the label or the row. */
  min-height: 24px;
  gap: 8px;
  font-family: var(--font-gotham);
  font-weight: 300;
  font-size: 18px;
  line-height: normal;
  color: var(--white);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.level-tabs__tab:hover {
  opacity: 0.75;
}

.level-tabs__tab.is-coming-soon {
  color: var(--fog-white);
  opacity: 0.56;
}

/* Wins over .is-coming-soon's dimmed opacity when a coming-soon level is
   the one currently being browsed — it should read as fully visible, not
   locked, since every level is explorable pre-launch. */
.level-tabs__tab.is-current {
  color: var(--gold);
  font-weight: 350;
  opacity: 1;
}

.level-tabs__soon {
  font-family: var(--font-gotham);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--fog-white);
}

.level-tabs__progress {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.level-tabs__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transition: width 0.3s ease;
}

.level-panel[hidden] {
  display: none;
}

/* Mirrors .level-tabs__soon right under the tabs on narrow phones, where
   that inline chip is hidden for space (see the 480px query below) — shown
   there instead so a coming-soon level reads as such immediately, not only
   after scrolling past its 3 masterclass cards. */
.level-panel__soon-note {
  display: none;
}

.level-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

/* Below 1100px the 3 masterclass cards stack vertically (see
   .masterclass-list in masterclass-card.css), which makes each level panel
   tall — without this, switching levels means scrolling back up to reach
   the tabs. Sticking them under the fixed header keeps the tabs reachable
   for the whole scroll through that level's cards + Explore/Start CTAs.
   .level-tabs-wrap is a direct sibling of the level panels inside
   #journey-levels, so the sticky element naturally releases once that
   whole block (tabs + active panel + the "Coming soon" note) scrolls past
   — no manual bottom boundary to maintain. */
@media (max-width: 1100px) {
  .level-tabs-wrap {
    position: sticky;
    top: var(--header-height);
    z-index: 5;
    background: var(--dark);
    padding-block: 16px;
  }
}

@media (max-width: 480px) {
  .level-tabs {
    gap: 14px;
  }

  .level-tabs__tab {
    font-size: 15px;
  }

  .level-tabs__soon {
    display: none;
  }

  .level-panel__soon-note {
    display: block;
    font-family: var(--font-gotham);
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--fog-white);
  }
}
