@font-face {
  font-family: "Fira Code";
  src: url("/assets/fonts/FiraCode-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("/assets/fonts/FiraCode-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("/assets/fonts/FiraCode-SemiBold.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Fira Code", "SFMono-Regular", Consolas, monospace;
  --ink: #24211d;
  --muted: #625a50;
  --line: #d8d0c3;
  --soft: #f2eee7;
  --page: #f4f1eb;
  --accent: #6e5038;
  --accent-dark: #3c2b1f;
  --accent-soft: #f0e8dc;
  --comparison: #75634f;
  --comparison-soft: #f4efe8;
  --notice: #79510c;
  --notice-soft: #fbf2df;
  --map-neighbor: #d3c2aa;
  --map-neighbor-border: #24211d;
  --map-context: #eee8de;
  --map-context-border: #c9bfb0;
  --map-missing: #ece7df;
  --map-uncapped: #d9cab5;
  --map-uncapped-border: #66513a;
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: 1.6;
  color: var(--ink);
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); }
.embedded .masthead { display: none; }
.membership-loading .workspace-header, .membership-loading #source-nav, .membership-loading main,
.membership-locked .workspace-header, .membership-locked #source-nav, .membership-locked main { display: none; }
.membership-loading .mobile-source-field, .membership-locked .mobile-source-field { display: none; }
.mobile-source-field { display: none; }
button, input, select { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled, select:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; }
[hidden] { display: none !important; }
svg.icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 10000; padding: 12px 18px; color: #fff; background: var(--accent-dark); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-shell { max-width: 1640px; margin: auto; padding: 0 32px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { display: block; object-fit: contain; width: 64px; height: 64px; }
.brand-caption { font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: 1.5px; line-height: 1.8; }
.brand-rule { display: block; width: 30px; border-bottom: 2px solid var(--accent); margin-top: 6px; }
.masthead-right { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.site-link { font-size: .9375rem; font-weight: 600; }
.site-link span { padding-left: 10px; }
.site-link:hover, .footer-brand a:hover { text-decoration: underline; text-underline-offset: 4px; }
.masthead-note { font-size: .875rem; color: var(--muted); }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0; min-height: 44px; font-size: .875rem; }
.workspace-label { display: flex; align-items: center; gap: 16px; min-width: 0; }
.index-mark { font-family: var(--font-mono); font-size: .8125rem; font-weight: 600; padding-right: 16px; border-right: 1px solid var(--line); white-space: nowrap; }
#source-nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 10px; background: #e9e3d9; overflow: hidden; }
.nav-item { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; text-align: center; font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.nav-item small, .nav-number, .nav-arrow { display: none; }
.nav-item:hover { background: #f7f4ef; }
.nav-item.active { background: var(--ink); color: #fff; box-shadow: 0 2px 4px #24211d15; }
.nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 18px 0; }
.eyebrow { font-size: .8125rem; color: var(--muted); letter-spacing: .06em; line-height: 1.6; margin-bottom: 10px; font-weight: 600; }
.intro-title .eyebrow { margin-bottom: 6px; font-size: .75rem; }
h1 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.2; letter-spacing: -.045em; }
.intro-title h1 span { color: var(--accent); }
.intro-aside { display: flex; align-items: center; gap: 22px; justify-self: end; max-width: 620px; }
.intro-aside .eyebrow { color: var(--ink); }
.intro p { font-size: .9375rem; line-height: 1.65; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: #fff; min-height: 3rem; padding: 11px 18px; font-size: .9375rem; font-weight: 600; line-height: 1.5; }
.button.secondary { color: var(--accent-dark); background: #fff; border-color: #b6a48d; }
.button:hover { color: #fff; background: var(--accent-dark); border-color: var(--accent-dark); }
.button:disabled, .button:disabled:hover { color: var(--muted); background: var(--soft); border-color: var(--line); cursor: not-allowed; }
.button .icon { width: 18px; height: 18px; }
.intro .button { margin: 0; flex-shrink: 0; }
.query-section { padding: 0 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.section-heading { border-bottom: 1px solid var(--line); padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-heading h2 { font-size: 1rem; font-weight: 600; }
.section-index { color: var(--accent-dark); margin-right: 12px; font-size: .875rem; }
.query-source { font-size: .8125rem; color: var(--muted); }
.query-source span { color: var(--accent-dark); font-weight: 600; }
.filters { display: grid; grid-template-columns: 1.15fr 1.65fr .75fr; gap: 0 16px; padding: 14px 0 0; }
.filters > div:not(.subfilters) > label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: 6px; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap > span { position: absolute; left: 13px; pointer-events: none; color: var(--muted); }
.search-wrap .icon { width: 19px; height: 19px; }
.district-search-container { position: relative; }
.district-suggestions { position: absolute; top: calc(100% + 6px); left: 0; right: 0; max-height: min(360px, 45vh); overflow-y: auto; overscroll-behavior: contain; z-index: 500; background: #fff; border: 1px solid #928473; border-radius: 7px; box-shadow: 0 8px 20px #24211d24; }
.district-suggestion { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.district-suggestion:last-child { border-bottom: 0; }
.district-suggestion:hover, .district-suggestion[aria-selected=true] { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.district-feedback { margin-top: 6px; color: var(--accent-dark); font-size: .875rem; line-height: 1.6; }
.district-feedback:empty { display: none; }
.results-status { margin-top: 16px; color: var(--accent-dark); font-size: .9375rem; line-height: 1.6; }
.results-status:empty { display: none; }
.comparison-mode { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 18px 0 4px; }
.comparison-mode > label { font-weight: 600; }
.comparison-mode > select { width: auto; max-width: 100%; }
.comparison-mode > p { font-size: .875rem; color: var(--muted); }
.school-controls { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-top: 14px; }
.school-controls label { display: grid; gap: 6px; min-width: 0; font-size: .9375rem; font-weight: 600; }
.school-mode .nav-item:disabled { opacity: .4; cursor: not-allowed; }
.school-point { cursor: pointer; }
.school-mode .school-point { filter: drop-shadow(0 0 2px #fff); }
.school-mode .swatch.selected, .school-mode .swatch.context { border-radius: 50%; }
.school-mode .swatch.context { background: #fff; border-color: var(--map-neighbor-border); }
.school-map-context { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 0 16px 12px; font-size: .875rem; color: var(--muted); }
.school-map-context label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); cursor: pointer; }
.school-map-context input { width: 18px; height: 18px; padding: 0; accent-color: var(--accent-dark); }
.school-location { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px 0; }
.school-location > div { min-width: 0; }
.school-location strong { font-size: 1rem; }
.school-location p { margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.school-location .text-button { flex-shrink: 0; }
.school-street-status { margin: 12px 16px 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.school-context-label .map-label-content { font-size: .875rem; font-weight: 500; color: var(--muted); background: #fffffff2; }
.school-selected-tooltip { font-size: .875rem; font-weight: 700; white-space: normal; max-width: 230px; text-align: center; }
@media (max-width: 420px) {
  .school-location { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) {
  .comparison-mode > select { width: 100%; }
  .school-controls { grid-template-columns: 1fr; }
}
input, select { width: 100%; min-width: 0; height: 2.75rem; border: 1px solid #928473; border-radius: 7px; padding: 10px 12px; background: #fff; color: var(--ink); font-size: 1rem; }
input:hover, select:hover { border-color: var(--accent); }
input[type=search] { padding-left: 40px; }
input::placeholder { color: var(--muted); opacity: 1; }
select { padding-right: 28px; text-overflow: ellipsis; }
.subfilters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 12px 0 14px; margin-top: 14px; border-top: 1px solid #d8d0c3; }
.subfilters > label { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .875rem; font-weight: 500; max-width: 100%; min-width: 0; }
.subfilters select { width: auto; max-width: 290px; min-height: 2.75rem; height: auto; font-size: 1rem; background: #fff; }
.filter-note { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.group-note { padding: 0 0 14px; font-size: .875rem; color: var(--muted); }
@media (max-width: 560px) {
  #group-field, #definition-field, .has-reporting-definition .year-filter { grid-column: 1 / -1; }
}
.small-dot { width: 7px; height: 7px; background: var(--comparison); border-radius: 50%; flex-shrink: 0; }
.district-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 22px 0 18px; }
.district-heading .eyebrow { margin-bottom: 6px; }
.district-heading h2 { font-size: clamp(1.65rem, 2.1vw, 2rem); letter-spacing: -.025em; }
.selection-summary { font-size: .9375rem; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.statewide-context { margin: 10px 0 0; color: var(--accent-dark); background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 8px 12px; font-size: .875rem; line-height: 1.6; }
.staff-data-note { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--accent-soft); }
.staff-data-note > span { flex-shrink: 0; color: var(--accent-dark); line-height: 1; margin-top: 2px; }
.staff-data-note h3 { font-size: .9375rem; margin-bottom: 5px; }
.staff-data-note p { font-size: .9375rem; line-height: 1.7; color: var(--ink); }
.source-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; border: 1px solid #d8d0c3; border-radius: 7px; padding: 8px 12px; color: var(--accent-dark); background: var(--accent-soft); flex-shrink: 0; }
.source-badge .icon { width: 18px; height: 18px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.kpi { min-width: 0; min-height: 180px; padding: 20px; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 9px; background: #fff; }
.kpi-overline { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.kpi-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9375rem; line-height: 1.45; min-height: 22px; font-weight: 600; }
.kpi-label .icon { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.kpi-value { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.2; margin-top: 14px; }
.kpi-caption { font-size: .875rem; color: var(--muted); line-height: 1.6; margin-top: 10px; overflow-wrap: anywhere; }
.kpi.primary { background: #efe6d8; border-color: #c5b399; }
.kpi.primary .kpi-overline, .kpi.primary .kpi-value { color: var(--accent-dark); }
.kpi:nth-child(2) { background: #fff; border-color: var(--line); }
.kpi:nth-child(2) .kpi-overline, .kpi:nth-child(2) .kpi-value { color: var(--comparison); }
.kpi-value.long { font-size: 1.75rem; letter-spacing: -.02em; padding-top: 7px; }
.rank-denominator { font-size: 1.25rem; color: var(--muted); letter-spacing: 0; }
.source-credit { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 13px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.source-credit a { text-decoration: underline; text-decoration-color: #928473; text-underline-offset: 3px; overflow-wrap: anywhere; }
.source-credit a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
.kpi-source-credit { padding: 0; border-top: 0; margin: -14px 0 24px; }
.map-source-credit { flex-direction: column; gap: 6px; }
.comparison-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(300px, 1fr); gap: 20px; align-items: stretch; margin-bottom: 28px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.map-panel { box-shadow: 0 6px 24px #36271a06; }
.ranking-panel { border-color: var(--line); }
.trend-panel { border-color: var(--line); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; }
.panel-header .eyebrow { font-size: .8125rem; margin-bottom: 7px; }
.panel-header h3 { font-size: 1.375rem; letter-spacing: -.02em; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; border: 0; background: none; color: var(--accent-dark); font-size: .875rem; font-weight: 600; line-height: 1.5; padding: 8px 2px; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-button .icon { width: 17px; height: 17px; flex-shrink: 0; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
#district-map { height: clamp(420px, 38vw, 540px); background: #f1ede5; margin: 0 16px; border: 1px solid var(--line); border-radius: 7px; z-index: 1; }
.leaflet-container { font-family: var(--font-sans); }
.leaflet-control-attribution { font-size: 12px !important; background: rgba(255, 255, 255, .95) !important; color: var(--muted); max-width: 100%; }
.leaflet-control-zoom { border: 1px solid #928473 !important; border-radius: 7px !important; box-shadow: none !important; overflow: hidden; }
.leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; border-radius: 0 !important; font-family: var(--font-sans); font-size: 24px !important; color: var(--ink) !important; }
.map-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 17px; }
.map-touch-tools { display: flex; align-items: center; gap: 12px; padding: 12px 16px 0; }
.map-touch-tools button { flex-shrink: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #928473; border-radius: 7px; background: #fff; color: var(--accent-dark); font-size: .875rem; font-weight: 600; }
.map-touch-tools p { font-size: .8125rem; color: var(--muted); line-height: 1.6; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: .875rem; color: var(--muted); }
.legend > span { display: flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; width: 13px; height: 13px; background: var(--accent); border: 1px solid var(--accent); border-radius: 2px; }
.swatch.selected { background: #fff; border: 2px solid var(--ink); }
.swatch.neighbor { background: var(--map-neighbor); border-color: var(--map-neighbor-border); }
.swatch.context { background: var(--map-context); border-color: var(--map-context-border); }
.swatch.missing { background: var(--map-missing); border: 1px dashed var(--notice); }
.swatch.uncapped { background: var(--map-uncapped); border: 1px solid var(--map-uncapped-border); }
.gradient-swatch { display: block; width: 100%; height: 10px; border: 1px solid var(--map-neighbor-border); border-radius: 3px; }
.map-legend { gap: 10px 16px; }
.map-scale-note { width: 100%; margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.map-hint { font-size: .8125rem; color: var(--muted); }
.map-label { font-size: 12px; color: #24211d; font-weight: 600; text-align: center; line-height: 1.4; white-space: normal; filter: drop-shadow(0 1px 1px #fff); pointer-events: none; }
.map-label strong { display: block; margin-top: 3px; font-size: 14px; font-weight: 700; }
.map-label.selected-label { color: #fff; filter: none; }
.map-label-content { display: inline-block; padding: 5px 7px; border-radius: 5px; background: rgba(255,255,255,.96); border: 1px solid #d8d0c3; }
.selected-label .map-label-content { background: var(--ink); border-color: #fff; box-shadow: 0 2px 8px #24211d25; }
.leaflet-tooltip { font-family: var(--font-sans); font-size: .9375rem; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink); }
.pill { font-size: .8125rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; background: var(--soft); }
.ranking-panel { display: flex; flex-direction: column; }
.ranking-panel .panel-header { padding-bottom: 12px; }
.ranking-unit { padding: 0 22px 15px; font-size: .875rem; color: var(--muted); line-height: 1.6; }
#ranking-metric { color: var(--ink); font-weight: 600; }
.comparison-context, .comparison-definition { margin-top: 6px; font-size: .875rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.comparison-definition { color: var(--ink); }
.rank-bars { flex: 1; max-height: 590px; padding: 0 22px; overflow-y: auto; scrollbar-width: thin; }
.rank-row { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) 88px; gap: 10px; align-items: center; min-height: 68px; padding: 11px 4px; border: 0; border-radius: 5px; background: none; text-align: left; }
.rank-row:hover { background: var(--soft); }
.bar-rank { font-size: .875rem; color: var(--muted); }
.bar-detail { min-width: 0; }
.bar-name { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: .9375rem; line-height: 1.4; margin-bottom: 8px; }
.bar-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.bar-name small { font-size: .75rem; line-height: 1.4; padding: 1px 5px; border-radius: 3px; background: var(--accent-soft); color: var(--accent-dark); flex-shrink: 0; }
.bar-track { height: 8px; border-radius: 3px; background: #eee8df; overflow: hidden; }
.bar-track.diverging { background: linear-gradient(90deg, #eee8df 49.7%, #625a50 50%, #eee8df 50.3%); }
.bar-fill { height: 100%; background: var(--comparison); }
.bar-value { font-size: 1rem; text-align: right; }
.rank-row.is-selected { background: var(--accent-soft); }
.rank-row.is-selected .bar-name, .rank-row.is-selected .bar-value { font-weight: 700; }
.rank-row.is-selected .bar-track { box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--ink); }
.rank-row.is-missing .bar-track { background: repeating-linear-gradient(45deg, #fbf2df, #fbf2df 3px, #b09a77 3px, #b09a77 4px); }
.ranking-foot { padding: 15px 22px; margin-top: auto; background: var(--comparison-soft); border-top: 1px solid #d8d0c3; font-size: .875rem; line-height: 1.7; color: var(--muted); }
.trend-panel, .table-panel { margin-bottom: 24px; }
.trend-panel .panel-header { padding-bottom: 10px; }
.line-swatch { width: 24px; height: 3px; background: var(--accent); }
.line-swatch.median { height: 0; border-top: 3px dashed var(--comparison); background: transparent; }
.trend-chart { position: relative; height: 17.5rem; margin: 0 22px; overflow: hidden; }
.trend-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-grid { stroke: #e2dbd0; stroke-width: 1; }
.chart-axis { font-size: .8125rem; fill: var(--muted); }
.chart-line { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart-median { stroke: var(--comparison); stroke-width: 2.5; stroke-dasharray: 6 5; fill: none; stroke-linecap: round; }
.chart-point { fill: #fff; stroke: var(--accent); stroke-width: 2; cursor: pointer; }
.chart-point.active { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.chart-selection { fill: var(--accent-soft); }
.chart-forecast { stroke-dasharray: 5 5; }
.chart-foot { padding: 12px 22px 20px; font-size: .875rem; line-height: 1.75; color: var(--muted); }
.empty-chart { display: grid; place-items: center; height: 100%; padding: 20px; font-size: 1rem; color: var(--muted); }
.chart-data { font-size: .9375rem; border-top: 1px solid var(--line); }
.chart-data > summary { cursor: pointer; min-height: 48px; padding: 14px 22px; color: var(--accent-dark); font-weight: 600; }
.chart-data > summary:hover, .chart-data[open] > summary { background: var(--soft); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9375rem; }
thead { background: var(--soft); }
th { padding: 14px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .875rem; font-weight: 600; white-space: nowrap; }
td { padding: 16px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td:first-child, th:first-child { width: 50px; }
td:nth-child(3) { font-weight: 700; }
tr.selected-row { background: var(--accent-soft); }
tr.selected-row td:first-child { box-shadow: inset 4px 0 var(--accent); }
tr:last-child td { border-bottom: 0; }
td .district-button { min-height: 44px; padding: 0; border: 0; background: none; font-size: .9375rem; text-align: left; }
.district-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.district-code { display: block; color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.you-label { font-size: .75rem; padding: 3px 5px; margin-left: 8px; background: var(--accent); color: #fff; border-radius: 3px; }
.status-badge { display: inline-block; font-size: .8125rem; line-height: 1.5; border: 1px solid #d1c5b4; border-radius: 5px; padding: 5px 8px; color: #625a50; background: var(--soft); }
.status-badge.unavailable { color: var(--notice); border-color: #b99d69; border-style: dashed; background: var(--notice-soft); }
.status-badge.forecast { color: var(--notice); border-color: #b99d69; background: var(--notice-soft); }
.table-foot { display: flex; align-items: flex-start; gap: 9px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: .875rem; line-height: 1.75; }
.table-foot .icon { flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; }
.page-footer { display: flex; justify-content: space-between; gap: 24px; padding: 8px 0 34px; }
.footer-brand, .footer-meta { display: flex; flex-direction: column; gap: 8px; font-size: .875rem; line-height: 1.6; }
.footer-brand a { font-size: 1rem; font-weight: 700; }
.footer-brand > span, .footer-meta > span { color: var(--muted); }
.footer-meta { text-align: right; }
.footer-meta button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--accent-dark); text-align: right; font-size: .875rem; font-weight: 600; }
.footer-meta button:hover { text-decoration: underline; text-underline-offset: 3px; }
.error { margin-top: 20px; border: 1px solid #b99d69; border-left: 4px solid var(--notice); border-radius: 8px; padding: 16px 20px; font-size: 1rem; line-height: 1.75; background: var(--notice-soft); }
.error button { margin-left: 8px; min-height: 44px; background: none; border: 0; text-decoration: underline; color: var(--accent-dark); font-weight: 600; }
.error-help { display: inline-block; padding: 8px 0; color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
#dashboard[aria-busy=true] { opacity: .5; transition: opacity .2s; pointer-events: none; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 14px 20px; border-radius: 8px; background: var(--ink); color: #fff; font-size: .9375rem; line-height: 1.6; z-index: 2000; width: max-content; max-width: 90vw; }
dialog { width: min(840px, calc(100% - 32px)); max-height: 85vh; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; padding: 0; color: var(--ink); background: #fff; }
dialog::backdrop { background: #24211d7a; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 1.625rem; letter-spacing: -.02em; }
.dialog-header .eyebrow { font-size: .8125rem; }
.dialog-header .icon-button { font-size: 28px; flex-shrink: 0; }
.dialog-body { padding: 24px 28px; font-size: 1rem; line-height: 1.8; color: var(--muted); }
.dialog-body h3 { font-size: 1.125rem; color: var(--ink); margin: 24px 0 8px; }
.dialog-body a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.source-detail { padding: 18px 0; border-bottom: 1px solid var(--line); }
.source-detail h3 { margin-top: 0; }
.source-range { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.dialog-body summary { cursor: pointer; color: var(--accent-dark); min-height: 44px; margin: 24px 0 12px; font-weight: 600; }
.dialog-body ul { padding-left: 22px; }
.dialog-body li { font-size: .9375rem; overflow-wrap: anywhere; margin-bottom: 10px; }
.dialog-body input { margin: 7px 0 16px; }
#access-dialog { max-width: 460px; }
#share-dialog { max-width: 600px; }
#share-dialog label { display: block; margin-top: 16px; font-weight: 600; color: var(--ink); }
#share-dialog p { margin-bottom: 16px; }
#access-error { font-weight: 600; color: var(--notice); }
.member-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
#member-term { color: var(--muted); margin-right: auto; }
#member-email { overflow-wrap: anywhere; max-width: 100%; }
.member-gate { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px 0 72px; align-items: start; }
.member-intro p { max-width: 480px; font-size: 1.0625rem; line-height: 1.75; margin-top: 24px; }
.member-price { font-size: 3rem; font-weight: 700; letter-spacing: -.035em; margin-top: 26px; color: var(--accent-dark); }
.member-price span { font-size: 1.125rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.member-intro .member-renewal, .member-renewal { color: var(--muted); font-size: .9375rem; line-height: 1.75; }
#member-open { display: inline-flex; margin-top: 20px; }
.member-card { min-width: 0; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 10px; background: #fff; padding: 30px; }
.member-card h2 { font-size: 1.5rem; margin-bottom: 20px; }
.member-card p { font-size: .9375rem; line-height: 1.75; margin-bottom: 20px; }
.member-card label { display: grid; gap: 8px; margin-bottom: 20px; font-size: .9375rem; }
.member-card input { width: 100%; min-width: 0; }
.member-card .terms-agreement { display: grid; grid-template-columns: 24px 1fr; align-items: start; gap: 12px; min-height: 48px; margin-bottom: 8px; line-height: 1.65; font-size: 1rem; }
.member-card .terms-agreement input { width: 24px; height: 24px; min-height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.member-card .terms-version, .member-card .terms-privacy, .member-card .terms-receipt { color: var(--muted); font-size: .875rem; }
.member-card .terms-version { margin-bottom: 4px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; font-size: .9375rem; line-height: 1.75; }
.legal-links a, .terms-agreement a, .terms-privacy a, .terms-receipt a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.member-card .button { width: 100%; justify-content: center; }
.member-card .button:disabled { color: var(--muted); background: var(--soft); border-color: var(--line); cursor: not-allowed; }
.member-links { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; }
.member-card .text-button { margin: 16px 0 0; }
.member-links .text-button { margin: 0; }
.member-card .member-message { margin: 20px 0 0; color: var(--accent-dark); overflow-wrap: anywhere; }
.member-card .member-message:empty { display: none; }
.member-card .member-support { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.member-support a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.member-intro .member-includes { font-size: .9375rem; margin-top: 14px; }
.environment-notice { margin-top: 16px; padding: 12px 16px; border: 1px solid #b99d69; border-radius: 7px; background: var(--notice-soft); color: var(--notice); font-size: .9375rem; line-height: 1.6; }
#member-payment-panel .member-renewal { margin-top: 20px; }
/* Clerk owns verification, password recovery, and device challenges. */
#member-clerk { width: 100%; min-width: 0; }
#member-clerk .cl-rootBox, #member-clerk .cl-cardBox { width: 100%; max-width: 100%; min-width: 0; }
#member-clerk .cl-formFieldInput, #member-clerk .cl-formButtonPrimary, #member-clerk .cl-socialButtonsBlockButton { min-height: 48px; font-size: 1rem; }
#member-auth-loading { font-size: .9375rem; color: var(--muted); }

@media (min-width: 1600px) {
  .site-shell { padding: 0 40px; }
  .nav-item { padding: 12px 16px; }
}
@media (max-width: 1200px) {
  .site-shell { padding: 0 32px; }
  .nav-number, .nav-arrow { display: none; }
  .intro { gap: 36px; }
  .kpi { padding: 18px 16px; }
  .kpi-value { font-size: 2.25rem; }
  .kpi-value.long { font-size: 1.6rem; }
  .comparison-grid { gap: 20px; }
  .panel-header { padding: 20px 18px; }
  .panel-header h3 { font-size: 1.25rem; }
  .ranking-unit, .rank-bars { padding-left: 18px; padding-right: 18px; }
  .rank-row { grid-template-columns: 20px minmax(0, 1fr) 75px; gap: 8px; }
  .map-hint { display: none; }
  .filter-note { margin-left: 0; }
}
@media (max-width: 900px) {
  .site-shell { padding: 0 24px; }
  .masthead { min-height: 88px; }
  .brand { gap: 18px; }
  .brand img { width: 64px; height: 64px; }
  .masthead-note { max-width: 230px; }
  #source-nav { display: flex; overflow-x: auto; scrollbar-width: thin; }
  .nav-item { flex: 1 0 135px; min-height: 48px; padding: 10px 12px; }
  .intro { gap: 24px; padding: 22px 0; }
  h1 { font-size: 2rem; }
  .filters { grid-template-columns: 1fr 1fr; gap: 18px; }
  .district-filter { grid-column: 1 / -1; }
  .subfilters { margin-top: 0; }
  .subfilters > label { flex: 1 1 180px; display: block; }
  .subfilters select { width: 100%; max-width: 100%; margin-top: 8px; }
  .filter-note { flex-basis: 100%; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { min-height: 195px; padding: 20px; }
  .kpi-value { font-size: 2.5rem; }
  .kpi-value.long { font-size: 1.75rem; }
  .comparison-grid { grid-template-columns: 1fr; gap: 24px; }
  .panel-header h3 { font-size: 1.375rem; }
  #district-map { height: 480px; }
  .rank-bars { max-height: 400px; }
  .rank-row { grid-template-columns: 24px minmax(0, 1fr) 95px; }
  .map-hint { display: block; }
  .member-gate { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  .member-intro p { max-width: 100%; }
  .member-card { max-width: 560px; width: 100%; justify-self: center; }
}
@media (max-width: 560px) {
  .site-shell { padding: 0 16px; }
  .masthead { min-height: 80px; }
  .brand { gap: 16px; }
  .brand img { width: 56px; height: 56px; }
  .brand-caption { font-size: .75rem; letter-spacing: 1px; }
  .brand-rule { margin-top: 7px; }
  .masthead-right, .index-mark { display: none; }
  .workspace-header { padding: 0; gap: 10px; }
  .workspace-label { font-size: .875rem; }
  .workspace-header .text-button { font-size: 0; padding: 8px 0 8px 8px; flex-shrink: 0; }
  .workspace-header .text-button::before { content: "Data notes"; font-size: .875rem; }
  .workspace-header .text-button > span { font-size: .875rem; }
  #source-nav { display: none; }
  .mobile-source-field { display: block; margin-top: 10px; }
  .mobile-source-field label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; }
  .nav-item { min-height: 3rem; padding: 12px; align-items: center; border: 1px solid var(--line); border-radius: 7px; font-size: .9375rem; overflow-wrap: anywhere; }
  .nav-item:last-child { border-right: 1px solid var(--line); }
  .nav-item small { display: none; }
  .nav-item.active { border-color: #ae9575; box-shadow: inset 3px 0 var(--accent); }
  .intro { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; }
  .intro-title .eyebrow { margin-bottom: 6px; }
  h1 { font-size: clamp(1.5rem, 6.3vw, 2rem); }
  .intro-title h1 span { display: block; }
  .intro-aside { justify-self: start; max-width: 100%; }
  .intro-aside .eyebrow { display: none; }
  .intro p { display: none; }
  .intro .button { margin: 0; width: 44px; min-height: 44px; padding: 0; font-size: 0; }
  .intro .button > span[aria-hidden] { display: none; }
  .query-section { padding: 0 16px; }
  .section-heading { align-items: center; gap: 10px; padding: 12px 0; }
  .section-heading h2 { font-size: 1.0625rem; }
  .section-index { margin-right: 8px; }
  .query-source { font-size: .8125rem; padding-left: 0; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 14px 0; }
  .metric-filter { grid-column: 1 / -1; }
  .district-filter { grid-column: 1 / -1; }
  .subfilters { display: contents; }
  .subfilters > label { display: block; font-size: .9375rem; font-weight: 600; }
  .filter-note { grid-column: 1 / -1; font-size: .8125rem; align-items: flex-start; }
  .filter-note .small-dot { margin-top: 7px; }
  .district-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; margin: 22px 0 16px; }
  .district-heading h2 { font-size: 1.75rem; }
  .selection-summary { font-size: .9375rem; }
  .statewide-context { font-size: .875rem; }
  .source-badge { font-size: .875rem; }
  .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 12px; margin-bottom: 24px; }
  .kpi { padding: 18px 16px; min-height: 170px; }
  .kpi.primary, .kpi:last-child { grid-column: 1 / -1; min-height: 0; }
  .kpi.primary .kpi-value { font-size: 2.75rem; }
  .kpi.primary .kpi-value.long { font-size: 2rem; }
  .kpi-overline { font-size: .8125rem; margin-bottom: 10px; }
  .kpi-label { font-size: .9375rem; align-items: flex-start; }
  .kpi-label .icon { display: none; }
  .kpi-value { font-size: 2.125rem; }
  .kpi-value.long { font-size: 1.625rem; }
  .kpi-caption { font-size: .875rem; }
  .rank-denominator { font-size: 1.25rem; }
  .source-credit { padding: 12px 16px; font-size: .8125rem; }
  .kpi-source-credit { padding: 0; margin: -12px 0 22px; }
  .comparison-grid { gap: 22px; margin-bottom: 22px; }
  .panel-header { padding: 18px 16px; gap: 12px; }
  .panel-header h3 { font-size: 1.25rem; }
  .panel-header .eyebrow { font-size: .8125rem; letter-spacing: .03em; }
  .text-button { font-size: .875rem; gap: 6px; }
  #district-map { height: 380px; margin: 0 10px; }
  .map-footer { padding: 15px 12px; }
  .legend { font-size: .875rem; gap: 12px; }
  .map-hint { display: none; }
  .ranking-unit { padding: 0 16px 12px; }
  .rank-bars { padding: 0 12px; max-height: 430px; }
  .rank-row { grid-template-columns: 18px minmax(0, 1fr) 80px; gap: 8px; }
  .bar-name { font-size: .9375rem; }
  .bar-value { font-size: 1rem; }
  .ranking-foot { padding: 14px 16px; font-size: .875rem; }
  .trend-panel, .table-panel { margin-bottom: 22px; }
  .trend-panel .panel-header { flex-wrap: wrap; align-items: flex-start; }
  .trend-legend { gap: 10px 18px; }
  .trend-chart { height: 16.25rem; margin: 0 10px; }
  .chart-foot { padding: 10px 16px 18px; font-size: .875rem; }
  .chart-data > summary { padding: 14px 16px; }
  .table-panel .text-button { max-width: 120px; line-height: 1.5; }
  .table-panel .text-button > span:last-child { display: none; }
  th, td { padding: 14px 16px; }
  .table-foot { padding: 14px 16px; font-size: .875rem; }
  .page-footer { flex-direction: column; gap: 18px; padding: 6px 0 28px; }
  .footer-meta, .footer-meta button { text-align: left; }
  .dialog-header { padding: 18px; }
  .dialog-header h2 { font-size: 1.375rem; }
  .dialog-body { padding: 18px; }
  .member-gate { padding: 26px 0; }
  .member-card { padding: 20px 16px; }
  .member-intro h1 { font-size: 2.25rem; }
  .member-price { font-size: 2.625rem; }
  .member-intro p { margin-top: 18px; }
  .member-toolbar { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.snapshot-heading { font-size: 1rem; font-weight: 600; margin: 0 0 14px; }
.map-tools { display: flex; align-items: center; gap: 18px; }
.map-color-field { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.map-color-field select { width: 205px; max-width: 100%; height: 44px; padding: 8px 28px 8px 10px; font-size: .875rem; }
.map-panel .panel-header { flex-wrap: wrap; padding: 20px; }
.map-panel .panel-header .eyebrow { font-size: .75rem; letter-spacing: .06em; }
.map-panel .panel-header h3 { font-size: 1.375rem; }
.map-heading { flex: 1 1 24rem; min-width: 0; }
.map-heading h3 { overflow-wrap: anywhere; }
.map-scale { flex: 1 1 280px; max-width: 390px; }
.scale-labels { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .75rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.map-label-selected { display: block; font-size: 9px; letter-spacing: .08em; margin-bottom: 3px; }
.selected-district { filter: drop-shadow(0 0 2px #fff); }
.value-swatch { display: inline-block; flex-shrink: 0; width: 12px; height: 12px; border: 1px solid #24211d55; border-radius: 50%; }
.selected-comparison { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: .8125rem; font-weight: 600; color: var(--ink); }
.table-value { position: relative; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.map-panel .source-credit { font-size: .75rem; }
@media (min-width: 901px) and (max-width: 1200px) {
  .comparison-grid { grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr); }
  .intro-aside { gap: 14px; }
  .intro p { font-size: .875rem; }
}
@media (max-width: 900px) {
  .intro-aside { display: block; }
  .intro .button { margin-top: 12px; }
  .map-tools { gap: 14px; }
  .map-color-field select { width: 205px; }
}
@media (max-width: 560px) {
  .map-panel .panel-header { padding: 16px; gap: 14px; }
  .map-panel .panel-header h3 { font-size: 1.25rem; }
  .map-tools { width: 100%; justify-content: space-between; gap: 12px; }
  .map-color-field { display: grid; gap: 5px; flex: 1; min-width: 0; }
  .map-color-field select { width: 100%; }
  .map-tools .text-button { flex-shrink: 0; }
  .map-scale { flex-basis: 100%; max-width: none; }
  .map-legend { gap: 10px 14px; font-size: .8125rem; }
  .intro .button { margin-top: 0; }
  .intro-title .eyebrow { display: none; }
  .intro { padding: 12px 0; }
  .intro h1 { font-size: 1.25rem; }
  .intro-title h1 span { display: inline; }
  .mobile-source-field { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
  .mobile-source-field label { margin: 0; font-size: .875rem; white-space: nowrap; }
  .mobile-source-field select { flex: 1; min-width: 0; }
  .section-heading h2 { font-size: .9375rem; }
  .filters { gap: 12px; padding: 12px 0; }
  .filters > div:not(.subfilters) > label { font-size: .875rem; line-height: 1.4; margin-bottom: 5px; }
  .subfilters > label { font-size: .875rem; line-height: 1.4; }
  .subfilters select { margin-top: 5px; }
  .district-heading { margin: 18px 0 14px; }
  .district-heading .eyebrow { font-size: .6875rem; line-height: 1.4; margin-bottom: 4px; }
  .district-heading h2 { font-size: 1.5rem; line-height: 1.2; }
  .selection-summary { font-size: .875rem; line-height: 1.5; margin-top: 4px; }
  .map-panel .panel-header { padding: 12px 16px; gap: 10px; }
  .map-panel .panel-header .eyebrow { line-height: 1.4; margin-bottom: 4px; }
  .map-color-field { display: block; font-size: 0; }
  .query-source { font-size: .75rem; }
  .source-badge { display: none; }
}
