/* nature.events
   Field-guide-meets-public-radio. Forest-green foundation, brightened
   with wildlife accents (cardinal red, bluebird blue, goldfinch yellow).
   Fraunces serif for the wordmark + h1 only; system sans elsewhere;
   DM Mono for inline code. Loaded from Google Fonts (~42KB). */

:root {
  /* Foundation — the forest floor */
  --green-deep: #2d5016;
  --green-mid:  #4a7c29;
  --green-soft: #6b8e3d;
  --bark:       #5b3a1f;
  --cream:      #faf8f3;
  --paper:      #ffffff;
  --ink:        #1f2516;
  --muted:      #6b7565;
  --rule:       #d9d3c1;
  --warn:       #c2410c;

  /* Wildlife accents */
  --cardinal:      #b03a2e;
  --cardinal-soft: #fbe6e2;
  --cardinal-fg:   #7a1f17;
  --bluebird:      #2f6fae;
  --bluebird-soft: #dde8f3;
  --bluebird-fg:   #1a4470;
  --goldfinch:      #e8b923;
  --goldfinch-soft: #fbf0c8;
  --goldfinch-fg:   #6e4a05;

  /* Type stacks */
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --fvs-display: "opsz" 96, "SOFT" 50;
  --fvs-display-large: "opsz" 144, "SOFT" 50;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--green-deep); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
}

::selection { background: var(--goldfinch-soft); color: var(--green-deep); }

/* ======================================================================
   HEADER — cream bar with hairline border, Fraunces wordmark + cardinal "."
   ====================================================================== */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.site-header .brand {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: var(--fvs-display);
  font-size: 25px;
  letter-spacing: -0.005em;
  line-height: 1;
  color: var(--green-deep);
  text-decoration: none;
}
.site-header .brand .dot { color: var(--cardinal); }
.site-header .brand:hover { text-decoration: none; }

.site-header nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}
.site-header nav a {
  color: var(--green-deep);
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-header nav a:hover { text-decoration: underline; }
.site-header nav .swatch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.swatch.s-goldfinch { background: var(--goldfinch); }
.swatch.s-bluebird  { background: var(--bluebird); }
.swatch.s-cardinal  { background: var(--cardinal); }
.swatch.s-green     { background: var(--green-mid); }

@media (max-width: 540px) {
  .site-header { padding: 0.85rem 1rem; gap: 0.5rem; flex-wrap: wrap; }
  .site-header nav { gap: 0.9rem; font-size: 12px; }
}

/* ======================================================================
   TYPOGRAPHY
   ====================================================================== */

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: var(--fvs-display-large);
  font-size: 56px;
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--green-deep);
  margin: 0.25rem 0 0.85rem;
  text-wrap: balance;
}
h1 .dot { color: var(--cardinal); }

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: var(--fvs-display);
  font-size: 24px;
  letter-spacing: -0.012em;
  color: var(--green-deep);
  margin: 2.25rem 0 0.85rem;
  border-bottom: 2px solid var(--green-soft);
  padding-bottom: 0.35rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bark);
  margin: 1.5rem 0 0.4rem;
  letter-spacing: -0.005em;
}

/* ======================================================================
   BREADCRUMBS — mono caps, like a chapter slug
   ====================================================================== */

/* Breadcrumbs removed — duplicative with the page H1, the counties row,
   and the "All regions" header nav link. */

/* ======================================================================
   SECTION H2 with right-aligned count/meta chip
   ====================================================================== */

.section-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-h .ct {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ======================================================================
   HERO
   ====================================================================== */

.hero {
  padding: 1.25rem 0 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.hero .zone {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero .zone strong { color: var(--green-deep); font-weight: 500; }

.hero .lede {
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 68ch;
}
/* On index (page-wide), the lede gets a bit more line length still. */
body.is-index .hero .lede { max-width: 72ch; font-size: 18.5px; }

/* Hero stats row — Fraunces numerals over uppercase mono labels */
.stats {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1rem 0 0;
  flex-wrap: wrap;
}
.stats .n {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: var(--fvs-display);
  font-size: 22px;
  color: var(--green-deep);
  margin-right: 6px;
  letter-spacing: -0.012em;
  line-height: 1;
}
/* Geography strip under hero stats — a single field-guide locator panel
   that fuses USDA hardiness zone with the county list. The zone tag sits
   on the left as a leaf-green pill; the counties run rightward with a
   small "X COUNTIES" mono prefix. On mobile the zone wraps to its own
   row and the label stacks above the county list so the wrap doesn't
   sit awkwardly indented. */
.counties-line {
  margin: 0.85rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.55;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
}
.counties-line .cl-zone {
  color: var(--bark);
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.07em;
  /* Pull the pill up so it sits centered against the dashed rule rather
     than floating below the baseline of the mono labels next to it. */
  margin-top: -2px;
}
.counties-line .cl-zone strong {
  color: var(--green-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.counties-line .cl-label {
  color: var(--bark);
  font-weight: 500;
}
.counties-line .cl-counties { flex: 1 1 auto; }
@media (max-width: 540px) {
  .counties-line { gap: 0.45rem 0.7rem; }
  .counties-line .cl-zone {
    /* Span full row on mobile so the zone tag reads as its own panel
       header instead of floating mid-strip with wrap-around counties. */
    flex: 1 0 100%;
    text-align: center;
  }
  .counties-line .cl-label { display: block; margin-bottom: 0.1rem; }
}

/* ======================================================================
   SUBSCRIBE — boxed panel, the primary CTA
   ====================================================================== */

.subscribe {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1rem 1.15rem;
  border-radius: 8px;
  margin: 0 0 2rem;
}

.subscribe h2 {
  margin: 0 0 0.25rem;
  font-size: 20px;
  border: none;
  padding: 0;
}

.subscribe p {
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-size: 14.5px;
}

.ics-url {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.ics-url code {
  flex: 1 1 240px;
  background: var(--cream);
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  /* overflow-wrap: anywhere is friendlier than word-break: break-all —
     it only breaks when no other option exists, so the URL prefers to
     wrap at slashes/dots. The result on truly narrow screens is fewer
     ugly mid-word breaks. */
  overflow-wrap: anywhere;
  letter-spacing: -0.005em;
}

.ics-url button {
  background: var(--cream);
  color: var(--green-deep);
  border: 1px solid var(--green-mid);
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ics-url button svg { display: block; }
.ics-url button:hover {
  background: var(--green-soft);
  color: var(--cream);
  border-color: var(--green-deep);
}
/* On narrow screens the "Copy" label hides and only the icon shows,
   giving the URL more horizontal room before it has to break-all. */
@media (max-width: 480px) {
  .ics-url button { padding: 8px 10px; }
  .ics-url button .copy-label { display: none; }
}

details {
  margin-top: 0.75rem;
  font-size: 13px;
}
details summary {
  cursor: pointer;
  color: var(--green-mid);
  font-weight: 500;
}
details ul { padding-left: 1.25rem; margin: 0.5rem 0 0; }
details li { margin: 0.3rem 0; color: var(--muted); }
details strong { color: var(--ink); }
/* The arrow steps in subscribe instructions use &nbsp; on each side of
   the &rarr; (in the HTML), which keeps the arrow glued to its
   neighboring word. Result: arrows never get orphaned at line ends. */
.subscribe-steps li { line-height: 1.5; }

/* ======================================================================
   COMING UP — underline tabs, day-grouped event list
   ====================================================================== */

.full-feed-hint {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ======================================================================
   LOOKING AHEAD — dense 3-column grid, dashed-rule rows
   ====================================================================== */

.looking-ahead { margin-top: 1rem; }

.ahead {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 0.85rem 1rem;
  font-size: 14px;
  color: var(--ink);
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.75rem;
}
.ahead .row { display: contents; }
.ahead .row:hover .ahead-title a {
  color: var(--green-mid);
  text-decoration: underline;
}

.ahead .when {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--rule);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ahead-title {
  padding-top: 0.4rem;
  border-top: 1px dashed var(--rule);
  min-width: 0; /* allow truncation */
}
.ahead-title a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.ahead-title .src {
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  display: block;
  margin-top: 0.15rem;
}
.ahead-cat {
  padding-top: 0.55rem;
  border-top: 1px dashed var(--rule);
  align-self: start;
}
.ahead-cat .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
/* Reuse source-chip palette for category dot colors */
.ahead-cat .dot.srcc-cardinal { background: var(--cardinal); }
.ahead-cat .dot.srcc-bluebird  { background: var(--bluebird); }
.ahead-cat .dot.srcc-green     { background: var(--green-mid); }
.ahead-cat .dot.srcc-default   { background: var(--rule); }

/* Top dashed border on FIRST row hidden — grid border handles it */
.ahead .row:first-of-type .when,
.ahead .row:first-of-type .ahead-title,
.ahead .row:first-of-type .ahead-cat {
  border-top: none;
  padding-top: 0.1rem;
}

.ahead-empty {
  padding: 1rem 0;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

@media (max-width: 540px) {
  .ahead { grid-template-columns: 80px 1fr auto; gap: 0.6rem 0.75rem; font-size: 13px; }
  .ahead .when { font-size: 11px; }
}

.tabs {
  display: flex;
  gap: 0;
  margin: 0 0 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}

.tabs .tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--bark);
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tabs .tab:hover { color: var(--green-deep); }
.tabs .tab.active {
  color: var(--green-deep);
  border-bottom-color: var(--green-mid);
  font-weight: 600;
}
.tabs .tab .tab-ct {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: 5px;
  font-weight: 500;
}
.tabs .tab.active .tab-ct { color: var(--green-mid); }
/* On narrow screens the four tabs can't fit on a single line — especially
   with 2-digit counts (e.g. "This weekend 16"). Switch to a balanced 2x2
   grid below 640px (covers iPhone Pro Max portrait + small tablets) so we
   never get a 3+1 orphan-row wrap. */
@media (max-width: 640px) {
  /* No bottom border on the container — in the grid layout there's no
     single horizontal line for the active-tab underline to sit on, so
     the indicator becomes a pill-style tint instead (see .tab.active
     below). The grid itself reads as a tab-bar through its 4-cell
     symmetry. */
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border-bottom: none;
    margin-bottom: 1.25rem;
  }
  .tabs .tab {
    padding: 0.6rem 0.4rem;
    font-size: 13px;
    text-align: center;
    /* Drop the bottom-border underline approach — it can't span the
       full row in a grid and would only highlight one cell. */
    border-bottom: none;
    margin-bottom: 0;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
  }
  .tabs .tab.active {
    background: var(--paper);
    border-color: var(--rule);
    /* Subtle leaf-green left accent so the active cell reads as
     "selected" without relying on the now-missing bottom border. */
    box-shadow: inset 3px 0 0 var(--green-mid);
  }
  .tabs .tab .tab-ct { margin-left: 3px; font-size: 10.5px; }
}

/* Day-header rendered into the event list as a <li> */
.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-list .day-h {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: var(--fvs-display);
  font-size: 18px;
  color: var(--bark);
  letter-spacing: -0.01em;
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px dashed var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.event-list .day-h:first-child { margin-top: 0.25rem; }
.event-list .day-h .day-when {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Base card. The 4px left stripe gets recolored per-category by the cat-*
   modifier; webinar uses dotted, pending uses dashed — stripe weight is the
   same so the row rhythm doesn't drift. */
.event {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.65rem 1rem 0.7rem;
  border-radius: 4px;
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: var(--green-mid);
  margin-bottom: 0.55rem;
}

/* Category pill — small uppercase tag at the top of the card with a glyph
   and label. Category color is provided by the .cat-* modifier. */
.event .pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 7px 1px 5px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.event .glyph {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
}

/* Category palette. Solid stripe = in-person; dotted = online (webinar);
   dashed warn-orange = pending/uncategorized so we can spot what to label.
   Stripe color carries the most weight; pill bg is a soft tint of the same. */
.cat-sale      { border-left-color: var(--cardinal); }
.cat-sale      .pill { background: var(--cardinal-soft); color: var(--cardinal-fg); }
.cat-birding   { border-left-color: var(--bluebird); }
.cat-birding   .pill { background: var(--bluebird-soft); color: var(--bluebird-fg); }
.cat-poll      { border-left-color: var(--goldfinch); }
.cat-poll      .pill { background: var(--goldfinch-soft); color: var(--goldfinch-fg); }
/* Program (was workshop) — green-mid, the umbrella for hands-on classes,
   guided outings, demos, tours. Most events end up here. */
.cat-program   { border-left-color: var(--green-mid); }
.cat-program   .pill { background: #e7efde; color: var(--green-deep); }
/* Talk = quiet sage. Distinguishes "sit and listen" from program (do/explore). */
.cat-talk      { border-left-color: #8a9a72; }
.cat-talk      .pill { background: #eef1e6; color: #4a5a32; }
/* Volunteer = bark brown — matches the field-guide pen-and-ink palette;
   reads as "muddy boots, get to work". */
.cat-volunteer { border-left-color: var(--bark); }
.cat-volunteer .pill { background: #efe5d4; color: var(--bark); }
/* Family = soft peach — warm, distinct from any other stripe color. */
.cat-family    { border-left-color: #d97a5a; }
.cat-family    .pill { background: #fbe3d7; color: #8c3a1d; }
/* Festival = dusky plum — celebratory but restrained, distinct from the
   warm/earth tones above. For open houses, exhibits, multi-activity gatherings. */
.cat-festival  { border-left-color: #7c4d8e; }
.cat-festival  .pill { background: #ece2f0; color: #4d2d62; }
.cat-webinar   { border-left-color: var(--bluebird); border-left-style: dotted; }
.cat-webinar   .pill { background: var(--bluebird-soft); color: var(--bluebird-fg); }
.cat-pending   { border-left-color: var(--warn); border-left-style: dashed; }
.cat-pending   .pill { background: #fde8d3; color: #8a2d05; }

.event .title {
  font-weight: 600;
  font-size: 16px;
  color: var(--green-deep);
  line-height: 1.3;
  margin: 0 0 1px;
}
.event .title a {
  color: var(--green-deep);
  text-decoration: none;
}
.event .title a:hover { text-decoration: underline; }

.event .when {
  color: var(--bark);
  font-size: 14px;
  margin: 1px 0 0;
}

.event .loc {
  color: var(--muted);
  font-size: 13px;
  margin: 1px 0 0;
}

/* Source attribution — italic "via" + colored chip with the source name */
.event .src {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.event .src-via { font-style: italic; }
.event .src-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 3px;
}
.event .src-chip a { color: inherit; text-decoration: none; }
.event .src-chip a:hover { text-decoration: underline; }

/* Source-chip palette — colored by source.category_slug */
.srcc-cardinal { background: var(--cardinal-soft); color: var(--cardinal-fg); }
.srcc-bluebird { background: var(--bluebird-soft); color: var(--bluebird-fg); }
.srcc-green    { background: #e7efde;              color: var(--green-deep); }
.srcc-default  { background: var(--cream);         color: var(--muted); }

.event .pending {
  color: var(--warn);
  font-size: 12.5px;
  font-style: italic;
  margin-top: 5px;
}

.event-list .empty {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  list-style: none;
}

/* Empty-state panel — visible enough that the user knows they're looking
   AT the events area (not past it). White card + dashed bark border echoes
   the field-guide aesthetic; sketched empty-nest glyph makes it feel
   curated, not broken. White (not cream) so it stands out from the page. */
.event-list .empty-state {
  list-style: none;
  margin: 0.4rem 0 0.6rem;
  padding: 1.7rem 1rem 1.5rem;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: 6px;
  text-align: center;
}
.empty-state .empty-glyph {
  display: block;
  margin: 0 auto 0.45rem;
  opacity: 0.75;
}
.empty-state .empty-h {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-variation-settings: var(--fvs-display);
  color: var(--bark);
  font-size: 19px;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}
.empty-state .empty-hint {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.empty-state .empty-hint a {
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed var(--rule);
}
.empty-state .empty-hint a:hover {
  color: var(--green-deep);
  border-bottom-color: var(--green-mid);
}

/* ======================================================================
   SOURCES — categorized index
   ====================================================================== */

.sources { margin-top: 2rem; }

/* Compact card-style summary: 2-col grid of dot + source name + category
   meta, grouped under per-kind sub-headers (NATIVE PLANT NURSERIES, etc.). */
.sources-summary {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1rem 1.15rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-size: 13.5px;
}
.sources-summary .srows-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem 1.5rem;
}
@media (max-width: 540px) {
  .sources-summary .srows-grid { grid-template-columns: 1fr; }
}

/* True grouping: each category is its own block in a 2-col layout, with
   an h4 header (dot · name · count) and a bulleted list of sources. */
.sources-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 2rem;
  align-items: start;
}
@media (max-width: 600px) {
  .sources-cats { grid-template-columns: 1fr; gap: 1rem 0; }
}

.src-cat { break-inside: avoid; }
.src-cat h4 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dashed var(--rule);
}
.src-cat h4 .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  align-self: center;
}
.src-cat h4 .ct {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.src-cat ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.src-cat li {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.45;
  padding: 0.15rem 0;
}
.src-cat li a {
  color: var(--ink);
  text-decoration: none;
}
.src-cat li a:hover {
  color: var(--green-deep);
  text-decoration: underline;
}

.sources-summary .srow {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  break-inside: avoid;
  min-width: 0;
}
.sources-summary .srow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  align-self: center;
}
.sources-summary .srow .name {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  flex: 1 1 auto;
  min-width: 0;
}
.sources-summary .srow .name:hover {
  color: var(--green-deep);
  text-decoration: underline;
}
.sources-summary .srow .ct {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Dot colors mirror the source-chip palette used in event cards. */
.sources-summary .dot.srcc-cardinal { background: var(--cardinal); }
.sources-summary .dot.srcc-bluebird  { background: var(--bluebird); }
.sources-summary .dot.srcc-green     { background: var(--green-mid); }
.sources-summary .dot.srcc-default   { background: var(--rule); }

/* ======================================================================
   TRUST line — quiet attribution paragraph at bottom of main
   ====================================================================== */

/* Trust block — wrapper carries the full-width border-top; the inner <p>
   keeps a comfortable reading width and centers itself in the wrapper. */
.trust {
  margin: 2.5rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--rule);
}
.trust p {
  margin: 0 auto;
  max-width: 72ch;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
  text-align: left;
}
.trust strong {
  color: var(--bark);
  font-style: normal;
  font-weight: 600;
}
.trust a { color: var(--green-mid); }

/* ======================================================================
   FOOTER — colophon row + small nav
   ====================================================================== */

.site-footer {
  padding: 1.25rem 1rem 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  /* Nav on left, copyright on right — both pushed to the page edges. */
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-footer .footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--green-mid);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--green-deep);
  text-decoration: underline;
}
.site-footer .colophon { margin: 0.4rem 0 0; font-style: italic; }

/* ======================================================================
   INDEX PAGE
   ====================================================================== */

/* Wider container for index page (mockup uses 880px there vs 760px on region) */
.page-wide { max-width: 880px; }

/* Hero meta line on index — single mono line under the lede */
.hero .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.25rem;
}

/* Index hero h1 italic-em emphasis */
.hero .lede em { color: var(--bark); font-style: italic; }

/* State grouping on index */
.state { margin-bottom: 1.5rem; }
.state h3 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bark);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin: 0 0 0.65rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.state h3 .ct {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Region cards: stacked, full-width, two-column inside (text+events on the
   left, county map on the right filling the same vertical height). Was a
   2-up grid which created an awkward orphan with odd region counts (3 →
   2+1, 5 → 2+2+1) — stacked scales to N regions cleanly. The two-column
   inside layout means the "Coming up" preview fills the whitespace next
   to the map instead of pushing the card taller. */
.regions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.region {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green-mid);
  border-radius: 6px;
  padding: 0.9rem 1.05rem 0.9rem;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 1.2rem;
  transition: border-left-width 0.12s ease, padding-left 0.12s ease,
              box-shadow 0.15s ease;
}
.region:hover {
  border-left-width: 7px;
  padding-left: 0.86rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.06);
}
.region:hover .region-map { opacity: 1.0; }

.rc-left {
  flex: 1;
  min-width: 0;  /* allow long titles to ellipsize inside flex */
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.rc-map {
  flex: 0 0 auto;
  width: 200px;
  max-width: 32%;
  display: flex;
  align-items: center;
}
.rc-map .region-map {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.18s ease;
}
@media (max-width: 480px) {
  .rc-map { display: none; }
}

.region .name {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: var(--fvs-display);
  font-size: 24px;
  color: var(--green-deep);
  letter-spacing: -0.014em;
  line-height: 1.1;
}
.region .stats {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--bark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rc-counties { color: var(--muted); }

/* "Coming up" preview: 3 next events with category-coded dots, fixed-width
   date column, title takes remaining space and ellipsizes if too long. */
.rc-preview {
  margin-top: 0.15rem;
}
.rc-preview-h {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.rc-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.rc-preview-list li {
  display: grid;
  grid-template-columns: 7px 86px 1fr;
  gap: 9px;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.3;
}
/* Category dot — uses the cat-* class on the <li> via a ::before. */
.rc-preview-list li::before {
  content: "";
  display: block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-mid);
  align-self: center;
}
.rc-preview-list li.cat-sale::before      { background: var(--cardinal); }
.rc-preview-list li.cat-birding::before   { background: var(--bluebird); }
.rc-preview-list li.cat-poll::before      { background: var(--goldfinch); }
.rc-preview-list li.cat-program::before   { background: var(--green-mid); }
.rc-preview-list li.cat-talk::before      { background: #8a9a72; }
.rc-preview-list li.cat-volunteer::before { background: var(--bark); }
.rc-preview-list li.cat-family::before    { background: #d97a5a; }
.rc-preview-list li.cat-festival::before  { background: #7c4d8e; }
.rc-preview-list li.cat-webinar::before   { background: var(--bluebird); border: 1px dotted var(--bluebird); background: transparent; }
.rc-preview-list li.cat-pending::before   { background: var(--warn); }

.rc-when {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--bark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rc-title {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.region:hover .rc-title { color: var(--green-deep); }

/* Subtle CTA at bottom of left column. Pushed to flex-end via auto margin
   so it sits on the bottom regardless of how many preview rows render. */
.rc-cta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 0.4rem;
}
.region:hover .rc-cta { color: var(--green-deep); }

.region.empty {
  border-left-color: var(--rule);
  border-style: dashed;
  background: transparent;
}
.region.empty .name { color: var(--muted); }

/* "Why this exists" 3-card explanation grid */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0.75rem 0;
}
@media (max-width: 720px) { .why { grid-template-columns: 1fr; } }
.why-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid;
  border-radius: 6px;
  padding: 0.85rem 1rem 1rem;
}
.why-card.a { border-top-color: var(--cardinal); }
.why-card.b { border-top-color: var(--bluebird); }
.why-card.c { border-top-color: var(--goldfinch); }
.why-card h4 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: var(--fvs-display);
  font-size: 16px;
  color: var(--green-deep);
  letter-spacing: -0.012em;
  margin: 0 0 0.4rem;
}
.why-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.why-card code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--cream);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  color: var(--bark);
}

/* Footer copyright on index — mono caps */
.site-footer .copyright {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Adapt the site-header / footer on wide pages (index + region) */
body.is-index .site-header,
body.is-region .site-header { max-width: 880px; }
body.is-index .site-footer,
body.is-region .site-footer { max-width: 880px; }

/* Old region-grid (legacy) — keep but unused */
.region-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1rem 0;
}
@media (max-width: 600px) { .region-grid { grid-template-columns: 1fr; } }

.region-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green-mid);
  border-radius: 6px;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-left-width 0.1s ease, padding-left 0.1s ease;
}
.region-card:hover {
  border-left-width: 6px;
  padding-left: 0.8rem;
  text-decoration: none;
}
.region-card .rc-name {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: var(--fvs-display);
  font-size: 19px;
  color: var(--green-deep);
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.region-card .rc-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.region-empty {
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 1.5rem 0;
}

.about p { font-size: 15px; color: var(--ink); max-width: 52ch; }

/* Index hero h1 is bigger than region hero (per design — homepage h1
   carries more visual weight when there's no city name). */
body.is-index h1 { font-size: 64px; max-width: 16ch; }
@media (max-width: 540px) {
  body.is-index h1 { font-size: 40px; }
}

/* ======================================================================
   404 PAGE
   ====================================================================== */

.e404 { padding: 2.5rem 0 3rem; max-width: 560px; margin: 0 auto; }
.e404 .num {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: var(--fvs-display-large);
  font-size: 132px;
  line-height: 0.82;
  color: var(--cardinal);
  letter-spacing: -0.04em;
  margin: 0 0 0.4rem;
}
.e404 h1 {
  font-size: 38px;
  border: none;
  padding: 0;
  margin: 0 0 0.85rem;
  max-width: 14ch;
  text-wrap: balance;
}
.e404 .lede {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 50ch;
  margin: 0 0 1.5rem;
}
.e404 .suggest h3 {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "opsz" 64, "SOFT" 50;
  font-size: 16px;
  color: var(--bark);
  margin: 0 0 0.6rem;
  letter-spacing: -0.005em;
}
.e404 .suggest a {
  display: block;
  padding: 0.65rem 0;
  border-top: 1px dashed var(--rule);
  color: var(--green-mid);
  font-size: 14.5px;
  text-decoration: none;
}
.e404 .suggest a:hover { color: var(--green-deep); text-decoration: underline; }
.e404 .suggest a:last-child { border-bottom: 1px dashed var(--rule); }
.e404 .suggest a .arrow { float: right; color: var(--rule); }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */

@media (max-width: 540px) {
  main { padding: 0 1rem 0.5rem; }
  h1 { font-size: 40px; }
  h2 { font-size: 20px; }
  .hero .lede { font-size: 16px; }
  .stats { gap: 1rem; }
  .stats .n { font-size: 18px; }
  .subscribe { padding: 0.85rem 1rem; }
  .ics-url code { font-size: 11.5px; padding: 6px 8px; letter-spacing: -0.012em; }
  .e404 .num { font-size: 96px; }
  .e404 h1 { font-size: 30px; }
}
