/* ================================================================
   Spark Climate Solutions — Warming-Induced Emissions overview
   Standalone report-style stylesheet. Deliberately distinct from
   assets/explainers.css (card-based explainer template) so this
   product reads as a different kind of thing: a longer piece with
   its own visual identity, built for a general audience.
   Palette and type strictly follow the Spark brand guide:
   Navy #142162, Primary Blue #2C85D7, Light Blue #C8E7FC,
   Very Light Blue #EAF7FF, Light Blue accent #97DAF8,
   Light Red #F45858 (alarm/emphasis only), Dark Grey #1B1B1B,
   Muted Grey #6E6E6E. Roboto only.
   ================================================================ */

:root {
  --navy: #142162;
  --blue: #2c85d7;
  --lightblue: #c8e7fc;
  --vlightblue: #eaf7ff;
  --accentblue: #97daf8;
  --red: #f45858;
  --darkgrey: #1b1b1b;
  --mutedgrey: #6e6e6e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.wie-report {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--darkgrey);
  margin: 0;
  background: #ffffff;
}

.wie-container { max-width: 700px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Progress bar ── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  z-index: 9999; width: 0%; transition: width 0.1s linear;
}

/* ── Top nav: logo + title + a "Contents" dropdown. No persistent panel. ── */
.wie-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
}
.wie-nav-bar {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 54px;
}
.wie-nav-bar img { height: 22px; display: block; }
.wie-nav-title {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wie-nav-toggle {
  margin-left: auto;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.wie-nav-toggle:hover { border-color: rgba(255,255,255,0.6); }
.wie-nav-toggle svg { transition: transform 0.15s; }
.wie-nav.open .wie-nav-toggle svg { transform: rotate(180deg); }

.wie-nav-panel {
  display: none;
  background: #17225f;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.wie-nav.open .wie-nav-panel { display: block; }
.wie-nav-panel-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.15rem 1.5rem;
}
.wie-nav-panel a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wie-nav-panel a:hover { color: #ffffff; }
.wie-nav-panel a.stub { color: rgba(255,255,255,0.4); }
.wie-nav-panel a.stub::after {
  content: 'soon';
  font-size: 0.6rem;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  padding: 0.05rem 0.3rem;
  margin-left: 0.5rem;
}
@media (max-width: 560px) {
  .wie-nav-panel-inner { grid-template-columns: 1fr; }
}

/* ── Hero ── */
.wie-hero {
  background: var(--navy);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
}
.wie-hero-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accentblue);
  margin: 0 0 1rem;
}
.wie-hero h1 {
  font-weight: 300;
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0 0 1.1rem;
  color: #ffffff;
}
.wie-hero h1 em { font-style: normal; color: var(--accentblue); }
.wie-hero-sub {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--lightblue);
  font-weight: 300;
  max-width: 560px;
  margin: 0;
}
.wie-hero-meta { margin-top: 1.25rem; }
.wie-journal-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--lightblue);
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
}
.wie-hero-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border: none;
  margin: 0;
}

/* ── Collaboration strip (org logos) ── */
.wie-collab { padding: 3rem 0; border-bottom: 1px solid rgba(20,33,98,0.08); }
.wie-collab p {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 300;
  text-align: center;
  margin: 0 0 2rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.wie-collab .wie-collab-citation {
  font-size: 0.82rem;
  color: var(--mutedgrey);
  font-weight: 400;
  text-align: center;
  margin: -1.25rem auto 2rem;
  max-width: 620px;
  line-height: 1.5;
}
.wie-collab-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.wie-collab-logos img { height: 42px; width: auto; object-fit: contain; }
.wie-collab-logos img.wie-collab-logo--tall { height: 62px; }
.wie-collab-logos img.wie-collab-logo--small { height: 30px; }
@media (max-width: 560px) {
  .wie-collab { padding: 2.25rem 0; }
  .wie-collab p { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .wie-collab-logos { gap: 0.9rem; }
  .wie-collab-logos img { height: 32px; }
  .wie-collab-logos img.wie-collab-logo--tall { height: 46px; }
  .wie-collab-logos img.wie-collab-logo--small { height: 24px; }
}

/* ── Stat band ── */
.wie-statband { margin: 2rem 0; }
.wie-statband-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.9rem;
}
.wie-statgrid {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.wie-stat-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 18px rgba(20,33,98,0.09);
}
.wie-stat-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--vlightblue);
  display: flex; align-items: center; justify-content: center;
}
.wie-stat-icon svg { width: 32px; height: 32px; }
.wie-stat-icon--blue { color: var(--blue); }
.wie-stat-icon--coral { color: var(--red); }
.wie-stat-num {
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
}
.wie-stat-label {
  font-size: 0.95rem;
  color: var(--mutedgrey);
  margin-top: 0.4rem;
  line-height: 1.35;
}
.wie-stat-methodology { margin-top: 0.4rem; font-family: 'Roboto', Arial, sans-serif; }
.wie-stat-methodology summary {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--blue);
  cursor: pointer;
}
.wie-stat-methodology summary::marker,
.wie-stat-methodology summary::-webkit-details-marker {
  color: var(--blue);
  font-size: 0.7rem;
}
.wie-section .wie-stat-methodology p {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--mutedgrey);
  line-height: 1.4;
  margin: 0.3rem 0 0;
}

/* ── Sections ── */
.wie-section { padding: 2.75rem 0; scroll-margin-top: 4rem; }
.wie-accordion-section { padding: 1.15rem 0; border-bottom: 1px solid rgba(20,33,98,0.1); }
.wie-section-divider { padding: 1.15rem 0; border-bottom: 1px solid rgba(20,33,98,0.3); }
.wie-section h2 {
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--navy);
  margin: 0 0 1.1rem;
  line-height: 1.3;
}
.wie-section h3 {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--navy);
  margin: 1.5rem 0 0.6rem;
}
.wie-section p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--darkgrey);
  margin: 0 0 1.1rem;
  max-width: 620px;
}
.wie-section p.lead {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.5;
}
.wie-section ul { padding-left: 1.2rem; margin: 0 0 1.1rem; max-width: 620px; }
.wie-section li { font-size: 1.02rem; line-height: 1.55; color: var(--darkgrey); margin-bottom: 0.5rem; }

.wie-bg-white { background: #ffffff; }
.wie-bg-light { background: var(--vlightblue); }
.wie-bg-navy { background: var(--navy); color: #fff; }
.wie-bg-navy.wie-section h2, .wie-bg-navy.wie-section h3 { color: #fff; }
.wie-bg-navy.wie-section p { color: var(--lightblue); }
.wie-bg-navy.wie-section li { color: var(--lightblue); }
.wie-bg-navy.wie-section p a { color: #2c85d7; text-decoration: underline; }
.wie-bg-navy .wie-eyebrow { color: var(--accentblue); }
.wie-bg-navy.wie-section .wie-callout-box h3 { color: var(--navy); }
.wie-bg-navy.wie-section .wie-callout-box p { color: var(--mutedgrey); }

/* ── Collapsible source sections (Permafrost, Wildfire, Wetlands, Freshwaters) ── */
.wie-source-details { border: none; }
.wie-source-summary {
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--navy);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.15rem 0;
  user-select: none;
}
.wie-source-summary::-webkit-details-marker { display: none; }
.wie-source-summary::marker { content: ''; }
.wie-source-summary-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  flex-shrink: 0;
  position: relative;
}
.wie-source-summary-icon::before,
.wie-source-summary-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--navy);
  transition: transform 0.15s ease;
}
.wie-source-summary-icon::before { width: 13px; height: 1.5px; transform: translate(-50%, -50%); }
.wie-source-summary-icon::after { width: 1.5px; height: 13px; transform: translate(-50%, -50%); }
.wie-source-details[open] .wie-source-summary-icon::after { transform: translate(-50%, -50%) rotate(90deg) scaleY(0); }
.wie-source-content { padding-top: 1.4rem; }
.wie-bg-navy .wie-source-summary { color: #fff; }
.wie-bg-navy .wie-source-summary-icon { border-color: #fff; }
.wie-bg-navy .wie-source-summary-icon::before,
.wie-bg-navy .wie-source-summary-icon::after { background: #fff; }
.wie-stub-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mutedgrey);
  border: 1px solid rgba(110,110,110,0.4);
  border-radius: 4px;
  padding: 0.18rem 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Group intro (sits between a section group's lead-in and its collapsible items) ── */
.wie-group-intro {
  background: var(--navy);
  padding: 2.5rem 0;
  text-align: left;
  border-top: 3px solid var(--red);
}
.wie-group-intro-eyebrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.6rem;
  line-height: 1.25;
}
#gaps .lead {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
}
.wie-group-intro p {
  font-size: 1.05rem;
  color: var(--lightblue);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}

/* ── Eyebrow label (small-caps kicker on white/light sections) ── */
.wie-eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin: 0 0 0.5rem;
}

/* ── Callout grid (condensed "why this matters" cards) ── */
.wie-callout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.wie-callout-box {
  border: 1.5px solid rgba(20,33,98,0.15);
  border-radius: 14px;
  padding: 1.75rem;
  background: #ffffff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.wie-callout-box:hover { border-color: var(--blue); box-shadow: 0 4px 24px rgba(44,133,215,0.12); }
.wie-callout-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--vlightblue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.wie-callout-icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; }
.wie-callout-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 0 0 0.5rem; }
.wie-callout-box p { font-size: 0.92rem; color: var(--mutedgrey); line-height: 1.55; margin: 0; }
@media (max-width: 700px) {
  .wie-callout-grid { grid-template-columns: 1fr; }
}

/* ── Partner org cards (reuse callout-box, centered logo layout) ── */
.wie-org-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; justify-content: center; }
.wie-org-logo { max-height: 42px; max-width: 100%; width: auto; object-fit: contain; }
.wie-org-logo.wie-org-logo--tall { max-height: 62px; }
.wie-org-card p { font-size: 0.9rem; }
.wie-org-card p a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ── Feedback tile (per-source subsection) ── */
.wie-feedback-tile {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem;
  background: #ffffff;
  border: 1px solid rgba(20,33,98,0.1);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}
.wie-feedback-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--vlightblue);
  display: flex; align-items: center; justify-content: center;
}
.wie-feedback-icon svg { width: 26px; height: 26px; }
.wie-feedback-body { flex: 1; }
.wie-feedback-body p { margin: 0 0 0.5rem; font-size: 1rem; }
.wie-feedback-headline {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  margin: 0 0 0.4rem;
}

/* ── Simple proportional comparison bars (no dense data table) ── */
.wie-compare { margin: 1.5rem 0; max-width: 620px; }
.wie-compare-row { margin-bottom: 1rem; }
.wie-compare-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.wie-compare-label span:last-child { color: var(--mutedgrey); font-weight: 400; }
.wie-compare-track {
  background: var(--vlightblue);
  border-radius: 5px;
  height: 10px;
  overflow: hidden;
}
.wie-compare-fill {
  background: var(--blue);
  height: 100%;
  border-radius: 5px;
}
.wie-compare-note { font-size: 0.85rem; color: var(--mutedgrey); margin-top: 0.75rem; }
.wie-compare-track--big { height: 22px; border-radius: 6px; }
.wie-compare-fill--red { background: var(--red); }
.wie-compare-fill--stripe {
  background: repeating-linear-gradient(45deg, var(--red), var(--red) 8px, #ff7b7b 8px, #ff7b7b 16px);
}

/* ── Per-source stat badge (compact number inside a feedback tile) ── */
.wie-feedback-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  background: var(--vlightblue);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  margin: 0.5rem 0 0.6rem;
}
.wie-feedback-stat-num { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.wie-feedback-stat-label { font-size: 0.82rem; color: var(--mutedgrey); }

/* ── Mini stat grid note (per-source CO2/CH4 warming-share breakdown) ── */
.wie-mini-statgrid-note { font-size: 0.85rem; color: var(--mutedgrey); margin: 0 0 1.1rem; line-height: 1.5; }

/* ── Interactive scenario chart (WIE-induced warming vs. year) ── */
.wie-chart-card {
  background: #ffffff;
  border: 1px solid rgba(20,33,98,0.1);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 0.9rem;
  margin: 1.5rem 0;
}

/* ── Scrollytelling build-up for the topline chart (experimental) ──
   Sticky graphic and steps overlap in one grid cell, with each step's
   text card floating over the graphic as it scrolls past. */
.wie-scrolly-intro-hint {
  font-size: 0.88rem;
  color: var(--mutedgrey);
  font-style: normal;
  margin: 0 0 0.5rem;
}
.wie-scrolly {
  display: grid;
  margin: 1rem 0 1.5rem;
  overflow-anchor: none;
}
.wie-scrolly-sticky,
.wie-scrolly-steps {
  grid-area: 1 / 1;
}
.wie-scrolly-sticky {
  position: sticky;
  top: 66px; /* replaced by JS with a computed centering offset once the card's height is known */
  align-self: start;
  z-index: 1;
  overflow-anchor: none;
}
.wie-scrolly-sticky .wie-chart-card { margin: 0; }
.wie-scrolly-steps {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.wie-scrolly-step {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}
.wie-scrolly-step-text {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid rgba(20,33,98,0.15);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 10px 32px rgba(20,33,98,0.2);
  max-width: 380px;
  margin: 0 auto;
}
.wie-scrolly-step-text p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--navy);
  max-width: none;
}
.wie-scrolly-step-text p + p { margin-top: 0.7rem; }
.wie-scrolly-step-text strong { color: var(--blue); }
.wie-scrolly-step-text--cta {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 12px 36px rgba(20,33,98,0.4);
  max-width: 400px;
}
.wie-scrolly-step-text--cta p { color: #ffffff; }
.wie-scrolly-step-text--cta strong { color: var(--accentblue); }
/* Extra scroll room after the last card so it scrolls fully off-screen
   before the sticky graphic settles - otherwise the two land on top of
   each other right at the handoff point. */
.wie-scrolly-spacer { min-height: 100vh; }

@media (max-width: 600px) {
  .wie-scrolly-step { min-height: 60vh; }
  /* The original cards stay in normal flow (so their geometry still drives
     the scroll-linked IntersectionObserver) but are made invisible here -
     on mobile the visible, swipeable copy lives in .wie-scrolly-mobile-strip
     below, pinned to the bottom of the screen so it never covers the chart. */
  .wie-scrolly-step-text { visibility: hidden; pointer-events: none; }
  .wie-scrolly-mobile-strip {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 6;
    gap: 0.75rem;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    background: linear-gradient(to top, rgba(255,255,255,0.97) 65%, rgba(255,255,255,0));
    -webkit-overflow-scrolling: touch;
  }
  /* Only while the topline scrolly section itself is on screen - otherwise
     this fixed-position strip would stay pinned to the bottom of every
     other section on the page. */
  .wie-scrolly-mobile-strip.wie-strip-visible { display: flex; }
  .wie-scrolly-mobile-strip::-webkit-scrollbar { display: none; }
  .wie-scrolly-mobile-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
    background: #ffffff;
    border: 1px solid rgba(20,33,98,0.15);
    border-radius: 12px;
    padding: 0.9rem 1.05rem;
    box-shadow: 0 6px 20px rgba(20,33,98,0.18);
    opacity: 0.45;
    transition: opacity 0.25s ease;
  }
  .wie-scrolly-mobile-card.wie-scrolly-mobile-active { opacity: 1; }
  .wie-scrolly-mobile-card p { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--navy); max-width: none; }
  .wie-scrolly-mobile-card p + p { margin-top: 0.6rem; }
  .wie-scrolly-mobile-card strong { color: var(--blue); }
  .wie-scrolly-mobile-card--cta { background: var(--navy); border-color: var(--navy); }
  .wie-scrolly-mobile-card--cta p { color: #ffffff; }
  .wie-scrolly-mobile-card--cta strong { color: var(--accentblue); }
  /* Room at the bottom of the sticky chart so the fixed strip never overlaps it. */
  .wie-scrolly-sticky { padding-bottom: 108px; }
}
@media (min-width: 601px) {
  .wie-scrolly-mobile-strip { display: none; }
}

/* ── Prominent SSP toggle at the settled end of the topline scrolly ── */
.wie-scrolly-toggle-wrap { transition: opacity 0.5s ease; }
.wie-scrolly-toggle-wrap.wie-scrolly-toggle-pending { opacity: 0; pointer-events: none; }

/* Standard-deviation note fades in alongside the SSP toggle above. */
.wie-section .wie-scrolly-sd-note {
  font-size: 0.72rem;
  color: var(--mutedgrey);
  margin: 0.6rem 0 0;
  line-height: 1.4;
  transition: opacity 0.5s ease;
}
.wie-scrolly-sd-note.wie-scrolly-toggle-pending { opacity: 0; }

/* Dim the chart/legend the instant the "try it yourself" card takes over,
   so attention shifts to the toggle fading in below instead of people
   scrolling past without noticing it appeared. */
#wieChartCard #wieChartLegend,
#wieChartCard #wieChartWrap {
  transition: opacity 0.45s ease, filter 0.45s ease;
}
#wieChartCard.wie-scrolly-dimmed #wieChartLegend,
#wieChartCard.wie-scrolly-dimmed #wieChartWrap {
  opacity: 0.3;
  filter: grayscale(0.7);
}
.wie-scrolly-toggle-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.4rem 0 0.75rem;
  text-align: center;
}
.wie-scenario-toggle--prominent { margin-bottom: 0.25rem; }
.wie-scenario-toggle--prominent .wie-scenario-btn {
  border-width: 2px;
  border-color: rgba(20,33,98,0.2);
  padding: 0.9rem 1rem;
}
.wie-scenario-toggle--prominent .wie-scenario-btn-name { font-size: 1.02rem; }
.wie-scenario-toggle--prominent .wie-scenario-btn-desc { font-size: 0.8rem; }
.wie-scenario-toggle--prominent .wie-scenario-btn.active {
  box-shadow: 0 4px 18px rgba(20,33,98,0.35);
}
.wie-section .wie-chart-heading {
  font-size: 1.6rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
  margin: 1.75rem 0 0.4rem;
}
.wie-chart-subheading {
  font-size: 1rem;
  color: var(--mutedgrey);
  font-weight: 400;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  max-width: none;
}
.wie-dualchart-panel-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.wie-scenario-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.wie-scenario-btn {
  font-family: 'Roboto', sans-serif;
  text-align: left;
  color: var(--navy);
  background: #ffffff;
  border: 1.5px solid rgba(20,33,98,0.15);
  border-radius: 7px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.wie-scenario-btn:hover { border-color: rgba(20,33,98,0.35); }
.wie-scenario-btn.active {
  background: var(--navy);
  border-color: var(--navy);
}
.wie-scenario-btn-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.1rem;
}
.wie-scenario-btn.active .wie-scenario-btn-name { color: #ffffff; }
.wie-scenario-btn-desc {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--mutedgrey);
  line-height: 1.25;
}
.wie-scenario-btn.active .wie-scenario-btn-desc { color: var(--lightblue); }
@media (max-width: 600px) {
  .wie-scenario-toggle { grid-template-columns: 1fr; }
}
.wie-gas-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.wie-gas-btn {
  font-family: 'Roboto', sans-serif;
  text-align: center;
  color: var(--blue);
  background: var(--vlightblue);
  border: 2px solid var(--vlightblue);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wie-gas-btn:hover { border-color: var(--blue); }
.wie-gas-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(44,133,215,0.35);
}
@media (max-width: 600px) {
  .wie-gas-toggle { grid-template-columns: 1fr; }
}
.wie-chart-legend-swatch.wie-chart-legend-swatch--block { width: 14px; height: 14px; border-radius: 4px; }
.wie-chart-legend-swatch--dashed {
  width: 18px; height: 0; border-radius: 0;
  border-top: 3px dashed var(--navy);
  background: none;
}
.wie-chart-legend {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.9rem;
}
.wie-chart-compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  margin: 0 0 1rem;
}
.wie-chart-compare-chip-swatch {
  width: 20px;
  height: 0;
  border-top: 3px dashed var(--navy);
  flex-shrink: 0;
}
.wie-chart-compare-chip-flag {
  flex-shrink: 0;
  border-radius: 3px;
}
.wie-chart-compare-chip-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.35;
}
.wie-chart-compare-chip-text strong { font-weight: 700; }
.wie-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  transition: color 0.3s, opacity 0.3s;
}
.wie-chart-legend-item.off { color: var(--mutedgrey); opacity: 0.45; }
.wie-chart-legend-swatch { width: 14px; height: 4px; border-radius: 2px; flex-shrink: 0; }
.wie-chart-svg-wrap { position: relative; }
.wie-chart-svg-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.wie-chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.78rem;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  line-height: 1.4;
  transform: translate(-50%, -110%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 5;
}
.wie-chart-tooltip.visible { opacity: 1; }
.wie-chart-tooltip strong { color: var(--accentblue); }
.wie-chart-caption { font-size: 0.82rem; color: var(--mutedgrey); margin-top: 0.75rem; line-height: 1.5; }
.wie-chart-card .wie-chart-source { font-size: 0.68rem; color: var(--mutedgrey); margin-top: 0.5rem; line-height: 1.4; }

/* ── Highlight / caveat / quote box ── */
.wie-highlight {
  background: #ffffff;
  border-left: 4px solid var(--red);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  max-width: 620px;
}
.wie-highlight p { margin: 0; color: var(--darkgrey); font-size: 1rem; max-width: none; }
.wie-highlight p strong { color: var(--navy); }
/* ── Testimonial (photo + quote, distinct from the caveat highlight above) ── */
.wie-testimonial {
  background: var(--vlightblue);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  max-width: 620px;
}
.wie-testimonial-photo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 10px rgba(20,33,98,0.18);
}
.wie-testimonial-body { flex: 1; }
.wie-testimonial-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 0.4;
  display: block;
  margin-bottom: 0.35rem;
}
.wie-testimonial p {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  color: var(--navy);
  max-width: none;
  line-height: 1.55;
}
.wie-testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--mutedgrey);
}
.wie-testimonial cite strong { color: var(--navy); }
@media (max-width: 560px) {
  .wie-testimonial { flex-direction: column; align-items: flex-start; }
}

/* ── Figure recreation frame (Figure 1 diagram) ── */
.wie-figure {
  background: #ffffff;
  border: 1px solid rgba(20,33,98,0.1);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.wie-figure svg, .wie-figure img { width: 100%; height: auto; display: block; }
.wie-figure-caption {
  font-size: 0.82rem;
  color: var(--mutedgrey);
  margin-top: 0.85rem;
  line-height: 1.5;
  max-width: none;
}

/* ── Photo (landscape/field imagery — no card frame, reads as a photo not a data figure) ── */
.wie-photo { margin: 1.5rem 0; }
.wie-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}
.wie-section .wie-photo-caption {
  font-size: 0.7rem;
  color: var(--mutedgrey);
  margin-top: 0.5rem;
  line-height: 1.4;
  max-width: none;
}
.wie-photo-caption a { color: var(--mutedgrey); text-decoration: underline; }

/* ── "More on the way" note — light touch, not a wall of build notes ── */
.wie-coming-soon {
  background: var(--vlightblue);
  border: 1.5px dashed var(--blue);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  max-width: 620px;
}
.wie-coming-soon-tag {
  display: inline-block;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.wie-coming-soon p { margin: 0; font-size: 0.95rem; color: var(--darkgrey); max-width: none; }

/* ── Stub section (future chapter, not yet built) ── */
.wie-stub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.wie-stub-card {
  background: #ffffff;
  border: 1px solid rgba(20,33,98,0.1);
  border-radius: 8px;
  padding: 1.1rem;
}
.wie-stub-card-tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mutedgrey);
  border: 1px solid rgba(110,110,110,0.35);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.55rem;
}
.wie-stub-card h4 { font-size: 0.98rem; font-weight: 500; color: var(--navy); margin: 0 0 0.35rem; }
.wie-stub-card p { font-size: 0.86rem; color: var(--mutedgrey); margin: 0; line-height: 1.5; max-width: none; }

/* ── References (kept technical on purpose — this is the opt-in appendix) ── */
.wie-references { background: var(--vlightblue); padding: 1.15rem 0; }
.wie-references h2 { font-weight: 500; color: var(--navy); font-size: 1.25rem; margin: 0 0 0.5rem; }
.wie-references-note { font-size: 0.88rem; color: var(--mutedgrey); margin: 0 0 1.25rem; max-width: 620px; }
ol.wie-ref-list { list-style: none; margin: 0; padding: 0; }
ol.wie-ref-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--mutedgrey);
}
ol.wie-ref-list .ref-num { position: absolute; left: 0; top: 0; color: var(--navy); font-weight: 700; }
ol.wie-ref-list a { color: var(--blue); }
ol.wie-ref-list li.wie-ref-cited { padding-left: 2.8rem; }
ol.wie-ref-list li.wie-ref-cited .ref-num { left: 1.5rem; }

/* ── In-text citation badges + reference back-links ── */
.fn {
  display: inline-block; width: 16px; height: 16px;
  background: var(--navy); color: #ffffff;
  border-radius: 50%; font-size: 0.6rem; font-weight: 700;
  text-align: center; line-height: 16px; vertical-align: super;
  margin-left: 1px; cursor: pointer; text-decoration: none;
  scroll-margin-top: 80px;
}
.fn:hover { background: var(--blue); }
.ref-back {
  position: absolute; left: 0; top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #c7cede; color: var(--mutedgrey);
  text-decoration: none; font-size: 0.72rem;
  transition: border-color 0.15s, color 0.15s;
}
.ref-back:hover { border-color: var(--navy); color: var(--navy); }
ol.wie-ref-list li { scroll-margin-top: 80px; }

/* ── CTA / footer ── */
.wie-cta { background: #ffffff; padding: 2.75rem 0; }
.wie-cta-card {
  background: var(--vlightblue);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.wie-cta-card-title { font-weight: 500; color: var(--navy); margin: 0 0 0.35rem; }
.wie-cta-card-meta { font-size: 0.85rem; color: var(--mutedgrey); }
.wie-btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.wie-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.wie-btn:hover { background: var(--vlightblue); }
.wie-btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.wie-btn--primary:hover { background: #2270ba; }

.wie-footer { background: #ffffff; color: var(--darkgrey); padding: 2.25rem 0; }
.wie-footer img { height: 38px; margin-bottom: 1rem; }
.wie-footer p { font-size: 0.98rem; color: var(--mutedgrey); line-height: 1.6; max-width: 600px; }
.wie-footer a.wie-footer-link { color: var(--blue); text-decoration: none; font-size: 0.85rem; }

/* ── Mobile ── */
@media (max-width: 600px) {
  .wie-container { padding: 0 1.1rem; }
  .wie-nav-bar { padding: 0 1.1rem; }
  .wie-hero h1 { font-size: 1.85rem; }
  .wie-stat-card { padding: 1.4rem 1.5rem; gap: 1.1rem; }
  .wie-stat-icon { width: 52px; height: 52px; }
  .wie-stat-icon svg { width: 26px; height: 26px; }
  .wie-stat-num { font-size: 2rem; }
  .wie-feedback-tile { flex-direction: column; }
}
