:root {
  --paper: #ffffff;
  --ink: #14213d;
  --lagoon: #0e7c7b;
  --lagoon-soft: #d7ecea;
  --slate: #5b6b7b;
  --mist: #e3e9ee;
  --signal: #c98a0b;
  --signal-soft: #fbf1dc;
  --neg: #a33a2b;

  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lagoon); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--mist); backdrop-filter: saturate(1.2) blur(6px); }
.masthead__inner { max-width: 1180px; margin: 0 auto; padding: .85rem 1.5rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.wordmark span { font-weight: 400; color: var(--slate); margin-left: .6rem; }
.masthead__asof { margin: 0; color: var(--slate); font-size: var(--step--1); }

/* Layout */
.layout { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 3.5rem; }
.rail { min-width: 0; position: sticky; top: 4.5rem; align-self: start; padding-top: 3.5rem; }
.rail ol { list-style: none; margin: 0; padding: 0; counter-reset: ch; border-left: 1px solid var(--mist); }
.rail li { counter-increment: ch; }
.rail a { display: block; padding: .32rem 0 .32rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.rail a::before { content: counter(ch); display: inline-block; width: 1.4rem; color: #9aa7b3; font-weight: 600; }
.rail a:hover { color: var(--ink); }
.rail a[aria-current="true"] { color: var(--ink); border-left-color: var(--lagoon); font-weight: 600; }

main { min-width: 0; max-width: 780px; padding-bottom: 6rem; }

/* Cover */
.cover { padding: 4rem 0 2.5rem; border-bottom: 2px solid var(--ink); }
.cover h1 { font-size: var(--step-3); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin: 0 0 1.5rem; max-width: 20ch; text-wrap: balance; }
.independent { margin: 0 0 1.25rem; font-size: var(--step--1); color: var(--slate); }
.lede { font-size: var(--step-1); line-height: 1.55; color: #2c3a55; max-width: 58ch; margin: 0; font-weight: 300; }

/* Chapters */
.chapter { padding: 3.5rem 0 1rem; }
.chapter > h2 { font-size: var(--step-2); line-height: 1.2; letter-spacing: -.015em; font-weight: 750; margin: 0 0 1.1rem; max-width: 30ch; text-wrap: balance; }
.chapter p, .chapter li { max-width: var(--measure); }
.chapter p { margin: 0 0 1rem; }
.subhead { font-size: var(--step-1); font-weight: 700; margin: 2.25rem 0 .5rem; }
.muted { color: var(--slate); }
.plain { padding-left: 1.2rem; }
.plain li { margin-bottom: .5rem; }

/* Summary findings: a real ranked list of key points */
.findings { list-style: none; counter-reset: f; margin: 0; padding: 0; }
.findings li { counter-increment: f; position: relative; padding: 1.1rem 0 1.1rem 3rem; border-top: 1px solid var(--mist); }
.findings li:last-child { border-bottom: 1px solid var(--mist); }
.findings li::before { content: counter(f); position: absolute; left: 0; top: 1.05rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; display: grid; place-items: center; }
.findings a { color: var(--ink); text-decoration: none; }
.findings a strong { font-size: 1.1rem; }
.findings a:hover strong { color: var(--lagoon); }

/* Notes */
.note { margin: 2rem 0 0; padding: 1.1rem 1.3rem; background: #f3f7f9; border-left: 3px solid var(--lagoon); max-width: var(--measure); }
.note h3 { margin: 0 0 .35rem; font-size: 1rem; }
.note p { margin: 0; }
.note--flag { background: var(--signal-soft); border-left-color: var(--signal); }

/* Exhibits */
.exhibit { margin: 2.25rem 0 2rem; padding-top: .8rem; border-top: 2px solid var(--ink); }
.exhibit figcaption { font-weight: 600; font-size: 1rem; margin-bottom: 1.1rem; }
.exhibit__no { color: var(--lagoon); font-weight: 800; margin-right: .5rem; }
.chapter .exhibit__src { max-width: none; }
.exhibit__src { font-size: var(--step--1); color: var(--slate); margin: .9rem 0 0; padding-top: .6rem; border-top: 1px solid var(--mist); }

.figures { width: 100%; border-collapse: collapse; }
.figures th, .figures td { padding: .55rem 0; border-bottom: 1px solid var(--mist); text-align: left; font-weight: 400; }
.figures td { text-align: right; font-weight: 650; white-space: nowrap; }
.figures td .muted { font-weight: 400; }
.neg { color: var(--neg); }

/* Charts */
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--ink); }
.chart .axis { fill: var(--slate); font-size: 12px; }
.chart .grid { stroke: var(--mist); }
.chart .val { font-weight: 700; font-size: 13px; }
.chart .lbl { font-size: 13px; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.sortable, table.audit { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sortable th, .sortable td, .audit th, .audit td { padding: .6rem .7rem; border-bottom: 1px solid var(--mist); vertical-align: top; }
.sortable th, .audit th { text-align: left; font-weight: 650; font-size: .85rem; color: var(--slate); border-bottom: 1px solid var(--ink); }
.sortable td:not(:first-child), .sortable th:not(:first-child) { text-align: right; }
.sortable th button { all: unset; cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; }
.sortable th button:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.sortable th[aria-sort] button { color: var(--ink); }
.sortable th[aria-sort="ascending"] button::after { content: "▲"; font-size: .65rem; }
.sortable th[aria-sort="descending"] button::after { content: "▼"; font-size: .65rem; }
.sortable tr.is-brevard td { background: var(--lagoon-soft); font-weight: 700; }
.sortable td { white-space: nowrap; }
.audit { table-layout: fixed; min-width: 560px; }
.audit th:nth-child(1) { width: 22%; }
.audit th:nth-child(2) { width: 46%; }
.audit td:first-child { font-weight: 650; }
.audit td:last-child { border-left: 3px solid var(--signal); background: var(--signal-soft); }

/* Two columns */
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.25rem; margin: 1.25rem 0 1.5rem; }
.compare-cols h3 { font-size: 1.05rem; margin: 0 0 .35rem; padding-top: .6rem; border-top: 2px solid var(--lagoon); }
.compare-cols div:last-child h3 { border-top-color: var(--slate); }
.compare-cols p { margin: 0; }

/* Requests and sources */
.requests { padding-left: 1.4rem; }
.requests li { margin-bottom: .7rem; padding-left: .3rem; }
.source-list { padding-left: 1.6rem; font-size: .95rem; }
.source-list li { margin-bottom: .9rem; padding-left: .3rem; }
.source-list .meta { color: var(--slate); display: block; font-size: .875rem; }
.source-list li:target { background: var(--lagoon-soft); }

.foot { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--mist); color: var(--slate); font-size: var(--step--1); }

/* Source markers: the one bold idea */
.src {
  all: unset;
  cursor: pointer;
  display: inline-block;
  min-width: 1.15rem;
  padding: 0 .28rem;
  margin-left: .12rem;
  border-radius: 3px;
  background: var(--lagoon-soft);
  color: var(--lagoon);
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.25rem;
  text-align: center;
  vertical-align: super;
  transition: background .15s, color .15s;
}
.src:hover, .src[aria-expanded="true"] { background: var(--lagoon); color: #fff; }
.src:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }

/* Source drawer */
.drawer { position: fixed; z-index: 40; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--ink); color: #fff; box-shadow: -18px 0 40px rgba(20,33,61,.22); transform: translateX(0); transition: transform .22s ease-out; }
.drawer[hidden] { display: block; transform: translateX(105%); visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }
.drawer__inner { padding: 2rem 1.75rem; height: 100%; overflow-y: auto; }
.drawer__close { all: unset; cursor: pointer; float: right; color: #c9d4de; font-size: .9rem; padding: .25rem .5rem; border: 1px solid #3a4a68; border-radius: 4px; }
.drawer__close:hover { color: #fff; border-color: #fff; }
.drawer__close:focus-visible { outline: 3px solid var(--signal); }
.drawer__no { color: #7fd1cd; font-weight: 700; margin: 0 0 .75rem; }
.drawer__title { font-size: 1.3rem; line-height: 1.3; margin: 0 0 .75rem; font-weight: 700; }
.drawer__meta { color: #c9d4de; margin: 0 0 1.25rem; font-size: .95rem; }
.drawer__note { margin: 0 0 1.5rem; line-height: 1.55; }
.drawer__link { display: inline-block; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; padding: .7rem 1.1rem; border-radius: 4px; }
.drawer__link:hover { background: #7fd1cd; color: var(--ink); }

/* Responsive */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .rail { position: static; padding-top: 1.25rem; }
  .rail ol { display: flex; overflow-x: auto; gap: .25rem; border-left: 0; border-bottom: 1px solid var(--mist); padding-bottom: .5rem; scrollbar-width: none; }
  .rail a { white-space: nowrap; border-left: 0; padding: .35rem .6rem; border-radius: 4px; }
  .rail a::before { width: auto; margin-right: .35rem; }
  .rail a[aria-current="true"] { background: var(--lagoon-soft); }
  .cover { padding-top: 2.5rem; }
  .wordmark span { display: none; }
}
@media (max-width: 620px) {
  .compare-cols { grid-template-columns: 1fr; }
  .masthead__asof { display: none; }
  .findings li { padding-left: 2.6rem; }
}
@media print {
  .masthead, .rail, .drawer, .skip { display: none !important; }
  .layout { display: block; }
  .src { background: none; }
}

/* Timeline: a real chronological sequence */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--mist); }
.timeline li { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: .7rem 0 .7rem 1.25rem; max-width: none; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 1.05rem; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--slate); }
.timeline li:nth-last-child(-n+3)::before { background: var(--signal); border-color: var(--signal); }
.timeline__year { font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.timeline p { margin: 0; }

/* Decisions and flags tables */
.audit.decisions th:nth-child(1) { width: 24%; }
.audit.decisions th:nth-child(2) { width: 38%; }
.audit.decisions td:last-child { border-left: 0; background: none; }
.audit.flags { min-width: 680px; }
.audit.flags th:nth-child(1) { width: 17%; }
.audit.flags th:nth-child(2) { width: 18%; }
.audit.flags th:nth-child(3) { width: 35%; }
.audit.flags td.amt { font-weight: 650; }
@media (max-width: 620px) {
  .timeline li { grid-template-columns: 1fr; gap: .1rem; }
}


/* ===== Visual upgrade ===== */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(14,124,123,.35), transparent); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 4.5rem 1.5rem 4rem; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin: 0 0 1.5rem; max-width: 19ch; text-wrap: balance; }
.hero__independent { margin: 0 0 1.5rem; color: #9fb4c8; font-size: var(--step--1); }
.hero__lede { font-size: var(--step-1); line-height: 1.55; color: #d5dfe8; font-weight: 300; max-width: 58ch; margin: 0 0 3rem; }
.src--dark { background: rgba(127,209,205,.18); color: #7fd1cd; }
.src--dark:hover, .src--dark[aria-expanded="true"] { background: #7fd1cd; color: var(--ink); }

.dollar { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.75rem; max-width: 980px; }
.dollar__title { font-size: 1rem; font-weight: 650; margin: 0 0 .75rem; color: #fff; }
.dollar__title:not(:first-child) { margin-top: 2rem; }
.dollar__bar { display: flex; height: 64px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.06); }
.seg { flex: 0 0 calc(var(--w) * 1%); display: flex; flex-direction: column; justify-content: center; padding: 0 .8rem; overflow: hidden; white-space: nowrap; font-size: .85rem; line-height: 1.2; color: rgba(255,255,255,.85); border-right: 2px solid var(--ink); transform-origin: left; animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
.seg:last-child { border-right: 0; }
.seg b { font-size: 1.35rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.seg--1 { background: #0e7c7b; }
.seg--2 { background: #12999a; animation-delay: .08s; }
.seg--3 { background: #3fb0ad; animation-delay: .14s; }
.seg--4 { background: #6cc4c1; animation-delay: .18s; color: var(--ink); }
.seg--4 b { color: var(--ink); }
.seg--5 { background: #98d6d3; animation-delay: .21s; padding: 0; }
.seg--6 { background: #c2e6e4; animation-delay: .24s; padding: 0; }
.seg--7 { background: #e6f4f3; animation-delay: .27s; padding: 0; }
.seg--pub { background: #0e7c7b; }
.seg--vou { background: var(--signal); animation-delay: .12s; }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .seg { animation: none; } }
.dollar__key { margin: .6rem 0 0; font-size: .9rem; color: #b8c7d5; }
.dollar__key a { color: #7fd1cd; }
.dollar__key a:hover { color: #fff; }

/* Summary as key-figure grid */
#summary .findings { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
#summary .findings li { padding: 1.4rem 0; border-top: 1px solid var(--mist); border-bottom: 0; }
#summary .findings li::before { display: none; }
.kfig { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--lagoon); margin-bottom: .55rem; }
.kfig small { display: block; font-size: .8rem; font-weight: 500; letter-spacing: 0; color: var(--slate); margin-top: .35rem; }
.kfig--neg { color: var(--neg); }
.kfig--amber { color: #a86f00; }
#summary .findings a strong { display: block; margin-bottom: .2rem; }

/* Chapters: numbered, matching the rail */
main { counter-reset: chap; }
.chapter { counter-increment: chap; padding-top: 4.5rem; }
.chapter > h2::before { content: counter(chap, decimal-leading-zero); display: block; font-size: .95rem; font-weight: 800; color: var(--lagoon); margin-bottom: .6rem; letter-spacing: .02em; }
.chapter > h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem); }
#summary { padding-top: 3rem; }

/* Exhibits as panels */
.exhibit { background: #f4f7f9; padding: 1.25rem 1.5rem 1rem; border-top: 3px solid var(--ink); border-radius: 0 0 6px 6px; }
.exhibit .figures th, .exhibit .figures td, .exhibit table.sortable td, .exhibit table.audit td { border-bottom-color: #dfe6ec; }
.exhibit .exhibit__src { border-top-color: #dfe6ec; }
.sortable tr.is-brevard td { background: #cde8e6; }

.rail { padding-top: 3rem; }

@media (max-width: 920px) {
  .hero__inner { padding: 3rem 1.25rem 2.75rem; }
}
@media (max-width: 620px) {
  #summary .findings { grid-template-columns: 1fr; }
  .dollar__bar { height: 56px; }
  .seg { padding: 0 .5rem; font-size: 0; }
  .seg b { font-size: 1.05rem; }
  .seg--3 b, .seg--4 b, .seg--vou b { font-size: .78rem; }
  .seg--vou { padding: 0 .35rem; }
  .exhibit { padding: 1rem .9rem .8rem; margin-left: -.25rem; margin-right: -.25rem; }
}
