:root {
  /* Compliance tokens: Tables Tables: Tables:* Tables** Tables:** Space Grotesk` */
  --bg: #f8fafc;
  --text: #1e293b;
  --secondary: #64748b;
  --masthead-rule: #6b7280;
  --rule: #cbd5e1;
  --ghost: #e2e8f0;
  --numeral: #d1d5db;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --cyan: #93c5fd;
  --dim: #94a3b8;
  --stripe: #f1f5f9;
  --white: #ffffff;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, 1.1vw, 1.25rem);
  line-height: 1.72;
  letter-spacing: .005em;
  background-image: linear-gradient(90deg, transparent calc(50% - 640px), rgba(226, 232, 240, .65) calc(50% - 640px), rgba(226, 232, 240, .65) calc(50% - 639px), transparent calc(50% - 639px), transparent calc(50% + 639px), rgba(226, 232, 240, .65) calc(50% + 639px), rgba(226, 232, 240, .65) calc(50% + 640px), transparent calc(50% + 640px));
}

#progress-bar {
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  height: 100vh;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  z-index: 20;
}

.report-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  padding: 0 24px;
}

.masthead {
  height: 8vh;
  min-height: 64px;
  border-bottom: 1px solid var(--masthead-rule);
  display: flex;
  align-items: center;
  opacity: 0;
  animation: mastheadIn .3s ease forwards;
}

.masthead-inner { width: 100%; align-items: center; }
.brand { grid-column: 1 / 5; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(1rem, 1.4vw, 1.35rem); }
.datestamp { grid-column: 9 / 13; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--secondary); letter-spacing: .03em; }
.lede { min-height: 92vh; padding-top: 32px; padding-bottom: 72px; align-content: start; }
.lede-chart { grid-column: 1 / 13; height: 66vh; min-height: 460px; }
.chart-panel { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; }

.chart-meta {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--secondary);
  letter-spacing: .03em;
}

.area-chart { width: 100%; height: calc(100% - 42px); display: block; }
.grid-lines line { stroke: var(--ghost); stroke-width: 1; }
.axis-labels text { font-family: var(--mono); font-size: 12px; fill: var(--secondary); letter-spacing: .03em; }
.area-fill { fill: var(--blue); opacity: 0; }
.lede-fill { animation: fillIn .5s ease .7s forwards; }
.area-line, .secondary-line, .tertiary-line, .sparkline path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.secondary-line { stroke: var(--cyan); stroke-width: 1.6; }
.tertiary-line { stroke: var(--dim); stroke-width: 1.6; }

.lede-line {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: drawLede 2s cubic-bezier(.25, .1, .25, 1) .2s forwards;
}

.lede-summary {
  grid-column: 3 / 11;
  margin: 28px 0 0;
  font-size: 20px;
  line-height: 1.62;
  opacity: 0;
  transform: translateY(8px);
  animation: summaryIn .4s ease 2.25s forwards;
}

.report-section { position: relative; min-height: 100vh; padding-top: 112px; padding-bottom: 104px; border-top: 1px solid var(--rule); }
.section-number { grid-column: 3 / 4; font-family: var(--display); font-weight: 300; font-size: clamp(4.5rem, 7vw, 6rem); line-height: .85; color: var(--numeral); letter-spacing: -.04em; }
.section-body { grid-column: 4 / 11; }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
}

.section-body p { margin: 0 0 28px; }
.margin-note { font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--secondary); position: relative; padding-top: 12px; }
.margin-note::before { content: ""; position: absolute; top: 0; height: 1px; border-top: 1px dashed var(--rule); width: 100%; }
.margin-note.left { grid-column: 1 / 3; }
.margin-note.right { grid-column: 11 / 13; }
.sparkline { width: 90px; height: 24px; vertical-align: -5px; margin: 0 4px; }
.sparkline path { stroke-width: 1.8; }
.sparkline.cyan path { stroke: var(--cyan); }

.inline-bars {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px 0 16px;
  margin: 34px 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--secondary);
}

.inline-bars > span { display: block; margin-bottom: 14px; color: var(--text); font-family: var(--display); font-weight: 500; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 70px; gap: 14px; align-items: center; margin: 10px 0; }
.bar-row b { font-weight: 400; color: var(--secondary); }
.bar-row i { display: block; height: 10px; background: linear-gradient(90deg, var(--blue), var(--blue)); width: 0; transition: width .6s ease-out; }
.bar-row.muted i { background: var(--rule); }
.bar-row em { font-style: normal; text-align: right; color: var(--text); }

.data-table { width: 100%; border-collapse: collapse; margin: 34px 0; font-family: var(--mono); font-size: 13px; line-height: 1.4; }
.data-table th { font-family: var(--display); font-weight: 500; text-align: left; color: var(--text); border-bottom: 1px solid var(--rule); padding: 12px 10px; }
.data-table td { border-bottom: 1px solid var(--rule); padding: 13px 10px; }
.data-table tbody tr:nth-child(even) { background: var(--stripe); }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: var(--stripe); }
.mini-area { height: 320px; margin: 38px 0; }
.small-area { height: 278px; }
.appendix { min-height: 50vh; border-top: 1px solid var(--rule); padding-top: 64px; padding-bottom: 54px; }
.appendix-inner { grid-column: 1 / 13; border-bottom: 1px solid var(--masthead-rule); padding-bottom: 28px; }

.appendix h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 24px;
}

.appendix-columns { columns: 2; column-gap: 48px; font-size: 14px; line-height: 1.65; color: var(--secondary); }
.appendix-columns p { margin: 0 0 18px; }
.closing-mark { border-top: 1px solid var(--rule); margin-top: 34px; padding-top: 18px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.reveal-item { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.draw-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.draw-line.is-drawn { animation: drawSmall .8s ease-out forwards; }
.mini-area.is-visible .area-fill, .chart-panel.is-visible .area-fill { animation: fillIn .5s ease .75s forwards; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
a:hover { color: var(--blue-deep); text-decoration-color: var(--blue-deep); }

@keyframes mastheadIn { to { opacity: 1; } }
@keyframes drawLede { to { stroke-dashoffset: 0; } }
@keyframes drawSmall { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { opacity: .15; } }
@keyframes summaryIn { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  body { background-image: none; }
  .report-grid { display: block; padding: 0 16px; }
  .masthead { height: auto; padding: 18px 0; }
  .brand, .datestamp { text-align: left; }
  .datestamp { margin-top: 6px; }
  .lede { min-height: 92vh; padding-top: 24px; }
  .lede-chart { height: 55vh; min-height: 360px; }
  .lede-summary { font-size: 18px; }
  .report-section { padding-top: 72px; padding-bottom: 72px; }
  .section-number { font-size: 48px; margin-bottom: 14px; }
  .section-title { margin-bottom: 24px; }
  .margin-note { margin: 0 0 24px; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
  .margin-note::before { width: 120px; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-row em { text-align: left; }
  .appendix-columns { columns: 1; }
  .data-table { font-size: 12px; }
}

@media print {
  #progress-bar { display: none; }
  body { background: #ffffff; color: #1e293b; }
  .reveal-item { opacity: 1 !important; transform: none !important; }
  .area-fill { opacity: .12 !important; fill: #94a3b8; }
  .area-line, .secondary-line, .tertiary-line, .sparkline path { stroke: #64748b; }
  .draw-line { stroke-dashoffset: 0 !important; }
}
