:root {
  --cream: #f3e8d0;
  --cream-deep: #e7d3b0;
  --paper: #fbf6ec;
  --charcoal: #252522;
  --forest: #3f5145;
  --rust: #9a4b30; /* 4.5:1+ on cream and paper (audit #14); was #a55236 */
  --mustard: #c89a43;
  --line: rgba(37, 37, 34, 0.35);
  --font-display: "Anton", Impact, "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --font-headline: "Barlow Condensed", "OSM Headline Narrow", "OSM Headline", "Arial Narrow", "Franklin Gothic Medium", Impact, sans-serif;
  --font-serif: "Source Serif 4", "OSM Serif", "OSM Serif Times", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --font-sans: "Source Sans 3", "OSM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 68ch;
  --shell: 1120px;
}

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin-400-normal.912c3c9f2621.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-latin-700-normal.e1180918b873.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-normal.95bbd98f2b3c.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-600-normal.beb0c8d8bee8.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-italic.fa10869cc45e.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.27ab01c4cb50.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.9a35cba76eda.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Fallback faces sized to the web fonts' widths and line metrics, so text does not reflow when
   the web fonts arrive. Values are measured against Arial, Arial Narrow and Georgia metrics. */
@font-face {
  font-family: "OSM Headline Narrow";
  src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Liberation Sans Narrow Bold");
  font-weight: 100 900;
  size-adjust: 93.2%;
  ascent-override: 107.3%;
  descent-override: 21.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "OSM Headline";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Roboto Bold"), local("Roboto-Bold");
  font-weight: 100 900;
  size-adjust: 77%;
  ascent-override: 130%;
  descent-override: 26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "OSM Sans";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Roboto"), local("Roboto-Regular");
  size-adjust: 94.5%;
  ascent-override: 108.4%;
  descent-override: 42.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "OSM Serif";
  src: local("Georgia"), local("Gelasio");
  size-adjust: 108.6%;
  ascent-override: 95.4%;
  descent-override: 30.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "OSM Serif Times";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif");
  size-adjust: 119.5%;
  ascent-override: 86.7%;
  descent-override: 28%;
  line-gap-override: 0%;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

a:hover { color: var(--forest); }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.6rem 0.9rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

.visually-hidden,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(var(--shell), calc(100% - 2rem));
  /* 100% can fail to resolve when a child wants to be wider than the screen. The viewport cap stops that from opening a sideways scroll. */
  max-width: calc(100vw - 2rem);
  margin-inline: auto;
}

/* One reading layout (issue #53): a narrower column sits on the left edge of the page shell,
   the same edge story, place, guide and dispatch pages start from, not centered in it. */
.shell.prose,
.shell--narrow {
  margin-inline: calc((100% - min(var(--shell), 100% - 2rem)) / 2) auto;
}
.shell--narrow { max-width: 42rem; }

h1, h2, h3, .hero-title {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0;
}

.shell > h2 {
  margin: 2.75rem 0 0;
  padding-bottom: 0.7rem;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
}

.shell > h2 + p {
  margin: 0 0 1.75rem;
}

.shell > .grid,
.shell > .town-index,
.shell > .era-index,
.shell > .account-list,
.shell > .frame,
.shell > .card,
.shell > .panel {
  margin-top: 1.5rem;
}

.shell > .grid + p,
.shell > .town-index + p,
.shell > .era-index + p,
.shell > .account-list + p {
  margin-top: 1.5rem;
}

.shell > h2 + .grid,
.shell > h2 + .town-index,
.shell > h2 + .era-index,
.shell > h2 + .account-list {
  margin-top: 1.05rem;
}

.utility-bar { border-top: 1px solid var(--line); }
.utility-bar .shell { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.utility-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--charcoal);
  border-bottom: 2px solid transparent;
}
.utility-bar a:hover, .utility-bar a[aria-current] { color: var(--rust); border-bottom-color: var(--rust); }
.header-shop { position: relative; }
.header-shop__count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--rust);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.05rem;
  text-align: center;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  /* Sized to fill the shell. Anton caps are tall, so the line box has to clear them when the name wraps. */
  font-size: clamp(3.15rem, 8.4vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
}

.kicker {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 0.6rem;
}

.meta, .help, .credit {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--charcoal);
}
.help { font-size: 1rem; }

.section-head { margin-bottom: 1.5rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.section-head p { margin: 0.7rem 0 0; }
/* A linked section heading reads as a heading: no underline until hover or keyboard focus. */
.section-head h2 a { color: inherit; text-decoration: none; }
.section-head h2 a:hover, .section-head h2 a:focus-visible { text-decoration: underline; text-underline-offset: 0.12em; }

.band { padding: 2.8rem 0; border-top: 1px solid var(--charcoal); }
.band--first { border-top: 0; }

button { font-size: inherit; }
.button, button, .menu-button {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--charcoal);
  color: var(--cream);
  border: 1px solid var(--charcoal);
  min-height: 44px;
  padding: 0.7rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
}
.button:hover, button:hover, .menu-button:hover { color: var(--cream); background: var(--forest); border-color: var(--forest); }
.button--ghost {
  background: transparent;
  color: var(--charcoal);
}
.button--ghost:hover { background: var(--charcoal); color: var(--cream); }
.button--rust {
  background: var(--rust);
  color: var(--cream);
  border-color: var(--rust);
}
.button--rust:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.button--small { min-height: 44px; padding: 0.45rem 0.75rem; font-size: 0.875rem; }

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header { border-bottom: 1px solid var(--charcoal); background: var(--cream); }
.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  min-height: 4.8rem;
  padding: 0.6rem 0;
}
/* Issue #27: the wordmark is the link. Issue #59: the no-tagline lockup (367.7:38.51) at every
   width, 24px tall. Sized by width with height auto, so it shrinks in proportion, never squashes. */
.brand { display: flex; align-items: center; min-width: 0; min-height: 48px; text-decoration: none; color: inherit; }
.brand__logo { display: block; width: 230px; max-width: 100%; height: auto; aspect-ratio: 367.7 / 38.51; }
@media (max-width: 479px) {
  .brand__logo { width: 200px; } /* about 21px tall */
}
/* Issue #59: about 32px between menu items, all on one baseline. */
.primary-nav { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.primary-nav a, .site-footer a {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.875rem;
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a[aria-current] { border-bottom-color: var(--rust); }
.nav-group { position: relative; display: flex; align-items: center; gap: 0.15rem; }
.header-tools { display: flex; gap: 0.5rem; align-items: center; }
.header-tools .header-cta { white-space: nowrap; }
/* Issue #59: icon links (search, account). A 20px icon in a 44px tap area. */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--charcoal);
  text-decoration: none;
}
.icon-link:hover, .icon-link[aria-current] { color: var(--rust); }
.icon-link svg { display: block; }
.menu-button { display: none; }
.menu-button__close { display: none; }

.hero { padding: 2.25rem 0 2.75rem; }
.hero /* No italics anywhere (Tyler, Oct 11): browsers italicize these by default. <cite> keeps its
   italic for cited titles; the Source Serif 4 italic face above exists only for that. */
em, i, address, dfn, var { font-style: normal; }

.ridge { display: block; }
.ridge { width: min(280px, 70%); height: 42px; color: var(--charcoal); margin-bottom: 0.4rem; }
.tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-style: normal;
  margin: 1rem 0 0.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Homepage community question card. */
.prompt-card h2 { margin-bottom: 0.9rem; }
.prompt-card form { display: grid; gap: 0.75rem; }
.prompt-card textarea { min-height: 5.5rem; font-family: var(--font-serif); font-size: 1.15rem; }
.prompt-card__lead { font-family: var(--font-headline); font-weight: 700; font-size: 1.35rem; color: var(--charcoal); }
.prompt-card .help { margin: 0.75rem 0 0; }

/* Homepage If shuffle: a deck the width of the page. The face is the line you play. */
.if-shuffle { max-width: none; width: 100%; min-width: 0; }
.if-deck { position: relative; margin: 0 0 1.25rem; padding: 0 12px 12px 0; max-width: 100%; min-width: 0; }
.if-deck__back {
  position: absolute;
  inset: 12px 0 0 12px;
  background: var(--cream-deep);
  border: 1px solid var(--charcoal);
}
.if-deck__back--mid { inset: 6px 6px 6px 6px; background: var(--paper); }
.if-deck__face {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--charcoal);
  box-shadow: 4px 4px 0 var(--charcoal);
  padding: 1.15rem 1.2rem 1.2rem;
  min-width: 0;
}
/* The old card leaves, then the next one slides off the pile. First paint stays still. */
.htmx-swapping .if-deck__face {
  animation: if-discard 200ms ease-in forwards;
  pointer-events: none;
}
.if-deck__face.is-dealt { animation: if-deal 380ms cubic-bezier(0.16, 0.84, 0.24, 1); }
@keyframes if-discard {
  to { transform: translate(-12%, -16px) rotate(-3deg); opacity: 0; }
}
@keyframes if-deal {
  from { transform: translate(16px, 12px) rotate(1.6deg); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .htmx-swapping .if-deck__face,
  .if-deck__face.is-dealt { animation: none; }
}
.if-shuffle__line {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.3;
  margin: 0;
  overflow-wrap: break-word;
}
.if-shuffle__line a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.if-shuffle__stack { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 0.65rem; min-width: 0; }
.if-shuffle__stack > .if-shuffle__line { grid-area: 1 / 1; min-width: 0; max-width: 100%; }
.if-shuffle__sizer { visibility: hidden; }
.if-deck__face > .meta { min-height: 1.5em; margin: 0; }
#if .section-head { max-width: none; } /* #102: the H2 fits one line at 1440. */
.if-deck .reactions { position: relative; margin-top: 1rem; padding-bottom: 1.5rem; min-width: 0; }
.if-deck .reactions__label { margin: 0 0 0.4rem; }
/* "Counted." sits in the padding, so the deal button never moves. */
.if-deck .help { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
.if-deck .reaction-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem; min-width: 0; }
/* Phone: the column is half the card, so a long label wraps instead of widening the page. */
.if-deck .reaction {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--charcoal);
  background: var(--cream);
  height: auto;
  min-height: 48px;
  padding: 0.35rem 0.4rem;
  justify-content: center;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  white-space: normal;
}
/* The tally sits in reserved space, so a new count never shoves Give Me Another. */
.if-deck .reaction__count {
  position: absolute;
  right: 0.35rem;
  min-width: 1em;
  text-align: right;
}
@media (min-width: 720px) {
  .if-deck .reaction-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .if-deck .reaction {
    height: 48px;
    padding: 0 1.25rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .if-deck .reaction__count { right: 0.7rem; min-width: 1.25em; }
}
.if-deck .reaction:hover,
.if-deck .reaction.is-mine { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.if-deck__deal { margin: 1rem 0 0; }
.if-deck__deal .button { width: 100%; }
.if-shuffle__got {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
}
.if-shuffle__empty { font-family: var(--font-serif); font-size: 1.2rem; margin: 0 0 1.25rem; }

/* Place page: the If lines sit in the article, not in a second box. */
.place-memories { margin: 2.25rem 0 1.25rem; }
.place-memories h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.35rem; }
.place-memories__lead { margin: 0 0 1rem; font-family: var(--font-serif); }
.place-memories__pile { display: grid; gap: 0.75rem; margin: 0 0 1.15rem; max-width: 40rem; }
.place-memories__ask { margin: 0 0 0.35rem; }
.place-memories__fix { font-family: var(--font-sans); margin: 0.75rem 0 0; }

.panel {
  border: 1px solid var(--charcoal);
  background: var(--paper);
  padding: 1.25rem;
}
.panel h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.4rem; }
.sentence-label { font-family: var(--font-serif); font-style: normal; font-size: 1.35rem; margin: 0 0 0.8rem; }

.grid { display: grid; gap: 1rem; align-items: start; } /* #74: a text card keeps its own height beside a photo card. */
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.card, .quote-card {
  position: relative;
  border: 1px solid var(--charcoal);
  background: var(--paper);
  padding: 1rem 1rem 1.1rem;
  transition: box-shadow 120ms ease, transform 120ms ease;
}
.card__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.card__title { font-size: 1.8rem; margin-bottom: 0.45rem; }
/* Card titles are h2 on list pages and h3 under a section heading (audit #12); same look either way. */
.card .card__title, .quote-card .card__title { font-family: var(--font-headline); font-weight: 700; line-height: 0.92; }
/* Padding gives the title link a 44px tap height (audit #7); the negative margin keeps the layout as it was. */
.card__title a { display: inline-block; padding-block: 0.625rem; margin-block: -0.625rem; text-decoration: none; }
/* The headline link stretches over the whole card; it stays the only link so screen readers hear just the title. */
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover, .quote-card:hover { box-shadow: 4px 4px 0 var(--charcoal); transform: translate(-2px, -2px); }
.card:hover .card__title a, .quote-card:hover .card__title a { text-decoration: underline; }
.card__title a:focus-visible { outline: none; text-decoration: underline; }
.card:has(.card__title a:focus-visible), .quote-card:has(.card__title a:focus-visible) { outline: 3px solid var(--rust); outline-offset: 3px; }
/* Memory lines on cards: bold Barlow like the memory page H1 (Tyler, Oct 11); size and spacing unchanged. */
.quote-card .card__title { font-family: var(--font-headline); font-weight: 700; font-style: normal; line-height: 1.25; letter-spacing: 0; }
/* Optional card photo (audit #6): a fixed 4:3 box, so a loading image never shifts the card. */
.card__media { margin: -1rem -1rem 0.9rem; }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--charcoal);
}
.card p, .quote-card p { margin: 0.35rem 0; }
/* Text-only cards: newspaper lead, not a photo card with the picture missing. */
.card--text {
  padding: 1.25rem 1.2rem 1.35rem;
  background:
    linear-gradient(180deg, var(--cream-deep) 0, var(--cream-deep) 0.35rem, transparent 0.35rem),
    var(--paper);
}
.card--text .kicker {
  margin: 0 0 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.card--text .card__title { margin-bottom: 0.4rem; }
.card--text .card__body > p:last-child { margin-bottom: 0; }
.home-lead__feature .card--text {
  padding: 1.5rem 1.4rem 1.55rem;
  background:
    linear-gradient(180deg, var(--cream-deep) 0, var(--cream-deep) 0.45rem, transparent 0.45rem),
    var(--paper);
}
.home-lead__feature .card--text .card__title { font-size: clamp(2rem, 3.4vw, 2.85rem); }
.home-lead__feature .card--text .card__body > p:not([class]) {
  font-size: 1.125rem;
  line-height: 1.45;
  max-width: 42ch;
}

.town-index, .era-index { display: grid; grid-template-columns: 1fr; }
.town-index a, .era-index a {
  display: block;
  text-decoration: none;
  border: 1px solid var(--charcoal);
  padding: 0.9rem 1rem;
  background: var(--paper);
  margin: -1px 0 0;
}
.town-index a:hover, .era-index a:hover { background: var(--cream-deep); }
.town-index a:hover strong, .era-index a:hover strong { color: var(--rust); }
.town-index a:focus-visible, .era-index a:focus-visible {
  position: relative;
  outline: 3px solid var(--rust);
  outline-offset: -3px;
}
.town-index strong, .era-index strong {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.era-index { grid-template-columns: repeat(2, 1fr); }
.era-index a { margin: 0; }
.town-index--compact { grid-template-columns: repeat(2, 1fr); }
.era-index--compact a { padding: 0.75rem 0.8rem; }
.era-index--compact strong { font-size: 1.5rem; }
.browse-split > div + div { margin-top: 2.5rem; }
.town-index--compact a { margin: 0; padding: 0.75rem 0.8rem; }
.town-index--compact strong { font-size: 1.35rem; line-height: 1.05; overflow-wrap: anywhere; }

.frame { margin: 0; }
.frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--cream-deep);
  border: 1px solid var(--charcoal);
}
.frame figcaption {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}

/* Story photo: a small print in the text, whole picture, not a cropped banner. */
.prose { display: flow-root; }
.prose > .polaroid {
  width: min(15rem, 78%);
  margin: 0.35rem auto 1.6rem;
  padding: 0.55rem 0.55rem 0.7rem;
  background: #fffdf8;
  border: 1px solid var(--charcoal);
  box-shadow: 4px 5px 0 var(--charcoal);
  transform: rotate(-1.5deg);
}
.prose > .polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  border: 0;
  background: var(--cream-deep);
}
.prose > .polaroid figcaption {
  display: block;
  margin: 0.65rem 0.15rem 0.1rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.25;
}
.prose > .polaroid figcaption span { display: block; }
.prose > .polaroid figcaption .credit {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 720px) {
  .prose > .polaroid {
    float: right;
    width: 17rem;
    margin: 0.15rem 0 0.85rem 1.5rem;
  }
}

.filters { display: grid; gap: 0.8rem; margin: 1rem 0 1.5rem; }
/* Issue #44: on wider screens the tucked-away filters sit in the same grid as everything else. */
.filters__more { display: contents; }
.filters__toggle { justify-self: start; min-height: 48px; }
.filters__toggle[hidden] { display: none; }
@media (min-width: 601px) { .filters__toggle { display: none; } }
@media (max-width: 600px) {
  .filters__more { display: grid; gap: 0.8rem; }
  .filters.is-collapsed .filters__more { display: none; }
}
/* autosubmit.js hides the Filter button; .button's display would otherwise win over [hidden]. */
[data-autosubmit] [hidden] { display: none; }
.field { margin-bottom: 0.9rem; }
.field label, .filters label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.optional { font-weight: 400; letter-spacing: 0; text-transform: none; }
.input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="tel"], input[type="file"], textarea, select {
  width: 100%;
  background: var(--paper);
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  border-radius: 0;
  padding: 0.75rem 0.8rem;
  font: inherit;
  font-size: 1rem;
}
textarea { min-height: 8rem; }
.field--check label,
.filters .field--check label { text-transform: none; letter-spacing: 0; font-size: 1rem; font-family: var(--font-serif); font-weight: 400; display: flex; gap: 0.7rem; align-items: center; min-height: 44px; width: 100%; cursor: pointer; }
/* 24px boxes inside a full-width label, so the words are part of the target (audit #7). */
.field--check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--charcoal); }
/* Inline errors (audit #13): rust, with a mark, tied to the field by aria-describedby. */
.errorlist { list-style: none; padding: 0; margin: 0.35rem 0 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--rust); }
.errorlist li { display: flex; gap: 0.45rem; align-items: flex-start; }
.errorlist li::before {
  content: "!";
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--rust);
  color: var(--paper);
  font-size: 0.875rem;
  line-height: 1.2rem;
  text-align: center;
}
.field--error .input, .field--error input, .field--error textarea, .field--error select { border: 2px solid var(--rust); }
.error-summary {
  border-left: 4px solid var(--rust);
  background: var(--paper);
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}
.error-summary__title { margin: 0 0 0.3rem; font-weight: 600; color: var(--rust); }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: var(--rust); display: block; padding-block: 0.55rem; }
.messages { list-style: none; padding: 1rem 0 0; margin: 0; }
.message { border-left: 4px solid var(--forest); padding: 0.6rem 0.8rem; background: var(--paper); }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; }
.prose h2 { font-size: 2.2rem; margin: 1.6rem 0 0.5rem; }
.prose h3 { font-size: 1.6rem; margin: 1.2rem 0 0.4rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--rust); font-style: normal; }
.prose a { color: var(--forest); }

.detail-title { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 18ch; }
.byline { font-family: var(--font-sans); margin: 0.8rem 0 1.2rem; }
.facts { display: grid; gap: 0.4rem 1rem; margin: 1rem 0; }
.facts div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0.5rem; border-top: 1px solid var(--line); padding-top: 0.4rem; min-width: 0; }
.facts dt { font-family: var(--font-sans); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.demo-flag {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  border: 1px solid var(--charcoal);
  padding: 0.55rem 0.7rem;
  background: var(--cream-deep);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0; }
.badge {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--charcoal);
  padding: 0.25rem 0.45rem;
}
.badge--rust { background: var(--charcoal); color: var(--cream); }
.sponsored {
  border: 1px solid var(--charcoal);
  padding: 0.8rem;
  margin: 1rem 0;
  background: var(--paper);
}
.sponsored strong { font-family: var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.875rem; }

.share-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1rem 0 0; }
.reactions { margin-top: 1.5rem; }
.reactions__label { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.875rem; font-weight: 600; }
.reaction-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.reaction {
  background: transparent;
  color: var(--charcoal);
  gap: 0.45rem;
}
.reaction.is-mine { background: var(--charcoal); color: var(--cream); }
.reaction__count { font-variant-numeric: tabular-nums; }

.pager { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 1.5rem; font-family: var(--font-sans); }
.pager__link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--charcoal); font-weight: 600; text-decoration: none; }
.pager__link:hover { background: var(--cream-deep); }
.see-all { margin: 1rem 0 2rem; font-family: var(--font-sans); font-weight: 600; }
.band .see-all { margin-bottom: 0; }
.see-all a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }
.go-say-hi { margin: 1rem 0 0; font-family: var(--font-serif); font-size: 1.125rem; }
/* Rows of short links (sort order, story piles): 44px tall each, 8px apart (audit #7). */
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; font-family: var(--font-sans); }
.link-row a { display: inline-flex; align-items: center; min-height: 44px; }
.filter-note { font-family: var(--font-sans); margin: 0 0 1.25rem; }
.kicker a { display: inline-flex; align-items: center; min-height: 44px; }
.category-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.category-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0.45rem 0.9rem; border: 1px solid var(--charcoal); font-family: var(--font-sans); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.category-nav a:hover { background: var(--cream-deep); color: inherit; }
.category-nav a[aria-current] { background: var(--charcoal); color: var(--cream); }
.filter-note a { margin-left: 0.5rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 0.5rem; list-style: none; padding: 0; margin: 0 0 0.6rem; font-family: var(--font-sans); font-size: 0.875rem; }
.crumbs li { display: flex; align-items: center; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.5rem; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { padding-inline: 0.3rem; margin-inline: -0.3rem; }
/* Links in help text: taller hit area, same line layout (audit #7). */
.help a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }

.account-list { list-style: none; padding: 0; margin: 0; }
.account-list li { border-top: 1px solid var(--charcoal); padding: 0.8rem 0; }
.account-list a { font-family: var(--font-headline); font-size: 1.5rem; text-decoration: none; }
.account-list li:has(.account-list__link) { position: relative; }
.account-list li:has(.account-list__link):hover { background: var(--cream-deep); }
.account-list__link::after { content: ""; position: absolute; inset: 0; }
.account-list li:hover .account-list__link { text-decoration: underline; }
.status { font-family: var(--font-sans); font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase; }

.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 2.5rem 0 3rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--mustard); }
.footer-grid { display: grid; gap: 1.25rem 2rem; }
.footer-logo { display: block; width: min(100%, 18rem); height: auto; }
.footer-tag { margin: 0.35rem 0 0; }
.footer-aside { display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.site-footer nav.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  align-items: center;
}
.site-footer nav a,
.site-footer nav .footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border-bottom: 0;
}
.site-footer .footer-link {
  all: unset;
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}
.site-footer .footer-link:hover { color: var(--mustard); background: none; border: 0; }
.site-footer .footer-link:focus-visible { outline: 2px solid var(--mustard); outline-offset: 2px; }

.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1rem;
  background: var(--paper);
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  box-shadow: 4px 4px 0 var(--charcoal);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 0.75rem; font-family: var(--font-sans); font-size: 1rem; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.desk-link { font-family: var(--font-sans); font-size: 0.9rem; }

/* Issue #37, #59: the Menu button covers everything below 960px. The simpler header fits on one
   row down to about 920px, so 960 leaves a margin and it never wraps. */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr 1fr; }
  .town-index { grid-template-columns: 1fr 1fr; }
  .era-index { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .footer-grid { grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.4fr); align-items: start; }
  .split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 2rem; align-items: start; }
  .town-index--compact, .era-index--compact { grid-template-columns: repeat(4, 1fr); }
  .home .town-index--compact { grid-template-columns: repeat(3, 1fr); }
  .browse-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
  .browse-split > div + div { margin-top: 0; }
  .browse-split .town-index--compact, .browse-split .era-index--compact { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0 1rem; align-items: end; }
  .newsletter-form > .error-summary { grid-column: 1 / -1; }
  .newsletter-form > .button { margin-bottom: 0.9rem; }
}

@media (max-width: 959px) {
  .header-bar {
    grid-template-columns: 1fr auto;
    grid-template-rows: 3.6rem;
    min-height: 0;
    row-gap: 0.6rem;
  }
  .brand, .header-tools { grid-row: 1; }
  .header-tools { grid-column: 2; }
  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0.8rem;
  }
  .nav-toggle:checked ~ .header-bar .primary-nav { display: flex; }
  .header-tools { gap: 0.25rem; }
  /* Issue #59: the phone bar is logo, search, Menu. Share a memory opens the menu instead. */
  .header-cta { display: none; }
  .menu-button {
    display: inline-flex;
    min-height: 44px;
    width: 5rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    background: transparent;
    color: var(--charcoal);
  }
  .nav-toggle:checked ~ .header-bar .menu-button__open { display: none; }
  .nav-toggle:checked ~ .header-bar .menu-button__close { display: inline; }
  .primary-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav-group { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-toggle:focus-visible ~ .header-bar .menu-button { outline: 2px solid var(--rust); outline-offset: 3px; }
}

/* Phones: one slogan, a smaller title, and both buttons on the first screen (audit #10). */
/* Not header: stays at the old 860px break. */
@media (max-width: 860px) {
  .facts div { grid-template-columns: minmax(6.5rem, 8rem) minmax(0, 1fr); }
}

@media (max-width: 719px) {
  .band { padding: 2.5rem 0; }
  .quote-card .card__title { font-size: 1.45rem; }
  .card__title { font-size: 1.65rem; }
  .hero { padding: 1.5rem 0 2.25rem; }
  .ridge { height: 34px; margin-bottom: 0.2rem; }
  .tagline { font-size: 1.45rem; margin: 0.8rem 0 0.3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 1.25rem; }
  .hero-actions .button { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* The Dispatch signup (newsletter/_form.html). Flat card like the story cards. */
.dispatch [hidden] { display: none !important; }
.dispatch:not(.dispatch--compact):not(.dispatch--home) {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--charcoal);
  background: var(--paper);
  padding: 1.5rem 1.25rem;
}
.dispatch__intro { margin: 0 0 1.1rem; }
.dispatch__eyebrow { font-family: var(--font-sans); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.4rem; }
.dispatch__title { font-family: var(--font-headline); font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 0.4rem; }
.dispatch__pitch { font-family: var(--font-serif); font-size: 18px; margin: 0; }
.dispatch:not(.dispatch--home) .dispatch__pitch { margin: 0 0 1.1rem; }
/* Homepage: charcoal band, cream type, no nested paper card. */
.band--dispatch {
  background: var(--charcoal);
  color: var(--cream);
  border-top-color: var(--charcoal);
}
.dispatch--home { max-width: none; margin: 0; padding: 0.4rem 0 0.2rem; }
.dispatch--home .dispatch__eyebrow { color: var(--mustard); }
.dispatch--home .dispatch__title { color: var(--cream); font-size: clamp(2.4rem, 5vw, 3.4rem); }
.dispatch--home .dispatch__pitch { color: rgba(243, 232, 208, 0.88); font-size: 1.125rem; max-width: 36ch; }
.dispatch--home .dispatch__field label { color: var(--cream); }
.dispatch--home .optional { color: rgba(243, 232, 208, 0.65); }
.dispatch--home .input { background: var(--cream); border-color: var(--cream); color: var(--charcoal); }
.dispatch--home .dispatch__button { background: var(--mustard); color: var(--charcoal); border-color: var(--mustard); }
.dispatch--home .dispatch__button:hover { background: var(--cream); border-color: var(--cream); }
.dispatch--home .dispatch__privacy { color: rgba(243, 232, 208, 0.72); }
.dispatch--home .dispatch__privacy a { color: var(--mustard); }
.dispatch--home .dispatch__error, .dispatch--home .dispatch__server-error { color: var(--mustard); }
.dispatch--home .dispatch__success h3 { color: var(--cream); }
.dispatch--home .input:focus-visible,
.dispatch--home .dispatch__button:focus-visible,
.dispatch--home a:focus-visible { outline-color: var(--mustard); }
@media (min-width: 800px) {
  .dispatch--home {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 2rem 3rem;
    align-items: end;
  }
  .dispatch--home .dispatch__intro { grid-column: 1; grid-row: 1; margin: 0; }
  .dispatch--home .dispatch__form { grid-column: 2; grid-row: 1; margin: 0; }
  .dispatch--home > .visually-hidden { position: absolute; }
  .dispatch--home .dispatch__success { grid-column: 1 / -1; }
}
.dispatch__row { display: flex; flex-direction: column; gap: 0.9rem; }
.dispatch__field label { display: block; font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; }
.dispatch .input { height: 48px; padding-top: 0; padding-bottom: 0; }
.dispatch .input:focus-visible, .dispatch__button:focus-visible, .dispatch a:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.dispatch__button {
  width: 100%;
  min-height: 48px;
  height: 48px;
  background: var(--charcoal);
  color: var(--cream);
  border: 1px solid var(--charcoal);
}
.dispatch__button:disabled { opacity: 0.75; cursor: progress; }
.dispatch__error, .dispatch__server-error { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; color: var(--rust); margin: 0.35rem 0 0; display: flex; gap: 0.45rem; align-items: flex-start; }
.dispatch__server-error { margin: 0 0 0.75rem; }
.dispatch__error::before, .dispatch__server-error::before {
  content: "!";
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--rust);
  color: var(--paper);
  font-size: 0.875rem;
  line-height: 1.2rem;
  text-align: center;
}
.dispatch .field--error .input { border: 2px solid var(--rust); }
.dispatch__privacy { font-family: var(--font-sans); font-size: 0.95rem; margin: 0.9rem 0 0; }
.dispatch__success h3 { font-family: var(--font-headline); font-size: 2rem; margin: 0 0 0.4rem; }
.dispatch__success:focus { outline: none; }

/* Typable dropdowns (site.js). Same paper, rule and offset shadow as the nav panel. */
.combo { position: relative; }
.combo--ready .combo__input { padding-right: 2.5rem; }
/* Keep the native <select> in the form for no-JS, but out of the way once JS is ready. */
.combo--ready > select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}
.combo--ready::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.combo--open::after { transform: translateY(-50%) rotate(-135deg); }
.combo__panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 30;
  min-width: 15rem;
  background: var(--paper);
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  box-shadow: 4px 4px 0 var(--charcoal);
}
.combo__list {
  position: relative;
  max-height: min(18rem, 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
}
.combo__option {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.75rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.combo__name {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--charcoal);
}
.combo__name mark { background: none; color: var(--rust); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.combo__county { margin-left: auto; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(37, 37, 34, 0.7); }
.combo__option:hover { background: var(--cream); }
.combo__option[aria-selected="true"] { background: var(--cream-deep); border-left-color: var(--rust); }
.combo__option[aria-selected="true"] .combo__name { color: var(--rust); }
.combo__empty { margin: 0; padding: 0.8rem 0.9rem; font-family: var(--font-sans); }

/* Footer compact: charcoal band, cream text, cream button. */
.footer-dispatch { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(243, 232, 208, 0.35); }
.dispatch--compact { max-width: 720px; }
.dispatch--compact .dispatch__field label { text-transform: none; letter-spacing: 0; font-size: 1.1rem; }
.dispatch__footer-title { margin: 0; font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; }
.dispatch__footer-eyebrow { margin: 0.1rem 0 0; font-family: var(--font-sans); font-size: 0.875rem; color: rgba(243, 232, 208, 0.75); }
.dispatch--compact .footer-pitch { margin: 0.1rem 0 0.6rem; }
.dispatch__cadence { margin: 0.6rem 0 0; font-family: var(--font-sans); font-size: 0.95rem; }
.dispatch--compact .input { background: var(--cream); }
.dispatch--compact .dispatch__button { background: var(--cream); color: var(--charcoal); border-color: var(--cream); }
.dispatch--compact .dispatch__button:hover { background: var(--mustard); border-color: var(--mustard); color: var(--charcoal); }
.dispatch--compact .input:focus-visible, .dispatch--compact .dispatch__button:focus-visible, .dispatch--compact a:focus-visible { outline-color: var(--mustard); }
.dispatch--compact .dispatch__error, .dispatch--compact .dispatch__server-error { color: var(--cream); }
.dispatch--compact .dispatch__success h3 { color: var(--cream); }

@media (min-width: 720px) {
  .dispatch:not(.dispatch--compact):not(.dispatch--home) { padding: 2rem; }
  /* Labels, 48px controls and errors each share a row, so a wrapped label never knocks the
     controls out of line. Home keeps the stacked column: its form shares the band with the
     pitch, so a three-up row crushes the inputs. */
  .dispatch:not(.dispatch--home) .dispatch__row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    grid-template-rows: auto 48px auto;
    column-gap: 0.75rem;
    row-gap: 0;
  }
  /* The town field gets the room its longer label needs, so both labels stay on one line. */
  .dispatch:not(.dispatch--compact):not(.dispatch--home) .dispatch__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  }
  .dispatch--compact .dispatch__row { grid-template-columns: 1fr auto; }
  .dispatch:not(.dispatch--home) .dispatch__field--email,
  .dispatch:not(.dispatch--home) .dispatch__field--town {
    display: grid;
    grid-row: 1 / span 3;
    grid-template-rows: subgrid;
    align-items: end;
  }
  .dispatch:not(.dispatch--home) .dispatch__field--email .dispatch__error,
  .dispatch:not(.dispatch--home) .dispatch__field--town .dispatch__error { align-self: start; }
  .dispatch:not(.dispatch--home) .dispatch__field--submit { grid-row: 2; }
  .combo__panel { right: auto; width: 20rem; }
  .dispatch:not(.dispatch--home) .dispatch__button { width: auto; padding: 0 1.25rem; white-space: nowrap; }
}

/* Home form: full-width fields in the form column so labels and placeholders aren't clipped. */
.dispatch--home .dispatch__field,
.dispatch--home .dispatch__field .input,
.dispatch--home .dispatch__field .combo { min-width: 0; width: 100%; }
.dispatch--home .dispatch__button { width: 100%; }

/* ---------- SEO round 1 (Oct 10, 2026) ---------- */
/* Home: the tagline under the masthead. */
.hero .hero-intro { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin: 0.85rem 0 0; }
.hero-intro, .page-intro { font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.5; max-width: 60ch; margin: 0.6rem 0 0.8rem; }
.hero-intro a, .page-intro a { color: var(--forest); }
@media (min-width: 720px) { .hero-intro, .page-intro { font-size: 1.2rem; } }
.detail-title + .page-intro { margin-top: 1rem; }

/* Story and place pages: the one-sentence answer right under the H1. */
.answer { font-family: var(--font-serif); font-size: 20px; line-height: 1.45; max-width: 60ch; margin: 0.8rem 0 0.6rem; }

/* "You're Old School Montana if..." lead-in label and line in one <p> (home board and other lists). */
.quote-card__label {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.35rem;
}
.quote-card__line { font-size: 1.6rem; }

/* Single memory page: the prefix is its own eyebrow line inside the H1. */
.memory-title__prefix {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.6rem;
}

/* Place pages: At a glance on paper, five facts at most, 2 columns on desktop and 1 on mobile. */
.glance { margin: 0.8rem 0 1rem; max-width: 60rem; }
.glance__heading { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); line-height: 1.3; margin: 0; }
.glance__line { margin-top: 0.4rem; }
.glance__facts {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0.6rem 0 0;
  background: var(--paper);
  border: 1px solid var(--charcoal);
}
.glance__facts div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.1rem; padding: 0.5rem 0.75rem; border-top: 1px solid var(--line); min-width: 0; }
.glance__facts div:first-child { border-top: 0; }
.glance__facts dt { font-family: var(--font-sans); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.glance__facts dd { margin: 0; }
/* Long URLs, emails and addresses wrap inside the Details and At a glance lists instead of
   pushing the page sideways (Bale of Hay on a 390px iPhone, Oct 11, 2026). */
.facts, .glance__facts { min-width: 0; max-width: 100%; }
.facts dt, .facts dd, .glance__facts dt, .glance__facts dd { min-width: 0; }
.facts dd, .glance__facts dd { overflow-wrap: anywhere; }
.facts dd { margin: 0; } /* the browser's 40px dd indent squeezed the value column on phones */
@media (min-width: 720px) {
  .glance__facts div { grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
}
.details h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 1.6rem 0 0.3rem; }

/* Guide pages (answer first). */
.guide__eyebrow { margin-bottom: 0.5rem; }
.guide__updated { font-family: var(--font-sans); font-size: 14px; color: var(--forest); margin: 0.7rem 0 0; }
.guide__checked { margin-top: 0.2rem; }
.guide__answer { font-family: var(--font-serif); font-size: 18px; line-height: 1.55; max-width: 60ch; margin: 0.6rem 0 1.2rem; }
.guide-table { width: 100%; max-width: 60rem; border-collapse: collapse; font-family: var(--font-sans); font-size: 1rem; background: var(--paper); border: 1px solid var(--charcoal); }
.guide-table caption { text-align: left; font-family: var(--font-sans); font-weight: 600; font-size: 0.9375rem; line-height: 1.4; padding: 0 0 0.45rem; }
.guide-table th, .guide-table td { text-align: left; padding: 0.55rem 0.75rem; vertical-align: top; }
.guide-table thead th { position: sticky; top: 0; z-index: 1; background: var(--charcoal); color: var(--cream); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.guide-table tbody tr:nth-child(odd) { background: var(--paper); }
.guide-table tbody tr:nth-child(even) { background: var(--cream); }
.guide-table tbody th { font-weight: 600; }
.guide-table a { color: var(--forest); display: inline-flex; align-items: center; min-height: 44px; margin-block: -0.6rem; }
/* Desktop with a mouse: tighter rows so a 10+ row table still lands in the first screen. */
@media (min-width: 601px) and (pointer: fine) {
  .guide-table tbody th, .guide-table tbody td { padding-block: 0.25rem; line-height: 1.35; }
  .guide-table a { min-height: 28px; margin-block: -0.25rem; }
  .guide-table .status-badge { line-height: 1.2; }
}
.status-badge { display: inline-block; font-family: var(--font-sans); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid currentColor; padding: 0.1rem 0.45rem; }
.status-badge--open { color: var(--forest); }
/* Issue #42: 5.56:1 on #fbf6ec, 4.93:1 on #f3e8d0. The lighter border keeps it quieter than Open. */
/* A note in the status column ("Screen burned 2022") wears the same gray as Closed. */
.status-badge--closed, .status-badge--note { color: #66635c; border-color: rgba(102, 99, 92, 0.45); }
@media (max-width: 600px) {
  .guide-table, .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; width: 100%; }
  .guide-table { border: 0; background: transparent; }
  .guide-table caption { display: block; width: 100%; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .guide-table tbody tr { border: 1px solid var(--charcoal); margin-bottom: 0.6rem; padding: 0.4rem 0; }
  .guide-table tbody th, .guide-table td { padding: 0.25rem 0.75rem; }
  .guide-table [data-label]::before { content: attr(data-label) ": "; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; }
}
.guide-entries { display: grid; gap: 1rem; margin: 2rem 0; max-width: 60rem; }
.guide-entry { scroll-margin-top: 1rem; }
.guide-entry h2 { font-family: var(--font-headline); font-size: 2rem; line-height: 1; margin: 0 0 0.35rem; }
.guide-entry h2 a { color: inherit; }
.guide-entry p { max-width: 60ch; }
/* year_basis: a small plain note next to the year ("1901 building"). */
.year-basis { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 400; color: rgba(37, 37, 34, 0.7); white-space: nowrap; }
.guide-table td .year-basis { margin-left: 0.15rem; }
/* Guides hub. */
.guide-hub__list { display: grid; gap: 1rem; margin: 1.6rem 0 0; max-width: 60rem; }
.guide-hub__card h2 { font-family: var(--font-headline); font-size: clamp(1.8rem, 3.5vw, 2.4rem); line-height: 1.05; margin: 0.2rem 0 0.5rem; }
.guide-hub__card h2 a { color: inherit; }
.guide-hub__answer { font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.5; max-width: 60ch; margin: 0 0 0.6rem; }
.guide-cta { max-width: 60ch; font-style: normal; }
.guide-cta a { color: var(--forest); }
/* Sources: one-line closed disclosure; list only when opened. */
.sources { margin: 1.5rem 0; max-width: 60rem; }
.sources > summary {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.1;
  cursor: pointer;
  list-style: none;
}
.sources > summary::-webkit-details-marker { display: none; }
.sources > summary::after { content: " +"; font-family: var(--font-sans); font-size: 0.7em; }
.sources[open] > summary::after { content: " \2212"; }
.sources ul, .guide-sources ol { font-family: var(--font-sans); font-size: 16px; padding-left: 1.4rem; margin: 0.5rem 0 0; max-width: 60rem; }
.sources li, .guide-sources li { margin: 0.25rem 0; }
.sources a, .guide-sources a { color: var(--forest); overflow-wrap: anywhere; }
/* A full sentence is longer than a headline: smaller, wider H1 on memory pages. */
.memory-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 26ch; line-height: 1; }
.memory-title + .byline { margin-top: 1rem; }

/* Dispatch Privacy link: at least 24px tall (issue #16). */
.dispatch__privacy a { display: inline-block; min-height: 24px; line-height: 24px; }

/* ---------- Single memory page (issue #17) ---------- */
.memory-meta { display: flex; flex-wrap: wrap; align-items: baseline; }
.memory-meta > span + span::before { content: "\00b7"; margin: 0 0.45rem; }

/* Share: the page's one filled button. A menu (Facebook, copy link) where there's no share sheet. */
.memory-share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1.25rem 0 0; }
.share-menu { position: relative; }
.share-menu__toggle { min-height: 48px; padding-inline: 1.5rem; list-style: none; }
.share-menu__toggle::-webkit-details-marker { display: none; }
.share-menu__list {
  position: absolute; z-index: 5; top: calc(100% + 0.35rem); left: 0;
  min-width: 13rem; margin: 0; padding: 0.35rem 0; list-style: none;
  background: var(--paper); border: 1px solid var(--charcoal); box-shadow: 0 6px 18px rgba(37, 37, 34, 0.15);
}
.share-menu__item {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 1rem;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: normal; text-transform: none;
  color: var(--charcoal); background: none; border: 0; text-decoration: none; cursor: pointer;
}
.share-menu__item:hover, .share-menu__item:focus-visible { background: var(--cream-deep); color: var(--charcoal); }

/* "Tied to" place: one 48px tappable row under the actions (name, then town and status). */
.memory-place {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 0.75rem;
  min-height: 48px; margin-top: 1.5rem; padding: 0.25rem 1rem;
  border: 1px solid var(--line); background: var(--paper);
  font-family: var(--font-sans); color: var(--charcoal); text-decoration: none; line-height: 1.2;
}
.memory-place:hover { border-color: var(--charcoal); }
.memory-place__text { display: grid; min-width: 0; }
.memory-place__name { font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memory-place__meta { font-size: 0.8125rem; color: var(--forest); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memory-place__meta > span + span::before { content: "\00b7"; margin: 0 0.4rem; }
.memory-place__badge { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.memory-more .section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.memory-prompt { margin: 1.5rem 0 0; font-family: var(--font-sans); font-size: 1.0625rem; }
.memory-prompt a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--charcoal); }

/* ---------- The Dispatch (issue #18): footer form everywhere, /dispatch/, one line at the end of reads ---------- */
.dispatch-line { margin: 2.5rem 0; max-width: var(--measure); font-size: 1.125rem; }
.dispatch-line a { font-weight: 600; }
.dispatch-page__pitch { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.5; max-width: 40rem; margin: 1rem 0 2rem; }
.dispatch-page__form .dispatch:not(.dispatch--compact) { margin: 0; }
.dispatch-sample { max-width: 720px; margin-top: 2.75rem; }
.dispatch-sample h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.9rem; }
.dispatch-sample__list { list-style: none; margin: 0; padding: 0; }
.dispatch-sample__list li {
  margin: 0 0 1.15rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.dispatch-sample__list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.dispatch-sample__list strong {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}
.dispatch-sample__dek {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.45;
}
.dispatch-sample__ex {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(37, 37, 34, 0.78);
}

/* ---------- IA pre-launch (issues #19 to #22) ---------- */
.more-like-this { margin-top: 2.5rem; }
.more-like-this .grid { margin-top: 1.05rem; }

/* Footer (issue #22): the header's three groups, then the site links. */
/* Phone menu: the four sections, then submit. */
.nav-top { display: none; }
@media (max-width: 959px) {
  .nav-top { display: flex; flex-direction: column; order: 2; gap: 0.15rem; width: 100%; margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid var(--line); }
  .nav-group { order: 1; }
  .primary-nav { gap: 0; }
  .primary-nav a.nav-share {
    width: 100%;
    min-height: 48px;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--charcoal);
    color: var(--cream);
  }
  .primary-nav a.nav-share:hover { color: var(--cream); border-color: var(--forest); }
  /* One 48px row per menu link. */
  .nav-group { flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; border-top: 1px solid var(--line); }
  .primary-nav .nav-group__link { min-height: 48px; }
}

/* Wireframe section pages (county, community, era, search, Original): room between sections
   and under each section heading. */
.page-sections > section,
.page-sections > h2 { margin-top: 2.5rem; }
.page-sections > section > h2,
.page-sections > h2 { margin-bottom: 1rem; }

/* Shared card grid ({% card_grid %}, core/templatetags/cards.py): one card type per grid,
   each card keeps its own height, the same gap between cards and between grids. */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; margin-top: 1rem; }
/* Text cards in a row share one height; a row with a photo keeps each card its own height (#74). */
.card-grid:not(:has(img)) { align-items: stretch; }
.card-grid + .card-grid, .card-grid + .see-all + .card-grid { margin-top: 2.5rem; }
.card-grid__cell { display: flex; min-width: 0; }
.card-grid__cell > * { flex: 1 1 auto; width: 100%; margin: 0; }
.card-grid + .see-all { margin-top: 1rem; }
.page-sections > section > h3, .card-subsection > h3 { margin: 2rem 0 0; font-size: 1.6rem; }
@media (min-width: 720px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Voice and nav audit, Oct 12, 2026. */
/* The four section names stay on one row. Goods and Support are the strip under it. */
@media (min-width: 960px) {
  .header-bar { column-gap: 1.25rem; }
  .brand, .primary-nav { min-width: max-content; }
  .brand__logo { width: 170px; }
  .primary-nav { flex-wrap: nowrap; gap: 1.15rem; }
  .primary-nav .nav-group__link { white-space: nowrap; }
  /* The 2px underline is only on the bottom, so a matching top pad keeps the caps on the wordmark's center line. */
  .header-bar .primary-nav .nav-group__link {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 2px 0 0;
    line-height: 1;
  }
  .header-tools { gap: 0.15rem; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .header-bar { column-gap: 1rem; }
  .brand__logo { width: 160px; min-width: 160px; }
  .primary-nav { gap: 0.9rem; }
  .primary-nav a { letter-spacing: 0; font-size: 0.8125rem; }
  .header-tools { gap: 0; }
  .header-tools .header-cta { padding-inline: 0.5rem; }
}
@media (min-width: 1200px) {
  .header-bar { column-gap: 0.85rem; }
  .brand__logo { width: 160px; }
  .primary-nav { gap: 0.8rem; }
  .header-tools { gap: 0; }
}
/* Nav fix 6: 44px tap targets on phones. */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chip-row .chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--charcoal); text-decoration: none; }
@media (max-width: 959px) {
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Nav fix 7: Got Something? stays one tap away on phones, as a slim row under the bar. */
  .header-cta-phone { display: flex; grid-row: 2; grid-column: 1 / -1; justify-content: center; align-items: center; min-height: 44px; }
  .nav-toggle:checked ~ .header-bar .header-cta-phone { display: none; }
}
@media (min-width: 960px) { .header-cta-phone { display: none; } }
.town-ask { margin-top: 2.5rem; }
/* Submit simplify: the kind switcher reads as a small aside, the active one filled in. */
.submit-switch-label { margin: 1rem 0 0.4rem; font-weight: 600; }
.submit-switch .chip[aria-current="true"] { background: var(--charcoal); color: var(--paper); }
/* Issue #61: keep exploring after the Dispatch signup or confirm. */
.keep-exploring__links { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 0.25rem; }
.keep-exploring__links a { display: inline-flex; align-items: center; min-height: 44px; }
.keep-exploring__nudge { margin-top: 1.5rem; }

/* Oct 15: sibling-page chips under a series, grouping or type page. */
.band .shell > .category-nav:not(:first-child) { margin-top: 2rem; }

/* The current sort on /if/ reads as current (issue #47). */
.link-row a[aria-current] { color: var(--charcoal); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--rust); }

/* H1 to first paragraph on prose and simple pages (issue #46): 18px, like the hubs. */
.detail-title { margin-bottom: 1.1rem; }
.detail-title + .field,
.detail-title + form { margin-top: 1.1rem; }

/* Long headlines (issue #51): capped at 56px on desktop and 36px on mobile so none runs past
   three lines, and a hyphenated word like "drive-in" never splits at the hyphen. */
.detail-title--long { font-size: clamp(2.25rem, 5vw, 3.5rem); max-width: 22ch; }
.nobreak { white-space: nowrap; }

/* Home on a phone (issue #52): card excerpts stop at three lines and each section shows its
   first three cards. See all, under every grid, has the rest. */
@media (max-width: 599px) {
  .card > p:not([class]) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
  .home .card-grid__cell:nth-child(n + 4) { display: none; }
  .home .town-index--compact > :nth-child(n + 5) { display: none; }
  .home .band { padding: 1.9rem 0; }
  .home .section-head { margin-bottom: 1rem; }
  .card__media img { aspect-ratio: 16 / 9; }
}

/* The photo field (issue #57): the browser's own control, so keyboard and screen readers work
   as usual, with its button dressed like the site's ghost buttons. The browser prints the
   chosen filename next to it. */
input[type="file"] { padding: 0.4rem; min-height: 48px; font-family: var(--font-serif); }
input[type="file"]::file-selector-button {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 48px;
  padding: 0.5rem 1rem;
  margin-right: 0.9rem;
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
  border-radius: 0;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--charcoal); color: var(--cream); }

/* The item count under each decade tile (issue #58). */
.era-index__count { display: block; margin-top: 0.2rem; font-family: var(--font-sans); font-size: 0.9375rem; color: var(--charcoal); }

/* Footer: brand and a short link row, then a slim legal bar. */
.site-footer { padding: 2rem 0 1rem; }
.site-footer a, .site-footer .footer-link {
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.5rem;
  margin-top: 0.85rem;
  border-top: 1px solid rgba(243, 232, 208, 0.15);
  color: rgba(243, 232, 208, 0.75);
}
.footer-bar p { margin: 0; font-family: var(--font-sans); font-size: 0.875rem; }
.footer-copy { padding-block: 0.6rem; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; }
.site-footer .footer-legal a, .site-footer .footer-legal .footer-link {
  color: rgba(243, 232, 208, 0.75);
  font-size: 0.875rem;
}
.site-footer .footer-legal a:hover, .site-footer .footer-legal .footer-link:hover { color: var(--mustard); }
.site-footer nav.footer-legal { display: flex; justify-items: normal; }

/* Goods and support: text links in the header tools, one quiet pair under the homepage Dispatch. */
.nav-actions { display: none; }
.header-cta-phone { gap: 0.4rem; }
.header-cta-phone .button { flex: 1; padding-inline: 0.5rem; }
.header-cta-phone .button:last-child { flex: 2; }
@media (max-width: 959px) {
  .nav-actions { display: flex; flex-wrap: wrap; gap: 0 1.5rem; width: 100%; }
  .nav-actions .button { flex: 1; }
}
/* Homepage shop / donate: whole-tile links, same hover lift as story cards. */
.home-pitch { display: grid; gap: 1rem; }
.home-pitch__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  min-height: 7.5rem;
  padding: 1.35rem 1.3rem 1.45rem;
  border: 1px solid var(--charcoal);
  background: var(--paper);
  color: var(--charcoal);
  text-decoration: none;
  transition: box-shadow 120ms ease, transform 120ms ease;
}
.home-pitch__item:hover {
  box-shadow: 4px 4px 0 var(--charcoal);
  transform: translate(-2px, -2px);
}
.home-pitch__item:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}
.home-pitch__cta {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  line-height: 0.95;
}
.home-pitch__item:hover .home-pitch__cta { text-decoration: underline; text-underline-offset: 0.12em; }
.home-pitch__line {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.4;
  max-width: 28ch;
}
.home-pitch__item--support {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}
.home-pitch__item--support .home-pitch__cta { color: var(--mustard); }
.home-pitch__item--support .home-pitch__line { color: rgba(243, 232, 208, 0.88); }
.home-pitch__item--support:hover { box-shadow: 4px 4px 0 var(--mustard); }
.home-pitch__item--support:focus-visible { outline-color: var(--mustard); }
@media (min-width: 720px) {
  .home-pitch:not(.home-pitch--single) { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .home-pitch--single { max-width: 28rem; }
}

/* Catalog cards stay catalog-sized. A lone product must not stretch across the shell. */
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 22rem)); }

.shop-product { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .shop-product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem; align-items: start; } }
/* The photo's own ratio, set per slide, holds its box before it loads so the buy form doesn't jump. */
.shop-gallery .frame img { aspect-ratio: var(--ratio, auto); height: auto; object-fit: contain; }
/* Our own product shots: no credit caption under the photo. */
.shop-gallery figcaption { display: none; }
/* The whole shirt in the catalog card, collar included. */
.shop-grid .card__media img { object-fit: contain; }
.shop-gallery__thumbs { display: none; gap: 0.5rem; margin-top: 0.6rem; }
.shop-gallery.is-js .shop-gallery__thumbs { display: flex; }
.shop-thumb { padding: 0; width: 72px; min-height: 0; background: var(--paper); }
.shop-thumb:hover { background: var(--paper); }
.shop-thumb[aria-pressed="true"] { outline: 3px solid var(--rust); outline-offset: 2px; }
.shop-thumb img { display: block; width: 100%; height: 64px; object-fit: cover; }
.shop-price { font-family: var(--font-headline); font-weight: 700; font-size: 2rem; margin: 0 0 1rem; }
.shop-buy .field { max-width: 14rem; }
.shop-buy .button { width: 100%; max-width: 14rem; }
.shop-note { font-size: 1rem; margin-top: 1rem; }
.shop-lines { margin: 1rem 0; padding-left: 1.1rem; }
.shop-total { font-weight: 600; }
.shop-cart { list-style: none; margin: 1.25rem 0; padding: 0; }
.shop-cart__line { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 0.35rem 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.shop-cart__photo { display: block; width: 4.5rem; height: 4.5rem; object-fit: contain; background: var(--cream-deep); border: 1px solid var(--charcoal); }
.shop-cart__line a { font-weight: 600; }
.shop-cart__meta { margin: 0.15rem 0 0; }
.shop-cart__qty { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.shop-cart__qty .input { width: 4.5rem; min-height: 44px; }
.shop-cart__remove { min-height: 44px; padding: 0; background: none; border: 0; font: inherit; font-weight: 600; color: var(--forest); cursor: pointer; text-decoration: underline; }
.shop-cart .button { margin-top: 0.5rem; }

/* Homepage state map: stamped Montana cutout, rust pins, pop with the brand offset
   shadow. Phones get pinch/pan zoom so the pins stay tappable. */
.found-map { display: block; width: 100%; height: auto; overflow: visible; }
.found-map__shadow {
  fill: var(--charcoal);
  stroke: none;
  pointer-events: none;
}
.found-map__state {
  stroke: var(--charcoal);
  stroke-width: 2.35;
  stroke-linejoin: round;
}
.found-map__hatch {
  pointer-events: none;
  opacity: 0.5;
  stroke: none;
}
.found-map-wrap { position: relative; margin-top: 0.35rem; }
.found-map__viewport {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}
.found-map-wrap.is-zoomed .found-map__viewport { touch-action: none; }
.found-map__stage {
  transform-origin: 0 0;
  will-change: transform;
}
.found-map__tools {
  display: none;
  position: absolute;
  z-index: 4;
  top: 0.65rem;
  right: 0.65rem;
  flex-direction: column;
  gap: 0.35rem;
}
.found-map__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--charcoal);
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--charcoal);
  color: var(--charcoal);
  font-family: var(--font-headline);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.found-map__tool:hover,
.found-map__tool:focus-visible {
  background: var(--cream);
  color: var(--rust);
}
.found-map__tool-reset {
  width: auto;
  min-width: 2.5rem;
  padding: 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
}
.found-map__tool-mark {
  display: block;
  width: 0.9rem;
  height: 2px;
  background: currentColor;
}
.found-map__hint {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--forest);
}
.found-map__hint--phone { display: none; }
.found-map__ref {
  pointer-events: none;
  opacity: 0.35;
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 1.5;
}
.found-map__hit { fill: transparent; }
.found-map__ring {
  fill: none;
  stroke: var(--rust);
  stroke-width: 1.75;
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
}
.found-map__dot {
  fill: var(--rust);
  stroke: var(--paper);
  stroke-width: 2.25;
  transition: fill 0.15s ease, stroke 0.15s ease, transform 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.found-map__spot--gone .found-map__dot {
  fill: var(--paper);
  stroke: var(--charcoal);
  stroke-width: 2.5;
}
.found-map__spot--gone .found-map__ring { stroke: var(--charcoal); }
.found-map__spot--gone .found-map__count { fill: var(--charcoal); }
.found-map__spot {
  cursor: pointer;
  opacity: 0;
}
/* Pins hold until the map scrolls into view; JS adds .is-inview once. */
.found-map-wrap.is-inview .found-map__spot {
  animation: found-map-spot-in 0.45s ease forwards;
  animation-delay: calc(var(--spot-i, 0) * 28ms + 80ms);
}
.found-map__spot:hover .found-map__dot,
.found-map__spot[aria-expanded="true"] .found-map__dot {
  fill: var(--charcoal);
  transform: scale(1.12);
}
.found-map__spot:hover .found-map__ring,
.found-map__spot[aria-expanded="true"] .found-map__ring {
  opacity: 0.55;
  animation: found-map-ring 0.9s ease-out;
}
.found-map__spot--gone:hover .found-map__dot,
.found-map__spot--gone[aria-expanded="true"] .found-map__dot {
  fill: var(--charcoal);
  stroke: var(--charcoal);
}
.found-map__spot--gone:hover .found-map__count,
.found-map__spot--gone[aria-expanded="true"] .found-map__count { fill: var(--paper); }
.found-map__spot:focus { outline: none; }
.found-map__spot:focus-visible .found-map__hit {
  fill: none;
  stroke: var(--mustard);
  stroke-width: 3.5;
}
.found-map__count {
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 700;
  fill: var(--paper);
  pointer-events: none;
}
.found-map__labels { pointer-events: none; }
.found-map__label {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  fill: var(--charcoal);
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.found-map__label.is-ref {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  opacity: 0.55;
  stroke-width: 3px;
}
.found-map__pop {
  position: absolute;
  z-index: 5;
  width: 15.5rem;
  max-width: calc(100% - 1rem);
  padding-top: 10px;
}
.found-map__pop[hidden] { display: none; }
.found-map__pop:not([hidden]) { animation: found-map-pop 0.18s ease-out; }
.found-map__pop-h,
.found-map__pop ul {
  background: var(--paper);
  border: 1.5px solid var(--charcoal);
}
.found-map__pop-h {
  margin: 0;
  padding: 0.55rem 0.8rem 0.3rem;
  border-bottom: 0;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  background: var(--cream);
}
.found-map__pop-h a { color: inherit; text-decoration: none; }
.found-map__pop-h a:hover,
.found-map__pop-h a:focus-visible { color: var(--rust); text-decoration: underline; }
.found-map__pop ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
  border-top: 0;
  box-shadow: 4px 4px 0 var(--charcoal);
  max-height: 14rem;
  overflow-y: auto;
}
.found-map__pop a {
  display: block;
  min-height: 44px;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  color: var(--charcoal);
}
.found-map__pop a:hover,
.found-map__pop a:focus-visible { background: var(--cream); color: var(--rust); }
.found-map__pop strong { display: block; line-height: 1.2; }
.found-map__pop .kicker { display: block; margin: 0; font-size: 0.75rem; }
.found-map__item--gone .kicker { color: rgba(37, 37, 34, 0.7); }
.found-map__item--story .kicker { color: var(--forest); }
.found-map__more a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest);
}
.found-map__more a:hover,
.found-map__more a:focus-visible { color: var(--rust); }

@keyframes found-map-spot-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes found-map-ring {
  from { opacity: 0.7; transform: scale(0.72); }
  to { opacity: 0; transform: scale(1.35); }
}
@keyframes found-map-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .found-map__spot,
  .found-map__pop:not([hidden]),
  .found-map__spot:hover .found-map__ring,
  .found-map__spot[aria-expanded="true"] .found-map__ring {
    animation: none;
  }
  .found-map__spot { opacity: 1; }
  .found-map__dot { transition: none; }
}

/* Phones: zoomable map with docked town sheet. List stays as a no-JS / screen-reader
   fallback; once JS marks the wrap ready, the list is clipped. */
@media (max-width: 599px) {
  .found-map__hint--desk, .found-map__label--desk { display: none; }
  .found-map__hint--phone { display: block; }
  .found-map__tools { display: flex; }
  .found-map__viewport {
    border: 1.5px solid var(--charcoal);
    background: var(--cream-deep);
    box-shadow: 3px 3px 0 var(--charcoal);
    min-height: 16rem;
    touch-action: none;
  }
  .found-map__stage { padding: 0.65rem 0.55rem 0.85rem; }
  .found-map__hit { r: 22; }
  .found-map__label, .found-map__label.is-ref { font-size: 26px; stroke-width: 7px; }
  .found-map__ref { r: 5; }
  .found-map__dot { r: 12; }
  .found-map__spot--many .found-map__dot { r: 16; }
  .found-map__count { font-size: 18px; }
  .found-map__pop {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: none;
    margin-top: 0.75rem;
    padding-top: 0;
  }
  .found-map__pop ul { max-height: 12rem; box-shadow: 3px 3px 0 var(--charcoal); }
  .found-map__list {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--line);
    columns: 2;
    column-gap: 1.15rem;
  }
  .found-map__list > li {
    break-inside: avoid;
    margin: 0 0 0.85rem;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.15rem;
  }
  .found-map__list ul {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0;
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 0.9rem;
  }
  .found-map__list a { display: inline-block; min-height: 24px; padding: 0.1rem 0; }
  .found-map-wrap.is-ready + .found-map__list {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    margin: 0;
    padding: 0;
    border: 0;
  }
}
@media (min-width: 600px) {
  .found-map__label--phone { display: none; }
  .found-map__list {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Still Old School landing on phones: the section heading names the grouping, so the cards drop
   the repeated kicker and pair up two to a row. */
@media (max-width: 599px) {
  .still-group .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .still-group .card .kicker { display: none; }
  .still-group .card { padding: 0.9rem; }
  .still-group .card .card__title { font-size: 1.35rem; }
  .still-group .card p { font-size: 0.95rem; }
}

/* Home If... board: the same line cards as the If... page, without list bullets. */

/* Decades stay "1950s" and "'70s" inside uppercase labels. */
.decade-s { text-transform: none; }

/* Body paragraphs on detail pages keep a reading measure instead of the full shell width. */
.page-sections > p, .page-sections > section > p { max-width: 40rem; }

/* Phone footer: the same two link columns as desktop at 44px tap height, the signup field
   beside its button, and the Privacy link once, in the bottom bar. */
@media (max-width: 599px) {
  .site-footer { padding: 1.25rem 0 0.5rem; }
  .footer-dispatch { margin-bottom: 1rem; padding-bottom: 1rem; }
  .dispatch--compact .footer-pitch { margin: 0 0 0.5rem; font-size: 1rem; line-height: 1.35; }
  .dispatch__cadence { margin-top: 0.5rem; }
  .dispatch--compact .dispatch__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.5rem; align-items: end; }
  .dispatch--compact .dispatch__field { margin: 0; }
  .dispatch--compact .input { min-height: 44px; }
  .dispatch--compact .dispatch__button { width: auto; min-height: 44px; padding: 0 0.9rem; white-space: nowrap; }
  .dispatch--compact .dispatch__privacy { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.35; }
  .footer-grid { gap: 0.85rem; }
  .footer-logo { width: 12.5rem; }
  .footer-tag { margin: 0.25rem 0 0; font-size: 1rem; }
  .site-footer nav.footer-nav { column-gap: 1rem; }
  .site-footer nav.footer-nav a { font-size: 0.875rem; }
  .footer-bar { margin-top: 0.5rem; }
  .footer-copy { padding-block: 0.5rem 0; }
  .footer-legal { column-gap: 1.25rem; }
}

/* The support link in the phone menu is a plain text link, quieter than Got Something?. */
.nav-actions .nav-support, .nav-actions .nav-shop { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-family: var(--font-sans); font-weight: 600; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
}
.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.footer-social__link:hover, .footer-social__link:focus-visible { color: var(--mustard); }
.footer-social__icon { width: 1.15rem; height: 1.15rem; flex: none; }
.footer-social__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* Get the Goods is in the bar from 1200px. Narrower widths get it in the menu and the footer.
   The bag is the cart, and on the narrowest phones it shows once the cart has something. */
@media (max-width: 479px) {
  .header-shop { display: none; }
  .header-shop:has(.header-shop__count) { display: inline-flex; }
}
/* Home masthead: the brand, the tagline, then one featured story with one way in. */
.hero-feature { margin-top: 1.5rem; max-width: 48rem; }
.hero-feature .frame { margin: 0 0 0.9rem; }
.hero-feature__title { margin: 0.2rem 0 0.4rem; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1; }
.hero-feature__title a { color: inherit; text-decoration: none; }
.hero-feature__title a:hover { text-decoration: underline; }
.hero-feature__dek { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.45; margin: 0 0 1rem; max-width: 60ch; }
/* Issue #100: from 1024px the photo and the story sit side by side, so the headline and
   Keep Reading are in the first screen. Phones stay stacked. */
@media (min-width: 1024px) {
  .hero-feature:has(> .frame) { display: grid; grid-template-columns: 7fr 5fr; column-gap: 2rem; align-content: start; max-width: none; }
  .hero-feature:has(> .frame) > .frame { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .hero-feature:has(> .frame) > :not(.frame) { grid-column: 2; }
  .hero-feature:has(> .frame) > .kicker { margin-top: 0; }
}
.decade-row { margin-top: 1.25rem; }
.decade-row .kicker { margin: 0 0 0.5rem; }

/* Place page: the short Why It's Here callout. */
.why-here { max-width: 38rem; border-left: 4px solid var(--rust); padding: 0.4rem 0 0.4rem 1rem; }
.why-here h2 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.why-here p { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* #104: from 760 to 959px Got Something? sits in the top row at its own width, not a bar below. */
@media (min-width: 760px) and (max-width: 959px) {
  .header-cta { display: inline-flex; }
  .header-cta-phone { display: none; }
}
/* #105: the Help Us Out Here button keeps its own width. */
.prompt-card form > .button { justify-self: start; }
/* #106: below 480px each field sits over its button, both full width. */
@media (max-width: 479px) {
  .dispatch--compact .dispatch__row { grid-template-columns: minmax(0, 1fr); row-gap: 0.5rem; }
  .dispatch--compact .dispatch__button { width: 100%; }
}

/* Inline story photos sit between the text and the sources. */
.story-gallery { margin: 2rem 0; }

/* Homepage slogan: one or two lines, not a full-viewport masthead. */
.hero-title--line { font-size: clamp(2.4rem, 6.2vw, 4.75rem); max-width: 12ch; }
.home-lead { display: grid; gap: 1.25rem; margin-top: 0.5rem; }
.home-lead__feature .card__title { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; }
@media (min-width: 800px) {
  .home-lead { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .home-lead__feature:only-child, .home-lead__rest:only-child { grid-column: 1 / -1; }
}
.home-lead__rest .card-grid { margin-top: 0; }

/* Still Here: the three ways to read the same directory. */
.still-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 1rem 0 0.4rem; }
.still-tabs a {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.875rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.still-tabs a[aria-current] { border-bottom-color: var(--rust); }
.still-notes { display: grid; gap: 0.2rem; margin: 0.4rem 0 0; max-width: 62ch; }
.directory-search { display: grid; gap: 0.75rem; margin: 1.25rem 0 1.5rem; }
@media (min-width: 720px) {
  .directory-search { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: end; }
  .directory-search .button { margin-bottom: 0; }
}

/* The If card keeps the reaction, and leaves the tally off the face while the pile is small. */
.if-shuffle .reaction__count {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
