/* Fox Valley Daily Digest — splash page
   Palette and type match the daily PDF: navy / Fox River teal, gold accent,
   Fraunces display, Outfit UI, Source Sans 3 body. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B3D5C;
  --navy-deep: #07283C;
  --river: #1A6B7A;
  --gold: #C9A227;
  --gold-deep: #A8841A;
  --gold-hover: #D4AD32;
  --gold-soft: #F3E7C7;
  --gold-on-navy: #E0C45A;
  --gold-text: #7A5C0E; /* gold for small text on cream/paper: 5.6:1 */
  --cream: #F7F3EB;
  --paper: #FFFCF7;
  --ink: #1C1C1C;
  --muted: #4E5359;
  --card-border: #E2DDD4;
  --light-line: #D9D3C8;
  --batavia: #0B6E6B;
  --batavia-accent: #E8F4F3;
  --geneva: #8B3044;
  --geneva-accent: #F8EEF0;
  --stcharles: #1B4F91;
  --stcharles-accent: #E8F0F8;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Outfit", "Source Sans 3", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 4.25rem;
  --content: 72rem;
  --focus: 0 0 0 3px var(--cream), 0 0 0 6px var(--gold);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--river); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-ui);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(var(--content), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--navy);
  background: rgba(247, 243, 235, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  transition: box-shadow 0.35s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(11, 61, 92, 0.06);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.logo:hover { color: inherit; }
.logo__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  object-fit: contain;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.logo__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 0.25rem 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { color: inherit; }
.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 8px 22px rgba(11, 61, 92, 0.18);
}
.btn--gold:hover,
.btn--gold:focus-visible {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 61, 92, 0.22);
}
.btn--gold:active { transform: translateY(0); }
.btn--lg { padding: 0.95rem 1.55rem; font-size: 1.05rem; }
.btn--sm { padding: 0.48rem 0.9rem; font-size: 0.82rem; }
.btn--city {
  width: 100%;
  color: #fff;
  border-color: var(--gold);
  padding: 0.7rem 1rem;
  font-size: 1rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}
.btn--city:hover { color: #fff; border-color: var(--gold-soft); transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 4.75rem 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--navy {
  background: var(--navy);
  color: var(--cream);
}
.section__head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}
.section__kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.section--navy .section__kicker { color: var(--gold-on-navy); }
.section__title {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}
.section--navy .section__title { color: var(--paper); }
.section__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.section--navy .section__lead { color: var(--gold-soft); }

#inside,
#cities,
#archive,
#comments {
  scroll-margin-top: var(--header-h);
}

/* First screen: nine section cards fit below the nav at 1280x800 and 1440x900 */
.section--first {
  padding: calc(var(--header-h) + 0.7rem) 0 0.85rem;
}
.section--first .section__head {
  margin-bottom: 0.7rem;
  max-width: 46rem;
}
.section--first .section__kicker {
  margin-bottom: 0.25rem;
}
.section--first .section__title {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  margin-bottom: 0.3rem;
}
.section--first .section__lead {
  font-size: 0.98rem;
}

/* ---------- City cards ---------- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.city-card {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 61, 92, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 61, 92, 0.1);
}
.city-card__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--navy);
}
.city-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.city-card:hover .city-card__photo img { transform: scale(1.05); }
.city-card__body {
  padding: 1.15rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.city-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.city-card__name[data-city="batavia"] { color: var(--batavia); }
.city-card__name[data-city="geneva"] { color: var(--geneva); }
.city-card__name[data-city="stcharles"] { color: var(--stcharles); }
.city-card__blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}
.credit {
  margin: 0;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
}
.city-card__photo .credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.7rem 0.45rem;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(transparent, rgba(7, 32, 48, 0.78));
}
.city-card__photo .credit a { color: inherit; }
.btn--batavia { background: var(--batavia); }
.btn--geneva { background: var(--geneva); }
.btn--stcharles { background: var(--stcharles); }

/* ---------- What's inside ---------- */
.inside-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  align-content: start;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.inside-card {
  --card-ink: #FFFCF7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 42%),
    var(--accent, var(--navy));
  color: var(--card-ink);
  border: 2px solid var(--gold);
  border-radius: calc(var(--radius) + 2px);
  padding: 0;
  box-shadow: 0 8px 20px rgba(11, 61, 92, 0.14);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.inside-card:hover,
.inside-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(11, 61, 92, 0.22);
}
.inside-card__main {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex: 1;
  padding: 0.65rem 0.85rem 0.45rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  min-height: 0;
}
.inside-card__main:hover { color: inherit; }
.inside-card__main:focus-visible {
  outline: 3px solid var(--gold-on-navy);
  outline-offset: -3px;
}
.inside-card__hint {
  margin-top: 0.15rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-on-navy);
}
.inside-card__cities {
  display: flex;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.inside-card__cities a {
  flex: 1;
  text-align: center;
  color: #F3E7C7;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.15rem;
  position: relative;
  z-index: 1;
}
.inside-card__cities a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.inside-card__cities a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.inside-card__cities a:focus-visible {
  outline: 2px solid var(--gold-on-navy);
  outline-offset: -2px;
  color: #fff;
}
.inside-card__icon {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--gold-on-navy);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  display: grid;
  place-items: center;
  padding: 0.28rem;
  margin-bottom: 0.1rem;
}
.inside-card__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.inside-card h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--card-ink);
  line-height: 1.2;
}
.inside-card p {
  margin: 0;
  color: rgba(255, 252, 247, 0.92);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ---------- Archive ---------- */
.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.edition {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding: 1.05rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--light-line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.edition:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 61, 92, 0.08);
  border-color: var(--gold);
}
.edition.is-current {
  border-left-color: var(--gold);
  background: #fff;
  box-shadow: 0 8px 22px rgba(11, 61, 92, 0.06);
}
.edition__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.edition__badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.edition__note {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.edition__meta {
  margin: 0;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}
.edition__cta {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  white-space: nowrap;
}
.edition__cta span { color: var(--gold-text); margin-left: 0.2rem; }

/* ---------- Comments ---------- */
.comment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}
.comment-aside p { color: var(--muted); }
.comment-card {
  background: #fff;
  color: var(--ink);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(11, 61, 92, 0.08);
  border: 1px solid var(--card-border);
}
.comment-form {
  display: grid;
  gap: 1rem;
  position: relative;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}
.req { color: var(--geneva); }
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: #c9c3b8; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(26, 107, 122, 0.2);
}
.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #9E2A2B;
  box-shadow: 0 0 0 3px rgba(158, 42, 43, 0.12);
}
.field-error {
  margin: 0;
  font-size: 0.82rem;
  color: #9E2A2B;
}
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status.is-success {
  color: #1E5A36;
  background: #E8F4EC;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}
.form-status.is-error {
  color: #8A1F20;
  background: #FBEAEA;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}
.comment-form .btn { justify-self: start; min-width: 10.5rem; }
.comment-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--gold-soft);
  padding: 3rem 0 2rem;
  border-top: 3px solid var(--gold);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
}
.site-footer h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--paper);
}
.site-footer p, .site-footer li { font-size: 0.92rem; line-height: 1.55; }
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: var(--gold); }
.credits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer__legal {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(243, 231, 199, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }


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

.section--navy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section--navy .section-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.section--navy .section-bg picture,
.section--navy .section-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.9);
}
.section--navy .section-bg__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 61, 92, 0.86) 0%, rgba(7, 40, 60, 0.9) 100%);
}
.comment-credit {
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.75rem;
}
.comment-credit a { color: inherit; }

/* Compact "Send a comment" — less vertical space, 44px taps kept */
#comments.section {
  padding: 1.5rem 0 1.2rem;
  background: var(--paper);
  border-top: 1px solid var(--card-border);
}
#comments .section__kicker { margin: 0 0 0.2rem; }
#comments .section__title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
#comments .section__lead { font-size: 0.95rem; }
#comments .comment-layout { gap: 1.15rem 1.5rem; }
#comments .comment-card {
  padding: 0.8rem 0.95rem 0.75rem;
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(11, 61, 92, 0.08);
}
#comments .comment-form { gap: 0.5rem; }
#comments .form-row { gap: 0.6rem; }
#comments .field { gap: 0.18rem; }
#comments .field input,
#comments .field textarea {
  padding: 0.4rem 0.7rem;
  min-height: var(--tap);
  box-sizing: border-box;
}
#comments .field textarea { min-height: 4.5rem; }
#comments .comment-form .btn {
  min-height: var(--tap);
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
}
#comments .comment-credit { margin: 0.5rem 0 0; }
#comments .comment-credit a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
#comments .form-status { margin: 0; min-height: 1.15em; }
@media (max-width: 767px) {
  #comments.section { padding: 1.2rem 0 1.05rem; }
  #comments .comment-layout { gap: 0.85rem; }
}


/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .city-grid, .inside-grid { grid-template-columns: 1fr 1fr; }
  .comment-layout, .footer__grid { grid-template-columns: 1fr; }
  .section--first { padding: calc(var(--header-h) + 1.1rem) 0 1.4rem; }
  .section--first .section__title { font-size: clamp(1.6rem, 5vw, 2rem); }
  .inside-card__main { padding: 0.95rem 1rem 0.7rem; }
  .inside-card h3 { font-size: 0.9rem; }
  .inside-card p { font-size: 0.92rem; }
  .inside-card__hint { font-size: 0.78rem; }
}

@media (max-width: 720px) {
  :root { --header-h: 3.85rem; }
  .wrap { width: min(var(--content), calc(100% - 1.75rem)); }
  .nav-toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(247, 243, 235, 0.98);
    color: var(--navy);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 16px 32px rgba(11, 61, 92, 0.12);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 0.85rem 1.25rem; }
  .nav__links a::after { display: none; }
  .btn--nav { display: none; }
  .city-grid, .inside-grid, .form-row { grid-template-columns: 1fr; }
  .edition {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: 0.4rem;
  }
  .edition__title, .edition__meta, .edition__cta { grid-area: auto; }
  .edition__cta { margin-top: 0.15rem; }
  .section { padding: 3.4rem 0; }
  .section--first {
    padding: calc(var(--header-h) + 1.15rem) 0 1.6rem;
  }
  .inside-grid { gap: 0.85rem; }
  .inside-card__main {
    padding: 1rem 1.05rem 0.75rem;
  }
  .inside-card__icon {
    width: 2.1rem;
    height: 2.1rem;
  }
  .inside-card h3 { font-size: 0.95rem; }
  .inside-card p { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .city-card:hover .city-card__photo img { transform: none; }
}

/* ---------- Section pages (/sections/*.html, built by build_web.py) ---------- */
.section-page { background: var(--cream); }
.sp-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 55%),
    var(--accent, var(--navy));
  color: var(--paper);
  padding: calc(var(--header-h) + 1.6rem) 0 1.7rem;
  border-bottom: 4px solid var(--gold);
}
.sp-hero__crumbs {
  margin: 0 0 0.9rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.sp-hero__crumbs a { color: var(--gold-on-navy); text-decoration: none; }
.sp-hero__crumbs a:hover { color: #fff; text-decoration: underline; }
.sp-hero__row { display: flex; align-items: center; gap: 1rem; }
.sp-hero__icon {
  width: 3.4rem;
  height: 3.4rem;
  flex: none;
  color: var(--gold-on-navy);
  background: rgba(255, 255, 255, 0.13);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 0.55rem;
}
.sp-hero__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sp-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.sp-hero__date {
  margin: 0.3rem 0 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold-soft);
}
.sp-hero__lead {
  margin: 0.9rem 0 0;
  max-width: 44rem;
  color: rgba(255, 252, 247, 0.92);
}

.city-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  background: rgba(255, 252, 247, 0.97);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 6px 18px rgba(11, 61, 92, 0.06);
}
.city-tabs__inner {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.city-tabs__inner::-webkit-scrollbar { display: none; }
.city-tabs__link {
  flex: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  background: var(--city, var(--navy));
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 0.38rem 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.city-tabs__link:hover,
.city-tabs__link:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(11, 61, 92, 0.18);
}

.sp-body { padding: 1.6rem 0 0.5rem; display: grid; gap: 1.4rem; }
.city-block {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-top: 6px solid var(--city, var(--navy));
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem 0.9rem;
  box-shadow: 0 8px 22px rgba(11, 61, 92, 0.06);
  scroll-margin-top: calc(var(--header-h) + 3.6rem);
}
.city-block__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--light-line);
}
.city-block__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--city, var(--navy));
  line-height: 1.15;
}
.city-block__count {
  margin: 0.2rem 0 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.city-block__intro { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.98rem; }
.city-block__photo { margin: 0; flex: none; width: 8.5rem; }
.city-block__photo img {
  width: 8.5rem;
  height: 5.6rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--city, var(--navy));
}
.city-block__photo figcaption {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--muted);
}
.city-block__photo figcaption a { color: inherit; }

.sub { padding-top: 0.9rem; scroll-margin-top: calc(var(--header-h) + 3.6rem); }
.sub__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sub__count {
  font-size: 0.72rem;
  letter-spacing: 0;
  min-width: 1.5rem;
  padding: 0.05rem 0.45rem;
  text-align: center;
  border-radius: 999px;
  color: #fff;
  background: var(--city, var(--navy));
}
.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.story {
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent, var(--river));
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem 0.75rem;
}
.story__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--navy);
}
.story__title a { color: inherit; text-decoration: none; }
.story__title a:hover { color: var(--river); text-decoration: underline; }
.story__summary { margin: 0 0 0.4rem; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.story__meta {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
}
.story__source { color: var(--river); }
.story--note { background: var(--cream); border-left-color: var(--gold); }
.story--note .story__title { font-size: 1rem; }

.empty-state {
  margin: 0.8rem 0 0.3rem;
  padding: 1rem 1.1rem;
  background: var(--cream);
  border: 1px dashed var(--light-line);
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.empty-state p { margin: 0; }
.empty-state strong { color: var(--navy); }
.quiet-subs { margin: 0.9rem 0 0; font-size: 0.88rem; color: var(--muted); }
.quiet-subs strong { color: var(--navy); font-weight: 600; }
.to-top { margin: 0.8rem 0 0; text-align: right; font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem; }

.sp-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  padding: 1.6rem 0 1rem;
}
.sp-pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  background: var(--accent, var(--navy));
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sp-pager__link:hover,
.sp-pager__link:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 61, 92, 0.2); }
.sp-pager__link--next { text-align: right; }
.sp-pager__home { background: var(--paper); color: var(--navy); text-align: center; }
.sp-pager__home:hover, .sp-pager__home:focus-visible { color: var(--navy); }
.sp-pager__dir {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.sp-pager__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.sp-pdf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin-bottom: 2.4rem;
  padding: 1rem 1.3rem;
  background: var(--gold-soft);
  border-radius: var(--radius);
}
.sp-pdf p { margin: 0; color: var(--navy-deep); }
.sp-pdf .btn { padding: 0.6rem 1.15rem; }

@media (max-width: 720px) {
  .sp-hero { padding: calc(var(--header-h) + 1.1rem) 0 1.3rem; }
  .sp-hero__icon { width: 2.8rem; height: 2.8rem; padding: 0.45rem; }
  .sp-hero__lead { font-size: 0.98rem; }
  .city-block { padding: 1.05rem 1rem 0.8rem; }
  .city-block__photo { width: 6.2rem; }
  .city-block__photo img { width: 6.2rem; height: 4.4rem; }
  .city-block__photo figcaption { display: none; }
  .story { padding: 0.75rem 0.85rem; }
  .story__title { font-size: 1.05rem; }
  .sp-pager { grid-template-columns: 1fr 1fr; }
  .sp-pager__home { grid-column: 1 / -1; order: 3; }
  .sp-pdf .btn { width: 100%; }
  .city-tabs__inner { gap: 0.35rem; }
  .city-tabs__link { font-size: 0.8rem; padding: 0.32rem 0.7rem; }
}

/* Gas Prices: most affordable stations nearby (Impacts page, Daily Life block) */
.gas-stations {
  margin-top: 0.75rem;
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.75rem;
}
.gas-stations__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--navy);
}
.gas-stations__title span {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
}
.gas-stations__scroll { overflow-x: auto; }
.gas-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.gas-table th {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  color: #fff;
  background: var(--navy);
  padding: 0.45rem 0.6rem;
}
.gas-table th:first-child { border-top-left-radius: 6px; }
.gas-table th:last-child { border-top-right-radius: 6px; }
.gas-table td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--card-border); vertical-align: middle; }
.gas-table tbody tr:nth-child(even) { background: var(--cream); }
.gas-table tbody tr:first-child .gs-price { color: #1D6B34; }
.gs-rank { width: 2rem; font-family: var(--font-ui); font-weight: 700; color: var(--muted); }
.gs-station a { font-weight: 600; color: var(--navy); text-decoration: none; }
.gs-station a:hover { color: var(--river); text-decoration: underline; }
.gs-addr { display: block; font-size: 0.85rem; color: var(--muted); }
.gs-price { font-family: var(--font-ui); font-weight: 700; font-size: 1.08rem; color: var(--navy); white-space: nowrap; }
.gs-other { display: block; font-weight: 600; font-size: 0.74rem; color: var(--muted); }
.gs-dist, .gs-when { white-space: nowrap; font-size: 0.88rem; color: var(--ink); }
.gas-stations__note, .gas-stations__empty { margin: 0.6rem 0 0; font-family: var(--font-ui); font-size: 0.8rem; color: var(--muted); }
.gas-stations__empty { font-size: 0.95rem; }
@media (max-width: 560px) {
  .gas-table thead { display: none; }
  .gas-table, .gas-table tbody, .gas-table tr { display: block; width: 100%; }
  .gas-table tr { display: grid; grid-template-columns: 1.6rem 1fr auto; gap: 0 0.5rem; padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--card-border); }
  .gas-table td { display: block; padding: 0; border: 0; }
  .gs-rank { grid-row: 1 / span 2; }
  .gs-station { grid-column: 2; }
  .gs-price { grid-column: 3; grid-row: 1; text-align: right; }
  .gs-dist, .gs-when { grid-column: 2 / span 2; display: inline; font-size: 0.8rem; color: var(--muted); }
  .gs-dist { grid-row: 2; }
  .gs-when { grid-row: 3; }
}

/* =====================================================================
   v9 — photos, top stories, data graphics (build_web.py + web_*.py)
   ===================================================================== */

/* ---------- Homepage: today's top stories ---------- */
.section--first { padding-top: calc(var(--header-h) + 1.1rem); }
.today-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.today-head .section__kicker { margin: 0 0 0.15rem; }
.today-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy);
}
.today-head__pdf {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--paper);
  white-space: nowrap;
}
.today-head__pdf:hover { background: var(--gold-soft); color: var(--navy-deep); }

.top-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  align-items: stretch;
  /* Space before "What's inside": ~56px desktop so the two blocks read as separate. */
  margin-bottom: 3.5rem;
}
.ts-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ts-card:hover, .ts-card:focus-within { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11, 61, 92, 0.16); }
.ts-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.ts-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ts-card:hover .ts-card__media img { transform: scale(1.04); }
.ts-card__body { padding: 0.65rem 0.8rem 0.7rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.ts-card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.ts-card__city {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--city, var(--navy)); padding: 0.12rem 0.5rem; border-radius: 999px;
}
.ts-card__section {
  font-family: var(--font-ui); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted);
}
.ts-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-card__link { color: inherit; text-decoration: none; }
.ts-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ts-card__link:focus-visible { outline: none; }
.ts-card:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.ts-card__summary { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--muted); }
.ts-card__foot {
  margin: auto 0 0; display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline;
  font-family: var(--font-ui); font-size: 0.72rem; color: var(--muted);
}
.ts-card__foot time { font-weight: 700; color: var(--navy); }
.ts-card__credit { position: relative; z-index: 2; color: var(--muted); text-decoration: none; font-style: italic; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.ts-card__credit:hover { color: var(--river); text-decoration: underline; }

/* Lead story: photo with the headline over it */
.ts-card--lead { grid-row: span 1; background: var(--navy-deep); border-color: var(--navy-deep); }
.ts-card--lead .ts-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.ts-card--lead .ts-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 40, 60, 0) 25%, rgba(7, 40, 60, 0.55) 55%, rgba(7, 32, 48, 0.94) 100%);
}
.ts-card--lead .ts-card__body { position: relative; justify-content: flex-end; min-height: 100%; padding: 1rem 1.1rem 0.85rem; }
.ts-card--lead .ts-card__title { color: #fff; font-size: clamp(1.25rem, 1.9vw, 1.6rem); -webkit-line-clamp: 3; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.ts-card--lead .ts-card__section { color: var(--gold-soft); }
.ts-card--lead .ts-card__summary { color: rgba(255, 252, 247, 0.9); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-card--lead .ts-card__foot, .ts-card--lead .ts-card__credit { color: rgba(255, 252, 247, 0.85); }
.ts-card--lead .ts-card__foot time { color: var(--gold-on-navy); }
.ts-card--lead .ts-card__credit:hover { color: #fff; }

/* Section grid below the top stories */
.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  flex-wrap: wrap;
}
.section--first .section__head--row { margin-bottom: 0.6rem; }
.section--first .section__head--row .section__lead { max-width: 30rem; font-size: 0.92rem; }
.section--first .section__head--row .section__title { margin: 0; font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
.inside-card__main { flex-direction: row; align-items: flex-start; gap: 0.7rem; padding: 0.6rem 0.8rem 0.5rem; }
.inside-card__icon { flex: none; margin: 0.05rem 0 0; }
.inside-card__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.18rem; }
.inside-card__text p {
  font-size: 0.82rem; line-height: 1.35;
  overflow: visible;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.inside-card__count {
  flex: none;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--gold-on-navy);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.inside-card__count small { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 252, 247, 0.85); margin-top: 0.15rem; }

/* Homepage city cards: larger, seasonal photos */
.city-card__photo { aspect-ratio: 4 / 3; }
.city-card__links { margin-top: auto; }

/* ---------- Section pages: photo header ---------- */
.sp-hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 3.2rem) 0 2.4rem;
  min-height: clamp(20rem, 42vw, 27rem);
  display: flex;
  align-items: flex-end;
  background: var(--navy-deep);
}
.sp-hero--photo .sp-hero__inner { position: relative; z-index: 2; width: min(var(--content), calc(100% - 2.5rem)); }
.sp-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.sp-hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 32, 48, 0.62) 0%, rgba(7, 32, 48, 0.18) 34%, rgba(7, 32, 48, 0.55) 62%, rgba(7, 32, 48, 0.92) 100%),
    linear-gradient(90deg, color-mix(in srgb, var(--accent, #0B3D5C) 55%, transparent) 0%, transparent 65%);
}
.sp-hero--photo .sp-hero__title { font-size: clamp(2rem, 4.4vw, 3.2rem); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.sp-hero--photo .sp-hero__lead { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.sp-hero--photo .sp-hero__icon { background: rgba(7, 40, 60, 0.55); backdrop-filter: blur(4px); }
.sp-hero__top {
  margin: 1rem 0 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
  max-width: 46rem;
  padding: 0.55rem 0.9rem;
  background: rgba(7, 32, 48, 0.62);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  backdrop-filter: blur(4px);
}
.sp-hero__top span { font-family: var(--font-ui); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-on-navy); }
.sp-hero__top a { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.sp-hero__top a:hover { text-decoration: underline; }
.sp-hero__credit {
  position: absolute; right: 0.8rem; bottom: 0.45rem; z-index: 2; margin: 0;
  font-size: 0.7rem; font-style: italic; color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  max-width: 60%; text-align: right;
}
.sp-hero__credit a { color: inherit; }

/* City blocks: wide photo header */
.city-block__head--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 12.5rem;
  margin: -1.3rem -1.5rem 0.4rem;
  padding: 1.2rem 1.5rem 1rem;
  border-bottom: 0;
  border-radius: calc(var(--radius) - 6px) calc(var(--radius) - 6px) 0 0;
  background: var(--city, var(--navy));
}
.city-block__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
}
.city-block__head--photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 32, 48, 0) 20%, rgba(7, 32, 48, 0.35) 50%, color-mix(in srgb, var(--city, #0B3D5C) 88%, #000) 100%);
}
.city-block__head--photo .city-block__name { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.city-block__head--photo .city-block__count { color: var(--gold-on-navy); }
.city-block__head--photo .city-block__intro { color: rgba(255, 252, 247, 0.92); }
.city-block__credit {
  position: absolute; top: 0.5rem; right: 0.7rem; margin: 0; max-width: 55%;
  font-size: 0.68rem; font-style: italic; text-align: right; color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.city-block__credit a { color: inherit; }

/* Story cards with a photo or tile */
.story--media {
  display: grid;
  grid-template-columns: 14.5rem 1fr;
  gap: 0 1.1rem;
  padding: 0.75rem;
  align-items: start;
}
.story__body { min-width: 0; padding-top: 0.1rem; }
.story__media { margin: 0; position: relative; }
.story__media img {
  display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover;
  border-radius: calc(var(--radius-sm) - 3px); background: var(--cream);
}
.story__credit {
  margin-top: 0.3rem; font-size: 0.7rem; line-height: 1.3; font-style: italic; color: var(--muted);
}
.story__credit a { color: inherit; }
.story__chip {
  position: absolute; top: 0.4rem; left: 0.4rem;
  font-family: var(--font-ui); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(7, 32, 48, 0.78); padding: 0.12rem 0.45rem; border-radius: 6px;
}
.story__tile {
  aspect-ratio: 3 / 2;
  border-radius: calc(var(--radius-sm) - 3px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, var(--tile, var(--navy)) 0%, color-mix(in srgb, var(--tile, #0B3D5C) 70%, #000) 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.55);
}
.tile__dow, .tile__mon { font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-on-navy); }
.tile__day { font-family: var(--font-display); font-weight: 600; font-size: 3rem; line-height: 1; margin: 0.1rem 0; }
.tile__icon { position: absolute; right: 0.55rem; bottom: 0.5rem; width: 1.6rem; height: 1.6rem; stroke: rgba(255, 255, 255, 0.45); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.story__tile { position: relative; }
.tile__icon--big { position: static; width: 3rem; height: 3rem; stroke: var(--gold-on-navy); }
.tile__label { margin-top: 0.4rem; font-family: var(--font-ui); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }
.story:target { box-shadow: 0 0 0 3px var(--gold); scroll-margin-top: calc(var(--header-h) + 4rem); }
.story { scroll-margin-top: calc(var(--header-h) + 4rem); }

/* ---------- Data graphics (Impacts page) ---------- */
.viz {
  margin: 0.75rem 0 0;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem 0.75rem;
}
.viz__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--navy);
}
.viz__title span { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.viz__note { margin: 0.5rem 0 0; font-size: 0.78rem; color: var(--muted); line-height: 1.4; }
.viz-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0.8rem; margin-top: 0.75rem; }
.viz-grid .viz { margin: 0; }
.viz__scroll { overflow-x: auto; }
.chart { display: block; width: 100%; min-width: 30rem; height: auto; font-family: var(--font-ui); }
.chart__grid { stroke: #E7E2D8; stroke-width: 1; }
.chart__axis { font-size: 12px; fill: #5A5F66; }
.chart__val { font-size: 15px; font-weight: 700; }
.chart__lbl { font-size: 11px; fill: #5A5F66; }
.chart__legend { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-family: var(--font-ui); font-size: 0.78rem; color: var(--ink); }
.chart__legend span { display: inline-block; width: 0.9rem; height: 0.28rem; border-radius: 2px; margin-right: 0.35rem; vertical-align: middle; }
.viz__map { display: block; width: 100%; height: auto; border-radius: calc(var(--radius-sm) - 3px); border: 1px solid var(--card-border); }

.wx { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.45rem; }
.wx__day {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.15rem;
  padding: 0.55rem 0.3rem 0.5rem;
  background: linear-gradient(180deg, #F2F6FA 0%, #FFFFFF 100%);
  border: 1px solid #E1E8EF; border-radius: var(--radius-sm);
}
.wx__day:first-child { background: linear-gradient(180deg, #E6EEF6 0%, #FFFFFF 100%); border-color: #C9D7E5; }
.wx__name { font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.wx__icon { width: 2.6rem; height: 2.6rem; }
.wx__temps { font-family: var(--font-ui); font-size: 1rem; display: flex; gap: 0.35rem; align-items: baseline; }
.wx__hi { font-weight: 700; color: var(--ink); }
.wx__lo { font-weight: 600; color: #5B6B7C; font-size: 0.92rem; }
.wx__desc { font-size: 0.72rem; line-height: 1.25; color: var(--muted); min-height: 2.5em; }
.wx__pop { font-family: var(--font-ui); font-weight: 700; font-size: 0.68rem; color: #1F6FB2; }

.apts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.apt {
  display: flex; gap: 0.75rem; align-items: center;
  padding: 0.65rem 0.8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--card-border); background: #FBFBF8;
}
.apt__code {
  flex: none; font-family: var(--font-ui); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em;
  color: #fff; background: var(--navy); border-radius: 8px; padding: 0.5rem 0.55rem;
}
.apt__body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.apt__name { font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem; color: var(--muted); }
.apt__status { font-family: var(--font-ui); font-weight: 700; font-size: 1rem; color: var(--ink); display: flex; align-items: center; gap: 0.4rem; }
.apt__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #2E8B57; box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.18); }
.apt__detail { font-size: 0.78rem; color: var(--muted); }
.apt--ok { border-color: #CBE5D6; background: #F3FAF6; }
.apt--warn { border-color: #EED9A8; background: #FFF9EC; }
.apt--warn .apt__dot { background: #C98A12; box-shadow: 0 0 0 3px rgba(201, 138, 18, 0.2); }
.apt--bad { border-color: #F0C2C2; background: #FFF4F4; }
.apt--bad .apt__dot { background: #C0392B; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2); }

.advisories { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.viz--advisories { min-width: 0; overflow: hidden; }
.adv__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "country date" "level level";
  gap: 0.3rem 0.65rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--tap, 44px);
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #FBFBF8;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.adv__link:hover { border-color: var(--gold); background: #fff; color: inherit; }
.adv__country {
  grid-area: country;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  min-width: 0;
  overflow-wrap: anywhere;
}
.adv__level {
  grid-area: level;
  justify-self: start;
  display: inline;
  max-width: 100%;
  min-width: 0;
  min-height: 1.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.adv__level--1 { color: #0F5C2E; background: #E5F6EB; border-color: #B7DFC5; }
.adv__level--2 { color: #7A5C0E; background: #FFF4D6; border-color: #E8D08A; }
.adv__level--3 { color: #8A3B00; background: #FBE8D2; border-color: #E7B78A; }
.adv__level--4 { color: #8A1F20; background: #FBEAEA; border-color: #E7B0B0; }
.adv__date {
  grid-area: date;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
}
.viz--advisories .viz__note a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap, 44px);
  box-sizing: border-box;
}
@media (min-width: 800px) {
  .adv__link {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
    grid-template-areas: "country level date";
  }
}

/* Metra UP-W panel (Impacts page): same card language as airport badges */
.viz--metra { min-width: 0; overflow: hidden; }
.viz--metra .apts { grid-template-columns: 1fr; }
.viz--metra .apt__code {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  min-width: 3.6rem;
  text-align: center;
}
.metra-alerts {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.metra-alert {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: #FBFBF8;
  min-width: 0;
}
.metra-alert__title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.metra-alert__text {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.viz--metra .viz__note a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap, 44px);
  box-sizing: border-box;
}

.page-shell--section .city-block,
.page-shell--section .sub,
.page-shell--section .viz,
.page-shell--section .sp-body {
  min-width: 0;
  max-width: 100%;
}


.footer__note { font-size: 0.82rem; opacity: 0.85; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .top-stories { grid-template-columns: 1fr 1fr; margin-bottom: 2.5rem; }
  .viz-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .inside-grid { grid-template-columns: 1fr 1fr; }
  .wx { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .today-head__pdf { display: none; }
  .top-stories { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 2rem; }
  .ts-card { flex-direction: row; height: auto; }
  .ts-card .ts-card__media { flex: none; width: 38%; aspect-ratio: auto; min-height: 7.5rem; }
  .ts-card__title { font-size: 0.98rem; }
  .ts-card .ts-card__credit { display: none; }
  .inside-grid { grid-template-columns: 1fr; }
  .sp-hero--photo { min-height: 21rem; padding: calc(var(--header-h) + 2rem) 0 2.2rem; }
  .sp-hero__credit { max-width: 90%; }
  .city-block__head--photo { min-height: 10rem; margin: -1.05rem -1rem 0.4rem; padding: 1rem 1rem 0.9rem; }
  .city-block__credit { max-width: 80%; }
  .story--media { grid-template-columns: 1fr; gap: 0.6rem; }
  .story__media img, .story__tile { aspect-ratio: 16 / 9; }
  .wx { grid-template-columns: repeat(7, 4.6rem); overflow-x: auto; padding-bottom: 0.3rem; }
  .apts { grid-template-columns: 1fr; }
  .chart { min-width: 34rem; }
}

/* ---------- River Fox brand + tagline ---------- */
.logo__name { font-size: 1.12rem; color: var(--navy); }
.logo__tagline {
  margin-top: 0.18rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--gold-text);
  white-space: nowrap;
}
@media (max-width: 420px) { .logo__tagline { display: none; } .logo__mark { width: 2.25rem; height: 2.25rem; } }
.today-head__tag {
  margin-left: 0.7rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--light-line);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}
@media (max-width: 560px) { .today-head__tag { display: block; margin: 0.2rem 0 0; padding: 0; border: 0; } }
.footer__brand { display: flex; align-items: center; gap: 0.85rem; margin: 0 0 0.8rem; }
.footer__brand img { width: 3.5rem; height: 3.5rem; flex: none; background: var(--cream); border-radius: 12px; padding: 0.3rem; }
.footer__brand > span { display: flex; flex-direction: column; gap: 0.15rem; }
.footer__brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--paper); line-height: 1.1; }
.footer__tagline { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--gold-on-navy); }
.section--first .section__head--row { max-width: none; }
.ts-card--lead .ts-card__media::after {
  background: linear-gradient(180deg, rgba(7, 40, 60, 0.05) 10%, rgba(7, 40, 60, 0.62) 45%, rgba(7, 32, 48, 0.96) 100%);
}

/* Date / icon tiles are compact; photos get the wide column */
.story--tiled { grid-template-columns: 6.6rem 1fr; }
.story--tiled .story__tile { aspect-ratio: 1 / 1; }
.story--tiled .tile__day { font-size: 2.3rem; }
.story--tiled .tile__icon { width: 1.15rem; height: 1.15rem; right: 0.4rem; bottom: 0.35rem; }
.story--tiled .tile__icon--big { width: 2.2rem; height: 2.2rem; }
.story--tiled .tile__label { font-size: 0.6rem; letter-spacing: 0.08em; }
@media (max-width: 720px) {
  .story--tiled { grid-template-columns: 4.6rem 1fr; gap: 0 0.8rem; }
  .story--tiled .story__tile { aspect-ratio: 1 / 1; }
  .story--tiled .tile__day { font-size: 1.7rem; }
  .story--tiled .tile__dow, .story--tiled .tile__mon { font-size: 0.62rem; letter-spacing: 0.1em; }
  .story--tiled .tile__icon { display: none; }
  .sp-hero--photo { padding-bottom: 3.4rem; }
  .sp-hero__credit { left: 0.8rem; right: 0.8rem; max-width: none; }
}

/* Nav "Subscribe" (weekend newsletter): stays visible on phones; 44px tap target. */
.btn--nav { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.nav-toggle { min-width: 44px; min-height: 44px; }
@media (max-width: 720px) {
  .nav { gap: 0.5rem; }
  .btn--nav { display: inline-flex; order: -1; padding: 0 0.85rem; font-size: 0.8rem; box-shadow: none; }
}
@media (max-width: 400px) {
  .logo__tagline { display: none; }
  .logo__name { font-size: 0.95rem; }
}

/* ---------- Weekly poll sidebar (homepage + section pages) ---------- */
:root { --sidebar-w: 19.5rem; --tap: 44px; }

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: 1.5rem;
  align-items: start;
}
.page-shell > .main-col,
.page-shell > .sp-body,
.main-col { min-width: 0; }
.sidebar { min-width: 0; }

.page-shell .top-stories {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: none;
  align-items: stretch;
}
.page-shell .inside-grid { grid-template-columns: 1fr 1fr; }

/* At 1024+, line the poll sidebar up with the first content row beside it
   (top-story cards on the homepage; the first city block on section pages),
   not with the heading or the section-body padding above those items. */
@media (min-width: 1024px) {
  /* Explicit rows so the sidebar can start on row 2 (the top-story cards),
     not row 1 (the date / “Today’s top stories” heading). -1 is unreliable
     when rows are only implicit. */
  .page-shell:not(.page-shell--section) {
    column-gap: 1.5rem;
    row-gap: 0;
    grid-template-rows: auto auto auto 1fr;
  }
  .page-shell:not(.page-shell--section) > .main-col {
    display: contents;
  }
  .page-shell:not(.page-shell--section) .today-head {
    grid-column: 1;
    grid-row: 1;
  }
  .page-shell:not(.page-shell--section) .top-stories {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .page-shell:not(.page-shell--section) .section__head {
    grid-column: 1;
    grid-row: 3;
  }
  .page-shell:not(.page-shell--section) .inside-grid {
    grid-column: 1;
    grid-row: 4;
    min-width: 0;
  }
  .page-shell:not(.page-shell--section) > .sidebar {
    grid-column: 2;
    grid-row: 2 / 5;
  }
  .page-shell--section {
    padding-top: 1.6rem;
  }
  .page-shell--section > .sp-body {
    padding-top: 0;
  }
}


.sidebar-stack { display: flex; flex-direction: column; gap: 1rem; }
.side-card {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08);
  overflow: hidden;
}
.side-card--poll {
  border: 2px solid var(--gold);
  position: static;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08);
}
.poll-card__head {
  background: var(--navy);
  color: var(--paper);
  padding: 0.85rem 1rem 0.8rem;
  border-bottom: 4px solid var(--gold);
}
.poll-card__kicker {
  margin: 0 0 0.25rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-on-navy);
}
.poll-card__head h2,
.poll-card__head .poll-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFCF7;
}
.poll-card__meta {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 252, 247, 0.85);
}
.poll-card__body { padding: 0.85rem 0.9rem 1rem; }
.poll-card__prompt { margin: 0 0 0.7rem; font-size: 0.88rem; color: var(--muted); }
.poll-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.poll-options button,
.poll-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--tap);
  text-align: left;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  cursor: pointer;
}
.poll-options button:hover,
.poll-option:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--navy-deep);
}
.poll-options button:disabled { opacity: 0.65; cursor: default; }
.poll-card__note { margin: 0.75rem 0 0; font-size: 0.75rem; line-height: 1.45; color: var(--muted); }
.poll-card__error { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--geneva); font-weight: 600; }
.poll-card__links {
  margin: 0.65rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
}
.poll-card__links a { min-height: var(--tap); display: inline-flex; align-items: center; }

.poll-thanks { margin: 0; }
.poll-thanks__label {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.poll-thanks h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.25;
}
.poll-thanks p { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.95rem; }
.poll-choice {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--navy-deep);
}
.poll-choice--quiet { font-weight: 600; }

.poll-bar { margin: 0 0 0.7rem; }
.poll-bar__row { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.poll-bar__name { font-family: var(--font-ui); font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.poll-bar__pct { font-family: var(--font-ui); font-weight: 700; color: var(--gold-text); }
.poll-bar__track { height: 0.7rem; background: var(--cream); border-radius: 999px; overflow: hidden; margin-top: 0.3rem; }
.poll-bar__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-on-navy)); border-radius: 999px; }
.poll-results__total { margin: 0.35rem 0 0; font-size: 0.82rem; color: var(--muted); }

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: repeating-linear-gradient(-45deg, #F7F3EB, #F7F3EB 8px, #F3E7C7 8px, #F3E7C7 16px);
  border: 2px dashed var(--gold-deep);
  color: var(--navy);
  text-align: center;
  text-decoration: none;
  padding: 0.85rem 0.7rem;
  min-height: var(--tap);
}
.ad-slot:hover { color: var(--navy-deep); }
.ad-slot__label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.ad-slot__cta {
  margin: 0.35rem 0 0.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  line-height: 1.2;
}
.ad-slot__size { margin: 0; font-size: 0.78rem; color: var(--muted); }
.ad--rect { aspect-ratio: 300 / 250; min-height: 250px; height: 250px; }
.ad--half { width: 100%; max-width: 300px; height: 600px; min-height: 600px; }

.classifieds__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem 0.5rem;
  border-bottom: 1px solid var(--card-border);
}
.classifieds__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
}
.classifieds__head a {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.classifieds__empty { padding: 0.85rem 0.9rem 1rem; }
.classifieds__empty p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.92rem; }
.classifieds__empty p:last-child { margin-bottom: 0; }
.classifieds__list { list-style: none; margin: 0; padding: 0; }
.classifieds__list li { border-top: 1px solid var(--card-border); }
.classifieds__list li:first-child { border-top: 0; }
.classifieds__item {
  display: block;
  padding: 0.55rem 0.9rem;
  min-height: var(--tap);
  text-decoration: none;
  color: inherit;
}
.classifieds__item:hover { background: var(--cream); color: inherit; }
.cl-cat {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--river);
  margin-bottom: 0.15rem;
}
.cl-title { margin: 0; font-weight: 600; font-size: 0.9rem; color: var(--navy); line-height: 1.3; }

.poll-archive { margin-top: 1rem; }
.poll-archive__item {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  margin: 0 0 1rem;
}
.poll-archive__item h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
}
.poll-archive__meta { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Ask the Digest ---------- */
.side-card--ask {
  border: 2px solid var(--gold);
  position: static;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08);
}
.ask-card__head {
  background: var(--navy);
  color: var(--paper);
  padding: 0.85rem 1rem 0.8rem;
  border-bottom: 4px solid var(--gold);
}
.ask-card__kicker {
  margin: 0 0 0.25rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-on-navy);
}
.ask-card__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFCF7;
}
.ask-card__body { padding: 0.85rem 0.9rem 1rem; }
.ask-card__pitch { margin: 0 0 0.75rem; font-size: 0.88rem; color: var(--muted); }
.ask-form { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; }
.ask-form label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--navy-deep);
  margin-top: 0.35rem;
}
.ask-optional { font-weight: 500; color: var(--muted); }
.ask-form textarea,
.ask-form select,
.ask-form input[type="text"],
.ask-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--tap);
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--navy-deep);
  background: #fff;
}
.ask-form textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.4;
}
.ask-form .btn {
  width: 100%;
  margin-top: 0.55rem;
  min-height: var(--tap);
}
.ask-count {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}
.ask-privacy,
.ask-card__links {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.ask-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.82rem;
}
.ask-card__links a,
.ask-answer__sources a {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.ask-error {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--geneva);
  font-weight: 600;
}
.ask-thanks { margin: 0; }
.ask-thanks__label {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.ask-thanks p { margin: 0 0 0.55rem; color: var(--muted); font-size: 0.95rem; }
.ask-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ask-form { position: relative; }
.ask-empty { max-width: 38rem; color: var(--muted); }
.ask-answer {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.05rem;
  margin: 0 0 1rem;
  box-shadow: 0 8px 20px rgba(11, 61, 92, 0.06);
}
.ask-answer h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.ask-answer__meta { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.88rem; }
.ask-answer__body { margin: 0 0 0.7rem; }
.ask-answer__sources { margin: 0; font-size: 0.88rem; color: var(--muted); }

.polls-page .poll-page-featured .side-card--poll { position: static; box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08); }
.polls-page .poll-page-featured .sidebar,
.polls-page .poll-page-featured .sidebar-stack { display: contents; }
.polls-page .poll-page-featured .side-card--ad,
.polls-page .poll-page-featured .classifieds { display: none; }

@media (max-width: 1023px) {
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .page-shell > .main-col,
  .page-shell > .sp-body { order: 1; }
  .side-card--poll { position: static; box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08); }
  .ad--half { display: none; }
  .sidebar-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }
  .side-card--poll,
  .side-card--ask { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .page-shell .top-stories {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .page-shell .inside-grid { grid-template-columns: 1fr; }
  .sidebar-stack { grid-template-columns: 1fr; }
  .ad--rect {
    height: auto;
    min-height: 0;
    aspect-ratio: 300 / 250;
    width: 100%;
    max-width: 300px;
  }
}

/* Tap targets: weekly poll sidebar + nav/footer/comment form */
.nav__links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.field input {
  min-height: 44px;
  box-sizing: border-box;
}
.poll-card__links a,
.ask-card__links a,
.ask-answer__sources a,
.classifieds__head a,
.classifieds__empty a,
.classifieds__item {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}


/* ---------- Attractions section (downtown places; built from attractions.yaml) ---------- */
.city-tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
}
.attr-city { min-width: 0; max-width: 100%; }
.attr-city .city-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.attr-city .city-block__count {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.attr-photo {
  margin: 0 0 1.1rem;
  min-width: 0;
}
.attr-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm, 8px);
  background: #e8e4da;
}
.attr-photo figcaption {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}
.attr-photo figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
}
.attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  min-width: 0;
}
.attr-card {
  min-width: 0;
  background: #FBFBF8;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm, 8px);
  padding: 0.85rem 0.95rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.attr-card__cat {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--city, var(--gold-text, #9E5E12));
}
.attr-card__name {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.attr-card__desc,
.attr-card__addr,
.attr-card__note,
.attr-card__hours,
.attr-card__season {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink, #1a1a1a);
  overflow-wrap: anywhere;
}
.attr-card__addr,
.attr-card__note,
.attr-card__hours,
.attr-card__season { color: var(--muted); }
.attr-card__hours span {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--navy);
  margin-right: 0.3rem;
}
.attr-card__cta { margin: 0.15rem 0 0; }
.attr-card__web {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.attr-card__web:hover { color: var(--gold-text, #9E5E12); }
@media (max-width: 720px) {
  .attr-grid { grid-template-columns: 1fr; }
}

/* 44px tap targets for homepage section-card city links */
.inside-card__cities a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
}

/* ---------- Community submissions (/submit/ and section-page line items) ---------- */
.submit-wrap { max-width: 46rem; }
.submit-lead { margin: 0.4rem 0 1.2rem; color: var(--muted); font-size: 1.05rem; max-width: 38rem; }
.submit-form {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08);
}
.submit-form[hidden], .submit-thanks[hidden], .submit-error[hidden],
.community-block [hidden], .submit-thanks [hidden],
.submit-form [hidden], .connect-page [hidden] { display: none !important; }
.submit-kinds { border: 0; margin: 0 0 0.6rem; padding: 0; min-width: 0; }
.submit-kinds legend,
.sf label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-deep);
  padding: 0;
  margin: 0 0 0.35rem;
}
.submit-kinds__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.kind-pill { position: relative; display: block; cursor: pointer; }
.kind-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kind-pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.4rem 0.5rem;
  border: 2px solid var(--card-border);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  text-align: center;
  line-height: 1.15;
}
.kind-pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #FFFCF7; }
.kind-pill input:focus-visible + span { box-shadow: var(--focus); }
.submit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.85rem 1rem; }
.sf { display: flex; flex-direction: column; min-width: 0; }
.sf--wide { grid-column: 1 / -1; }
.sf-opt { font-weight: 500; color: var(--muted); }
.sf input, .sf select, .sf textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 1rem; /* 16px: no iOS zoom on focus */
  color: var(--navy-deep);
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  max-width: 100%;
}
.sf select {
  padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%;
  background-size: 0.36rem 0.36rem;
  background-repeat: no-repeat;
  text-overflow: ellipsis;
}
.sf input[type="datetime-local"] { min-width: 0; display: block; line-height: 1.3; }
.sf input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; }
.sf textarea { min-height: 7rem; resize: vertical; line-height: 1.45; }
.sf input:focus, .sf select:focus, .sf textarea:focus { outline: none; border-color: var(--navy); box-shadow: var(--focus); }
.sf-count { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--muted); text-align: right; }
.submit-error {
  margin: 0 0 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: #FBEAEA;
  color: #8A1C1C;
  font-weight: 600;
}
.submit-privacy { margin: 1rem 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }
.submit-btn { width: 100%; min-height: 52px; margin-top: 0.9rem; font-size: 1.05rem; }
.submit-thanks {
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08);
}
.submit-thanks:focus { outline: none; }
.submit-thanks { scroll-margin-top: calc(var(--header-h) + 1rem); }
.submit-thanks__label {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.submit-thanks__links, .submit-result__links { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.8rem 0 0; }
.submit-again {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.submit-again:hover, .submit-again:focus-visible { background: var(--navy); color: #FFFCF7; }
.submit-thanks .btn, .submit-result .btn { min-height: 44px; padding: 0.6rem 1.1rem; }
.submit-fine { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.submit-fine a { display: inline-block; padding: 0.6rem 0; margin: -0.6rem 0; }
.submit-result { max-width: 40rem; }
.submit-result__msg { font-size: 1.1rem; }
.submit-result__links a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.community-block {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-top: 6px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.5rem 1.1rem;
  margin: 0 0 1.4rem;
  box-shadow: 0 8px 22px rgba(11, 61, 92, 0.06);
  scroll-margin-top: calc(var(--header-h) + 3.6rem);
}
.community-block--empty { padding-bottom: 0.7rem; }
.community-block__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; }
.community-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.community-block__title .sub__count { background: var(--gold-deep); font-family: var(--font-ui); }
.community-block__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--river);
}
.community-block__cta::after { content: " →"; white-space: pre; }
.community-block__note { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.95rem; }
.community-list { margin-top: 0.6rem; }
.story--community { border-left-color: var(--gold); }
.story--community .story__title a { min-height: 0; }
.cm-chips { margin: 0 0 0.3rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cm-chip {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--gold-soft);
  color: var(--gold-text);
}
.cm-chip--fundraiser { background: #E5F0E8; color: #2E6B4F; }
.cm-chip--tip { background: #EDE6F0; color: #6B2D5B; }
.cm-chip--city { background: #E6EEF3; color: var(--navy); }

@media (max-width: 720px) {
  .submit-grid { grid-template-columns: minmax(0, 1fr); }
  .submit-form { padding: 1rem 0.9rem 1.1rem; }
  .community-block { padding: 0.9rem 1rem 1rem; }
  .kind-pill span { font-size: 0.9rem; }
}
/* Subscribe lives under the search box (and in the footer). The header copy is
   only for the mobile menu, so keep it out of the desktop/tablet row. */
.nav__subscribe { display: none; }
@media (max-width: 720px) {
  .nav__subscribe { display: list-item; }
}

/* Keep the River Fox logo at its full size on desktop/tablet. Nav links fold
   instead of squeezing the mark, name, or tagline. */
@media (min-width: 721px) {
  .logo { flex-shrink: 0; min-width: auto; }
}

/* Header can use more width than the 72rem content column so longer nav labels
   (Weekly Poll, Ask Question, Submit Events/Tips) stay on one line. */
.site-header .wrap { width: min(90rem, calc(100% - 2.5rem)); }
@media (max-width: 720px) {
  .site-header .wrap { width: min(90rem, calc(100% - 1.75rem)); }
}

/* Tablet header: tighter type and gaps so more links stay visible without crowding the logo.
   Cities and Archive are no longer in the header; Subscribe moved under Search.
   Hide rules measured so the longest nav (Today + Photo + Comments) stays on one
   line, with a gap from the logo, down to the hamburger at 720px. */
/* Tighter type on all desktop/tablet widths so longer labels fit with a full logo. */
@media (min-width: 721px) {
  .nav { gap: 0.7rem; }
  .nav__links { gap: 0.65rem; }
  .nav__links a { font-size: 0.85rem; }
}



/* Air Quality & Pollen (Impacts page, directly under Weather) */
.viz--aqi { min-width: 0; overflow: hidden; }
.aqi { display: grid; gap: 0.75rem; min-width: 0; }
.aqi__block {
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #fff;
}
.aqi__kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.aqi__now {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  margin: 0 0 0.4rem;
}
.aqi__num {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--navy);
}
.aqi__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.2;
}
.aqi__badge--good { color: #0F5C2E; background: #E5F6EB; border-color: #B7DFC5; }
.aqi__badge--moderate { color: #7A5C0E; background: #FFF4D6; border-color: #E8D08A; }
.aqi__badge--usg { color: #8A3B00; background: #FBE8D2; border-color: #E7B78A; }
.aqi__badge--unhealthy { color: #8A1F20; background: #FBEAEA; border-color: #E7B0B0; }
.aqi__badge--very-unhealthy { color: #4A1B6B; background: #F3E8FB; border-color: #D0B3E8; }
.aqi__badge--hazardous { color: #5B1020; background: #F8D6DE; border-color: #D89AA8; }
.aqi__badge--alert { color: #8A1F20; background: #FBEAEA; border-color: #E7B0B0; }
.aqi__guide, .aqi__meta { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.92rem; }
.aqi__meta { font-size: 0.85rem; }
.aqi__pollen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.35rem 0.7rem;
  min-width: 0;
}
.aqi__pollen li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.92rem;
}
.aqi__pollen-name { color: var(--ink); }
.aqi__pollen-level { font-weight: 700; color: var(--navy); }
.aqi__alerts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.aqi__alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  min-height: 44px;
  padding: 0.35rem 0;
  color: inherit;
  text-decoration: none;
}
.aqi__alert:hover { color: var(--navy); }
.viz--aqi .viz__note a,
.aqi__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
}
@media (max-width: 639px) {
  .aqi__pollen { grid-template-columns: 1fr; }
  .aqi__block { padding: 0.75rem 0.8rem; }
}

/* ---------- Sidebar search box (sits directly above This week's poll; same column, so same left/right edges) ---------- */
.sidebar-stack > .site-search,
.sidebar-stack > .sidebar-search-block { width: 100%; margin: 0; grid-column: 1 / -1; } /* full row in the 2-col tablet stack, like the poll card */
.sidebar-search-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}
.sidebar-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  text-align: center;
}
.site-search {
  display: block;
  padding: 0.8rem 0.9rem 0.9rem;
  border: 2px solid var(--gold);
  box-sizing: border-box;
}
.site-search__label {
  display: block;
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}
.site-search__row { display: flex; gap: 0.5rem; min-width: 0; }
.site-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: var(--tap, 44px);
  padding: 0 0.75rem;
  border: 1px solid var(--light-line);
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
}
.site-search__input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.site-search__btn {
  flex: none;
  min-height: var(--tap, 44px);
  padding: 0 0.95rem;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.site-search__btn:hover { background: var(--navy-deep); }
.search-status { margin: 0 0 1rem; color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.search-result { background: var(--paper); border: 1px solid var(--card-border); border-radius: var(--radius-sm); padding: 0.85rem 1rem; min-width: 0; }
.search-result__title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.search-result__title:hover { text-decoration: underline; }
.search-result__meta { margin: 0.25rem 0 0; font-size: 0.8rem; color: var(--muted); font-family: var(--font-ui); }
.search-result__summary { margin: 0.35rem 0 0; font-size: 0.92rem; overflow-wrap: anywhere; }

/* ---------- Let's Connect (/connect/ form + public board) ---------- */
.cn-safety { margin-top: 1rem; }
.cn-board { margin-top: 0.4rem; }
.cn-empty { margin: 0.4rem 0 0; color: var(--muted); font-size: 1.05rem; max-width: 38rem; }
.cn-list { display: grid; gap: 0.9rem; margin-top: 1rem; }
.cn-card {
  background: var(--paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.05rem;
  box-shadow: 0 8px 20px rgba(11, 61, 92, 0.06);
  min-width: 0;
}
.cn-card__chips { margin: 0 0 0.35rem; }
.cn-card__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--navy-deep);
  overflow-wrap: anywhere;
}
.cn-card__meta { margin: 0; color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.cn-card__desc { margin: 0.5rem 0 0; overflow-wrap: anywhere; }
.cn-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.1rem;
  margin: 0.75rem 0 0;
}
.cn-join {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--navy);
}
.cn-report { margin: 0; }
.cn-report__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.2rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cn-report__btn:hover, .cn-report__btn:focus-visible { color: var(--navy); }
.cn-report__done { margin: 0.5rem 0 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 720px) {
  .connect-page .submit-kinds__row { grid-template-columns: 1fr; }
  .cn-card { padding: 0.9rem 0.95rem 1rem; }
}

/* ---------- Local Jobs (/jobs/ form, highlight, and board) ---------- */
.job-apply-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.job-card__employer {
  margin: 0 0 0.25rem;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.job-card__highlight {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-feature {
  border-top: 6px solid var(--gold);
  box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08);
}
.job-inperson { font-size: 0.95rem; overflow-wrap: anywhere; }
.job-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1rem;
}
.job-filter__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 2px solid var(--card-border);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.job-filter__btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #FFFCF7;
}
.job-filter__btn:focus-visible { box-shadow: var(--focus); }
@media (max-width: 720px) {
  .jobs-page .submit-kinds__row { grid-template-columns: 1fr; }
}

/* ---------- Real Estate (/real-estate/ form + public board) ---------- */
.re-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0.2rem 0 0.4rem;
}
.re-filter { min-width: 0; display: grid; gap: 0.3rem; }
.re-filter label { font-size: 0.88rem; font-weight: 600; }
.re-filter select {
  min-height: 44px;
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line, #d8d0c4);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.re-list { display: grid; gap: 0.9rem; margin-top: 1rem; }
.re-card { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.9rem 1rem; align-items: start; }
.re-card:not(:has(.re-card__media)) { grid-template-columns: minmax(0, 1fr); }
.re-card__media { min-width: 0; }
.re-card__photo { display: block; border-radius: 10px; overflow: hidden; min-height: 44px; }
.re-card__photo img,
.re-card__thumbs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ece6dc;
}
.re-card__thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0.35rem 0 0;
}
.re-card__thumbs a { display: block; border-radius: 8px; overflow: hidden; min-height: 44px; }
.re-card__body { min-width: 0; }
.re-card__price {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.re-card__facts { margin: 0.25rem 0 0; font-size: 0.95rem; }
.re-card .cn-card__actions { flex-wrap: wrap; gap: 0.5rem 0.85rem; align-items: center; }
.re-contact, .re-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0;
}
.re-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.55rem 0 0;
  font-weight: 500;
  cursor: pointer;
}
.re-check input { width: 1.15rem; height: 1.15rem; margin: 0.2rem 0 0; flex: none; }
.re-check span { padding-top: 0.1rem; }
.re-previews { margin: 0.45rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; }
.sf-hint { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.re-fair { margin-top: 1rem; }
@media (max-width: 720px) {
  .re-filters { grid-template-columns: 1fr; }
  .re-card { grid-template-columns: minmax(0, 1fr); }
  .re-page .submit-kinds__row { grid-template-columns: 1fr 1fr; }
}

/* What's Being Built? map (/building/): header link shows on wide screens and in the
   mobile menu. Fold point is set with the other nav hides below. */

/* Homepage card for the map (FV:BUILDING, written by building.py under the photo card). */
.bld-home { margin-top: 2.2rem; }
.bld-home .bld-home__head { margin-bottom: 1rem; max-width: none; }
.bld-home .section__title { font-size: clamp(1.55rem, 2.3vw, 2rem); margin-bottom: 0; }
.bld-home__card {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: stretch;
  background: var(--paper); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08); color: var(--ink); text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.bld-home__card:hover { color: var(--ink); box-shadow: 0 14px 32px rgba(11, 61, 92, 0.14); transform: translateY(-2px); }
.bld-home__card:focus-visible { outline: none; box-shadow: var(--focus); }
.bld-home__art {
  position: relative; display: block; min-height: 200px; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(255,255,255,0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, #0B3D5C 0%, #1A6B7A 100%);
}
.bld-home__river { position: absolute; left: 44%; top: -10%; width: 18px; height: 120%; border-radius: 40%; background: rgba(147, 205, 214, 0.55); transform: rotate(14deg); }
.bld-home__pin {
  position: absolute; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); border: 2px solid #fff; color: #fff;
  font: 700 0.78rem/1 var(--font-ui); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.bld-home__pin::after { content: none; }
.bld-home__pin--construction { background: #B4531A; }
.bld-home__pin--zoning { background: #5B3F8C; }
.bld-home__pin--restaurant { background: #0E7468; }
.bld-home__body { display: flex; flex-direction: column; justify-content: center; gap: 0.45rem; padding: 1.25rem 1.4rem; }
.bld-home__count { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; color: var(--navy); }
.bld-home__parts { font: 600 0.84rem/1.4 var(--font-ui); color: var(--muted); }
.bld-home__n--construction { color: #8F3F12; }
.bld-home__n--zoning { color: #4A3274; }
.bld-home__n--restaurant { color: #0A5A51; }
.bld-home__pitch { font-size: 1rem; line-height: 1.5; }
.bld-home__btn { align-self: flex-start; padding: 0.65rem 1.25rem; min-height: 44px; margin-top: 0.3rem; }
@media (max-width: 640px) {
  .bld-home__card { grid-template-columns: 1fr; }
  .bld-home__art { min-height: 140px; }
  .bld-home__body { padding: 0.9rem 1rem 1rem; }
}
@media (min-width: 1024px) {
  body .page-shell:not(.page-shell--section) { grid-template-rows: auto auto auto auto auto 1fr; }
  body .page-shell:not(.page-shell--section) > .main-col > .bld-home { grid-column: 1; grid-row: 6; min-width: 0; align-self: start; }
  body .page-shell:not(.page-shell--section) > .sidebar { grid-row: 2 / 7; }
}

/* Games (games.py): homepage card (FV:GAMES, under the map card) — compact, same frame as the map card. */
.gm-home { margin-top: 2.2rem; }
.gm-home .gm-home__head { margin-bottom: 1rem; max-width: none; }
.gm-home .section__title { font-size: clamp(1.55rem, 2.3vw, 2rem); margin-bottom: 0; }
.gm-home__card {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: stretch;
  background: var(--paper); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 26px rgba(11, 61, 92, 0.08);
}
.gm-home__art { position: relative; display: block; min-height: 200px; background: var(--navy); }
.gm-home__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gm-home__badge { position: absolute; left: 0.75rem; top: 0.75rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: rgba(7, 40, 60, 0.86); color: #fff; font: 700 0.78rem/1.2 var(--font-ui); }
.gm-home__body { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; padding: 1.25rem 1.4rem; }
.gm-home__pitch { margin: 0; font-size: 1rem; line-height: 1.5; }
.gm-home__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; margin: 0.2rem 0 0; }
.gm-home__btn { padding: 0.65rem 1.25rem; min-height: 44px; }
.gm-home__all { display: inline-flex; align-items: center; min-height: 44px; font: 600 0.95rem/1.2 var(--font-ui); color: var(--navy); }
@media (max-width: 640px) {
  .gm-home__card { grid-template-columns: 1fr; }
  .gm-home__art { min-height: 0; aspect-ratio: 4 / 3; }
  .gm-home__body { padding: 0.9rem 1rem 1rem; }
}
@media (min-width: 1024px) {
  body .page-shell:not(.page-shell--section):has(> .main-col > .gm-home) { grid-template-rows: auto auto auto auto auto auto auto 1fr; }
  body .page-shell:not(.page-shell--section) > .main-col > .gm-home { grid-column: 1; grid-row: 7; min-width: 0; align-self: start; }
  body .page-shell:not(.page-shell--section):has(> .main-col > .gm-home) > .sidebar { grid-row: 2 / 9; }
}

/* Subpage header folds, measured in Chromium, Firefox and WebKit after the longer
   labels (Weekly Poll, Ask Question, Submit Events/Tips, Photos). Logo stays full
   size; links stay on one line with a 16px+ gap. Building Map folds first, then
   Comments, Let’s Connect, Photos, Games, then Local Jobs / Real Estate / For Sale
   (the current page’s own link is kept). Homepage overrides these in listings.css. */
@media (min-width: 721px) and (max-width: 1202px) {
  .nav__links li.nav__building { display: none; }
}
@media (min-width: 721px) and (max-width: 1110px) {
  .nav__links li:has(> a[href$="#comments"]) { display: none; }
}
@media (min-width: 721px) and (max-width: 1094px) {
  .nav__links li:has(> a[href$="connect/"]),
  .nav__links li:has(> a[href*="/connect/"]) { display: none; }
}
@media (min-width: 721px) and (max-width: 998px) {
  .nav__links li:has(> a[href$="photo/"]),
  .nav__links li:has(> a[href*="/photo/"]) { display: none; }
}
@media (min-width: 721px) and (max-width: 944px) {
  .nav__links li.nav__games,
  .nav__links li:has(> a[href$="games/"]),
  .nav__links li:has(> a[href*="/games/"]) { display: none; }
}
@media (min-width: 721px) and (max-width: 889px) {
  .nav__links li:has(> a[href$="jobs/"]:not([aria-current])),
  .nav__links li:has(> a[href*="/jobs/"]:not([aria-current])),
  .nav__links li:has(> a[href$="real-estate/"]:not([aria-current])),
  .nav__links li:has(> a[href*="/real-estate/"]:not([aria-current])),
  .nav__links li:has(> a[href$="for-sale/"]:not([aria-current])),
  .nav__links li:has(> a[href*="/for-sale/"]:not([aria-current])) { display: none; }
}
@media (min-width: 721px) and (max-width: 740px) {
  .nav { gap: 0.5rem; }
  .nav__links { gap: 0.45rem; }
  .nav__links a { font-size: 0.8rem; }
}
