:root {
  color-scheme: light;
  --paper: #f5f7f3;
  --card: #ffffff;
  --ink: #152a25;
  --ink-soft: #536660;
  --muted: #82918b;
  --line: #e4eae5;
  --line-dark: #cfdbd3;
  --green: #167660;
  --green-dark: #105847;
  --green-pale: #e6f2ec;
  --lime: #a6c97a;
  --orange: #df8053;
  --orange-pale: #fbefe8;
  --shadow: 0 12px 36px rgba(32, 67, 54, 0.055);
  --radius: 14px;
  --sans: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5; }
button, select, input { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #93cdb7; outline-offset: 3px; }
a { color: inherit; }
.shell { width: min(1240px, calc(100% - 56px)); margin: 0 auto; }
.skip-link { position: absolute; left: 20px; top: -60px; z-index: 4; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dfe6df; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 750; letter-spacing: -.045em; }
.brand-region { color: #798981; font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.brand-mark { width: 23px; height: 23px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transform: rotate(-8deg); }
.brand-mark i { display: block; border-radius: 2px; background: var(--green); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { background: var(--lime); }
.brand-mark i:nth-child(4) { background: #d57e55; }
.topbar-right { display: flex; align-items: center; gap: 26px; }
.static-badge { display: inline-flex; align-items: center; gap: 7px; color: #576960; font-size: 9px; letter-spacing: .13em; font-weight: 750; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #bf7c4c; box-shadow: 0 0 0 3px #f5e9da; }
.source-link { color: var(--ink-soft); font-size: 12px; text-decoration: none; }
.source-link:hover, .method-link:hover, .boundary-note a:hover, .footer a:hover { color: var(--green); }

.intro { display: flex; align-items: flex-end; justify-content: space-between; padding: 62px 0 52px; gap: 40px; }
.eyebrow, .card-kicker, .control-label { margin: 0; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-rule { width: 20px; height: 1px; background: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 15px 0 13px; font-size: clamp(42px, 5.7vw, 68px); line-height: .99; letter-spacing: -.067em; font-weight: 650; }
h1 em { color: var(--green); font-family: var(--serif); font-weight: 400; letter-spacing: -.06em; }
.intro-lede { max-width: 550px; margin-bottom: 0; color: #62716b; font-size: 15px; line-height: 1.65; }
.snapshot-note { min-width: 255px; display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid #e1e8e0; border-radius: 11px; background: rgba(255,255,255,.68); margin-bottom: 4px; }
.snapshot-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--green-pale); color: var(--green); font-size: 18px; }
.snapshot-note strong, .snapshot-note span { display: block; }
.snapshot-note strong { font-size: 12px; font-weight: 700; }
.snapshot-note div > span { margin-top: 2px; color: var(--muted); font-size: 10px; }

.explorer { padding: 27px 28px 29px; border: 1px solid #e2e8e1; border-radius: 17px; background: #fbfcfa; box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.section-heading h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.045em; }
.section-caption { margin: 0 1px 3px; color: var(--muted); font-size: 11px; }
.control-strip { display: flex; align-items: flex-end; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.select-control, .metric-control, .view-control { display: flex; flex-direction: column; gap: 6px; color: #78877f; font-size: 8px; letter-spacing: .13em; font-weight: 800; }
.select-control { min-width: 175px; }
.select-control select { appearance: none; min-height: 36px; padding: 0 33px 0 11px; color: var(--ink); border: 1px solid var(--line-dark); border-radius: 7px; background-color: white; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23536660' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; font-size: 12px; font-weight: 650; letter-spacing: 0; cursor: pointer; }
.metric-control { flex: 1; }
.segmented, .view-switch { display: inline-flex; gap: 3px; min-height: 36px; align-items: center; padding: 3px; border-radius: 8px; background: #f1f4f0; }
.target-button, .view-button { border: 0; min-height: 29px; padding: 0 13px; border-radius: 6px; color: #62716b; background: transparent; font-size: 11px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: color .15s ease, background .15s ease, box-shadow .15s ease; }
.target-button:hover, .view-button:hover { color: var(--green-dark); }
.target-button.is-active, .view-button.is-active { background: white; color: var(--green-dark); box-shadow: 0 1px 4px rgba(20, 52, 39, .1); }
.export-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid var(--green); border-radius: 7px; background: var(--green); color: white; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .15s ease; }
.export-button:hover { background: var(--green-dark); }
.export-button span { font-size: 16px; line-height: 1; }
.context-line { display: flex; align-items: center; gap: 10px; min-height: 42px; color: #687770; font-size: 10px; }
.synthetic-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 4px; color: #87633f; background: #f8f0e5; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.mini-sun { color: #c77c42; font-size: 11px; }
.period-context { margin-left: auto; color: #89958f; }

.analysis-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; }
.chart-card, .metric-card, .scenario-card, .detail-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.chart-card { min-width: 0; padding: 19px 20px 12px; }
.chart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.chart-header h3, .detail-heading h3, .scenario-intro h3 { margin: 4px 0 0; font-size: 15px; letter-spacing: -.03em; }
.chart-header .card-kicker { color: #8a9991; font-size: 8px; }
.chart-legend { display: flex; gap: 14px; align-items: center; margin-top: 7px; color: #78877f; font-size: 9px; white-space: nowrap; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 14px; height: 2px; border-radius: 2px; background: var(--green); }
.legend-swatch.actual { background: var(--orange); }
.legend-swatch.band { height: 8px; background: #dceddf; }
.chart-wrap { width: 100%; height: 313px; margin-top: 12px; position: relative; }
#chart { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #e9eeea; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis-text { fill: #89968f; font-family: var(--sans); font-size: 11px; }
.forecast-band { fill: #deeee4; opacity: .78; }
.forecast-line { fill: none; stroke: #167660; stroke-width: 2.7; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.actual-line { fill: none; stroke: #dc835d; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.baseline-line { fill: none; stroke: #98a69e; stroke-width: 1.7; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart-marker { stroke: white; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart-separator { stroke: #a4b7ab; stroke-width: 1.4; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.chart-foot { display: flex; justify-content: space-between; color: #87948d; font-size: 9px; }
.chart-message { min-height: 0; color: #ad522d; font-size: 10px; }
.chart-message:empty { display: none; }
.metrics-column { display: grid; min-width: 0; gap: 10px; }
.metric-card { min-height: 104px; padding: 14px 16px; }
.primary-metric { min-height: 155px; background: #f5faf6; border-color: #dcebe1; }
.metric-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #62736a; font-size: 10px; font-weight: 650; }
.metric-period { color: #87968e; font-size: 7px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.large-value { display: block; margin-top: 9px; font-size: 30px; line-height: 1.05; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.medium-value { display: block; margin-top: 8px; font-size: 23px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metric-units { display: block; margin-top: 4px; color: #8a9890; font-size: 9px; }
.metric-symbol { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--green); background: var(--green-pale); font-size: 12px; }
.metric-divider { height: 1px; margin: 11px 0 8px; background: #e1ebe3; }
.metric-subrow { display: flex; justify-content: space-between; gap: 8px; color: #7a8982; font-size: 9px; }
.metric-subrow strong { color: #345c4b; font-size: 9px; }
.coverage-card { min-height: 120px; }
.coverage-card p { margin: 9px 0 0; color: #87948d; font-size: 9px; line-height: 1.45; }

.scenario-card { display: grid; grid-template-columns: minmax(195px, 1.2fr) 1fr 1fr 1fr auto; align-items: center; gap: 20px; margin-top: 14px; padding: 17px 18px; }
.scenario-intro { display: flex; align-items: flex-start; gap: 10px; }
.scenario-icon { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 8px; background: var(--orange-pale); color: #c36b43; font-size: 20px; }
.scenario-intro .card-kicker { color: #9a765f; font-size: 7px; }
.scenario-intro h3 { margin-top: 3px; font-size: 13px; }
.scenario-intro p { margin: 4px 0 0; color: #8a9790; font-size: 9px; line-height: 1.4; }
.scenario-control { min-width: 90px; }
.scenario-control label { display: flex; justify-content: space-between; color: #586961; font-size: 10px; font-weight: 650; }
.scenario-control output { color: var(--green); font-variant-numeric: tabular-nums; }
.scenario-control input { width: 100%; height: 13px; margin: 8px 0 0; accent-color: var(--green); cursor: pointer; }
.range-hints { display: flex; justify-content: space-between; color: #a0aaa4; font-size: 8px; }
.reset-button { align-self: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #65746c; font-size: 9px; font-weight: 650; cursor: pointer; }
.reset-button:hover { border-color: var(--line-dark); color: var(--green); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 14px; margin-top: 14px; }
.detail-card { padding: 17px 19px; }
.detail-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.detail-heading .card-kicker { color: #8a9991; font-size: 8px; }
.detail-heading h3 { font-size: 14px; }
.table-count { color: #89968f; font-size: 9px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 10px; font-variant-numeric: tabular-nums; }
thead { color: #8b9891; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
th { padding: 8px 8px 9px; border-bottom: 1px solid var(--line-dark); font-weight: 700; }
td { padding: 8px; border-bottom: 1px solid #eff2ef; color: #53645b; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: #334a3e; font-weight: 650; }
.table-note { margin: 9px 0 0; color: #929e97; font-size: 9px; }
.method-card { background: #fbfcfa; }
.trace-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: var(--green); background: var(--green-pale); font-family: var(--serif); font-size: 19px; }
.trace-list { margin: 0; }
.trace-list div { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf1ed; }
.trace-list div:last-child { border-bottom: 0; }
.trace-list dt { color: #89968f; font-size: 9px; }
.trace-list dd { margin: 0; color: #465a50; font-size: 9px; font-weight: 600; }
.method-link { display: inline-block; margin-top: 12px; color: var(--green); font-size: 9px; font-weight: 700; text-decoration: none; }

.boundary-note { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: start; gap: 13px; margin: 20px 0 36px; padding: 15px 17px; border: 1px solid #e7e3d7; border-radius: 10px; background: #fbf8f0; }
.boundary-mark { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #926b42; background: #efe6d2; font-family: var(--serif); font-weight: 700; }
.boundary-note strong { color: #534531; font-size: 10px; }
.boundary-note p { max-width: 850px; margin: 4px 0 0; color: #817660; font-size: 9px; line-height: 1.55; }
.boundary-note > a { align-self: center; color: #856a47; font-size: 9px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer { display: flex; align-items: center; justify-content: space-between; min-height: 65px; border-top: 1px solid #dfe6df; color: #8a9790; font-size: 9px; }
.footer-brand { font-size: 12px; }
.footer-brand .brand-mark { width: 19px; height: 19px; }
.footer-brand .brand-region { font-size: 7px; }
.footer a { color: #74827a; text-decoration: none; }

@media (max-width: 920px) {
  .shell { width: min(100% - 36px, 760px); }
  .intro { align-items: flex-start; padding: 46px 0 37px; }
  .snapshot-note { min-width: 225px; margin-top: 40px; }
  .explorer { padding: 22px; }
  .control-strip { flex-wrap: wrap; align-items: flex-end; }
  .metric-control { flex: 1 1 270px; }
  .analysis-grid { grid-template-columns: minmax(0, 1fr) 220px; }
  .chart-wrap { height: 280px; }
  .scenario-card { grid-template-columns: 1fr 1fr 1fr; gap: 17px; }
  .scenario-intro { grid-column: span 2; }
  .scenario-control { min-width: 100px; }
  .reset-button { justify-self: end; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, .85fr); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .topbar { height: 62px; }
  .topbar-right { gap: 12px; }
  .source-link { font-size: 10px; }
  .static-badge { font-size: 7px; }
  .intro { display: block; padding: 40px 0 30px; }
  h1 { font-size: 48px; }
  .intro-lede { font-size: 13px; }
  .snapshot-note { margin-top: 19px; width: max-content; max-width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 15px; }
  .section-heading h2 { font-size: 19px; }
  .section-caption { margin: -6px 0 0; }
  .explorer { padding: 15px; border-radius: 13px; }
  .control-strip { gap: 10px; padding: 11px; }
  .select-control { flex: 1 1 100%; }
  .metric-control { flex: 1 1 100%; }
  .segmented { width: 100%; }
  .target-button { flex: 1; padding: 0 6px; font-size: 10px; }
  .view-control { flex: 1; }
  .view-switch { width: 100%; }
  .view-button { flex: 1; padding: 0 8px; }
  .export-button { align-self: flex-end; flex: 0 0 auto; }
  .context-line { flex-wrap: wrap; gap: 7px; padding: 8px 0; font-size: 9px; }
  .period-context { flex: 1 0 100%; margin-left: 0; }
  .analysis-grid { grid-template-columns: minmax(0, 1fr); }
  .chart-card { padding: 14px 12px 11px; }
  .chart-header { flex-direction: column; gap: 7px; }
  .chart-header h3 { font-size: 14px; }
  .chart-legend { margin-top: 0; gap: 11px; }
  .chart-wrap { height: 238px; margin-top: 9px; }
  .metrics-column { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .primary-metric { grid-column: 1 / -1; min-height: 135px; }
  .metric-card { padding: 12px; min-height: 98px; }
  .coverage-card { min-height: 120px; }
  .large-value { font-size: 27px; }
  .medium-value { font-size: 20px; }
  .metric-topline { font-size: 9px; }
  .scenario-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 11px; padding: 15px 13px; }
  .scenario-intro { grid-column: 1 / -1; }
  .scenario-control { min-width: 0; }
  .scenario-control:last-of-type { grid-column: 1 / 2; }
  .reset-button { grid-column: 2 / 3; grid-row: 4; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .detail-grid > * { min-width: 0; }
  .detail-card { min-width: 0; padding: 15px 13px; }
  .trace-list div { grid-template-columns: 105px 1fr; }
  .boundary-note { grid-template-columns: 25px 1fr; gap: 9px; padding: 13px; margin-top: 14px; }
  .boundary-note > a { grid-column: 2; justify-self: start; }
  .footer { gap: 10px; font-size: 8px; }
  .footer > span { max-width: 125px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
