/* Styles for the generated place, school, ZIP, about and privacy pages. Same tokens and theme rules as index.html:
   light by default; dark when the device is dark (Auto) unless the theme button picked Light, or when it picked Dark. */
:root {
  color-scheme: light;
  --page: #f6f7fb; --surface: #ffffff; --ink: #141b33; --ink-2: #4d5876;
  --line: #d9deeb; --axis: #c3c9da;
  --navy: #232d4b; --orange: #e57200; --orange-tint: #fff0df; --blue-tint: #e6ebf6;
  --band: #232d4b; --band-ink: #ffffff; --band-muted: #c6cfe8; --link: #232d4b;
  --st-operating: #495e9d; --st-planned: #e57200; --st-shutdown: #8a8f98;
  --filing: #b44ee8; /* county filings (diamonds); validated in site/virginia/index.html */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d1120; --surface: #161c30; --ink: #eef1fa; --ink-2: #a6b1cf; --line: #2b3454; --axis: #34406a;
    --navy: #aebdf0; --orange: #ff8f2e; --orange-tint: #2a1e12; --blue-tint: #1e2746;
    --band: #1a2240; --band-muted: #b9c4e4; --link: #b6c4f5;
    --st-operating: #6f86e0; --st-planned: #d0650a; --filing: #f0e442;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d1120; --surface: #161c30; --ink: #eef1fa; --ink-2: #a6b1cf; --line: #2b3454; --axis: #34406a;
  --navy: #aebdf0; --orange: #ff8f2e; --orange-tint: #2a1e12; --blue-tint: #1e2746;
  --band: #1a2240; --band-muted: #b9c4e4; --link: #b6c4f5;
  --st-operating: #6f86e0; --st-planned: #d0650a; --filing: #f0e442;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.wrap { max-width: 900px; margin-inline: auto; padding-inline: 20px; }
.band { background: var(--band); color: var(--band-ink); }
.topbar { border-bottom: 6px solid var(--orange); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; align-items: center; padding-block: 14px; }
.brand { font: 600 18px var(--serif); color: var(--band-ink); text-decoration: none; }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 14px; font-weight: 600; }
.topbar nav a { color: var(--band-muted); text-decoration: none; }
.topbar nav a:hover { color: #ff8f2e; }
.theme-btn { font: 600 13px var(--sans); color: var(--band-muted); background: none; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 2px 11px; cursor: pointer; }
.theme-btn:hover { color: #ff8f2e; border-color: #ff8f2e; }
main { padding-block: 26px 36px; }
h1 { font: 600 clamp(26px, 4.5vw, 38px)/1.15 var(--serif); color: var(--navy); margin: 6px 0 12px; }
h2 { font: 800 12.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin: 26px 0 8px; }
h3 { font: 700 15.5px var(--sans); color: var(--ink); margin: 18px 0 6px; }
.lede { font-size: 17px; max-width: 70ch; }
.crumbs { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.note { font-size: 13.5px; color: var(--ink-2); border-left: 3px solid var(--orange); padding-left: 12px; max-width: 75ch; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 6px; font-weight: 700; font-size: 14px; text-decoration: none; background: var(--orange); color: #141b33; }
.btn:hover { filter: brightness(1.08); color: #141b33; }
.facs { list-style: none; margin: 16px 0; padding: 0; border-top: 1px solid var(--line); }
.fac { border-bottom: 1px solid var(--line); padding: 11px 2px; }
.fac-head { display: flex; gap: 10px; align-items: baseline; }
.fac .nm { font-weight: 600; flex: 1; }
.fac .dist { font: 700 13.5px var(--mono); color: var(--navy); white-space: nowrap; }
.fac .meta { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; padding-left: 22px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--axis); }
.dot.planned, .dot.construction { background: var(--st-planned); }
.dot.operating { background: var(--st-operating); }
.dot.shutdown, .dot.other { background: var(--st-shutdown); }
/* County filings: a diamond (solid when decided, hollow while in county review), never color alone. */
.dia { width: 11px; height: 11px; flex: 0 0 11px; margin: 0 1px; transform: rotate(45deg); background: var(--filing); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--axis); }
.dia.in-review { background: var(--surface); border: 3px solid var(--filing); }
.dia.denied { background: var(--st-shutdown); }
.tag.filing { background: none; border: 1px solid var(--axis); color: var(--ink); }
.tag { display: inline-block; font: 700 11px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--blue-tint); color: var(--navy); }
.tag.planned, .tag.construction { background: var(--orange-tint); color: var(--ink); }
.plain { padding-left: 20px; }
.plain li { margin: 4px 0; }
.when { color: var(--ink-2); font-size: 13px; }
a.nm { color: var(--ink); text-decoration: none; }
a.nm:hover { color: var(--orange); text-decoration: underline; }
.zipform { margin: 18px 0 8px; }
.zipform label { display: block; font-weight: 600; margin-bottom: 6px; }
.zipform div { display: flex; gap: 8px; }
.zipform input { font: inherit; font-size: 17px; padding: 9px 12px; border: 1px solid var(--axis); border-radius: 6px; width: 160px; background: var(--surface); color: var(--ink); }
.idx { list-style: none; padding: 0; margin: 0; columns: 2 260px; column-gap: 28px; }
.idx li { break-inside: avoid; padding: 3px 0; font-size: 15px; }
.idx span { color: var(--ink-2); font-size: 13px; }
code { font-family: var(--mono); font-size: 0.92em; }
footer.band { font-size: 14px; color: var(--band-muted); }
footer .wrap { padding-block: 22px 32px; }
footer a { color: var(--band-ink); }
/* /data/ and /methodology/: column tables and the embed code form */
.cols { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0 18px; display: block; overflow-x: auto; }
.cols th, .cols td { text-align: left; vertical-align: top; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.cols th { font-size: 12.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.cols td:first-child { white-space: nowrap; }
.embedform { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 12px 0; }
.embedform fieldset { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.embedform legend { font-weight: 600; margin-bottom: 6px; }
.embedform .row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.embedform input:not([type=radio]), .embedform select, .embedform textarea { font: inherit; font-size: 15px; padding: 5px 8px; border: 1px solid var(--axis); border-radius: 6px; background: var(--page); color: var(--ink); max-width: 100%; }
.embedform textarea { display: block; width: 100%; box-sizing: border-box; font: 13px var(--mono); margin-top: 6px; }
.embedform > label { font-weight: 600; }
/* /terms/: LICENSE.md and DATA-LICENSE.md rendered (pipeline/pages.py terms_page) */
.terms { max-width: 75ch; border-top: 1px solid var(--line); margin-top: 22px; }
.terms h4 { font: 700 14px var(--sans); color: var(--ink); margin: 14px 0 4px; }
.terms blockquote { margin: 10px 0; padding: 8px 14px; background: var(--blue-tint); border-left: 3px solid var(--navy); }
.terms blockquote p { margin: 0; }
.terms li { margin: 4px 0; }
