/* App-specific styles (extends theme.css for interior pages) */

/* ========== NAV ========== */
.app-body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 22, 40, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link:hover { color: var(--fg); }

.nav-link-active { color: var(--fg); font-weight: 600; }
.nav-link-active:hover { color: var(--fg); }

.nav-link-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.nav-link-primary:hover {
  background: #e8a84e;
  color: var(--bg);
  transform: translateY(-1px);
}

.nav-link-ical {
  color: var(--fg-muted);
}

/* ========== MAIN / FOOTER ========== */
.app-main {
  flex: 1;
}

.app-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ========== PAGE HEADER ========== */
.page-header {
  padding: 3rem 2rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--fg-muted);
  font-size: 1rem;
}

/* ========== CATEGORY FILTER BAR ========== */
.filter-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sort-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg);
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-right: 0.5rem;
}

.date-range-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.date-range-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--fg-muted);
  font-size: 0.75rem;
}

.date-range-field input {
  min-width: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
#clear-all-filters[hidden] { display: none; }
.filter-btn:hover { border-color: var(--accent); color: var(--fg); }
.filter-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }

/* per-category active colors */
.filter-btn.active[data-cat="sports"]      { background: var(--accent-sky);      border-color: var(--accent-sky);      color: #0a1a24; }
.filter-btn.active[data-cat="arts"]        { background: var(--accent-lavender);  border-color: var(--accent-lavender); color: #130a24; }
.filter-btn.active[data-cat="food"]        { background: var(--accent-warm);      border-color: var(--accent-warm);     color: #24180a; }
.filter-btn.active[data-cat="outdoors"]    { background: #6BE8A8; border-color: #6BE8A8; color: #0a240f; }
.filter-btn.active[data-cat="kids"]        { background: #E8D26B; border-color: #E8D26B; color: #24200a; }
.filter-btn.active[data-cat="fundraisers"] { background: var(--accent-rose);      border-color: var(--accent-rose);     color: #240a12; }

/* ========== SEARCH BAR ========== */
.search-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 1rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.category-dropdown {
  flex-shrink: 0;
}

.town-dropdown {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.search-bar .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  pointer-events: none;
}

#event-search {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
#event-search::placeholder { color: var(--fg-muted); opacity: 0.7; }
#event-search:focus { border-color: var(--accent); }

#search-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  border-radius: 100px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}
#search-clear:hover { color: var(--fg); background: rgba(255,255,255,0.06); }

.search-bar.search-loading #event-search { opacity: 0.7; }

.search-summary {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 0.5rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.search-summary .clear-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.4rem;
}
.search-summary .clear-link:hover { text-decoration: underline; }

/* ========== EVENT CARDS ========== */
.events-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.event-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  color: inherit;
}

.event-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.event-card-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.event-card-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid;
}

.event-card-town {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--fg-muted);
}

.cat-sports     { color: var(--accent-sky);     border-color: rgba(107,200,232,0.3); background: rgba(107,200,232,0.08); }
.cat-arts       { color: var(--accent-lavender); border-color: rgba(176,138,232,0.3); background: rgba(176,138,232,0.08); }
.cat-food       { color: var(--accent-warm);     border-color: rgba(232,169,75,0.3);  background: rgba(232,169,75,0.08); }
.cat-community  { color: var(--accent);          border-color: rgba(212,149,58,0.3); background: rgba(212,149,58,0.08); }
.cat-outdoors   { color: #6BE8A8; border-color: rgba(107,232,168,0.3); background: rgba(107,232,168,0.08); }
.cat-kids       { color: #E8D26B; border-color: rgba(232,210,107,0.3); background: rgba(232,210,107,0.08); }
.cat-fundraisers { color: var(--accent-rose);    border-color: rgba(232,107,138,0.3); background: rgba(232,107,138,0.08); }

.event-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.event-card-location {
  font-size: 0.85rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.related-events { margin-top: 2rem; }
.related-heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--fg);
}
.related-grid {
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.related-grid .event-card { padding: 1rem; }
.related-grid .event-card-photo { margin: -1rem -1rem 0.75rem; }
.related-grid .event-card h3 { font-size: 1rem; }

.event-card-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Submitter attribution on event cards */
.event-card-submitter {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.35rem;
  opacity: 0.75;
}

/* "New this week" gold pill */
.new-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6500;
  background: rgba(232, 200, 90, 0.15);
  border: 1px solid rgba(232, 200, 90, 0.35);
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #6BE8A8;
  background: rgba(107, 232, 168, 0.1);
  border: 1px solid rgba(107, 232, 168, 0.3);
  vertical-align: middle;
  white-space: nowrap;
}
.verified-badge svg { color: #6BE8A8; }

.empty-state {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--fg-muted);
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.browse-empty-state p {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  overflow-wrap: anywhere;
}
.browse-empty-state .btn-primary {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  justify-content: center;
}

/* ========== SPONSOR BANNER ========== */
.sponsor-banner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.sponsor-banner-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  background: rgba(232, 200, 90, 0.06);
  border: 1px solid rgba(232, 200, 90, 0.25);
  border-left: 3px solid rgba(232, 200, 90, 0.6);
  border-radius: 8px;
}
.sponsor-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8a050;
  background: rgba(232, 200, 90, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid rgba(232, 200, 90, 0.25);
}
.sponsor-name-link {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.sponsor-name-link:hover { color: #c8a050; }
.sponsor-name {
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95rem;
}
.sponsor-cta {
  margin-left: auto;
  color: #c8a050;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s;
}
.sponsor-cta:hover { color: #e0b855; }

/* ========== IMAGE AD BANNER (DB-driven rotating ads) ========== */
.ad-banner-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 0.75rem;
}

.ad-banner-inner {
  position: relative;
  overflow: hidden;
}

/* Each slide is hidden by default; only .ad-slide-active is visible */
.ad-slide {
  display: none;
}
.ad-slide-active {
  display: block;
}

.ad-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(232, 200, 90, 0.06);
  border: 1px solid rgba(232, 200, 90, 0.25);
  border-left: 3px solid rgba(232, 200, 90, 0.6);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.ad-card:hover {
  background: rgba(232, 200, 90, 0.1);
  border-color: rgba(232, 200, 90, 0.5);
  border-left-color: #c8a050;
}

/* 728x90-style banner image — constrained height */
.ad-card-img {
  display: block;
  max-height: 72px;
  max-width: 260px;
  width: auto;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Placeholder when no image uploaded yet */
.ad-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 60px;
  background: rgba(232, 200, 90, 0.12);
  border: 1px dashed rgba(232, 200, 90, 0.35);
  border-radius: 4px;
  flex-shrink: 0;
}
.ad-card-placeholder-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c8a050;
  text-align: center;
  padding: 0 0.5rem;
}

.ad-card-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.ad-sponsored-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8a050;
  background: rgba(232, 200, 90, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  border: 1px solid rgba(232, 200, 90, 0.25);
  flex-shrink: 0;
}

.ad-card-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination dots */
.ad-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.ad-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(232, 200, 90, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.ad-dot-active {
  background: #c8a050;
}
.ad-dot:hover {
  background: rgba(232, 200, 90, 0.5);
}

/* Footer: "Local sponsors" label + "Advertise here" link */
.ad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  padding: 0 0.25rem;
}
.ad-footer-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  opacity: 0.6;
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}
.ad-footer-label:hover { color: #c8a050; opacity: 1; }
.ad-footer-cta {
  font-size: 0.75rem;
  color: #c8a050;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.ad-footer-cta:hover { color: #e0b855; }

/* Detail page: constrain the ad banner inside .detail-page */
.detail-page .ad-banner-wrap {
  padding: 2rem 0 0;
  max-width: 100%;
}

/* ========== SPONSOR DIRECTORY ========== */
.sponsors-intro {
  padding-bottom: 1.5rem;
}
.sponsors-eyebrow,
.sponsor-town-eyebrow {
  color: var(--accent-warm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sponsors-intro p {
  max-width: 620px;
  line-height: 1.65;
}
.sponsors-intro-cta { margin-top: 1.25rem; }

.sponsor-directory {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.sponsor-town-section + .sponsor-town-section { margin-top: 3rem; }
.sponsor-town-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.sponsor-town-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
  margin-top: 0.2rem;
}
.sponsor-town-count {
  color: var(--fg-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.sponsor-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.sponsor-directory-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 220px;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.sponsor-directory-card:hover {
  background: var(--surface-hover);
  border-color: rgba(212, 149, 58, 0.4);
  transform: translateY(-2px);
}
.sponsor-directory-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.sponsor-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  overflow: hidden;
  background: rgba(232, 200, 90, 0.06);
  border: 1px solid rgba(232, 200, 90, 0.2);
  border-radius: 10px;
}
.sponsor-directory-logo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.4rem;
  object-fit: contain;
}
.sponsor-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(232, 200, 90, 0.12);
  color: #c8a050;
}
.sponsor-logo-fallback span {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}
.sponsor-directory-card-heading {
  min-width: 0;
  padding-top: 0.1rem;
}
.sponsor-directory-card-heading h3 {
  margin-top: 0.6rem;
  color: var(--fg);
  font-size: 1.1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.sponsor-tier {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sponsor-tier-monthly {
  color: #c8a050;
  background: rgba(232, 200, 90, 0.1);
}
.sponsor-tier-3month {
  color: #8ed2df;
  background: rgba(107, 200, 232, 0.1);
}
.sponsor-tier-6month {
  color: #d8b5f2;
  background: rgba(176, 138, 232, 0.1);
}
.sponsor-directory-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.sponsor-directory-actions a {
  color: var(--fg-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.15s;
}
.sponsor-directory-actions a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.sponsor-directory-actions a:hover { color: var(--fg); }
.sponsor-directory-actions a:last-child { color: var(--accent-warm); }
.sponsor-directory-actions a:last-child:hover { color: var(--accent); }

.sponsor-town-empty {
  margin-top: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(212, 149, 58, 0.04);
  border: 1px dashed rgba(212, 149, 58, 0.28);
  border-radius: 12px;
}
.sponsor-town-empty-title {
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.sponsor-town-empty p {
  margin: 0.35rem 0 1rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.town-sponsor-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
}
.town-sponsor-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(212, 149, 58, 0.05);
  border: 1px solid rgba(212, 149, 58, 0.25);
  border-radius: 12px;
}
.town-sponsor-cta div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.town-sponsor-cta strong {
  color: var(--fg);
  font-size: 0.95rem;
}
.town-sponsor-cta span {
  color: var(--fg-muted);
  font-size: 0.82rem;
}

/* ========== SPONSOR FAQ ========== */
.sponsor-faq-header {
  padding-bottom: 1.5rem;
}
.sponsor-faq-header h1 {
  max-width: 760px;
}
.sponsor-faq-header p {
  max-width: 660px;
  line-height: 1.65;
}
.sponsor-faq-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.sponsor-faq-list {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}
.sponsor-faq-list-heading {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.sponsor-faq-list-heading h2 {
  margin-top: 0.35rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}
.sponsor-faq-entries {
  border-bottom: 1px solid var(--border);
}
.sponsor-faq-entry {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.sponsor-faq-entry h2 {
  margin-bottom: 0.65rem;
  color: var(--fg);
  font-size: 1.15rem;
  line-height: 1.35;
}
.sponsor-faq-entry p {
  max-width: 650px;
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.sponsor-faq-entry a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.sponsor-faq-entry a:hover {
  text-decoration: underline;
}
.sponsor-faq-number {
  padding-top: 0.15rem;
  color: var(--accent-warm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.sponsor-faq-cta {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.sponsor-faq-cta h2 {
  margin-top: 0.35rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
}
.sponsor-faq-cta p {
  max-width: 560px;
  margin-top: 0.55rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ========== SUBSCRIBE STRIP ========== */
.subscribe-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  margin-bottom: 2rem;
}
.subscribe-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.subscribe-strip p {
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.subscribe-strip a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.subscribe-strip a:hover { text-decoration: underline; }

/* ========== COMMUNITY SIGNAL ========== */
.community-signal {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
}

.community-signal-count {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(212, 149, 58, 0.1);
  border: 1px solid rgba(212, 149, 58, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.community-signal-heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.community-signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.community-signal-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.community-signal-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.community-signal-list a:hover { text-decoration: underline; }

.community-signal-date {
  color: var(--fg-muted);
  font-size: 0.78rem;
  flex-shrink: 0;
}

/* ========== FORM ========== */
.form-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-label span {
  color: var(--accent-rose);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.6;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239B9689' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
.form-select option { background: #152035; }

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 0.35rem;
}

.form-errors {
  background: rgba(232, 107, 138, 0.1);
  border: 1px solid rgba(232, 107, 138, 0.3);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
}
.form-errors ul {
  list-style: none;
  margin: 0;
}
.form-errors li {
  color: var(--accent-rose);
  font-size: 0.9rem;
  padding: 0.2rem 0;
}
.form-errors li::before { content: '→ '; }

.form-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.form-more-details {
  margin: 1rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0;
}
.form-more-details > summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  list-style: none;
}
details > summary::-webkit-details-marker { display: none; }
.form-more-details[open] > summary { color: var(--fg); }
.form-more-details > .form-group,
.form-more-details > .form-row {
  padding-left: 1rem;
  padding-right: 1rem;
}
.form-more-details-count {
  font-weight: 400;
  margin-left: 0.4rem;
  color: var(--fg-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover {
  background: #e8a84e;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--fg-muted);
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--fg-muted); color: var(--fg); }

/* ========== DETAIL PAGE ========== */
.detail-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.detail-back:hover { color: var(--fg); }

.detail-cat {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.detail-meta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: grid;
  gap: 1rem;
}

.detail-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.detail-meta-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-meta-label {
  font-weight: 600;
  color: var(--fg);
}
.detail-meta-val {
  color: var(--fg-muted);
}

.detail-description {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  white-space: pre-wrap;
}

.detail-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
}

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

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--fg-muted);
  padding: 0.5rem 0.95rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.share-btn:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

.share-btn:focus-visible {
  outline: 3px solid var(--accent-sky);
  outline-offset: 3px;
}

.share-btn svg {
  flex-shrink: 0;
}

.save-btn {
  margin-top: 0.5rem;
}

.save-btn[data-saved="true"] {
  color: var(--accent);
  border-color: var(--accent);
}

.save-btn-star {
  font-size: 1.1rem;
  line-height: 1;
  margin-right: 0.2rem;
}

.save-btn-cta {
  opacity: 0.85;
}

.cal-export {
  position: relative;
}
.cal-export-btn {
  gap: 0.4rem;
}
.cal-export-btn[aria-expanded="true"] {
  border-color: var(--fg-muted);
  color: var(--fg);
}
.cal-export-btn:focus-visible,
.cal-export-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cal-chev {
  margin-left: 0.25rem;
  transition: transform 0.15s;
}
.cal-export-btn[aria-expanded="true"] .cal-chev {
  transform: rotate(180deg);
}
.cal-export-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: min(220px, calc(100vw - 2.4rem));
  max-width: min(360px, calc(100vw - 2.4rem));
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.cal-export-menu[hidden] {
  display: none;
}
.cal-export-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--fg);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cal-export-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.success-banner {
  background: rgba(212, 149, 58, 0.1);
  border: 1px solid rgba(212, 149, 58, 0.3);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  color: var(--accent);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.submission-confirmation {
  display: block;
  color: var(--fg);
}
.submission-confirmation h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}
.submission-confirmation p {
  margin: 0;
  color: var(--fg);
  line-height: 1.6;
}
.submission-confirmation .submission-confirmation-action {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ========== VENUE MAP (OpenStreetMap / Leaflet embed on detail page) ========== */
.venue-map-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.venue-map {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.venue-map-link {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-align: right;
}

.venue-map-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.venue-map-link a:hover { text-decoration: underline; }

.venue-map-warning {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 1000;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.35;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.venue-map-warning a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.venue-map-warning a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .venue-map { height: 240px; }
}

/* ========== ADVERTISE PAGE ========== */
.adv-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(232,169,75,0.1);
  border: 1px solid rgba(232,169,75,0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.adv-slots-bar {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 0 2rem;
}
.adv-slots-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.adv-slots-open {
  font-weight: 700;
  color: #6BE8A8;
  font-size: 0.95rem;
}
.adv-slots-full {
  font-weight: 700;
  color: var(--accent-rose);
  font-size: 0.95rem;
}
.adv-slots-detail {
  color: var(--fg-muted);
  font-size: 0.85rem;
}

.adv-tiers-section,
.adv-form-section,
.adv-perks-section {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.adv-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.adv-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.adv-tier-card {
  position: relative;
  cursor: pointer;
  display: block;
}
.adv-tier-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.adv-tier-inner {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.adv-tier-card:hover .adv-tier-inner {
  border-color: rgba(212,149,58,0.4);
}
.adv-tier-card.selected .adv-tier-inner {
  border-color: var(--accent);
  background: rgba(212,149,58,0.06);
  transform: translateY(-2px);
}

.adv-tier-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.adv-tier-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}
.adv-tier-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.adv-tier-billing {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ========== PRICING PAGE TIER CARDS ========== */
.pricing-tier-card {
  display: block;
}
.pricing-tier-card .adv-tier-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
  cursor: default;
  padding: 1.5rem 1.25rem;
}
.pricing-tier-tagline {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 1.1rem;
  line-height: 1.45;
  font-style: italic;
}
.adv-tier-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1 1 auto;
}
.adv-tier-includes li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.adv-tier-includes li:last-child {
  border-bottom: 1px solid var(--border);
}
.adv-tier-includes .incl-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}
.adv-tier-includes .incl-value {
  color: var(--fg);
  line-height: 1.45;
}
.adv-tier-includes .incl-value strong { color: var(--accent); }
.pricing-tier-card .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.adv-form-section .form-page {
  padding: 0;
  max-width: 100%;
}

.adv-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.adv-perk {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.adv-perk-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.adv-perk-title {
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.adv-perk-desc {
  font-size: 0.87rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .nav-inner { padding: 0 1.2rem; }
  .nav-links { gap: 0.75rem; }
  .nav-link-ical span { display: none; }
  .footer-links { flex-wrap: wrap; gap: 0.75rem 1rem; }

  .events-grid { padding: 0 1.2rem 3rem; grid-template-columns: 1fr; }
  .events-grid.related-grid { padding: 0; grid-template-columns: 1fr; }
  .page-header { padding: 2rem 1.2rem 1.5rem; }
  .filter-bar { padding: 0 1.2rem 1.5rem; }
  .search-bar { padding: 0 1.2rem 1rem; flex-wrap: wrap; }
  .search-input-wrap,
  .search-bar-cta { flex: 1 1 100%; }
  .category-dropdown { flex: 1 1 calc(50% - 0.375rem); min-width: 0; }
  .category-dropdown .sort-select { width: 100%; min-width: 0; }
  .town-dropdown .filter-label { margin-right: 0; }
  .town-dropdown .sort-select { flex: 1; }
  .sort-wrap { flex: 1 1 100%; margin-left: 0; }
  .sort-wrap .sort-select { max-width: 100%; min-width: 0; }
  .date-range-filters { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .date-range-field { min-width: 0; align-items: stretch; flex-direction: column; }
  .date-range-field input { width: 100%; }
  .search-bar-cta .btn-primary { width: 100%; justify-content: center; }
  .search-bar .search-icon { left: 0.9rem; }
  #search-clear { right: 0.6rem; }
  .form-page { padding: 0 1.2rem 3rem; }
  .detail-page { padding: 0 1.2rem 3rem; }
  .browse-empty-state { padding-left: 1.2rem; padding-right: 1.2rem; }

  /* Hero — tighter aspect + padding so portrait photos don't dominate */
  .detail-hero { aspect-ratio: 4/3; min-height: 220px; }
  .detail-hero-overlay { padding: 1.2rem 1rem; }
  .detail-back-hero { top: 0.85rem; left: 0.85rem; padding: 0.4rem 0.7rem 0.4rem 0.6rem; font-size: 0.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .subscribe-strip { padding: 1rem 1.2rem; }
  .sponsor-banner { padding: 0 1.2rem; }
  .adv-tiers-grid { grid-template-columns: 1fr; }
  .adv-perks-grid { grid-template-columns: 1fr; }
  .adv-slots-bar { padding: 0 1.2rem; }
  .adv-tiers-section, .adv-form-section, .adv-perks-section { padding: 0 1.2rem; }

  /* Ad banner — mobile adjustments */
  .ad-banner-wrap { padding: 0 1.2rem 0.75rem; }
  .ad-card { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .ad-card-img { max-width: 100%; max-height: 60px; }
  .ad-card-placeholder { width: 100%; }

  /* Sponsor directory — mobile adjustments */
  .sponsor-directory { padding: 0 1.2rem 2.5rem; }
  .sponsor-town-heading { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .sponsor-card-grid { grid-template-columns: 1fr; }
  .sponsor-logo-frame { width: 80px; height: 80px; flex-basis: 80px; }
  .sponsor-directory-actions { align-items: flex-start; flex-direction: column; }
  .town-sponsor-section { padding: 1.5rem 1.2rem 0; }
  .town-sponsor-cta { align-items: stretch; flex-direction: column; }
  .town-sponsor-cta .btn-primary { justify-content: center; }

  /* Sponsor FAQ — mobile adjustments */
  .sponsor-faq-header-actions { align-items: stretch; flex-direction: column; }
  .sponsor-faq-header-actions .btn-primary,
  .sponsor-faq-header-actions .btn-secondary { justify-content: center; }
  .sponsor-faq-list { padding: 0 1.2rem; }
  .sponsor-faq-entry { grid-template-columns: 2.1rem minmax(0, 1fr); gap: 0.7rem; padding: 1.4rem 0; }
  .sponsor-faq-entry h2 { font-size: 1.05rem; }
  .sponsor-faq-entry p { font-size: 0.9rem; line-height: 1.65; }
  .sponsor-faq-cta { align-items: stretch; flex-direction: column; margin: 0 1.2rem 2.5rem; padding: 1.3rem; }
  .sponsor-faq-cta .btn-primary { justify-content: center; }

  /* Subscribe section — mobile */
  .subscribe-section-inner { flex-direction: column; gap: 1.2rem; align-items: stretch; }
  .subscribe-section-form { flex-direction: column; }
  .subscribe-section-cats { grid-template-columns: 1fr 1fr; }
}

/* ========== EMAIL SUBSCRIBE SECTION ========== */
.subscribe-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.subscribe-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.subscribe-section-copy {
  flex: 0 0 260px;
}

.subscribe-section-copy h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.subscribe-section-copy p {
  color: var(--fg-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ── Channel cards (live + coming soon) ── */
.subscribe-channels {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.subscribe-channel {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.subscribe-channel-live {
  background: rgba(212, 149, 58, 0.06);
  border-color: rgba(212, 149, 58, 0.25);
}

.subscribe-channel-pending {
  background: transparent;
  border-color: rgba(154, 144, 128, 0.15);
}

.subscribe-channel-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.subscribe-channel-live .subscribe-channel-icon {
  background: rgba(212, 149, 58, 0.15);
  color: var(--accent);
}

.subscribe-channel-pending .subscribe-channel-icon {
  background: rgba(154, 144, 128, 0.1);
  color: var(--fg-muted);
}

.subscribe-channel-body {
  flex: 1;
  min-width: 0;
}

.subscribe-channel-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.subscribe-channel-body p {
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.subscribe-channel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s;
}
.subscribe-channel-cta:hover { color: #e8a84e; }

/* ── Channel badges ── */
.channel-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  line-height: 1;
}

.channel-badge-live {
  color: #0a2410;
  background: #6BE8A8;
  border: 1px solid rgba(107, 232, 168, 0.4);
}

.channel-badge-soon {
  color: var(--fg-muted);
  background: rgba(154, 144, 128, 0.12);
  border: 1px solid rgba(154, 144, 128, 0.25);
}

/* ── Email capture (coming soon section) ── */
.subscribe-email-future {
  border-top: 1px solid rgba(212, 149, 58, 0.1);
  margin-top: 2rem;
  padding-top: 2rem;
}

.subscribe-email-future-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.subscribe-email-future-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.subscribe-email-future-header p {
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 560px;
}

.subscribe-success {
  background: rgba(212, 149, 58, 0.1);
  border: 1px solid rgba(212, 149, 58, 0.3);
  border-radius: 10px;
  padding: 1.2rem 1.5rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

.subscribe-section-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.subscribe-section-form input[type="email"],
.subscribe-section-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  padding: 0.65rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.subscribe-section-form input:focus {
  border-color: rgba(212, 149, 58, 0.5);
}

.subscribe-section-form input::placeholder {
  color: var(--fg-muted);
}

.subscribe-section-form button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.subscribe-section-form button:hover {
  background: #e8a84e;
  transform: translateY(-1px);
}

.subscribe-section-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.subscribe-cat-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 0.3rem 0;
}

.subscribe-cat-check input[type="checkbox"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.subscribe-cat-check:hover {
  color: var(--fg);
}

/* ========== EVENT PHOTO ========== */
.event-card-photo {
  margin: -1.5rem -1.5rem 1rem;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--surface);
  position: relative;
}
.event-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212,149,58,0.15), rgba(232,107,138,0.12), rgba(107,200,232,0.15));
  font-size: clamp(2.5rem, 6vw, 4rem);
  opacity: 0.7;
}
.event-card-date-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(15, 18, 25, 0.85);
  border: 1px solid rgba(212,149,58,0.35);
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
}

/* ========== DETAIL HERO ========== */
.detail-hero {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 16/9;
  max-height: 520px;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.detail-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* No-photo fallback: gradient placeholder tinted by .cat-<slug> on the hero */
.detail-hero-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,149,58,0.15), rgba(232,107,138,0.12), rgba(107,200,232,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3rem, 8vw, 6rem);
  opacity: 0.7;
  z-index: 0;
}
.detail-hero.cat-sports      .detail-hero-placeholder { background: linear-gradient(135deg, rgba(107,200,232,0.28), rgba(107,200,232,0.08)); }
.detail-hero.cat-arts        .detail-hero-placeholder { background: linear-gradient(135deg, rgba(176,138,232,0.28), rgba(176,138,232,0.08)); }
.detail-hero.cat-food        .detail-hero-placeholder { background: linear-gradient(135deg, rgba(232,169,75,0.28),  rgba(232,169,75,0.08)); }
.detail-hero.cat-community   .detail-hero-placeholder { background: linear-gradient(135deg, rgba(212,149,58,0.28), rgba(212,149,58,0.08)); }
.detail-hero.cat-outdoors    .detail-hero-placeholder { background: linear-gradient(135deg, rgba(107,232,168,0.28), rgba(107,232,168,0.08)); }
.detail-hero.cat-kids        .detail-hero-placeholder { background: linear-gradient(135deg, rgba(232,210,107,0.28), rgba(232,210,107,0.08)); }
.detail-hero.cat-fundraisers .detail-hero-placeholder { background: linear-gradient(135deg, rgba(232,107,138,0.28), rgba(232,107,138,0.08)); }

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,22,40,0.85) 0%, rgba(12,22,40,0.5) 40%, rgba(12,22,40,0) 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  color: var(--fg);
  z-index: 1;
}

.detail-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.15;
  margin: 0.5rem 0 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Category badge lives inside the hero — semi-transparent dark pill so it
   stays legible regardless of photo content. Category-tinted border keeps
   the visual link to the rest of the app. */
.detail-hero .detail-cat {
  color: var(--fg);
  background: rgba(15, 18, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(4px);
  align-self: flex-start;
  display: inline-flex;
}
.detail-hero .detail-cat.cat-sports      { border-color: rgba(107,200,232,0.55); color: var(--accent-sky); }
.detail-hero .detail-cat.cat-arts        { border-color: rgba(176,138,232,0.55); color: var(--accent-lavender); }
.detail-hero .detail-cat.cat-food        { border-color: rgba(232,169,75,0.55);  color: var(--accent-warm); }
.detail-hero .detail-cat.cat-community   { border-color: rgba(212,149,58,0.55); color: var(--accent); }
.detail-hero .detail-cat.cat-outdoors    { border-color: rgba(107,232,168,0.55); color: #6BE8A8; }
.detail-hero .detail-cat.cat-kids        { border-color: rgba(232,210,107,0.55); color: #E8D26B; }
.detail-hero .detail-cat.cat-fundraisers { border-color: rgba(232,107,138,0.55); color: var(--accent-rose); }

/* Back link overlaid on the hero so it stays reachable above the photo.
   Pill style with a translucent dark background keeps it visible regardless
   of the underlying image color. */
.detail-back-hero {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  background: rgba(15, 18, 25, 0.55);
  backdrop-filter: blur(6px);
  color: var(--fg);
  padding: 0.45rem 0.8rem 0.45rem 0.7rem;
  border-radius: 999px;
  margin: 0;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.detail-back-hero:hover {
  background: rgba(15, 18, 25, 0.8);
  color: var(--fg);
}

/* ===== RSVP card on the event detail page ===== */
/* Anonymous "I'm going" CTA. Sits between the meta block and the
   secondary actions so reading order puts commitment before share/save. */
.detail-rsvp-card {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
}

.rsvp-context {
  margin-bottom: 1rem;
}

.rsvp-context-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--fg);
  font-weight: 400;
  line-height: 1.2;
}

.rsvp-context-when {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}

.rsvp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}

.rsvp-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  flex: 1 1 360px;
  min-width: 0;
}

.rsvp-name-label {
  display: none;
}

.rsvp-name-input {
  flex: 1 1 180px;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.rsvp-name-input:focus {
  border-color: var(--accent);
}

.rsvp-form .btn-rsvp {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s;
}

.rsvp-form .btn-rsvp:hover {
  transform: translateY(-1px);
}

.rsvp-form .btn-rsvp:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rsvp-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.rsvp-count-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.rsvp-count-label {
  font-size: 0.95rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.rsvp-thanks {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: rgba(107, 232, 160, 0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 0.92rem;
  font-weight: 500;
}

.rsvp-error {
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: rgba(232, 107, 138, 0.1);
  border: 1px solid var(--accent-rose);
  color: var(--accent-rose);
  font-size: 0.92rem;
}

@media (max-width: 540px) {
  .rsvp-row { gap: 0.75rem; }
  .rsvp-count-num { font-size: 1.9rem; }
}

@media print {
  @page {
    margin: 0.5in;
  }

  body,
  .app-body {
    background: #fff;
    color: #000;
    display: block;
    min-height: 0;
    margin: 0;
  }

  .app-main {
    width: 100%;
    flex: none;
  }

  .app-nav,
  .app-footer,
  .detail-back,
  .detail-rsvp-card,
  .detail-actions,
  .detail-share-row,
  .detail-save-form,
  .venue-map-section,
  .related-events,
  .ad-banner-wrap,
  .sponsor-banner,
  .success-banner {
    display: none !important;
  }

  .detail-hero-img,
  .detail-hero-placeholder {
    display: none !important;
  }

  .detail-hero {
    width: auto;
    max-width: none;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0 0 1.5rem;
    overflow: visible;
    background: #fff;
    display: block;
    isolation: auto;
    border-bottom: 1px solid #000;
  }

  .detail-hero-overlay {
    position: static;
    inset: auto;
    background: transparent;
    display: block;
    padding: 0 0 1rem;
    color: #000;
    z-index: auto;
  }

  .detail-hero .detail-cat,
  .detail-cat {
    color: #000;
    background: transparent;
    border: 1px solid #000;
    border-radius: 0;
    padding: 0.2rem 0.5rem;
    backdrop-filter: none;
  }

  .detail-hero-title,
  .detail-title {
    color: #000;
    text-shadow: none;
    margin-bottom: 0;
    font-size: 2rem;
    line-height: 1.2;
  }

  .detail-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 1rem;
    background: #fff;
    color: #000;
  }

  .detail-meta {
    background: #fff;
    border: 1px solid #000;
    border-radius: 0;
    padding: 1rem;
    margin-bottom: 1.25rem;
    gap: 0.65rem;
    color: #000;
    font-size: 11pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .detail-meta-row {
    color: #000;
  }

  .detail-meta-icon,
  .detail-meta-label,
  .detail-meta-val,
  .detail-description {
    color: #000;
  }

  .detail-description {
    font-size: 11pt;
    line-height: 1.5;
    overflow: visible;
    overflow-wrap: anywhere;
    orphans: 3;
    widows: 3;
  }

  .detail-source-link {
    color: #000;
    overflow-wrap: anywhere;
  }

  .detail-source-link::after {
    content: " (" attr(href) ")";
    font-weight: 400;
    overflow-wrap: anywhere;
  }
}
