/* Fonts are self-hosted (SIL Open Font License, see fonts/OFL-*.txt) so readers' browsers make no third-party requests. */
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/bricolage-grotesque.woff2') format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #14181f; --muted: #5d6470; --rule: #e4ded2; --paper: #fbf8f2; --card: #ffffff; --night: #0f1b2d; --accent: #c2410c; --accent-ink: #9a3412; --link: #1d4e89;
  --verified: #2e7d32; --secondary: #6d8fb3; --unconfirmed: #e0a100; --not-found: #9e9e9e; --allegation: #b4432f; --analysis: #8e7cc3;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif; --serif: 'Newsreader', Georgia, 'Times New Roman', serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--serif); color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.65; font-size: 1.08rem; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; letter-spacing: -0.025em; }
/* Headlines and the summary under them (the dek) are sans-serif; story text stays serif. */
.dek { font-family: var(--display); font-weight: 400; letter-spacing: -0.005em; }

/* Masthead */
header.site { background: var(--night); color: #f3efe6; border-bottom: 4px solid var(--accent); }
.masthead { max-width: 1180px; margin: 0 auto; padding: 1.1rem 1.25rem 0.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.03em; color: #fff; text-decoration: none; line-height: 1; }
.brand:hover { color: #fff; }
header.site nav { font-family: var(--sans); font-size: 0.9rem; display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
header.site nav a { color: #d9d4c9; text-decoration: none; font-weight: 500; }
header.site nav a:hover { color: #fff; }
.tagline { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem 1rem; font-family: var(--sans); font-size: 0.85rem; color: #a9b1bd; }
.cta, header.site nav a.cta { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.9rem; background: var(--accent); color: #fff; padding: 0.55rem 1rem; border-radius: 999px; text-decoration: none; }
.cta:hover, header.site nav a.cta:hover { background: var(--accent-ink); color: #fff; }
.secondary { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; margin-left: 0.75rem; }

main { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 2rem; }
main > h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0.3rem 0 0.6rem; }
main > h1 a { color: var(--ink); text-decoration: none; }
main > h1 a:hover { color: var(--accent-ink); }
main > h1 .parents { display: block; font-family: var(--sans); font-size: 0.85rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 0.4rem; }
main > h1 .parents a { color: var(--muted); }
.preview-banner, .draft-note { background: #fff3cd; border: 1px solid #e0c060; padding: 0.5rem 1rem; font-family: var(--sans); font-size: 0.85rem; }
.draft-note { margin-bottom: 1.25rem; border-radius: 6px; }
footer.site { font-family: var(--sans); font-size: 0.85rem; color: #a9b1bd; background: var(--night); margin-top: 4rem; }
footer.site p { max-width: 1180px; margin: 0 auto; padding: 2rem 1.25rem; }
footer.site a { color: #f3efe6; }

/* Home */
.hero { padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); line-height: 1.05; font-weight: 700; max-width: 18ch; margin: 0 0 0.9rem; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 1rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-start; margin-bottom: 1.25rem; font-family: var(--sans); font-size: 0.9rem; }
.toolbar input[type=search] { flex: 0 1 18rem; font: inherit; padding: 0.55rem 0.9rem; border: 1px solid #cfc7b8; border-radius: 999px; background: var(--card); }
.toolbar input[type=search]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
details.filters { flex: 1 1 100%; order: 3; }
details.filters summary { cursor: pointer; display: inline-block; font-weight: 600; padding: 0.5rem 0.95rem; border: 1px solid #cfc7b8; border-radius: 999px; background: var(--card); list-style: none; }
details.filters summary::-webkit-details-marker { display: none; }
details.filters summary::after { content: ' ▾'; color: var(--muted); }
details.filters[open] summary::after { content: ' ▴'; }
.toolbar > details.filters { order: 2; flex: 0 0 auto; }
details.filters[open] { flex: 1 1 100%; }
.facets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.5rem 1.5rem; margin: 1rem 0 0.75rem; padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; }
.facets fieldset { border: 0; padding: 0; margin: 0; }
.facets legend { font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--accent-ink); margin-bottom: 0.3rem; }
.facets label { display: flex; gap: 0.45rem; align-items: center; padding: 0.12rem 0 0.12rem calc(var(--indent, 0) * 0.9rem); cursor: pointer; }
.facets label.empty { opacity: 0.4; }
.facets .count { margin-left: auto; color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
#clear { font: inherit; font-weight: 600; background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; }
#summary { order: 3; margin: 0.55rem 0 0 auto; color: var(--muted); }


.kicker { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 0.5rem; }
.meta, .crumbs, .byline { font-family: var(--sans); color: var(--muted); font-size: 0.82rem; }
.draft-tag { background: #fff3cd; color: #6b4d00; padding: 0.05rem 0.4rem; border-radius: 4px; }
.chips { font-family: var(--sans); display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 0; }
.chip { font-size: 0.75rem; font-weight: 500; padding: 0.15rem 0.6rem; border-radius: 999px; background: #f1ece2; text-decoration: none; color: var(--ink); }
.chip:hover { background: #e7dfcf; color: var(--ink); }
.chip-place { background: #e6efe2; }
.follow { font-family: var(--sans); font-size: 0.85rem; }

/* Article */
article { max-width: 700px; margin: 0 auto; overflow-wrap: anywhere; }
article h1 { font-size: clamp(2.2rem, 5.5vw, 3.3rem); line-height: 1.06; font-weight: 750; margin: 0.2rem 0 0.9rem; }
article > .dek { font-size: 1.35rem; line-height: 1.45; color: #3b414b; margin: 0 0 1.1rem; }
.byline { padding: 0.75rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.as-of { color: var(--ink); }
.curated { font-family: var(--sans); font-size: 0.85rem; color: var(--verified); }
.body { font-size: 1.2rem; line-height: 1.6; font-optical-sizing: auto; }
.body > p:first-child::first-letter { font-family: var(--display); float: left; font-size: 3.7em; line-height: 0.82; font-weight: 700; padding: 0.06em 0.1em 0 0; color: var(--accent); }
.body h2 { font-size: 1.6rem; line-height: 1.2; margin: 2.2rem 0 0.6rem; }
.body h3 { font-size: 1.25rem; }
.body blockquote { margin: 1.5rem 0; padding-left: 1.1rem; border-left: 3px solid var(--accent); font-style: italic; color: #3b414b; }
.upcoming { border-left: 4px solid var(--unconfirmed); background: #fff8e6; padding: 0.75rem 1.1rem; font-family: var(--sans); font-size: 0.88rem; border-radius: 0 8px 8px 0; margin: 1.25rem 0; }
.upcoming ul { margin: 0.3rem 0; padding-left: 1.2rem; }
.upcoming p { margin: 0.3rem 0 0; color: var(--muted); }
.evidence { font-family: var(--sans); font-size: 0.88rem; margin: 1.25rem 0 1.75rem; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 0.7rem 1rem; }
.evidence summary { cursor: pointer; display: flex; gap: 0.7rem; align-items: center; font-weight: 600; }
.bar { display: inline-flex; width: 160px; height: 10px; border-radius: 5px; overflow: hidden; flex: none; }
.seg { display: block; }
.legend { list-style: none; padding: 0; }
.swatch { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; margin-right: 0.45rem; vertical-align: -0.1rem; }
.ev-verified { background: var(--verified); } .ev-secondary { background: var(--secondary); } .ev-unconfirmed { background: var(--unconfirmed); }
.ev-not-found { background: var(--not-found); } .ev-allegation { background: var(--allegation); } .ev-analysis { background: var(--analysis); }
sup.cite { font-family: var(--sans); font-size: 0.68rem; }
sup.cite a { text-decoration: none; padding: 0 0.15rem; }
sup.cite a.tier-primary { font-weight: 700; }
.flag { position: relative; font-family: var(--sans); font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.05rem 0.4rem; border-radius: 4px; cursor: help; white-space: nowrap; vertical-align: 0.12rem; }
.flag-unconfirmed, .flag-records-request { background: #fff0c2; color: #6b4d00; }
.flag-allegation { background: #fbe3de; color: var(--allegation); }
.flag-not-found { background: #eee; color: #555; }
.flag-analysis { background: #eeeaf7; color: #5a4a8a; }
.flag-note { display: none; position: absolute; left: 0; top: 1.5rem; z-index: 2; width: 18rem; white-space: normal; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.8rem; background: #fff; color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 0.6rem; border-radius: 6px; }
.flag:hover .flag-note, .flag:focus .flag-note { display: block; }
p.allegation { border-left: 4px solid var(--allegation); padding: 0.4rem 0 0.4rem 1rem; background: #fdf4f2; border-radius: 0 6px 6px 0; }
figure.embed { margin: 2rem 0; }
figure.embed iframe, figure.embed img { width: 100%; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
figcaption { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-top: 0.4rem; }
article section h2, article > h2 { font-family: var(--sans); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-ink); border-top: 2px solid var(--ink); padding-top: 0.8rem; margin-top: 2.5rem; }
article > h2 { font-size: 0.85rem; }
.sources ol { font-size: 0.88rem; padding-left: 1.5rem; }
.sources li { margin-bottom: 0.4rem; }
.sources li:target { background: #fff3cd; }
.tier { font-family: var(--sans); font-size: 0.64rem; font-weight: 600; text-transform: uppercase; padding: 0.05rem 0.35rem; border-radius: 4px; }
.tier-primary { background: #e3f1e4; color: var(--verified); } .tier-secondary { background: #e9eff6; color: #3c5f84; }
.accessed, .src-notes, .offline { color: var(--muted); }
.updates li.correction strong { color: var(--allegation); }
.label { font-family: var(--sans); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0; }
.disclosures p { font-size: 0.92rem; margin: 0.3rem 0; }

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .masthead { padding-top: 0.9rem; }
  header.site nav { gap: 0.9rem; }
  .body { font-size: 1.08rem; }
  #summary { margin-left: 0; flex-basis: 100%; }
}

/* AI-involvement labels: one per step, colored by who did it (lib/article.js aiLabels). */
.ai-labels { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; padding: 0; margin: 0.5rem 0 0; font-family: var(--sans); }
.ai-badge { font-size: 0.78rem; font-weight: 600; line-height: 1.2; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid transparent; cursor: help; white-space: nowrap; }
.ai-labels .ai-badge:not(:last-child)::after { content: '›'; margin: 0 -0.55rem 0 0.75rem; color: var(--muted); font-weight: 400; }
.ai-badge.by-ai { background: #ede9fe; color: #4c1d95; border-color: #ddd6fe; }
.ai-badge.by-human { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }
.ai-badge.by-ai-human { background: linear-gradient(90deg, #ede9fe 50%, #dcfce7 50%); color: #312e81; border-color: #d4d4f7; }
.ai-badge.by-none { background: transparent; color: #6b4d00; border: 1px dashed #d9b45a; }
.ai-badge.stage-reviewed.by-human::before { content: '✓ '; }

/* Front of the home page: the pitch, and dates from every story's upcoming list. */
.front { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; padding-bottom: 1.75rem; }
.front .hero { border: 0; margin: 0; padding: 0.75rem 0 0; }
.front .hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.coming-up { font-family: var(--sans); background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.2rem 0.6rem; }
.coming-up h2 { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 0.4rem; }
.coming-up ol { list-style: none; padding: 0; margin: 0; }
.coming-up li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0 0.8rem; font-size: 0.86rem; line-height: 1.35; padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.coming-up li:first-child { border-top: 0; }
.coming-up time { grid-row: span 2; font-family: var(--display); font-weight: 700; font-size: 1rem; white-space: nowrap; color: var(--ink); }
.coming-up a { font-size: 0.76rem; color: var(--muted); margin-top: 0.2rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) { .front { grid-template-columns: 1fr; gap: 1.25rem; } }

footer.site .local-links { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem 2rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
footer.site .local-links span { color: #a9b1bd; }
@media (max-width: 640px) {
  header.site nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 1rem; padding-bottom: 0.4rem; scrollbar-width: none; }
  header.site nav a { white-space: nowrap; }
  .front .hero h1 { font-size: 1.85rem; }
  .front .hero p { font-size: 1rem; }
}

/* AIL badge (AI Influence Level 0-6): ink panel, then level and rail on a tint.
   Small on purpose: it is there to glance at, not to dominate. The ramp runs
   muted sage to dusty brick, so no level reads as praise or blame. */
.ail-0 { --ail: #7f9180; } .ail-1 { --ail: #8f9874; } .ail-2 { --ail: #a39b6a; } .ail-3 { --ail: #b09264; }
.ail-4 { --ail: #b4825c; } .ail-5 { --ail: #ad6e52; } .ail-6 { --ail: #a05a47; }
.ail { display: inline-flex; align-items: stretch; height: 1.1rem; border-radius: 3px; overflow: hidden; font-family: var(--sans); text-decoration: none; vertical-align: -0.2rem; border: 1px solid color-mix(in srgb, var(--ail) 70%, #fff); }
.ail-mark { background: #2b2f36; color: #fff; font-weight: 700; font-size: 0.58rem; letter-spacing: 0.08em; padding: 0 0.3rem; display: flex; align-items: center; }
.ail-field { background: color-mix(in srgb, var(--ail) 14%, #fff); display: flex; align-items: center; gap: 0.3rem; padding: 0 0.35rem 0 0.3rem; }
.ail-level { font-weight: 700; font-size: 0.68rem; color: #2b2f36; font-variant-numeric: tabular-nums; }
.ail-rail { display: inline-flex; gap: 1.5px; }
.ail-rail i { width: 3px; height: 0.55rem; border-radius: 1px; background: color-mix(in srgb, var(--ail) 22%, #fff); }
.ail-rail i.on { background: var(--ail); }

/* "How this story was made": one quiet line under the byline that opens to the details. */
details.made { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin: -0.4rem 0 1.4rem; }
details.made summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
details.made summary::-webkit-details-marker { display: none; }
.made-open { color: var(--link); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
details.made[open] .made-open::after { content: ' ▴'; text-decoration: none; }
.made-body { margin-top: 0.75rem; padding: 0.9rem 1.1rem; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; color: #3b414b; }
.made-body ul { padding-left: 1.1rem; margin: 0.6rem 0; }
.made-body p { margin: 0.5rem 0 0; }
.ail-scale { list-style: none; padding: 0; font-family: var(--sans); font-size: 0.92rem; }
.ail-scale li { margin: 0.35rem 0; display: flex; gap: 0.6rem; align-items: center; }
.ail { flex-shrink: 0; }
@media (max-width: 640px) { article > .dek { font-size: 1.15rem; } }

/* Featured places (towns/<site>.yaml `featured`) stand out in the masthead. */
header.site nav a.featured { color: #fff; font-weight: 600; }

/* Story lists: no boxes. Stories are told apart by size, pictures, and rules.
   Front page: a lead with its picture beside, three top stories with pictures
   above, then rows with a small picture, then briefs as headlines only. */
.stories { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
.story { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 0 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.story .story-art { order: 2; }
.story-title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; display: block; }
.story-title:hover { color: var(--accent-ink); }
.story .dek { font-size: 1rem; line-height: 1.5; color: #3b414b; margin: 0.45rem 0 0.6rem; }
.story .meta { margin: 0; display: flex; align-items: flex-start; gap: 0.45rem; line-height: 1.3rem; }
/* The badge lines up with the first line of text; wrapped text stays in its own column. */
.story .meta > .tip { flex: none; display: flex; margin-top: 0.1rem; }
.story .meta .ail { vertical-align: 0; }
.story-art { position: relative; align-self: start; }
.story-art img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: #f3ede1; }
.art-credit { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--muted); margin-top: 0.25rem; }

.story.lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 2.25rem; border-top: 0; padding: 0.5rem 0 2rem; }
.story.lead .story-art { order: 0; }
.story.lead .story-title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.06; letter-spacing: -0.025em; }
.story.lead .dek { font-size: 1.15rem; margin-top: 0.75rem; }
.story.lead .story-text { align-self: center; }

.story.top { grid-column: span 4; grid-template-columns: 1fr; border-top: 3px solid var(--ink); padding-top: 1rem; }
.story.top .story-art { order: 0; margin-bottom: 0.85rem; }
.story.top .story-title { font-size: 1.3rem; }
.story.top + .story.top { position: relative; }

.kicker .kind { color: var(--muted); }
.story.type-investigation .kicker .kind { color: #fff; background: var(--accent); display: inline-block; padding: 0.05rem 0.4rem; border-radius: 3px; }

.story.brief { grid-column: span 6; grid-template-columns: 1fr; padding: 0.9rem 0; }
.story.brief .story-title { font-size: 1.1rem; }
.story.brief .kicker { margin-bottom: 0.25rem; }

/* While filtering or searching, every match is a row. */
.stories.filtering .story { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 13rem; border-top: 1px solid var(--rule); padding: 1.25rem 0; }
.stories.filtering .story .story-art { order: 2; margin: 0; }
.stories.filtering .story.brief { grid-template-columns: 1fr; }
.stories.filtering .story-title { font-size: 1.35rem; }

@media (max-width: 860px) {
  .story.top { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 11rem; border-top: 1px solid var(--rule); }
  .story.top .story-art { order: 2; margin: 0; }
  .story.lead { grid-template-columns: 1fr; }
  .story.lead .story-art { margin-bottom: 1rem; }
}
@media (max-width: 640px) {
  .story, .story.top, .stories.filtering .story { grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 0 1rem; }
  .story.brief { grid-column: 1 / -1; }
  .story-title, .story.top .story-title { font-size: 1.12rem; }
  .story .dek { display: none; }
  .story.lead .dek { display: block; }
}

/* Tooltips for AI information: hover or keyboard focus shows data-tip. */
.tip { position: relative; cursor: help; }
.tip:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }
.tip[data-tip]:hover::after, .tip[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; z-index: 30; left: 0; top: calc(100% + 6px);
  width: max-content; max-width: min(19rem, 80vw); white-space: normal; text-align: left;
  font: 500 0.78rem/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: #fff;
  background: #1e2228; padding: 0.45rem 0.6rem; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); pointer-events: none;
}

/* Locator map: where in the county a story happened (bin/build.js locator()). */
.stories .story.no-art { grid-template-columns: minmax(0, 1fr); }
.locator { margin: 0; }
.locator svg { display: block; width: 100%; height: auto; }
.locator path { stroke: var(--paper); stroke-width: 1.2; stroke-linejoin: round; }
.locator .area { fill: #e6dfd1; }
.locator .village { fill: #d6cdbb; }
.locator .here { fill: var(--accent); }
.locator .here.village { fill: var(--accent-ink); }
.locator .here-label { font-family: var(--display); font-weight: 700; font-size: 15px; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.locator figcaption { font-family: var(--sans); font-size: 0.72rem; color: var(--muted); margin-top: 0.3rem; }
.locator figcaption span { text-decoration: underline dotted; cursor: help; }
.locator .ref-label { font-family: var(--sans); font-size: 12px; fill: var(--muted); text-anchor: middle; }
.story.lead .locator { width: 100%; max-width: 19rem; justify-self: center; align-self: center; }
.story.lead:has(.locator) { grid-template-columns: minmax(0, 1fr) 17rem; }
.story.lead .locator { order: 2; }
@media (max-width: 720px) {
  /* The main story's headline gets the full width; its map follows the text. */
  .stories .story.lead:has(.locator) { grid-template-columns: minmax(0, 1fr); }
  .story.lead .locator { order: 3; align-self: start; justify-self: start; max-width: 15rem; margin: 0.9rem 0 0; }
}

/* Next date from a story's `upcoming` list (bin/build.js nextUp()). */
.next-up { display: flex; gap: 0.7rem; align-items: center; margin: 0 0 0.7rem; font-family: var(--sans); font-size: 0.86rem; line-height: 1.35; color: #3b414b; }
.cal { flex: none; width: 2.9rem; text-align: center; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); overflow: hidden; }
.cal-month { display: block; background: var(--accent); color: #fff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.08rem 0; }
.cal-day { display: block; font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.next-text { min-width: 0; }
.meta .nowrap { white-space: nowrap; }
.next-text strong { color: var(--ink); }

/* Charts from a story's `chart` front matter (bin/build.js chartFig()). */
.chart { margin: 0; font-family: var(--sans); color: #3b414b; --c0: #1d3557; --c1: var(--accent); --c2: #6f8f72; --c3: #c9a227; --c4: #a9a39a; --c5: #7a4b3a; }
.chart figcaption { font-size: 0.8rem; line-height: 1.35; margin-bottom: 0.55rem; }
.chart figcaption strong { display: block; font-family: var(--display); font-size: 0.98rem; color: var(--ink); }
.chart figcaption span { color: var(--muted); }
.chart-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.chart-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.6rem; font-size: 0.78rem; line-height: 1.25; }
.chart-bars b { white-space: nowrap; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-track { grid-column: 1 / -1; height: 0.6rem; background: #ece6da; border-radius: 2px; }
.chart-track i { display: block; height: 100%; background: var(--c0); border-radius: 2px; }
.chart-bars li:first-child .chart-track i { background: var(--c1); }
.chart-stack { display: flex; height: 1.1rem; border-radius: 2px; overflow: hidden; gap: 2px; }
.chart-stack i, .chart-key i { display: block; background: var(--c0); }
.chart .c1 { background: var(--c1); } .chart .c2 { background: var(--c2); } .chart .c3 { background: var(--c3); } .chart .c4 { background: var(--c4); } .chart .c5 { background: var(--c5); }
.chart-key { list-style: none; margin: 0.55rem 0 0; padding: 0; display: grid; gap: 0.25rem; font-size: 0.78rem; }
.chart-key li { display: flex; align-items: center; gap: 0.4rem; }
.chart-key li i { flex: none; width: 0.65rem; height: 0.65rem; border-radius: 2px; }
.chart-key b { white-space: nowrap; margin-left: auto; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-source { font-size: 0.7rem; color: var(--muted); margin: 0.5rem 0 0; }
.story-art .chart { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 0.75rem 0.85rem; }
.chart-article { margin: 1.5rem 0; padding: 1rem 1.1rem; border-top: 3px solid var(--ink); background: var(--card); }
.chart-article figcaption strong { font-size: 1.15rem; }
.chart-article .chart-bars li, .chart-article .chart-key { font-size: 0.88rem; }
.chart-article .chart-track { height: 0.8rem; }

@media (max-width: 860px) { .stories .story.row:has(.chart), .stories .story.top:has(.chart) { grid-template-columns: 1fr; } .story:has(.chart) .story-art { order: 3; margin-top: 0.75rem; } }

/* No full-width stories: rows sit two across and briefs three across, so lines stay
   a readable length. Art goes above the text, as on the top stories. */
.stories .story.row, .stories.filtering .story { grid-column: span 6; grid-template-columns: minmax(0, 1fr); align-content: start; }
.stories .story.row .story-art, .stories.filtering .story .story-art { order: 0; margin: 0 0 0.85rem; }
.stories .story.brief { grid-column: span 4; }
.story.lead .dek, .story.lead .next-up { max-width: 40rem; }
@media (max-width: 860px) {
  .stories .story.row, .stories.filtering .story, .stories .story.brief { grid-column: 1 / -1; }
}
/* In a pair of rows, headlines line up; a chart follows its story's text. */
.stories .story.row:has(.chart) .story-art, .stories.filtering .story:has(.chart) .story-art { order: 3; margin: 0.85rem 0 0; }

/* A clear main story: the lead takes two-thirds of the width under a heavy rule, with
   the next three stories beside it as a sidebar. Not while filtering. */
@media (min-width: 861px) {
  .front-page:not(.filtering) { grid-auto-flow: row; }
  .front-page:not(.filtering) .story.lead { grid-column: 1 / span 8; grid-row: 1 / span 3; align-self: start; grid-template-columns: minmax(0, 1fr) 15rem; gap: 0 2rem; border-top: 5px solid var(--ink); padding: 1.1rem 0 2rem; }
  .front-page:not(.filtering) .story.lead.no-art { grid-template-columns: minmax(0, 1fr); }
  .front-page:not(.filtering) .story.lead .story-text { display: contents; }
  .front-page:not(.filtering) .story.lead .kicker, .front-page:not(.filtering) .story.lead .story-title { grid-column: 1 / -1; }
  .front-page:not(.filtering) .story.lead .story-title { font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.03; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
  .front-page:not(.filtering) .story.lead .dek { grid-column: 1; font-size: 1.22rem; }
  .front-page:not(.filtering) .story.lead .next-up, .front-page:not(.filtering) .story.lead .meta { grid-column: 1; }
  /* A tall picture spans an extra flexible row, so it never stretches the dek, date, and meta rows. */
  .front-page:not(.filtering) .story.lead { grid-template-rows: auto auto auto auto auto 1fr; }
  .front-page:not(.filtering) .story.lead:has(.chart) { grid-template-columns: minmax(0, 1fr) 18rem; }
  .front-page:not(.filtering) .story.lead .story-art { grid-column: 2; grid-row: 3 / 7; align-self: start; justify-self: stretch; max-width: none; margin-top: 0.6rem; }
  .front-page:not(.filtering) .story.top { grid-column: 9 / -1; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin-left: -1rem; padding: 1rem 0 1.1rem 1.5rem; }
  .front-page:not(.filtering) .story.lead + .story.top { border-top: 5px solid var(--ink); }
  .front-page:not(.filtering) .story.top .story-art { display: none; }
  .front-page:not(.filtering) .story.top .story-title { font-size: 1.12rem; }
  .front-page:not(.filtering) .story.top .dek { display: none; }
}

/* Below the top stories, one section per kind of story (site.yaml `sections`),
   each under its own heading, with a row of links to jump between them. */
.stories > .sections { grid-column: 1 / -1; margin-top: 1.5rem; }
.section-nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-family: var(--sans); font-size: 0.84rem; font-weight: 600; padding: 0.7rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.section-nav a:hover { color: var(--accent-ink); }
.section-nav .count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.section { margin-top: 2rem; scroll-margin-top: 1rem; }
.section > h2 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0; padding-top: 0.6rem; border-top: 3px solid var(--ink); }
/* A section with no story left after filtering disappears, and so do the jump links. */
.section:not(:has(.story:not([hidden]))) { display: none; }
.stories.filtering .section-nav { display: none; }
.stories.filtering .section { margin-top: 1rem; }
.section .story:first-child { border-top: 0; }
/* Stories the editor left off the front page show once a reader opens the section's full list, or searches. */
.stories:not(.filtering) .story.beyond { display: none; }
.stories:not(.filtering) .section:has(.all-anchor:target) .story.beyond { display: revert; }
.section:has(.all-anchor:target) .section-more, .stories.filtering .section-more { display: none; }
.section-more { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; margin: 0.8rem 0 0; }
.section-more a { color: var(--accent-ink); }

/* The news comes first: the publication explains itself in one line that links to the about page. */
.masthead-note { font-family: var(--sans); font-size: 0.84rem; line-height: 1.4; color: var(--muted); margin: 0.9rem 0 1rem; }
.masthead-note a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.browse + .coming-up { margin-top: 2.5rem; }
@media (max-width: 640px) {
  .toolbar { flex-wrap: nowrap; gap: 0.5rem; margin-bottom: 1rem; }
  .toolbar input[type=search] { flex: 1 1 auto; min-width: 0; }
  .toolbar > details.filters summary { white-space: nowrap; }
  #summary { display: none; }
  .wide-only { display: none; }
  .masthead-note { margin: 0.6rem 0 0.8rem; }
}
