/* IDEA Atlas: matches sumanrath.org (Vollkorn headings, Manrope text, warm paper background).
   Fonts (SIL Open Font License) are bundled with the atlas, so no outside requests. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Vollkorn"; font-weight: 400 900; font-display: swap; src: url("vollkorn-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Vollkorn"; font-weight: 400 900; font-display: swap; src: url("vollkorn-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 104.3%; ascent-override: 102.2%; descent-override: 28.8%; line-gap-override: 0%; }
@font-face { font-family: "Vollkorn Fallback"; src: local("Times New Roman"), local("Liberation Serif"), local("Times"); size-adjust: 109%; ascent-override: 87.3%; descent-override: 40.4%; line-gap-override: 0%; }

:root {
  --ink: #1b2236; --ink-2: #3e4558; --muted: #565c6b; --paper: #faf6ee; --panel: #fffdf8;
  --rule: #e7dfcd; --accent: #26386b; --accent-ink: #1e2a4a; --focus: #1c5cab; --gold: #c98a1b; --gold-ink: #94600f;
  --nodata: #dcd9d0; --radius: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 Manrope, "Manrope Fallback", system-ui, sans-serif; }
h1, h2, h3 { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-weight: 500; line-height: 1.2; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: .6em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

header.site { border-bottom: 1px solid var(--rule); background: var(--paper); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.brand-name { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 1.45rem; font-weight: 600; }
.brand-sub { font-size: .85rem; color: var(--muted); }
header nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
header nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .25rem 0; border-bottom: 2px solid transparent; }
header nav a:hover { border-bottom-color: var(--accent); }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 1.25rem 0 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 .4rem; color: var(--muted); }

.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46rem; }
.meta { color: var(--muted); }
.hint, .source { color: var(--muted); font-size: .92rem; }
.note { background: #f6f2e8; border-left: 3px solid var(--accent); padding: .6rem .9rem; border-radius: 0 var(--radius) var(--radius) 0; }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: .25rem 1.4rem 1.2rem; margin: 1.5rem 0; }

label { font-weight: 600; }
input[type=search], select { font: inherit; color: var(--ink); background: #fff; border: 1px solid #a9a59b; border-radius: var(--radius); padding: .5rem .7rem; min-height: 2.75rem; }
input[type=search] { width: 100%; max-width: 28rem; }
button, .button { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: var(--radius); padding: .55rem 1.1rem; min-height: 2.75rem; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { background: var(--accent-ink); color: #fff; }
button:disabled { background: #b9b5ab; cursor: not-allowed; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.controls { display: flex; flex-wrap: wrap; gap: .9rem 1.5rem; align-items: end; margin: .75rem 0; }
.controls > div { display: flex; flex-direction: column; gap: .3rem; }
.controls .check { flex-direction: row; align-items: center; gap: .5rem; }
.controls .check input { width: 1.2rem; height: 1.2rem; }

#results ul { list-style: none; padding: 0; margin: .5rem 0 0; }
#results li { padding: .45rem 0; border-bottom: 1px solid var(--rule); }
#results li a { font-weight: 600; }
#results .sub { color: var(--muted); font-size: .92rem; }

#map { height: min(68vh, 560px); border: 1px solid var(--rule); border-radius: var(--radius); background: #f3f1ea; }
#legend h3 { margin: .9rem 0 .3rem; font-size: 1rem; font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-weight: 600; }
#legend ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: 0; margin: 0; }
#legend li { display: flex; align-items: center; gap: .45rem; font-size: .92rem; }
.swatch { width: 1.15rem; height: 1.15rem; border-radius: 3px; border: 1px solid rgba(0,0,0,.18); display: inline-block; }
.swatch.nodata { background: repeating-linear-gradient(45deg, var(--nodata) 0 3px, #c4c0b5 3px 5px); }
.maplibregl-popup-content { font: inherit; font-size: .95rem; padding: .6rem .8rem; border-radius: var(--radius); color: var(--ink); }
.maplibregl-popup-content strong { display: block; }

.table-wrap { overflow-x: auto; margin: .75rem 0; }
table { border-collapse: collapse; width: 100%; background: var(--panel); font-size: .97rem; }
caption { text-align: left; font-weight: 600; padding: .4rem 0; color: var(--ink-2); }
th, td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { background: #f3ecdc; font-weight: 600; }
td { font-variant-numeric: tabular-nums; }
table.profile td, table.profile thead th:not(:first-child) { text-align: right; white-space: nowrap; }
table.narrow { max-width: 34rem; }
#t-table th button { all: unset; cursor: pointer; font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; }
#t-table th button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
#t-table th[aria-sort=ascending] button::after { content: "▲"; font-size: .7em; }
#t-table th[aria-sort=descending] button::after { content: "▼"; font-size: .7em; }
#t-table td:not(:first-child), #t-table th:not(:first-child) { text-align: right; }

.glance ul { padding-left: 1.2rem; }
.glance li { margin: .35rem 0; }
details.kids summary { cursor: pointer; font-weight: 600; }
details.kids ul { columns: 2; }
.toc ul { columns: 2; padding-left: 1.2rem; }

footer.site { margin-top: 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; padding: 1rem 0 2rem; }

@media (max-width: 640px) {
  .toc ul, details.kids ul { columns: 1; }
  #map { height: 60vh; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (forced-colors: active) { .swatch { forced-color-adjust: none; } }
/* page tools, detail sections, compare, column picker */
.page-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .5rem; }
.button.secondary, button.secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.button.secondary:hover { background: #f6f2e8; color: var(--accent-ink); }
button.link { all: unset; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: .92rem; margin-left: .4rem; }
button.link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
details.full { margin: .75rem 0 1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; padding: .2rem .9rem; }
details.full > summary { cursor: pointer; font-weight: 600; padding: .55rem 0; color: var(--ink); }
details.full[open] > summary { border-bottom: 1px solid var(--rule); margin-bottom: .5rem; }
table.detail td { text-align: right; }
table.compare th[scope=col] .sub { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
table.compare td { text-align: right; }
table.compare tbody th[scope=row], table.compare thead th:first-child { width: 32%; min-width: 14rem; }
table.compare tr.group th { background: #f3ecdc; font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 1.05rem; padding-top: .8rem; }
ul.chosen, ul.pick { list-style: none; padding: 0; }
ul.chosen li, ul.pick li { padding: .4rem 0; border-bottom: 1px solid var(--rule); }
ul.pick button { padding: .35rem .8rem; min-height: 2.4rem; }
.sub { color: var(--muted); font-size: .92rem; }
fieldset.cols { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; padding: .6rem 1rem 1rem; margin: .5rem 0 1rem; }
fieldset.cols legend { font-weight: 600; padding: 0 .3rem; }
.colgroup { display: inline-block; vertical-align: top; min-width: 14rem; margin: .4rem 1.5rem .4rem 0; }
.colgroup-h { font-weight: 600; margin: .2rem 0; font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; }
.colgroup label { display: block; font-weight: 400; padding: .15rem 0; }
.print-only { display: none; }
/* layers: plain words, then the numbers, then full detail; explainers sit beside the term */
ul.plain { padding-left: 1.2rem; margin: .4rem 0 .6rem; max-width: 48rem; }
ul.plain li { margin: .3rem 0; }
.howto { color: var(--ink-2); max-width: 48rem; }
.explainers { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: .4rem 0 .8rem; align-items: flex-start; }
details.explain { font-size: .94rem; }
details.explain > summary { cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: .15em; padding: .15rem .1rem; list-style: none; }
details.explain > summary::-webkit-details-marker { display: none; }
details.explain > summary::before { content: "?"; display: inline-block; width: 1.15em; height: 1.15em; line-height: 1.15em; text-align: center;
  border: 1px solid currentColor; border-radius: 50%; font-size: .8em; margin-right: .35em; text-decoration: none; }
details.explain[open] { flex-basis: 100%; background: #f6f2e8; border-radius: var(--radius); padding: .2rem .8rem .1rem; }
details.explain p { margin: .3rem 0 .6rem; max-width: 46rem; color: var(--ink); }
details.numbers { margin: .5rem 0 .75rem; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; padding: .2rem .9rem; }
details.numbers > summary { cursor: pointer; font-weight: 600; padding: .55rem 0; }
details.numbers[open] > summary { border-bottom: 1px solid var(--rule); margin-bottom: .3rem; }
ul.paths { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .8rem; }
ul.paths li { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: .8rem 1rem; color: var(--ink-2); }
ul.paths li > a { display: block; margin-bottom: .2rem; }

/* ---------- refinement: calm, composed, letter-like ---------- */
:root { --rule: #e7dfcd; --wash: #f6efe1; --serif: Vollkorn, "Vollkorn Fallback", Georgia, serif; --measure: 39rem; }
body { font-size: 1.0625rem; line-height: 1.7; letter-spacing: .003em; }
.wrap { max-width: 1120px; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
h1, h2, h3 { color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 500; line-height: 1.08; margin: .9em 0 .35em; max-width: 22ch; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); font-weight: 500; margin: 2.6em 0 .55em; }
h3 { font-size: 1.2rem; }
main > section:first-of-type h2, .panel h2 { margin-top: 1.1em; }
p, li { max-width: var(--measure); }
.lede { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.5rem); line-height: 1.5; color: var(--ink-2); max-width: 36rem; margin: 0 0 1rem; text-wrap: pretty; }
.hint, .source { font-size: .9rem; }
.source { margin-top: 1rem; }

header.site { background: transparent; border-bottom-color: transparent; box-shadow: inset 0 -1px 0 var(--rule); }
header.site .wrap { padding-top: 1.35rem; padding-bottom: 1.35rem; }
.brand-name { font-size: 1.55rem; font-weight: 500; letter-spacing: -.01em; }
.brand-sub { font-size: .82rem; }
header nav a { font-size: .97rem; color: var(--ink-2); }
header nav a:hover { color: var(--ink); }
.crumbs ol { margin-top: 1.6rem; font-size: .86rem; }
.crumbs a { color: var(--muted); }

/* district facts under the name */
dl.facts { display: flex; flex-wrap: wrap; gap: .4rem 2.4rem; margin: 0 0 1.4rem; padding: 0; }
dl.facts div { display: flex; flex-direction: column; }
dl.facts dt { font-size: .78rem; color: var(--muted); letter-spacing: .01em; }
dl.facts dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* quiet page tools */
.page-tools { gap: .5rem; margin: 0 0 2rem; }
.page-tools button, .page-tools .button { background: transparent; color: var(--ink-2); border: 1px solid var(--rule); font-weight: 500;
  font-size: .92rem; min-height: 2.5rem; padding: .4rem .95rem; border-radius: 999px; }
.page-tools button:hover, .page-tools .button:hover { background: var(--wash); color: var(--ink); border-color: #d6cfbf; }

/* share: a quiet pill beside Print, and under search results */
.share { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
#results .share { margin: .2rem 0 .4rem; }
button.share-btn, .page-tools button.share-btn { display: inline-flex; align-items: center; gap: .45rem; background: transparent; color: var(--ink-2);
  border: 1px solid var(--rule); font-weight: 500; font-size: .92rem; min-height: 2.5rem; padding: .4rem .95rem; border-radius: 999px; cursor: pointer; }
button.share-btn:hover { background: var(--wash); color: var(--ink); border-color: #d6cfbf; }
button.share-btn svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
button.share-btn svg circle { fill: currentColor; stroke: none; }
.share-menu { position: absolute; top: calc(100% + .35rem); left: 0; z-index: 30; min-width: 12rem; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: .3rem; box-shadow: 0 6px 24px rgba(20, 22, 26, .12); }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button, .page-tools .share-menu button { all: unset; box-sizing: border-box; display: block; padding: .55rem .8rem; border-radius: 6px;
  color: var(--ink); font-size: .95rem; cursor: pointer; text-decoration: none; }
.share-menu a:hover, .share-menu button:hover, .share-menu a:focus-visible, .share-menu button:focus-visible { background: var(--wash); }
.share-menu a:focus-visible, .share-menu button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.share-status { margin: 0; font-size: .9rem; color: var(--muted); }
.share-status:empty { display: none; }
@media (forced-colors: active) { .share-menu { border: 1px solid CanvasText; } button.share-btn svg circle { fill: CanvasText; } }
@media print { .share { display: none !important; } }

/* plain words: the voice of the atlas, set like a letter */
ul.plain, .glance ul { list-style: none; padding: 0; margin: .3rem 0 .9rem; max-width: var(--measure); }
ul.plain li, .glance li { font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; color: var(--ink); margin: 0 0 .75rem; text-wrap: pretty; }
.note:empty { display: none; }
ul.plain li, .glance li, .lede, h1, h2 { font-variant-numeric: lining-nums; }
.fig { font-weight: 650; font-variant-numeric: lining-nums tabular-nums; }
.med { color: var(--muted); white-space: nowrap; }
.ev { color: var(--ink-2); font-style: italic; }
ul.ask { padding-left: 1.2rem; max-width: var(--measure); } ul.ask li { margin: .45rem 0; }
.glance { background: var(--wash); border-radius: 14px; padding: .4rem clamp(1.2rem, 3vw, 2rem) 1rem; margin: 0 0 1.5rem; max-width: 52rem; }
.glance h2 { margin-top: 1rem; font-size: 1.35rem; }
.glance li { font-size: 1.28rem; }
.howto { font-size: .95rem; color: var(--muted); margin: 0 0 .5rem; }
section > p:not(.source):not(.note):not(.hint) { color: var(--ink-2); }

/* explainers: a soft question, an answer that unfolds in place */
.explainers { gap: .2rem 1.1rem; margin: .1rem 0 1rem; }
details.explain > summary { color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; padding: .1rem 0; font-size: .9rem; }
details.explain > summary:hover { color: var(--accent-ink); border-bottom-style: solid; }
details.explain > summary::before { border: none; background: var(--wash); color: var(--accent); font-weight: 700; width: 1.35em; height: 1.35em; line-height: 1.35em; }
details.explain[open] { background: transparent; padding: .3rem 0 .2rem 1rem; border-left: 2px solid var(--accent); border-radius: 0; }
details.explain[open] > summary { border-bottom-color: transparent; }
details.explain p { font-size: .98rem; line-height: 1.65; color: var(--ink-2); margin: .25rem 0 .5rem; }

/* layers: the numbers and the full detail */
details.numbers, details.full { background: transparent; border: none; border-top: 1px solid var(--rule); border-radius: 0; padding: 0; margin: 0; }
details.numbers + details.full, details.numbers + * + details.full { }
section > details.full:last-of-type, section > details.numbers:last-of-type { border-bottom: 1px solid var(--rule); }
details.numbers > summary, details.full > summary { list-style: none; display: flex; align-items: center; gap: .7rem; padding: .85rem 0;
  font-weight: 600; font-size: .98rem; color: var(--ink); cursor: pointer; }
details.numbers > summary::-webkit-details-marker, details.full > summary::-webkit-details-marker { display: none; }
details.numbers > summary::before, details.full > summary::before { content: ""; flex: none; width: .5rem; height: .5rem; margin: 0 .25rem 0 .15rem;
  border-right: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); transition: transform .18s ease; }
details.numbers[open] > summary::before, details.full[open] > summary::before { transform: rotate(45deg); }
details.numbers > summary:hover, details.full > summary:hover { color: var(--accent); }
details.full > summary { font-weight: 500; color: var(--ink-2); }
details.numbers[open] > summary, details.full[open] > summary { border-bottom: none; margin: 0; }
details.numbers[open], details.full[open] { padding-bottom: 1rem; }

/* tables: light, airy, numbers aligned */
table { background: transparent; font-size: .95rem; }
caption { font-weight: 500; font-size: .9rem; color: var(--muted); padding: .2rem 0 .6rem; }
th, td { padding: .55rem .8rem; border-bottom: 1px solid var(--rule); }
thead th { background: transparent; color: var(--muted); font-weight: 600; font-size: .85rem; border-bottom: 1px solid #cfc8b8; }
tbody th[scope=row] { font-weight: 500; }
tbody tr:hover { background: rgba(245, 240, 230, .55); }

/* home */
.panel { border: none; background: var(--wash); border-radius: 18px; padding: .3rem clamp(1.2rem, 3vw, 2.2rem) 1.6rem; }
input[type=search], select { border-color: #cbc4b5; border-radius: 10px; }
input[type=search]:focus, select:focus { border-color: var(--accent); }
.row button, #search-form button, #c-form button { border-radius: 10px; }
ul.paths { gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); margin-top: 1rem; }
ul.paths li { background: none; border: none; border-top: 1px solid var(--ink); border-radius: 0; padding: .9rem 0 .5rem; }
ul.paths li > a { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); text-decoration: none; margin: .5rem 0 .25rem; }
ul.paths li > a:hover { color: var(--accent); }
ul.paths li > span:last-child { color: var(--ink-2); font-size: .95rem; display: block; }
.depth { display: flex; gap: 4px; }
.depth i { width: 18px; height: 4px; border-radius: 2px; background: var(--rule); }
.depth i.on { background: var(--accent); }
.note { background: var(--wash); border-left-width: 2px; }

footer.site { border-top-color: var(--rule); margin-top: 5rem; }
@media (max-width: 640px) {
  ul.plain li, .glance li { font-size: 1.12rem; }
  dl.facts { gap: .4rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { details > summary::before { transition: none; } }

dl.glossary dt { font-weight: 700; margin-top: 1rem; scroll-margin-top: 1rem; }
dl.glossary dd { margin: .2rem 0 0; max-width: var(--measure); color: var(--ink-2); }
dl.glossary dt:target { color: var(--accent); }
/* ---------- charts: thin marks, quiet ink, the district in the brand red ---------- */
figure.chart { margin: 1rem 0 1.4rem; max-width: 46rem; }
figure.chart figcaption { font-size: .88rem; color: var(--muted); margin-bottom: .5rem; }
svg.range { width: 100%; height: auto; display: block; overflow: visible; font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; }
svg.range .lab { font-size: 13px; fill: var(--ink-2); }
svg.range .grp { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 16px; fill: var(--ink); }
svg.range .val { font-size: 13px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
svg.range .na { font-size: 12px; fill: var(--muted); }
svg.range .track { stroke: var(--rule); stroke-width: 1; }
svg.range .band { fill: #e2d9c6; }
svg.range .smed { stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
svg.range .nat { fill: var(--paper); stroke: var(--muted); stroke-width: 1.6; }
svg.range .dot { fill: var(--accent); stroke: var(--paper); stroke-width: 2; }
ul.chart-key { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; padding: 0; margin: 0 0 .4rem; font-size: .84rem; color: var(--ink-2); }
ul.chart-key li { display: flex; align-items: center; gap: .4rem; }
.k-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.k-band { width: 22px; height: 9px; border-radius: 5px; background: #e2d9c6; }
.k-med { width: 2px; height: 14px; border-radius: 1px; background: var(--ink-2); }
.k-nat { width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid var(--muted); background: var(--paper); }
.pbar { display: flex; gap: 2px; height: 30px; margin: .2rem 0 .8rem; }
.pbar span { min-width: 3px; }
.pbar span:first-child { border-radius: 4px 0 0 4px; }
.pbar span:last-child { border-radius: 0 4px 4px 0; }
ul.pkey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: .35rem 1.5rem; }
ul.pkey li { display: grid; grid-template-columns: 12px 1fr auto; gap: .55rem; align-items: baseline; font-size: .9rem; color: var(--ink-2); border-bottom: 1px solid var(--rule); padding: .3rem 0; }
ul.pkey .sw { width: 12px; height: 12px; border-radius: 3px; align-self: center; }
ul.pkey .pv { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
ul.pkey .pv small { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: .25rem; }
ul.hbars { list-style: none; padding: 0; margin: 0; max-width: 40rem; }
ul.hbars li { display: grid; grid-template-columns: 14rem 1fr 3rem; gap: .8rem; align-items: center; font-size: .9rem; padding: .22rem 0; }
ul.hbars .hl { color: var(--ink-2); }
ul.hbars .ht { height: 10px; }
ul.hbars .ht span { display: block; height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; min-width: 2px; }
ul.hbars .hv { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { ul.hbars li { grid-template-columns: 9rem 1fr 2.6rem; } }
@media (forced-colors: active) { .pbar span, ul.pkey .sw, ul.hbars .ht span, .k-dot, .k-band { forced-color-adjust: none; } }

svg.trend .tline { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
svg.trend .tgap { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .6; }
svg.trend .tcomp { fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-dasharray: 1 0; opacity: .75; }
.k-line.k-comp { background: var(--muted); }
svg.trend .tdot { fill: var(--accent); stroke: var(--paper); stroke-width: 1.5; }
h3.ot-h { font-size: 1.05rem; font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-weight: 600; color: var(--ink-2); margin: 1.4rem 0 .2rem; }
/* ---------- history timeline ---------- */
.tl { margin: 1rem 0 1.6rem; max-width: 56rem; }
.tl-svg { width: 100%; height: auto; display: block; overflow: visible; font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; }
.tl-axis { stroke: var(--ink); stroke-width: 1.5; }
.tl-tick { stroke: var(--muted); stroke-width: 1; }
.tl-dec { font-size: 13px; fill: var(--muted); }
.tl-data { fill: var(--muted); opacity: .55; }
.tl-ms { fill: var(--paper); stroke: var(--accent); stroke-width: 2.5; cursor: pointer; }
.tl-ms.on { fill: var(--accent); }
.tl-msy { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 15px; fill: var(--ink-2); }
.tl-now line { stroke: var(--accent); stroke-width: 2; }
.tl-now circle { fill: none; stroke: var(--accent); stroke-width: 2; }
.tl-now { transition: transform .25s ease; }
.tl-controls { display: grid; gap: .5rem; margin: .6rem 0 .8rem; }
.tl-controls label { font-weight: 600; }
.tl-controls output { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 1.2rem; color: var(--accent); margin-left: .3rem; font-variant-numeric: lining-nums; }
#tl-range { width: 100%; accent-color: var(--accent); min-height: 2.2rem; }
.tl-ms-label { font-size: .88rem; color: var(--muted); margin-top: .2rem; }
ul.tl-btns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tl-btn { background: transparent; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; min-height: 2.3rem; padding: .3rem .9rem; font-weight: 600; font-variant-numeric: lining-nums; }
.tl-btn:hover { background: var(--wash); color: var(--ink); }
.tl-btn[aria-current=true] { background: var(--accent); color: #fff; border-color: var(--accent); }
.tl-panel { background: var(--wash); border-radius: 14px; padding: .4rem clamp(1.1rem, 3vw, 1.8rem) .8rem; min-height: 9rem; }
.tl-panel .tl-y { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 2.2rem; margin: .4rem 0 0; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.tl-panel .tl-m { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 1.2rem; line-height: 1.5; margin: .5rem 0; max-width: var(--measure); }
.tl-panel .tl-sub { font-size: .9rem; color: var(--muted); margin: .6rem 0 .1rem; }
.tl-panel ul.plain li { font-size: 1.08rem; }
ol.timeline.tl-static { display: none; }
@media (prefers-reduced-motion: reduce) { .tl-now { transition: none; } }
/* ---------- history ---------- */
figure.chart.wide { max-width: 52rem; }
svg.hchart { width: 100%; height: auto; display: block; overflow: visible; font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; }
svg.hchart .ax { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
svg.hchart .mk { font-size: 11px; fill: var(--muted); }
svg.hchart .el { font-size: 12.5px; }
svg.hchart .el .ev { font-weight: 700; font-variant-numeric: tabular-nums; }
.k-line { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
ol.timeline { list-style: none; padding: 0; margin: 1rem 0; max-width: 46rem; border-left: 2px solid var(--rule); }
ol.timeline li { position: relative; padding: 0 0 1.1rem 1.4rem; display: grid; grid-template-columns: 4.2rem 1fr; gap: .6rem; }
ol.timeline li::before { content: ""; position: absolute; left: -6px; top: .55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); }
.tl-y { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1.2; font-variant-numeric: lining-nums; }
.tl-t { color: var(--ink-2); }
.plain-one { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; max-width: var(--measure); }
.more-path { color: var(--ink-2); margin-top: 1.2rem; }
template { display: none; }

/* ---------- interactive layer ---------- */
.explore { margin: .4rem 0 0; padding: .35rem .6rem; border-radius: 8px; font-size: .84rem; color: var(--muted); border: 1px dashed transparent; display: inline-block; cursor: default; }
.explore:focus-visible { border-color: var(--focus); outline-offset: 2px; color: var(--ink-2); }
svg .xh-line { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
svg .xh-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
svg .xh-box { fill: #fff; stroke: var(--rule); filter: drop-shadow(0 1px 2px rgba(0,0,0,.08)); }
svg .xh-text { font-size: 12.5px; fill: var(--ink); font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
svg .xh-text .xh-head { font-weight: 700; }
ul.chart-key.toggles { gap: .3rem .5rem; }
.k-btn { background: transparent; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; min-height: 2.1rem; padding: .2rem .75rem; font-weight: 500; font-size: .84rem; display: inline-flex; gap: .45rem; align-items: center; }
.k-btn:hover { background: var(--wash); color: var(--ink); }
.k-btn[aria-pressed=false] { opacity: .5; text-decoration: line-through; }
.h100-btn { all: unset; cursor: pointer; font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-size: .82rem; color: var(--accent); border-bottom: 1px dotted currentColor; margin-left: .2rem; white-space: nowrap; }
.h100-btn:hover { background: none; color: var(--accent-ink); border-bottom-style: solid; }
.h100-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.h100 { display: grid; grid-template-columns: repeat(10, 14px); gap: 3px; margin: .6rem 0 .3rem; }
.h100[hidden] { display: none; }
.h100 span { width: 14px; height: 14px; border-radius: 50%; background: var(--rule); }
.h100 span.on { background: var(--accent); }
fieldset.askfs { border: 1px solid var(--rule); border-radius: 12px; background: #fff; padding: .6rem 1.2rem 1rem; max-width: 46rem; }
fieldset.askfs legend { font-weight: 600; padding: 0 .3rem; }
.ask-row { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; align-items: start; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
.ask-row input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--accent); }
.ask-row label { font-weight: 400; }
.ask-own-l { display: block; margin: .8rem 0 .3rem; }
#ask-own { width: 100%; font: inherit; border: 1px solid #cbc4b5; border-radius: 10px; padding: .5rem .7rem; }
.ask-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.like .like-out h3 { margin-top: 1rem; }
ul.like-list { padding-left: 1.2rem; } ul.like-list li { margin: .35rem 0; }
#my-q { display: none; }

/* ---------- print: clean, readable, every detail open ---------- */
@page { margin: 16mm 14mm 18mm; }
@media print {
  html { font-size: 10.5pt; }
  body { background: #fff; color: #000; line-height: 1.45; }
  .wrap { max-width: none; padding: 0; }
  header.site, .skip, .crumbs, .page-tools, .controls, #map, #legend, #map-status, #search-form, #results,
  #c-form, #c-results, .hint button, button, fieldset.cols, footer.site p:first-child a[href$="download/"] { display: none !important; }
  .print-only { display: block !important; }
  .glance { background: none; } ul.plain li, .glance li { font-size: 11pt; margin-bottom: 4pt; }
  dl.facts { gap: 2pt 14pt; } details.numbers > summary::before, details.full > summary::before { display: none; }
  .depth { display: none; }
  .explore, .h100-btn, .k-btn, .like button, .ask-tools { display: none !important; }
  body.print-q > *:not(#my-q) { display: none !important; }
  body.print-q #my-q { display: block !important; font-size: 12pt; }
  #my-q h1 { font-size: 20pt; } #my-q li { margin: 0 0 8pt; } #my-q .ans { border-bottom: .5pt solid #999; height: 40pt; }
  #my-q .src { font-size: 8pt; color: #555; }
  .tl { display: none !important; } ol.timeline.tl-static { display: block !important; } .tl-intro { display: none !important; }
  figure.chart { break-inside: avoid; max-width: 100%; }
  details.numbers figure.chart { display: none !important; } #c-chart { break-after: page; }
  .pbar span, ul.pkey .sw, ul.hbars .ht span, .k-dot, .k-band, svg.range { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-head { font-size: 8.5pt; color: #444; border-bottom: 1px solid #999; padding-bottom: 4pt; margin: 0 0 10pt; }
  h1 { font-size: 22pt; margin: 0 0 4pt; }
  h2 { font-size: 14pt; margin: 14pt 0 4pt; break-after: avoid; page-break-after: avoid; }
  h3 { break-after: avoid; }
  .meta, .lede { color: #222; }
  a { color: #000; text-decoration: none; }
  .source a, .note a { text-decoration: underline; }
  section { break-inside: auto; }
  .glance { break-inside: avoid; border: 1px solid #999; padding: 4pt 10pt; }
  .note { border-left: 2pt solid #000; background: none; }
  .table-wrap { overflow: visible; }
  table { font-size: 9.5pt; background: none; }
  caption { color: #000; }
  th, td { border-bottom: .5pt solid #999; padding: 3pt 5pt; }
  thead { display: table-header-group; }
  thead th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tr { break-inside: avoid; page-break-inside: avoid; }
  details.full, details.numbers { border: none; padding: 0; break-inside: auto; }
  details.numbers > summary { display: none; }
  details.explain:not([open]), .howto, ul.paths, #paths-h { display: none !important; }
  details.explain[open] { background: none; border-left: 2pt solid #000; border-radius: 0; }
  details.explain > summary::before { display: none; }
  details.explain > summary { color: #000; text-decoration: none; font-weight: 600; }
  details.full > summary { list-style: none; font-size: 11pt; border-bottom: none; padding: 6pt 0 0; }
  details.full > summary::-webkit-details-marker { display: none; }
  details.kids ul { columns: 3; font-size: 9pt; }
  #c-chosen-h, #c-chosen, #c-status { display: none !important; }
  #t-table th button { all: unset; }
  #t-wrap[hidden], #c-wrap[hidden] { display: none !important; }
  footer.site { border-top: 1px solid #999; margin-top: 12pt; padding-top: 6pt; color: #333; font-size: 8.5pt; }
}

/* ---------------------------------------------------------------- report assistant */
.rpt-intro .lede { max-width: 46rem; }
ul.rpt-kinds { padding-left: 1.1rem; max-width: 46rem; } ul.rpt-kinds li { margin: .3rem 0; }
.rpt-app { max-width: 46rem; margin: 1.5rem 0 3rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 10px; padding: 1.5rem 1.75rem 1.75rem; }
ol.rpt-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0 0 1.4rem; padding: 0 0 1rem; border-bottom: 1px solid var(--rule); font-size: .9rem; color: var(--muted); }
ol.rpt-steps li { display: flex; align-items: center; gap: .45rem; }
ol.rpt-steps .n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid #b9b4a8; font-weight: 600; font-size: .8rem; }
ol.rpt-steps li.done .n { background: #f1ece2; border-color: #b9b4a8; color: var(--ink-2); }
ol.rpt-steps li.on { color: var(--ink); font-weight: 600; } ol.rpt-steps li.on .n { background: var(--accent); border-color: var(--accent); color: #fff; }
fieldset.rpt-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.rpt-fs > legend { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 1.5rem; font-weight: 500; line-height: 1.25; padding: 0; margin-bottom: .35rem; }
fieldset.rpt-fs > legend:focus { outline: none; } fieldset.rpt-fs > legend:focus-visible { outline: 3px solid var(--focus); }
.rpt-k { display: block; font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-size: .85rem; color: var(--muted); font-weight: 500; margin-bottom: .2rem; }
.rpt-cards { display: grid; gap: .75rem; margin-top: 1rem; }
label.rpt-card { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; padding: .95rem 1.1rem; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; background: var(--paper); }
label.rpt-card input { grid-row: 1 / 3; margin-top: .35rem; width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
label.rpt-card .t { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 1.2rem; }
label.rpt-card .d { color: var(--ink-2); font-size: .95rem; }
label.rpt-card:has(input:checked) { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); background: #fff; }
label.rpt-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.rpt-checks { display: grid; gap: .45rem; margin: .9rem 0; } .rpt-checks.rpt-row { display: flex; gap: 1.5rem; }
label.rpt-check { display: flex; gap: .65rem; align-items: flex-start; } label.rpt-check input { margin-top: .4rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: none; }
.rpt-app .row { display: flex; gap: .5rem; flex-wrap: wrap; margin: .3rem 0 .6rem; } .rpt-app input[type=search] { flex: 1 1 16rem; font: inherit; padding: .5rem .7rem; border: 1px solid #8f8a80; border-radius: var(--radius); min-height: 2.75rem; }
.rpt-app textarea { width: 100%; font: inherit; padding: .5rem .7rem; border: 1px solid #8f8a80; border-radius: var(--radius); }
.rpt-app label[for] { display: block; font-weight: 600; margin-top: .6rem; }
.rpt-chosen { background: #f6f2e8; border-radius: var(--radius); padding: .5rem .8rem; }
fieldset.rpt-sub { border: 0; padding: 0; margin: 1.2rem 0 0; } fieldset.rpt-sub legend { font-weight: 600; }
dl.rpt-review { margin: 1rem 0 0; display: grid; gap: .5rem; } dl.rpt-review div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; }
dl.rpt-review dt { color: var(--muted); } dl.rpt-review dd { margin: 0; }
.rpt-msg { color: var(--accent-ink); font-weight: 600; min-height: 1.2em; margin: .8rem 0 0; }
.rpt-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; } .rpt-nav #rpt-next { margin-left: auto; }
.rpt-cta { background: #f6f2e8; border-radius: 10px; padding: .4rem 1.4rem 1rem; margin: 2rem 0; } .rpt-cta h2 { margin-top: .8em; }
.rpt-wait { font-size: 1.1rem; padding: 3rem 0; }

/* the report itself, on screen as a stack of pages */
.rpt-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; background: var(--paper); padding: .8rem 0; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.rpt-bar .hint { flex: 1 1 20rem; margin: 0; font-size: .88rem; color: var(--muted); }
article.rpt { max-width: 8.5in; margin: 0 auto 3rem; background: #fff; box-shadow: 0 1px 3px rgba(40,30,20,.12), 0 8px 30px rgba(40,30,20,.06); padding: .75in .8in; font-size: 1rem; }
.rpt-cover { min-height: 9.2in; display: flex; flex-direction: column; border-left: 6px solid var(--accent); padding-left: .45in; margin-bottom: .6in; }
.rpt-brand { display: flex; flex-direction: column; gap: .1rem; padding-top: .15in; }
.rpt-logo { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--accent); letter-spacing: .01em; }
.rpt-by { font-size: 1rem; color: var(--ink-2); }
.rpt-kind { margin: 2.4in 0 .2rem; font-size: 1.1rem; color: var(--ink-2); }
h1.rpt-title { font-size: 2.7rem; line-height: 1.1; margin: 0 0 .35in; font-weight: 500; }
h1.rpt-title:focus { outline: none; }
dl.rpt-facts { max-width: 5.5in; }
.rpt-cover-foot { margin-top: auto; font-size: .82rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: .15in; } .rpt-cover-foot p { margin: .15rem 0; overflow-wrap: anywhere; }
nav.rpt-toc { margin-bottom: .5in; } nav.rpt-toc h2 { margin-top: 0; font-size: 1.6rem; }
nav.rpt-toc ol { padding-left: 1.4rem; columns: 2; column-gap: 2rem; } nav.rpt-toc li { margin: .2rem 0; break-inside: avoid; }
nav.rpt-toc a { color: var(--ink); }
.rpt-about { background: #f6f2e8; border-radius: 8px; padding: .8rem 1.1rem; font-size: .95rem; }
section.rpt-sec { margin-top: .45in; }
section.rpt-sec > h2 { display: flex; align-items: baseline; gap: .7rem; font-size: 1.7rem; border-bottom: 2px solid var(--accent); padding-bottom: .3rem; margin: 0 0 .9rem; }
.rpt-num { font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-size: .9rem; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; padding: .1rem .5rem; position: relative; top: -.2rem; }
section.rpt-sec h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; color: var(--ink); }
figure.rpt-fig { margin: 1rem 0; border: 1px solid var(--rule); border-radius: 8px; padding: .8rem 1rem; } figure.rpt-fig.wide svg { width: 100%; height: auto; }
.rpt-100s { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 1.2rem; margin-top: 1rem; }
.rpt-100 .h100 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; max-width: 12rem; }
.rpt-100 .h100 span { aspect-ratio: 1; border-radius: 50%; background: #dcd9d0; } .rpt-100 .h100 span.on { background: #1c5cab; }
.rpt-100 p { font-size: .92rem; margin: .5rem 0 0; }
.rpt-terms { background: #f8f6f0; border-left: 4px solid #86b6ef; border-radius: 0 8px 8px 0; padding: .3rem 1.1rem .7rem; margin: 1rem 0; }
.rpt-terms h3 { margin-top: .6em !important; } .rpt-terms dt { font-weight: 700; margin-top: .5rem; } .rpt-terms dd { margin: 0; font-size: .95rem; }
table.rpt-t { width: 100%; margin: 1rem 0; font-size: .9rem; } table.rpt-t caption { text-align: left; font-weight: 600; padding-bottom: .3rem; }
ol.rpt-asks { padding-left: 1.4rem; } ol.rpt-asks li { margin-bottom: 1rem; break-inside: avoid; }
.rpt-lines { margin-top: .2rem; } .rpt-lines span { display: block; height: 1.7em; border-bottom: 1px solid #b9b4a8; }
.rpt-note { font-size: .9rem; color: var(--ink-2); }
footer.rpt-end { margin-top: .5in; border-top: 1px solid var(--rule); padding-top: .15in; font-size: .82rem; color: var(--ink-2); }

@page { size: letter; margin: .7in .75in .8in; @bottom-left { content: "IDEA Atlas · A project by Dr. Suman Rath"; font: 8pt Manrope, "Manrope Fallback", sans-serif; color: #666; } @bottom-right { content: counter(page); font: 8pt Manrope, "Manrope Fallback", sans-serif; color: #666; } }
@page :first { @bottom-left { content: none; } @bottom-right { content: none; } }
@media print {
  body.rpt-on header.site, body.rpt-on footer.site, body.rpt-on .crumbs, body.rpt-on .rpt-bar, body.rpt-on .rpt-intro, body.rpt-on .page-tools, body.rpt-on .print-head, body.rpt-on .print-only { display: none !important; }
  body.rpt-on main, body.rpt-on .wrap { margin: 0; padding: 0; }
  article.rpt { box-shadow: none; padding: 0; max-width: none; margin: 0; font-size: 10.5pt; }
  .rpt-cover { min-height: 9.1in; break-after: page; margin: 0; }
  h1.rpt-title { font-size: 30pt; }
  nav.rpt-toc { break-after: page; } nav.rpt-toc a { text-decoration: none; }
  section.rpt-sec { break-before: page; margin-top: 0; }
  section.rpt-sec > h2 { font-size: 17pt; margin: 0 0 8pt; }
  figure.rpt-fig, table.rpt-t, .rpt-terms, .rpt-100 { break-inside: avoid; }
  .rpt-num, .rpt-100 .h100 span, .rpt-about, .rpt-terms, .rpt-cover, section.rpt-sec > h2, ul.chart-key span, svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rpt-lines { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
table.rpt-t th, table.rpt-t td { white-space: normal; overflow-wrap: anywhere; }
table.rpt-t.compare { table-layout: fixed; font-size: .82rem; } table.rpt-t.compare th:first-child { width: 22%; }
@media print { table.rpt-t { font-size: 8.5pt; } table.rpt-t.compare { font-size: 8pt; } }
table.rpt-t thead th { white-space: normal !important; overflow: visible; text-overflow: clip; vertical-align: bottom; line-height: 1.25; }
.rpt-mine { background: #eef4fc; border-left: 4px solid #1c5cab; border-radius: 0 8px 8px 0; padding: .3rem 1.1rem .5rem; margin: 1.2rem 0; } .rpt-mine h3 { margin-top: .5em !important; }
dl.rpt-rights dt { font-weight: 700; margin-top: .7rem; } dl.rpt-rights dd { margin: .1rem 0 0; }
.rpt-notes h3 { font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-size: .95rem !important; font-weight: 700; margin: 1rem 0 0 !important; }
.rpt-app select { font: inherit; padding: .45rem .6rem; border: 1px solid #8f8a80; border-radius: var(--radius); min-height: 2.75rem; max-width: 100%; background: #fff; }
.rpt-said { flex-basis: 100%; margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
@media print { section.rpt-sec.short { break-before: auto; margin-top: 18pt; } .rpt-mine { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
table.rpt-t td.yr { white-space: nowrap; }
table.rpt-t.years td, table.rpt-t.years thead th { text-align: right; } table.rpt-t tr.all th, table.rpt-t tr.all td { font-weight: 700; border-top: 1px solid #b9b4a8; }
.rpt-invite { max-width: 8.5in; margin: 0 auto 3rem; background: #f6f2e8; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: .4rem 1.4rem 1rem; }
.rpt-invite h2 { font-size: 1.3rem; margin: .8em 0 .3em; }
@media print { .rpt-invite { display: none !important; } }

/* ---------- reading aids: "On this page" (wide screens) and the phone menu ---------- */
nav.onpage { display: none; }
@media (min-width: 1200px) {
  html.has-onpage main.wrap, html.op-pre main.wrap { position: relative; padding-right: calc(clamp(1.25rem, 4vw, 2.5rem) + 15rem); }
  html.has-onpage nav.onpage { display: block; position: absolute; top: 0; bottom: 0; right: clamp(1.25rem, 4vw, 2.5rem); width: 13rem; }
  nav.onpage .onpage-in { position: sticky; top: 1.5rem; padding-top: 9.5rem; }
  nav.onpage .onpage-h { font-size: .8rem; color: var(--muted); margin: 0 0 .5rem; letter-spacing: .01em; }
  nav.onpage ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
  nav.onpage li { margin: 0; }
  nav.onpage a { display: block; padding: .32rem 0 .32rem .9rem; margin-left: -1px; border-left: 2px solid transparent;
    color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.35; }
  nav.onpage a:hover { color: var(--ink); border-left-color: var(--rule); }
  nav.onpage a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
}
section[id], h2[id] { scroll-margin-top: 1.25rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.menu-btn { display: none; }
@media (max-width: 640px) {
  header.site .wrap { position: relative; padding-top: 1rem; padding-bottom: 1rem; }
  header.site .wrap:has(nav.can-fold) .brand { padding-right: 6.5rem; }
  header.site nav.can-fold { flex-basis: 100%; margin-top: -.75rem; }
  nav.can-fold .menu-btn { display: inline-flex; align-items: center; gap: .45rem; position: absolute; top: 1rem; right: clamp(1.25rem, 4vw, 2.5rem);
    background: transparent; color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; font-weight: 600; font-size: .95rem;
    min-height: 2.75rem; padding: .3rem 1rem; }
  nav.can-fold .menu-btn::after { content: ""; width: .45rem; height: .45rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: translateY(-2px) rotate(45deg); }
  nav.can-fold.open .menu-btn::after { transform: translateY(2px) rotate(-135deg); }
  nav.can-fold .menu-btn:hover { background: var(--wash); }
  nav.can-fold ul { display: none; flex-direction: column; gap: 0; border-top: 1px solid var(--rule); margin-top: 1rem; }
  nav.can-fold.open ul { display: flex; }
  nav.can-fold ul a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: 1.02rem; }
  .crumbs ol { margin-top: 1.1rem; }
}

/* phones: the menu is folded from the start when scripts run, so the page does not jump when the Menu button appears.
   If the script never arrives, the links come back after a few seconds. */
@media (max-width: 640px) and (scripting: enabled) {
  header.site .wrap .brand { padding-right: 6.5rem; }
  header.site nav:not(.can-fold) { flex-basis: 100%; margin-top: -.75rem; }
  header.site nav:not(.can-fold) ul { display: none; animation: nav-back 0s 8s forwards; }
  @keyframes nav-back { to { display: flex; } }
}

/* legend keys: swatch sits on the first line of its label */
ul.pkey li { align-items: start; }
ul.pkey .sw { align-self: start; margin-top: .42em; }

@media print { nav.onpage, .menu-btn, .terms-fallback { display: none !important; } html.has-onpage main.wrap { padding-right: 0; } }

/* ---------- state pages and the states hub ---------- */
ul.state-grid { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr)); gap: 0 2rem; }
ul.state-grid li { max-width: none; border-top: 1px solid var(--rule); padding: .7rem 0 .8rem; display: flex; flex-direction: column; gap: .1rem; }
ul.state-grid li > a { font-family: var(--serif); font-size: 1.22rem; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 1.25; }
ul.state-grid li > a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
ul.state-grid .sub { font-size: .86rem; font-variant-numeric: lining-nums tabular-nums; }
ul.notes { padding-left: 1.1rem; font-size: .9rem; color: var(--ink-2); }
ul.notes li { margin: .3rem 0; }
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: 1rem 0 .4rem; }
.filter label { flex-basis: 100%; }
.filter input { max-width: 22rem; }
.filter output { font-size: .9rem; color: var(--muted); }
table.districts td { text-align: right; white-space: nowrap; }
table.districts td:nth-child(2) { text-align: left; white-space: normal; color: var(--ink-2); }
table.districts thead th:nth-child(n+3) { text-align: right; }
table.districts tbody th a { font-weight: 500; }
ul.guide-list { list-style: none; padding: 0; }
ul.guide-list li { padding: .4rem 0; border-bottom: 1px solid var(--rule); }
.rpt-cta { margin-top: 3rem; }
section[aria-labelledby="s-cmp"] tbody th[scope=row] { min-width: 11.5rem; }

/* ---------- guides ---------- */
article.guide > section > p, article.guide > section > ul, article.guide > section > ol { max-width: var(--measure); }
article.guide > section > p { color: var(--ink); }
article.guide .byline { font-size: .9rem; color: var(--muted); margin: 0 0 2.2rem; }
article.guide h2 { margin-top: 2.6em; }
article.guide li { margin: .35rem 0; }
article.guide blockquote { margin: 1rem 0; padding: .6rem 1.1rem; border-left: 2px solid var(--accent); background: var(--wash); font-family: var(--serif); font-size: 1.12rem; max-width: var(--measure); }
article.guide blockquote p { margin: .2rem 0; }
article.guide table { max-width: 46rem; }
article.guide td { font-variant-numeric: tabular-nums; }
section.beyond { margin-top: 3rem; padding: .3rem clamp(1.2rem, 3vw, 2rem) 1rem; background: var(--wash); border-radius: 14px; max-width: 52rem; }
section.beyond h2 { margin-top: .9em; }
section.beyond > p { color: var(--ink-2) !important; }
section.beyond ul { list-style: none; padding: 0; }
section.beyond li { font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; padding: .45rem 0 .45rem 1.4rem; position: relative; }
section.beyond li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .55rem; height: .55rem; border-radius: 50%; border: 1.6px solid var(--accent); }
section.g-sources { font-size: .9rem; color: var(--ink-2); }
section.g-sources li { overflow-wrap: anywhere; }
aside.author { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: .4rem; max-width: var(--measure); }
aside.author h2 { font-size: 1.1rem; font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-weight: 600; margin: 1rem 0 .3rem; }
aside.author p { font-size: .95rem; color: var(--ink-2); }
nav.related { margin-top: 2rem; }
nav.related h2 { font-size: 1.1rem; font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-weight: 600; }
nav.related ul, ul.guide-cards { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 0 2rem; }
nav.related li, ul.guide-cards li { max-width: none; border-top: 1px solid var(--rule); padding: .75rem 0 .9rem; display: flex; flex-direction: column; gap: .2rem; }
nav.related li > a, ul.guide-cards li > a { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 1.3; }
nav.related li > a:hover, ul.guide-cards li > a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
ul.guide-cards .sub, nav.related .sub { font-size: .88rem; line-height: 1.5; }
p.guide-link { font-size: .92rem; margin: .2rem 0 .8rem; color: var(--ink-2); }
@media print { section.beyond { background: none; border: 1px solid #999; } nav.related { display: none; } }

/* Share your story (guides and report pages) */
aside.story { margin: 2.2rem 0 0; padding: .9rem 1.1rem; background: var(--wash, #f6f2e8); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure); }
aside.story h2 { font-size: 1.1rem; font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-weight: 600; margin: 0 0 .3rem; }
aside.story p { margin: .3rem 0; }
aside.story p:last-child a { font-weight: 600; }
footer.site .cite-line { font-size: .88rem; }
@media print { aside.story { display: none !important; } }
details.embed { margin: 1rem 0; max-width: var(--measure); }
details.embed summary { cursor: pointer; font-weight: 600; }
details.embed textarea { display: block; width: 100%; margin-top: .3rem; font: .85rem/1.4 ui-monospace, Menlo, Consolas, monospace; padding: .5rem; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
@media print { details.embed { display: none !important; } }

/* space for text filled in from the shared file, so nothing jumps */
[data-shared="ask"] { min-height: 16rem; }

/* ---------- footer: three short columns ---------- */
footer.site .foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: 1.2rem 2rem; margin: .6rem 0 1.4rem; }
footer.site .foot-h { font-family: Manrope, "Manrope Fallback", system-ui, sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); margin: 0 0 .45rem; }
footer.site .foot-nav ul { list-style: none; margin: 0; padding: 0; }
footer.site .foot-nav li { margin: .2rem 0; }
footer.site .foot-nav a { color: var(--ink-2); text-decoration: none; }
footer.site .foot-nav a:hover { color: var(--accent); text-decoration: underline; }
footer.site .foot-by, footer.site .cite-line, footer.site .foot-note { margin: .3rem 0; }
footer.site .foot-by { padding-top: 1rem; border-top: 1px solid var(--rule); }
@media print { footer.site .foot-nav { display: none !important; } }

/* ---------- numbers line up in tables and figure lists ---------- */
table td, table th, dl.facts dd, .compare td, ul.hbars, ul.pkey, .rpt-t td { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- phones and tablets: "Jump to a section" ---------- */
.onpage-fold { display: none; }
@media (max-width: 1199px) {
  html.has-onpage nav.onpage { display: block; margin: .4rem 0 1.4rem; }
  nav.onpage .onpage-in { display: none; }
  nav.onpage .onpage-fold { display: block; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); max-width: 30rem; }
  nav.onpage .onpage-fold > summary { cursor: pointer; padding: .65rem 1rem; font-weight: 600; color: var(--ink-2); min-height: 2.75rem; list-style: none; display: flex; align-items: center; justify-content: space-between; }
  nav.onpage .onpage-fold > summary::-webkit-details-marker { display: none; }
  nav.onpage .onpage-fold > summary::after { content: ""; width: .45rem; height: .45rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  nav.onpage .onpage-fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
  nav.onpage .onpage-fold ul { list-style: none; margin: 0; padding: 0 0 .4rem; border-top: 1px solid var(--rule); }
  nav.onpage .onpage-fold a { display: block; padding: .6rem 1rem; color: var(--ink); text-decoration: none; }
  nav.onpage .onpage-fold a:hover { background: var(--wash); }
}
@media (min-width: 1200px) { nav.onpage .onpage-fold { display: none; } }

/* ---------- dark mode: follows the visitor's device setting ---------- */
@media screen and (prefers-color-scheme: dark) {html:not(.lt){--ink: #ece6d8; --ink-2: #cfc9bc; --muted: #b4aea2; --paper: #12151c; --panel: #1a1e28;
    --rule: #343a48; --accent: #b7c5f2; --accent-ink: #d2dcfa; --focus: #8ab8ff; --gold: #e2b45a; --gold-ink: #e8bf6c;
    --nodata: #3a3f4c; --wash: #1f2430; color-scheme: dark;}:where(html:not(.lt)) .skip{color: var(--paper);}:where(html:not(.lt)) .note,:where(html:not(.lt)) details.explain[open],:where(html:not(.lt)) .rpt-chosen,:where(html:not(.lt)) .rpt-cta,:where(html:not(.lt)) .rpt-about,:where(html:not(.lt)) .button.secondary:hover{background: var(--wash);}:where(html:not(.lt)) input[type=search],:where(html:not(.lt)) select,:where(html:not(.lt)) #ask-own,:where(html:not(.lt)) .rpt-app input[type=search],:where(html:not(.lt)) .rpt-app textarea{background: var(--panel); color: var(--ink); border-color: #5c6066;}:where(html:not(.lt)) button,:where(html:not(.lt)) .button,:where(html:not(.lt)) button:hover,:where(html:not(.lt)) .button:hover,:where(html:not(.lt)) .tl-btn[aria-current=true],:where(html:not(.lt)) ol.rpt-steps li.on .n,:where(html:not(.lt)) .rpt-num{color: #12151c;}:where(html:not(.lt)) button:disabled{background: #4a4d52; color: #9a968e;}:where(html:not(.lt)) .page-tools button,:where(html:not(.lt)) .page-tools .button,:where(html:not(.lt)) .tl-btn,:where(html:not(.lt)) .k-btn,:where(html:not(.lt)) .h100-btn{color: var(--ink-2);}:where(html:not(.lt)) .button.secondary,:where(html:not(.lt)) button.secondary{background: transparent; color: var(--accent);}:where(html:not(.lt)) #map{background: #1d2024;}:where(html:not(.lt)) .swatch{border-color: rgba(255,255,255,.18);}:where(html:not(.lt)) .swatch.nodata{background: repeating-linear-gradient(45deg, var(--nodata) 0 3px, #55585e 3px 5px);}:where(html:not(.lt)) thead th,:where(html:not(.lt)) table.compare tr.group th{background: transparent;}:where(html:not(.lt)) thead th{border-bottom-color: #4a4d52;}:where(html:not(.lt)) tbody tr:hover{background: rgba(255,255,255,.04);}:where(html:not(.lt)) details.full,:where(html:not(.lt)) details.numbers,:where(html:not(.lt)) fieldset.cols,:where(html:not(.lt)) fieldset.askfs,:where(html:not(.lt)) ul.paths li,:where(html:not(.lt)) label.rpt-card:has(input:checked){background: transparent;}:where(html:not(.lt)) svg.range .band,:where(html:not(.lt)) .k-band{fill: #4a4436; background: #4a4436;}:where(html:not(.lt)) svg .xh-box{fill: var(--panel); filter: none;}:where(html:not(.lt)) ol.rpt-steps .n,:where(html:not(.lt)) ol.rpt-steps li.done .n{border-color: #5c6066; background: transparent;}:where(html:not(.lt)) .rpt-terms{background: var(--wash);}:where(html:not(.lt)) .rpt-lines span{border-bottom-color: #5c6066;}:where(html:not(.lt)) .page-tools button:hover,:where(html:not(.lt)) .page-tools .button:hover{border-color: #5c6066;}:where(html:not(.lt)) ul.paths li{border-top-color: var(--ink-2);}:where(html:not(.lt)) article.rpt{color-scheme: light; --ink: #1b2236; --ink-2: #3e4558; --muted: #565c6b; --paper: #faf6ee; --panel: #fffdf8;
    --rule: #e7dfcd; --accent: #26386b; --accent-ink: #1e2a4a; --wash: #f6efe1; --nodata: #dcd9d0; color: var(--ink); background: #fff;}:where(html:not(.lt)) article.rpt .rpt-num,:where(html:not(.lt)) article.rpt button{color: #fff;}}
@media screen {html.dk{--ink: #ece6d8; --ink-2: #cfc9bc; --muted: #b4aea2; --paper: #12151c; --panel: #1a1e28;
    --rule: #343a48; --accent: #b7c5f2; --accent-ink: #d2dcfa; --focus: #8ab8ff; --gold: #e2b45a; --gold-ink: #e8bf6c;
    --nodata: #3a3f4c; --wash: #1f2430; color-scheme: dark;}:where(html.dk) .skip{color: var(--paper);}:where(html.dk) .note,:where(html.dk) details.explain[open],:where(html.dk) .rpt-chosen,:where(html.dk) .rpt-cta,:where(html.dk) .rpt-about,:where(html.dk) .button.secondary:hover{background: var(--wash);}:where(html.dk) input[type=search],:where(html.dk) select,:where(html.dk) #ask-own,:where(html.dk) .rpt-app input[type=search],:where(html.dk) .rpt-app textarea{background: var(--panel); color: var(--ink); border-color: #5c6066;}:where(html.dk) button,:where(html.dk) .button,:where(html.dk) button:hover,:where(html.dk) .button:hover,:where(html.dk) .tl-btn[aria-current=true],:where(html.dk) ol.rpt-steps li.on .n,:where(html.dk) .rpt-num{color: #12151c;}:where(html.dk) button:disabled{background: #4a4d52; color: #9a968e;}:where(html.dk) .page-tools button,:where(html.dk) .page-tools .button,:where(html.dk) .tl-btn,:where(html.dk) .k-btn,:where(html.dk) .h100-btn{color: var(--ink-2);}:where(html.dk) .button.secondary,:where(html.dk) button.secondary{background: transparent; color: var(--accent);}:where(html.dk) #map{background: #1d2024;}:where(html.dk) .swatch{border-color: rgba(255,255,255,.18);}:where(html.dk) .swatch.nodata{background: repeating-linear-gradient(45deg, var(--nodata) 0 3px, #55585e 3px 5px);}:where(html.dk) thead th,:where(html.dk) table.compare tr.group th{background: transparent;}:where(html.dk) thead th{border-bottom-color: #4a4d52;}:where(html.dk) tbody tr:hover{background: rgba(255,255,255,.04);}:where(html.dk) details.full,:where(html.dk) details.numbers,:where(html.dk) fieldset.cols,:where(html.dk) fieldset.askfs,:where(html.dk) ul.paths li,:where(html.dk) label.rpt-card:has(input:checked){background: transparent;}:where(html.dk) svg.range .band,:where(html.dk) .k-band{fill: #4a4436; background: #4a4436;}:where(html.dk) svg .xh-box{fill: var(--panel); filter: none;}:where(html.dk) ol.rpt-steps .n,:where(html.dk) ol.rpt-steps li.done .n{border-color: #5c6066; background: transparent;}:where(html.dk) .rpt-terms{background: var(--wash);}:where(html.dk) .rpt-lines span{border-bottom-color: #5c6066;}:where(html.dk) .page-tools button:hover,:where(html.dk) .page-tools .button:hover{border-color: #5c6066;}:where(html.dk) ul.paths li{border-top-color: var(--ink-2);}:where(html.dk) article.rpt{color-scheme: light; --ink: #1b2236; --ink-2: #3e4558; --muted: #565c6b; --paper: #faf6ee; --panel: #fffdf8;
    --rule: #e7dfcd; --accent: #26386b; --accent-ink: #1e2a4a; --wash: #f6efe1; --nodata: #dcd9d0; color: var(--ink); background: #fff;}:where(html.dk) article.rpt .rpt-num,:where(html.dk) article.rpt button{color: #fff;}}
footer.site .foot-by, footer.site .cite-line, footer.site .foot-note { max-width: none; }
footer.site .foot-by { border-top: 0; padding-top: 0; }
footer.site .foot-nav { padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule); }
details.embed > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem; color: var(--ink-2); font-weight: 600; min-height: 2.75rem; }
details.embed > summary::-webkit-details-marker { display: none; }
details.embed > summary::before { content: ""; width: .45rem; height: .45rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
details.embed[open] > summary::before { transform: rotate(45deg); }
/* history charts are drawn when the page is built, with fixed colours; adjust them for dark mode */
@media screen and (prefers-color-scheme: dark) {:where(html:not(.lt)) svg [stroke="#e6e1d6"]{stroke: var(--rule);}:where(html:not(.lt)) svg [stroke="#5b6168"]{stroke: var(--muted);}:where(html:not(.lt)) svg [stroke="#faf6ee"]{stroke: var(--paper);}:where(html:not(.lt)) svg [stroke="#26386b"]{stroke: var(--accent);}:where(html:not(.lt)) svg [fill="#26386b"]{fill: var(--accent);}:where(html:not(.lt)) svg [fill="#1b2236"]{fill: var(--ink);}:where(html:not(.lt)) svg [fill="#474d55"]{fill: var(--ink-2);}:where(html:not(.lt)) svg [stroke="#0d366b"]{stroke: #c8dcf7;}:where(html:not(.lt)) svg [fill="#0d366b"]{fill: #c8dcf7;}:where(html:not(.lt)) [style*="#26386b"]{background: var(--accent) !important;}:where(html:not(.lt)) [style*="#0d366b"]{background: #c8dcf7 !important;}}
@media screen {:where(html.dk) svg [stroke="#e6e1d6"]{stroke: var(--rule);}:where(html.dk) svg [stroke="#5b6168"]{stroke: var(--muted);}:where(html.dk) svg [stroke="#faf6ee"]{stroke: var(--paper);}:where(html.dk) svg [stroke="#26386b"]{stroke: var(--accent);}:where(html.dk) svg [fill="#26386b"]{fill: var(--accent);}:where(html.dk) svg [fill="#1b2236"]{fill: var(--ink);}:where(html.dk) svg [fill="#474d55"]{fill: var(--ink-2);}:where(html.dk) svg [stroke="#0d366b"]{stroke: #c8dcf7;}:where(html.dk) svg [fill="#0d366b"]{fill: #c8dcf7;}:where(html.dk) [style*="#26386b"]{background: var(--accent) !important;}:where(html.dk) [style*="#0d366b"]{background: #c8dcf7 !important;}}

/* ---------- the "On this page" space is kept from the start, so text does not move when it appears ---------- */
@media (max-width: 1199px) {
  html.op-pre:not(.has-onpage) main > .page-tools,
  html.op-pre:not(.has-onpage) main:not(:has(> .page-tools)) > article > .byline { margin-bottom: calc(.4rem + 2.75rem + 2px + 1.4rem); }
}

/* ---------- long tables: the column headings stay in view while scrolling ---------- */
.table-wrap.fits { overflow: visible; }
.table-wrap.tall:not(.fits) { max-height: min(75vh, 44rem); overflow: auto; }
.table-wrap.tall thead th { position: sticky; top: 0; z-index: 1; background: var(--paper); box-shadow: inset 0 -1px 0 var(--rule); }
@media print { .table-wrap.tall:not(.fits) { max-height: none; overflow: visible; } .table-wrap.tall thead th { position: static; box-shadow: none; } }

/* ---------- district pages print as a short summary unless "Print with all tables" is chosen ---------- */
@media print {
  body:not(.print-all) main:has(> section.glance) :is(details.numbers, details.full, details.kids, .explainers, .guide-link, section.like, section.rpt-cta, section[aria-labelledby="s-ask"], [data-embed]) { display: none !important; }
  body:not(.print-all) main:has(> section.glance) > section[aria-labelledby="s-more"]::after { content: "The full tables for this district are online at the address at the top of page 1."; display: block; margin-top: 8pt; font-size: 9.5pt; }
  body:not(.print-all) main:lang(es):has(> section.glance) > section[aria-labelledby="s-more"]::after { content: "Las tablas completas de este distrito están en línea, en la dirección que aparece arriba en la página 1."; }
  footer.site .foot-nav { display: none; }
  body:not(.print-all) main:has(> section.glance) figure.chart { margin: 4pt 0 8pt; }
  body:not(.print-all) main:has(> section.glance) figure.chart[data-chart="trend"] { max-width: 5.2in; }
  body:not(.print-all) main:has(> section.glance) h2 { margin-top: 12pt; }
  main:has(> section.glance) h2 { break-after: avoid; } main:has(> section.glance) h2 + p { break-before: avoid; }
  main:has(> section.glance) figure.chart, main:has(> section.glance) ul.plain li { break-inside: avoid; }
}

/* ---------- Display settings: text size, spacing, colours, links, motion ---------- */
html[data-ts="1"] { font-size: 125%; }
html[data-ts="2"] { font-size: 150%; }
html[data-ts="3"] { font-size: 200%; }
html[data-sp="1"] body :is(p, li, dd, dt, td, th, label, summary, figcaption, caption, blockquote, a, button) { line-height: 1.85 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
html[data-sp="1"] main p { margin-bottom: 2em; }
html[data-ul="1"] a:not(.button, .brand) { text-decoration: underline !important; text-decoration-thickness: .08em !important; text-underline-offset: .2em; }
html[data-rm="1"] { scroll-behavior: auto !important; }
html[data-rm="1"] *, html[data-rm="1"] *::before, html[data-rm="1"] *::after { animation-duration: 0s !important; transition: none !important; }
html.lt { color-scheme: light; }
html.lt[data-ct="hcl"] { --ink: #000; --ink-2: #000; --muted: #1f1f1f; --paper: #fff; --panel: #fff; --rule: #000; --accent: #6b0000; --accent-ink: #520000; --focus: #0033cc; --wash: #fff; --nodata: #b5b5b5; }
html.dk[data-ct="hcd"] { --ink: #fff; --ink-2: #fff; --muted: #ececec; --paper: #000; --panel: #000; --rule: #fff; --accent: #ffd84d; --accent-ink: #ffe680; --focus: #7cc4ff; --wash: #000; --nodata: #555; }
html:is([data-ct="hcl"], [data-ct="hcd"]) :is(.glance, details.explain[open], .note, fieldset:not(.disp-panel fieldset), .onpage-fold, .rpt-app, .disp-panel) { border: 2px solid var(--ink) !important; }
html:is([data-ct="hcl"], [data-ct="hcd"]) a:not(.button, .brand) { text-decoration: underline; }
html:is([data-ct="hcl"], [data-ct="hcd"]) :is(button, .button) { border: 2px solid var(--ink) !important; }
html:is([data-ct="hcl"], [data-ct="hcd"]) svg [stroke="#e6e1d6"], html:is([data-ct="hcl"], [data-ct="hcd"]) svg .grid line { stroke: var(--muted); }

.disp-btn { background: transparent !important; color: var(--ink-2) !important; border: 1px solid var(--rule); border-radius: 999px; font: inherit; font-size: .92rem; font-weight: 600; padding: .25rem .85rem; min-height: 2.25rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.disp-btn::before { content: "Aa"; font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.disp-btn:hover, .disp-btn[aria-expanded="true"] { border-color: var(--ink-2); color: var(--ink) !important; }
.disp-panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: .4rem clamp(1rem, 3vw, 1.75rem) 1.2rem; margin: 1.2rem 0 0; max-width: 52rem; }
.disp-panel h2 { margin: .8rem 0 .2rem; font-size: 1.45rem; }
.disp-panel > p { margin: 0 0 .8rem; color: var(--ink-2); font-size: .95rem; max-width: var(--measure); }
.disp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .4rem 1.6rem; }
.disp-panel fieldset { border: 0; padding: 0; margin: .6rem 0 0; min-width: 0; }
.disp-panel legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: .3rem; }
.disp-panel label { display: flex; align-items: center; gap: .55rem; min-height: 2.5rem; cursor: pointer; }
.disp-panel input[type=radio], .disp-panel input[type=checkbox] { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--accent); flex: none; }
.disp-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
@media print { .disp-btn, .disp-panel { display: none !important; } }
/* large text on wide screens: the "On this page" list becomes the "Jump to a section" menu, so the text keeps its width */
@media (min-width: 1200px) {
  html:is([data-ts="2"], [data-ts="3"]):is(.has-onpage, .op-pre) main.wrap { padding-right: clamp(1.25rem, 4vw, 2.5rem); }
  html:is([data-ts="2"], [data-ts="3"]).has-onpage nav.onpage { position: static; width: auto; }
  html:is([data-ts="2"], [data-ts="3"]).has-onpage nav.onpage { display: block; margin: .4rem 0 1.4rem; }
  html:is([data-ts="2"], [data-ts="3"]) nav.onpage .onpage-in { display: none; }
  html:is([data-ts="2"], [data-ts="3"]) nav.onpage .onpage-fold { display: block; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); max-width: 30rem; }
  html:is([data-ts="2"], [data-ts="3"]) nav.onpage .onpage-fold > summary { cursor: pointer; padding: .65rem 1rem; font-weight: 600; color: var(--ink-2); min-height: 2.75rem; list-style: none; display: flex; align-items: center; justify-content: space-between; }
  html:is([data-ts="2"], [data-ts="3"]) nav.onpage .onpage-fold > summary::-webkit-details-marker { display: none; }
  html:is([data-ts="2"], [data-ts="3"]) nav.onpage .onpage-fold > summary::after { content: ""; width: .45rem; height: .45rem; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  html:is([data-ts="2"], [data-ts="3"]) nav.onpage .onpage-fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
  html:is([data-ts="2"], [data-ts="3"]) nav.onpage .onpage-fold ul { list-style: none; margin: 0; padding: 0 0 .4rem; border-top: 1px solid var(--rule); }
  html:is([data-ts="2"], [data-ts="3"]) nav.onpage .onpage-fold a { display: block; padding: .6rem 1rem; color: var(--ink); text-decoration: none; }
  html:is([data-ts="2"], [data-ts="3"]) nav.onpage .onpage-fold a:hover { background: var(--wash); }
}
/* very large text on narrow screens: long links and menus wrap instead of spilling sideways */
:is(p, li, dd, td) a { overflow-wrap: anywhere; }
select { max-width: 100%; }
.controls > * { min-width: 0; max-width: 100%; }

/* Ask a question */
.qa-examples { list-style: none; padding: 0; margin: .2rem 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem .6rem; }
.qa-examples li { margin: 0; }
button.link-btn { all: unset; color: var(--accent); text-decoration: underline; text-underline-offset: .15em; cursor: pointer; padding: .3rem 0; min-height: 1.5rem; line-height: 1.4; }
button.link-btn:hover { color: var(--accent-ink); }
button.link-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.qa-examples button.link-btn { border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .8rem; text-decoration: none; font-size: .95rem; }
#qa-out h3 { margin-top: 1.2rem; }
#qa-out h3:focus { outline: none; }
#qa-out h3:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.qa-asked { color: var(--muted); font-size: .92rem; margin-top: -.3rem; }
.qa-note { border-left: 4px solid var(--accent); padding: .4rem .8rem; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.qa-card { border-top: 1px solid var(--rule); padding-top: .4rem; margin-top: .8rem; }
.qa-card h4 { font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-weight: 500; font-size: 1.1rem; margin: .6rem 0 .1rem; }
.qa-list { padding-left: 1.2rem; }
.qa-list li { margin: .35rem 0; }
.qa-ctx { color: var(--muted); }
.qa-guides { padding-left: 1.2rem; }
.qa-guides li { margin: .5rem 0; }
.qa-guides p { margin: .15rem 0 0; color: var(--ink-2); font-size: .95rem; }
.qa-choices { padding-left: 1.2rem; }
.qa-table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.qa-table caption { text-align: left; color: var(--muted); font-size: .9rem; padding-bottom: .3rem; }
.qa-table th, .qa-table td { border-bottom: 1px solid var(--rule); padding: .4rem .5rem; text-align: left; vertical-align: top; }
.qa-table td { font-variant-numeric: tabular-nums; }
.qa-more { margin: .4rem 0 0; }
.qa-foot { margin-top: 1rem; }
.qa-fb { border-top: 1px solid var(--rule); margin-top: 1rem; padding-top: .6rem; }
.qa-fb-q { margin: 0 0 .3rem; font-weight: 600; }
.qa-fb-btns button { margin-right: .4rem; }
@media print { .qa-fb, #qa-form, .qa-examples, #qa-examples-h { display: none; } }

/* Ask a question: help bubble */
.qa-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; }
.qa-head h2 { margin-bottom: .3rem; }
button.qa-help-btn { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--accent); border: 1px solid var(--rule); border-radius: 999px; padding: .35rem .9rem .35rem .4rem; min-height: 2.5rem; font-weight: 600; font-size: .95rem; }
button.qa-help-btn:hover, button.qa-help-btn.on { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 35%, var(--rule)); }
.qa-help-i { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: var(--paper); font-family: Vollkorn, "Vollkorn Fallback", Georgia, serif; font-size: 1rem; line-height: 1; }
.qa-help { position: relative; margin: .9rem 0 .4rem; padding: 1rem 1.2rem 1.1rem; border: 1px solid var(--rule); border-radius: 14px; background: var(--panel);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.18); animation: qaPop .16s ease-out; }
.qa-help::before { content: ""; position: absolute; top: -8px; right: 2.2rem; width: 14px; height: 14px; background: var(--panel); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); transform: rotate(45deg); }
@keyframes qaPop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qa-help { animation: none; } }
.qa-help-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.qa-help-top h3 { margin: 0; font-size: 1.15rem; }
button.qa-help-x { all: unset; cursor: pointer; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--muted); }
button.qa-help-x:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
button.qa-help-x:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.qa-help-lede { color: var(--muted); font-size: .92rem; margin: .2rem 0 .6rem; }
.qa-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .4rem 1.4rem; }
.qa-help-group h4, .qa-help-tips h4 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .6rem 0 .25rem; font-weight: 700; }
.qa-help ul { list-style: none; margin: 0; padding: 0; }
.qa-help li { margin: 0; }
button.qa-help-q { all: unset; display: block; cursor: pointer; padding: .32rem .5rem; margin: 0 -.5rem; border-radius: 8px; color: var(--accent); line-height: 1.4; }
button.qa-help-q:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); color: var(--accent-ink); }
button.qa-help-q:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.qa-help-tips { border-top: 1px solid var(--rule); margin-top: .7rem; padding-top: .1rem; }
.qa-help-tips li { color: var(--ink-2); font-size: .92rem; padding-left: 1rem; position: relative; margin: .2rem 0; }
.qa-help-tips li::before { content: "·"; position: absolute; left: .2rem; color: var(--accent); font-weight: 700; }
.qa-links { padding-left: 1.2rem; }
@media print { .qa-help, .qa-help-btn { display: none !important; } }
@media (max-width: 640px) { .qa-help::before { right: auto; left: 2rem; } .qa-head { align-items: flex-start; } }

/* What the data show: a short reading of the district's figures, at the top of each district page. */
.brief { margin: 0 0 2rem; padding: 1.4rem 1.5rem 1.15rem; background: var(--wash); border: 1px solid var(--rule); border-radius: var(--radius); }
.brief h2 { margin-top: 0; }
.brief-lede { font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; max-width: var(--measure); margin: .2rem 0 1.15rem; color: var(--ink); text-wrap: pretty; font-variant-numeric: lining-nums; }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1rem; }
.brief-item { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: .95rem 1rem .9rem; display: flex; flex-direction: column; }
.brief-k { margin: 0 0 .35rem; font-size: .84rem; font-weight: 600; color: var(--ink-2); letter-spacing: .005em; }
.brief-yr { font-weight: 400; color: var(--muted); }
.brief-v { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem; }
.brief-v .num { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1.05; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.brief-least { font-size: .84rem; color: var(--muted); }
.brief-v .unit { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.brief-cmp { margin: .6rem 0 0; font-size: .88rem; line-height: 1.4; color: var(--ink-2); }
.brief-pill { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .5rem; margin-right: .2rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--accent-ink); font-weight: 600; font-size: .78rem; white-space: nowrap; }
.brief-why { margin: .55rem 0 0; padding-top: .55rem; border-top: 1px solid var(--rule); font-size: .85rem; line-height: 1.45; color: var(--muted); }
.brief-note { margin: 0; max-width: var(--measure); font-size: .85rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 34rem) { .brief { padding: 1.1rem 1rem 1rem; } .brief-grid { grid-template-columns: 1fr; } .brief-v .num { font-size: 1.85rem; } }
@media print { .brief { background: none; border-color: #999; break-inside: avoid; } .brief-item { break-inside: avoid; } }

/* Byline: who made the page, when, and from what. */
.byline { margin: -.6rem 0 1.2rem; font-size: .86rem; line-height: 1.5; color: var(--muted); max-width: 46rem; }
.byline a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: .18em; }
.byline a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }

/* Nearby and similar districts: plain links under "Districts like this one". */
.near { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 2rem; margin: 1.4rem 0 .4rem; }
.near-col h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.near-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.near-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem .8rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.near-list a { font-family: var(--serif); font-size: 1.05rem; }
.near-meta { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.near-more { margin: .6rem 0 0; font-size: .9rem; }
@media (max-width: 40rem) { .near { grid-template-columns: 1fr; } }

/* Common questions. */
.faq-note { margin: -.2rem 0 .8rem; font-size: .88rem; color: var(--muted); }
details.faq-q { border-top: 1px solid var(--rule); max-width: var(--measure); }
details.faq-q:last-of-type { border-bottom: 1px solid var(--rule); }
details.faq-q summary { cursor: pointer; list-style: none; padding: .8rem 2rem .8rem 0; position: relative; font-family: var(--serif); font-size: 1.12rem; line-height: 1.4; color: var(--ink); }
details.faq-q summary::-webkit-details-marker { display: none; }
details.faq-q summary::after { content: "+"; position: absolute; right: .2rem; top: .7rem; font-size: 1.3rem; color: var(--accent); line-height: 1; }
details.faq-q[open] summary::after { content: "−"; }
details.faq-q summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
details.faq-q p { margin: 0 0 1rem; line-height: 1.6; color: var(--ink-2); font-variant-numeric: lining-nums; }
@media print { details.faq-q summary::after { content: none; } }

/* County pages and the county list on state pages. */
.cty-list { list-style: none; padding: 0; margin: .4rem 0 1rem; columns: 3 13rem; column-gap: 2rem; }
.cty-list li { break-inside: avoid; padding: .22rem 0; }
.cty-list .near-meta { margin-left: .3rem; }
table.county-t td.tl { text-align: left; white-space: normal; }
table.county-t .least { color: var(--muted); margin-right: .1rem; }
table.county-t .na { color: var(--muted); }

/* Link from a guide to its essay on sumanrath.org */
.essay-link { margin: .2rem 0 1.4rem; padding: .7rem 1rem; border-left: 3px solid var(--accent); background: var(--wash); font-size: .95rem; line-height: 1.5; max-width: var(--measure); }

/* ---------- ink and saffron: the accents shared with sumanrath.org (not in high-contrast modes) ---------- */
html:not([data-ct^="hc"]) main a:not(.button) { text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent); text-underline-offset: .2em; }
html:not([data-ct^="hc"]) main a:not(.button):hover { text-decoration-color: var(--gold); }
html:not([data-ct^="hc"]) ::selection { background: color-mix(in srgb, var(--gold) 30%, transparent); }
html:not([data-ct^="hc"]) .brief { border-top: 3px solid var(--gold); }
html:not([data-ct^="hc"]) .essay-link { border-left-color: var(--gold); }
