:root {
  --ink: #17262e;
  --muted: #63717a;
  --paper: #f5f0e7;
  --white: #fffdf9;
  --line: #d9d1c5;
  --red: #b3364a;
  --teal: #167383;
  --gold: #a66a12;
  --purple: #74518d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.7; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; }
.topline { height: 6px; background: var(--red); }
.shell { width: min(1080px, calc(100% - 42px)); margin: 0 auto; }
.back { display: inline-flex; margin-top: 26px; color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.back:hover { color: var(--red); }
.hero { padding: 58px 0 52px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 13px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.1; }
h1 { max-width: 1020px; margin: 0; font-size: clamp(45px, 7vw, 78px); letter-spacing: -.042em; }
.dek { max-width: 900px; margin: 24px 0 0; color: #3f5059; font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.45; }
.article { padding: 46px 0 76px; }
.article > p, .article > h2 { max-width: 790px; margin-right: auto; margin-left: auto; }
.article > p { margin-top: 0; margin-bottom: 28px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.72; }
.article > h2 { margin-top: 64px; margin-bottom: 20px; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.025em; }

.status-note { display: grid; grid-template-columns: minmax(150px, .32fr) 1fr; gap: 22px; width: min(960px, 100%); margin: 0 auto 48px; padding: 24px 28px; border: 1px solid #d7b66f; border-left: 5px solid var(--gold); background: #fbf5e8; }
.status-note strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; line-height: 1.25; }
.status-note span { color: #4e5960; font-size: 15px; line-height: 1.6; }
.update-note { margin-bottom: 18px; border-color: #d4a0aa; border-left-color: var(--red); background: #fff1f3; }

.title-vi-primer { width: min(960px, 100%); margin: 0 auto 58px; padding: 30px 34px 26px; border-top: 5px solid var(--red); background: rgba(255, 253, 249, .9); box-shadow: 0 12px 32px rgba(24, 35, 42, .07); }
.title-vi-primer > .eyebrow { margin-bottom: 8px; }
.title-vi-primer h2 { margin: 0 0 13px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.025em; }
.title-vi-primer > p:not(.eyebrow, .title-vi-primer-note) { max-width: 830px; margin: 0; color: #3f5059; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.6; }
.title-vi-primer ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 24px 0 20px; padding-left: 20px; }
.title-vi-primer li { padding: 10px 4px 12px 2px; color: #3f5059; font-size: 14px; line-height: 1.55; }
.title-vi-primer li::marker { color: var(--red); font-size: 1.2em; }
.title-vi-primer li strong { color: var(--ink); }
.title-vi-primer-note { margin: 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: min(1020px, 100%); margin: 44px auto 58px; }
.stat { padding: 23px; border-top: 4px solid var(--teal); background: rgba(255, 253, 249, .86); }
.stat.emphasis { border-top-color: var(--red); }
.stat.warning { border-top-color: var(--gold); }
.stat strong { display: block; margin-bottom: 9px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 3.5vw, 41px); font-weight: 500; line-height: 1; }
.stat span { color: var(--muted); font-size: 13px; line-height: 1.45; }

.plot { width: min(960px, 100%); margin: 42px auto 46px; }
.plot-wide { width: min(1040px, 100%); }
.map-plot { width: min(840px, 100%); }
.plot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 14px 34px rgba(24, 35, 42, .08); }
.plot figcaption { margin: 11px 8px 0; color: var(--muted); font-size: 13px; }

.metric-definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(1040px, 100%); margin: -18px auto 48px; }
.metric-definitions section { padding: 18px 20px; border-top: 3px solid var(--teal); background: rgba(255, 253, 249, .75); }
.metric-definitions section:nth-child(odd) { border-top-color: var(--red); }
.metric-definitions h3 { margin: 0 0 8px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; font-weight: 800; }
.metric-definitions p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.trend-definitions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trend-definitions section:nth-child(2) { border-top-color: var(--gold); }

.interactive-map-figure { width: min(1040px, 100%); margin: 42px auto 46px; }
.map-stage { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #e8e3da; box-shadow: 0 14px 34px rgba(24, 35, 42, .08); }
.equity-map { width: 100%; height: min(74vh, 760px); min-height: 540px; }
.map-status { position: absolute; z-index: 500; top: 18px; left: 50%; margin: 0; padding: 9px 13px; transform: translateX(-50%); border-radius: 5px; color: var(--ink); background: rgba(255, 253, 249, .94); box-shadow: 0 4px 18px rgba(23, 38, 46, .15); font-size: 13px; }
.map-status.hidden { display: none; }
.map-status.error { color: #8e2237; }
.interactive-map-figure figcaption { margin: 11px 8px 0; color: var(--muted); font-size: 13px; }
.map-legend { padding: 11px 13px; border: 1px solid rgba(23, 38, 46, .14); border-radius: 5px; color: var(--ink); background: rgba(255, 253, 249, .96); box-shadow: 0 3px 14px rgba(23, 38, 46, .12); font-size: 12px; line-height: 1.35; }
.map-legend strong { display: block; margin-bottom: 7px; font-size: 12px; }
.map-legend span { display: flex; align-items: center; gap: 7px; margin: 5px 0; white-space: nowrap; }
.map-swatch { display: inline-block; flex: 0 0 auto; width: 21px; }
.map-swatch.route-minority { height: 4px; background: var(--red); }
.map-swatch.route-other { height: 4px; background: var(--teal); }
.map-swatch.bg-minority { height: 12px; border: 1px solid #d29aa4; background: #f1cbd2; }
.map-swatch.bg-other { height: 12px; border: 1px solid #96c5cc; background: #cae5e9; }
.map-layer-control { padding: 9px 11px; color: var(--ink); background: rgba(255, 253, 249, .96); font-size: 12px; line-height: 1.35; }
.map-layer-control strong { display: block; margin-bottom: 6px; }
.map-layer-control label { display: flex; align-items: center; gap: 7px; margin: 5px 0; cursor: pointer; }
.map-layer-control input { margin: 0; accent-color: var(--teal); }
.equity-tooltip { min-width: 190px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; line-height: 1.5; }
.equity-tooltip strong { display: block; margin-bottom: 3px; font-size: 14px; }
.equity-tooltip .tooltip-class { display: block; margin-bottom: 3px; color: var(--red); font-weight: 750; }
.equity-tooltip .tooltip-class.other { color: var(--teal); }
.equity-map, .mapboxgl-popup-content { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.mapboxgl-popup-content { padding: 11px 13px; border-radius: 5px; box-shadow: 0 3px 14px rgba(23, 38, 46, .18); }

.route-list { width: min(900px, 100%); margin: 0 auto 48px; padding: 18px 22px; border: 1px solid var(--line); background: rgba(255, 253, 249, .7); }
.route-list summary { cursor: pointer; color: var(--red); font-weight: 750; }
.route-list p { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.classification-reference { width: min(900px, 100%); margin: 36px auto 52px; padding: 22px; border: 1px solid var(--line); background: rgba(255, 253, 249, .72); }
.classification-reference h3 { margin: 0 0 16px; font-size: 25px; }
.classification-reference-controls { display: flex; align-items: end; gap: 16px; }
.classification-reference-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.classification-reference-controls input { min-width: 220px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--white); font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; }
#classification-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.classification-table-wrap { max-height: 330px; margin: 14px 0 0; overflow: auto; box-shadow: none; }
.classification-table-wrap table { min-width: 600px; font-variant-numeric: tabular-nums; }
.classification-table-wrap thead { position: sticky; top: 0; z-index: 1; }

.rider-window-chart { width: min(960px, 100%); margin: 44px auto 58px; padding: 28px 30px 25px; border: 1px solid var(--line); border-top: 4px solid var(--red); background: rgba(255, 253, 249, .82); box-shadow: 0 12px 30px rgba(24, 35, 42, .06); }
.rider-window-chart > .eyebrow { margin-bottom: 8px; }
.rider-window-chart h2 { margin: 0 0 14px; font-size: clamp(29px, 3.7vw, 40px); letter-spacing: -.025em; }
.rider-window-definition { max-width: 840px; margin: 0; color: #3f5059; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.65; }
.rider-window-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 25px 0 10px; }
.rider-window-controls label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.rider-window-controls select { min-width: 210px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--white); font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; }
#rider-window-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.rider-window-key { display: flex; flex-wrap: wrap; gap: 17px; margin: 14px 0 10px; color: var(--muted); font-size: 12px; }
.rider-window-key span { display: inline-flex; align-items: center; gap: 6px; }
.rider-window-key i { display: inline-block; width: 22px; height: 5px; }
.rider-window-key i.minority, .rider-window-bar.minority { background: var(--red); }
.rider-window-key i.other, .rider-window-bar.other { background: var(--teal); }
.rider-window-scroll { overflow: auto; }
.rider-window-axis, .rider-window-row { display: grid; grid-template-columns: 170px minmax(340px, 1fr) 68px; gap: 12px; align-items: center; min-width: 620px; }
.rider-window-axis { position: sticky; top: 0; z-index: 1; padding: 4px 0 6px; color: var(--muted); background: #fcfaf6; font-size: 10px; }
.rider-window-axis div { display: flex; justify-content: space-between; }
.rider-window-bars { max-height: 690px; overflow-y: auto; }
.rider-window-bars > p { margin: 12px 0; color: var(--muted); font-size: 13px; }
.rider-window-row { min-height: 37px; border-top: 1px solid rgba(217, 209, 197, .72); }
.rider-window-route { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; }
.rider-window-route a { color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; }
.rider-window-route a:hover { color: var(--red); text-decoration: underline; }
.rider-window-route .badge { flex: 0 0 auto; }
.rider-window-track { height: 22px; overflow: hidden; border-radius: 3px; background-color: #ece7df; background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(25% - 1px), rgba(99, 113, 122, .16) calc(25% - 1px), rgba(99, 113, 122, .16) 25%); }
.rider-window-bar { display: block; height: 100%; min-width: 2px; transition: width .22s ease; }
.rider-window-row:hover .rider-window-bar { filter: saturate(1.15) brightness(.92); }
.rider-window-value { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.rider-window-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.table-wrap { width: min(1040px, 100%); margin: 36px auto 44px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 10px 26px rgba(24, 35, 42, .05); }
.table-wrap table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.compact-table { width: min(920px, 100%); }
.compact-table table { min-width: 760px; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f1ece3; font-size: 11px; letter-spacing: .045em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.negative { color: var(--red); font-weight: 750; }
.table-note { margin: 0; padding: 11px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.callout { width: min(900px, 100%); margin: 48px auto 56px; padding: 28px 32px; border-left: 5px solid var(--gold); background: #fbf5e8; }
.callout h3 { margin: 0 0 10px; font-size: 28px; }
.callout p { margin: 0; color: #3f5059; font-size: 16px; }

.explorer { width: min(1080px, 100%); margin: 70px auto 60px; padding-top: 45px; border-top: 2px solid var(--ink); }
.explorer h2 { margin: 0 0 14px; font-size: clamp(34px, 4.8vw, 51px); letter-spacing: -.025em; }
.explorer > p:not(.eyebrow) { max-width: 760px; margin: 0 0 25px; color: #3f5059; font-size: 17px; }
.controls { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 24px 0 16px; }
.controls label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.controls input, .controls select { min-width: 210px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--white); font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; }
#route-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.route-table-wrap { margin-top: 0; max-height: 680px; }
#route-table { min-width: 1220px; font-variant-numeric: tabular-nums; }
#route-table thead { position: sticky; top: 0; z-index: 1; }
#route-table th button { padding: 0; border: 0; color: inherit; background: transparent; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; cursor: pointer; }
#route-table th button:hover { color: var(--red); }
.badge { display: inline-block; padding: 3px 7px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.badge.minority { color: #8e2237; background: #f4d8dd; }
.badge.other { color: #0c5c68; background: #d5ecef; }
.downloads { display: flex; flex-wrap: wrap; gap: 9px; }
.downloads a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--white); font-size: 13px; text-decoration: none; }
.downloads a:hover { border-color: var(--red); color: var(--red); }

.service-conclusion { width: min(1000px, 100%); margin: 72px auto 68px; padding: 38px 40px 34px; color: #f9f5ee; background: var(--ink); border-top: 6px solid var(--red); box-shadow: 0 16px 40px rgba(23, 38, 46, .18); }
.service-conclusion > .eyebrow { color: #ef9dad; }
.service-conclusion h2 { max-width: 850px; margin: 0 0 17px; color: #fffdf9; font-size: clamp(34px, 4.8vw, 53px); letter-spacing: -.03em; }
.service-conclusion-lede { max-width: 850px; margin: 0; color: #d8e0e3; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.65; }
.service-conclusion-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 30px 0; }
.service-conclusion-stats div { min-height: 118px; padding: 18px; border-top: 3px solid #6eb4bf; background: rgba(255, 255, 255, .07); }
.service-conclusion-stats div:nth-child(3), .service-conclusion-stats div:nth-child(4) { border-top-color: #ef9dad; }
.service-conclusion-stats strong { display: block; margin-bottom: 9px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 3vw, 34px); font-weight: 500; line-height: 1; }
.service-conclusion-stats span { display: block; color: #cbd5d9; font-size: 12px; line-height: 1.45; }
.disparity-figure { margin: 0; padding: 24px 24px 19px; color: var(--ink); background: #fffdf9; }
.disparity-figure figcaption { display: grid; gap: 3px; margin-bottom: 18px; }
.disparity-figure figcaption strong { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.disparity-figure figcaption span { color: var(--muted); font-size: 12px; }
.disparity-scroll { overflow-x: auto; }
.disparity-axis, .disparity-row { display: grid; grid-template-columns: 190px minmax(330px, 1fr) 92px; gap: 12px; align-items: center; min-width: 650px; }
.disparity-axis { color: var(--muted); font-size: 10px; }
.disparity-axis div { display: flex; justify-content: space-between; }
.disparity-bars > p { margin: 10px 0; color: var(--muted); font-size: 13px; }
.disparity-row { min-height: 44px; border-top: 1px solid var(--line); }
.disparity-row > strong { font-size: 13px; }
.disparity-track { position: relative; height: 24px; background: linear-gradient(to right, rgba(22, 115, 131, .08), rgba(22, 115, 131, .02) 49.7%, #89969d 49.7%, #89969d 50.3%, rgba(179, 54, 74, .02) 50.3%, rgba(179, 54, 74, .08)); border-right: 3px solid var(--red); }
.disparity-bar { position: absolute; top: 4px; height: 16px; min-width: 2px; }
.disparity-bar.favorable { background: var(--teal); }
.disparity-bar.adverse { background: var(--red); }
.disparity-value { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.disparity-value.favorable { color: var(--teal); }
.disparity-value.adverse { color: var(--red); }
.disparity-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.service-conclusion-final { margin: 24px 0 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.55; }

.methodology { width: min(920px, 100%); margin: 70px auto 0; padding: 29px 31px; border-left: 5px solid var(--teal); background: rgba(255, 253, 249, .82); }
.methodology h2 { margin: 0 0 14px; font-size: 27px; }
.methodology p { margin: 0 0 13px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.methodology p:last-child { margin-bottom: 0; }
.records-update { width: min(920px, 100%); margin: 42px auto 0; padding: 29px 31px; border: 1px solid #d7b66f; border-top: 5px solid var(--gold); background: #fbf5e8; scroll-margin-top: 24px; }
.records-update > .eyebrow { margin-bottom: 9px; }
.records-update h2 { margin: 0 0 17px; font-size: clamp(29px, 3.7vw, 39px); letter-spacing: -.025em; }
.records-update p:not(.eyebrow) { margin: 0 0 16px; color: #3f5059; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.65; }
.records-update p:last-child { margin-bottom: 0; }
.author-note { width: min(920px, 100%); margin: 42px auto 0; padding: 25px 30px; border-top: 3px solid var(--purple); border-bottom: 1px solid var(--line); }
.author-note h2 { margin: 0 0 8px; font-size: 24px; }
.author-note p { max-width: 780px; margin: 0; color: #3c4c55; font-size: 16px; }
.footer { padding: 35px 0 55px; border-top: 1px solid var(--line); }
.footer a { color: var(--muted); font-size: 13px; font-weight: 750; text-decoration: none; }
.footer a:hover { color: var(--red); }

@media (max-width: 820px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .service-conclusion-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 1080px); }
  .hero { padding: 42px 0 38px; }
  .article { padding-top: 34px; }
  .article > p { font-size: 18px; line-height: 1.65; }
  .status-note { grid-template-columns: 1fr; padding: 21px; }
  .title-vi-primer { padding: 25px 22px 21px; }
  .title-vi-primer ul { grid-template-columns: 1fr; gap: 0; }
  .stat-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat { padding: 20px; }
  .plot { width: calc(100% + 14px); margin: 34px 0 38px -7px; }
  .plot img { border-radius: 5px; }
  .metric-definitions, .trend-definitions { grid-template-columns: 1fr; width: calc(100% + 14px); margin-left: -7px; }
  .interactive-map-figure { width: calc(100% + 14px); margin: 34px 0 38px -7px; }
  .map-stage { border-radius: 5px; }
  .equity-map { height: 68vh; min-height: 480px; }
  .map-legend { max-width: 220px; font-size: 10px; }
  .table-wrap { width: calc(100% + 14px); margin-left: -7px; border-radius: 4px; }
  .callout, .methodology, .records-update, .author-note { padding: 23px 21px; }
  .controls { align-items: stretch; }
  .controls label, .controls input, .controls select { width: 100%; }
  #route-count { margin-left: 0; }
  .classification-reference { padding: 18px 14px; }
  .classification-reference-controls { align-items: stretch; flex-direction: column; }
  .classification-reference-controls label, .classification-reference-controls input { width: 100%; }
  #classification-count { margin-left: 0; }
  .rider-window-chart { width: calc(100% + 14px); margin-left: -7px; padding: 23px 14px 20px; }
  .rider-window-controls { align-items: stretch; flex-direction: column; }
  .rider-window-controls label, .rider-window-controls select { width: 100%; }
  #rider-window-count { margin-left: 0; }
  .service-conclusion { width: calc(100% + 14px); margin-left: -7px; padding: 30px 18px 25px; }
  .service-conclusion-stats { grid-template-columns: 1fr 1fr; }
  .disparity-figure { padding: 20px 14px 17px; }
}

@media print {
  .back, .footer, .controls, .downloads { display: none; }
  body { background: #fff; }
  .shell { width: 100%; }
  .stat, .plot, .callout, .rider-window-chart, .service-conclusion, .methodology, .records-update, .author-note { break-inside: avoid; }
  .route-table-wrap, .classification-table-wrap { max-height: none; }
}
