@import url('./fonts/geist/index.css');
@import url('./fonts/geist-mono/index.css');
@import url('./fonts/newsreader/index.css');

:root { color-scheme: light; --blue: #0f5daa; --ink: #1e2b45; --muted: #5a6880; --line: #dce7f2; --paper: #f7fafd; }
body { font-family: 'Geist Variable', system-ui, sans-serif; color: var(--ink); background: var(--paper); margin: 0; }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid #0f5daa; outline-offset: 4px; }
section, footer { scroll-margin-top: 140px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; background: #fff; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.data-note { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; padding: 9px 24px; background: #eef4fa; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.data-note strong { color: var(--blue); font-weight: 600; }
.data-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.header-inner { gap: 20px !important; }
.snapshot { margin-left: auto; font-size: 10px !important; }
.main-nav button { white-space: nowrap; }
.motion-control { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 5px 10px; cursor: pointer; font-size: 11px; }
.chart-note { display: block; font-size: 12px; line-height: 1.55; color: var(--muted); margin-top: 10px; }
.risk-node { font: inherit; text-align: left; }
.module-card { font: inherit; text-align: left; cursor: pointer; }
.module-dialog { border: 1px solid var(--line); border-radius: 24px; padding: 0; width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); color: var(--ink); background: #fff; box-shadow: 0 24px 80px #1e2b4528; }
.module-dialog::backdrop { background: #1e2b4560; backdrop-filter: blur(5px); }
.module-head { display: flex; align-items: flex-start; gap: 24px; justify-content: space-between; padding: 28px 28px 18px; border-bottom: 1px solid var(--line); }
.module-eyebrow { font: 11px 'Geist Mono Variable', monospace; letter-spacing: .12em; color: var(--blue); }
.module-head h2 { font: 400 34px/1.1 'Newsreader Variable', serif; margin: 10px 0 0; }
.close-module { flex: none; border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 50%; background: var(--paper); cursor: pointer; color: var(--ink); font-size: 24px; }
.module-body { padding: 24px 28px 28px; }
.module-body p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; }
.module-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.module-stat { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--paper); }
.module-stat span { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); }
.module-stat strong { display: block; color: var(--blue); font-size: 25px; font-weight: 600; margin-top: 8px; }
.module-body .module-caveat { padding: 14px 16px; background: #eef4fa; border-radius: 12px; font-size: 12px; }
.source-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; margin-top: 18px; }
.source-links a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.scenario-controls { display: grid; gap: 22px; padding: 22px; background: var(--paper); border-radius: 16px; }
.scenario-controls label { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 500; }
.scenario-controls output { font-family: 'Geist Mono Variable', monospace; color: var(--blue); }
.scenario-controls input { display: block; width: 100%; accent-color: var(--blue); margin-top: 12px; cursor: pointer; }
.scenario-result { margin: 20px 0; padding: 20px; background: #eef4fa; border: 1px solid var(--line); border-radius: 16px; }
.scenario-result strong { font-size: 38px; color: var(--blue); display: block; letter-spacing: -.03em; }
.scenario-result span { font-size: 13px; color: var(--muted); }
.reset-scenario { padding: 10px 16px; background: #fff; border: 1px solid var(--line); color: var(--blue); border-radius: 999px; cursor: pointer; font-size: 13px; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; box-sizing: border-box; }
.error-page h1 { font: 400 48px 'Newsreader Variable', serif; }
.error-page a { color: var(--blue); }
@media (max-width: 1190px) {
  .header-inner { gap: 12px !important; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .snapshot { font-size: 11px !important; }
}
@media (max-width: 760px) {
  .header-inner { padding: 12px 20px !important; }
  .snapshot { font-size: 10px !important; }
  .main-nav { flex-wrap: nowrap !important; justify-content: flex-start; overflow: auto; scrollbar-width: none; border-radius: 12px !important; }
  .main-nav button { padding: 9px 12px !important; min-height: 38px; }
  .hero-layout { padding: 44px 20px 32px !important; gap: 48px !important; }
  #data, #timeline, #basics, #maturity, .explore-section { padding-left: 20px !important; padding-right: 20px !important; }
  #timeline, #basics, #maturity { padding-top: 48px !important; padding-bottom: 48px !important; }
  .section-inner { padding: 48px 20px !important; }
  .hero-visual { max-width: 460px !important; margin-bottom: 24px !important; }
  .hero-chip { font-size: 10px !important; padding: 7px 8px !important; gap: 5px !important; }
  .hero-chip > span:last-child { font-size: 9px !important; }
  .hero-chip:nth-of-type(2) { left: 76% !important; }
  .hero-chip:nth-of-type(4) { left: 22% !important; }
  .risk-card { width: 185px !important; right: 0 !important; bottom: -10% !important; padding: 12px !important; }
  .risk-card > div:nth-child(3) { font-size: 20px !important; }
  .risk-diagram { min-height: 400px !important; }
  .risk-node { min-width: 0 !important; width: 29%; max-width: 140px !important; padding: 10px 8px !important; }
  .risk-node > span:first-child { font-size: 8px !important; }
  .risk-node > span:last-child { font-size: 12px !important; }
  .risk-node:nth-of-type(1) { left: 17% !important; }
  .risk-node:nth-of-type(2), .risk-node:nth-of-type(3) { left: 30% !important; }
  .risk-node:nth-of-type(4), .risk-node:nth-of-type(5) { left: 70% !important; }
  .risk-node:nth-of-type(6) { left: 83% !important; }
  .timeline-card { padding: 24px 18px 20px !important; }
  .timeline-plot { height: 280px !important; }
  .year-label:nth-of-type(even) { opacity: 0; }
  .wall-chart { padding: 24px 14px 20px !important; }
  .wall-label, .wall-total { font-size: 10px !important; }
  .module-head { padding: 22px 20px 18px; }
  .module-body { padding: 20px; }
  .module-stats { grid-template-columns: 1fr; }
  .module-stat { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .module-stat strong { margin-top: 0; font-size: 23px; }
}
@media (max-width: 380px) {
  .snapshot { width: 100%; margin-left: 0; }
  .hero-chip { gap: 4px !important; font-size: 9px !important; }
  .hero-chip > span:last-child { font-size: 8px !important; }
  .hero-visual { margin-bottom: 88px !important; }
  .risk-card { bottom: -26% !important; width: 170px !important; }
  .wall-label, .wall-total { font-size: 8px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
html[data-motion="off"] { scroll-behavior: auto !important; }
html[data-motion="off"] * { transition: none !important; animation: none !important; }

/* Dated analyst data, with a prominent gross-to-forward-adjusted comparison. */
.eyebrow { font: 12px 'Geist Mono Variable', monospace; letter-spacing: .1em; color: var(--blue); }
.headline-bridge { max-width: 1184px; margin: 0 auto 28px; padding: 28px 32px 22px; border: 1px solid #bed5eb; border-radius: 22px; background: #fff; box-shadow: 0 12px 40px #0f5daa09; }
.bridge-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; }
.bridge-equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1.15fr; gap: 22px; align-items: center; margin: 24px 0; }
.bridge-equation > div { display: flex; flex-direction: column; gap: 8px; }
.bridge-equation strong { font-size: clamp(32px, 3.9vw, 50px); font-weight: 600; letter-spacing: -.045em; white-space: nowrap; color: var(--blue); }
.bridge-equation small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.bridge-equation > div > span { font-size: 13px; font-weight: 500; }
.bridge-equation .bridge-forward strong { color: #c93556; }
.bridge-equation .bridge-buffer strong { color: #0e8a66; }
.bridge-operator { font-size: 30px; color: #8da5bc; }
.bridge-note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.metric-date { margin: 0; color: var(--muted); font: 11px 'Geist Mono Variable', monospace; }
.metric-source { font-size: 11px; line-height: 1.6; margin-top: auto; }
#data > div { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
.content-section { max-width: 1240px; padding: 64px 28px; margin: 0 auto; }
.section-heading { max-width: 750px; margin-bottom: 28px; }
.section-heading h2 { font: 400 clamp(32px,4vw,44px)/1.1 'Newsreader Variable',serif; letter-spacing: -.02em; margin: 12px 0; }
.section-heading p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.panel h3 { font-size: 16px; font-weight: 600; margin: 0 0 24px; }
.history-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; }
.history-chart { display: flex; align-items: stretch; justify-content: space-around; gap: 18px; height: 310px; border-bottom: 1px solid var(--line); }
.history-column { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px 4px 0; width: 22%; color: var(--muted); cursor: pointer; font: 12px 'Geist Mono Variable',monospace; }
.history-column strong { font-size: 13px; font-weight: 500; color: var(--ink); }
.history-bar { display: block; flex: none; width: 100%; max-width: 90px; border-radius: 8px 8px 0 0; transition: background .2s; }
.history-column > span:last-child { padding-bottom: 12px; }
.history-detail h3 { font: 400 38px 'Newsreader Variable',serif; color: var(--blue); margin: 12px 0; }
.history-detail p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.history-detail a, .tenor-reconciliation a { font-size: 12px; }
.history-drawdown { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: #fff3f5; border-radius: 12px; margin: 20px 0; }
.history-drawdown span, .history-drawdown small { font-size: 12px; color: var(--muted); }
.history-drawdown strong { font-size: 26px; color: #c93556; }
.tenor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tenor-row { margin: 24px 0; }
.tenor-row > div:first-child { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; margin-bottom: 12px; }
.tenor-track { height: 18px; background: #eef4fa; border-radius: 6px; overflow: hidden; }
.tenor-track span { display: block; height: 100%; }
.tenor-reconciliation dl { margin: 0; }
.tenor-reconciliation dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tenor-reconciliation dd { margin: 0; white-space: nowrap; font-family: 'Geist Mono Variable',monospace; }
.tenor-reconciliation .net-total { font-weight: 600; color: var(--blue); }
.module-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #eef4fa; color: var(--blue); font-size: 28px; }
.sources-section { max-width: 1240px; margin: 0 auto; padding: 0 28px 40px; }
.sources-heading { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.sources-heading h3 { font-size: 18px; }
.sources-heading a { font-size: 12px; }
.sources-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.sources-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.sources-grid a { font-size: 13px; font-weight: 500; line-height: 1.5; }
.sources-grid small { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.sources-grid p { font-size: 12px; line-height: 1.6; color: var(--muted); margin-bottom: 0; }
@media (max-width: 1239px) { .headline-bridge { margin-left: 28px; margin-right: 28px; } }
@media (max-width: 760px) {
  .headline-bridge { margin: 12px 20px 24px; padding: 22px; }
  .bridge-equation { grid-template-columns: 1fr; gap: 10px; margin: 22px 0; }
  .bridge-equation > div { gap: 4px; }
  .bridge-equation strong { font-size: 40px; }
  .bridge-operator { font-size: 22px; line-height: 1; }
  #data > div { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  #data > div > div { padding: 16px !important; }
  #data > div > div > div:nth-child(2) > span:first-child { font-size: 26px !important; }
  .history-layout, .tenor-layout { grid-template-columns: 1fr; }
  .history-chart { height: 260px; gap: 6px; }
  .history-column { width: 24%; font-size: 10px; }
  .history-column strong { font-size: 10px; }
  .panel { padding: 22px; }
  .sources-grid { grid-template-columns: 1fr; }
  .sources-section { padding-left: 20px; padding-right: 20px; }
  #risk .section-inner > div:nth-child(2) > div { grid-template-columns: 20px 1fr !important; gap: 8px 10px !important; }
  #risk .section-inner > div:nth-child(2) > div > span:nth-child(3) { grid-column: 2; justify-self: start; }
  #risk .section-inner > div:nth-child(2) > div > span:nth-child(5) { grid-column: 2 !important; }
}
@media (max-width: 380px) { #data > div { grid-template-columns: 1fr !important; } }
