/* ──────────────────────────────────────────────────────────────────────────
   Impact Report (impact.html) — page-scoped styles.
   Kore-compliant: no inline <style> blocks, no style="..." attributes.
   Page-local color palette is intentional (data-viz palette differs from
   the marketing tokens in base.css). All widths/heights for static
   data segments are baked in here as modifier classes.
   ──────────────────────────────────────────────────────────────────────── */

.impact {
  --impact-navy: #071b52;
  --impact-deep: #003057;
  --impact-blue: #3e93eb;
  --impact-cyan: #7fdde0;
  --impact-green: #20a865;
  --impact-orange: #ff7b54;
  --impact-amber: #ffb000;
  --impact-ink: #172033;
  --impact-muted: #667085;
  --impact-line: #d8e6f5;
  --impact-card: #ffffff;
  --impact-bg-soft: #f5fbff;

  background: linear-gradient(135deg, #f5fbff, #eaf5ff 45%, #f8fffb);
  color: var(--impact-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

/* ── Hero ── */
.impact__hero {
  padding: 44px 6vw 40px;
  background:
    radial-gradient(circle at 20% 20%, #42b9ff55, transparent 30%),
    linear-gradient(120deg, var(--impact-navy), #0c5599 60%, #009ee2);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
/* Soft ambient glow, top-right (balances the cyan glow built into the hero
   gradient at top-left). Decorative only. */
.impact__hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}
.impact__eyebrow {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 15px;
  text-transform: uppercase;
  opacity: 0.94;
  margin: 0;
}
.impact__title {
  margin: 16px 0 8px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.impact__lede {
  margin: 0;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: balance;
}
.impact__lede strong {
  font-weight: 800;
  color: #aee6ff;
}

/* Hero composition bar: one proportional bar over the FY2026 reach, rendered by
   impact.js from HERO_SEGMENTS. Verified program segments are solid brand
   colors; community is hatched translucent white so the estimate reads as an
   estimate. The legend below carries the numbers (bar is aria-hidden). */
.impact__composition {
  margin-top: 26px;
  max-width: 760px;
}
.impact__nowrap {
  white-space: nowrap;
}
.impact__comp-bar {
  display: flex;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.impact__comp-seg {
  flex: 0 0 auto;
  height: 100%;
  width: 0;
  transition: width 0.9s ease;
}
.impact__comp-seg:not(:last-child) {
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.4);
}
.impact__comp-seg--blue {
  background: linear-gradient(90deg, var(--impact-blue), var(--impact-cyan));
}
.impact__comp-seg--orange {
  background: linear-gradient(90deg, var(--impact-orange), #ffc06d);
}
.impact__comp-seg--green {
  background: linear-gradient(90deg, var(--impact-green), #89d86b);
}
.impact__comp-seg--community {
  background: linear-gradient(90deg, #7b61ff, #a78bfa);
}
.impact__comp-legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.impact__comp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
}
.impact__comp-dot {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.impact__comp-dot--blue {
  background: var(--impact-cyan);
}
.impact__comp-dot--orange {
  background: var(--impact-orange);
}
.impact__comp-dot--green {
  background: #89d86b;
}
.impact__comp-dot--community {
  background: #7b61ff;
}
.impact__comp-name {
  font-weight: 700;
}
.impact__comp-val {
  font-weight: 800;
  color: #ffffff;
}

/* ── Layout ── */
.impact__main {
  padding: 28px 6vw 50px;
}
.impact__grid {
  display: grid;
  gap: 18px;
}
.impact__grid--kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1180px;
  margin: 24px auto 0;
}

/* Stat-card sections (learning / STEAM turnout / demand): share the 1180 width
   + section rhythm; cards are centered so 2-3 read as intentional, not stuck in
   a 4-up grid. */
.impact__programs,
.impact__outcomes,
.impact__demand {
  max-width: 1180px;
  margin: 64px auto;
}
.impact__stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.impact__stat-row .impact__card {
  flex: 1 1 260px;
  max-width: 360px;
}

/* ── Inside the programs: per-program retention funnel ──
   Centered tiers narrow by stage (width set inline by impact.js, per-program
   scale). Soft accent tint + navy text keeps every tier AA-legible; the
   narrowing IS the visual (no motion). */
.impact__funnels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
}
.impact__funnel {
  flex: 1 1 260px;
  max-width: 340px;
  --funnel-accent: var(--impact-blue);
}
.impact__funnel--blue {
  --funnel-accent: #3e93eb;
}
.impact__funnel--orange {
  --funnel-accent: #ff7b54;
}
.impact__funnel--green {
  --funnel-accent: #20a865;
}
.impact__funnel-name {
  margin: 0 0 16px;
  text-align: center;
  font-size: 18px;
  color: var(--impact-navy);
}
.impact__funnel-name::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: var(--funnel-accent);
}
.impact__funnel-tiers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}
.impact__funnel-tier {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--funnel-accent) 16%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--funnel-accent) 32%, #ffffff);
  transition:
    opacity var(--transition-reveal),
    transform var(--transition-reveal);
}
/* Faint funnel "neck" bridging each tier down to the next, so the narrowing
   reads as a continuous funnel. Decorative (no motion). */
.impact__funnel-tier:not(:first-child)::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 20px;
  height: 11px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--funnel-accent) 26%, #ffffff);
  clip-path: polygon(0 0, 100% 0, 68% 100%, 32% 100%);
}
.impact__funnel-val {
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--impact-navy);
}
.impact__funnel-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--impact-muted);
  white-space: nowrap;
}
.impact__funnel-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  font-style: italic;
  color: var(--impact-muted);
}

/* Scroll reveal: impact.js adds .is-armed (hide) right after render, then
   .is-revealed on scroll-in (tiers slide up + stack top-to-bottom). JS-controlled
   (no dependency on the global .js class), so a slow/failed module never leaves
   the tiers stuck. Reduced motion = never armed (tiers stay put). */
.impact__funnels.is-armed:not(.is-revealed) .impact__funnel-tier {
  opacity: 0;
  transform: translateY(28px);
}
.impact__funnel-tier:nth-child(2) {
  transition-delay: 0.16s;
}
.impact__funnel-tier:nth-child(3) {
  transition-delay: 0.32s;
}

/* ── Learning outcomes: editorial statement (big gradient numbers in prose) ── */
.impact__learning-statement {
  max-width: 760px;
  margin: 6px auto 0;
  text-align: center;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.6;
  color: var(--impact-ink);
  text-wrap: balance;
}
.impact__learning-num {
  font-weight: 900;
  font-size: 1.5em;
  letter-spacing: -0.03em;
  background: linear-gradient(
    120deg,
    var(--impact-deep),
    var(--impact-blue) 62%,
    var(--impact-cyan)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Demand pictograph (one figure per child who could not be seated) ── */
.impact__pictograph {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.impact__pict-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.impact__pict-fig {
  width: 16px;
  height: 16px;
}
.impact__pict-fig--orange {
  color: var(--impact-orange);
}
.impact__pict-fig--green {
  color: var(--impact-green);
}
.impact__pict-key {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  margin: 20px 0 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--impact-navy);
}
.impact__pict-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.impact__pict-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.impact__pict-dot--orange {
  background: var(--impact-orange);
}
.impact__pict-dot--green {
  background: var(--impact-green);
}
.impact__pict-cap {
  margin: 12px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--impact-muted);
}
/* Figures pop in with a brief stagger on reveal; gated to no-preference so
   reduced-motion users get them instantly with no staggered build. */
@media (prefers-reduced-motion: no-preference) {
  .js .impact__pict-fig {
    opacity: 0;
    transform: scale(0.4);
    transition:
      opacity 0.4s ease,
      transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
    transition-delay: calc(var(--fig-i, 0) * 9ms);
  }
  .impact__pictograph.is-revealed .impact__pict-fig {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Cards ── */
.impact__card {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--impact-line);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(7, 27, 82, 0.1);
  padding: 22px;
}

/* ── KPIs ── */
.impact__kpi-label {
  color: var(--impact-muted);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.impact__kpi-num {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin: 8px 0 4px;
  color: var(--impact-navy);
}
.impact__kpi-hint {
  color: var(--impact-muted);
  font-size: 13px;
  line-height: 1.35;
}

/* ── KPI card identity (color accent + line icon, GCO-115) ──
   Each strip card carries a semantic accent (--kpi-accent) on a colored top
   border + a tinted icon chip, plus a subtle hover lift. The lift transition is
   covered by the global base.css reduced-motion no-op. */
.impact__card--kpi {
  border-top: 4px solid var(--kpi-accent, var(--impact-blue));
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.impact__card--kpi:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(7, 27, 82, 0.16);
}
.impact__card--blue {
  --kpi-accent: #3e93eb;
}
.impact__card--cyan {
  --kpi-accent: #2fa9ad;
}
.impact__card--green {
  --kpi-accent: #20a865;
}
.impact__card--orange {
  --kpi-accent: #ff7b54;
}
.impact__kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--kpi-accent, var(--impact-blue));
  background: color-mix(in srgb, var(--kpi-accent, var(--impact-blue)) 14%, transparent);
}
.impact__kpi-icon svg {
  width: 22px;
  height: 22px;
}

/* ── Year-over-year growth: the "leap" dumbbell (full-width panel) ───────────
   Per program, ONE shared-scale track: a hollow FY2025 dot and a solid program-
   color FY2026 dot joined by a connector whose length is the size of the leap.
   The connector's left/width are set inline by impact.js; the grow transition is
   covered by the global base.css reduced-motion no-op. */
.impact__growth-section {
  max-width: 1180px;
  margin: 64px auto;
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #f6fbff);
  box-shadow: 0 18px 42px rgba(0, 48, 87, 0.1);
}
.impact__growth-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 6px;
}
.impact__growth-header h2 {
  margin: 0;
  color: var(--impact-deep);
  font-size: 36px;
}
.impact__growth-header p {
  color: #51697d;
  font-size: 16px;
  line-height: 1.55;
}
/* Legend sits over the numbers column (the 3rd column of each .impact__leap
   row), right-aligned so it reads as a quiet caption for the "from -> to"
   numbers rather than a control. Small muted keys, no button/pill look. */
.impact__leap-legend {
  display: grid;
  grid-template-columns: 150px 1fr 96px;
  gap: 20px;
  margin: 0 0 16px;
}
.impact__leap-legend-keys {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--impact-muted);
  white-space: nowrap;
}
.impact__leap-legend-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.impact__leap-legend-arrow {
  color: var(--impact-muted);
}
.impact__leap-key {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.impact__leap-key--from {
  border: 2px solid #b9c9da;
  background: #ffffff;
}
.impact__leap-key--to {
  background: var(--impact-deep);
}
.impact__leaps {
  display: grid;
  gap: 24px;
}
.impact__leap {
  display: grid;
  grid-template-columns: 150px 1fr 96px;
  align-items: center;
  gap: 20px;
  --leap-accent: var(--impact-blue);
}
.impact__leap--blue {
  --leap-accent: #3e93eb;
}
.impact__leap--orange {
  --leap-accent: #ff7b54;
}
.impact__leap--green {
  --leap-accent: #20a865;
}
.impact__leap-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.impact__leap-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--impact-navy);
}
.impact__leap-words {
  font-weight: 700;
  font-size: 13px;
  color: var(--leap-accent);
}
.impact__leap-track {
  position: relative;
  height: 24px;
}
.impact__leap-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: #e6eef7;
}
.impact__leap-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 8px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--leap-accent) 45%, #ffffff),
    var(--leap-accent)
  );
  transition: width 0.9s ease;
}
.impact__leap-dot {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.impact__leap-dot--from {
  border: 3px solid #b9c9da;
  background: #ffffff;
  z-index: 2;
}
.impact__leap-dot--to {
  background: var(--leap-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--leap-accent) 22%, transparent);
  z-index: 3;
}
.impact__leap-nums {
  text-align: right;
  font-weight: 800;
  font-size: 15px;
  color: var(--impact-deep);
  white-space: nowrap;
}

/* ── Section eyebrow (shared: islands + community) ── */
.impact__gallery-eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2fa9ad;
  margin: 0 0 8px;
}
/* ── Breeze mascot (standalone) ── */
/* ── Mission close: Breeze flying over a gradient call-out banner (bookends the
   hero's gradient), centered, on a spotlight glow. The mascot overflows the top
   edge for the "fly-in." ── */
.impact__close {
  position: relative;
  max-width: 760px;
  margin: 74px auto 8px;
  padding: 0 48px 46px;
  border-radius: 28px;
  background: linear-gradient(120deg, var(--impact-navy), #0c5599 60%, #009ee2);
  color: #ffffff;
  text-align: center;
}
.impact__close-mascot {
  position: relative;
  width: 220px;
  margin: 0 auto;
}
.impact__close-mascot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 290px;
  height: 290px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.2),
    transparent 62%
  );
  pointer-events: none;
}
.impact__close-mascot img {
  position: relative;
  display: block;
  width: 220px;
  height: auto;
  margin: -10px auto 0;
  filter: drop-shadow(0 22px 30px rgba(0, 48, 87, 0.45));
}
.impact__close-meet {
  margin: 16px 0 6px;
  font-size: 24px;
  font-weight: 800;
}
.impact__close-label {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.6;
}
.impact__close-mission {
  max-width: 600px;
  margin: 16px auto 24px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: balance;
}
.impact__close-cta {
  background: #ffffff;
  color: var(--impact-navy);
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 999px;
}
/* Breeze gently floats (she is airborne). Gated to no-preference so reduced
   motion holds her still. */
@media (prefers-reduced-motion: no-preference) {
  .impact__close-mascot img {
    animation: impact-float 4.2s ease-in-out infinite;
  }
}
@keyframes impact-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@media (max-width: 600px) {
  .impact__close {
    margin-top: 72px;
    padding: 0 22px 38px;
  }
  .impact__close-mascot,
  .impact__close-mascot img {
    width: 190px;
  }
  .impact__close-mascot img {
    margin-top: -8px;
  }
}

/* ── Island stats section ── */
.impact__islands {
  max-width: 1180px;
  margin: 64px auto;
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f4fbff, #ffffff);
  box-shadow: 0 18px 42px rgba(0, 48, 87, 0.1);
}
.impact__islands-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 28px;
}
.impact__islands-header h2 {
  margin: 0;
  color: var(--impact-deep);
  font-size: 36px;
}
.impact__islands-header p {
  color: #51697d;
  font-size: 16px;
  line-height: 1.55;
}
/* Map + shared detail panel side by side; stacks on narrow screens. */
.impact__map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 28px;
  align-items: center;
  margin-top: 6px;
}
.impact__map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 16px 16px 8px;
  border-radius: 24px;
  border: 1px solid #b9d8ee;
  background: radial-gradient(circle at 50% 30%, #e2f3fd 0%, #c4e6f7 55%, #a9d8f0 100%);
}
/* Faint nautical depth rings so the islands read as land in the sea. */
.impact__map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-radial-gradient(
    circle at 50% 36%,
    transparent 0 27px,
    rgba(0, 92, 150, 0.05) 27px 29px
  );
}
.impact__map-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.impact__map-hint {
  margin: 4px 0 2px;
  text-align: center;
  color: var(--impact-muted);
  font-size: 13px;
}

/* Interactive islands (image silhouettes inside focusable role=button groups) */
.impact__isle {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease;
}
/* Per-island accent hue (used only for non-text cues: glow + dot + hairline). */
.impact__isle--stx {
  --isle-accent: #2fa9ad;
}
.impact__isle--stt {
  --isle-accent: #14a85a;
}
.impact__isle--stj {
  --isle-accent: #f0a500;
}
.impact__isle-shape {
  opacity: 0.82;
  filter: drop-shadow(0 4px 5px rgba(0, 40, 75, 0.22));
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.impact__isle:hover .impact__isle-shape {
  opacity: 0.95;
}
.impact__isle.is-active {
  transform: scale(1.04);
}
.impact__isle.is-active .impact__isle-shape {
  opacity: 1;
  filter: drop-shadow(0 5px 12px color-mix(in srgb, var(--isle-accent, #2fa9ad) 50%, transparent));
}
.impact__isle:focus {
  outline: none;
}
.impact__isle:focus-visible .impact__isle-shape {
  opacity: 1;
  filter: drop-shadow(0 0 1px #003057)
    drop-shadow(0 0 7px var(--isle-accent, #2fa9ad));
}
.impact__isle-label {
  fill: var(--impact-deep);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  pointer-events: none;
}

/* Travel barrier: dotted links + endpoint dots + captions */
.impact__barrier {
  pointer-events: none;
}
.impact__barrier-link {
  stroke: #94aec6;
  stroke-width: 2.5;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}
.impact__barrier-dot {
  fill: #2fa9ad;
}
.impact__barrier-label {
  fill: #5b7186;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Breeze flies the ferry + fly/sail routes once when the map scrolls in
   (impact.js adds .is-traveling). Gated to no-preference so reduced motion
   keeps her hidden/still. The travel layer never blocks island taps. */
.impact__travel {
  pointer-events: none;
}
.impact__travel-breeze {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 2px 3px rgba(0, 40, 75, 0.32));
}
@media (prefers-reduced-motion: no-preference) {
  .impact__map.is-traveling .impact__travel-breeze--fly {
    animation: impact-travel-fly 3.4s ease-in-out 0.5s 1 both;
  }
  .impact__map.is-traveling .impact__travel-breeze--ferry {
    animation: impact-travel-ferry 2.4s ease-in-out 4s 1 both;
  }
}
@keyframes impact-travel-ferry {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  16% {
    opacity: 0.96;
  }
  84% {
    opacity: 0.96;
  }
  100% {
    transform: translate(80px, 3px);
    opacity: 0;
  }
}
@keyframes impact-travel-fly {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.96;
  }
  88% {
    opacity: 0.96;
  }
  100% {
    transform: translate(14px, -142px);
    opacity: 0;
  }
}

/* Shared detail panel (content rendered from ISLANDS by impact.js) */
.impact__island-panel {
  min-height: 248px;
  padding: 24px 26px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--impact-line);
  border-top: 4px solid var(--panel-accent, var(--impact-line));
  box-shadow: 0 12px 30px rgba(0, 48, 87, 0.08);
}
.impact__island-panel--stx {
  --panel-accent: #2fa9ad;
}
.impact__island-panel--stt {
  --panel-accent: #14a85a;
}
.impact__island-panel--stj {
  --panel-accent: #f0a500;
}
.impact__island-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 26px;
  color: var(--impact-deep);
}
.impact__island-name::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--panel-accent, var(--impact-deep));
}
.impact__island-blurb {
  margin: 0 0 16px;
  color: #566c7f;
  font-size: 15px;
  line-height: 1.5;
}
.impact__island-stats {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 16px;
  align-items: baseline;
}
.impact__island-stats dt,
.impact__island-stats dd {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 48, 87, 0.08);
}
.impact__island-stats dt {
  color: #40566b;
  font-size: 14px;
}
.impact__island-stats dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
  font-size: 18px;
  color: var(--impact-deep);
}
.impact__island-notes {
  max-width: 960px;
  margin: 24px auto 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--impact-bg-soft);
  border: 1px solid var(--impact-line);
  color: #5b6f80;
  font-size: 13px;
  line-height: 1.55;
}
.impact__island-notes li + li {
  margin-top: 7px;
}

/* ── Community engagement stacked bars ── */
.impact__community {
  margin: 64px auto;
  max-width: 1180px;
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #f6fbff);
  box-shadow: 0 18px 42px rgba(0, 48, 87, 0.1);
}
.impact__community-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 34px;
}
.impact__community-header h2 {
  margin: 0;
  font-size: 36px;
  color: var(--impact-deep);
}
.impact__community-header p {
  color: #556b7c;
  line-height: 1.6;
  font-size: 16px;
}
.impact__bar-panel {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(0, 48, 87, 0.08);
  box-shadow: 0 10px 24px rgba(0, 48, 87, 0.08);
}
.impact__year-row {
  margin-bottom: 30px;
}
.impact__year-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 10px;
}
.impact__year-label strong {
  font-size: 28px;
  color: var(--impact-deep);
}
.impact__year-label span {
  font-weight: 800;
  color: #2fa9ad;
}
.impact__stacked-bar {
  display: flex;
  /* width is set inline by impact.js: starts at 0, grows to total / shared-max
     on scroll-in so the cross-year expansion is visible. */
  height: 78px;
  border-radius: 18px;
  background: #e6f1f7;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
/* FY2026 bar grows just after FY2025, so the jump past it reads. */
@media (prefers-reduced-motion: no-preference) {
  .impact__stacked-bar--fy26 {
    transition-delay: 0.5s;
  }
}
.impact__segment {
  position: relative;
  display: block;
  min-width: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}
.impact__stacked-bar > .impact__segment:first-child {
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}
.impact__stacked-bar > .impact__segment:last-child {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}
.impact__segment:hover,
.impact__segment:focus-visible {
  filter: brightness(1.08);
  transform: scaleY(1.05);
  z-index: 2;
}
.impact__segment:focus-visible {
  outline: 3px solid var(--impact-deep);
  outline-offset: 2px;
}

/* Event tooltip: revealed on hover, keyboard focus, and tap (focus). The
   aria-label on the segment carries the same text for assistive tech, so the
   tip itself is aria-hidden. Fade is the global reduced-motion no-op. */
.impact__segment-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  text-align: center;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--impact-deep);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 8px 20px rgba(0, 48, 87, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  z-index: 6;
}
.impact__segment-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--impact-deep);
}
.impact__segment:hover .impact__segment-tip,
.impact__segment:focus .impact__segment-tip,
.impact__segment:focus-visible .impact__segment-tip {
  opacity: 1;
  visibility: visible;
}

/* Segment colors */
.impact__segment--1 {
  background: #12355b;
}
.impact__segment--2 {
  background: #1e5f8c;
}
.impact__segment--3 {
  background: #2fa9ad;
}
.impact__segment--4 {
  background: #52b788;
}
.impact__segment--5 {
  background: #ffb000;
}
.impact__segment--6 {
  background: #ff8c42;
}
.impact__segment--7 {
  background: #ff6b5f;
}
.impact__segment--8 {
  background: #9b5de5;
}
.impact__segment--9 {
  background: #2a9d8f;
}
.impact__segment--10 {
  background: #577590;
}

.impact__growth-callout {
  margin-top: 12px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--impact-deep), #005b96);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 24px;
}
.impact__growth-number {
  margin: 0;
  flex-shrink: 0;
  max-width: 5.5em;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
}
.impact__growth-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ── Data-source footer ── */
.impact__data-footer {
  max-width: 1180px;
  margin: 48px auto 28px;
  padding: 22px 28px;
  border-top: 1px solid rgba(0, 48, 87, 0.1);
  color: #607587;
  font-size: 13px;
  line-height: 1.7;
}
.impact__data-footer strong {
  color: var(--impact-deep);
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .impact__growth-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 950px) {
  .impact__grid--kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }
  .impact__leap {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .impact__leap-nums {
    text-align: left;
  }
  /* Single-column rows: legend can't sit over a numbers column, so left-align
     it as a plain caption at the top. */
  .impact__leap-legend {
    grid-template-columns: 1fr;
  }
  .impact__leap-legend-keys {
    grid-column: 1;
    justify-self: start;
  }
  .impact__map-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .impact__island-panel {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .impact__grid--kpis {
    grid-template-columns: 1fr;
  }
  /* Bump in-viewBox label size so names stay legible as the SVG scales down. */
  .impact__isle-label {
    font-size: 21px;
  }
  .impact__barrier-label {
    font-size: 15px;
  }
}
