/* VPG Alaska Tracker — styled to match vpgair.org (Hello Elementor)
   Verified from live Elementor kit-6 + Passster (2026-08-22):
   primary/header #3d85c6 · secondary/button #0b5394 · heading #003366
   Passster accent #0014ff · page #FAFAFA · vivid #0693e3 · text #32373c
   Live body fonts: Noto Sans / Source Sans Pro — tracker uses Roboto (task)
*/

:root {
  --vpg-header: #3d85c6;
  --vpg-header-deep: #2f6fa8;
  --vpg-navy: #003366;
  --vpg-blue: #0b5394;
  --vpg-blue-hover: #094578;
  --vpg-vivid: #0693e3;
  --vpg-accent: #0014ff;
  --vpg-gold: #d4a017;
  --bg: #f4f7fb;
  --page: #fafafa;
  --panel: #ffffff;
  --panel-2: #f3f6fa;
  --text: #32373c;
  --muted: #5a6570;
  --border: #d6dee8;
  --border-soft: #e8eef4;
  --warn: #c9852a;
  --danger: #b42318;
  --ok: #1f7a4d;
  --radius: 10px;
  --radius-btn: 12px;
  --shadow: 0 8px 24px rgba(11, 83, 148, 0.08);
  --shadow-card: 0 2px 10px rgba(0, 51, 102, 0.06);
  --font: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: var(--vpg-blue); }
a:hover { color: var(--vpg-vivid); }

/* ——— Soft password gate (Passster-ish) ——— */
#gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(61, 133, 198, 0.12) 0%, transparent 42%),
    var(--page);
}
.gate-card {
  width: min(440px, 100%);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 1.75rem 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.gate-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  margin-bottom: .85rem;
}
.gate-brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
}
.gate-brand .org {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vpg-navy);
}
.gate-card h1 {
  margin: 0 0 .35rem;
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--vpg-accent);
}
.gate-card .sub {
  color: var(--muted);
  margin: 0 0 1.15rem;
  font-size: .92rem;
  text-align: left;
}
.gate-card label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: .35rem;
  text-align: left;
}
.gate-card input[type="password"] {
  width: 100%;
  padding: .75rem .85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--page);
  color: var(--text);
  margin-bottom: .85rem;
}
.gate-card input[type="password"]:focus {
  outline: 2px solid rgba(11, 83, 148, 0.35);
  border-color: var(--vpg-blue);
}
.gate-error {
  color: var(--danger);
  font-size: .9rem;
  margin: 0 0 .75rem;
  text-align: left;
}
.draft-pill {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 650;
  background: #fff4df;
  color: #8a5a10;
  border: 1px solid #f0d29a;
  padding: .22rem .55rem;
  border-radius: 999px;
  margin-bottom: .85rem;
}

/* ——— App chrome ——— */
#app {
  max-width: none;
  margin: 0;
  padding: 0 0 2.5rem;
}

.content-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.1rem;
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
  padding: .85rem 1.1rem;
  background: var(--vpg-header);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.18);
}
.app-header-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.app-header-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.app-header h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
}
.app-header .meta {
  color: rgba(255, 255, 255, 0.88);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}
.header-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.header-actions .btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.header-actions .btn:hover {
  background: #fff;
  color: var(--vpg-blue);
  border-color: #fff;
}


.header-menu {
  position: relative;
  margin-left: auto;
}
.header-menu summary {
  list-style: none;
}
.header-menu summary::-webkit-details-marker {
  display: none;
}
.header-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.header-menu-toggle::after {
  content: "\25be";
  font-size: .8em;
  transition: transform .15s ease;
}
.header-menu[open] .header-menu-toggle::after {
  transform: rotate(180deg);
}
.header-menu-toggle:hover,
.header-menu[open] .header-menu-toggle {
  background: #fff;
  color: var(--vpg-blue);
  border-color: #fff;
}
.header-menu-panel {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 1500;
  display: grid;
  gap: .3rem;
  width: max-content;
  min-width: 220px;
  padding: .5rem;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0, 51, 102, .2);
}
.header-menu-panel .btn {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: var(--panel);
  color: var(--text);
  border-color: transparent;
}
.header-menu-panel .btn:hover {
  background: var(--panel-2);
  color: var(--vpg-blue);
  border-color: var(--border-soft);
}
.header-menu-panel .btn-primary {
  background: var(--vpg-blue);
  color: #fff;
}
.header-menu-panel .btn-primary:hover {
  background: var(--vpg-blue-hover);
  color: #fff;
}

.content-shell > .banner { margin-top: 0; }
.banner {
  background: #fff8eb;
  border: 1px solid #f0d29a;
  color: #6b4a12;
  padding: .75rem .95rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .92rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  box-shadow: var(--shadow-card);
}
.stat .label {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 650;
}
.stat .value {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: .2rem;
  color: var(--vpg-navy);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
}
.panel h2 {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vpg-navy);
}

.map-hero {
  width: min(900px, calc(100% - 2.2rem));
  max-width: 900px;
  margin: 0 auto 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-hero-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 1rem;
  padding-top: 1rem;
  padding-bottom: .35rem;
}
.map-hero-copy {
  flex: 1 1 280px;
  min-width: 0;
}
.map-hero-copy h2 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--vpg-navy);
}
.map-hero-filters {
  padding-bottom: .75rem;
}
.map-hero .year-filter {
  margin: 0;
}
.map-hero .map-legend {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}
#map {
  width: 100%;
  height: min(76vh, 720px);
  min-height: 560px;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border);
  background: #cfd6b8;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
th, td {
  text-align: left;
  padding: .6rem .5rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
th {
  color: var(--vpg-blue);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f3f8fc;
}
td.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
}
td.empty {
  color: var(--muted);
  text-align: center;
  padding: 1.2rem;
}
.actions { white-space: nowrap; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem .75rem;
}
.form-grid .full { grid-column: 1 / -1; }
label.field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}
input, textarea, select {
  font: inherit;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .55rem .65rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(11, 83, 148, 0.28);
  border-color: var(--vpg-blue);
}
textarea { min-height: 70px; resize: vertical; }
.check {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .88rem;
}
.form-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .85rem;
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius-btn);
  padding: .58rem 1rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover {
  border-color: var(--vpg-blue);
  color: var(--vpg-blue);
}
.btn-primary {
  background: var(--vpg-blue);
  border-color: var(--vpg-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--vpg-blue-hover);
  border-color: var(--vpg-blue-hover);
  color: #fff;
}
.btn-block {
  width: 100%;
  font-size: 1.05rem;
  padding: .75rem 1rem;
}
.btn-danger {
  color: var(--danger);
  border-color: #f0b4b0;
  background: #fff7f6;
}
.btn-danger:hover {
  background: #ffe8e6;
  color: var(--danger);
}
.btn-small {
  padding: .3rem .55rem;
  font-size: .8rem;
  border-radius: 8px;
}

.footnote {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .map-hero { width: calc(100% - 1.5rem); }
  #map { height: min(70vh, 600px); min-height: 460px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .app-header-brand img { width: 44px; height: 44px; }
  .map-hero { width: calc(100% - 1rem); }
  #map { height: min(68vh, 560px); height: min(68svh, 560px); min-height: 420px; }
}

.badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: .14rem .42rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: .25rem;
  white-space: nowrap;
}
.badge-uncertain { background: #fff4df; color: #8a5a10; }
.badge-approx { background: #e8f3fb; color: var(--vpg-blue); }
.badge-ok { background: #e6f6ee; color: var(--ok); }
.row-uncertain td { background: rgba(201, 133, 42, 0.06); }
.source { margin-top: .35rem; font-size: .78rem; color: var(--muted); }

.badge-planned { background: #eceff3; color: #4a5560; }
.row-planned td { opacity: 0.82; }

.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin: 0 0 .75rem;
  padding: .55rem .65rem;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}
.year-filter-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: .15rem;
}
.year-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  user-select: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .28rem .7rem .28rem .5rem;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.year-chip:hover {
  border-color: var(--vpg-blue);
}
.year-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.year-chip .swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.year-chip.is-off {
  opacity: 0.48;
  background: transparent;
  color: var(--muted);
}
.year-chip.is-off .swatch {
  filter: grayscale(0.35);
  opacity: 0.7;
}
.year-chip.is-on {
  border-color: var(--vpg-blue);
  box-shadow: 0 0 0 1px rgba(11, 83, 148, 0.12);
}

.map-legend {
  color: var(--muted);
  font-size: .8rem;
  margin: -.35rem 0 .65rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.content-shell .year-rollups { margin-top: .25rem; }
.year-rollups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.year-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  min-height: 110px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--vpg-header);
}
.year-card.year-highlight {
  border-top-color: var(--vpg-vivid);
  box-shadow: 0 0 0 1px rgba(6, 147, 227, 0.25), var(--shadow-card);
}
.year-card.year-planned {
  border-top-color: #9aa7b5;
  border-right-style: dashed;
  border-bottom-style: dashed;
  border-left-style: dashed;
  background: #fafbfc;
}
.year-label {
  font-size: .8rem;
  color: var(--vpg-blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}
.year-value {
  font-size: 1.55rem;
  font-weight: 700;
  margin: .35rem 0 .25rem;
  line-height: 1.2;
  color: var(--vpg-navy);
}
.year-detail {
  color: var(--muted);
  font-size: .82rem;
}
@media (max-width: 900px) {
  .year-rollups { grid-template-columns: 1fr; }
}

.app-footer {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.1rem 1.25rem;
  background: var(--vpg-header);
  color: rgba(255, 255, 255, 0.92);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 -2px 8px rgba(0, 51, 102, 0.12);
}
.app-footer strong {
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
}
.app-footer .tagline {
  display: block;
  margin-top: .35rem;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: none;
  opacity: .92;
  font-weight: 400;
}
.app-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.app-footer a:hover { color: #e8f4fc; }

.app-footer .visit-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .75rem;
  padding: .35rem .7rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(0, 51, 102, .22);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
}



/* ——— Add-flight slide-over drawer ——— */
.visit-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: flex-end;
}
.visit-drawer[hidden] { display: none !important; }
.visit-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 102, 0.42);
  border: 0;
  cursor: pointer;
}
.visit-drawer-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  height: 100%;
  overflow: auto;
  background: var(--panel);
  box-shadow: -8px 0 28px rgba(0, 51, 102, 0.18);
  padding: 1.15rem 1.15rem 1.5rem;
  animation: drawer-in .2s ease-out;
}
@keyframes drawer-in {
  from { transform: translateX(18px); opacity: .6; }
  to { transform: translateX(0); opacity: 1; }
}
.visit-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}
.visit-drawer-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vpg-navy);
}
.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  line-height: 1;
  border-radius: 999px;
  color: var(--muted);
}
.btn-icon:hover {
  color: var(--vpg-navy);
  border-color: var(--vpg-blue);
}
body.drawer-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .header-menu-panel {
    position: fixed;
    top: 74px;
    right: .75rem;
    left: .75rem;
    width: auto;
  }
}


/* Interactive year-over-year outreach chart */
.growth-card {
  margin-top: 1.1rem;
  margin-bottom: 1.2rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(11,83,148,.08), rgba(212,160,23,.08));
  box-shadow: var(--shadow);
}
.growth-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}
.growth-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.growth-eyebrow {
  margin: 0 0 .18rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.growth-summary { margin: 0; color: var(--navy); font-weight: 800; text-align: right; }
.growth-metrics { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.growth-metric {
  border: 1px solid rgba(11,83,148,.25);
  border-radius: 999px;
  padding: .48rem .75rem;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.growth-metric:hover,
.growth-metric:focus-visible { border-color: var(--navy); transform: translateY(-1px); }
.growth-metric.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.growth-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(54px, 1fr));
  align-items: end;
  gap: clamp(.55rem, 3vw, 1.4rem);
  min-height: 260px;
  padding: 1rem .35rem .35rem;
  border-bottom: 2px solid rgba(11,83,148,.25);
}
.growth-bar-item { display: grid; grid-template-rows: 1fr auto; align-items: end; gap: .45rem; height: 230px; text-align: center; }
.growth-bar-wrap { display: flex; height: 190px; align-items: end; justify-content: center; }
.growth-bar {
  position: relative;
  width: min(72px, 78%);
  height: max(16px, var(--bar-size));
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, #d4a017, #0b5394);
  box-shadow: 0 7px 16px rgba(11,83,148,.2);
  transition: height .45s ease;
}
.growth-value {
  position: absolute;
  left: 50%;
  top: -.42rem;
  transform: translate(-50%, -100%);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}
.growth-year { color: var(--navy); font-weight: 850; }
.growth-note { margin: .8rem 0 0; color: var(--muted); font-size: .82rem; }
@media (max-width: 520px) {
  .growth-card { border-radius: 14px; padding: .9rem .65rem; }
  .growth-heading { display: block; }
  .growth-summary { margin-top: .35rem; text-align: left; }
  .growth-metrics { gap: .35rem; }
  .growth-metric { flex: 1 1 calc(50% - .35rem); }
  .growth-chart { gap: .35rem; min-height: 230px; padding-inline: 0; }
  .growth-bar-item { height: 205px; }
  .growth-bar-wrap { height: 165px; }
}


/* Hosted 2025 season video */
.season-video {
  margin: 1.2rem 0 1.5rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.season-video-heading { margin-bottom: .75rem; }
.season-video-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 2rem);
}
.season-video-player {
  display: block;
  width: 100%;
  max-height: min(72vh, 760px);
  border-radius: 12px;
  background: #07111d;
  box-shadow: 0 10px 28px rgba(7,17,29,.18);
}
@media (max-width: 520px) {
  .season-video { padding: .7rem; border-radius: 14px; }
  .season-video-player { border-radius: 9px; max-height: 68svh; }
}


/* Map overlay legend */
.map-stage { position: relative; }
.map-overlay-legend {
  position: absolute;
  z-index: 700;
  top: .85rem;
  right: .85rem;
  width: min(280px, calc(100% - 1.7rem));
  padding: .75rem .85rem;
  border: 1px solid rgba(11,83,148,.22);
  border-radius: 13px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(7,17,29,.2);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.map-overlay-legend h3 { margin: 0 0 .45rem; color: var(--navy); font-size: .96rem; }
.map-overlay-legend ul { display: grid; gap: .33rem; margin: 0; padding: 0; list-style: none; }
.map-overlay-legend li { display: flex; align-items: center; gap: .45rem; font-size: .76rem; line-height: 1.25; }
.map-overlay-legend p { margin: .52rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.3; }
.legend-symbol { display: inline-block; flex: 0 0 auto; width: 15px; height: 15px; border-radius: 50%; background: #0b5394; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(11,83,148,.35); }
.legend-sectional { border-radius: 3px; background: linear-gradient(135deg,#9ec7db 0 45%,#f2d28c 45% 70%,#aed3aa 70%); }
.legend-year-dot { background: linear-gradient(90deg,#8e8e8e 0 25%,#0693e3 25% 50%,#0b5394 50% 75%,#d4a017 75%); }
.legend-hub-dot { width: 18px; height: 18px; background: #d4a017; }
.legend-dashed-dot { background: transparent; border: 2px dashed #0b5394; box-shadow: none; }
.legend-offset-dot { position: relative; margin-right: 5px; background: #0693e3; }
.legend-offset-dot::after { content: ''; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #d4a017; border: 1px solid #fff; left: 9px; top: 1px; }

/* Multi-series line graph */
.growth-line-legend { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin: .25rem 0 .75rem; }
.growth-line-legend span { display: inline-flex; align-items: center; gap: .38rem; color: var(--ink); font-size: .82rem; font-weight: 750; }
.growth-line-legend i { width: 24px; height: 4px; border-radius: 999px; background: var(--series-color); box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.growth-chart-wrap { position: relative; }
.growth-chart.growth-line-chart {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow-x: auto;
}
.growth-line-svg { display: block; width: 100%; min-width: 650px; height: auto; overflow: visible; }
.growth-grid-line { stroke: rgba(11,83,148,.17); stroke-width: 1; }
.growth-year-guide { stroke: rgba(11,83,148,.07); stroke-width: 1; }
.growth-axis-label { fill: #4d6175; font-size: 12px; font-weight: 700; }
.growth-axis-right { fill: #7a3db8; }
.growth-axis-title { fill: #0b5394; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.growth-axis-title-right { fill: #7a3db8; }
.growth-year-label { fill: #0b5394; font-size: 13px; font-weight: 850; }
.growth-series-line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.growth-series-point { pointer-events: none; }
.growth-point-hit { fill: transparent; cursor: pointer; outline: none; }
.growth-point-hit:focus { stroke: #111; stroke-width: 2; }
.growth-tooltip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, calc(-100% - 13px));
  padding: .42rem .58rem;
  border-radius: 8px;
  background: #07111d;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 7px 18px rgba(7,17,29,.28);
}
.growth-tooltip::after { content: ''; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #07111d; }
@media (max-width: 520px) {
  .map-overlay-legend { top: .55rem; right: .55rem; width: min(245px, calc(100% - 1.1rem)); padding: .62rem .7rem; }
  .map-overlay-legend li { font-size: .68rem; }
  .map-overlay-legend p { font-size: .64rem; }
  .growth-line-svg { min-width: 620px; }
  .growth-chart.growth-line-chart { scrollbar-width: thin; }
}


/* Four-card season row and shared graph scale */
.year-rollups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.year-card.year-trial { border-top-color: #8e8e8e; }
.year-pilots { margin-top: .45rem; font-weight: 700; }
.growth-axis-right,
.growth-axis-title-right { fill: #0b5394; }
@media (max-width: 900px) {
  .year-rollups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .year-rollups { grid-template-columns: 1fr; }
}


/* Collapsible map legend and phone-friendly graph */
.map-overlay-legend { width: auto; max-width: min(280px, calc(100% - 1.7rem)); padding: .5rem .65rem; }
.map-overlay-legend[open] { width: min(280px, calc(100% - 1.7rem)); }
.map-overlay-legend summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 94px; color: var(--navy); font-size: .84rem; font-weight: 850; cursor: pointer; list-style: none; user-select: none; }
.map-overlay-legend summary::-webkit-details-marker { display: none; }
.map-overlay-legend summary::after { content: '+'; font-size: 1.05rem; line-height: 1; }
.map-overlay-legend[open] summary::after { content: '−'; }
.map-legend-content { margin-top: .55rem; }
.map-overlay-legend:not([open]) ul, .map-overlay-legend:not([open]) p { display: none; }
@media (max-width: 520px) {
  .growth-card { padding: .75rem .5rem; overflow: hidden; }
  .growth-heading h2 { font-size: 1.28rem; }
  .growth-summary { font-size: .78rem; line-height: 1.3; }
  .growth-line-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .42rem .55rem; }
  .growth-line-legend span { min-width: 0; font-size: .68rem; line-height: 1.2; }
  .growth-line-legend i { width: 18px; }
  .growth-chart.growth-line-chart { overflow: visible; }
  .growth-line-svg { width: 100%; min-width: 0; }
  .growth-axis-label { font-size: 10px; }
  .growth-year-label { font-size: 11px; }
  .growth-series-line { stroke-width: 3; }
  .growth-note { font-size: .72rem; line-height: 1.35; }
  .growth-tooltip { max-width: 190px; white-space: normal; text-align: center; }
  .map-overlay-legend { top: .45rem; right: .45rem; width: auto; max-width: calc(100% - .9rem); padding: .48rem .6rem; }
  .map-overlay-legend[open] { width: min(245px, calc(100% - .9rem)); }
  .map-overlay-legend summary { min-width: 88px; font-size: .76rem; }
}
