/* Calaveras Wildfire Atlas, theme.
   The Council's website system carried into its CWPP atlas, so the two read as one family:
   the Council's own blue and red, the cured gold of oak woodland in fire season, Main Street
   slab lettering (Alfa Slab One) over Atkinson Hyperlegible, ink bands and framed photographs.
   The maps keep the State Fire Marshal's hazard ramp and the 2020 plan's title block on every
   printed sheet. Working sample by Stoa. */

:root {
  --paper: #ffffff;
  --collar: #f2f3f6;
  --collar-2: #e6e8ee;
  --ink: #1b1e33;
  --ink-2: #3c405a;
  --ink-3: #555a73;
  --rule: #d5d8e2;
  --accent: #4a4af2;
  --accent-ink: #3232d0;
  --accent-wash: #eceefe;
  --red: #b24248;
  --red-ink: #932f35;
  --red-wash: #fbeeee;
  --gold: #d9a743;
  --gold-pale: #f6e7bf;
  --sage: #61746a;
  --pine: #8b9389;
  --hz-vh: #d62f1f;
  --hz-h: #f68b1f;
  --hz-m: #f7d548;
  --ember: #7a1d0e;
  --fire: #c9572c;
  --fuelbreak: #2f7a3b;
  --treatment: #1d7a78;
  --rx: #7b4b94;
  --f-slab: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --f-display: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;
  --f-text: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;
  --wrap: 1180px;
  --read: 68ch;
  --radius: 8px;
  --card: 10px;
  --shadow: 0 1px 0 rgba(27, 30, 51, .05), 0 14px 32px rgba(27, 30, 51, .12);
  --focus: 3px solid var(--ink);
  --header-h: 0px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: var(--stoa-leading-body, 1.6);
  font-synthesis: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--ink); text-decoration-thickness: .14em; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--f-slab); font-weight: 400; letter-spacing: .005em; }
h3, h4 { font-family: var(--f-display); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); line-height: var(--stoa-leading-heading, 1.18); }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.32rem); line-height: 1.24; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--read { width: min(100% - 2.5rem, var(--read)); margin-inline: auto; }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--f-display); font-weight: 700; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-ink); }

/* ---------------------------------------------------------------- chrome */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }
.proto-banner { background: var(--ink); color: #e9eaf2; font-size: .9rem; line-height: 1.4; padding: .45rem max(1.25rem, calc((100% - var(--wrap)) / 2)); }
.proto-banner strong { color: #fff; }
.site-header { background: var(--paper); position: relative; z-index: 30; }
.header-bar { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.6rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-logo { width: 54px; height: auto; flex: none; }
.brand-tagline { font-family: var(--f-slab); font-weight: 400; font-size: 1.16rem; line-height: 1.08; color: var(--accent-ink); }
.brand-tagline span { display: block; color: var(--red-ink); }
.brand:hover .brand-tagline { color: var(--ink); }
.header-search { position: relative; display: flex; justify-self: end; width: min(100%, 34rem); grid-column: 2; }
.header-search input[type="search"] { flex: 1; min-width: 0; min-height: 50px; font: 400 1.02rem/1.3 var(--f-display); padding: .6rem .95rem; border: 2px solid var(--ink); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff; color: var(--ink); }
.header-search input[type="search"]::placeholder { color: #666b82; }
.header-search input[type="search"]:focus-visible { outline: 3px solid var(--accent); outline-offset: -5px; }
.header-search button { min-height: 50px; min-width: 44px; padding: 0 1.15rem; font: 700 1rem/1 var(--f-display); color: #fff; background: var(--ink); border: 2px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.header-search button:hover { background: var(--ink-2); border-color: var(--ink-2); }
.header-search button:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
.header-search [role="listbox"] { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: .35rem; list-style: none; background: #fff; border: 2px solid var(--ink); border-radius: var(--card); box-shadow: 0 18px 40px rgba(27, 30, 51, .18); max-height: min(70vh, 30rem); overflow-y: auto; overscroll-behavior: contain; z-index: 40; }
.header-search [role="listbox"]:empty { display: none; }
.header-search [role="option"], .header-search .omni-group-label, .header-search .omni-empty { padding: .55rem .75rem; font-family: var(--f-display); font-size: .98rem; line-height: 1.3; }
.header-search [role="option"] { cursor: pointer; display: flex; justify-content: space-between; gap: .75rem; border-radius: 6px; }
.header-search [role="option"] .omni-meta { color: var(--ink-3); font-size: .86rem; white-space: nowrap; }
.header-search [role="option"][aria-selected="true"], .header-search [role="option"]:hover { background: var(--accent-wash); }
.header-search .omni-group-label { font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-block: .55rem .2rem; }
.header-search .omni-ask { font-weight: 700; color: var(--accent-ink); border-bottom: 1px solid var(--rule); }
.header-search .omni-empty { color: var(--ink-2); }
.menu-toggle { display: none; align-items: center; gap: .5rem; min-height: 48px; padding: .4rem .9rem; font: 700 1rem/1 var(--f-display); background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer; }
.menu-toggle-bars { width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
/* The navigation row is the website's ring band: granite, a ring glyph before each place, the
   current page underlined in Council red. */
.site-nav { display: flex; flex-wrap: wrap; gap: .1rem .4rem; padding-inline: max(1.25rem, calc((100% - var(--wrap)) / 2 - .6rem)); background: var(--collar); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.nav-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: .45rem .75rem .45rem .6rem; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); text-decoration: none; border-bottom: 4px solid transparent; }
/* The ring glyph is drawn with a border, an inset ring and a center dot (no gradients), so it stays crisp. */
.nav-link::before { content: ""; flex: none; box-sizing: border-box; width: 22px; height: 22px; padding: 6.5px; border-radius: 50%; border: 1.5px solid var(--sage); background: var(--accent) content-box; box-shadow: inset 0 0 0 2.5px var(--collar), inset 0 0 0 4px var(--sage); opacity: .75; }
.nav-link:hover { color: var(--accent-ink); border-bottom-color: var(--rule); }
.nav-link[aria-current="page"] { border-bottom-color: var(--red); }
.nav-link[aria-current="page"]::before { opacity: 1; border-color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--collar), inset 0 0 0 4.5px var(--red); }
.nav-link:focus-visible { outline-offset: -4px; }
/* A ring divider between every page and the footer, as on the Council's website. */
#main::after { content: ""; display: block; height: 56px; margin-top: clamp(3rem, 6vw, 5rem); background:
  radial-gradient(circle at 50% 50%, var(--accent) 0 5px, transparent 6px),
  radial-gradient(circle at 50% 50%, transparent 0 11px, var(--ink) 12px 13.5px, transparent 14.5px),
  radial-gradient(circle at 50% 50%, transparent 0 18px, var(--sage) 19px 20.5px, transparent 21.5px),
  radial-gradient(circle at 50% 50%, transparent 0 25px, var(--red) 26px 27.5px, transparent 28.5px),
  linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat;
  background-color: var(--paper); }
.page-map #main::after { margin-top: 0; }
.site-footer { background: var(--ink); color: #e3e5ef; padding: clamp(2.4rem, 5vw, 3.6rem) 0 1.5rem; font-family: var(--f-display); }
.footer-nav, .footer-note { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .3rem 2rem; }
.footer-nav a { color: #fff; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: var(--gold-pale); }
.site-footer a:focus-visible { outline-color: var(--gold); }
.footer-note { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .2); color: #e3e5ef; font-size: .95rem; }
.footer-note a { color: #fff; }

@media (max-width: 900px) {
  .header-bar { grid-template-columns: 1fr auto; }
  .header-search { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-self: stretch; }
  .menu-toggle { display: inline-flex; grid-column: 2; grid-row: 1; }
  .site-nav { display: none; flex-direction: column; gap: 0; padding: 0 1.25rem .6rem; }
  .site-nav.is-open { display: flex; }
  .nav-link { border-bottom: 1px solid var(--rule); width: 100%; padding-left: 0; }
  .nav-link[aria-current="page"] { border-bottom: 1px solid var(--rule); box-shadow: inset 4px 0 0 var(--red); padding-left: .8rem; }
  .brand-tagline { font-size: 1.08rem; }
  .brand-logo { width: 46px; }
}

/* ---------------------------------------------------------------- page heads */
/* Every page opens on a granite band: breadcrumb, the plan's title block, the lede. */
.page-band { background: var(--collar); border-bottom: 1px solid var(--rule); padding-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.page-band .crumbs { padding-top: 1.4rem; }
.page-band + .section { padding-top: clamp(2.2rem, 4vw, 3.4rem); }
.page-band + .wrap { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------------------------------------------------------------- cartouche (the plan's title block) */
/* Set in the website's lettering: a red county line, the plan's name, the title in slab. On a
   printed sheet it keeps the 2020 plan's ruled box (see .sheet__side). */
.cartouche { display: block; max-width: 100%; }
.cartouche__inner { text-align: left; }
.cartouche__county { display: block; font-family: var(--f-display); font-weight: 700; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; color: var(--red-ink); }
.cartouche__plan { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; line-height: 1.3; margin-top: .1rem; color: var(--ink-2); }
.cartouche__title { display: block; margin-top: .55rem; font-family: var(--f-slab); font-weight: 400; color: var(--ink); font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); line-height: var(--stoa-leading-display, 1.08); letter-spacing: .005em; text-wrap: balance; overflow-wrap: break-word; }
.cartouche__sub { display: block; margin-top: .6rem; font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; color: var(--ink-2); }
.cartouche--page { margin-top: 1rem; }
/* District names run long ("Altaville-Melones Fire Protection District"): on a phone the title steps down so "Protection District" stays on one line. */
@media (max-width: 520px) { .page-district .cartouche__title { font-size: clamp(1.5rem, 6.6vw, 2.2rem); } }
.scalebar { display: none; }

.page-head { padding-top: .4rem; }
.page-head .lede { margin-top: 1.1rem; }
.page-head .photo-band { align-self: center; }
.crumbs { font-family: var(--f-display); font-size: .95rem; color: var(--ink-2); padding-top: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-inline: .45rem; color: var(--ink-3); }
.crumbs a { color: var(--accent-ink); }
.lede { font-size: clamp(1.14rem, 1rem + .5vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: var(--read); }
.prose { max-width: var(--read); }
.prose > * + * { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .45rem; }
.note { font-family: var(--f-display); font-size: .92rem; line-height: 1.5; color: var(--ink-3); }
.note a { color: var(--ink-2); }
.section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.section--collar { background: var(--collar); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; margin-bottom: 1.6rem; }
.section-head p { max-width: 58ch; color: var(--ink-2); }
.more { font-family: var(--f-display); font-weight: 700; white-space: nowrap; }
.more::after { content: "\2192" / ""; margin-left: .4em; }

/* ---------------------------------------------------------------- ink band (the website's projects band) */
.section--ink { background: var(--ink); color: #eceef6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lede, .section--ink p { color: #dfe1ec; }
.section--ink a:not(.btn) { color: #fff; }
.section--ink a:focus-visible { outline-color: var(--gold); }
.section--ink .facts { border-top-color: rgba(255, 255, 255, .3); }
.section--ink .fact { border-bottom-color: rgba(255, 255, 255, .22); }
.section--ink .fact dt { color: #dfe1ec; }
.section--ink .fact dd { color: var(--gold); }
.section--ink .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.section--ink .btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.section--ink .btn--primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.section--ink .btn--primary:hover { background: #e7bb5d; border-color: #e7bb5d; color: var(--ink); }
.section--ink .photo-band img { border-color: rgba(255, 255, 255, .25); }
.section--ink .photo-band figcaption, .section--ink .credit-line { color: #dfe1ec; }

/* ---------------------------------------------------------------- buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .65rem 1.2rem; font: 700 1.02rem/1.2 var(--f-display); text-decoration: none; text-align: center; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; }
.btn:hover { background: var(--collar); color: var(--ink); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn:focus-visible { outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem .9rem; margin-top: 1.3rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--f-display); font-size: .94rem; line-height: 1.25; }
.chip::before { content: ""; flex: none; width: 14px; height: 14px; border: 1px solid rgba(27, 30, 51, .55); background: var(--chip, #ccc); border-radius: 2px; }
.chip--vh { --chip: var(--hz-vh); }
.chip--h { --chip: var(--hz-h); }
.chip--m { --chip: var(--hz-m); }
.chip--fire { --chip: #f0b49c; }
.chip--fire::before { border: 2px solid var(--ember); }
.chip--fire-old { --chip: #f7e1d7; }
.chip--fire-mid { --chip: #f2c6b4; }
.chip--fire-late { --chip: #eca386; }
.chip--fire-recent { --chip: #dd7650; }
.chip--fuelbreak { --chip: var(--fuelbreak); }
.chip--concept::before { background: repeating-linear-gradient(45deg, var(--fuelbreak) 0 3px, #fff 3px 6px); }
.chip--treatment { --chip: var(--treatment); }
.chip--rx { --chip: var(--rx); }
.chip--community::before { border-radius: 50%; background: var(--ink); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); width: 10px; height: 10px; }
.chip--battalion::before { height: 0; border: 0; border-top: 3px solid var(--ink); border-radius: 0; }
.chip--district::before { height: 0; border: 0; border-top: 2px dashed var(--ink-2); border-radius: 0; }
.chip--usfs { --chip: #cfe3c0; }
.chip--federal { --chip: #f0e2b2; }
.chip--state { --chip: #c9dbef; }
.chip--public { --chip: #e2d6ec; }
.work-title { font-style: inherit; }
.tag { display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: .84rem; padding: .15rem .6rem; border-radius: 999px; background: var(--collar-2); color: var(--ink); }
.tag--firewise { background: var(--sage); color: #fff; }
.tag--active { background: var(--accent-wash); color: var(--accent-ink); }

/* ---------------------------------------------------------------- home: the county in relief */
.hero-map { border-bottom: 1px solid var(--rule); background: var(--collar); }
.hero-map__stage { position: relative; }
.hero-map .hero-map__frame { height: clamp(500px, 76vh, 780px); }
.hero-map__frame .maplibregl-canvas { outline-offset: -3px; }
.hero-map__title { position: absolute; z-index: 5; top: clamp(1rem, 3vw, 2rem); left: max(1.25rem, calc((100% - var(--wrap)) / 2)); max-width: min(31rem, calc(100% - 2.5rem)); pointer-events: none; }
.hero-map__title .cartouche { pointer-events: auto; background: #fff; border-top: 6px solid var(--gold); border-radius: var(--card); box-shadow: var(--shadow); padding: 1.15rem 1.4rem 1.3rem; }
.hero-map__title .cartouche__title { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); }
.hero-map__title p { margin-top: .7rem; font-size: 1.04rem; line-height: 1.5; color: var(--ink-2); }
.hero-map__legend { position: absolute; z-index: 5; right: max(1.25rem, calc((100% - var(--wrap)) / 2)); bottom: 2.4rem; background: #fff; border: 1px solid var(--rule); border-radius: var(--card); box-shadow: var(--shadow); padding: .8rem 1rem; display: grid; gap: .35rem; }
.hero-map__legend .note { margin-top: .25rem; }
.battalion-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; width: min(100% - 2.5rem, var(--wrap)); margin: 0 auto; padding-block: 1.4rem; }
.battalion-pick { display: grid; gap: .3rem; align-content: start; padding: 1rem 1.15rem 1.1rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: var(--card); min-height: 44px; }
.battalion-pick:hover { background: var(--accent-wash); color: var(--ink); }
.battalion-pick:focus-visible { outline-offset: 3px; }
.battalion-pick__n { font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-ink); }
.battalion-pick__name { font-family: var(--f-slab); font-weight: 400; color: var(--accent-ink); font-size: 1.4rem; line-height: 1.12; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .16em; }
.battalion-pick__towns { font-family: var(--f-display); font-size: .94rem; color: var(--ink-2); line-height: 1.4; }
.battalion-pick__vh { font-family: var(--f-display); font-weight: 700; font-size: .94rem; }
@media (max-width: 900px) {
  .hero-map .hero-map__frame { height: 62vh; min-height: 420px; }
  .hero-map__title { position: relative; top: 0; left: 0; max-width: none; padding: 1rem 1.25rem 0; }
  .hero-map__title .cartouche { box-shadow: none; border: 1px solid var(--rule); border-top: 6px solid var(--gold); }
  .hero-map__legend { position: static; margin: .8rem 1.25rem 0; padding: .6rem .8rem; box-shadow: none; }
  .battalion-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}
@media (max-width: 520px) { .battalion-picks { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- battalion chapters */
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.4rem, 5vw, 4rem); }
.chapter { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3.4rem); align-items: center; }
.chapter:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.chapter:nth-child(even) .chapter__photo { order: 2; }
.chapter__photo { margin: 0; }
.chapter__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; padding: 10px; border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); }
.chapter__photo figcaption { margin-top: .75rem; font-family: var(--f-display); font-size: .95rem; line-height: 1.45; color: var(--ink); }
.chapter__body { display: grid; gap: .75rem; align-content: start; }
.chapter__name { font-family: var(--f-slab); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.12; }
.chapter__name a { color: var(--ink); text-decoration: none; }
.chapter__name a:hover { color: var(--accent-ink); text-decoration: underline; }
.chapter__towns { font-family: var(--f-display); color: var(--ink-2); }
@media (max-width: 760px) {
  .chapter, .chapter:nth-child(even) { grid-template-columns: 1fr; }
  .chapter:nth-child(even) .chapter__photo { order: 0; }
}

/* ---------------------------------------------------------------- figures */
.hazard-bar { display: flex; height: 18px; border: 1px solid var(--ink); border-radius: 3px; background: #fff; overflow: hidden; }
.hazard-bar span { display: block; height: 100%; }
.hazard-bar .vh { background: var(--hz-vh); }
.hazard-bar .h { background: var(--hz-h); }
.hazard-bar .m { background: var(--hz-m); }
.hazard-key { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: .6rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); border-top: 2px solid var(--ink); }
.fact { padding: .9rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); }
.fact dt { font-family: var(--f-display); font-size: .95rem; color: var(--ink-2); line-height: 1.3; }
.fact dd { margin: .3rem 0 0; font-family: var(--f-slab); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); line-height: var(--stoa-leading-stat, 1); color: var(--ink); font-variant-numeric: tabular-nums; }
.fact dd small { font-family: var(--f-display); font-size: .95rem; font-weight: 700; color: inherit; margin-left: .1rem; }

/* ---------------------------------------------------------------- dated list (fires) and registers */
.dated-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.dated-list li { display: grid; grid-template-columns: 10.8rem minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.dated-list time { font-family: var(--f-display); font-weight: 700; color: var(--red-ink); font-variant-numeric: tabular-nums; }
.dated-list .what { font-family: var(--f-display); font-size: 1.04rem; }
.dated-list .what strong { font-weight: 700; }
.dated-list .what span { color: var(--ink-2); }
.dated-list .acres { font-family: var(--f-display); font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 640px) {
  .dated-list li { grid-template-columns: 1fr auto; }
  .dated-list time { grid-column: 1 / -1; font-size: .94rem; }
}
.register { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.register > li { padding: 1rem 0 1.05rem; border-bottom: 1px solid var(--rule); display: grid; gap: .35rem; }
.register h3 { font-size: 1.16rem; }
.register .meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-family: var(--f-display); font-size: .95rem; color: var(--ink-2); }
.register .meta b { color: var(--ink); font-weight: 700; }
.register p { max-width: var(--read); }
.register .contact { font-family: var(--f-display); font-size: .98rem; }

/* ---------------------------------------------------------------- photographs: the website's framed plates */
.photo-band { margin: 0; }
.photo-band img { width: 100%; background: #fff; padding: 10px; border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); }
.photo-band figcaption, .credit { margin-top: .75rem; font-family: var(--f-display); font-size: .95rem; line-height: 1.45; color: var(--ink); }
.credit-line { display: block; margin-top: .15rem; font-size: .84rem; color: var(--ink-3); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.4rem, 4vw, 3.4rem); align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 820px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- the map series */
.sheet-strip { list-style: none; margin: 0; padding: .3rem .2rem 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x proximity; }
.sheet-strip li { scroll-snap-align: start; }
.sheet-card { display: grid; gap: .5rem; text-decoration: none; color: var(--ink); }
.sheet-card img { width: 100%; background: #fff; padding: 6px; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 1px 2px rgba(27, 30, 51, .08); aspect-ratio: 1650 / 1275; object-fit: cover; }
.sheet-card__title { font-family: var(--f-display); font-weight: 700; color: var(--accent-ink); line-height: 1.25; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .16em; }
.sheet-card:hover .sheet-card__title { color: var(--ink); }
.sheet-card__meta { font-family: var(--f-display); font-size: .9rem; color: var(--ink-3); }
.series { display: grid; gap: 2.8rem; }
.series-group h3 { font-family: var(--f-slab); font-weight: 400; color: var(--ink); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.series-rows { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.series-row { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 1.4rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); align-items: start; }
.series-row img { width: 100%; background: #fff; padding: 6px; border: 1px solid var(--rule); border-radius: 4px; }
.series-row h4 { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: 1.16rem; line-height: 1.28; }
.series-row dl { margin: .55rem 0 0; display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .3rem .8rem; font-family: var(--f-display); font-size: .96rem; }
.series-row dt { color: var(--ink-3); }
.series-row dd { margin: 0; }
@media (max-width: 680px) { .series-row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- the map explorer */
.map-app { display: grid; grid-template-columns: minmax(0, 1fr) 23.5rem; min-height: calc(100vh - 9rem); }
.map-app__map { position: relative; min-height: 560px; background: var(--collar); }
.map-app__map > .atlas-map { position: absolute; inset: 0; }
.map-app__panel { border-left: 1px solid var(--rule); background: #fff; display: flex; flex-direction: column; max-height: calc(100vh - 9rem); overflow-y: auto; position: sticky; top: 0; }
.panel-block { padding: 1.1rem 1.2rem 1.15rem; border-bottom: 1px solid var(--rule); }
.panel-block h2 { font-family: var(--f-display); font-weight: 700; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-ink); margin-bottom: .6rem; }
.panel-block h1 { font-family: var(--f-slab); font-weight: 400; color: var(--ink); font-size: 1.9rem; line-height: 1.1; }
.layer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.layer-list label { display: flex; align-items: center; gap: .6rem; min-height: 38px; font-family: var(--f-display); font-size: 1rem; cursor: pointer; }
.layer-list input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.layer-list .chip { flex: 1; }
.layer-list .count { font-family: var(--f-display); font-size: .86rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.zoom-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.zoom-list button { min-height: 40px; padding: .35rem .8rem; font: 700 .95rem/1.1 var(--f-display); background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer; }
.zoom-list button:hover, .zoom-list button[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); }
.whats-here { font-family: var(--f-display); font-size: 1rem; }
.whats-here dl { margin: .4rem 0 0; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .25rem .7rem; }
.whats-here dt { color: var(--ink-3); }
.whats-here dd { margin: 0; }
.whats-here h3 { font-size: 1.1rem; }
.in-view { list-style: none; margin: 0; padding: 0; }
.in-view li + li { border-top: 1px solid var(--rule); }
.in-view button { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: .6rem; padding: .5rem 0; min-height: 40px; font: 1rem/1.25 var(--f-display); background: none; border: 0; color: var(--ink); cursor: pointer; }
.in-view button:hover { color: var(--accent-ink); }
.in-view button span:last-child { color: var(--ink-3); font-size: .86rem; white-space: nowrap; }
.map-help { font-family: var(--f-display); font-size: .9rem; color: var(--ink-3); }
@media (max-width: 960px) {
  .map-app { grid-template-columns: 1fr; }
  .map-app__map { min-height: 62vh; }
  .map-app__panel { border-left: 0; border-top: 1px solid var(--rule); max-height: none; position: static; }
}
.atlas-map { width: 100%; }
.map-frame { position: relative; height: clamp(380px, 58vh, 620px); border: 1px solid var(--rule); border-radius: var(--card); overflow: hidden; background: var(--collar); box-shadow: 0 1px 2px rgba(27, 30, 51, .06); }
.map-frame > .atlas-map { position: absolute; inset: 0; }
.map-frame__tools { position: absolute; z-index: 5; left: .7rem; top: .7rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.maplibregl-ctrl-attrib { font-family: var(--f-display); font-size: .78rem; }
.maplibregl-ctrl-scale { font-family: var(--f-display); border-color: var(--ink) !important; }
/* MapLibre's "use ctrl/⌘ + scroll to zoom" notice sits on a solid ink plate so it reads at any zoom. */
.maplibregl-cooperative-gesture-screen { background: rgba(27, 30, 51, .9) !important; color: #fff !important; font-family: var(--f-display); font-size: 1.15rem !important; }
.map-popup h3 { font-size: 1rem; }
.map-popup p { font-family: var(--f-display); font-size: .92rem; margin-top: .2rem; }

/* ---------------------------------------------------------------- Make a sheet */
.sheet-dialog { border: 2px solid var(--ink); border-radius: var(--card); padding: 0; width: min(100% - 1.5rem, 76rem); max-height: calc(100vh - 2rem); background: var(--collar); }
.sheet-dialog::backdrop { background: rgba(27, 30, 51, .6); }
.sheet-dialog__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1.1rem; background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 2; }
.sheet-dialog__bar h2 { font-size: 1.4rem; }
.sheet-types { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; margin: 0; padding: 0; }
.sheet-types legend { font-family: var(--f-display); font-weight: 700; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-ink); margin-bottom: .35rem; }
.sheet-types label { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .25rem .75rem; font: 700 .95rem/1 var(--f-display); border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; cursor: pointer; }
.sheet-types input { accent-color: var(--accent); margin: 0; }
.sheet-types label:has(input:checked) { background: var(--accent-wash); border-color: var(--accent); }
.sheet-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .7rem 1rem; padding: .9rem 1.1rem; background: #fff; border-bottom: 1px solid var(--rule); }
.sheet-fields label { display: grid; gap: .25rem; font: 700 .92rem/1.2 var(--f-display); }
.sheet-fields input { min-height: 44px; font: 1rem/1.2 var(--f-display); padding: .4rem .7rem; border: 2px solid var(--ink); border-radius: var(--radius); }
.sheet-fields [hidden] { display: none; }
.sheet-preview { padding: 1.2rem; overflow: auto; }
/* The printed sheet is the map product: it keeps the 2020 series layout and its ruled title block. */
.sheet { width: 100%; max-width: 66rem; margin-inline: auto; aspect-ratio: 10.3 / 7.8; background: #fff; border: 1px solid var(--ink-3); box-shadow: 0 8px 26px rgba(27, 30, 51, .2); display: grid; grid-template-columns: minmax(0, 1fr) 25%; padding: 1.6% 1.6%; gap: 1.4%; font-family: var(--f-display); color: var(--ink); }
.sheet__map { position: relative; border: 2px solid var(--ink); overflow: hidden; background: var(--collar); }
.sheet__frame { position: absolute; inset: 0; }
.sheet__map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__scalebar { position: absolute; left: .5rem; bottom: .5rem; box-sizing: content-box; padding: .3rem .45rem .2rem; background: rgba(255, 255, 255, .94); border: 1px solid var(--ink); }
.sheet__north { position: absolute; right: .5rem; top: .5rem; background: rgba(255, 255, 255, .92); border: 1px solid var(--ink); padding: .2rem .45rem; text-align: center; font-weight: 700; font-size: .85rem; line-height: 1; }
.sheet__north span { display: block; font-size: 1.1rem; }
.sheet__corner { position: absolute; font-size: .62rem; background: rgba(255, 255, 255, .9); padding: .05rem .25rem; }
.sheet__corner--nw { left: .3rem; top: .3rem; }
.sheet__corner--se { right: .3rem; bottom: .3rem; }
.sheet--field .sheet__scalebar { bottom: 1.7rem; }
.sheet__side { display: flex; flex-direction: column; gap: .6rem; min-width: 0; font-size: .74rem; line-height: 1.3; }
.sheet__side .cartouche { display: block; background: #fff; border: 2px solid var(--ink); padding: 3px; }
.sheet__side .cartouche__inner { border: 1px solid var(--ink); padding: .5rem .5rem .6rem; text-align: center; }
.sheet__side .cartouche__county { font-size: .56rem; letter-spacing: .2em; color: var(--ink); }
.sheet__side .cartouche__plan { font-size: .74rem; color: var(--ink); }
.sheet__side .cartouche__title { font-size: 1.12rem; margin-top: .3rem; color: var(--red-ink); }
.sheet__side .cartouche__sub { font-size: .66rem; }
.sheet__legend { border: 1px solid var(--ink); padding: .4rem .5rem; display: grid; gap: .22rem; }
.sheet__legend h3, .sheet__box h3 { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.sheet__legend .chip { font-size: .7rem; gap: .35rem; }
.sheet__legend .chip::before { width: 10px; height: 10px; }
.sheet__scale-bar { height: 6px; border: 1px solid var(--ink); background: repeating-linear-gradient(90deg, var(--ink) 0 25%, #fff 25% 50%); }
.sheet__scale-labels { display: flex; justify-content: space-between; font-size: .62rem; }
.sheet__box { border: 1px solid var(--ink); padding: .4rem .5rem; display: grid; gap: .2rem; }
.sheet__box p { font-size: .68rem; }
.sheet__credits { margin-top: auto; font-size: .6rem; line-height: 1.3; color: var(--ink-2); }
.sheet__credits p + p { margin-top: .2rem; }
.sheet--public .sheet__legend .chip { font-size: .8rem; }
@media (max-width: 760px) {
  .sheet { aspect-ratio: auto; grid-template-columns: 1fr; }
  .sheet__map { aspect-ratio: 4 / 3; }
}

/* ---------------------------------------------------------------- long indexes */
[data-stoa-index] { --scv-index-sticky-top: 0px; }
[data-stoa-index-controls] { background: rgba(255, 255, 255, .97); border-block: 1px solid var(--rule); padding: .8rem 0 .6rem; margin-bottom: 1.2rem; }
[data-stoa-index-controls] form { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem .7rem; }
[data-stoa-index-controls] label { font: 700 .95rem/1.2 var(--f-display); color: var(--ink); width: 100%; }
[data-stoa-index-controls] input[type="search"] { flex: 1 1 16rem; min-width: 0; min-height: 48px; font: 1rem/1.2 var(--f-display); padding: .5rem .8rem; border: 2px solid var(--ink); border-radius: var(--radius); }
[data-stoa-index-controls] select { min-height: 48px; font: 1rem/1.2 var(--f-display); padding: .4rem .6rem; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); }
[data-stoa-index-controls] button { min-height: 48px; font: 700 1rem/1 var(--f-display); padding: .5rem 1.1rem; background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer; }
[data-stoa-index-summary] { margin-top: .45rem; font-family: var(--f-display); font-size: .95rem; color: var(--ink-2); }
[data-stoa-index-pagination] { margin-top: 1.6rem; font-family: var(--f-display); }
[data-stoa-index-pagination] a, [data-stoa-index-pagination] [aria-current="page"] { border: 1px solid var(--rule); border-radius: 6px; padding: 0 .6rem; text-decoration: none; }
[data-stoa-index-pagination] [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.index-filters { display: contents; }

/* ---------------------------------------------------------------- search page */
.search-shell { display: grid; gap: 1.6rem; }
.answer { border: 1px solid var(--rule); border-top: 6px solid var(--accent); border-radius: var(--card); padding: 1.2rem 1.4rem; background: #fff; box-shadow: 0 1px 2px rgba(27, 30, 51, .06); }
.answer[hidden] { display: none; }
.answer__label { font-family: var(--f-display); font-weight: 700; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red-ink); }
.answer__text { margin-top: .45rem; font-size: 1.12rem; }
.answer__sources { margin: .8rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-family: var(--f-display); }
.results { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.results li { padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.results a { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; }
.results p { font-size: 1rem; color: var(--ink-2); margin-top: .2rem; }
.results .kind { font-family: var(--f-display); font-size: .84rem; color: var(--ink-3); margin-left: .5rem; }
.empty-state { border: 2px dashed var(--rule); border-radius: var(--card); padding: 1rem 1.2rem; font-family: var(--f-display); }
.empty-state button { margin: .5rem .4rem 0 0; }

/* ---------------------------------------------------------------- misc */
.toc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); font-family: var(--f-display); }
.toc li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); border-top: 2px solid var(--ink); }
.board li { padding: .85rem 1rem .95rem 0; border-bottom: 1px solid var(--rule); font-family: var(--f-display); }
.board b { display: block; font-size: 1.08rem; }
.board span { color: var(--ink-2); }
.recs { counter-reset: rec; display: grid; gap: 1.8rem; }
.rec h3 { font-family: var(--f-slab); font-weight: 400; color: var(--ink); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
.rec ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.rec li + li { margin-top: .4rem; }
.rec--portal { border-left: 6px solid var(--accent); padding-left: 1.1rem; }
.district-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 1.6rem; border-top: 2px solid var(--ink); }
.district-grid li { padding: .9rem 0 1rem; border-bottom: 1px solid var(--rule); display: grid; gap: .3rem; }
.district-grid a { font-family: var(--f-display); font-weight: 700; font-size: 1.08rem; }
.district-grid .note { margin: 0; }
.notfound { text-align: center; padding-block: 3rem 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .legend-row { animation: legend-in .4s ease both; }
  .legend-row:nth-child(2) { animation-delay: 60ms; }
  .legend-row:nth-child(3) { animation-delay: 120ms; }
  .legend-row:nth-child(4) { animation-delay: 180ms; }
  .sheet-preview .sheet { animation: sheet-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes legend-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  @keyframes sheet-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
}

/* ---------------------------------------------------------------- print: a sheet, or a clean page */
@page { size: letter landscape; margin: .35in; }
@media print {
  body.is-printing-sheet > *:not(.sheet-dialog) { display: none !important; }
  body.is-printing-sheet .sheet-dialog { position: static; display: block; border: 0; width: auto; max-height: none; background: #fff; }
  body.is-printing-sheet .sheet-dialog__bar, body.is-printing-sheet .sheet-fields { display: none !important; }
  body.is-printing-sheet .sheet-preview { padding: 0; overflow: visible; }
  body.is-printing-sheet .sheet { box-shadow: none; border: 0; max-width: none; width: 10.3in; height: 7.8in; aspect-ratio: auto; animation: none; }
  .proto-banner, .site-header, .site-footer, .menu-toggle, .btn-row, [data-stoa-index-controls], [data-stoa-index-pagination], .map-app__panel, #main::after { display: none !important; }
  a { color: inherit; text-decoration: none; }
}

/* ---------------------------------------------------------------- the cartouche, beyond page titles */
/* Section heads carry a short cured-gold bar; list markers are the plan's small title box. */
.cartouche-rule { position: relative; width: 100%; }
.cartouche-rule::before { content: ""; flex: 0 0 100%; display: block; width: 100%; height: 5px; background: linear-gradient(var(--gold), var(--gold)) left center / 3.4rem 5px no-repeat; margin-bottom: .35rem; }
.cartouche-list { list-style: none; padding: 0; margin: 0; }
.cartouche-list > li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.cartouche-list > li::before { content: ""; position: absolute; left: .1rem; top: .3em; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 3px solid var(--red); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px var(--accent); }
.cartouche--empty { display: block; max-width: 34rem; margin: 1.4rem 0; list-style: none; background: #fff; border: 1px solid var(--rule); border-top: 6px solid var(--gold); border-radius: var(--card); padding: 1rem 1.3rem 1.2rem; }
.cartouche--empty .cartouche__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.cartouche--empty .cartouche__sub { margin-top: .3rem; }
.cartouche-frame img { transition: box-shadow .15s ease; }
.cartouche-frame:hover img, .cartouche-frame:focus-visible img { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
@media (prefers-reduced-motion: reduce) { .cartouche-frame img { transition: none; } }
figure.map-frame { margin: 0; }
.map-frame--index .atlas-map { height: clamp(260px, 34vh, 380px); }
.search-shell .try { font-family: var(--f-display); margin-bottom: .8rem; }
.quote { font-family: var(--f-text); font-style: italic; font-size: 1.08rem; max-width: var(--read); margin-top: 1rem; }
