:root {
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.85);
  --panel-strong: #ffffff;
  --text: #1c2530;
  --muted: #66778a;
  --accent: #87a8ff;
  --accent-soft: #dfe8ff;
  --border: rgba(145, 164, 190, 0.25);
  --shadow: 0 18px 50px rgba(66, 86, 122, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;

  --color-community: #cfe8ff;
  --color-school: #e6d9ff;
  --color-town: #e8d8c3;
  --color-secondfriday: #ffe2cc;
  --color-fallfest: #ffd6e7;
  --color-covh: #d9f5d6;
  --color-county-events: #1f5fbf;

  --color-text-dark: #333;
}

/* =========================
   Base
   ========================= */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #ffffff 0%, #eff4ff 35%, #edf4f6 100%);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.05;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

h3 {
  margin-bottom: 10px;
}

.hidden {
  display: none !important;
}

.subtle {
  color: var(--muted);
  line-height: 1.45;
}

/* =========================
   Layout shells
   ========================= */
.page-shell {
  min-height: 100vh;
  padding: 18px;
}

.phone-shell {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-shell {
  padding-bottom: 24px;
}

.wide-shell {
  max-width: 100%;
}

/* =========================
   Shared cards / pills / buttons
   ========================= */
.back-link,
.top-badge,
.pill,
.meta-chip,
.day-chip,
.tab-button,
.filter-chip,
.resource-link,
.theme-toggle,
.flyer-action {
  border-radius: 999px;
}
.location-group-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #075985;
}

.location-group-pill.mt-pulaski {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #075985;
}

.location-group-pill.chestnut {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

.location-group-pill.elkhart {
  background: #e9d5ff;
  border-color: #d8b4fe;
  color: #6b21a8;
}

.location-group-pill.latham {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #166534;
}

.back-link,
.top-badge,
.pill,
.meta-chip,
.day-chip,
.tab-button,
.hero-card,
.info-card,
.event-launch-card,
.map-card,
.item-card,
.location-card,
.vendor-card,
.schedule-card,
.modal-card,
.theme-toggle,
.filter-chip,
.resource-link,
.flyer-action {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.generated-map {
  width: 100%;
  height: auto;
}

.map-bg {
  fill: #efe4cf;
}

.map-street {
  font-size: 20px;
  font-weight: 700;
  fill: #334a62;
}

.rotate-left {
  transform: rotate(-90deg);
}

.rotate-right {
  transform: rotate(90deg);
}

.map-slot-label {
  font-size: 12px;
  font-weight: 700;
  fill: #8c1223;
}

.slot-vendor {
  fill: #f7f7f4;
  stroke: #8c1223;
  stroke-width: 2;
  cursor: pointer;
}

.slot-kids {
  fill: #fff4de;
  stroke: #8c1223;
  stroke-width: 2;
}

.slot-parade {
  fill: #eef2f7;
  stroke: #5f7487;
  stroke-dasharray: 5 4;
}

.slot-feature {
  fill: #f0c13a;
  stroke: #8c1223;
}

.assigned rect {
  stroke-width: 3;
  fill: #ffd27a;
}

.highlight {
  outline: 3px solid #ffd27a;
}

#map-tooltip {
  position: absolute;
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  pointer-events: none;
  z-index: 9999;
}

.generated-map--courthouse .map-street-band {
  fill: rgba(60, 60, 60, 0.12);
  stroke: rgba(60, 60, 60, 0.18);
  stroke-width: 2;
}

.generated-map--courthouse .map-zone-label {
  fill: #1f2937;
  font-size: 18px;
  font-weight: 700;
  text-anchor: middle;
}

.generated-map--courthouse .slot-food {
  fill: rgba(245, 158, 11, 0.30);
  stroke: rgba(180, 83, 9, 0.8);
}

.generated-map--courthouse .slot-beverage {
  fill: rgba(34, 197, 94, 0.28);
  stroke: rgba(21, 128, 61, 0.85);
}

.generated-map--courthouse .slot-restroom {
  fill: rgba(168, 85, 247, 0.26);
  stroke: rgba(107, 33, 168, 0.85);
}

.vendor-card,
.location-card {
  display: grid;
  gap: 0.65rem;
}

.inline-link-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent, #7f1220);
  text-decoration: underline;
  cursor: pointer;
}

.is-pulsing {
  animation: mapPulse 1.6s ease-in-out;
}

@keyframes mapPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}

.back-link,
.top-badge,
.pill,
.meta-chip,
.day-chip,
.resource-link {
  padding: 10px 14px;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--text);
}

.hero-card,
.info-card,
.event-launch-card,
.map-card,
.item-card,
.location-card,
.vendor-card,
.schedule-card {
  border-radius: var(--radius-xl);
  padding: 18px;
}

.hero-card.compact {
  padding-top: 20px;
}

.event-launch-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.event-launch-card h2 {
  margin-top: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.soft-list {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tab-button {
  appearance: none;
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text);
  cursor: pointer;
}

.tab-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.tab-button.active,
.tab-button[aria-selected="true"],
.day-chip.active {
  background: linear-gradient(180deg, #eef3ff 0%, #dce7ff 100%);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.inline-link-button,
.modal-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #f7faff 0%, #e8efff 100%);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.map-event-claim {
  fill: none;
  stroke: rgba(91, 33, 182, 0.85);
  stroke-width: 3;
}

.map-event-claim--viewing {
  fill: none;
  stroke: rgba(107, 33, 168, 0.8);
  stroke-width: 2.5;
  stroke-dasharray: 10 8;
}

.map-event-claim--announcer {
  fill: none;
  stroke: rgba(180, 83, 9, 0.85);
  stroke-width: 2.5;
}

.map-parade-route-line {
  stroke: rgba(107, 33, 168, 0.85);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 14 10;
}

.map-event-claim-label {
  fill: rgba(55, 65, 81, 0.98);
  font-size: 18px;
  font-weight: 800;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 4px;
}

.map-parade-route-label {
  fill: rgba(107, 33, 168, 0.98);
}

.generated-map .slot-anchor,
.generated-map .slot-feature,
.generated-map .slot-beverage,
.generated-map .slot-food,
.generated-map .slot-restroom {
  position: relative;
}

.generated-map .slot-anchor,
.generated-map .slot-feature,
.generated-map .slot-beverage,
.generated-map .slot-food,
.generated-map .slot-restroom,
.generated-map .map-zone-label,
.generated-map .map-assignment-label {
  pointer-events: auto;
}

/* =========================
   Generic layout helpers
   ========================= */
.top-bar,
.card-header-line,
.hero-topline,
.calendar-toolbar,
.calendar-nav,
.segmented-control,
.calendar-day-header,
.agenda-day-header {
  display: flex;
  align-items: center;
}

.top-bar {
  justify-content: space-between;
  margin-top: 4px;
}

.hero-meta,
.chip-row,
.tab-row,
.grid-cards,
.stack-list,
.schedule-top,
.badge-row,
.legend-row,
.sponsor-grid,
.filter-chip-row,
.resource-links {
  display: flex;
  gap: 10px;
}

.hero-meta,
.chip-row,
.tab-row,
.badge-row,
.legend-row,
.sponsor-grid,
.filter-chip-row,
.resource-links {
  flex-wrap: wrap;
}

.grid-cards,
.stack-list {
  flex-direction: column;
}

.stack-list {
  margin-top: 12px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tab-row {
  justify-content: flex-start;
}

.shared-month-toolbar {
  margin-top: 8px;
}

.card-header-line {
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.badge-row {
  margin-top: 8px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff 0%, #e8efff 100%);
  border: 1px solid rgba(145, 164, 190, 0.25);
  font-size: 0.74rem;
  font-weight: 700;
  color: #4f67a8;
}

/* =========================
   Buttons / chips
   ========================= */
.filter-chip,
.day-chip,
.view-button,
.nav-button,
.theme-toggle,
.flyer-action {
  cursor: pointer;
  color: var(--text);
}

.filter-chip,
.day-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.filter-chip.active,
.day-chip.active {
  background: linear-gradient(180deg, #e5efff 0%, #d4e4ff 100%);
  color: #314f88;
}

.view-button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 700;
}

.view-button.active {
  background: linear-gradient(180deg, #eef3ff 0%, #dce7ff 100%);
  box-shadow: inset 0 0 0 1px rgba(145, 164, 190, 0.25);
}

.schedule-filter-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.global-filter-controls {
  align-items: flex-end;
  margin-bottom: 0;
}

.schedule-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
}

.schedule-filter-field select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.logan-schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.logan-schedule-main {
  min-width: 0;
}


.global-filter-summary {
  margin: 0;
  width: 100%;
  font-size: 0.82rem;
}

.schedule-month-heading {
  margin: 0 0 2px;
}

.schedule-date {
  margin: 0 0 4px;
  font-weight: 600;
}

.schedule-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  align-items: start;
}

.schedule-time {
  font-weight: 700;
  white-space: nowrap;
}

.schedule-actions {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .global-filter-controls {
    flex-wrap: wrap;
  }

  .global-filter-controls .schedule-filter-field {
    min-width: 140px;
    flex: 1 1 170px;
  }
}

.nav-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  box-shadow: var(--shadow);
  font-size: 1rem;
}

.segmented-control {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
}

/* =========================
   Content-specific shared styles
   ========================= */
.schedule-card .time-range {
  font-weight: 700;
  font-size: 0.95rem;
}

.schedule-card .detail-row,
.vendor-card .detail-row,
.location-card .detail-row,
.item-card .detail-row {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.94rem;
}

.schedule-card button,
.vendor-card button,
.location-card button,
.item-card button {
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #f7faff 0%, #e8efff 100%);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.local-directory-controls {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.local-directory-controls input,
.local-directory-controls select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.local-directory-group {
  margin-top: 16px;
}

.local-directory-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.local-directory-group h3 {
  margin: 0;
}

.local-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.local-directory-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.local-directory-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.local-directory-card__category,
.local-directory-card__address,
.local-directory-card__description {
  margin: 0;
}

.local-directory-meta {
  margin: 0;
  display: grid;
  gap: 4px;
}

.local-directory-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.local-directory-actions {
  margin-top: auto;
  padding-top: 6px;
  display: grid;
  gap: 8px;
}

.local-directory-detail-button {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.local-directory-card a {
  word-break: break-word;
}

@media (max-width: 640px) {
  .local-directory-controls {
    grid-template-columns: 1fr;
  }

  .local-directory-grid {
    grid-template-columns: 1fr;
  }
}

.error-state {
  border: 1px solid rgba(205, 92, 92, 0.35);
  background: rgba(255, 244, 244, 0.95);
  color: #8a2d2d;
  padding: 14px 16px;
  border-radius: 18px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.disclaimer {
  margin-top: 24px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
}

.page-disclaimer {
  margin: 18px 0 6px;
}

.modal-disclaimer {
  margin-top: 18px;
  text-align: left;
}

/* =========================
   Home page
   ========================= */
.home-hero {
  gap: 14px;
}

.hero-topline,
.calendar-toolbar {
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-topline-home {
  align-items: stretch;
  width: 100%;
}

.hero-topline-home h1 {
  margin-bottom: 0;
}

.header {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto minmax(18rem, 1fr);
  align-items: start;
  gap: 16px;
  width: 100%;
}

.header-left {
  min-width: 0;
}

.header-submit-action {
  display: flex;
  justify-content: center;
  align-self: center;
}

.submit-event-hero-button {
  font-size: 1rem;
  padding: 0.78rem 1.25rem;
  box-shadow: 0 14px 28px rgba(86, 64, 38, 0.16);
}

.home-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.bucket-rail {
  min-width: 0;
}

.bucket-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bucket-stack .event-launch-card {
  min-width: 0;
}

.bucket-stack .event-launch-card h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.event-guide-card {
  border-color: rgba(180, 83, 9, 0.35);
}

.category-action-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(125, 92, 54, 0.18);
  cursor: pointer;
  background: var(--card-bg, #fffaf2);
  color: inherit;
}

.category-action-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 3px;
}

.schedule-filter-card.active {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 16px 34px rgba(37, 99, 235, 0.12);
}

.schedule-filter-card .pill {
  background: rgba(219, 234, 254, 0.86);
  border-color: rgba(37, 99, 235, 0.22);
  color: #1d4ed8;
}

.event-guide-card .pill {
  color: #92400e;
}

body.theme-dark .category-action-card {
  background: rgba(31, 41, 55, 0.88);
  border-color: rgba(255, 255, 255, 0.13);
}

body.theme-dark .schedule-filter-card .pill {
  background: rgba(30, 64, 175, 0.28);
  border-color: rgba(147, 197, 253, 0.24);
  color: #bfdbfe;
}


.event-guide-card .pill {
  background: rgba(254, 243, 199, 0.75);
  border-color: rgba(217, 119, 6, 0.28);
}

.individual-event-detail {
  display: grid;
  gap: 16px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-weight: 700;
}

.theme-toggle-label {
  font-size: 0.88rem;
}

.theme-toggle-track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e3ebfb 0%, #d2def5 100%);
  border: 1px solid rgba(145, 164, 190, 0.35);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(58, 75, 107, 0.2);
  transition: transform 0.2s ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  transform: translateX(20px);
}

/* =========================
   Map / modal
   ========================= */
.map-surface {
  position: relative;
  min-height: 280px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f9fbff 0%, #ecf3ff 100%);
  overflow: hidden;
  border: 1px solid var(--border);
}

.covh-map-gallery {
  background: transparent;
  border: 0;
  min-height: 0;
}

.covh-map-tab-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.map-actions {
  display: flex;
  justify-content: flex-end;
}

.covh-map-panel {
  position: relative;
  overflow: hidden;
}

.covh-map-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.covh-map-hotspots {
  position: absolute;
  inset: 0;
}

.map-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(63, 84, 130, 0.24);
  background: rgba(255, 255, 255, 0.94);
  color: #1f2a44;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 10px 24px rgba(55, 78, 116, 0.18);
  cursor: pointer;
}

.map-hotspot:hover,
.map-hotspot:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
}

.flyer-hotspot {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}

.map-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 0.8rem;
}

.modal,
.bb-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(15, 23, 42, 0.55);
  overscroll-behavior: contain;
}

.modal.hidden,
.bb-modal.hidden {
  display: none;
}

.modal-card,
.bb-modal-card {
  position: relative;
  width: min(95vw, 920px);
  max-width: 920px;
  max-height: 90vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header,
.bb-modal-header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 16px 52px 10px 18px;
  background: inherit;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.modal-header .eyebrow {
  margin: 0 0 6px;
}

.modal-header h2 {
  margin: 0;
  line-height: 1.15;
}

.modal-content,
.bb-modal-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 18px 16px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.modal-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.external-map-wrap {
  width: 100%;
  height: 100%;
}

.map-embed-frame {
  width: 100%;
  min-height: 520px;
  border: 0;
  display: block;
  border-radius: 12px;
}

.map-iframe-wrapper {
  position: relative;
}

.map-iframe-disabled {
  pointer-events: none;
}

.map-iframe-enabled {
  pointer-events: auto;
}

.map-interaction-overlay {
  position: absolute;
  inset: auto 16px 16px 16px;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 10px 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2a44;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.map-interaction-overlay:hover,
.map-interaction-overlay:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.map-interaction-overlay.hidden {
  display: none;
}

.lock-map-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: none;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2a44;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.lock-map-button.visible {
  display: inline-flex;
}

body.theme-dark .map-interaction-overlay,
body.theme-dark .lock-map-button {
  border-color: rgba(226, 232, 240, 0.24);
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.theme-dark .map-interaction-overlay:hover,
body.theme-dark .map-interaction-overlay:focus-visible,
body.theme-dark .lock-map-button:hover,
body.theme-dark .lock-map-button:focus-visible {
  background: rgba(30, 41, 59, 0.92);
}

.map-actions {
  margin-top: 10px;
}

/* =========================
   Calendar
   ========================= */
.calendar-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-title {
  min-width: 180px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

.calendar-nav {
  gap: 10px;
}

.calendar-controls-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.calendar-controls-left {
  justify-self: start;
}

.calendar-view-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.today-button {
  font-weight: 800;
  white-space: nowrap;
}

.calendar-controls-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
  justify-self: center;
}

.event-type-filter-field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.event-type-filter-field select,
.inline-town-selector,
.submit-event-form input,
.submit-event-form select,
.submit-event-form textarea,
#filter-view-select {
  border: 1px solid var(--border);
  background: var(--panel-strong);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.event-type-filter-field select {
  min-width: 10rem;
  border-radius: 999px;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  font: inherit;
  font-weight: 700;
}

.event-type-filter-field select:hover,
.inline-town-selector:hover,
.submit-event-form input:hover,
.submit-event-form select:hover,
.submit-event-form textarea:hover,
#filter-view-select:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}

.event-type-filter-field select:focus,
.inline-town-selector:focus,
.submit-event-form input:focus,
.submit-event-form select:focus,
.submit-event-form textarea:focus,
#filter-view-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
}

.calendar-controls-right {
  justify-self: end;
}

.calendar-controls-center .filter-chip-row {
  justify-content: center;
}

.calendar-controls-right .calendar-nav {
  justify-content: flex-end;
}

.proper-calendar-shell {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(145, 164, 190, 0.22);
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.weekday-pill {
  text-align: center;
  padding: 10px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  gap: 10px;
}

.month-grid {
  display: flex;
  flex-direction: column;
  background: rgba(210, 223, 244, 0.6);
  gap: 1px;
  border: 1px solid rgba(145, 164, 190, 0.2);
  border-radius: 20px;
  overflow: hidden;
}

.calendar-week-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
}

.calendar-day-card,
.agenda-day-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
}

.calendar-day-card {
  min-height: 160px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-day-card.muted {
  opacity: 0.65;
}

.calendar-day-card.today,
.agenda-day-card.today {
  outline: 2px solid rgba(135, 168, 255, 0.65);
}

.calendar-day-header {
  justify-content: space-between;
  gap: 8px;
}

.calendar-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f7faff 0%, #e8efff 100%);
  font-weight: 800;
}

.calendar-day-label {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.calendar-day-events,
.agenda-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-event-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #edf3ff 100%);
  border: 1px solid rgba(145, 164, 190, 0.25);
}

.event-time {
  font-size: 0.78rem;
  font-weight: 800;
  color: #4f67a8;
}

.event-text {
  font-size: 0.9rem;
  font-weight: 700;
}

.event-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.calendar-empty {
  color: var(--muted);
  font-size: 0.82rem;
  padding: 8px 2px;
}

.stacked-grid {
  grid-template-columns: 1fr;
}

.agenda-day-card {
  padding: 16px;
}

.agenda-day-card.solo {
  min-height: 280px;
}

.agenda-day-header {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.agenda-day-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.agenda-day-subtitle,
.agenda-day-count {
  color: var(--muted);
  font-size: 0.88rem;
}

.expanded-day-row {
  grid-column: 1 / -1;
}

.selected-day-panel {
  width: 100%;
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
}

.selected-day-panel .agenda-day-card {
  height: auto;
  min-height: auto;
  max-height: none;
  overflow: visible;
}

.calendar-day-card.proper-grid {
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 140px;
  padding: 8px 9px;
}

.calendar-day-card.proper-grid.muted {
  background: rgba(245, 248, 252, 0.96);
}

.calendar-day-card.proper-grid.today {
  background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(112, 146, 226, 0.55);
}

.calendar-day-card.proper-grid.selected {
  box-shadow: inset 0 0 0 2px rgba(79, 103, 168, 0.65);
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
}

.calendar-day-card.proper-grid .calendar-day-header {
  justify-content: flex-start;
  margin-bottom: 2px;
}

.calendar-day-card.proper-grid .calendar-day-number {
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
}

.month-grid .calendar-day-card.proper-grid .calendar-day-number {
  width: 24px;
  height: 24px;
  font-size: 0.82rem;
}

.calendar-day-card.proper-grid .calendar-day-events {
  gap: 4px;
}

.calendar-day-card.proper-grid .calendar-empty {
  min-height: 14px;
}

/* Compact month markers */
.month-grid .calendar-day-card.proper-grid {
  min-height: 5;
  height: 100%;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  cursor: pointer;
}

.month-grid .calendar-day-card.proper-grid .calendar-event-chip {
  pointer-events: none;
}

.month-grid .calendar-day-card.proper-grid .calendar-day-header {
  margin-bottom: 0;
}

.month-grid .calendar-day-card.proper-grid .calendar-day-events {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
  margin-top: 4px;
  margin-left: 2px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.month-grid .calendar-day-card.proper-grid .calendar-event-chip {
  width: 10px;
  height: 10px;
  min-width: 10px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
}

.month-grid .calendar-day-card.proper-grid .calendar-event-chip .event-time,
.month-grid .calendar-day-card.proper-grid .calendar-event-chip .event-text,
.month-grid .calendar-day-card.proper-grid .calendar-event-chip .event-meta {
  display: none;
}

.month-grid .calendar-day-card.proper-grid .calendar-empty {
  min-height: 10px;
  padding: 0;
}

.month-grid .calendar-event-chip {
  padding: 8px 9px;
}

.month-grid .event-time {
  font-size: 0.72rem;
}

.month-grid .event-text {
  font-size: 0.82rem;
}

.month-grid .event-meta {
  font-size: 0.7rem;
}

.month-grid .calendar-day-card {
  overflow: hidden;
}

.month-grid .calendar-event-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-county-events);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 12px rgba(31, 95, 191, 0.3);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.month-grid .calendar-event-count-pill.bucket-community {
  background: #1f6fb3;
}

.month-grid .calendar-event-count-pill.bucket-school {
  background: #684db3;
}

.month-grid .calendar-event-count-pill.bucket-town-services {
  background: #8a5a2b;
}

.month-grid .calendar-event-count-pill.bucket-fall-fest {
  background: #b93672;
}

.month-grid .calendar-event-count-pill.bucket-2nd-fridays {
  background: #b65b1f;
}

.month-grid .calendar-event-count-pill.bucket-covh {
  background: #2f7a45;
}

.month-grid .calendar-event-count-pill.bucket-county-events,
.month-grid .calendar-event-count-pill.default {
  background: var(--color-county-events);
}

.more-events-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  padding: 2px 4px;
}

/* =========================
   Calendar bucket colors
   ========================= */
.calendar-event-chip.bucket-community,
.filter-chip[data-filter="Community"].active {
  background: var(--color-community);
}

.filter-chip[data-filter="Community"] {
  border-color: var(--color-community);
}

.calendar-event-chip.bucket-school,
.filter-chip[data-filter="School"].active {
  background: var(--color-school);
}

.filter-chip[data-filter="School"] {
  border-color: var(--color-school);
}

.calendar-event-chip.bucket-town-services,
.filter-chip[data-filter="Town Services"].active {
  background: var(--color-town);
}

.filter-chip[data-filter="Town Services"] {
  border-color: var(--color-town);
}

.calendar-event-chip.bucket-fall-fest,
.filter-chip[data-filter="Fall Fest"].active {
  background: var(--color-fallfest);
}

.filter-chip[data-filter="Fall Fest"] {
  border-color: var(--color-fallfest);
}

.calendar-event-chip.bucket-2nd-fridays,
.filter-chip[data-filter="2nd Fridays"].active {
  background: var(--color-secondfriday);
}

.filter-chip[data-filter="2nd Fridays"] {
  border-color: var(--color-secondfriday);
}

.calendar-event-chip.bucket-covh,
.filter-chip[data-filter="COVH"].active {
  background: var(--color-covh);
}

.filter-chip[data-filter="COVH"] {
  border-color: var(--color-covh);
}

.filter-chip[data-filter="Community"],
.filter-chip[data-filter="School"],
.filter-chip[data-filter="Town Services"],
.filter-chip[data-filter="Fall Fest"],
.filter-chip[data-filter="2nd Fridays"],
.filter-chip[data-filter="COVH"] {
  border-width: 2px;
}

/* =========================
   Additional shared content
   ========================= */
.resource-links {
  gap: 8px;
  margin-top: 8px;
}

.resource-link {
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.location-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 2px;
}

.flyer-meta,
.muted-inline {
  color: var(--muted);
  font-size: 0.82rem;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-list-item {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(145, 164, 190, 0.18);
}

.modal-divider {
  border: 0;
  border-top: 1px solid rgba(145, 164, 190, 0.22);
  margin: 14px 0;
}
.public-group-section {
  margin-bottom: 20px;
}

.public-group-section__header {
  margin-bottom: 12px;
}

.public-group-section__body {
  display: grid;
  gap: 14px;
}

.public-group-card {
  background: var(--card, #fff);
  border: 1px solid var(--border, #d9dee8);
  border-radius: 18px;
  padding: 16px;
}

.public-group-card__header {
  margin-bottom: 10px;
}

.public-group-card__body {
  display: grid;
  gap: 10px;
}

.public-empty {
  border: 1px dashed var(--border, #d9dee8);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted, #667085);
  font-style: italic;
}
/* =========================
   Flyer / printable pamphlet
   ========================= */
.flyer-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flyer-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.flyer-hero {
  text-align: center;
}

.legend-pill,
.sponsor-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(145, 164, 190, 0.32);
  background: #f8fbff;
  font-size: 0.82rem;
}

.flyer-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flyer-section h3 {
  margin: 0;
}

.flyer-entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flyer-entry-list.compact {
  gap: 8px;
}

.flyer-entry {
  border: 1px solid rgba(145, 164, 190, 0.24);
  border-radius: 16px;
  padding: 10px 11px;
  background: #fff;
}

.flyer-entry-top,
.flyer-note-top,
.flyer-region-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.flyer-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  background: #edf3ff;
  font-weight: 800;
  font-size: 0.92rem;
}

.flyer-name-block {
  min-width: 0;
  flex: 1;
}

.flyer-name-block h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.18;
}

.flyer-entry p,
.flyer-note-card p,
.flyer-footer-lines {
  margin: 0;
  color: #2e3e54;
  line-height: 1.35;
  font-size: 0.85rem;
}

.flyer-callout-grid,
.flyer-thanks-grid {
  display: grid;
  gap: 12px;
}

.flyer-note-card {
  border: 1px solid rgba(145, 164, 190, 0.24);
  border-radius: 16px;
  padding: 12px;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flyer-note-card h3 {
  margin: 0;
  font-size: 1rem;
}

.flyer-tree-sign {
  width: 78px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(145, 164, 190, 0.24);
  background: white;
}

.flyer-qr {
  width: 120px;
  max-width: 100%;
  height: auto;
  align-self: center;
  border-radius: 10px;
  border: 1px solid rgba(145, 164, 190, 0.24);
  background: white;
  padding: 6px;
}

.flyer-mini-map {
  width: 100px;
  max-width: 34%;
  border-radius: 10px;
  border: 1px solid rgba(145, 164, 190, 0.24);
  background: white;
}

.flyer-list {
  padding-left: 18px;
  margin: 0;
  color: #2e3e54;
  font-size: 0.85rem;
  line-height: 1.4;
}

.flyer-footer-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 6px;
}

.qr-card {
  align-items: center;
  text-align: center;
}

.flyer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.flyer-preview-shell {
  display: grid;
  gap: 18px;
}

.flyer-page {
  background: #fff;
  color: #111;
  border: 1px solid rgba(145, 164, 190, 0.28);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flyer-page-inner {
  padding: 18px;
}

.flyer-page-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(145, 164, 190, 0.28);
  padding-bottom: 12px;
}

.flyer-title-wrap h2 {
  margin-bottom: 6px;
  font-size: 1.8rem;
}

.flyer-legend {
  gap: 8px;
}

.flyer-page-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.flyer-page-columns.page-two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.flyer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flyer-section-heading {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #32445d;
}

.flyer-print-page {
  background: white;
}

.flyer-print-shell {
  width: fit-content;
  margin: 0 auto;
  padding: 12px;
}

/* =========================
   Paint the Square flyer theme
   ========================= */
.flyer-theme-paint-splash .paint-square-flyer {
  border: none;
  color: #f8f8ff;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 88, 88, 0.52), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(255, 196, 71, 0.45), transparent 38%),
    radial-gradient(circle at 76% 80%, rgba(67, 242, 255, 0.4), transparent 41%),
    radial-gradient(circle at 20% 72%, rgba(155, 122, 255, 0.44), transparent 39%),
    linear-gradient(145deg, #0a1030 0%, #191249 42%, #290b48 100%);
  box-shadow: 0 26px 44px rgba(9, 8, 23, 0.48);
}

.flyer-theme-paint-splash .paint-square-flyer .flyer-page-inner {
  padding: 24px;
  min-height: 430px;
  display: grid;
  gap: 22px;
  align-content: space-between;
}

.paint-square-header {
  display: grid;
  gap: 10px;
}

.paint-square-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.86);
}

.paint-square-title {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.2rem);
  line-height: 0.96;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.33);
}

.paint-square-subtitle {
  margin: 0;
  max-width: 40ch;
  color: rgba(240, 244, 255, 0.9);
}

.paint-square-details {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.paint-square-details p {
  margin: 0;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #120d28;
  background: linear-gradient(100deg, #f6f89b 0%, #ffd061 50%, #ffb0a6 100%);
}

.paint-square-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 12px;
  display: grid;
  gap: 4px;
}

.paint-square-footer p {
  margin: 0;
  color: rgba(244, 248, 255, 0.95);
}

/* =========================
   COVH pamphlet flyer
   ========================= */

.covh-flyer-hub {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.covh-print-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.covh-flyer-screen-shell {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

.covh-print-root {
  display: block;
  width: 8.5in;
  max-width: none;
}

.covh-printable-document {
  margin: 0;
  background: #fff;
}

.covh-preview-shell {
  display: grid;
  gap: 20px;
  width: 8.5in;
  max-width: none;
}

.covh-print-sheet {
  box-sizing: border-box;
  display: block;
  width: 8.5in;
  height: 11in;
  min-width: 8.5in;
  min-height: 11in;
  max-width: 8.5in;
  max-height: 11in;
  margin: 0;
  overflow: hidden;
}

.covh-print-sheet > .covh-pamphlet-page,
.covh-preview-shell > .covh-pamphlet-page {
  box-sizing: border-box;
  width: 8.5in;
  height: 11in;
  min-width: 8.5in;
  min-height: 11in;
  max-width: 8.5in;
  max-height: 11in;
  margin: 0;
  overflow: hidden;
}

.covh-pamphlet-page {
  background: #fff;
  border-radius: 6px;
  color: #171717;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.covh-page-inner {
  padding: 22px 24px 24px;
}

.covh-banner {
  position: relative;
  text-align: center;
  padding: 0;
  border-bottom: 2px solid #d8d8d8;
  margin-bottom: 18px;
  overflow: hidden;
}

.covh-banner-overlay {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.covh-banner-strip {
  width: 100%;
  display: block;
}

.covh-banner-strip-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.covh-banner-strip-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.covh-banner-strip-image-wide {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.covh-banner-copy {
  min-width: 0;
}

.covh-banner-copy-overlay {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 18px 24px 18px 64px;
  text-align: center;
  background: transparent;
}

.covh-banner-copy-block {
  width: auto;
  max-width: 680px;
  padding: 10px 30px 9px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.88), rgba(255, 250, 240, 0.78));
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.covh-banner-title,
.covh-script-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  color: #2f4f3b;
}

.covh-banner-date {
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4f4f4f;
  margin-bottom: 10px;
  text-shadow: 0 1px 1px rgba(255,255,255,0.55);
}

.covh-banner-title {
  font-size: 2.35rem;
  line-height: 1.05;
  margin-bottom: 8px;
  color: #2f4f3b;
  text-shadow: 0 1px 1px rgba(255,255,255,0.65);
}

.covh-banner-note,
.covh-banner-location-line {
  font-size: 1rem;
  color: #3f3f3f;
  text-shadow: 0 1px 1px rgba(255,255,255,0.55);
}

.covh-page-one-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.covh-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.covh-list-item,
.covh-regional-block,
.covh-key-card,
.covh-map-main-card,
.covh-map-card,
.covh-thanks-block,
.covh-qr-block,
.covh-sponsor-block,
.covh-art-block {
  border: 1px solid #cfcfcf;
  background: #fff;
}

.covh-list-item {
  padding: 8px 10px;
}

.covh-item-head {
  display: block;
}

.covh-regional-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.covh-item-title-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.covh-item-number {
  min-width: 18px;
  font-weight: 700;
}

.covh-item-title-line h4,
.covh-regional-name {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.15;
  font-weight: 700;
}

.covh-item-title-line h4 {
  flex: 1 1 auto;
  min-width: 0;
}

.covh-item-hours,
.covh-regional-hours {
  font-size: 0.79rem;
  white-space: nowrap;
  color: #525252;
  text-align: right;
}

.covh-item-meta,
.covh-regional-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px 26px;
  color: #4f4f4f;
  font-size: 0.77rem;
  align-items: center;
}

.covh-item-meta {
  align-items: baseline;
  gap: 4px 6px;
}

.covh-item-meta-hours {
  margin-left: auto;
  white-space: nowrap;
  color: #525252;
  font-size: inherit;
}

.covh-item-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1;
  font-weight: 800;
}

.covh-item-address {
  color: #4f4f4f;
}

.covh-list-item p,
.covh-regional-item p,
.covh-thanks-block p,
.covh-footer-lines,
.covh-sponsor-list,
.covh-benefactor-list {
  margin: 0 0 0 26px;
  font-size: 0.78rem;
  line-height: 1.28;
  color: #303030;
}

.covh-regional-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.covh-regional-block {
  padding: 8px 10px;
}

.covh-location-group + .covh-location-group {
  margin-top: 8px;
}

.covh-regional-title,
.covh-key-title,
.covh-qr-title {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #36523c;
  margin-bottom: 8px;
}

.covh-regional-item + .covh-regional-item {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dotted #cfcfcf;
}

.covh-key-card {
  padding: 10px;
  position: sticky;
  top: 10px;
}

.covh-key-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px dotted #d0d0d0;
}

.covh-key-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.covh-key-label,
.covh-inline-badge {
  font-weight: 800;
  color: #2d4d37;
}

.covh-bag-icon {
  display: block;
  object-fit: contain;
}

.covh-inline-bag-icon {
  width: 11px;
  height: 11px;
  min-width: 11px;
  flex: 0 0 11px;
}

.covh-title-bag-icon {
  display: inline-block;
  vertical-align: middle;
}

.covh-bag-text-symbol {
  font-weight: 700;
}

.covh-bag-callout,
.covh-tree-callout {
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  background: #f6faf6;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #31503a;
}

.covh-bag-callout-under-regional,
.covh-tree-callout-under-regional {
  margin-top: 8px;
}

.covh-bag-callout {
  display: block;
}

.covh-bag-callout span,
.covh-tree-callout span {
  display: inline;
}

.covh-page-one-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  text-align: center;
}

.covh-page-one-footer-callout {
  box-sizing: border-box;
  width: min(100%, 8.5in);
  margin: 0 auto;
  padding: 12px 18px;
  font-size: 11.5pt;
  line-height: 1.35;
  text-align: center;
}

.covh-page-one-footer-callout img {
  display: inline-block;
  vertical-align: middle;
  margin: 0 5px;
}

.covh-callout-bag-icon-inline,
.covh-tree-icon-inline {
  display: inline-block;
  vertical-align: -2px;
  margin: 0 4px;
}

.covh-callout-bag-icon-inline {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.covh-tree-icon-inline {
  width: auto;
  height: auto;
  font-size: 16px;
  line-height: 1;
}

.covh-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.95fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.covh-map-main-card,
.covh-map-card,
.covh-regional-map-only {
  padding: 10px;
  position: relative;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.covh-main-map {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.covh-map-stack {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  height: 100%;
}

.covh-regional-map-image {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: block;
  object-fit: cover;
  border: 1px solid #d8d8d8;
  background: #fff;
}

.covh-map-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #cfcfcf;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.covh-compass-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 56px;
  border: 1px solid #cfcfcf;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  line-height: 1.05;
}

.covh-footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) 220px minmax(0, 1.08fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "thanks qr art"
    "sponsors qr art";
  gap: 14px;
  align-items: stretch;
}

.covh-thanks-block,
.covh-qr-block,
.covh-sponsor-block,
.covh-art-block {
  padding: 12px;
}

.covh-thanks-block {
  grid-area: thanks;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 8px;
}

.covh-sponsor-block {
  grid-area: sponsors;
  min-height: 0;
  padding-top: 14px;
  padding-bottom: 14px;
}

.covh-qr-block {
  grid-area: qr;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.covh-art-block {
  grid-area: art;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.covh-script-heading {
  font-size: 1.42rem;
  margin-bottom: 8px;
}

.covh-thanks-block .covh-script-heading {
  font-size: 1.3rem;
}

.covh-sponsor-block .covh-script-heading {
  font-size: 1.42rem;
}

.covh-qr-title {
  width: 100%;
  margin-bottom: 10px;
  text-align: left;
}

.covh-qr-image {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.covh-art-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65%;
  margin: 0;
  object-fit: contain;
  object-position: right bottom;
  align-self: flex-end;
}

.covh-footer-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  max-width: 26ch;
  margin: 0;
  line-height: 1.35;
  color: #303030;
}

.covh-footer-lines > div {
  padding: 0 0 4px;
}

.covh-map-layout-tab {
  grid-template-columns: 1.5fr 1fr;
}

/* =========================
   Desktop enhancements
   ========================= */
@media (min-width: 700px) {
  .phone-shell {
    width: 100%;
  }
}

@media (min-width: 1080px) {
  .home-content-grid {
    grid-template-columns: minmax(0, 1.45fr) 300px;
    gap: 20px;
  }

  .bucket-rail {
    position: sticky;
    top: 18px;
    align-self: start;
  }

  .bucket-stack {
    max-height: calc(100vh - 160px);
    overflow: auto;
    padding-right: 4px;
  }
}

/* =========================
   Tablet / narrow desktop
   ========================= */
@media (max-width: 1100px) {
  .calendar-controls-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .calendar-controls-left,
  .calendar-controls-center,
  .calendar-controls-right {
    justify-self: stretch;
  }

  .calendar-controls-center .filter-chip-row {
    justify-content: flex-start;
  }

  .calendar-view-actions {
    justify-content: flex-start;
  }

  .calendar-controls-right .calendar-nav {
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .covh-page-one-grid,
  .covh-map-layout,
  .covh-footer-layout {
    grid-template-columns: 1fr;
  }

  .covh-footer-layout {
    grid-template-areas:
      "thanks"
      "qr"
      "sponsors"
      "art";
  }

  .covh-print-root .covh-page-one-grid,
  .covh-preview-shell .covh-page-one-grid,
  body.covh-printable-document .covh-page-one-grid {
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  }

  .covh-print-root .covh-map-layout,
  .covh-preview-shell .covh-map-layout,
  body.covh-printable-document .covh-map-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.95fr);
  }

  .covh-print-root .covh-footer-layout,
  .covh-preview-shell .covh-footer-layout,
  body.covh-printable-document .covh-footer-layout {
    grid-template-columns: minmax(0, 1.02fr) 220px minmax(0, 1.08fr);
    grid-template-areas:
      "thanks qr art"
      "sponsors qr art";
  }

  .covh-key-card {
    position: static;
  }

	.covh-banner-overlay {
	  min-height: 150px;
	}
}

@media (max-width: 699px) {
  .flyer-page-columns,
  .flyer-page-columns.page-two {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Dark mode
   ========================= */
body.soft-light {
  background:
    radial-gradient(circle at top left, rgba(232, 242, 255, 0.95), transparent 35%),
    radial-gradient(circle at top right, rgba(255, 239, 245, 0.9), transparent 32%),
    linear-gradient(180deg, #f6f9ff 0%, #edf3fb 100%);
}

body.theme-dark {
  --bg: #0f1724;
  --panel: rgba(17, 25, 40, 0.84);
  --panel-strong: #131d2d;
  --text: #eef4ff;
  --muted: #afbed6;
  --accent: #95b5ff;
  --accent-soft: rgba(88, 120, 190, 0.28);
  --border: rgba(124, 150, 194, 0.22);
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
  --color-community: #29445f;
  --color-school: #473969;
  --color-town: #584638;
  --color-secondfriday: #6b4d3b;
  --color-fallfest: #633f54;
  --color-covh: #345542;
  --color-county-events: #78a7ff;
  background:
    radial-gradient(circle at top left, rgba(43, 69, 115, 0.3), transparent 35%),
    radial-gradient(circle at top right, rgba(109, 55, 82, 0.24), transparent 28%),
    linear-gradient(180deg, #0d1522 0%, #111b2a 100%);
}

body.theme-dark.soft-light {
  background:
    radial-gradient(circle at top left, rgba(43, 69, 115, 0.3), transparent 35%),
    radial-gradient(circle at top right, rgba(109, 55, 82, 0.24), transparent 28%),
    linear-gradient(180deg, #0d1522 0%, #111b2a 100%);
}

body.theme-dark .theme-toggle,
body.theme-dark .filter-chip,
body.theme-dark .day-chip,
body.theme-dark .resource-link,
body.theme-dark .weekday-pill,
body.theme-dark .calendar-event-chip,
body.theme-dark .calendar-day-card.proper-grid,
body.theme-dark .calendar-day-card.proper-grid.muted,
body.theme-dark .segmented-control,
body.theme-dark .nav-button,
body.theme-dark .pill,
body.theme-dark .back-link,
body.theme-dark .top-badge,
body.theme-dark .meta-chip,
body.theme-dark .tab-button,
body.theme-dark .hero-card,
body.theme-dark .info-card,
body.theme-dark .event-launch-card,
body.theme-dark .map-card,
body.theme-dark .item-card,
body.theme-dark .location-card,
body.theme-dark .vendor-card,
body.theme-dark .schedule-card,
body.theme-dark .modal-card,
body.theme-dark .proper-calendar-shell,
body.theme-dark .agenda-day-card,
body.theme-dark .calendar-day-card {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

body.theme-dark .calendar-title,
body.theme-dark .eyebrow,
body.theme-dark .subtle,
body.theme-dark .calendar-empty,
body.theme-dark .agenda-day-subtitle,
body.theme-dark .agenda-day-count,
body.theme-dark .detail-row,
body.theme-dark .event-time,
body.theme-dark .more-events-label,
body.theme-dark .weekday-pill {
  color: var(--muted);
}

body.theme-dark .view-button.active,
body.theme-dark .tab-button.active,
body.theme-dark .day-chip.active,
body.theme-dark .filter-chip.active {
  background: linear-gradient(180deg, rgba(81, 109, 163, 0.65) 0%, rgba(61, 88, 141, 0.8) 100%);
  color: var(--text);
}

body.theme-dark .calendar-day-number,
body.theme-dark .schedule-card button,
body.theme-dark .vendor-card button,
body.theme-dark .location-card button,
body.theme-dark .item-card button,
body.theme-dark .mini-badge,
body.theme-dark .legend-pill,
body.theme-dark .sponsor-pill,
body.theme-dark .flyer-number {
  background: linear-gradient(180deg, rgba(55, 77, 119, 0.8) 0%, rgba(42, 61, 96, 0.95) 100%);
  color: var(--text);
}


body.theme-dark .event-type-filter-field select,
body.theme-dark .schedule-filter-field select,
body.theme-dark .inline-town-selector,
body.theme-dark .submit-event-form input,
body.theme-dark .submit-event-form select,
body.theme-dark .submit-event-form textarea,
body.theme-dark #filter-view-select {
  background: #101928;
  color: var(--text);
  border-color: var(--border);
}

body.theme-dark .event-type-filter-field select option,
body.theme-dark .schedule-filter-field select option,
body.theme-dark .inline-town-selector option,
body.theme-dark .submit-event-form select option,
body.theme-dark #filter-view-select option {
  background: #101928;
  color: var(--text);
}

body.theme-dark .theme-toggle-track {
  background: linear-gradient(180deg, rgba(55, 77, 119, 0.85) 0%, rgba(42, 61, 96, 0.98) 100%);
}

body.theme-dark .calendar-day-card.proper-grid.selected {
  background: linear-gradient(180deg, rgba(32, 46, 74, 0.96) 0%, rgba(24, 36, 60, 0.98) 100%);
  box-shadow: inset 0 0 0 2px rgba(123, 154, 223, 0.72);
}

/* Dark mode filter chip colors */
body.theme-dark .filter-chip[data-filter="Community"] {
  border-color: var(--color-community);
}

body.theme-dark .filter-chip[data-filter="School"] {
  border-color: var(--color-school);
}

body.theme-dark .filter-chip[data-filter="Town Services"] {
  border-color: var(--color-town);
}

body.theme-dark .filter-chip[data-filter="Fall Fest"] {
  border-color: var(--color-fallfest);
}

body.theme-dark .filter-chip[data-filter="2nd Fridays"] {
  border-color: var(--color-secondfriday);
}

body.theme-dark .filter-chip[data-filter="COVH"] {
  border-color: var(--color-covh);
}

body.theme-dark .filter-chip[data-filter="Community"].active {
  background: var(--color-community);
  color: #fff;
}

body.theme-dark .filter-chip[data-filter="School"].active {
  background: var(--color-school);
  color: #fff;
}

body.theme-dark .filter-chip[data-filter="Town Services"].active {
  background: var(--color-town);
  color: #fff;
}

body.theme-dark .filter-chip[data-filter="Fall Fest"].active {
  background: var(--color-fallfest);
  color: #fff;
}

body.theme-dark .filter-chip[data-filter="2nd Fridays"].active {
  background: var(--color-secondfriday);
  color: #fff;
}

body.theme-dark .filter-chip[data-filter="COVH"].active {
  background: var(--color-covh);
  color: #fff;
}

body.theme-dark .filter-chip {
  border-width: 2px;
}

/* Dark mode: preserve bucket colors on calendar event chips / dots */
body.theme-dark .calendar-event-chip.bucket-community {
  background: var(--color-community);
  border-color: var(--color-community);
}

body.theme-dark .calendar-event-chip.bucket-school {
  background: var(--color-school);
  border-color: var(--color-school);
}

body.theme-dark .calendar-event-chip.bucket-town-services {
  background: var(--color-town);
  border-color: var(--color-town);
}

body.theme-dark .calendar-event-chip.bucket-fall-fest {
  background: var(--color-fallfest);
  border-color: var(--color-fallfest);
}

body.theme-dark .calendar-event-chip.bucket-2nd-fridays {
  background: var(--color-secondfriday);
  border-color: var(--color-secondfriday);
}

body.theme-dark .calendar-event-chip.bucket-covh {
  background: var(--color-covh);
  border-color: var(--color-covh);
}

body.theme-dark .month-grid .calendar-event-count-pill {
  color: #071120;
  border-color: rgba(238, 244, 255, 0.92);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45);
}

body.theme-dark .month-grid .calendar-event-count-pill.bucket-county-events,
body.theme-dark .month-grid .calendar-event-count-pill.default {
  background: var(--color-county-events);
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 700px) {
  html {
    font-size: 20px;
  }

  .page-shell {
    padding: 8px;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }

  .phone-shell {
    gap: 12px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-card,
  .info-card,
  .event-launch-card,
  .map-card,
  .item-card,
  .location-card,
  .vendor-card,
  .schedule-card {
    padding: 14px;
    border-radius: 22px;
  }

h1 {
  font-size: 1.7rem;
}

h2 {
  font-size: 1.2rem;
}

.subtle,
.detail-row,
.flyer-meta,
.muted-inline {
  font-size: 1rem;
}

.event-text {
  font-size: 1.05rem;
}

.event-time {
  font-size: 0.9rem;
}

.calendar-title {
  font-size: 1.2rem;
}

  .nav-button {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }
  
  body.large-text {
  font-size: 19px;
}

body.large-text .event-text {
  font-size: 1.1rem;
}

body.large-text .calendar-day-card {
  min-height: 115px;
}

  /* Force calendar to fit screen width on mobile */
  .proper-calendar-shell {
    overflow-x: visible;
    width: 100%;
    max-width: 100%;
    padding-bottom: 8px;
  }

  .calendar-shell,
  .calendar-grid,
  .calendar-weekdays,
  .month-grid {
    width: 100%;
    max-width: 100%;
  }

  .calendar-weekdays.month-only,
  .month-grid {
    min-width: 0;
  }

  .calendar-weekdays {
    gap: 4px;
  }

  .weekday-pill {
    min-width: 0;
    padding: 8px 2px;
    font-size: 0.75rem;
    border-radius: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .month-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .calendar-day-card.proper-grid {
    min-width: 0;
    min-height: 115px;
    padding: 8px 4px 6px;
  }

  .calendar-day-card.proper-grid .calendar-day-header {
    margin-bottom: 6px;
  }

  .calendar-day-card.proper-grid .calendar-day-number,
  .calendar-day-number {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    font-weight: 800;
  }

  .calendar-day-label {
    font-size: 0.75rem;
  }

  .month-grid .calendar-day-card.proper-grid .calendar-day-events {
    gap: 5px;
    min-height: 22px;
  }

  .month-grid .calendar-event-count-pill {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .month-grid .calendar-day-card.proper-grid .calendar-event-chip {
    width: 10px;
    height: 10px;
    min-width: 10px;
  }

  .more-events-label {
    font-size: 0.64rem;
    padding: 0;
  }

  .agenda-day-card,
  .agenda-day-card.solo,
  .expanded-day-row {
    padding: 14px;
    min-height: 0;
  }

  .agenda-day-title {
    font-size: 1.1rem;
  }

  .agenda-day-subtitle,
  .agenda-day-count {
    font-size: 0.95rem;
  }

  .calendar-event-chip {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .event-time {
    font-size: 0.82rem;
  }

  .event-text {
    font-size: 0.98rem;
  }

  .schedule-card button,
  .vendor-card button,
  .location-card button,
  .item-card button,
  .inline-link-button,
  .modal-action-button,
  .flyer-action {
    min-height: 46px;
    font-size: 0.95rem;
  }

  .modal-action-row {
    grid-template-columns: 1fr;
  }

  .modal-card,
  .bb-modal-card {
    width: min(95vw, 920px);
    max-height: 90vh;
  }

  .modal-header,
  .bb-modal-header {
    padding: 18px 52px 10px 18px;
  }

  .modal-content,
  .bb-modal-content {
    padding: 14px 18px 18px;
  }

  /* Keep maps/flyers allowed to size naturally */
  .map-surface,
  .covh-map-panel,
  .flyer-page,
  .flyer-preview-shell,
  .covh-pamphlet-page {
    overflow-x: visible;
  }

  .map-hotspot {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
}

/* =========================
   Print
   ========================= */
@media print {

  body.covh-printable-document .covh-print-sheet--page-one .covh-regional-location-group + .covh-regional-location-group,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-regional-location-group + .covh-regional-location-group,
  body.covh-printable-document .covh-print-sheet--page-one .covh-location-group + .covh-location-group,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-location-group + .covh-location-group {
    margin-top: 18px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-regional-location-heading,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-regional-location-heading,
  body.covh-printable-document .covh-print-sheet--page-one .covh-regional-title,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-regional-title {
    margin-bottom: 7px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-page-one-footer {
    margin-top: 22px !important;
    gap: 12px !important;
  }
  @page {
    size: 8.5in 11in;
    margin: 0;
  }

  body.flyer-print-page,
  .flyer-print-page {
    background: white !important;
  }

  .flyer-print-shell {
    padding: 0;
    margin: 0;
  }

  .flyer-page {
    width: 8.5in;
    min-height: 11in;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    break-after: page;
    page-break-after: always;
  }

  .flyer-page:last-child,
  .covh-pamphlet-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .flyer-page-inner {
    padding: 0.35in;
  }

  .flyer-page-header {
    margin-bottom: 0.12in;
    padding-bottom: 0.08in;
  }

  .flyer-title-wrap h2 {
    font-size: 20pt;
  }

  .flyer-section-heading {
    font-size: 10pt;
  }

  .flyer-entry {
    padding: 7pt 8pt;
    border-radius: 10pt;
  }

  .flyer-number {
    min-width: 24pt;
    height: 24pt;
    font-size: 8.5pt;
    border-radius: 8pt;
  }

  .flyer-name-block h4 {
    font-size: 8.9pt;
    margin-bottom: 2pt;
  }

  .flyer-meta,
  .flyer-entry p,
  .flyer-note-card p,
  .flyer-list,
  .legend-pill,
  .sponsor-pill,
  .flyer-footer-lines {
    font-size: 7.5pt;
    line-height: 1.2;
  }

  .legend-row {
    gap: 5pt;
  }

  .flyer-page-columns {
    gap: 10pt;
  }

  .flyer-column {
    gap: 8pt;
  }

  .flyer-entry-list {
    gap: 6pt;
  }

  .flyer-section,
  .flyer-callout-grid,
  .flyer-thanks-grid {
    gap: 7pt;
  }

  .flyer-note-card {
    padding: 8pt;
    border-radius: 10pt;
    gap: 6pt;
  }

  .flyer-tree-sign {
    width: 56pt;
  }

  .flyer-qr {
    width: 78pt;
  }

  .flyer-mini-map {
    width: 62pt;
  }

  .flyer-toolbar {
    display: none !important;
  }

  .covh-print-toolbar,
  [data-no-print],
  body.printing-covh-flyer .public-header,
  body.printing-covh-flyer .tabs,
  body.printing-covh-flyer .filter-panel,
  body.printing-covh-flyer .public-footer,
  body.printing-covh-flyer .flyer-card > :not(.covh-print-root) {
    display: none !important;
  }

  body.printing-covh-flyer,
  body.covh-printable-document {
    background: #fff !important;
  }

  body.printing-covh-flyer .phone-shell,
  body.printing-covh-flyer .home-shell,
  body.printing-covh-flyer .wide-shell,
  body.printing-covh-flyer main,
  body.printing-covh-flyer .flyer-card,
  body.printing-covh-flyer #flyer-panel,
  body.covh-printable-document .flyer-print-shell {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.printing-covh-flyer .covh-print-root,
  body.covh-printable-document .covh-print-root {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

   .covh-pamphlet-page {
    border: 0;
    box-shadow: none;
    border-radius: 0;
    width: 8.5in;
    min-height: 11in;
    margin: 0;
    overflow: visible;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    break-after: page;
    page-break-after: always;
  }

  .covh-page-inner {
    padding: 0.35in 0.33in 0.32in;
  }

    .covh-banner {
    padding: 0 0 0.12in;
    margin-bottom: 0.15in;
    overflow: hidden;
  }

  .covh-banner-overlay {
    min-height: 1.55in;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .covh-banner-strip-overlay {
    position: absolute;
    inset: 0;
  }

  .covh-banner-strip-image,
  .covh-banner-strip-image-wide {
    width: 100%;
    height: 100%;
    object-fit: fill;
  }

    .covh-banner-copy-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 14pt 18pt 10pt;
    text-align: center;
    background: transparent;
  }

  .covh-banner-page-two {
    min-height: 1.25in;
  }

  .covh-footer-layout {
    grid-template-columns: 2.35in 1.75in 2.25in;
    grid-template-rows: auto auto;
    grid-template-areas:
      "thanks qr art"
      "sponsors qr art";
    gap: 0.12in;
    align-items: stretch;
  }

  .covh-thanks-block .covh-script-heading {
    font-size: 14pt;
  }

  .covh-sponsor-block .covh-script-heading {
    font-size: 16pt;
  }

  .covh-main-map,
  .covh-regional-map-image,
  .covh-qr-image,
  .covh-art-image {
    max-width: 100%;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .covh-qr-image {
    max-width: 1.3in;
  }

  .covh-art-block {
    min-height: 2.15in;
    height: 100%;
    align-self: stretch;
  }

  .covh-art-image {
    right: 0;
    bottom: 0;
    width: 70%;
  }

  .covh-footer-lines {
    left: 8pt;
    bottom: 24pt;
    max-width: 31%;
  }

}
.public-footer {
  margin: 8px auto 20px;
  width: 100%;
  max-width: 1060px;
  text-align: center;
}

.public-footer-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.public-footer-link {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  opacity: 0.9;
}

.public-footer-link:hover,
.public-footer-link:focus {
  text-decoration: underline;
  opacity: 1;
}


/* Public locations + vendors refresh */
.public-group-block {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.public-group-block:first-child {
  margin-top: 0;
}

.public-group-block__header,
.public-entity-card__top,
.public-button-row,
.detail-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.public-group-block__header h4,
.public-entity-card__top h5,
.detail-section h4 {
  margin: 0;
}

.public-entity-row,
.detail-list-item {
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
}

.public-entity-row:first-of-type {
  margin-top: 0.9rem;
}

.public-kv-grid,
.detail-grid {
  margin: 0.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.public-kv-grid.compact {
  margin-top: 0.6rem;
}

.public-kv-grid div,
.detail-grid div {
  display: grid;
  gap: 0.2rem;
}

.public-kv-grid dt,
.detail-grid dt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.public-kv-grid dd,
.detail-grid dd {
  margin: 0;
}

.public-badge-row {
  margin-top: 0.75rem;
}

.mini-badge-muted {
  opacity: 0.75;
}

.mini-badge-highlight {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
}

.detail-section {
  margin-top: 1rem;
}

.schedule-detail-section {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.schedule-detail-section h4 {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.schedule-link-row {
  margin: 0.4rem 0 0;
}

.schedule-link-pill {
  font-size: 0.82rem;
}

.detail-list {
  display: grid;
  gap: 0.65rem;
}

.detail-list-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.detail-list-item:hover,
.detail-list-item:focus {
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.12);
}

.detail-list-meta,
.subtle {
  color: var(--muted);
}

.inline-link-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent, #2563eb);
  cursor: pointer;
  text-decoration: underline;
}

.modal-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.modal-content .secondary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(255,255,255,0.9);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.modal-content .secondary-button:hover,
.modal-content .secondary-button:focus,
.secondary-button:hover,
.secondary-button:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}

.public-vendor-item {
  background: rgba(255,255,255,0.96);
}

body.theme-dark .public-group-block {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.34);
}

body.theme-dark .public-entity-row,
body.theme-dark .detail-list-item,
body.theme-dark .secondary-button,
body.theme-dark .modal-content .secondary-button {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark .mini-badge-highlight {
  background: rgba(30, 64, 175, 0.25);
  color: #bfdbfe;
}

/* --- Vendor empty-state styling fix --- */
.detail-list-item:not(button) {
  cursor: default;
}

.detail-list-item:not(button):hover,
.detail-list-item:not(button):focus {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: none;
}

/* Dark mode */
body.theme-dark .detail-list-item:not(button):hover,
body.theme-dark .detail-list-item:not(button):focus {
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: none;
}


@media (max-width: 720px) {
  .public-group-block__header,
  .public-entity-card__top,
  .public-button-row,
  .detail-actions,
  .detail-list-item {
    flex-direction: column;
    align-items: stretch;
  }

  .public-kv-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
}


.flyer-map-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(127, 18, 32, 0.12);
  margin-bottom: 0.85rem;
}

.flyer-section-heading {
  line-height: 1.2;
}

.flyer-number {
  min-width: 6.5rem;
}


.generated-map--illustrated .illustrated-bg {
  fill: #f4efe4;
}

.generated-map--illustrated .map-frame {
  fill: none;
  stroke: #b89f7b;
  stroke-width: 2;
}

.generated-map--illustrated .map-street-band {
  fill: #d7cbb5;
  stroke: #b59f81;
  stroke-width: 1.5;
}

.generated-map--illustrated .map-lawn-shell {
  fill: #ced9b5;
  stroke: #9aa27e;
  stroke-width: 2;
}

.generated-map--illustrated .map-lawn-inner {
  fill: rgba(247, 243, 233, 0.92);
  stroke: #cbbda4;
  stroke-width: 1.4;
  stroke-dasharray: 7 6;
}

.generated-map--illustrated .map-street {
  fill: #41546a;
  font-size: 18px;
  font-weight: 800;
}

.generated-map--illustrated .map-zone-label {
  fill: #2a3646;
  font-size: 14px;
  font-weight: 800;
  dominant-baseline: middle;
}

.generated-map--illustrated .map-landmark-label {
  fill: #2a3646;
  font-size: 11px;
  font-weight: 800;
}

.generated-map--illustrated .map-assignment-label {
  fill: #8b1221;
  font-size: 11px;
  font-weight: 800;
  dominant-baseline: middle;
}

.generated-map--illustrated .slot-vendor {
  fill: rgba(255,255,255,0.86);
  stroke: #8b1221;
  stroke-width: 1.6;
}

.generated-map--illustrated .slot-anchor {
  fill: rgba(255,255,255,0.75);
  stroke: #8b1221;
  stroke-width: 1.5;
}

.generated-map--illustrated .slot-feature,
.generated-map--illustrated .slot-stage {
  fill: #efc34f;
  stroke: #a55317;
  stroke-width: 1.8;
}

.generated-map--illustrated .slot-food {
  fill: rgba(243, 193, 94, 0.50);
  stroke: #b96d10;
  stroke-width: 1.7;
}

.generated-map--illustrated .slot-beverage {
  fill: rgba(110, 179, 115, 0.42);
  stroke: #3d8742;
  stroke-width: 1.7;
}

.generated-map--illustrated .slot-restroom {
  fill: rgba(153, 117, 204, 0.30);
  stroke: #6c3ca1;
  stroke-width: 1.7;
}

.generated-map--illustrated .slot-kids {
  fill: rgba(215, 231, 169, 0.60);
  stroke: #768e49;
  stroke-width: 1.7;
}

.generated-map--illustrated .slot-parade {
  fill: rgba(110, 141, 172, 0.14);
  stroke: #60758f;
  stroke-width: 1.7;
  stroke-dasharray: 8 5;
}

.generated-map--illustrated .is-assigned {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
  stroke-width: 2.3;
}

.generated-map--illustrated .map-legend-box {
  fill: rgba(249, 244, 232, 0.95);
  stroke: #b89f7b;
  stroke-width: 1.5;
}

.generated-map--illustrated .map-legend-title {
  fill: #2a3646;
  font-size: 17px;
  font-weight: 800;
}

.generated-map--illustrated .map-legend-label {
  fill: #2a3646;
  font-size: 12px;
  font-weight: 700;
}




.map-assignment-block {
  margin-top: 14px;
}

.map-assignment-row {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.generated-map--illustrated .map-assignment-label {
  fill: #8b1221;
  font-size: 10px;
  font-weight: 800;
  dominant-baseline: middle;
}

.generated-map--illustrated .map-street {
  font-size: 16px;
}

body.theme-dark .map-event-claim {
  fill: none;
}


.covh-map-gallery {
  display: grid;
  gap: 18px;
}

.covh-map-town-block {
  scroll-margin-top: 16px;
}

.covh-town-map-frame {
  width: 100%;
  min-height: 640px;
  border: 0;
  display: block;
  border-radius: 16px;
  background: #f8fafc;
}

.covh-map-panel {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

body.theme-dark .covh-town-map-frame {
  background: rgba(15, 23, 42, 0.88);
}

body.theme-dark .covh-map-panel {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
}

@media (max-width: 900px) {
  .covh-town-map-frame {
    min-height: 520px;
  }
}

.submit-event-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vendor-submission-shell {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.vendors-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.vendors-tab-header h3 {
  margin: 0 0 4px;
}

.vendor-cta-pill {
  appearance: none;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(180deg, #f7faff 0%, #e8efff 100%);
}

.vendor-application-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  padding: 14px;
}

.vendor-application-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vendor-application-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
}

.vendor-application-form input,
.vendor-application-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.form-message.is-success {
  color: #0f766e;
  font-weight: 600;
}

.form-message.is-error {
  color: #b91c1c;
  font-weight: 600;
}

.submit-grid {
  display: grid;
  gap: 10px;
}

.submit-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.submit-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.submit-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.submit-event-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
}

.submit-event-form input,
.submit-event-form select,
.submit-event-form textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

@media (max-width: 900px) {
  .vendors-tab-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .submit-grid-2,
  .submit-grid-3,
  .submit-grid-4 {
    grid-template-columns: 1fr;
  }
}

.town-directory-review-wrap { margin: 12px 0; }
.town-directory-review-form { margin: 10px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }

/* Public page declutter pass */
.phone-shell { gap: 12px; }
.hero-card,.info-card,.event-launch-card,.map-card,.item-card,.location-card,.vendor-card,.schedule-card { padding: 14px; border-radius: 20px; }
.hero-card.compact { padding-top: 16px; }
.tab-row { gap: 8px; flex-wrap: wrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.tab-button { min-height: 40px; padding: 9px 12px; font-size: .9rem; white-space: nowrap; }
.chip-row { gap: 8px; }
.day-chip,.meta-chip,.pill,.resource-link { min-height: 36px; padding: 8px 12px; font-size: .82rem; }
.stack-list { gap: 8px; margin-top: 8px; }
#schedule-list .schedule-card,#vendor-list .vendor-card,#location-list .location-card,#recognition-list .item-card { gap: 8px; }
.map-surface,.covh-map-panel,#flyer-panel img,.flyer-shell img,.item-card img,.map-card img { max-width: 100%; height: auto; }

@media (max-width: 640px) {
  .page-shell { padding: 10px; }
  .phone-shell { gap: 10px; }
  .hero-card,.info-card,.event-launch-card,.map-card,.item-card,.location-card,.vendor-card,.schedule-card { padding: 12px; }
  .tab-row { flex-wrap: nowrap; }
  .tab-button { flex: 0 0 auto; }
  .schedule-card { grid-template-columns: 1fr; gap: 6px; }
  .schedule-time { white-space: normal; }
}

.noscript-note {
  margin: 12px auto;
  max-width: 960px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 248, 230, 0.9);
  color: #334155;
  font-size: 0.9rem;
}

.public-footer .subtle {
  margin: 0 auto 6px;
  max-width: 780px;
  font-size: 0.76rem;
}

.admin-link {
  opacity: 0.75;
}

/* Concise public schedule cards + detail view */
.schedule-list-cards {
  display: grid;
  gap: 0.85rem;
}

.schedule-summary-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: stretch;
}

.schedule-card-main {
  min-width: 0;
}

.schedule-card-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.schedule-card-header h4 {
  margin: 0;
  line-height: 1.18;
}

.schedule-category-tag {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.schedule-summary-meta {
  margin: 0.8rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.schedule-summary-meta div,
.schedule-detail-grid div {
  min-width: 0;
}

.schedule-summary-meta dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.schedule-summary-meta dd {
  margin: 0.18rem 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.schedule-preview {
  margin: 0.8rem 0 0;
}

.schedule-summary-card .schedule-actions {
  grid-column: auto;
  display: flex;
  align-items: center;
}

.schedule-summary-card .schedule-detail-button {
  min-width: 104px;
  margin-top: 0;
}

.schedule-detail-hero {
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.86);
}

.schedule-detail-grid {
  margin-top: 0;
}

.schedule-location-actions,
.schedule-close-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.schedule-close-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.schedule-map-action {
  width: auto;
}

.schedule-map-highlight-focus {
  filter: drop-shadow(0 0 10px rgba(127, 18, 32, 0.45));
}

body.theme-dark .schedule-detail-hero {
  border-color: var(--border);
  background: rgba(17, 24, 39, 0.42);
}

@media (max-width: 700px) {
  .schedule-summary-card {
    grid-template-columns: 1fr;
  }

  .schedule-card-header {
    flex-direction: column;
  }

  .schedule-summary-meta {
    grid-template-columns: 1fr;
  }

  .schedule-summary-card .schedule-actions,
  .schedule-summary-card .schedule-detail-button,
  .schedule-map-action,
  .schedule-close-actions .secondary-button {
    width: 100%;
  }

  .modal,
  .bb-modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card,
  .bb-modal-card {
    width: 100vw;
    max-width: 100vw;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}

/* Public page type presentation defaults */
.page-type-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.primary-button,
.page-type-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: linear-gradient(135deg, var(--accent, #2563eb), #6d8dff);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.primary-button:hover,
.primary-button:focus,
.page-type-primary-cta:hover,
.page-type-primary-cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.tab-button.page-type-emphasis {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.14);
}

.tab-panel.page-type-emphasis-panel.active {
  outline: 1px solid rgba(37, 99, 235, 0.12);
  outline-offset: 6px;
}

body.theme-dark .primary-button,
body.theme-dark .page-type-primary-cta {
  color: #f8fbff;
  border-color: rgba(135, 168, 255, 0.45);
}

.hero-guide-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
  margin: 0;
  min-width: 0;
  white-space: nowrap;
}

.inline-town-selector {
  flex: 0 1 16rem;
  min-width: 12rem;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.55rem 2.25rem 0.55rem 0.9rem;
  font: inherit;
}

@media (max-width: 820px) {
  .header {
    grid-template-columns: 1fr;
  }

  .header-submit-action,
  .hero-guide-line {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-guide-line {
    flex-wrap: wrap;
    white-space: normal;
  }

  .inline-town-selector {
    flex-basis: 100%;
    width: 100%;
  }
}

.collection-guide-view {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.collection-guide-hero {
  margin: 0;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(34, 197, 94, 0.12)), var(--card-bg, #fff);
}

.collection-guide-section {
  scroll-margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}


.collection-guide-tabs {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.collection-guide-tabs .tab-button {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.collection-guide-card-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.collection-guide-card-grid .info-card,
.collection-date-group {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, rgba(15, 23, 42, 0.12));
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--card-shadow, 0 10px 30px rgba(15, 23, 42, 0.08));
}

.collection-guide-card-grid h5,
.collection-date-group h5 {
  margin: 0 0 0.5rem;
}

.collection-date-group + .collection-date-group {
  margin-top: 0.75rem;
}

.collection-guide-view .flyer-shell {
  padding: 0;
  overflow-x: auto;
}

.collection-guide-view .map-surface img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.theme-dark .collection-guide-hero {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.18), rgba(34, 197, 94, 0.16)), var(--card-bg, #111827);
}

.collection-day-selector {
  margin: 0.75rem 0 1rem;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.collection-day-chip {
  white-space: nowrap;
}

/* COVH flyer Letter portrait print lock: keep this after all responsive rules. */
@page {
  size: 8.5in 11in;
  margin: 0;
}

@media print {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body.printing-covh-flyer .covh-print-toolbar,
  body.printing-covh-flyer [data-no-print] {
    display: none !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page {
    box-sizing: border-box !important;

    width: 8.5in !important;
    height: 11in !important;
    min-width: 8.5in !important;
    min-height: 11in !important;
    max-width: 8.5in !important;
    max-height: 11in !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    overflow: hidden !important;

    break-after: page !important;
    break-inside: avoid-page !important;

    page-break-after: always !important;
    page-break-inside: avoid !important;

    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page:last-child {
    break-after: auto !important;
    page-break-after: auto !important;
  }

  body.printing-covh-flyer .covh-page-inner {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-inner {
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 18px !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-grid {
    display: grid !important;
    grid-template-columns:
      minmax(0, 1fr)
      150px
      minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    align-content: start !important;
    justify-content: normal !important;
    gap: 14px !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-column,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-regional-wrap {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    gap: 8px !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-key-card {
    position: static !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-list-item,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-regional-block {
    padding: 6px 8px !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-item-meta,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-regional-meta {
    margin-top: 1px !important;
    margin-bottom: 2px !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-list-item p,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-regional-item p {
    line-height: 1.22 !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-bag-callout,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-tree-callout {
    padding: 7px 9px !important;
    line-height: 1.24 !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-bag-callout-under-regional,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-tree-callout-under-regional {
    margin-top: 5px !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-tree-icon-inline {
    width: auto !important;
    height: auto !important;
    font-size: 24px !important;
    line-height: 1 !important;
    vertical-align: -6px !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-page-inner {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 14px !important;
    height: 100% !important;
    min-height: 0 !important;
    padding-bottom: 18px !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-layout {
    display: grid !important;
    grid-template-columns:
      minmax(0, 1.4fr)
      minmax(0, 0.95fr) !important;
    gap: 14px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    align-items: start !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-stack {
    display: grid !important;
    grid-template-rows: auto auto auto !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 0 !important;
    align-content: start !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-main-card {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 7px !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-regional-map-only {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 7px !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-card {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-main-map,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-regional-map-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-footer-layout {
    display: grid !important;
    grid-template-columns:
      minmax(0, 1fr)
      2.2in
      minmax(0, 1.1fr) !important;
    grid-template-rows:
      minmax(0, 1fr)
      minmax(0, auto) !important;
    grid-template-areas:
      "thanks qr art"
      "sponsors qr art" !important;
    gap: 14px !important;
    height: 100% !important;
    min-height: 0 !important;
    align-items: stretch !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-sponsor-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-qr-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-art-block {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 9px !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-sponsor-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-qr-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-art-block {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-qr-image,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-art-image {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-qr-image {
    max-width: 1.72in !important;
  }

  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-art-image {
    width: 82% !important;
  }

  body.printing-covh-flyer .covh-footer-lines {
    left: 9px !important;
    top: 12px !important;
    max-width: 38% !important;
  }

  body.printing-covh-flyer .covh-key-card {
    position: static !important;
  }
}

/* Grouped vendor guide */
.vendor-grouped-list {
  display: grid;
  gap: 1rem;
}

.vendor-day-group {
  border-color: rgba(37, 99, 235, 0.16);
}

.vendor-day-group__header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.vendor-location-groups {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.vendor-location-group {
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.vendor-location-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.vendor-location-group__header h5 {
  margin: 0;
}

.vendor-list-entries {
  display: grid;
  gap: 0.55rem;
}

.vendor-list-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.vendor-list-entry h6 {
  margin: 0;
  font-size: 1rem;
}

.vendor-list-entry p {
  margin: 0.45rem 0 0;
}

.vendor-list-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.vendor-list-entry__meta span + span::before {
  content: '•';
  margin-right: 0.4rem;
  color: rgba(100, 116, 139, 0.8);
}

.vendor-list-entry__link {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.theme-dark .vendor-day-group__header,
body.theme-dark .vendor-location-group,
body.theme-dark .vendor-list-entry {
  border-color: rgba(148, 163, 184, 0.18);
}

body.theme-dark .vendor-location-group {
  background: rgba(15, 23, 42, 0.42);
}

body.theme-dark .vendor-list-entry {
  background: rgba(15, 23, 42, 0.62);
}

@media (max-width: 720px) {
  .vendor-location-group__header,
  .vendor-list-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .vendor-list-entry__link {
    width: 100%;
    text-align: center;
  }
}

.fall-fest-flyer-stack {
  display: grid;
  gap: 1.5rem;
}

.fall-fest-flyer-group {
  overflow: hidden;
}

.fall-fest-flyer-group__header {
  margin-bottom: 1rem;
}

@media print {
  body.covh-printable-document .covh-print-sheet--page-one .covh-key-card,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-key-card {
    display: block !important;
    position: static !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-key-row,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-key-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    height: auto !important;
    min-height: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-key-label,
  body.covh-printable-document .covh-print-sheet--page-one .covh-key-row > div,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-key-label,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-key-row > div {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-page-one-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 14px !important;
    text-align: center !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer-callout,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-page-one-footer-callout {
    box-sizing: border-box !important;
    width: min(100%, 8.5in) !important;
    margin: 0 auto !important;
    padding: 12px 18px !important;
    font-size: 11.5pt !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer-callout img,
  body.covh-printable-document .covh-print-sheet--page-1 .covh-page-one-footer-callout img {
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 5px !important;
  }
}

/* =========================================================
   COVH page 2 final print typography overrides
   Keep this as the last COVH print block in the stylesheet.
   ========================================================= */
@media print {
  /* Thank You heading */
  body.covh-printable-document
    .covh-print-sheet--page-two
    .covh-thanks-block
    .covh-script-heading,
  body.printing-covh-flyer
    .covh-pamphlet-page--page2
    .covh-thanks-block
    .covh-script-heading {
    font-size: 22pt !important;
    line-height: 1.08 !important;
    margin-bottom: 12px !important;
  }

  /* Thank You paragraph and benefactors */
  body.covh-printable-document
    .covh-print-sheet--page-two
    .covh-thanks-block p,
  body.covh-printable-document
    .covh-print-sheet--page-two
    .covh-benefactor-list,
  body.covh-printable-document
    .covh-print-sheet--page-two
    .covh-benefactor-list li,
  body.printing-covh-flyer
    .covh-pamphlet-page--page2
    .covh-thanks-block p,
  body.printing-covh-flyer
    .covh-pamphlet-page--page2
    .covh-benefactor-list,
  body.printing-covh-flyer
    .covh-pamphlet-page--page2
    .covh-benefactor-list li {
    font-size: 13pt !important;
    line-height: 1.42 !important;
  }

  /* Sponsors heading */
  body.covh-printable-document
    .covh-print-sheet--page-two
    .covh-sponsor-block
    .covh-script-heading,
  body.printing-covh-flyer
    .covh-pamphlet-page--page2
    .covh-sponsor-block
    .covh-script-heading {
    font-size: 21pt !important;
    line-height: 1.08 !important;
    margin-bottom: 12px !important;
  }

  /* Sponsor list */
  body.covh-printable-document
    .covh-print-sheet--page-two
    .covh-sponsor-list,
  body.covh-printable-document
    .covh-print-sheet--page-two
    .covh-sponsor-list li,
  body.printing-covh-flyer
    .covh-pamphlet-page--page2
    .covh-sponsor-list,
  body.printing-covh-flyer
    .covh-pamphlet-page--page2
    .covh-sponsor-list li {
    font-size: 13pt !important;
    line-height: 1.42 !important;
  }

  /* Follow Us text */
  body.covh-printable-document
    .covh-print-sheet--page-two
    .covh-footer-lines,
  body.covh-printable-document
    .covh-print-sheet--page-two
    .covh-footer-lines > div,
  body.printing-covh-flyer
    .covh-pamphlet-page--page2
    .covh-footer-lines,
  body.printing-covh-flyer
    .covh-pamphlet-page--page2
    .covh-footer-lines > div {
    font-size: 14pt !important;
    line-height: 1.42 !important;
  }
}

/* COVH page 1 final print banner override
   Keeps the three-line database-driven flyer header inside the banner art. */
@media print {
  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner {
    box-sizing: border-box !important;
    min-height: 1.9in !important;
    margin-bottom: 0.14in !important;
    padding-bottom: 0.08in !important;
    overflow: hidden !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-overlay,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-overlay {
    box-sizing: border-box !important;
    min-height: 1.75in !important;
    height: 1.75in !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-strip-overlay,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-strip-overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-copy-overlay,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-copy-overlay {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7pt !important;
    width: 100% !important;
    height: 100% !important;
    padding: 12pt 24pt !important;
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-date,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-date {
    margin: 0 !important;
    font-size: 11pt !important;
    line-height: 1.15 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-title-line,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-title-line {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 6pt !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-title,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-title {
    margin: 0 !important;
    font-size: 25pt !important;
    line-height: 1.05 !important;
    white-space: normal !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-annual-label,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-annual-label {
    font-size: 25pt !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-title-separator,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-title-separator {
    font-size: 22pt !important;
    line-height: 1 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-location-line,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-location-line {
    margin: 0 !important;
    font-size: 11pt !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
}

@media print {
  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-list-item,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-list-item {
    padding: 6.5px 8px !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-list-item
    + .covh-list-item,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-list-item
    + .covh-list-item {
    margin-top: 1px !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-item-meta,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-item-meta {
    margin-top: 2px !important;
    margin-bottom: 2.5px !important;
    line-height: 1.16 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-list-item p,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-list-item p {
    line-height: 1.24 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-regional-location-group
    + .covh-regional-location-group,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-regional-location-group
    + .covh-regional-location-group {
    margin-top: 14px !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-regional-location-heading,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-regional-location-heading {
    margin-bottom: 5px !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-page-one-footer,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-page-one-footer {
    margin-top: 16px !important;
    gap: 12px !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-page-one-footer-callout,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-page-one-footer-callout {
    padding: 11px 16px !important;
    line-height: 1.3 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-page-inner,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-page-inner {
    padding-bottom: 10px !important;
  }
}


/* COVH page 1 fixed-height Letter print refinement
   Keeps the footer on the printable bottom edge while lifting the banner copy. */
@media print {
  body.covh-printable-document
    .covh-print-sheet--page-one,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1 {
    width: 8.5in !important;
    height: 11in !important;
    min-height: 11in !important;
    max-height: 11in !important;
    overflow: hidden !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-page-inner,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-page-inner {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0.16in 0.18in 0.12in !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner {
    min-height: 1.05in !important;
    height: 1.05in !important;
    margin-bottom: 0.07in !important;
    padding-bottom: 0 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-overlay,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-overlay {
    min-height: 1.05in !important;
    height: 1.05in !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-copy-overlay,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-copy-overlay {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3pt !important;
    width: auto !important;
    max-width: 7.1in !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 4pt 12pt 2pt !important;
    text-align: center !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-date,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-date {
    margin: 0 !important;
    font-size: 8.2pt !important;
    line-height: 1.05 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-title,
  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-annual-label,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-title,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-annual-label {
    font-size: 17.5pt !important;
    line-height: 1.02 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-title-line,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-title-line {
    gap: 3pt !important;
    margin: 0 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-location-line,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-location-line {
    margin: 0 !important;
    font-size: 8.4pt !important;
    line-height: 1.05 !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-page-one-grid,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-page-one-grid {
    flex: 0 0 auto !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-list-item,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-list-item {
    padding: 4.5px 6px !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-regional-location-group
    + .covh-regional-location-group,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-regional-location-group
    + .covh-regional-location-group {
    margin-top: 8px !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-page-one-footer,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-page-one-footer {
    margin-top: auto !important;
    padding-top: 10px !important;
    gap: 8px !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-page-one-footer-callout,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-page-one-footer-callout {
    padding: 8px 12px !important;
    line-height: 1.18 !important;
  }
}

/* Public vendor guide presentation refinements */
.vendor-category-group__header h4 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.15;
}

.fall-fest-vendor-entry {
  align-items: flex-start;
  border-color: rgba(37, 99, 235, 0.14);
}

.vendor-list-entry h5 {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}

.vendor-list-entry p,
.covh-vendor-description {
  color: var(--text);
  line-height: 1.55;
}

.vendor-list-entry__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.covh-vendor-location-block {
  border-color: rgba(15, 23, 42, 0.1);
}

.covh-vendor-location-block__header {
  align-items: flex-start;
  gap: 1rem;
}

.covh-host-heading-button {
  display: inline-flex;
  max-width: 100%;
  text-align: left;
}

.covh-host-heading-button h4 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
}

.covh-vendor-list {
  display: grid;
  gap: 0.75rem;
}

.covh-vendor-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

.covh-vendor-list-item h5 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.covh-vendor-list-item .eyebrow {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.covh-vendor-list-item__content {
  min-width: 0;
}

.covh-vendor-location-actions {
  justify-content: flex-end;
  margin-top: 0.85rem;
}

body.theme-dark .fall-fest-vendor-entry,
body.theme-dark .covh-vendor-location-block,
body.theme-dark .covh-vendor-list-item {
  border-color: rgba(148, 163, 184, 0.22);
}

body.theme-dark .covh-vendor-list-item {
  background: rgba(15, 23, 42, 0.68);
}

@media (max-width: 720px) {
  .vendor-list-entry__actions,
  .covh-vendor-list-item,
  .covh-vendor-location-block__header {
    align-items: stretch;
    flex-direction: column;
  }

  .vendor-list-entry__actions .secondary-button,
  .covh-vendor-list-item .secondary-button {
    width: 100%;
    text-align: center;
  }
}

.vendor-view-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.vendor-view-selector__label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.vendor-view-selector__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.vendor-view-button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 32%, transparent);
}

.public-vendor-entry {
  align-items: flex-start;
}

.vendor-list-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.vendor-list-entry__meta span:not(:last-child)::after {
  content: "•";
  margin-left: 0.55rem;
  color: color-mix(in srgb, var(--muted) 60%, transparent);
}

@media (max-width: 640px) {
  .vendor-view-selector,
  .vendor-view-selector__buttons,
  .public-vendor-entry,
  .vendor-list-entry__actions {
    width: 100%;
  }

  .vendor-list-entry__actions {
    justify-content: flex-start;
  }
}

.collection-selector {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.collection-selector__label {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-text, #64748b);
}

.collection-selector__buttons {
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.flyer-group-selector {
  margin-top: 0;
}

.flyer-group-chip,
.collection-day-chip {
  white-space: normal;
  text-align: center;
}

.flyer-group-chip.active,
.collection-day-chip.active {
  box-shadow: 0 0 0 2px var(--card-bg, #fff), 0 0 0 4px var(--accent, #f97316);
}

@media (max-width: 560px) {
  .collection-selector {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .collection-selector__buttons {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
  }

  .collection-selector__buttons .filter-chip {
    flex: 0 0 auto;
    max-width: min(72vw, 18rem);
  }
}

/* Legacy Mt. Pulaski Fall Fest public flyer presentation (database-backed) */
.legacy-fall-fest-doc,
.legacy-garage-sale-doc {
  --doc-ink: #1f2a3a;
  --doc-muted: #5b6779;
  --doc-line: #d8e0ee;
  --doc-panel-soft: #f6f9ff;
  --doc-brand: #334e7d;
  --doc-accent: #7f2d2f;
}

.legacy-fall-fest-doc .doc-page,
.legacy-garage-sale-doc .doc-page,
.flyer-theme-paint-splash .paint-square-doc {
  box-shadow: 0 12px 36px rgba(25, 39, 64, 0.10);
}

.legacy-fall-fest-doc .doc-page-inner,
.legacy-garage-sale-doc .doc-page-inner,
.flyer-theme-paint-splash .paint-square-doc .doc-page-inner {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.legacy-fall-fest-doc .doc-header,
.legacy-garage-sale-doc .doc-header {
  border-bottom: 1px solid var(--doc-line);
  padding-bottom: 18px;
}

.legacy-fall-fest-doc .doc-kicker,
.legacy-garage-sale-doc .doc-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--doc-accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.legacy-fall-fest-doc .doc-title,
.legacy-garage-sale-doc .doc-title {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.35rem);
  line-height: 1.02;
}

.legacy-fall-fest-doc .doc-subtitle,
.legacy-garage-sale-doc .doc-subtitle {
  margin: 0;
  color: var(--doc-muted);
  font-size: 1rem;
}

.legacy-fall-fest-doc .doc-card {
  border: 1px solid var(--doc-line);
  border-radius: 18px;
  background: var(--doc-panel-soft);
  padding: 16px;
  display: grid;
  gap: 10px;
  break-inside: avoid;
}

.legacy-fall-fest-doc .doc-festival-tagline-card {
  background: linear-gradient(180deg, #f9fbff 0%, #f2f6ff 100%);
}

.legacy-fall-fest-doc .doc-section-title,
.legacy-garage-sale-doc .doc-section-title {
  margin: 0;
  font-size: 1.04rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--doc-brand);
}

.legacy-fall-fest-doc .legacy-festival-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legacy-fall-fest-doc .doc-entry-list {
  display: grid;
  gap: 10px;
}

.legacy-fall-fest-doc .doc-schedule-item {
  border: 1px solid var(--doc-line);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 6px;
  break-inside: avoid;
}

.legacy-fall-fest-doc .doc-schedule-time {
  font-weight: 800;
  color: var(--doc-brand);
  font-size: 0.9rem;
}

.legacy-fall-fest-doc .doc-schedule-copy h4,
.legacy-garage-sale-doc .doc-entry h3 {
  margin: 0;
  font-size: 0.98rem;
}

.legacy-fall-fest-doc .doc-schedule-copy p,
.legacy-garage-sale-doc .doc-entry p,
.legacy-garage-sale-doc .doc-entry-meta {
  margin: 0;
  color: var(--doc-muted);
  line-height: 1.4;
  font-size: 0.9rem;
}

.legacy-fall-fest-doc .doc-schedule-description,
.legacy-garage-sale-doc .doc-entry p {
  color: var(--doc-ink);
}

.legacy-garage-sale-doc .doc-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.legacy-garage-sale-doc .doc-entry {
  border: 1px solid var(--doc-line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 8px;
  break-inside: avoid;
}

.legacy-garage-sale-doc .doc-num {
  background: #ebf1ff;
  color: var(--doc-brand);
}

.legacy-fall-fest-doc .doc-footer,
.legacy-garage-sale-doc .doc-footer {
  border-top: 1px solid var(--doc-line);
  padding-top: 14px;
  color: var(--doc-muted);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.flyer-theme-paint-splash .paint-square-doc {
  position: relative;
  border: 1px solid rgba(146, 187, 255, 0.22);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 0, 153, 0.24), transparent 34%),
    radial-gradient(circle at 82% 14%, rgba(0, 208, 255, 0.22), transparent 36%),
    radial-gradient(circle at 22% 82%, rgba(255, 196, 0, 0.16), transparent 32%),
    radial-gradient(circle at 74% 78%, rgba(255, 140, 0, 0.14), transparent 30%),
    linear-gradient(135deg, #26103c 0%, #0c1845 46%, #0d2a44 100%);
}

.flyer-theme-paint-splash .paint-square-doc::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,0.05), transparent 28%),
    radial-gradient(circle at 66% 58%, rgba(255,255,255,0.03), transparent 34%);
  mix-blend-mode: screen;
}

.flyer-theme-paint-splash .paint-square-doc .doc-page-inner {
  position: relative;
  z-index: 1;
  min-height: 0;
  align-content: stretch;
}

.paint-square-tagline { margin: 0; font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.92); }
.paint-square-group { padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.16); }
.paint-square-group + .paint-square-group { margin-top: 8px; }
.paint-square-group h3 { margin: 0 0 8px; font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8fe8ff; }
.paint-square-group p { margin: 0 0 8px; line-height: 1.48; color: rgba(248,251,255,0.96); }
.paint-square-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; font-size: 0.92rem; color: rgba(248,251,255,0.96); }

@media (max-width: 820px) {
  .legacy-fall-fest-doc .legacy-festival-section-grid,
  .legacy-garage-sale-doc .doc-entries,
  .paint-square-footer { grid-template-columns: 1fr; }

  .legacy-fall-fest-doc .doc-page-inner,
  .legacy-garage-sale-doc .doc-page-inner,
  .flyer-theme-paint-splash .paint-square-doc .doc-page-inner { padding: 18px; }
}

@media print {
  #flyer-panel .flyer-group-selector,
  #flyer-panel .fall-fest-flyer-group__header { display: none !important; }

  .legacy-fall-fest-doc .doc-page-inner,
  .legacy-garage-sale-doc .doc-page-inner,
  .flyer-theme-paint-splash .paint-square-doc .doc-page-inner { padding: 0.35in; }

  .flyer-theme-paint-splash .paint-square-doc {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-after: auto;
    break-after: auto;
  }

  .legacy-garage-sale-doc .doc-entries { gap: 8pt; }
  .legacy-garage-sale-doc .doc-entry { padding: 8pt; }
}

/* Final COVH Letter portrait print fit overrides. */
@media print {
  @page {
    size: 8.5in 11in;
    margin: 0;
  }

  body.covh-printable-document .covh-print-sheet,
  body.covh-printable-document .covh-pamphlet-page,
  body.printing-covh-flyer .covh-pamphlet-page {
    width: 8.5in !important;
    height: 11in !important;
    min-width: 8.5in !important;
    min-height: 11in !important;
    max-width: 8.5in !important;
    max-height: 11in !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-inner,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-inner {
    padding: 0.16in 0.18in 0.12in !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner {
    min-height: 1.15in !important;
    height: 1.15in !important;
    margin-bottom: 0.08in !important;
    padding-bottom: 0.04in !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-overlay,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-overlay {
    min-height: 1.05in !important;
    height: 1.05in !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-copy-overlay,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-copy-overlay {
    width: auto !important;
    max-width: 7.2in !important;
    margin: 0 auto !important;
    padding: 5pt 12pt !important;
    border-radius: 4px !important;
    background: transparent !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-date,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-date {
    font-size: 8.5pt !important;
    line-height: 1.05 !important;
    letter-spacing: 0.12em !important;
    color: #111 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.84), 0 0 6px rgba(255, 255, 255, 0.72) !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-title,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-annual-label,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-title,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-annual-label {
    font-size: 18pt !important;
    line-height: 1.02 !important;
    color: #111 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.84), 0 0 6px rgba(255, 255, 255, 0.72) !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-location-line,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-location-line {
    font-size: 8.5pt !important;
    line-height: 1.05 !important;
    color: #111 !important;
    text-shadow: none !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-grid,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-grid {
    grid-template-columns: minmax(0, 1fr) 1.15in minmax(0, 1fr) !important;
    gap: 0.08in !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-column,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-column {
    gap: 3px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-list-item,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-list-item {
    padding: 4px 6px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-item-title-line h4,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-item-title-line h4 {
    font-size: 7.8pt !important;
    line-height: 1.08 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-item-number,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-item-number {
    font-size: 7.8pt !important;
    min-width: 13px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-item-meta,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-item-meta {
    margin: 1px 0 1px 18px !important;
    font-size: 6.6pt !important;
    line-height: 1.08 !important;
    gap: 2px 4px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-list-item p,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-list-item p {
    margin-left: 18px !important;
    font-size: 6.8pt !important;
    line-height: 1.12 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-key-card,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-key-card {
    padding: 6px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-key-title,
  body.covh-printable-document .covh-print-sheet--page-one .covh-key-row,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-key-title,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-key-row {
    font-size: 6.8pt !important;
    line-height: 1.12 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-key-row,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-key-row {
    padding: 4px 0 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-regional-location-heading,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-regional-location-heading {
    font-size: 6.8pt !important;
    line-height: 1.05 !important;
    margin-bottom: 3px !important;
    padding: 2px 0 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-regional-location-group + .covh-regional-location-group,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-regional-location-group + .covh-regional-location-group {
    margin-top: 6px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-footer {
    margin-top: 6px !important;
    gap: 4px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer-callout,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-footer-callout {
    padding: 5px 8px !important;
    font-size: 6.8pt !important;
    line-height: 1.15 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-two .covh-page-inner,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-page-inner {
    padding: 0.16in 0.18in 0.12in !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 0.08in !important;
  }

  body.covh-printable-document .covh-print-sheet--page-two .covh-banner,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-banner {
    min-height: 0.75in !important;
    height: 0.75in !important;
    margin-bottom: 0.08in !important;
  }

  body.covh-printable-document .covh-print-sheet--page-two .covh-map-layout,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-layout {
    gap: 0.08in !important;
  }

  body.covh-printable-document .covh-print-sheet--page-two .covh-footer-layout,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-footer-layout {
    grid-template-columns: minmax(0, 1fr) 1.35in minmax(0, 1.1fr) !important;
    gap: 0.08in !important;
  }

  body.covh-printable-document .covh-print-sheet--page-two .covh-thanks-block,
  body.covh-printable-document .covh-print-sheet--page-two .covh-sponsor-block,
  body.covh-printable-document .covh-print-sheet--page-two .covh-qr-block,
  body.covh-printable-document .covh-print-sheet--page-two .covh-art-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-sponsor-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-qr-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-art-block {
    padding: 6px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-two .covh-thanks-block .covh-script-heading,
  body.covh-printable-document .covh-print-sheet--page-two .covh-sponsor-block .covh-script-heading,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block .covh-script-heading,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-sponsor-block .covh-script-heading {
    font-size: 13pt !important;
    line-height: 1.05 !important;
    margin-bottom: 4px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-two .covh-thanks-block p,
  body.covh-printable-document .covh-print-sheet--page-two .covh-benefactor-list,
  body.covh-printable-document .covh-print-sheet--page-two .covh-sponsor-list,
  body.covh-printable-document .covh-print-sheet--page-two .covh-footer-lines,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block p,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-benefactor-list,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-sponsor-list,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-footer-lines {
    font-size: 7.5pt !important;
    line-height: 1.18 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-two .covh-qr-image,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-qr-image {
    max-width: 1.15in !important;
  }

  body.covh-printable-document .covh-print-sheet--page-two .covh-art-image,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-art-image {
    width: 72% !important;
    max-height: 58% !important;
  }
}

/* COVH page 1 unified graphic banner/readability/footer experiment */
@media print {
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner {
    position: relative !important;
    display: block !important;
    min-height: 1.45in !important;
    height: 1.45in !important;
    margin-bottom: 0.08in !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-art-strip,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-art-strip {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    background-repeat: no-repeat !important;
    background-position: center 48% !important;
    background-size: cover !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-copy-overlay,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-copy-overlay {
    position: relative !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 100% !important;
    padding: 8pt 10pt 0 0.48in !important;
    text-align: center !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-copy-block,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-copy-block {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 2pt !important;
    width: auto !important;
    max-width: 5.75in !important;
    margin: 0 !important;
    padding: 5pt 15pt 4pt !important;
    text-align: center !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-date,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-date {
    font-size: 8.2pt !important;
    line-height: 1.05 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-title,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-title {
    font-size: 17.5pt !important;
    line-height: 1.02 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-location-line,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-location-line {
    font-size: 8.4pt !important;
    line-height: 1.05 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-list-item,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-list-item {
    padding: 3.5px 5.5px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-item-title-line h4,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-item-title-line h4 {
    font-size: 9pt !important;
    line-height: 1.08 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-item-number,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-item-number {
    font-size: 8.8pt !important;
    line-height: 1.08 !important;
    min-width: 14px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-item-meta,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-item-meta {
    margin: 1px 0 1px 18px !important;
    font-size: 7.8pt !important;
    line-height: 1.14 !important;
    gap: 2px 4px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-list-item p,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-list-item p {
    margin-left: 18px !important;
    font-size: 7.8pt !important;
    line-height: 1.16 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-regional-location-heading,
  body.covh-printable-document .covh-print-sheet--page-one .covh-regional-title,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-regional-location-heading,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-regional-title {
    font-size: 8.5pt !important;
    line-height: 1.08 !important;
    margin-bottom: 3px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-regional-location-group + .covh-regional-location-group,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-regional-location-group + .covh-regional-location-group {
    margin-top: 5px !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-footer {
    margin-top: auto !important;
    padding-top: 6px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer-inner,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-footer-inner {
    width: 2.8in !important;
    max-width: 2.8in !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: stretch !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer-callout,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-footer-callout {
    padding: 6px 8px !important;
    text-align: center !important;
    font-size: 7pt !important;
    line-height: 1.16 !important;
  }
}

.covh-banner--integrated {
  position: relative;
  height: 1.95in;
  min-height: 1.95in;
  overflow: hidden;
}

.covh-banner--integrated .covh-banner-art-strip {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center 48%;
  background-size: cover;
}

.covh-banner--integrated .covh-banner-copy-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 2.45in 0 1.35in;
}

.covh-banner--integrated .covh-banner-copy-block {
  width: min(100%, 5.75in);
  max-width: 5.75in;
  padding: 0;
  text-align: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: #171717;
  text-wrap: balance;
}

.covh-banner--integrated .covh-banner-title-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  white-space: nowrap;
}

.covh-banner--integrated .covh-banner-title,
.covh-banner--integrated .covh-banner-annual-label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1.05;
  color: #2f4f3b;
  text-shadow: 0 1px 1px rgba(255,255,255,0.65);
}

@media print {
  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner--integrated,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner--integrated {
    height: 1.95in !important;
    min-height: 1.95in !important;
    max-height: 1.95in !important;
    margin-bottom: 0.08in !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner--integrated
    .covh-banner-art-strip,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner--integrated
    .covh-banner-art-strip {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background-repeat: no-repeat !important;
    background-position: center 48% !important;
    background-size: cover !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner--integrated
    .covh-banner-copy-overlay,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner--integrated
    .covh-banner-copy-overlay {
    position: relative !important;
    z-index: 2 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 0 2.45in 0 1.35in !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner--integrated
    .covh-banner-copy-block,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner--integrated
    .covh-banner-copy-block {
    width: min(100%, 5.75in) !important;
    max-width: 5.75in !important;
    padding: 0 !important;
    text-align: center !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-date,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-date {
    margin: 0 0 3pt !important;
    font-size: 8.2pt !important;
    line-height: 1.05 !important;
    letter-spacing: 0.14em !important;
    color: #111 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 5px rgba(255, 255, 255, 0.72) !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-title-line,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-title-line {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 6pt !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-title,
  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-annual-label,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-title,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-annual-label {
    font-size: 17.5pt !important;
    line-height: 1.02 !important;
    color: #111 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.84), 0 0 6px rgba(255, 255, 255, 0.72) !important;
  }

  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner-location-line,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner-location-line {
    margin: 2pt 0 0 !important;
    font-size: 8.3pt !important;
    line-height: 1.05 !important;
    color: #111 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.84), 0 0 6px rgba(255, 255, 255, 0.72) !important;
  }
}

/* Keep the regular page-one COVH flyer banner aligned with the printable header. */
.covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-date {
  margin: 0 0 3pt;
  font-size: 8.2pt;
  line-height: 1.05;
  letter-spacing: 0.14em;
  color: #111;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82), 0 0 5px rgba(255, 255, 255, 0.72);
}

.covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-title,
.covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-annual-label {
  font-size: 17.5pt;
  line-height: 1.02;
  color: #111;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.84), 0 0 6px rgba(255, 255, 255, 0.72);
}

.covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-title-line {
  gap: 6pt;
  margin: 0;
}

.covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-location-line {
  margin: 2pt 0 0;
  font-size: 8.3pt;
  line-height: 1.05;
  color: #111;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.84), 0 0 6px rgba(255, 255, 255, 0.72);
}


/* Final COVH page 1 print corrections: no header text panel, full-width visible footer callouts. */
@media print {
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-copy-overlay,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-copy-block,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-title-line,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-date,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-location-line,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-copy-overlay,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-copy-block,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-title-line,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-date,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-location-line {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-copy-overlay::before,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-copy-overlay::after,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-copy-block::before,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-copy-block::after,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-copy-overlay::before,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-copy-overlay::after,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-copy-block::before,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-copy-block::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-footer {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: auto !important;
    padding-top: 0.05in !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer-inner,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.05in !important;
    width: 100% !important;
    max-width: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-page-one-footer-callout,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-footer-callout {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    font-size: 6.7pt !important;
    line-height: 1.1 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* COVH canonical print-media structural alignment.
   Keep Print / Save PDF on the same flyer DOM and layout metrics used by
   the website preview and Open Printable View screen render; print media only
   adds sheet page breaks. */
@media print {
  body.covh-printable-document .covh-preview-shell,
  body.printing-covh-flyer .covh-preview-shell {
    display: grid !important;
    width: 8.5in !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.covh-printable-document .covh-print-sheet,
  body.printing-covh-flyer .covh-print-sheet {
    display: block !important;
    width: 8.5in !important;
    height: 11in !important;
    min-width: 8.5in !important;
    min-height: 11in !important;
    max-width: 8.5in !important;
    max-height: 11in !important;
    overflow: hidden !important;
    break-after: page !important;
    page-break-after: always !important;
  }

  body.covh-printable-document .covh-print-sheet:last-child,
  body.printing-covh-flyer .covh-print-sheet:last-child {
    break-after: auto !important;
    page-break-after: auto !important;
  }

  body.covh-printable-document .covh-print-sheet > .covh-pamphlet-page,
  body.printing-covh-flyer .covh-print-sheet > .covh-pamphlet-page {
    display: block !important;
    width: 8.5in !important;
    height: 11in !important;
    min-width: 8.5in !important;
    min-height: 11in !important;
    max-width: 8.5in !important;
    max-height: 11in !important;
    overflow: hidden !important;
    break-after: auto !important;
    page-break-after: auto !important;
  }

  body.covh-printable-document .covh-page-inner,
  body.printing-covh-flyer .covh-page-inner {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 22px 24px 24px !important;
  }

  body.covh-printable-document .covh-page-one-grid,
  body.printing-covh-flyer .covh-page-one-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    gap: 14px !important;
    align-items: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.covh-printable-document .covh-page-one-footer,
  body.printing-covh-flyer .covh-page-one-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 14px !important;
    overflow: visible !important;
  }

  body.covh-printable-document .covh-banner-copy-block,
  body.printing-covh-flyer .covh-banner-copy-block {
    display: block !important;
    width: min(100%, 5.75in) !important;
    min-width: 0 !important;
    max-width: 5.75in !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.covh-printable-document .covh-footer-layout,
  body.printing-covh-flyer .covh-footer-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.02fr) 220px minmax(0, 1.08fr) !important;
    grid-template-rows: auto auto !important;
    gap: 14px !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* COVH canonical Letter flyer refactor.
   This block intentionally lives last so the website preview, printable view,
   and browser print all resolve to the same two 8.5in x 11in sheets. */
.covh-print-root[data-covh-print-root],
body.covh-printable-document .covh-print-root[data-covh-print-root] {
  box-sizing: border-box;
  display: block;
  width: 8.5in;
  max-width: none;
  margin: 0;
  color: #171717;
}

.covh-flyer-screen-shell {
  overflow-x: auto;
}

.covh-preview-shell,
.covh-print-root[data-covh-print-root] > .covh-preview-shell {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 8.5in;
  gap: 20px;
  width: 8.5in;
  max-width: none;
  margin: 0;
}

.covh-print-sheet,
.covh-preview-shell > .covh-print-sheet,
.covh-print-sheet > .covh-pamphlet-page {
  box-sizing: border-box;
  display: block;
  width: 8.5in;
  height: 11in;
  min-width: 8.5in;
  min-height: 11in;
  max-width: 8.5in;
  max-height: 11in;
  margin: 0;
  overflow: hidden;
}

.covh-pamphlet-page {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  color: #171717;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.covh-pamphlet-page > .covh-page-inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 22px 24px 24px;
}

.covh-pamphlet-page--page1 > .covh-page-inner {
  display: flex;
  flex-direction: column;
}

.covh-pamphlet-page--page2 > .covh-page-inner {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.covh-pamphlet-page .covh-page-one-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.covh-pamphlet-page .covh-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.95fr);
  gap: 14px;
  min-height: 0;
  margin: 0;
}

.covh-pamphlet-page .covh-footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) 220px minmax(0, 1.08fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "thanks qr art"
    "sponsors qr art";
  gap: 14px;
  align-items: stretch;
}

.covh-banner--integrated .covh-banner-art-strip {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

/* COVH final flyer finish: authoritative shared layout for website preview, printable popup, and PDF. */
.covh-print-root[data-covh-print-root],
.covh-preview-shell,
.covh-print-sheet,
.covh-print-sheet > .covh-pamphlet-page {
  box-sizing: border-box;
}

.covh-print-sheet,
.covh-print-sheet > .covh-pamphlet-page {
  width: 8.5in;
  height: 11in;
  min-width: 8.5in;
  min-height: 11in;
  max-width: 8.5in;
  max-height: 11in;
  margin: 0;
  overflow: hidden;
}

.covh-pamphlet-page > .covh-page-inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.16in 0.18in 0.17in;
}

.covh-pamphlet-page--page1 > .covh-page-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.055in;
  height: 100%;
}

.covh-pamphlet-page--page1 .covh-banner--integrated {
  height: 1.55in;
  min-height: 1.55in;
  max-height: 1.55in;
  margin: 0;
}

.covh-banner--integrated .covh-banner-art-strip {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.covh-banner--integrated .covh-banner-copy-overlay {
  padding-left: 1.75in;
  padding-right: 1.05in;
}

.covh-banner--integrated .covh-banner-copy-block {
  max-width: 5.7in;
  margin-left: auto;
  margin-right: auto;
  transform: translateX(0.12in);
}

.covh-banner-title-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 3pt;
  white-space: nowrap;
  text-wrap: normal;
}

.covh-banner-annual-label,
.covh-banner-title {
  flex: 0 0 auto;
  font-size: 19pt;
  line-height: 1.05;
  white-space: nowrap;
}

.covh-pamphlet-page--page1 .covh-banner-date,
.covh-pamphlet-page--page1 .covh-banner-location-line {
  font-size: 7.6pt;
  line-height: 1.03;
}

.covh-pamphlet-page--page1 .covh-page-one-grid {
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.18in minmax(0, 1fr);
  gap: 0.08in;
  align-items: start;
  align-content: start;
  margin: 0;
}

.covh-pamphlet-page--page1 .covh-column,
.covh-pamphlet-page--page1 .covh-column-stacked {
  gap: 0.035in;
}

.covh-list-item,
.covh-regional-block {
  padding: 0.022in 0.04in;
}

.covh-item-title-line,
.covh-item-title-line h4,
.covh-regional-name,
.covh-item-number {
  font-size: 6.9pt;
  line-height: 1.03;
}

.covh-item-meta,
.covh-regional-meta {
  font-size: 5.85pt;
  line-height: 1.03;
  margin-top: 0.005in;
  margin-bottom: 0.006in;
}

.covh-list-item p,
.covh-regional-item p {
  font-size: 5.8pt;
  line-height: 1.055;
  margin-top: 0.004in;
}

.covh-key-card,
.covh-key-card * {
  font-size: 5.9pt;
  line-height: 1.08;
}

.covh-page-one-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.035in;
  margin: 0;
  padding: 0;
}

.covh-page-one-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.035in;
  width: 100%;
}

.covh-page-one-footer-callout {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0.032in 0.06in;
  font-size: 5.8pt;
  line-height: 1.05;
  text-align: center;
}

.covh-pamphlet-page--page2 > .covh-page-inner {
  display: grid;
  grid-template-rows: 5.45in minmax(0, 1fr);
  gap: 0.08in;
  height: 100%;
}

.covh-pamphlet-page--page2 .covh-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.95fr);
  gap: 0.10in;
  min-height: 0;
  height: 100%;
  margin: 0;
}

.covh-main-map,
.covh-regional-map-image {
  object-fit: contain;
  object-position: center center;
}

.covh-pamphlet-page--page2 .covh-footer-layout {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1.18fr) 1.12in minmax(0, 1.22fr);
  grid-template-rows: minmax(0, 1.55fr) minmax(0, 0.45fr);
  grid-template-areas:
    "thanks qr art"
    "sponsors qr art";
  gap: 0.08in;
  align-items: stretch;
  overflow: hidden;
}

.covh-thanks-block { grid-area: thanks; }
.covh-sponsor-block { grid-area: sponsors; }
.covh-qr-block { grid-area: qr; }
.covh-art-block { grid-area: art; }

.covh-thanks-block {
  min-height: 0;
  overflow: hidden;
  padding: 0.06in 0.075in;
}

.covh-thanks-block .covh-script-heading {
  font-size: 11.5pt;
  line-height: 1.05;
  margin: 0 0 0.025in;
}

.covh-thanks-block p,
.covh-benefactor-list,
.covh-benefactor-list li {
  font-size: 6.8pt;
  line-height: 1.08;
}

.covh-sponsor-block {
  min-height: 0;
  overflow: hidden;
  padding: 0.045in 0.075in;
}

.covh-sponsor-block .covh-script-heading {
  font-size: 11pt;
  line-height: 1.05;
  margin: 0 0 0.025in;
}

.covh-sponsor-list,
.covh-sponsor-list li {
  font-size: 6.6pt;
  line-height: 1.08;
}

.covh-qr-block {
  min-height: 0;
  overflow: hidden;
  padding: 0.06in 0.04in;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.covh-qr-title {
  font-size: 8.2pt;
  line-height: 1.03;
  text-align: center;
  margin: 0 0 0.07in;
}

.covh-qr-image {
  width: 1.0in;
  max-width: 1.0in;
  height: auto;
}

.covh-art-block {
  min-height: 0;
  overflow: hidden;
  padding: 0.06in 0.08in 0.035in;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.covh-footer-lines,
.covh-footer-lines > div {
  font-size: 10pt;
  line-height: 1.14;
  max-width: none;
}

.covh-art-image {
  max-height: 46%;
  width: auto;
  max-width: 94%;
  object-fit: contain;
  object-position: right bottom;
  align-self: flex-end;
}

@media print {
  @page {
    size: 8.5in 11in;
    margin: 0;
  }

  html,
  body,
  body.covh-printable-document {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body.covh-printable-document,
  body.covh-printable-document *,
  body.printing-covh-flyer,
  body.printing-covh-flyer * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.covh-printable-document .covh-print-toolbar,
  body.covh-printable-document [data-no-print],
  body.printing-covh-flyer .covh-print-toolbar,
  body.printing-covh-flyer [data-no-print] {
    display: none !important;
  }

  body.covh-printable-document .covh-print-document-root,
  body.printing-covh-flyer .covh-flyer-screen-shell,
  body.printing-covh-flyer .flyer-card,
  body.printing-covh-flyer #flyer-panel,
  body.printing-covh-flyer main {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  body.covh-printable-document .covh-print-root[data-covh-print-root],
  body.printing-covh-flyer .covh-print-root[data-covh-print-root],
  body.covh-printable-document .covh-preview-shell,
  body.printing-covh-flyer .covh-preview-shell {
    width: 8.5in !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: visible !important;
  }

  body.covh-printable-document .covh-print-sheet,
  body.printing-covh-flyer .covh-print-sheet {
    break-after: page !important;
    page-break-after: always !important;
  }

  body.covh-printable-document .covh-print-sheet:last-child,
  body.printing-covh-flyer .covh-print-sheet:last-child {
    break-after: auto !important;
    page-break-after: auto !important;
  }
}

/* COVH print parity lock: repeats canonical metrics only to neutralize older print-only !important rules. */
@media print {
  body.covh-printable-document .covh-pamphlet-page > .covh-page-inner,
  body.printing-covh-flyer .covh-pamphlet-page > .covh-page-inner {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0.16in 0.18in 0.17in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page1 > .covh-page-inner,
  body.printing-covh-flyer .covh-pamphlet-page--page1 > .covh-page-inner {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 0.055in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page1 .covh-banner--integrated,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner--integrated {
    height: 1.55in !important;
    min-height: 1.55in !important;
    max-height: 1.55in !important;
    margin: 0 !important;
  }

  body.covh-printable-document .covh-banner--integrated .covh-banner-copy-overlay,
  body.printing-covh-flyer .covh-banner--integrated .covh-banner-copy-overlay {
    padding-left: 1.75in !important;
    padding-right: 1.05in !important;
  }

  body.covh-printable-document .covh-banner--integrated .covh-banner-copy-block,
  body.printing-covh-flyer .covh-banner--integrated .covh-banner-copy-block {
    transform: translateX(0.12in) !important;
  }

  body.covh-printable-document .covh-banner-annual-label,
  body.covh-printable-document .covh-banner-title,
  body.printing-covh-flyer .covh-banner-annual-label,
  body.printing-covh-flyer .covh-banner-title {
    font-size: 19pt !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page1 .covh-page-one-grid,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 1.18in minmax(0, 1fr) !important;
    gap: 0.08in !important;
    height: 100% !important;
    align-content: start !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-page-one-footer,
  body.printing-covh-flyer .covh-page-one-footer {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0.035in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 > .covh-page-inner,
  body.printing-covh-flyer .covh-pamphlet-page--page2 > .covh-page-inner {
    display: grid !important;
    grid-template-rows: 5.45in minmax(0, 1fr) !important;
    gap: 0.08in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-layout,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.95fr) !important;
    gap: 0.10in !important;
    height: 100% !important;
    margin: 0 !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-footer-layout,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-footer-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.18fr) 1.12in minmax(0, 1.22fr) !important;
    grid-template-rows: minmax(0, 1.55fr) minmax(0, 0.45fr) !important;
    grid-template-areas:
      "thanks qr art"
      "sponsors qr art" !important;
    gap: 0.08in !important;
    height: 100% !important;
    overflow: hidden !important;
  }
}

/* COVH print/PDF-only flyer balance pass: keep screen and Open Printable View unchanged. */
@media print {
  body.covh-printable-document .covh-pamphlet-page--page1 > .covh-page-inner,
  body.printing-covh-flyer .covh-pamphlet-page--page1 > .covh-page-inner {
    grid-template-rows: auto auto auto !important;
    align-content: start !important;
    gap: 0.075in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page1 .covh-page-one-grid,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-page-one-grid {
    height: auto !important;
    align-self: start !important;
    overflow: visible !important;
  }

  body.covh-printable-document .covh-page-one-footer,
  body.printing-covh-flyer .covh-page-one-footer {
    margin-top: 0.03in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 > .covh-page-inner,
  body.printing-covh-flyer .covh-pamphlet-page--page2 > .covh-page-inner {
    grid-template-rows: 5.18in minmax(0, 1fr) !important;
    gap: 0.08in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-main-card,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-main-card {
    justify-content: flex-start !important;
    padding: 0.06in !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-tag,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-tag {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 0.045in !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--covh-green, #285f2b) !important;
    font-size: 9pt !important;
    line-height: 1 !important;
    letter-spacing: 0.08em !important;
    text-align: center !important;
    text-transform: uppercase !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-main-map,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-main-map {
    flex: 0 1 auto !important;
    height: auto !important;
    max-height: calc(100% - 0.19in) !important;
    object-fit: contain !important;
    object-position: center top !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-footer-layout,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-footer-layout {
    grid-template-columns: minmax(0, 1.22fr) 1.12in minmax(0, 1.18fr) !important;
    grid-template-rows: 1.68in minmax(0, 1fr) !important;
    grid-template-areas:
      "thanks qr art"
      "sponsors qr ." !important;
    align-items: stretch !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-thanks-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block {
    padding: 0.045in 0.065in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-thanks-block .covh-script-heading,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block .covh-script-heading {
    font-size: 10.2pt !important;
    margin-bottom: 0.018in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-thanks-block p,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-benefactor-list,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-benefactor-list li,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block p,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-benefactor-list,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-benefactor-list li {
    font-size: 6.35pt !important;
    line-height: 1.04 !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-sponsor-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-sponsor-block {
    padding: 0.055in 0.07in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-art-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-art-block {
    align-self: start !important;
    height: 1.68in !important;
    min-height: 0 !important;
    padding: 0.05in 0.065in 0.035in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-footer-lines,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-footer-lines > div,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-footer-lines,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-footer-lines > div {
    font-size: 9.4pt !important;
    line-height: 1.08 !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-art-image,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-art-image {
    max-height: 0.64in !important;
    object-fit: contain !important;
  }
}

/* COVH Print / Save PDF page 2 measured layout: final authoritative override. */
@media print {
  body.covh-printable-document .covh-pamphlet-page--page2,
  body.printing-covh-flyer .covh-pamphlet-page--page2 {
    position: relative !important;
    width: 8.5in !important;
    height: 11in !important;
    min-height: 11in !important;
    max-height: 11in !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 > .covh-page-inner,
  body.printing-covh-flyer .covh-pamphlet-page--page2 > .covh-page-inner {
    position: relative !important;
    display: block !important;
    width: 8.5in !important;
    height: 11in !important;
    min-height: 11in !important;
    max-height: 11in !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-layout,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-footer-layout,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-stack,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-layout,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-footer-layout,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-stack {
    display: contents !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-main-card,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-main-card {
    position: absolute !important;
    left: 0.20in !important;
    top: 0.20in !important;
    width: 4.95in !important;
    height: 5.00in !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-card--chestnut,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-card--chestnut {
    position: absolute !important;
    left: 5.30in !important;
    top: 0.20in !important;
    width: 3.00in !important;
    height: 1.55in !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-card--elkhart,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-card--elkhart {
    position: absolute !important;
    left: 5.30in !important;
    top: 1.95in !important;
    width: 3.00in !important;
    height: 1.55in !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-card--latham,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-card--latham {
    position: absolute !important;
    left: 5.30in !important;
    top: 3.70in !important;
    width: 3.00in !important;
    height: 1.65in !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-thanks-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block {
    position: absolute !important;
    left: 0.20in !important;
    top: 5.40in !important;
    width: 3.50in !important;
    height: 2.20in !important;
    padding: 0.06in 0.07in !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-sponsor-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-sponsor-block {
    position: absolute !important;
    left: 0.20in !important;
    top: 7.80in !important;
    width: 3.50in !important;
    height: 2.80in !important;
    padding: 0.06in 0.08in !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-qr-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-qr-block {
    position: absolute !important;
    left: 3.85in !important;
    top: 5.40in !important;
    width: 1.25in !important;
    height: 2.05in !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0.06in 0.04in !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-art-block,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-art-block {
    position: absolute !important;
    left: 5.30in !important;
    top: 5.55in !important;
    width: 3.00in !important;
    height: 5.05in !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0.06in 0.08in 0.04in !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-main-map,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-regional-map-image,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-main-map,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-regional-map-image {
    width: 100% !important;
    object-fit: contain !important;
    object-position: top center !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-main-map,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-main-map {
    height: calc(100% - 0.28in) !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-regional-map-image,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-regional-map-image {
    height: calc(100% - 0.28in) !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-main-card .covh-map-tag,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-map-main-card .covh-map-tag {
    position: static !important;
    display: block !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 0 0.035in 0 !important;
    margin: 0 !important;
    font-size: 0.84rem !important;
    line-height: normal !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    color: #36523c !important;
    text-align: left !important;
    text-transform: uppercase !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-thanks-block .covh-script-heading,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block .covh-script-heading {
    font-size: 10.5pt !important;
    line-height: 1.05 !important;
    margin: 0 0 0.025in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-thanks-block p,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-benefactor-list,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-benefactor-list li,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-thanks-block p,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-benefactor-list,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-benefactor-list li {
    font-size: 6.4pt !important;
    line-height: 1.08 !important;
    margin-top: 0 !important;
    margin-bottom: 0.015in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-sponsor-block .covh-script-heading,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-sponsor-block .covh-script-heading {
    font-size: 10.5pt !important;
    line-height: 1.05 !important;
    margin: 0 0 0.035in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-sponsor-list,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-sponsor-list li,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-sponsor-list,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-sponsor-list li {
    font-size: 8.5pt !important;
    line-height: 1.18 !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-qr-title,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-qr-title {
    font-size: 8pt !important;
    line-height: 1.04 !important;
    text-align: center !important;
    margin: 0 0 0.07in !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-qr-image,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-qr-image {
    width: 1.0in !important;
    max-width: 1.0in !important;
    height: auto !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-footer-lines,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-footer-lines > div,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-footer-lines,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-footer-lines > div {
    font-size: 9.5pt !important;
    line-height: 1.12 !important;
    max-width: none !important;
  }

  body.covh-printable-document .covh-pamphlet-page--page2 .covh-art-image,
  body.printing-covh-flyer .covh-pamphlet-page--page2 .covh-art-image {
    max-height: 2.20in !important;
    width: auto !important;
    max-width: 92% !important;
    object-fit: contain !important;
    align-self: flex-end !important;
  }
}


/* COVH page 1 header text placement: keep the database-driven copy higher in the light banner center. */
.covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-copy-overlay {
  align-items: flex-start;
  padding-top: 0.34in;
}

.covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-copy-block {
  max-width: 4.95in;
  transform: translateX(0.04in);
}

.covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-title,
.covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-annual-label {
  font-size: 15.8pt;
  line-height: 1.02;
}

@media print {
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner--integrated .covh-banner-copy-overlay,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-copy-overlay {
    align-items: flex-start !important;
    padding: 0.12in 1.25in 0 1.50in !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner--integrated .covh-banner-copy-block,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner--integrated .covh-banner-copy-block {
    width: min(100%, 4.95in) !important;
    max-width: 4.95in !important;
    transform: translateX(0.04in) !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-date,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-date {
    margin-bottom: 2.5pt !important;
    font-size: 8pt !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-title,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-annual-label,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-title,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-annual-label {
    font-size: 15.8pt !important;
    line-height: 1.02 !important;
    white-space: nowrap !important;
  }

  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-location-line,
  body.printing-covh-flyer .covh-pamphlet-page--page1 .covh-banner-location-line {
    margin-top: 1.5pt !important;
    font-size: 8.2pt !important;
  }
}

/* COVH screen/open-printable parity with the approved Print / Save PDF layout.
   Screen-only by design: this mirrors print-only final measurements without
   changing browser print or Save PDF output. */
@media screen {
  .covh-print-root[data-covh-print-root] .covh-preview-shell {
    gap: 0.18in;
  }

  .covh-print-root[data-covh-print-root] .covh-print-sheet {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .covh-print-root[data-covh-print-root] .covh-print-sheet--page-one,
  .covh-print-root[data-covh-print-root] .covh-print-sheet--page-one > .covh-pamphlet-page--page1 {
    height: auto;
    min-height: 0;
    max-height: none;
    padding-bottom: 0;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page1 > .covh-page-inner,
  body.covh-printable-document .covh-pamphlet-page--page1 > .covh-page-inner {
    grid-template-rows: auto auto auto;
    align-content: start;
    gap: 0.075in;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page1 .covh-page-one-grid,
  body.covh-printable-document .covh-pamphlet-page--page1 .covh-page-one-grid {
    height: auto;
    align-self: start;
    overflow: visible;
  }

  .covh-print-root[data-covh-print-root] .covh-page-one-footer,
  body.covh-printable-document .covh-page-one-footer {
    margin-top: 0.03in;
  }

  .covh-print-root[data-covh-print-root] .covh-print-sheet--page-one .covh-banner--integrated .covh-banner-copy-overlay,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner--integrated .covh-banner-copy-overlay {
    align-items: flex-start;
    padding: 0.08in 1.25in 0 1.65in;
  }

  .covh-print-root[data-covh-print-root] .covh-print-sheet--page-one .covh-banner--integrated .covh-banner-copy-block,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner--integrated .covh-banner-copy-block {
    width: min(100%, 4.95in);
    max-width: 4.95in;
    transform: translateX(0.04in);
  }

  .covh-print-root[data-covh-print-root] .covh-print-sheet--page-one .covh-banner-date,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-date {
    margin-bottom: 2.5pt;
    font-size: 8pt;
  }

  .covh-print-root[data-covh-print-root] .covh-print-sheet--page-one .covh-banner-title,
  .covh-print-root[data-covh-print-root] .covh-print-sheet--page-one .covh-banner-annual-label,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-title,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-annual-label {
    font-size: 15.8pt;
    line-height: 1.02;
    white-space: nowrap;
  }

  .covh-print-root[data-covh-print-root] .covh-print-sheet--page-one .covh-banner-location-line,
  body.covh-printable-document .covh-print-sheet--page-one .covh-banner-location-line {
    margin-top: 1.5pt;
    font-size: 8.2pt;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2,
  body.covh-printable-document .covh-pamphlet-page--page2 {
    position: relative;
    width: 8.5in;
    height: 11in;
    min-height: 11in;
    max-height: 11in;
    overflow: hidden;
    box-sizing: border-box;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 > .covh-page-inner,
  body.covh-printable-document .covh-pamphlet-page--page2 > .covh-page-inner {
    position: relative;
    display: block;
    width: 8.5in;
    height: 11in;
    min-height: 11in;
    max-height: 11in;
    margin: 0;
    padding: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-map-layout,
  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-footer-layout,
  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-map-stack,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-layout,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-footer-layout,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-stack {
    display: contents;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-map-main-card,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-main-card {
    position: absolute;
    left: 0.20in;
    top: 0.20in;
    width: 4.95in;
    height: 5.00in;
    box-sizing: border-box;
    overflow: hidden;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-map-card--chestnut,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-card--chestnut {
    position: absolute;
    left: 5.30in;
    top: 0.20in;
    width: 3.00in;
    height: 1.55in;
    box-sizing: border-box;
    overflow: hidden;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-map-card--elkhart,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-card--elkhart {
    position: absolute;
    left: 5.30in;
    top: 1.95in;
    width: 3.00in;
    height: 1.55in;
    box-sizing: border-box;
    overflow: hidden;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-map-card--latham,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-card--latham {
    position: absolute;
    left: 5.30in;
    top: 3.70in;
    width: 3.00in;
    height: 1.65in;
    box-sizing: border-box;
    overflow: hidden;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-thanks-block,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-thanks-block {
    position: absolute;
    left: 0.20in;
    top: 5.40in;
    width: 3.50in;
    height: 2.20in;
    padding: 0.06in 0.07in;
    box-sizing: border-box;
    overflow: hidden;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-sponsor-block,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-sponsor-block {
    position: absolute;
    left: 0.20in;
    top: 7.80in;
    width: 3.50in;
    height: 2.80in;
    padding: 0.06in 0.08in;
    box-sizing: border-box;
    overflow: hidden;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-qr-block,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-qr-block {
    position: absolute;
    left: 3.85in;
    top: 5.40in;
    width: 1.25in;
    height: 2.05in;
    min-height: 0;
    max-height: none;
    padding: 0.06in 0.04in;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow: hidden;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-art-block,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-art-block {
    position: absolute;
    left: 5.30in;
    top: 5.55in;
    width: 3.00in;
    height: 5.05in;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.06in 0.08in 0.04in;
    box-sizing: border-box;
    overflow: hidden;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-main-map,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-main-map {
    width: 100%;
    height: calc(100% - 0.28in);
    object-fit: contain;
    object-position: top center;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-regional-map-image,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-regional-map-image {
    width: 100%;
    height: calc(100% - 0.28in);
    object-fit: contain;
    object-position: top center;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-map-main-card .covh-map-tag,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-map-main-card .covh-map-tag {
    position: static;
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0.035in 0;
    margin: 0;
    font-size: 0.84rem;
    line-height: normal;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #36523c;
    text-align: left;
    text-transform: uppercase;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-thanks-block .covh-script-heading,
  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-sponsor-block .covh-script-heading,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-thanks-block .covh-script-heading,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-sponsor-block .covh-script-heading {
    font-size: 10.5pt;
    line-height: 1.05;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-thanks-block .covh-script-heading,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-thanks-block .covh-script-heading {
    margin: 0 0 0.025in;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-sponsor-block .covh-script-heading,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-sponsor-block .covh-script-heading {
    margin: 0 0 0.035in;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-thanks-block p,
  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-benefactor-list,
  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-benefactor-list li,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-thanks-block p,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-benefactor-list,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-benefactor-list li {
    font-size: 6.4pt;
    line-height: 1.08;
    margin-top: 0;
    margin-bottom: 0.015in;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-sponsor-list,
  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-sponsor-list li,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-sponsor-list,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-sponsor-list li {
    font-size: 8.5pt;
    line-height: 1.18;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-qr-title,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-qr-title {
    font-size: 8pt;
    line-height: 1.04;
    text-align: center;
    margin: 0 0 0.07in;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-qr-image,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-qr-image {
    width: 1.0in;
    max-width: 1.0in;
    height: auto;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-footer-lines,
  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-footer-lines > div,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-footer-lines,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-footer-lines > div {
    font-size: 9.5pt;
    line-height: 1.12;
    max-width: none;
  }

  .covh-print-root[data-covh-print-root] .covh-pamphlet-page--page2 .covh-art-image,
  body.covh-printable-document .covh-pamphlet-page--page2 .covh-art-image {
    max-height: 2.20in;
    width: auto;
    max-width: 92%;
    object-fit: contain;
    align-self: flex-end;
  }
}
/* Final COVH page 1 header text position override.
   This must stay at the very bottom of styles.css.
   It controls both screen/open-printable and actual Print/PDF. */

/* Website / Open Printable View screen rendering */
.covh-print-root[data-covh-print-root]
  .covh-print-sheet--page-one
  .covh-banner--integrated
  .covh-banner-copy-overlay,
.covh-pamphlet-page--page1
  .covh-banner--integrated
  .covh-banner-copy-overlay {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  padding: 0.10in 1.25in 0 1.50in !important;
}

/* Actual Print / Save PDF rendering */
@media print {
  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner--integrated
    .covh-banner-copy-overlay,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner--integrated
    .covh-banner-copy-overlay {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 0.10in 1.25in 0 1.50in !important;
  }
}

/* Move the inner text block slightly left.
   This affects both screen and print contexts. */
.covh-print-root[data-covh-print-root]
  .covh-print-sheet--page-one
  .covh-banner--integrated
  .covh-banner-copy-block,
.covh-pamphlet-page--page1
  .covh-banner--integrated
  .covh-banner-copy-block {
  width: min(100%, 4.95in) !important;
  max-width: 4.95in !important;
  transform: translateX(-0.10in) !important;
}

@media print {
  body.covh-printable-document
    .covh-print-sheet--page-one
    .covh-banner--integrated
    .covh-banner-copy-block,
  body.printing-covh-flyer
    .covh-pamphlet-page--page1
    .covh-banner--integrated
    .covh-banner-copy-block {
    width: min(100%, 4.95in) !important;
    max-width: 4.95in !important;
    transform: translateX(-0.10in) !important;
  }
}

/* Submit event wizard */
.submit-event-wizard { gap: 16px; }
.wizard-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.wizard-steps li { padding: 8px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 0.78rem; text-align: center; background: rgba(255,255,255,0.5); }
.wizard-steps li.active { color: var(--text); background: var(--accent-soft); border-color: var(--accent); font-weight: 700; }
.wizard-panel { display: flex; flex-direction: column; gap: 12px; }
.wizard-panel-body { display: flex; flex-direction: column; gap: 12px; }
.wizard-error { min-height: 1.25rem; color: #b42318; font-weight: 700; }
.compact-time-button { width: 100%; text-align: left; }
.compact-time-picker { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel-strong); }
.review-row { display: grid; grid-template-columns: minmax(110px, 0.35fr) 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
@media (max-width: 720px) { .wizard-steps { grid-template-columns: 1fr; } .compact-time-picker, .review-row { grid-template-columns: 1fr; } }

/* Mt. Pulaski Halloween guide */
.collection-guide-mt-pulaski-halloween .collection-guide-hero {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 45%, #f5d0fe 100%);
  border-color: rgba(194, 65, 12, 0.22);
}
.halloween-guide-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.halloween-guide-card { width: 100%; max-width: 100%; min-width: 0; overflow-wrap: anywhere; background: var(--card-bg, #fff); border: 1px solid rgba(194,65,12,.18); border-radius: 18px; padding: 1rem; box-shadow: 0 10px 28px rgba(124,45,18,.08); }
.halloween-contest { grid-column: span 2; background: linear-gradient(180deg, #fff7ed, #fff); }
.halloween-info-list { display: grid; gap: .65rem; margin: .75rem 0 0; }
.halloween-info-list div { border-top: 1px solid rgba(15,23,42,.08); padding-top: .55rem; }
.halloween-info-list dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #9a3412; }
.halloween-info-list dd { margin: .15rem 0 0; }
.halloween-vote-form label { display: grid; gap: .35rem; margin-bottom: .8rem; font-weight: 700; }
.halloween-vote-form input, .halloween-vote-form textarea, .halloween-vote-form select { width: 100%; border: 1px solid rgba(15,23,42,.18); border-radius: 12px; padding: .7rem; font: inherit; }
.halloween-standings { display: grid; gap: .5rem; padding-left: 1.4rem; }
.halloween-standings li { padding: .45rem .6rem; background: rgba(251,146,60,.12); border-radius: 12px; }
.halloween-standings li strong { float: right; }
@media (max-width: 640px) { .halloween-contest { grid-column: auto; } .form-grid.two-up { grid-template-columns: 1fr; } }

/* Mt. Pulaski Halloween guide tab layout */
.halloween-guide-section {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.halloween-guide-find-section {
  display: grid;
  gap: .8rem;
  min-width: 0;
}

.halloween-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.halloween-night-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.halloween-overview-card {
  align-content: start;
  display: grid;
  gap: .65rem;
}

.halloween-overview-card .secondary-button {
  justify-self: start;
}

.collection-guide-mt-pulaski-halloween .halloween-contest {
  grid-column: auto;
}

@media (max-width: 760px) {
  .halloween-overview-grid,
  .halloween-night-grid {
    grid-template-columns: 1fr;
  }
}

.halloween-trunk-or-treat-card {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.halloween-guide-image-wrap {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(194, 65, 12, 0.22);
  background: #fff7ed;
}

.halloween-guide-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.halloween-night-heading {
  min-width: 0;
}

.halloween-night-heading h4 {
  margin: .1rem 0 .35rem;
}

.halloween-night-heading .subtle {
  margin: 0;
}

.halloween-night-timeline {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.halloween-night-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.halloween-night-card__image {
  width: 100%;
}

.halloween-night-card__body {
  min-width: 0;
}

.halloween-night-card__body h4 {
  margin-top: 0;
}

.halloween-night-card__meta {
  margin-top: .6rem;
}

.halloween-night-card__description {
  margin: .9rem 0 0;
}

.halloween-night-card__notes {
  display: grid;
  gap: .55rem;
  margin: .9rem 0 0;
}

.halloween-night-card__notes div {
  min-width: 0;
  padding: .7rem .8rem;
  border-radius: 12px;
  background: rgba(255, 237, 213, .7);
}

.halloween-night-card__notes dt {
  color: #9a3412;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.halloween-night-card__notes dd {
  margin: .2rem 0 0;
  overflow-wrap: anywhere;
}

@media (min-width: 700px) {
  .halloween-night-card {
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    align-items: start;
  }
}

.halloween-trunk-or-treat-copy {
  display: grid;
  gap: .65rem;
}

@media (max-width: 760px) {
  .halloween-trunk-or-treat-card {
    grid-template-columns: 1fr;
  }
}


.halloween-contest-intro-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
}
.halloween-contest-intro-row p {
  flex: 1 1 min(100%, 280px);
  min-width: 0;
  margin: 0;
}
.halloween-contest-intro-row [data-halloween-contest-submit-action] {
  display: inline-flex;
  align-items: center;
}
.halloween-contest-submit-toggle {
  white-space: normal;
  overflow-wrap: anywhere;
}
.halloween-contest-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  gap: 1rem;
  align-items: start;
  justify-content: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.halloween-contest-entry-card {
  width: 100%;
  max-width: 340px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: var(--card-bg, #fff);
}

.halloween-contest-entry-card.is-voted {
  border: 3px solid #f97316;
  box-shadow: 0 0 0 2px #111827, 0 0 0 5px rgba(249, 115, 22, 0.35);
}
.halloween-contest-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
}
.halloween-contest-entry-meta h5 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.halloween-contest-vote-count,
.halloween-contest-voted-label {
  font-weight: 800;
  color: #c2410c;
  white-space: normal;
  overflow-wrap: anywhere;
}
.halloween-contest-voted-label {
  justify-self: start;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: rgba(249, 115, 22, 0.12);
}
.halloween-contest-vote-button { justify-self: start; }
.halloween-contest-vote-notice { margin: 0 0 0.75rem; }
.halloween-contest-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.halloween-contest-entry-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}
.halloween-contest-entry-card__body,
.halloween-contest-submission-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}
.halloween-contest-submission-form input,
.halloween-contest-submission-form textarea {
  width: 100%;
  box-sizing: border-box;
}
.halloween-contest-preview-image {
  display: block;
  width: auto;
  max-width: min(100%, 900px);
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .halloween-contest-gallery {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .halloween-contest-entry-card {
    max-width: 100%;
    margin-inline: 0;
  }
  .halloween-contest-entry-image {
    height: 210px;
  }
}
.success-state {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

/* Canonical public-screen tokens shared by static and dynamically rendered UI. */
:root { color-scheme: light; --surface-control: #fff; --surface-overlay: rgba(15, 23, 42, .72); --text-on-accent: #fff; --focus-ring: #2563eb; }
html[data-theme="dark"] { color-scheme: dark; }
body.theme-dark { --surface-control: #101928; --surface-overlay: rgba(2, 6, 23, .78); --text-on-accent: #fff; --focus-ring: #9cc2ff; }
body.theme-dark .location-group-pill { background: var(--panel-strong); border-color: var(--border); color: var(--text); }
body.theme-dark .map-bg { fill: #26364a; }
body.theme-dark .map-street, body.theme-dark .map-slot-label { fill: #f2f6ff; stroke: #0f1724; stroke-width: 1px; paint-order: stroke; }
body.theme-dark .slot-vendor, body.theme-dark .slot-kids { fill: #1c2a3d; stroke: #f0b8c1; }
body.theme-dark .modal-overlay, body.theme-dark .modal-backdrop { background: var(--surface-overlay); }
body.theme-dark input, body.theme-dark textarea, body.theme-dark select { color-scheme: dark; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
@media print { html, body { color-scheme: light !important; } }
