:root {
  color-scheme: light;
  --ink: #172d25;
  --muted: #465c50;
  --green: #113e2d;
  --line: #ccd8cf;
  --paper: #f4f6f1;
  font: 100%/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
header { background: var(--green); color: white; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
header strong { font-size: 1.1rem; }
header span { font-size: .85rem; color: #e0eee4; }
.intro { padding: clamp(2rem, 6vw, 4.5rem) 0 1.5rem; }
.section-label { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
h1 { margin: .5rem 0 1rem; font: 600 clamp(2.3rem, 6vw, 4.4rem)/1.02 Georgia, serif; letter-spacing: -.035em; }
.intro > p { max-width: 37rem; }
#inventory { color: var(--muted); font-size: .9rem; font-weight: 650; }
form { display: grid; grid-template-columns: minmax(14rem, 2fr) minmax(10rem, 1.15fr) minmax(8rem, .8fr) auto; align-items: end; gap: .75rem; padding: 1rem; background: #e5ede5; border: 1px solid var(--line); border-radius: .6rem; }
label { display: grid; gap: .3rem; font-size: .86rem; font-weight: 700; }
input, select, button { width: 100%; min-height: 2.8rem; padding: .45rem .65rem; font: inherit; color: var(--ink); background: white; border: 1px solid #6e8377; border-radius: .35rem; }
button { color: white; background: var(--green); font-weight: 700; cursor: pointer; padding-inline: 1rem; }
:focus-visible { outline: 3px solid #956126; outline-offset: 3px; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; padding: .8rem 0 .2rem; }
.results-head p { color: var(--muted); font-size: .88rem; margin: .3rem 0; }
#count { font-weight: 720; }
article { background: white; border: 1px solid var(--line); border-radius: .6rem; padding: 1rem 1.15rem; margin: .7rem 0; }
article:target { outline: 3px solid #956126; }
.meta, .page-meta { color: var(--muted); font-size: .85rem; margin: .1rem 0; }
h2 { font: 700 1.45rem/1.2 Georgia, serif; margin: .25rem 0 .4rem; }
article p { margin: .38rem 0; overflow-wrap: anywhere; }
a { color: #124c37; text-underline-offset: .16em; }
.actions { display: flex; gap: .4rem 1rem; flex-wrap: wrap; margin: .55rem 0; align-items: center; }
.actions a, summary { min-height: 2.75rem; align-content: center; font-size: .9rem; font-weight: 700; }
summary { cursor: pointer; color: #124c37; }
.transcript { border-top: 1px solid var(--line); margin-top: .45rem; }
.transcript section { border-top: 1px solid var(--line); padding: .8rem 0; }
.transcript section p { white-space: pre-line; max-width: 75ch; }
.match { background: #edf4e9; padding: .55rem .75rem; border-radius: .3rem; margin-top: .65rem; font-size: .92rem; }
mark { background: #ffedaa; color: var(--ink); }
footer { font-size: .86rem; color: var(--muted); padding: 1.5rem 0 2rem; }
@media (max-width: 730px) { form { grid-template-columns: 1fr 1fr; } form label:first-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { form { grid-template-columns: minmax(0, 1fr); } }

header a { color: white; }
.signout { display: block; padding: 0; background: transparent; border: 0; }
.signout button { font-size: .85rem; border-color: #a7c2af; }
.unlock { max-width: 34rem; grid-template-columns: minmax(0,1fr) auto; }
.unlock p { grid-column: 1 / -1; }
@media (max-width: 460px) { .unlock { grid-template-columns: minmax(0,1fr); } }
#district-filters { grid-template-columns: minmax(11rem,1.4fr) repeat(3,minmax(8rem,1fr)) auto; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(8rem,1fr)); gap:.6rem; margin-bottom:1rem; }
.stats button { border:1px solid var(--line); background:white; color:var(--ink); border-radius:.5rem; padding:.7rem; font-size:.86rem; text-align:left; }
.stats button:hover { border-color:var(--green); }
.stats button[aria-pressed="true"] { background:var(--green); color:white; }
.stats strong { display:block; font-size:1.45rem; }
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:.5rem; background:white; }
table { border-collapse:collapse; width:100%; min-width:36rem; text-align:left; font-size:.92rem; }
th,td { border-bottom:1px solid var(--line); padding:.7rem .75rem; vertical-align:top; }
th { background:#e5ede5; }
td small { display:block; color:var(--muted); }
td a { font-weight:700; }
.pager { display:flex; justify-content:flex-end; align-items:center; gap:.8rem; margin:.8rem 0; }
.pager button { width:auto; }
.pager button:disabled { opacity:.5; cursor:default; }
@media(max-width:850px){#district-filters{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:420px){#district-filters{grid-template-columns:minmax(0,1fr);}}
.project-nav { display:flex; flex-wrap:wrap; gap:.45rem; margin-bottom:1rem; }
.project-nav a { display:inline-flex; align-items:center; min-height:2.75rem; padding:.4rem .7rem; border:1px solid var(--line); border-radius:.35rem; font-weight:700; }
.project-nav [aria-current] { background:var(--green); color:white; }
