/* ===================================================================
   WPG 2030 Microsite — Stylesheet
   Theme: Paddle Australia navy + Gold Coast accent
   Typography: Playfair Display (display) + Inter (body)
   =================================================================== */

:root {
  /* OFFICIAL Paddle Australia palette extracted from PAD25_1117 PA PowerPoint Template (potx theme) */
  --pa-navy:        #05334F;  /* dk1, dk2, accent1 - primary deep teal-navy */
  --pa-navy-deep:   #03263A;  /* slightly darker for hero gradient */
  --pa-navy-light:  #1B4D6C;  /* lighter shade for hover/active */

  /* PA Accents */
  --accent-teal:    #00C2B5;  /* accent2 - turquoise, brand energy */
  --accent-indigo:  #323778;  /* accent3 - deep purple/indigo */
  --accent-blue:    #4BABC5;  /* accent4 - light blue */
  --accent-cream:   #EEECE1;  /* accent5 - warm cream */

  /* Backwards-compat aliases */
  --accent-sand:    var(--accent-cream);
  --accent-coral:   var(--accent-teal);

  /* Greys */
  --ink:            #05334F;
  --ink-soft:       #1F3D52;
  --ink-mute:       #5C7585;
  --paper:          #FFFFFF;
  --paper-warm:     #FAF8F2;
  --rule:           #DDE3E8;

  /* Pillar colours */
  --pillar-a:       var(--pa-navy);
  --pillar-b:       var(--accent-teal);
  --pillar-c:       var(--accent-indigo);

  /* Layout */
  --max-w:          1280px;
  --gutter:         clamp(1.25rem, 4vw, 3rem);
  --section-pad-y:  clamp(4rem, 10vh, 7rem);

  /* Typography (Vitesse Sans Bold not web-licensable; using Nunito Sans Black as nearest free substitute) */
  --display:        'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --body:           'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* When the gate is active, hide the rest of the page and prevent scroll */
body.is-locked { overflow: hidden; }
body.is-locked main { display: none; }
body.is-locked .pillar-nav { display: none; }

/* ===================================================================
   PASSWORD GATE
   =================================================================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pa-navy-deep) 0%, var(--pa-navy) 60%, var(--accent-indigo) 100%);
  color: var(--paper);
  padding: 2rem;
  opacity: 1;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate__panel {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.gate__brand {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.4em;
  margin-bottom: 2.5rem;
  color: var(--accent-teal);
}

.gate__heading {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.gate__intro {
  font-size: 0.95rem;
  font-weight: 300;
  opacity: 0.85;
  margin: 0 0 2.5rem;
  line-height: 1.5;
}

.gate__form {
  text-align: left;
}

.gate__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cream);
  margin-bottom: 0.5rem;
}

.gate__input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--paper);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.gate__input:focus {
  border-color: var(--accent-teal);
  background: rgba(255,255,255,0.12);
}

.gate__button {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-top: 1rem;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pa-navy-deep);
  background: var(--accent-teal);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.gate__button:hover { background: var(--accent-cream); }
.gate__button:active { transform: scale(0.98); }

.gate__error {
  margin: 0.75rem 0 0;
  min-height: 1.25rem;
  font-size: 0.85rem;
  color: var(--accent-cream);
  text-align: center;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* Layout container */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section base */
.section {
  position: relative;
  padding: var(--section-pad-y) 0;
}

.section-label {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pa-navy);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-blue);
  margin-bottom: 1.5rem;
}

.section-headline {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--pa-navy);
  margin: 0 0 1.5rem;
  max-width: 28ch;
}

.section-subhead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: 50ch;
}

.section-intro,
.section-narrative {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 65ch;
  margin-bottom: 2rem;
}

.block-heading {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--pa-navy);
  margin: 3rem 0 1.5rem;
}

/* ===================================================================
   STICKY PILLAR NAV
   =================================================================== */
.pillar-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.pillar-nav.is-visible {
  transform: translateY(0);
}

.pillar-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pillar-nav__brand {
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--pa-navy);
}

.pillar-nav__pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.pillar-nav__pills a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.pillar-nav__pills a:hover,
.pillar-nav__pills a.is-active {
  background: var(--pa-navy);
  color: var(--paper);
}

.pillar-nav__pills .divider {
  width: 1px;
  height: 18px;
  background: var(--rule);
  margin: 0 0.4rem;
}

@media (max-width: 768px) {
  .pillar-nav__pills { display: none; }
}

/* ===================================================================
   HERO
   =================================================================== */
.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--paper);
  overflow: hidden;
  padding: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero.jpg?v=20260510o');
  background-color: var(--pa-navy-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  /* Ken Burns motion */
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -2%); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,27,61,0.3) 0%, rgba(15,27,61,0.7) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
}

.hero__wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 2rem;
}

.hero__line1 {
  font-family: var(--body);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero__line2 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .hero__line2 {
    white-space: normal;
    font-size: clamp(2.5rem, 14vw, 4.5rem);
    line-height: 1;
  }
}

.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-bottom: 4rem;
}

.hero__scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.hero__scroll-cue:hover { opacity: 1; }

/* ===================================================================
   OPPORTUNITY OPENER
   =================================================================== */
.section--opportunity {
  background: var(--paper-warm);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat {
  text-align: center;
}

.stat__value {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--pa-navy);
  display: block;
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.pillars-intro {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 3rem;
}

.pillar-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pillar-card {
  display: block;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: 0 12px 30px -10px rgba(27, 45, 90, 0.18);
}

.pillar-card__id {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.pillar-card__label {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--pa-navy);
  margin: 0.5rem 0;
  line-height: 1.2;
}

.pillar-card__tagline {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ===================================================================
   PILLAR SECTIONS
   =================================================================== */
.section--pillar {
  background: var(--paper);
}

.pillar--a { border-top: 4px solid var(--pillar-a); }
.pillar--b { border-top: 4px solid var(--pillar-b); background: var(--paper-warm); }
.pillar--c { border-top: 4px solid var(--pillar-c); }

/* ===================================================================
   SECTION 3 — Pillar A: Championships (redesigned)
   =================================================================== */
.champ__claim {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--pa-navy);
  max-width: 50ch;
}

/* Hero stat block (mirrors Mass Participation hero) */
.champ-hero {
  margin: 3.5rem auto 2rem;
  text-align: center;
}

.champ-hero__inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  padding: 0 1rem;
}

.champ-hero__inner::before,
.champ-hero__inner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 2px;
  transform: translateY(-50%);
}
.champ-hero__inner::before { right: 100%; background: linear-gradient(90deg, transparent, var(--accent-teal)); }
.champ-hero__inner::after  { left: 100%;  background: linear-gradient(90deg, var(--accent-teal), transparent); }

.champ-hero__value {
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--pa-navy) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.champ-hero__label {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
  max-width: 38ch;
  line-height: 1.4;
}

/* Stat strip — dark navy band with 4 stats and dividers */
.champ-strip {
  display: flex;
  align-items: stretch;
  background: var(--pa-navy);
  border-radius: 10px;
  margin: 0 0 3rem;
  padding: 1.5rem 0;
  box-shadow: 0 16px 36px -16px rgba(5,51,79,0.35);
}

.champ-strip__item {
  flex: 1;
  text-align: center;
  padding: 0 0.5rem;
  transition-delay: var(--strip-delay, 0s);
}

.champ-strip__value {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--accent-teal);
}

.champ-strip__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cream);
  font-weight: 700;
}

.champ-strip__divider {
  width: 1px;
  background: rgba(255,255,255,0.18);
  margin: 0.3rem 0;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .champ-strip { flex-wrap: wrap; padding: 1rem 0; }
  .champ-strip__item { flex: 1 1 50%; padding: 0.6rem; }
  .champ-strip__divider { display: none; }
}

/* Venue stage cards — 3×2 grid */
.champ-venues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
}

@media (max-width: 900px) {
  .champ-venues { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .champ-venues { grid-template-columns: 1fr; }
}

.champ-venue {
  position: relative;
  padding: 1.4rem 1.4rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  border-top: 4px solid var(--venue-colour, var(--pa-navy));
  transition-delay: var(--venue-delay, 0s);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.champ-venue:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(5,51,79,0.25);
}

.champ-venue__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.champ-venue__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--venue-colour, var(--pa-navy));
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--venue-colour, var(--pa-navy));
}

.champ-venue__title { flex: 1; }

.champ-venue__name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--pa-navy);
  margin: 0 0 0.15rem;
  line-height: 1.2;
}

.champ-venue__role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--venue-colour, var(--ink-mute));
}

.champ-venue__competition-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.6rem;
}

.champ-venue__count {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--venue-colour, var(--pa-navy));
  line-height: 1;
  background: var(--paper-warm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.champ-venue__disciplines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.champ-venue__disciplines li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.3;
}

.champ-venue__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--venue-colour, var(--pa-navy));
  flex-shrink: 0;
}

/* Proof point strip — two columns with divider */
.champ-proof {
  display: flex;
  align-items: stretch;
  background: var(--paper-warm);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0 0;
  gap: 1.5rem;
}

.champ-proof__col {
  flex: 1;
}

.champ-proof__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}

.champ-proof__col p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.champ-proof__divider {
  width: 1px;
  background: var(--rule);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .champ-proof { flex-direction: column; gap: 1.25rem; }
  .champ-proof__divider { width: 100%; height: 1px; }
}

.scale-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.scale-stat {
  padding: 1.25rem 0;
  border-top: 2px solid var(--pa-navy);
}

.scale-stat__value {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--pa-navy);
  line-height: 1;
  display: block;
}

.scale-stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

/* Discipline grid */
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.discipline-tile {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.discipline-tile:hover {
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.discipline-tile__name {
  font-weight: 600;
  color: var(--pa-navy);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.25rem;
}

.discipline-tile__venue {
  font-size: 0.78rem;
  color: var(--ink-mute);
  display: block;
}

/* Callouts */
.callout-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.callout {
  padding: 1.75rem;
  background: var(--paper);
  border-left: 4px solid var(--pa-navy);
  border-radius: 4px;
  box-shadow: 0 4px 12px -6px rgba(15, 27, 61, 0.08);
}

.callout--accent { border-left-color: var(--accent-coral); }

.callout h4 {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.75rem;
}

.callout p {
  font-size: 1rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
}

/* ===================================================================
   BWP FEATURE STRIP — between Sections 3 and 4, full-bleed cinematic
   =================================================================== */
.bwp-feature-strip {
  position: relative;
  width: 100%;
  min-height: clamp(380px, 50vh, 560px);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bwp-feature-strip__image {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero.jpg?v=20260512d');
  background-size: cover;
  background-position: center 65%;
  transform: scale(1.05);
  filter: saturate(1.05);
  z-index: 0;
}

.bwp-feature-strip__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,51,79,0.20) 0%, rgba(5,51,79,0.55) 100%),
    radial-gradient(ellipse at center, rgba(5,51,79,0) 0%, rgba(3,38,58,0.75) 100%);
  z-index: 1;
}

.bwp-feature-strip__content {
  position: relative;
  z-index: 2;
  max-width: 60ch;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.bwp-feature-strip__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-teal);
  font-weight: 800;
  margin-bottom: 1rem;
}

.bwp-feature-strip__title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.bwp-feature-strip__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  margin: 0 auto;
  max-width: 50ch;
}

/* Section 3 — BWP venue card uses standard styling (no Festival Hub badge);
   competition-only treatment in this section per content brief */

/* ===================================================================
   SECTION 4 — Wellness Festival specifics
   =================================================================== */
.bwp-flythrough {
  width: 100%;
  height: clamp(560px, 85vh, 900px);
  margin: 3rem 0;
  background: #05334F;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.bwp-flythrough__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Left-side cinematic panel: three picture slots that progressively appear
   and remain visible. Floats on top of the Mapbox map. */
.bwp-flythrough__panel {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  bottom: 1.25rem;
  width: 420px;
  max-height: calc(100% - 2.5rem);
  z-index: 6;
  background: rgba(5, 51, 79, 0.9);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.1rem 1.25rem 1.25rem;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.bwp-flythrough__panel[data-mode="active"] {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.bwp-flythrough__panel-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin: 0 0 0.85rem;
  flex: 0 0 auto;
}

.bwp-flythrough__stops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  min-height: 0;
}

.bwp-flythrough__stop {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  flex: 1;
  min-height: 0;
}

.bwp-flythrough__stop.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bwp-flythrough__stop-image-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bwp-flythrough__stop-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bwp-flythrough__stop-caption {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.bwp-flythrough__stop-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-teal);
  flex: 0 0 auto;
}

.bwp-flythrough__stop-divider {
  color: rgba(255, 255, 255, 0.4);
  flex: 0 0 auto;
}

.bwp-flythrough__stop-name {
  font-family: var(--display);
  font-weight: 700;
  color: var(--paper);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile: panel moves below the map as a stacked column */
@media (max-width: 960px) {
  .bwp-flythrough {
    height: auto;
    min-height: clamp(420px, 60vh, 700px);
  }
  .bwp-flythrough__map { position: relative; height: 60vh; min-height: 360px; }
  .bwp-flythrough__panel {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: auto;
    max-height: none;
    margin: 1rem 1rem 0;
    transform: none;
  }
  .bwp-flythrough__stop-image-wrap { aspect-ratio: 16 / 9; max-height: 240px; }
}

/* Poster overlay shown before user plays the fly-through */
.bwp-flythrough__poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(5,51,79,0.85), rgba(3,38,58,0.7));
  z-index: 5;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.bwp-flythrough__poster-inner {
  text-align: center;
  color: #fff;
  padding: 2rem;
  pointer-events: auto;
}

.bwp-flythrough__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-teal);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.bwp-flythrough__title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: #fff;
}

.bwp-flythrough__sub {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: rgba(255,255,255,0.85);
  max-width: 36ch;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.bwp-flythrough__play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-teal);
  color: var(--pa-navy);
  border: 0;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,194,181,0.35);
}

.bwp-flythrough__play:hover {
  background: #2dd6c9;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,194,181,0.45);
}

.bwp-flythrough__play-icon {
  font-size: 0.85rem;
  transform: translateX(1px);
}

.bwp-flythrough__replay {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(5,51,79,0.85);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.bwp-flythrough__replay:hover {
  background: var(--accent-teal);
  color: var(--pa-navy);
  border-color: transparent;
}

.flythrough-fallback {
  padding: 2rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.zone-explorer__intro {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 65ch;
  margin: 0 0 1.5rem;
}

.zone-explorer {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1fr;
  gap: 2.5rem;
  margin: 1rem 0 2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .zone-explorer { grid-template-columns: 1fr; gap: 1.5rem; }
}

.zone-explorer__map {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: 0 12px 30px -16px rgba(5,51,79,0.18);
  overflow: hidden;
  height: clamp(560px, 80vh, 820px);
}

/* When the inner Mapbox container fills the wrapper */
.zone-explorer__map .mapboxgl-canvas-container { width: 100%; height: 100%; }

.zone-map-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--ink-mute);
  background: linear-gradient(135deg, var(--pa-navy-deep), var(--pa-navy));
  color: rgba(255,255,255,0.85);
}
.zone-map-fallback code {
  background: rgba(255,255,255,0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

/* Zone label pills (rendered inside each zone polygon) */
.zone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(255,255,255,0.96);
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--pa-navy);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5,51,79,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.zone-pill:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(5,51,79,0.45);
}
.zone-pill.is-selected {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(5,51,79,0.5);
}
.zone-pill__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--paper);
  font-weight: 900;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.zone-pill__name { padding-right: 4px; }

/* Polygon hit area (invisible by default, fills on hover/select) */
.zone-shape__poly {
  transition: fill-opacity 0.2s ease, stroke-width 0.2s ease;
}
.zone-shape:hover .zone-shape__poly {
  fill-opacity: 0.35;
  stroke-width: 4;
}
.zone-shape:focus { outline: none; }
.zone-shape:focus .zone-shape__poly {
  fill-opacity: 0.35;
  stroke-width: 4;
}
.zone-shape.is-selected .zone-shape__poly {
  fill-opacity: 0.45;
  stroke-width: 5;
}

/* Number badge: white circle, coloured ring + number */
.zone-shape__badge {
  filter: drop-shadow(0 3px 6px rgba(5,51,79,0.45));
  transition: r 0.2s ease, stroke-width 0.2s ease;
}
.zone-shape:hover .zone-shape__badge {
  stroke-width: 5;
}
.zone-shape.is-selected .zone-shape__badge {
  stroke-width: 6;
}

/* Zone side panel */
.zone-explorer__panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px -16px rgba(5,51,79,0.18);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.zone-panel__header {
  padding: 1.5rem 1.75rem 1.25rem;
  color: var(--paper);
}

.zone-panel__number {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.25rem 0.65rem;
  background: rgba(0,0,0,0.18);
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.zone-panel__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  line-height: 1.15;
  margin: 0 0 0.35rem;
  color: var(--paper);
}

.zone-panel__subtitle {
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.zone-panel__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--accent-cream);
  overflow: hidden;
}
.zone-panel__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zone-panel__image-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.zone-panel__image-placeholder .dim {
  font-size: 0.72rem;
  font-family: monospace;
  margin-top: 0.4rem;
  color: var(--ink-mute);
}
.zone-panel__image.is-empty .zone-panel__image-placeholder {
  display: flex;
}

.zone-panel__body {
  padding: 1.5rem 1.75rem;
  flex: 1;
}

.zone-panel__description {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 1.25rem;
}

.zone-panel__activities-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.6rem;
}

.zone-panel__activities {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zone-panel__activities li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.zone-panel__activities li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-teal);
  border-radius: 50%;
  margin-top: 0.6rem;
  flex-shrink: 0;
}
.zone-panel__activities li:first-child { border-top: none; }

/* Wellness market context stat boxes */
.wellness-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

@media (max-width: 720px) {
  .wellness-stats { grid-template-columns: 1fr; }
}

.wellness-stat {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent-teal);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition-delay: var(--wellness-stat-delay, 0s);
}

.wellness-stat__value {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--pa-navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.wellness-stat__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* ===================================================================
   SECTION 5 — Mass Participation
   =================================================================== */
.mass__claim {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--pa-navy);
  max-width: 50ch;
}

/* Hero stat: huge centred number with subtitle */
.mass-hero {
  margin: 3.5rem auto 3rem;
  text-align: center;
}

.mass-hero__inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding: 0 1rem;
}

.mass-hero__inner::before,
.mass-hero__inner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-teal));
  transform: translateY(-50%);
}
.mass-hero__inner::before { right: 100%; background: linear-gradient(90deg, transparent, var(--accent-teal)); }
.mass-hero__inner::after { left: 100%; background: linear-gradient(90deg, var(--accent-teal), transparent); }

.mass-hero__value {
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--pa-navy);
  background: linear-gradient(135deg, var(--pa-navy) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mass-hero__label {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
}

/* Three breadth tags */
.mass-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0 3rem;
}

@media (max-width: 720px) {
  .mass-tags { grid-template-columns: 1fr; gap: 0.8rem; }
}

.mass-tag {
  padding: 1.1rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  border-top: 3px solid var(--accent-teal);
  text-align: left;
}

.mass-tag__title {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 0.35rem;
}

.mass-tag__values {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pa-navy);
  line-height: 1.3;
}

/* Two venue cards — image-backed, large */
.mass-venues {
  display: grid;
  grid-template-columns: 1.8fr 1fr;     /* BWP card 80% wider than Moreton Bay */
  gap: 1.5rem;
  margin: 0 0 3rem;
}

@media (max-width: 800px) {
  .mass-venues { grid-template-columns: 1fr; }
}

.mass-venue {
  position: relative;
  min-height: 560px;                    /* taller cards, more cinematic */
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  transition-delay: var(--mass-venue-delay, 0s);
  box-shadow: 0 18px 40px -16px rgba(5,51,79,0.25);
}

/* First card (BWP) is the lead — bigger headline, more breathing room */
.mass-venue:first-child {
  min-height: 620px;
}
.mass-venue:first-child .mass-venue__name {
  font-size: clamp(2rem, 4vw, 3rem);
}
.mass-venue:first-child .mass-venue__stat-value {
  font-size: clamp(3rem, 6vw, 4.5rem);
}
.mass-venue:first-child .mass-venue__description {
  font-size: 1.05rem;
  max-width: 50ch;
}

.mass-venue__image {
  position: absolute;
  inset: 0;
  background-color: var(--pa-navy-deep);  /* fallback if image missing */
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.6s ease;
}
.mass-venue:hover .mass-venue__image { transform: scale(1.04); }

.mass-venue__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(5,51,79,0.30) 0%,
    rgba(5,51,79,0.55) 50%,
    rgba(3,38,58,0.92) 100%);
  z-index: 1;
}

.mass-venue__content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.75rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--paper);
}

.mass-venue__timing {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: rgba(0,194,181,0.15);
  border: 1px solid rgba(0,194,181,0.45);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: auto;  /* pin to top */
}

.mass-venue__name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--paper);
}

.mass-venue__stat {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.mass-venue__stat-value {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-teal);
}

.mass-venue__stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
}

.mass-venue__description {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
  margin: 0;
  max-width: 38ch;
}

/* Come & try footer line */
.mass-cta {
  margin: 0;
  padding: 1.1rem 1.5rem;
  background: var(--paper-warm);
  border-left: 3px solid var(--accent-teal);
  border-radius: 4px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ===================================================================
   SECTION 6 — Mapbox container
   =================================================================== */
.section--mapbox { background: var(--paper-warm); }

.mapbox-container {
  position: relative;
  width: 100%;
  height: clamp(500px, 70vh, 800px);
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(5,51,79,0.25);
}

.map { width: 100%; height: 100%; }

/* Fallback when no Mapbox token */
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pa-navy-deep), var(--pa-navy));
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 2rem;
}
/* The hidden attribute must override display: flex above */
.map-fallback[hidden],
.map-venue-panel[hidden] {
  display: none !important;
}
.map-fallback p { margin: 0.4rem 0; }
.map-fallback code { background: rgba(255,255,255,0.12); padding: 0.1rem 0.4rem; border-radius: 3px; }

/* Custom Mapbox pins
   Anchored at CENTER so the dot sits exactly on the venue lat/lng.
   The label is absolutely positioned beneath the dot so it doesn't shift
   the dot's geometric centre. */
.map-pin {
  position: relative;
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.map-pin__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  background: var(--accent-teal);
  box-shadow: 0 4px 10px rgba(5,51,79,0.35), 0 0 0 6px rgba(0,194,181,0);
  transition: box-shadow 0.25s, transform 0.2s;
}
.map-pin:hover .map-pin__dot {
  box-shadow: 0 4px 12px rgba(5,51,79,0.45), 0 0 0 6px rgba(0,194,181,0.18);
  transform: translate(-50%, -50%) scale(1.12);
}

.map-pin--hub {
  width: 32px;
  height: 32px;
}
.map-pin--hub .map-pin__dot {
  width: 26px;
  height: 26px;
  border-width: 4px;
  animation: pinHubPulse 2.4s ease-in-out infinite;
}
@keyframes pinHubPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(5,51,79,0.45), 0 0 0 0 rgba(0,194,181,0.5); }
  50%      { box-shadow: 0 4px 12px rgba(5,51,79,0.45), 0 0 0 14px rgba(0,194,181,0); }
}

.map-pin__label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--pa-navy);
  background: var(--paper);
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(5,51,79,0.18);
  pointer-events: none;
}

/* Side panel that opens on pin click */
.map-venue-panel {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: min(340px, calc(100% - 3rem));
  max-height: calc(100% - 3rem);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px -10px rgba(5,51,79,0.3);
  z-index: 5;
}

.map-venue-panel__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.4rem;
  background: none;
  border: none;
  color: var(--ink-mute);
  cursor: pointer;
  line-height: 1;
}
.map-venue-panel__close:hover { color: var(--pa-navy); }

.map-venue-panel__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--pa-navy);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--pa-navy);
  line-height: 1.15;
}

.map-venue-panel__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.map-venue-panel__competition-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0.5rem 0 0.5rem;
}

.map-venue-panel__disciplines {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.map-venue-panel__disciplines li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule);
}
.map-venue-panel__disciplines li:first-child { border-top: none; padding-top: 0; }

.map-venue-panel__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-teal);
}
.map-venue-panel__link:hover { color: var(--pa-navy); }

.venue-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .venue-legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .venue-legend { grid-template-columns: 1fr; }
}

.venue-legend__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

.venue-legend__pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.4rem;
}

.venue-legend__body { flex: 1; }

.venue-legend__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--pa-navy);
  display: inline-block;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--pa-navy);
  margin-bottom: 0.5rem;
}

.venue-legend__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0 0.6rem;
}

.venue-legend__competition-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0.4rem 0 0.3rem;
}

.venue-legend__disciplines {
  list-style: none;
  padding: 0;
  margin: 0;
}
.venue-legend__disciplines li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.18rem 0;
  line-height: 1.35;
}

/* Role badge (used in panel + legend) */
.role-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--pa-navy);
  border-radius: 3px;
  white-space: nowrap;
}

/* Distance ring caption labels (rendered as Mapbox markers) */
.map-ring-label {
  background: rgba(255,255,255,0.95);
  border: 1.5px solid var(--pa-navy);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--pa-navy);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(5,51,79,0.18);
}

/* ===================================================================
   SECTION 7 — Brisbane Runway
   =================================================================== */
:root {
  --olympics-gold: #E89623;  /* Brisbane 2032 gold accent */
}

.section--runway {
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(0,194,181,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle horizontal motion lines that suggest a runway */
.section--runway::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0%, transparent calc(100% - 1px), rgba(5,51,79,0.04) 100%),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(5,51,79,0.025) 80px, rgba(5,51,79,0.025) 81px);
  pointer-events: none;
  z-index: 0;
}
.section--runway > .container { position: relative; z-index: 1; }

.runway-timeline {
  margin: 4rem 0 3rem;
  position: relative;
}

/* The track wraps the axis + lanes so they share the same horizontal space */
.runway-track {
  position: relative;
  margin-left: 220px;  /* leaves room for lane labels on the left */
}

@media (max-width: 900px) {
  .runway-track { margin-left: 0; }
}

/* ----- Year axis ----- */
.runway-axis {
  position: relative;
  height: 96px;
  margin-bottom: 2rem;
  overflow: visible;
}

.runway-axis__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;     /* line sits 36px ABOVE the year-label baseline */
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-teal) 60%, var(--accent-sand) 100%);
  border-radius: 2px;
}

/* The 2030 / 2032 column highlights live INSIDE .runway-lanes-wrap so they
   only span the lanes area, never the axis or the legacy tiles below */
.runway-lanes-wrap {
  position: relative;
}

.runway-anchor-column {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  margin-left: -40px;
  background: linear-gradient(180deg, rgba(0,194,181,0.18) 0%, rgba(0,194,181,0.06) 50%, rgba(0,194,181,0.02) 100%);
  border-left: 1px dashed rgba(0,194,181,0.5);
  border-right: 1px dashed rgba(0,194,181,0.5);
  pointer-events: none;
  z-index: 0;
}
.runway-anchor-column.is-olympics {
  background: linear-gradient(180deg, rgba(232,150,35,0.18) 0%, rgba(232,150,35,0.06) 50%, rgba(232,150,35,0.02) 100%);
  border-color: rgba(232,150,35,0.5);
}

.runway-axis__year {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.runway-axis__tick {
  width: 2px;
  height: 16px;
  background: var(--accent-blue);
  margin-bottom: 22px;     /* clear gap between tick/line and year label */
  border-radius: 2px;
}

.runway-axis__year-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.runway-axis__year.is-anchor .runway-axis__tick { width: 4px; height: 22px; }
.runway-axis__year.is-anchor .runway-axis__year-label {
  color: var(--pa-navy);
  font-size: 1.1rem;
}
.runway-axis__year.is-wpg .runway-axis__tick { background: var(--accent-teal); }
.runway-axis__year.is-olympics .runway-axis__tick { background: var(--olympics-gold); }

/* Anchor tag (WPG, B2032) sits ABOVE the year text, sized to match the column width */
.runway-axis__anchor-tag {
  position: absolute;
  bottom: calc(100% + 6px);  /* small gap above the tick, no connector */
  left: 50%;
  transform: translateX(-50%);
  width: 80px;  /* matches the highlight column width below */
  text-align: center;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 6px 0;
  border-radius: 4px;
  background: var(--accent-teal);
  box-shadow: 0 6px 14px rgba(0,194,181,0.35);
}
.runway-axis__year.is-olympics .runway-axis__anchor-tag {
  background: var(--olympics-gold);
  box-shadow: 0 6px 14px rgba(232,150,35,0.35);
}

/* ----- Lanes ----- */
.runway-lanes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.runway-lane {
  display: flex;
  align-items: center;
  position: relative;
  transition-delay: var(--lane-delay, 0s);
  padding: 1rem 0;
}

.runway-lane__name {
  position: absolute;
  right: calc(100% + 24px);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--pa-navy);
  white-space: nowrap;
  width: 200px;
  justify-content: flex-end;
  text-align: right;
}

.runway-lane__name-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lane-colour, var(--pa-navy));
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--lane-colour, var(--pa-navy));
}

@media (max-width: 900px) {
  .runway-lane { flex-direction: column; align-items: flex-start; }
  .runway-lane__name {
    position: static;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 0.6rem;
  }
}

.runway-lane__track {
  position: relative;
  width: 100%;
  height: 56px;
}

.runway-lane__line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  margin-top: -1px;
  background: var(--lane-colour, var(--pa-navy));
  opacity: 0.25;
  border-radius: 2px;
}

/* Milestone is a clickable button positioned at top:50% (the lane line)
   The dot is absolute-positioned with translate(-50%, -50%) so its CENTRE
   sits exactly on the lane line — visually predictable, no flex margin tricks */
.runway-milestone {
  position: absolute;
  top: 50%;
  transform: translateX(-50%);
  z-index: 2;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  width: 14px;
  height: 14px;
  font-family: inherit;
}
.runway-milestone.is-anchor {
  width: 20px;
  height: 20px;
}

.runway-milestone__dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);  /* dot centred on milestone's top-left point */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lane-colour, var(--pa-navy));
  border: 3px solid var(--paper);
  box-shadow: 0 4px 10px rgba(5,51,79,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.runway-milestone.is-anchor .runway-milestone__dot {
  width: 20px;
  height: 20px;
  border-width: 4px;
  box-shadow: 0 0 0 4px rgba(0,194,181,0.18), 0 6px 14px rgba(5,51,79,0.25);
}
.runway-milestone:hover .runway-milestone__dot {
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 0 0 4px rgba(5,51,79,0.08), 0 6px 16px rgba(5,51,79,0.3);
}

/* Description card — positioned below the dot, fades in on hover */
.runway-milestone__card {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 200px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--lane-colour, var(--pa-navy));
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 12px 28px rgba(5,51,79,0.18);
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.runway-milestone:hover .runway-milestone__card,
.runway-milestone:focus-within .runway-milestone__card {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* On the LAST lane, flip card above so it doesn't fall outside the section */
.runway-lane:last-child .runway-milestone__card {
  top: auto;
  bottom: calc(100% + 14px);
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--lane-colour, var(--pa-navy));
  transform: translate(-50%, 6px);
}
.runway-lane:last-child .runway-milestone:hover .runway-milestone__card {
  transform: translate(-50%, 0);
}


.runway-milestone__year {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--lane-colour, var(--pa-navy));
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.runway-milestone__event {
  display: block;
  color: var(--ink-soft);
}

/* On hover lift the dot */
.runway-milestone:hover .runway-milestone__dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(5,51,79,0.08), 0 6px 16px rgba(5,51,79,0.3);
}

/* ----- Legacy tiles ----- */
.legacy-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 3rem 0 2rem;
}

.legacy-tile {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transition-delay: var(--tile-delay, 0s);
  overflow: hidden;
}

.legacy-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.legacy-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -16px rgba(5,51,79,0.25);
  border-color: rgba(0,194,181,0.4);
}

.legacy-tile:hover::before { transform: scaleX(1); }

.legacy-tile__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,194,181,0.08);
  border-radius: 8px;
}

.legacy-tile__icon svg {
  width: 26px;
  height: 26px;
}

.legacy-tile__title {
  font-family: var(--display);
  color: var(--pa-navy);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
  line-height: 1.25;
}

.legacy-tile__body {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* On smaller screens, milestone cards are too narrow when stacked - simplify */
@media (max-width: 720px) {
  .runway-axis { height: 60px; }
  .runway-milestone__card {
    width: 140px;
    font-size: 0.72rem;
    padding: 0.45rem 0.55rem;
  }
}

/* ===================================================================
   SECTION 8 — Legacy & Policy Alignment (Constellation infographic)
   =================================================================== */
.section--legacy {
  background:
    radial-gradient(ellipse 70% 60% at 50% 70%, rgba(0,194,181,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(50,55,120,0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
  overflow: visible;
}

/* ----- Constellation canvas wrapper ----- */
.constellation {
  position: relative;
  margin: 1.5rem auto 2rem;
  max-width: 1080px;
  padding: 0 var(--gutter);
}

.constellation__canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 760px;
  margin: 0 auto;
}

.constellation__svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* ----- Stats overlay (top-left) ----- */
.constellation__stats {
  position: absolute;
  top: 1.5rem;
  left: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 2;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  padding: 0.9rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 8px 22px -10px rgba(5,51,79,0.18);
}

.constellation__stat { display: flex; align-items: baseline; gap: 0.5rem; }

.constellation__stat-value {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent-teal);
}

.constellation__stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
}

/* ----- Legend (bottom) ----- */
.constellation__legend {
  position: relative;
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  justify-content: center;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.78rem;
  max-width: 760px;
}

.constellation__legend-group { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.constellation__legend-title {
  display: block;
  width: 100%;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.35rem;
}

.constellation__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.constellation__legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.constellation__hint {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-style: italic;
  margin: 0.5rem 0 0;
}

/* ----- SVG nodes & lines ----- */
.constellation__node {
  cursor: pointer;
  transition: opacity 0.25s ease;
  outline: none;
}

.constellation__node circle {
  transition: transform 0.2s, filter 0.2s, stroke-width 0.2s;
  transform-origin: center;
  transform-box: fill-box;
}

.constellation__node:hover circle:first-child,
.constellation__node:focus circle:first-child {
  filter: drop-shadow(0 4px 14px rgba(5,51,79,0.4));
}

.constellation__node--prog circle:first-child { stroke-width: 3; }
.constellation__node--pri  circle:first-child { stroke-width: 2; }

/* Connection lines */
.constellation__line {
  transition: stroke-opacity 0.25s ease, stroke-width 0.25s ease;
}

/* Highlighted state when a node is hovered/locked */
.constellation__svg.is-highlighting .constellation__line {
  stroke-opacity: 0.04;
}

.constellation__svg.is-highlighting .constellation__line.is-active {
  stroke-opacity: 0.95;
  stroke-width: 2.5;
  filter: url(#glow);
}

.constellation__svg.is-highlighting .constellation__node.is-dim {
  opacity: 0.18;
}

.constellation__svg.is-highlighting .constellation__node.is-active circle:first-child,
.constellation__svg.is-highlighting .constellation__node.is-related circle:first-child {
  stroke-width: 4;
  filter: drop-shadow(0 4px 14px rgba(0,194,181,0.5));
}

.constellation__svg.is-highlighting .constellation__node.is-active circle:first-child {
  stroke-width: 5;
}

/* Priority label dims along with its node */
.constellation__svg.is-highlighting .constellation__node.is-dim .constellation__pri-label {
  opacity: 0.4;
}

/* ----- Detail panel (slides in from right) ----- */
.constellation__panel {
  position: absolute;
  top: 1.5rem;
  right: var(--gutter);
  width: min(320px, calc(100% - 3rem));
  max-height: calc(100% - 3rem);
  overflow-y: auto;
  background: var(--paper);
  border-radius: 10px;
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: 0 22px 50px -16px rgba(5,51,79,0.35);
  z-index: 4;
  border: 1px solid var(--rule);
}

.constellation__panel[hidden] { display: none; }

.constellation__close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  font-size: 1.6rem;
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}
.constellation__close:hover { color: var(--pa-navy); }

.constellation__panel-tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--pa-navy);
  padding: 4px 9px;
  border-radius: 3px;
  margin-bottom: 0.7rem;
}

.constellation__panel-name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pa-navy);
  margin: 0 0 0.6rem;
  line-height: 1.25;
}

.constellation__panel-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}

.constellation__panel-anchor {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}
.constellation__panel-anchor span {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.62rem;
  margin-right: 0.3rem;
}

.constellation__panel-frameworks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.85rem;
}
.constellation__panel-fw {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink-mute);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 3px;
}

.constellation__panel-list {
  border-top: 1px dashed var(--rule);
  padding-top: 0.8rem;
}

.constellation__panel-list-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}

.constellation__panel-chip {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 0.4rem 0.6rem;
  background: var(--paper-warm);
  border-radius: 4px;
  margin-bottom: 0.3rem;
  line-height: 1.35;
  font-weight: 600;
}
.constellation__panel-chip:last-child { margin-bottom: 0; }

.constellation__panel-empty {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--ink-mute);
}

/* ----- Mobile fallback: stack stats and legend below the canvas, panel becomes inline ----- */
@media (max-width: 720px) {
  .constellation__stats { position: static; margin-bottom: 1rem; flex-direction: row; gap: 1rem; }
  .constellation__stat-value { font-size: 1.3rem; }
  .constellation__panel {
    position: relative;
    top: 0; right: 0;
    width: 100%;
    margin-top: 1rem;
  }
  .constellation__pri-label { display: none; }
}

/* ----- Programme cards in 3 pillar columns ----- */
.legacy-programmes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}

@media (max-width: 900px) {
  .legacy-programmes { grid-template-columns: 1fr; }
}

.legacy-pillar { display: flex; flex-direction: column; gap: 1rem; }

.legacy-pillar__title {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 0.25rem;
  padding: 0 0 0.5rem;
  border-bottom: 2px solid var(--rule);
}
.legacy-pillar--community .legacy-pillar__title { color: var(--pillar-community); border-bottom-color: var(--pillar-community); }
.legacy-pillar--sustainability .legacy-pillar__title { color: var(--pillar-sustainability); border-bottom-color: var(--pillar-sustainability); }
.legacy-pillar--infrastructure .legacy-pillar__title { color: var(--pillar-infrastructure); border-bottom-color: var(--pillar-infrastructure); }

.legacy-pillar__cards { display: flex; flex-direction: column; gap: 0.85rem; }

.legacy-prog {
  position: relative;
  padding: 1.1rem 1.15rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  outline: none;
}

.legacy-pillar--community .legacy-prog { border-left: 3px solid var(--pillar-community); }
.legacy-pillar--sustainability .legacy-prog { border-left: 3px solid var(--pillar-sustainability); }
.legacy-pillar--infrastructure .legacy-prog { border-left: 3px solid var(--pillar-infrastructure); }

.legacy-prog:hover,
.legacy-prog.is-active {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(5,51,79,0.25);
  border-color: rgba(5,51,79,0.2);
}

.legacy-prog__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.legacy-prog__code {
  display: inline-block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--pa-navy);
  padding: 3px 8px;
  border-radius: 3px;
  min-width: 32px;
  text-align: center;
}
.legacy-pillar--community .legacy-prog__code { background: var(--pillar-community); }
.legacy-pillar--sustainability .legacy-prog__code { background: var(--pillar-sustainability); }
.legacy-pillar--infrastructure .legacy-prog__code { background: var(--pillar-infrastructure); }

.legacy-prog__flagship {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olympics-gold, #E89623);
  background: rgba(232,150,35,0.12);
  border: 1px solid rgba(232,150,35,0.4);
  padding: 2px 6px;
  border-radius: 3px;
}

.legacy-prog__name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--pa-navy);
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.legacy-prog__desc {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 0.55rem;
}

.legacy-prog__anchor {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink-mute);
  margin: 0 0 0.7rem;
}

.legacy-prog__anchor-label {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.62rem;
  margin-right: 0.3rem;
  color: var(--ink-mute);
}

.legacy-prog__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--rule);
}

/* ----- Priority tiles in 5x3 grid (or 3x5 vertical) ----- */
.legacy-priorities {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  margin: 2rem 0 1rem;
}

@media (max-width: 1100px) {
  .legacy-priorities { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .legacy-priorities { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .legacy-priorities { grid-template-columns: 1fr; }
}

.legacy-pri {
  position: relative;
  padding: 1rem 1rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
  outline: none;
}

.legacy-pri:hover,
.legacy-pri.is-active {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(5,51,79,0.25);
  border-color: rgba(0,194,181,0.5);
}

.legacy-pri__head { display: flex; gap: 0.5rem; align-items: flex-start; }

.legacy-pri__code {
  display: inline-block;
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: var(--accent-teal);
  padding: 3px 7px;
  border-radius: 3px;
  min-width: 32px;
  text-align: center;
}

.legacy-pri__title {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pa-navy);
  margin: 0;
}

.legacy-pri__frameworks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.legacy-fw {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 2px 5px;
  border-radius: 3px;
}

.legacy-pri__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--rule);
}

.legacy-pri__chips-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-right: 0.25rem;
}

.legacy-pri__no-prog {
  color: var(--ink-mute);
  font-size: 0.75rem;
}

/* ----- Chips (the codes shared between programmes and priorities) ----- */
.legacy-chip {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* ----- Bidirectional highlighting: when section is in highlight mode, dim all unrelated ----- */
.section--legacy.is-highlighting .legacy-prog,
.section--legacy.is-highlighting .legacy-pri {
  opacity: 0.32;
  filter: saturate(0.6);
}

.section--legacy.is-highlighting .legacy-prog.is-active,
.section--legacy.is-highlighting .legacy-prog.is-related,
.section--legacy.is-highlighting .legacy-pri.is-active,
.section--legacy.is-highlighting .legacy-pri.is-related {
  opacity: 1;
  filter: none;
}

.legacy-prog.is-active,
.legacy-pri.is-active {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0,194,181,0.18), 0 14px 30px -14px rgba(5,51,79,0.3);
}

.legacy-prog.is-related,
.legacy-pri.is-related {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 2px rgba(0,194,181,0.12);
}

/* Highlight matching chip codes when a card is active/related */
.legacy-prog.is-active .legacy-chip--priority,
.legacy-pri.is-active .legacy-chip--prog,
.legacy-prog.is-related .legacy-chip--priority,
.legacy-pri.is-related .legacy-chip--prog {
  background: var(--accent-teal);
  color: var(--paper);
  border-color: var(--accent-teal);
}

/* ===================================================================
   SECTION 07 — Legacy & Alignment three-column matrix
   =================================================================== */
.legacy-matrix {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.05fr;
  gap: 1.5rem;
  margin: 2.5rem 0 1.5rem;
}

@media (max-width: 1024px) {
  .legacy-matrix { grid-template-columns: 1fr; }
}

.legacy-col {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(5,51,79,0.08);
  border-radius: 10px;
  padding: 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
}

.legacy-col__head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-teal);
}

.legacy-col__count {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent-teal);
  line-height: 1;
  letter-spacing: -0.02em;
}

.legacy-col__title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pa-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.legacy-col__body { display: flex; flex-direction: column; gap: 1.1rem; }

.legacy-group { display: flex; flex-direction: column; gap: 0.5rem; }

.legacy-group__head {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pa-navy);
  opacity: 0.7;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(5,51,79,0.18);
}

.legacy-group__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legacy-group__list--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.7rem;
}

@media (max-width: 520px) {
  .legacy-group__list--grid { grid-template-columns: 1fr; }
}

/* --- Individual item baseline --- */
.legacy-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(5,51,79,0.08);
  background: rgba(255,255,255,0.6);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.2s ease, transform 0.15s ease;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--pa-navy);
}

.legacy-item:hover { background: rgba(0,194,181,0.07); border-color: var(--accent-teal); transform: translateX(2px); }

.legacy-item:focus-visible { outline: 2px solid var(--accent-teal); outline-offset: 2px; }

.legacy-item__code {
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--pa-navy);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  min-width: 1.9rem;
  text-align: center;
}

.legacy-item__body { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; }

.legacy-item__name { font-weight: 700; color: var(--pa-navy); font-size: 0.88rem; line-height: 1.3; }

.legacy-item__sub { font-weight: 400; color: rgba(5,51,79,0.7); font-size: 0.78rem; line-height: 1.35; }

/* --- Pillar / theme / tier accent colours on the code chip --- */
.legacy-item--community  .legacy-item__code { background: #00C2B5; }
.legacy-item--sustainability .legacy-item__code { background: #2E8B57; }
.legacy-item--infrastructure .legacy-item__code { background: #323778; }

.legacy-item--theme-tourism     .legacy-item__code { background: #E89623; }
.legacy-item--theme-sport       .legacy-item__code { background: #4BABC5; }
.legacy-item--theme-inclusion   .legacy-item__code { background: #9B59B6; }
.legacy-item--theme-environment .legacy-item__code { background: #27AE60; }

/* Frameworks have no code chip; use coloured left border by tier */
.legacy-item--framework { border-left: 3px solid rgba(5,51,79,0.25); padding-left: 0.7rem; }
.legacy-item--tier-federal  { border-left-color: #E89623; }
.legacy-item--tier-state    { border-left-color: #00C2B5; }
.legacy-item--tier-local    { border-left-color: #4BABC5; }
.legacy-item--tier-industry { border-left-color: #9B59B6; }

/* --- Active / related / dim states triggered by JS --- */
.legacy-matrix.is-active-state .legacy-item.is-dim { opacity: 0.28; }
.legacy-matrix.is-active-state .legacy-item.is-related {
  border-color: var(--accent-teal);
  background: rgba(0,194,181,0.1);
}
.legacy-matrix.is-active-state .legacy-item.is-active {
  border-color: var(--accent-teal);
  background: rgba(0,194,181,0.22);
  box-shadow: 0 4px 14px rgba(0,194,181,0.25);
  transform: translateX(3px);
}
.legacy-item.is-pinned::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 6px var(--accent-teal);
}
.legacy-item.is-pinned { position: relative; padding-right: 1.5rem; }

.legacy-matrix__hint {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(5,51,79,0.65);
  font-style: italic;
  margin: 0.5rem 0 0;
}

/* ===================================================================
   SECTION 06 — The Impact (was The Ask)
   =================================================================== */
.section--impact {
  background: var(--pa-navy);
  color: var(--paper);
}

.section--impact .section-label {
  color: var(--accent-sand);
  border-bottom-color: var(--accent-coral);
}

.section--impact .section-headline,
.section--impact .block-heading { color: var(--paper); }

.section--impact .section-narrative,
.section--impact .section-subhead { color: rgba(255,255,255,0.85); }

.section--impact .block-heading {
  margin-top: 4rem;
  text-align: center;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
}

/* Block 2 — Impact highlights tiles */
.impact-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 3rem 0;
}

@media (max-width: 960px) {
  .impact-highlights { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .impact-highlights { grid-template-columns: 1fr; }
}

.impact-tile {
  text-align: center;
  padding: 2rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.impact-tile:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: var(--accent-teal);
}

.impact-tile__headline {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: var(--accent-teal);
  line-height: 1;
  letter-spacing: -0.01em;
}

.impact-tile__sub {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
}

/* Block 3 — ROI banner */
.impact-roi-banner {
  margin: 4rem 0 3.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,194,181,0.12) 0%, rgba(75,171,197,0.08) 100%);
  border: 1px solid rgba(0,194,181,0.35);
  border-left: 4px solid var(--accent-teal);
  border-radius: 8px;
}

.impact-roi-banner__lead {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--paper);
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}

.impact-roi-banner__body {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

/* Block 4 — Three-tier government cards */
.impact-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 1.5rem;
}

@media (max-width: 960px) {
  .impact-tiers { grid-template-columns: 1fr; }
}

.impact-tier {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 4px solid var(--accent-sand);
  border-radius: 10px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.impact-tier:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.06);
}

.impact-tier--federal { border-top-color: var(--accent-coral, #E89623); }
.impact-tier--state { border-top-color: var(--accent-teal); }
.impact-tier--local { border-top-color: var(--accent-indigo, #4BABC5); }

.impact-tier__header {
  margin-bottom: 1rem;
}

.impact-tier__name {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--paper);
  margin: 0 0 0.35rem;
  letter-spacing: 0.01em;
}

.impact-tier__subtitle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.4;
}

.impact-tier__total {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.impact-tier__total-amount {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent-sand);
  line-height: 1;
  letter-spacing: -0.01em;
}

.impact-tier__total-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.impact-tier__fy-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
}

.impact-tier__fy-step {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
}

.impact-tier__fy-step strong {
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.impact-tier__fy-arrow {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
}

@media (max-width: 960px) {
  .impact-tier__fy-line { flex-wrap: wrap; justify-content: flex-start; gap: 0.4rem; font-size: 0.82rem; }
  .impact-tier__fy-step strong { font-size: 0.72rem; }
}

.impact-tier__hero-benefit {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--paper);
  margin: 0 0 1rem;
  padding: 0;
  letter-spacing: 0.01em;
}

.impact-tier__supporting {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin: 0;
  margin-top: auto;
}

/* Closing CTA (still used by Impact section) */
.closing-cta {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  font-weight: 700;
  color: var(--accent-sand);
  margin: 4rem auto 0;
  text-align: center;
  max-width: 38ch;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  padding: 2rem 0;
  background: var(--pa-navy-deep);
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  text-align: center;
}

/* ===================================================================
   Reveal animation utility (used by JS scroll observer)
   =================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
