:root {
  color-scheme: light;
  --page: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #eaf0ee;
  --surface-subtle: #f8faf9;
  --ink: #142f37;
  --ink-soft: #50676e;
  --line: #d7e0dd;
  --line-strong: #bac9c4;
  --teal: #087d72;
  --teal-dark: #07645d;
  --teal-soft: #dcefea;
  --forecast: #d06142;
  --forecast-dark: #a84129;
  --forecast-soft: #f9e7df;
  --band: #efb19a;
  --actual: #1c5369;
  --eb1: #23647d;
  --eb2: #cf6041;
  --eb3: #7661a8;
  --current: #087451;
  --success: #087451;
  --warning: #a45f11;
  --warning-soft: #fff2d8;
  --danger: #a33b33;
  --danger-soft: #fbe8e5;
  --danger-border: #e8bbb5;
  --danger-solid: #a33b33;
  --danger-solid-hover: #842f29;
  --on-solid: #ffffff;
  --segmented-track: #dfe8e5;
  --segment-hover: rgba(255, 255, 255, 0.48);
  --selected-shadow: 0 2px 6px rgba(34, 65, 63, 0.12);
  --current-ring: rgba(20, 149, 101, 0.14);
  --legend-band-border: rgba(80, 103, 110, 0.18);
  --legend-band-bg: rgba(80, 103, 110, 0.12);
  --tooltip-bg: rgba(255, 255, 255, 0.98);
  --tooltip-shadow: 0 4px 8px rgba(24, 49, 58, 0.18);
  --chart-grid: #e7ece9;
  --chart-axis: #526970;
  --chart-current-guide: #8ea5a6;
  --unavailable-bg: #fff8ec;
  --unavailable-line: #f0dfbf;
  --unavailable-ink: #946520;
  --chart-hover-guide: rgba(24, 49, 58, 0.3);
  --shadow: 0 4px 8px rgba(27, 53, 57, 0.1);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --content-width: 1180px;
  --z-chart: 10;
  --z-tooltip: 40;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0c161a;
  --surface: #132126;
  --surface-soft: #192b2f;
  --surface-subtle: #101c20;
  --ink: #edf4f2;
  --ink-soft: #a9bbb8;
  --line: #2a3c3e;
  --line-strong: #43585a;
  --teal: #58cbbb;
  --teal-dark: #75d8ca;
  --teal-soft: #173c39;
  --forecast: #ef896c;
  --forecast-dark: #ff9b7d;
  --forecast-soft: #3b211b;
  --band: #9f5d4d;
  --actual: #76b6cc;
  --eb1: #65b6d1;
  --eb2: #f08a70;
  --eb3: #b39de3;
  --current: #54d19b;
  --success: #54d19b;
  --warning: #f0b35e;
  --warning-soft: #352711;
  --danger: #f2a098;
  --danger-soft: #3b2020;
  --danger-border: #70413d;
  --danger-solid: #a84640;
  --danger-solid-hover: #923b36;
  --segmented-track: #213337;
  --segment-hover: rgba(255, 255, 255, 0.055);
  --selected-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
  --current-ring: rgba(84, 209, 155, 0.22);
  --legend-band-border: rgba(169, 187, 184, 0.34);
  --legend-band-bg: rgba(169, 187, 184, 0.14);
  --tooltip-bg: rgba(19, 33, 38, 0.98);
  --tooltip-shadow: 0 4px 8px rgba(0, 0, 0, 0.34);
  --chart-grid: #26383b;
  --chart-axis: #9db0ad;
  --chart-current-guide: #607477;
  --unavailable-bg: #2c2417;
  --unavailable-line: #57452c;
  --unavailable-ink: #e4b86f;
  --chart-hover-guide: rgba(210, 230, 226, 0.32);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  line-height: 1.5;
}

button,
select,
input {
  color: inherit;
  font: inherit;
}

button,
a,
select,
input,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  min-height: 44px;
  font-size: 0.9375rem;
  text-decoration: none;
  letter-spacing: -0.015em;
}

.brand-name {
  font-weight: 760;
  letter-spacing: -0.025em;
}

.brand-name span {
  color: var(--teal-dark);
  font-weight: 680;
}

.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

main,
footer {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.release-note {
  display: block;
  max-width: 390px;
  justify-self: end;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: right;
}

.release-note strong {
  color: var(--ink);
  font-weight: 700;
}

.release-secondary::before {
  content: " · ";
}

.theme-toggle {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--segmented-track);
}

.theme-option {
  display: inline-flex;
  min-width: 60px;
  min-height: 34px;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 680;
}

.theme-option:hover,
.theme-option:active {
  background: var(--segment-hover);
  color: var(--ink);
}

.theme-option[aria-checked="true"] {
  background: var(--surface);
  color: var(--teal-dark);
  box-shadow: var(--selected-shadow);
}

.theme-option svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.forecast-controls {
  display: block;
  width: min(100%, 760px);
  margin-top: 24px;
  margin-inline: auto;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chargeability-fieldset {
  display: block;
}

.segmented-control {
  display: grid;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: var(--segmented-track);
}

.area-control {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.segment-button {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 680;
  transition: background 180ms var(--ease-out), box-shadow 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.segment-button:hover {
  background: var(--segment-hover);
  color: var(--ink);
}

.segment-button:active {
  transform: translateY(1px);
}

.segment-button[aria-checked="true"] {
  background: var(--surface);
  color: var(--teal-dark);
  box-shadow: var(--selected-shadow);
}

.headline-section,
.chart-section,
.methodology-section,
.accuracy-section {
  padding-top: 56px;
}

.headline-section {
  padding-top: 32px;
}

.chart-section {
  padding-top: 42px;
}

.section-heading {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.selection-title {
  margin-bottom: 3px;
  font-size: 1.5rem;
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.selection-subtitle,
.chart-run-context {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.section-intro {
  max-width: 70ch;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.methodology-heading {
  margin-bottom: 14px;
}

.methodology-copy {
  max-width: 75ch;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.methodology-copy p {
  margin: 0;
}

.methodology-copy p + p {
  margin-top: 12px;
}

.outlook-comparison {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.outlook-table {
  display: block;
  width: 100%;
  border-collapse: collapse;
}

.outlook-row {
  display: grid;
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
}

.outlook-row + .outlook-row {
  border-top: 1px solid var(--line);
}

.outlook-header {
  min-height: 54px;
  background: var(--surface-subtle);
}

.outlook-header > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 10px 16px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.outlook-header > span + span,
.outlook-row > .outlook-cell {
  border-left: 1px solid var(--line);
}

.outlook-header strong {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.outlook-header small {
  margin-top: 2px;
  font-size: 0.6875rem;
}

.outlook-category {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 18px 16px;
  font-size: 0.875rem;
}

.outlook-category .legend-dot {
  flex: 0 0 auto;
}

.outlook-cell {
  min-width: 0;
  padding: 15px 16px 14px;
}

.outlook-mobile-label {
  display: none;
}

.outlook-value-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.outlook-value {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.outlook-value.status-current,
.outlook-value .current-value {
  color: var(--current);
}

.outlook-value.status-unavailable {
  color: var(--warning);
}

.current-value {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.current-value .current-pip {
  width: 9px;
  height: 9px;
}

.outlook-movement {
  color: var(--teal-dark);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.outlook-movement > span {
  display: inline-block;
  width: 16px;
  font-weight: 800;
}

.outlook-movement.down,
.outlook-movement.status-change {
  color: var(--warning);
}

.outlook-range {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.6875rem;
  line-height: 1.35;
}

.chart-heading {
  align-items: end;
}

.run-timeline {
  width: min(100%, 760px);
  margin-top: 24px;
  margin-inline: auto;
  padding: 10px 0 2px;
}

.run-timeline-heading,
.run-timeline-ends {
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
}

.run-timeline-heading {
  margin-bottom: 6px;
  font-size: 0.75rem;
}

.run-timeline-heading label {
  color: var(--ink-soft);
  font-weight: 700;
}

.run-timeline-heading output {
  color: var(--ink);
  font-weight: 720;
}

.run-timeline input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.run-timeline input[type="range"]:disabled {
  cursor: wait;
  opacity: 0.62;
}

.run-timeline-ends {
  color: var(--ink-soft);
  font-size: 0.6875rem;
}

.chart-chargeability-controls {
  margin-top: 18px;
}

.chart-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.chart-toolbar {
  position: relative;
  z-index: var(--z-chart);
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 24px 6px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 650;
}

.legend span,
.chart-category-toggle {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.legend-divider {
  width: 1px;
  height: 17px;
  background: var(--line);
}

.category-key {
  color: var(--ink);
}

.chart-category-toggle {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.chart-category-toggle:hover,
.chart-category-toggle:active {
  background: var(--surface-soft);
}

.chart-category-toggle[aria-pressed="true"] {
  border-color: var(--series-color);
  background: var(--surface-subtle);
}

.chart-category-toggle.is-muted {
  color: var(--ink-soft);
}

.chart-category-toggle.is-muted .legend-dot {
  opacity: 0.32;
}

.legend-dot,
.current-pip {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--series-color);
}

.category-eb2 .legend-dot {
  border-radius: 2px;
}

.category-eb3 .legend-dot {
  border-radius: 1px;
  transform: rotate(45deg) scale(0.82);
}

.current-pip {
  background: var(--current);
  box-shadow: 0 0 0 2px var(--current-ring);
}

.category-eb1 {
  --series-color: var(--eb1);
}

.category-eb2 {
  --series-color: var(--eb2);
}

.category-eb3 {
  --series-color: var(--eb3);
}

.legend-line {
  width: 22px;
  height: 0;
  border-top: 2px solid;
}

.actual-line {
  border-color: var(--actual);
}

.forecast-line {
  border-color: var(--ink-soft);
  border-top-style: dashed;
}

.legend-band {
  width: 22px;
  height: 9px;
  border-radius: 3px;
  border: 1px solid var(--legend-band-border);
  background: var(--legend-band-bg);
}

.legend-unavailable-bound {
  display: inline-grid;
  width: 14px;
  height: 13px;
  place-items: end center;
  padding-bottom: 1px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--unavailable-ink);
  color: var(--surface);
  font-size: 0.4375rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.chart-frame {
  position: relative;
  z-index: var(--z-chart);
  width: 100%;
  min-height: 360px;
  overflow: hidden;
}

#forecast-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 360px;
  touch-action: pan-y;
}

.chart-tooltip {
  position: fixed;
  z-index: var(--z-tooltip);
  inset: auto;
  width: min(270px, calc(100vw - 24px));
  margin: 0;
  padding: 12px 13px;
  overflow: visible;
  border: 0;
  border-radius: 10px;
  background: var(--tooltip-bg);
  color: var(--ink);
  box-shadow: var(--tooltip-shadow);
  pointer-events: none;
}

.chart-tooltip::before {
  position: absolute;
  top: var(--tooltip-pointer-y, 24px);
  width: 9px;
  height: 9px;
  background: var(--tooltip-bg);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.chart-tooltip[data-side="right"]::before {
  left: -4px;
}

.chart-tooltip[data-side="left"]::before {
  right: -4px;
}

.chart-data-panel {
  display: none;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.chart-data-panel-hint {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.tooltip-month {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
}

.tooltip-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.tooltip-row strong {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.tooltip-range strong {
  color: var(--ink-soft);
}

.tooltip-current {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--current);
}

.tooltip-current .current-pip {
  width: 7px;
  height: 7px;
}

.tooltip-series + .tooltip-series {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.tooltip-series-heading {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.tooltip-series-title {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.tooltip-series-title .legend-dot {
  width: 7px;
  height: 7px;
}

.tooltip-outcome {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.tooltip-outcome.is-within {
  color: var(--success);
}

.tooltip-outcome.is-outside {
  color: var(--danger);
}

.tooltip-outcome svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

@media (max-width: 620px), (max-height: 520px), (hover: none) and (pointer: coarse) {
  .chart-tooltip {
    display: none !important;
  }

  .chart-data-panel {
    display: block;
  }

  .chart-data-panel .tooltip-month {
    margin-bottom: 10px;
    font-size: 0.875rem;
  }

  .chart-data-panel .tooltip-series {
    display: grid;
    grid-template-columns: minmax(54px, auto) minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }

  .chart-data-panel .tooltip-series-heading {
    grid-column: 1;
    grid-row: 1 / span 3;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .chart-data-panel .tooltip-outcome {
    line-height: 1.2;
  }

  .chart-data-panel .tooltip-row {
    grid-column: 2;
    margin-top: 0;
  }

  .chart-data-panel .tooltip-row + .tooltip-row {
    margin-top: 4px;
  }
}

.chart-caption {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
}

.chart-caption p {
  max-width: 76ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.chart-caption strong {
  color: var(--ink);
}

.accuracy-heading {
  margin-bottom: 18px;
}

.accuracy-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.2fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-right: 1px solid var(--line);
}

.score-stat {
  padding: 20px 20px 20px 0;
}

.score-stat strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.score-stat span {
  display: block;
  max-width: 26ch;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.35;
}

.accuracy-context {
  padding: 17px 0 17px 22px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.accuracy-context > p {
  max-width: 72ch;
  margin-bottom: 8px;
}

.accuracy-context strong {
  color: var(--ink);
}

.accuracy-method {
  max-width: 72ch;
  margin-top: 11px;
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.accuracy-unavailable {
  grid-column: 1 / -1;
  margin: 0;
  padding: 20px 20px 20px 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.decision-note {
  max-width: 88ch;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.decision-note p {
  margin-bottom: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.decision-note strong {
  color: var(--teal-dark);
}

footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 54px;
  padding: 23px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.error-state {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  display: flex;
  max-width: 420px;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.8125rem;
}

.error-state button {
  min-height: 44px;
  align-self: flex-start;
  margin-top: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--danger-solid);
  color: var(--on-solid);
  cursor: pointer;
  font-weight: 700;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.error-state button:hover {
  background: var(--danger-solid-hover);
}

.error-state button:active {
  transform: translateY(1px);
}

/* SVG chart */
.grid-line {
  stroke: var(--chart-grid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.axis-label {
  fill: var(--chart-axis);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.axis-title {
  fill: var(--chart-axis);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-guide {
  fill: none;
  stroke: var(--chart-current-guide);
  stroke-dasharray: 4 5;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.current-label {
  fill: var(--current);
  font-size: 10px;
  font-weight: 700;
}

.forecast-rail {
  stroke: var(--chart-axis);
  stroke-linecap: round;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.forecast-rail-start,
.forecast-rail-label {
  fill: var(--chart-axis);
}

.forecast-rail-label {
  font-size: 10px;
  font-weight: 700;
}

.series-path {
  fill: none;
  stroke: var(--series-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.actual-series {
  stroke-width: 2.25;
}

.forecast-series {
  stroke-dasharray: 7 5;
  stroke-width: 2.15;
}

.series-band {
  fill: var(--series-color);
  opacity: 0.12;
  stroke: none;
}

.series-point {
  fill: var(--surface);
  stroke: var(--series-color);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.current-point {
  fill: var(--current);
  stroke: var(--surface);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.latest-point {
  fill: var(--series-color);
  stroke: var(--surface);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.unavailable-lane {
  fill: var(--unavailable-bg);
  stroke: var(--unavailable-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.unavailable-label {
  fill: var(--unavailable-ink);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.unavailable-marker {
  fill: var(--surface);
  stroke: var(--series-color);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.unavailable-marker-text {
  fill: var(--series-color);
  font-size: 9px;
  font-weight: 850;
  text-anchor: middle;
}

.unavailable-bound-stem {
  stroke: var(--series-color);
  stroke-dasharray: 2.5 3;
  stroke-width: 1;
  opacity: 0.72;
  vector-effect: non-scaling-stroke;
}

.unavailable-bound-marker {
  fill: var(--series-color);
  stroke: var(--surface);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.unavailable-bound-marker-text {
  fill: var(--surface);
  font-size: 7px;
  font-weight: 850;
  text-anchor: middle;
}

.hover-guide {
  stroke: var(--chart-hover-guide);
  stroke-dasharray: 2 3;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hover-target {
  fill: transparent;
  cursor: crosshair;
}

.chart-empty {
  fill: var(--ink-soft);
  font-size: 13px;
  text-anchor: middle;
}

@media (max-width: 820px) {
  .release-note {
    max-width: none;
  }

  .outlook-row {
    grid-template-columns: 96px repeat(3, minmax(0, 1fr));
  }

  .accuracy-layout {
    grid-template-columns: 1fr;
  }

  .score-grid {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .accuracy-context {
    padding: 16px 0;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    min-height: 0;
    padding-block: 8px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .theme-option {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }

  .theme-option-label {
    display: none;
  }

  .release-note {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    font-size: 0.75rem;
    text-align: right;
  }

  .release-note span {
    display: block;
  }

  .release-secondary::before {
    content: "";
  }

  .forecast-controls {
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .area-control {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .segment-button {
    padding-inline: 10px;
  }

  .headline-section,
  .chart-section,
  .methodology-section,
  .accuracy-section {
    padding-top: 44px;
  }

  .headline-section {
    padding-top: 30px;
  }

  .chart-section {
    padding-top: 38px;
  }

  .section-heading h2,
  .selection-title {
    font-size: 1.375rem;
  }

  .outlook-header {
    display: none;
  }

  .outlook-row:not(.outlook-header) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outlook-row > .outlook-cell {
    border-left: 0;
  }

  .outlook-row > .outlook-official,
  .outlook-row > .outlook-cell:last-child {
    border-left: 1px solid var(--line);
  }

  .outlook-row > .outlook-cell:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .outlook-category,
  .outlook-official {
    background: var(--surface-subtle);
  }

  .outlook-category {
    padding: 14px;
  }

  .outlook-cell {
    padding: 13px 14px;
  }

  .outlook-official {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .outlook-mobile-label {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-soft);
    font-size: 0.6875rem;
    font-weight: 650;
  }

  .outlook-value-row {
    display: block;
  }

  .outlook-movement {
    display: block;
    margin-top: 3px;
    white-space: normal;
  }

  .outlook-range {
    align-items: start;
    margin-top: 7px;
  }

  .section-heading,
  .chart-toolbar,
  .chart-caption {
    align-items: start;
    flex-direction: column;
  }

  .section-heading {
    gap: 8px;
  }

  .compact-heading {
    gap: 10px;
  }

  .chart-heading {
    gap: 17px;
  }

  .run-timeline {
    width: 100%;
    padding-top: 0;
  }

  .chart-card {
    margin-inline: -14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .chart-toolbar {
    gap: 13px;
    padding-inline: 18px;
  }

  .legend {
    gap: 11px;
    font-size: 0.8125rem;
  }

  .chart-category-toggle {
    min-height: 44px;
    padding-inline: 9px;
  }

  .chart-frame,
  #forecast-chart {
    min-height: 0;
  }

  .axis-label {
    font-size: 18px;
  }

  .axis-title,
  .current-label {
    font-size: 17px;
  }

  .unavailable-label {
    font-size: 15px;
  }

  .chart-caption {
    padding-inline: 18px;
  }

  .chart-caption p,
  .score-stat span,
  .accuracy-context,
  .decision-note p {
    font-size: 0.875rem;
  }

  .score-stat {
    padding: 17px 14px 17px 0;
  }

  .score-stat strong {
    font-size: 1.125rem;
  }

  .decision-note {
    margin-top: 50px;
  }

  .error-state {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 350px) {
  .brand-name {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
