:root {
  color-scheme: light;
  --paper: #f5f5f2;
  --ink: #192127;
  --muted: #687078;
  --rule: #d8dcda;
  --modest: #147f95;
  --substantial: #b58422;
  --extreme: #bb3e61;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:focus-visible, a:focus-visible, summary:focus-visible, .chart:focus-visible { outline: 2px solid var(--modest); outline-offset: 5px; }
main { max-width: 1336px; margin: auto; padding: 0 64px; }
.skip { position: fixed; left: 16px; top: 16px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; background: var(--ink); color: white; z-index: 5; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; padding: 14px; }
header { padding: 38px 0 25px; border-bottom: 1px solid var(--ink); }
h1 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.35; letter-spacing: -.8px; margin: 0; font-weight: 600; }
h1 a { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.hero { padding: 33px 0 29px; }
.weighting-control { display: grid; justify-items: center; gap: 9px; margin: 0 auto 14px; text-align: center; }
.weighting-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--rule); border-radius: 7px; background: #eceeeb; }
.weighting-toggle button { min-width: 94px; border: 0; border-radius: 4px; padding: 7px 13px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.weighting-toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgb(25 33 39 / 13%); }
.weighting-control p { min-height: 16px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.gauge-wrap { max-width: 610px; margin: 0 auto; text-align: center; }
.gauge { display: block; width: 100%; overflow: visible; }
.gauge text { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.gauge .arc-label { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.gauge .modest { fill: var(--modest); }
.gauge .substantial { fill: var(--substantial); }
.gauge .extreme { fill: var(--extreme); }
.gauge-reading { margin-top: -28px; position: relative; }
.gauge-number { font-family: var(--mono); font-size: 54px; line-height: 1; letter-spacing: -3px; font-weight: 600; }
.score { color: var(--muted); font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.score.modest { color: var(--modest); }
.score.substantial { color: var(--substantial); }
.score.extreme { color: var(--extreme); }
.chart-heading { display: grid; gap: 6px; }
.chart-heading h3 { min-height: 2.8em; }
.chart-metrics { display: flex; flex: none; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.chart-metric + .chart-metric { padding-left: 10px; border-left: 1px solid var(--rule); }
.chart-score { font-size: 1em; }
.chart-toolbar { display: flex; align-items: center; padding: 19px 0 26px; border-top: 1px solid var(--rule); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; }
.legend button { background: none; border: 0; padding: 3px 0; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.legend button[aria-pressed=false] { opacity: .35; }
.legend button:hover { color: var(--ink); }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.swatch.modest { background: var(--modest); }
.swatch.substantial { background: var(--substantial); }
.swatch.extreme { background: var(--extreme); }
.swatch.actual { background: var(--ink); width: 15px; height: 3px; }
.charts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 38px; row-gap: 31px; }
.chart-card { min-width: 0; position: relative; }
h3 { font-size: 15px; line-height: 1.4; letter-spacing: -.25px; margin: 0; font-weight: 650; }
.chart-unit { font-size: 11px; color: var(--muted); margin: 5px 0 14px; }
.chart { width: 100%; display: block; overflow: visible; touch-action: pan-y; }
.chart text { font-size: 10px; font-family: var(--mono); }
.chart text:not(.end-label) { fill: var(--muted); }
.chart .end-label { font-size: 10px; font-weight: 600; }
.chart .grid-line { stroke: var(--rule); stroke-width: 1; }
.chart .scenario-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .actual-line { stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .actual-gap-line { stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-dasharray: 3 4; stroke-linecap: round; opacity: .62; }
.chart .actual-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.chart .cursor { stroke: #9da5a7; stroke-dasharray: 3 3; }
.date-tag rect { fill: var(--paper); stroke: var(--rule); stroke-width: .7; }
.chart .date-tag text { fill: var(--ink); font-size: 10px; font-weight: 700; }
.inspect rect { fill: var(--paper); stroke: #c5cbc8; stroke-width: .7; }
.chart .inspect text { font-size: 9px; }
.chart .inspect-value { fill: var(--ink); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.displacement-section { margin-top: 51px; padding: 30px 0 9px; border-top: 1px solid var(--ink); }
.displacement-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; }
.displacement-heading h2 { margin: 0; font-size: clamp(21px, 2vw, 27px); letter-spacing: -.6px; }
.displacement-heading p { max-width: 440px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }
.displacement-figure {
  max-width: 640px;
  margin: 25px auto 0;
  padding: 22px 24px 17px;
  border: 1px solid #e1dfd7;
  background-color: #faf9f4;
  background-image: linear-gradient(rgb(92 101 102 / 11%) 1px, transparent 1px), linear-gradient(90deg, rgb(92 101 102 / 11%) 1px, transparent 1px);
  background-position: 23px 21px;
  background-size: 42px 42px;
  box-shadow: 0 1px 0 rgb(25 33 39 / 4%);
}
.displacement-chart { display: block; width: 100%; height: auto; margin: 0 auto; overflow: visible; }
.displacement-chart text { font-family: var(--mono); }
.displacement-chart .displacement-title { fill: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: 700; }
.displacement-chart .displacement-date { fill: var(--muted); font-size: 14px; }
.displacement-chart .displacement-value { fill: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 31px; }
.displacement-chart .displacement-label { fill: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 15px; }
.displacement-band { stroke-width: .8; }
.knowledge-band { fill: rgb(222 169 44 / 34%); stroke: rgb(181 132 34 / 48%); }
.other-band { fill: rgb(62 157 194 / 27%); stroke: rgb(20 127 149 / 44%); }
.displacement-band-texture { fill: rgb(255 255 255 / 14%); opacity: .55; pointer-events: none; }
.displacement-node { stroke: rgb(255 255 255 / 72%); stroke-width: .7; }
.knowledge-node { fill: #c9901c; }
.other-node { fill: #2a9cc3; }
.displacement-band-arrow { fill: none; stroke-width: 1.7; opacity: .63; }
.knowledge-arrow { stroke: #b67d12; }
.other-arrow { stroke: #238bac; }
.displacement-flow { fill: none; stroke: url(#displacement-shift); stroke-width: 5; stroke-linecap: round; opacity: .92; }
.displacement-flow.negative { stroke-width: 4.5; stroke-dasharray: 10 7; }
.displacement-shift-value { fill: var(--ink); font-family: Georgia, 'Times New Roman', serif !important; font-size: 30px; }
.displacement-shift-label { fill: var(--muted); font-family: Arial, Helvetica, sans-serif !important; font-size: 14px; }
.displacement-metric.positive .displacement-shift-value { fill: var(--modest); }
.displacement-metric.negative .displacement-shift-value { fill: #b8533f; }
.displacement-metric.crossover .displacement-shift-value { fill: var(--modest); }
.displacement-figure figcaption { margin: 10px 12px 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.signals-section { margin-top: 43px; padding-top: 30px; border-top: 1px solid var(--ink); }
.signals-section h2 { margin: 0; font-size: clamp(21px, 2vw, 27px); letter-spacing: -.6px; }
.signals-key { margin: 23px 0 26px; }
.signal-card h3 { min-height: 2.8em; margin-bottom: 14px; }
.chart .signal-baseline { stroke: #aeb6b5; stroke-width: 1; stroke-dasharray: 3 4; }
.chart .signal-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.signals-info { margin-top: 18px; }
.signals-info summary { display: inline-flex; padding: 4px 0; font-size: 10px; font-weight: 400; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.signals-info .source-content { padding: 9px 0 0; font-size: 11px; line-height: 1.65; }
.sources { margin-top: 37px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
summary { display: flex; justify-content: space-between; list-style: none; padding: 20px 0; font-size: 12px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 17px; font-weight: 400; line-height: 12px; }
details[open] > summary span { transform: rotate(45deg); }
.source-content { max-width: 830px; padding-bottom: 25px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.source-content h4 { color: var(--ink); font-size: 12px; margin: 18px 0 6px; }
.source-content p { margin: 6px 0 12px; }
.source-content ol { padding-left: 18px; }
.source-content li { margin-bottom: 6px; }
.source-content a { overflow-wrap: anywhere; }
.source-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-family: var(--mono); font-size: 11px; text-align: left; }
.source-content th, .source-content td { border-bottom: 1px solid var(--rule); padding: 9px 4px; font-weight: 400; }
.source-content th { color: var(--ink); }
.source-content th:last-child, .source-content td:last-child { text-align: right; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 23px 0 35px; font-size: 10px; color: var(--muted); }
footer > div { display: flex; align-items: center; gap: 24px; }
footer button { border: 0; padding: 0; background: none; font-size: 10px; }
footer button span { margin-left: 5px; }
.load-error { padding: 50px 0; color: var(--extreme); }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
  main { padding: 0 36px; }
  .charts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .gauge-wrap { max-width: 580px; }
}
@media (max-width: 620px) {
  main { padding: 0 22px; }
  header { padding: 25px 0 22px; }
  h1 { font-size: 26px; line-height: 1.35; letter-spacing: -.6px; }
  .hero { padding: 30px 0 26px; }
  .weighting-control { margin-bottom: 19px; }
  .weighting-control p { max-width: 320px; }
  .gauge-wrap { margin: 0 -14px; }
  .gauge-reading { margin-top: -6px; }
  .gauge-number { font-size: 43px; }
  .chart-toolbar { padding: 19px 0 26px; }
  .legend { gap: 16px; }
  .legend button { font-size: 11px; gap: 6px; }
  .charts-grid { grid-template-columns: 1fr; gap: 30px; }
  h3 { font-size: 16px; }
  .chart-heading h3 { min-height: 0; }
  .signal-card h3 { min-height: 0; }
  .chart-metrics { font-size: 9px; gap: 8px; }
  .chart-metric + .chart-metric { padding-left: 8px; }
  .displacement-section { margin-top: 38px; padding-top: 24px; }
  .signals-section { margin-top: 32px; padding-top: 24px; }
  .signals-key { margin: 20px 0 25px; }
  .displacement-heading { display: block; }
  .displacement-heading h2 { font-size: 22px; }
  .displacement-heading p { max-width: none; margin-top: 7px; text-align: left; }
  .displacement-figure { margin-top: 16px; }
  .displacement-figure { padding: 14px 10px 13px; background-position: 10px 13px; background-size: 34px 34px; }
  .displacement-figure figcaption { margin: 8px 7px 0; font-size: 9px; }
  .sources { margin-top: 26px; }
  footer { align-items: flex-start; flex-direction: column; font-size: 9px; gap: 16px; }
  footer > div { justify-content: space-between; width: 100%; }
  .source-content table { font-size: 9px; }
}
@media print {
  main { max-width: 1100px; padding: 0 20px; }
  .sources, footer button { display: none; }
  .charts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding-bottom: 15px; }
  .gauge-wrap { max-width: 450px; }
  .chart-card { break-inside: avoid; }
  .displacement-section { break-inside: avoid; }
  .legend button { opacity: 1 !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
