@font-face {
  font-family: Archivo;
  src: url('/assets/home/archivo-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/home/jetbrains-mono-variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* Shared tokens: change the design here before adding component overrides. */
:root {
  color-scheme: light dark;
  --paper: #f2f0e9;
  --paper-warm: #ebe7dc;
  --paper-bright: #faf8f3;
  --ink: #151513;
  --accent: #ed4317;
  --accent-ink: #b92d08;
  --cta-bg: #b92d08;
  --cta-bg-hover: #942205;
  --cta-ink: #ffffff;
  --accent-on-active: #ff764e;
  --muted: #55534c;
  --line: #15151333;
  --hover: #e9e6dc;
  --shadow-menu: #15151324;
  --backdrop: #1515138c;
  --promo-bg: #151513;
  --promo-ink: #f2f0e9;
  --promo-border: #f2f0e955;
  --promo-hover: #f2f0e918;
  --selection-bg: #b92d08;
  --selection-ink: #ffffff;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-control: 12px;
  --mono: 'JetBrains Mono', monospace;
  font-family: Archivo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161513;
    --paper-warm: #1f1d1a;
    --paper-bright: #22201d;
    --ink: #f2f0e9;
    --accent: #ff6b42;
    --accent-ink: #ff8562;
    --cta-bg: #ff6b42;
    --cta-bg-hover: #ff8562;
    --cta-ink: #161513;
    --accent-on-active: #b92d08;
    --muted: #b5b1a6;
    --line: #f2f0e938;
    --hover: #2b2925;
    --shadow-menu: #00000073;
    --backdrop: #000000a6;
    --promo-bg: #0e0d0c;
    --promo-ink: #f2f0e9;
    --promo-border: #f2f0e94d;
    --promo-hover: #f2f0e91a;
    --selection-bg: #ff8562;
    --selection-ink: #161513;
  }
}

* { box-sizing: border-box; }
::selection { background: var(--selection-bg); color: var(--selection-ink); }
input, textarea { caret-color: var(--accent-ink); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button:hover, a:hover { text-decoration-thickness: 2px; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 20; padding: 12px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 10px; }

/* Header and editorial opening. */
.site-header { position: relative; padding: 14px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; border-bottom: 1px solid var(--ink); }
.wordmark { font-weight: 800; font-size: 24px; letter-spacing: -.03em; font-stretch: 90%; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.town-label { display: flex; align-items: center; gap: 7px; min-height: 36px; border: 1px solid var(--ink); border-radius: var(--radius-control); padding: 6px 12px; font-size: 13px; font-weight: 600; list-style: none; cursor: pointer; }
.town-label:hover { background: var(--hover); }
.town-selector { position: relative; }
.town-selector summary::-webkit-details-marker { display: none; }
.town-switcher { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.town-link { display: flex; align-items: center; min-height: 36px; border: 1px solid transparent; border-radius: var(--radius-control); padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.town-link:hover, .town-link:focus-visible { border-color: var(--ink); color: var(--ink); }
.town-dot, .town-label > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.town-chevron { font-size: 12px; line-height: 1; transition: transform .15s; }
.town-selector[open] .town-chevron { transform: rotate(180deg); }
.town-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px; z-index: 10; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 6px; box-shadow: 0 12px 40px var(--shadow-menu); display: grid; gap: 2px; }
.town-menu-item { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
a.town-menu-item:hover, a.town-menu-item:focus-visible { background: var(--hover); }
.town-menu-item.is-current { color: var(--accent-ink); font-weight: 700; }
.town-menu-divider { height: 1px; background: var(--line); margin: 4px 6px; }
button.town-menu-request { width: 100%; border: 0; background: transparent; text-align: left; color: var(--accent-ink); font-weight: 700; }
button.town-menu-request:hover, button.town-menu-request:focus-visible { background: var(--hover); }
.hero { padding: clamp(24px, 3vw, 36px) var(--gutter) clamp(24px, 3vw, 36px); }
.hero h1 { font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: clamp(56px, 11vw, 168px); line-height: .84; letter-spacing: -.02em; }
.hero h1 span { color: var(--accent); }
.town-hero { padding: clamp(14px, 1.8vw, 22px) var(--gutter) clamp(10px, 1.2vw, 14px); }
.town-hero h1 { font-size: clamp(32px, 4.4vw, 58px); line-height: .94; }

/* Categories wrap into rows. home.js hides every row after the first until "See more" is pressed. */
.category-panel { padding: 2px var(--gutter) 0; margin-bottom: 16px; }
.category-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(100px, 12vw, 150px), 1fr)); gap: 10px; }
.category-more { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 6px; padding: 6px 2px; border: 0; background: none; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.category-more::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 2px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.category-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.category-tile { min-width: 0; height: clamp(56px, 5vw, 62px); border: 1px solid var(--ink); border-radius: 14px; padding: 7px 11px; display: flex; flex-direction: column; justify-content: space-between; gap: 3px; transition: background .15s; }
.category-tile:hover { background: var(--hover); }
.category-tile.active { background: var(--ink); color: var(--paper); }
.category-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.category-top svg { width: 20px; height: 20px; }
.category-tile.active svg { color: var(--accent-on-active); }
.category-count { font: 12px var(--mono); opacity: .8; }
.category-label { font-size: 13px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Native links and forms are the source of truth for filters and pagination. */
.listings { padding: 0 var(--gutter) 72px; scroll-margin-top: 12px; }
.filter-bar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.date-selector { position: relative; min-width: 0; }
.date-selector-button { display: flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 10px 16px; border: 1px solid var(--ink); border-radius: var(--radius-control); cursor: pointer; font-size: 14px; font-weight: 600; background: var(--ink); color: var(--paper); list-style: none; }
.date-selector-button > span:first-of-type { overflow-wrap: anywhere; }
.date-selector-button svg { width: 20px; height: 20px; }
.date-selector summary::-webkit-details-marker { display: none; }
.date-menu { position: absolute; top: calc(100% + 8px); left: 0; width: min(360px, calc(100vw - 32px)); max-height: 65vh; overflow: auto; z-index: 5; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); padding: 8px; box-shadow: 0 12px 40px var(--shadow-menu); }
.date-options { display: grid; }
.date-options a, .date-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px 16px; border-radius: 12px; font-size: 15px; cursor: pointer; }
.date-options a[aria-current] { color: var(--accent-ink); font-weight: 700; }
.date-options a:hover, .date-picker > summary:hover { background: var(--hover); }
.home-search { display: flex; margin-left: auto; max-width: 260px; min-width: 150px; flex: 1; border: 1px solid var(--ink); border-radius: var(--radius-control); }
.home-search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 10px 4px 10px 14px; border-radius: inherit; font-size: 14px; }
.search-button { display: grid; place-items: center; border: 0; background: transparent; width: 44px; min-height: 44px; flex-shrink: 0; border-radius: 50%; }
.search-button svg { width: 18px; height: 18px; }
.date-picker > summary { list-style: none; }
.date-range { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 12px 8px; }
.date-range label { display: grid; gap: 6px; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.date-range input { font: 600 15px Archivo, sans-serif; background: transparent; border: 1px solid var(--ink); border-radius: 12px; padding: 10px 12px; min-height: 44px; min-width: 150px; }
.date-help { flex-basis: 100%; font-size: 12px; color: var(--muted); line-height: 1.5; }
.pill-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); border-radius: var(--radius-control); padding: 12px 18px; min-height: 44px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px; text-align: center; }
.pill-button:hover { text-decoration: underline; }
.pill-button.secondary { background: transparent; color: var(--ink); }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 12px; color: var(--muted); }

/* Hourly timeline event cards. */
.day-group { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.day-group:first-of-type { margin-top: 18px; }
.day-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.day-group h3 { font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: clamp(24px, 2.8vw, 34px); line-height: 1; }
.day-count { font: 600 12px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }

.day-timeline { position: relative; display: flex; flex-direction: column; gap: 16px; }
.day-timeline::before { content: ''; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 1px; background: var(--line); pointer-events: none; }
.hour-band { position: relative; display: flex; flex-direction: column; gap: 8px; }
.hour-rule { display: flex; align-items: center; gap: 12px; }
.hour-badge { position: relative; z-index: 1; font: 800 11.5px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--paper); background: var(--ink); padding: 3px 9px; border-radius: 6px; min-width: 54px; text-align: center; white-space: nowrap; }
.hour-badge.is-muted { background: var(--paper-warm); color: var(--muted); border: 1px solid var(--line); }
.hour-line { flex: 1; height: 1px; background: var(--line); }

.event-list { list-style: none; padding: 0 0 0 66px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.event-row { display: flex; align-items: stretch; height: 94px; border-radius: 11px; background: var(--paper-bright); border: 1px solid var(--line); box-shadow: 0 2px 6px var(--shadow-menu); overflow: hidden; transition: border-color .14s, box-shadow .14s, transform .14s; }
.event-row:hover { border-color: var(--ink); transform: translateY(-1px); }
.event-row.preference-love { border-color: var(--accent-ink); }
.event-row.preference-less { opacity: .66; }
.event-row.preference-less:hover { opacity: 1; }

.event-open { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-width: 0; flex: 1; }
.event-time { width: 48px; flex-shrink: 0; align-self: flex-start; padding-top: 2px; font: 700 12px/1.3 var(--mono); font-variant-numeric: tabular-nums; color: var(--accent-ink); white-space: nowrap; }
.event-time abbr { font-size: 11px; text-decoration: none; color: var(--muted); }
.event-copy { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; flex: 1; height: 100%; }
.event-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.event-head-main { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.event-title { font-size: 15px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-category { font: 700 10px/1.2 Archivo, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.event-snippet { font-size: 12.5px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-meta { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: auto; font-size: 12px; color: var(--muted); overflow: hidden; }
.event-venue { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.event-until { white-space: nowrap; flex-shrink: 0; }
.event-series { display: inline; font: 600 10.5px/1.2 var(--mono); color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.event-card-tag { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: var(--paper-warm); color: var(--ink); white-space: nowrap; flex-shrink: 0; }
.event-arrow { display: flex; flex-shrink: 0; opacity: .45; transition: opacity .14s, transform .14s, color .14s; }
.event-arrow svg { width: 16px; height: 16px; }
.event-open:hover .event-arrow, .event-open:focus-visible .event-arrow { opacity: 1; color: var(--accent-ink); transform: translate(2px, -2px); }

@media (max-width: 960px) {
  .event-list { grid-template-columns: minmax(0, 1fr); padding-left: 26px; }
  .day-timeline::before { left: 10px; }
}
.empty-state { padding: 48px 0; display: grid; justify-items: start; gap: 16px; }
.empty-state h2 { font-size: 24px; }
.empty-state p { color: var(--muted); line-height: 1.6; }
.error-state { padding: 72px var(--gutter); }
.home-pagination { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 36px; flex-wrap: wrap; font: 12px var(--mono); }
.site-footer { background: var(--promo-bg); color: var(--promo-ink); border-top: 1px solid var(--line); padding: 22px var(--gutter); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.site-footer .wordmark { font-size: 18px; }

/* Native dialog supplies focus trapping, Escape and focus restoration. */
html:has(dialog[open]) { overflow: hidden; }
.home-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); }
.home-dialog::backdrop { background: var(--backdrop); }
.dialog-header { display: grid; gap: 12px; padding: 24px 28px 0; }
.dialog-header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dialog-kicker .detail-category { font: 700 12px/1.2 Archivo, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dialog-kicker .detail-kind { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid var(--accent-ink); border-radius: 999px; font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); }
.dialog-header h2 { font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: clamp(32px, 5.5vw, 44px); line-height: .96; overflow-wrap: anywhere; }
.dialog-close { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.dialog-close:hover { border-color: var(--ink); background: var(--hover); }
.dialog-content { padding: 16px 28px 24px; display: grid; gap: 20px; }
.dialog-content p { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.detail-meta { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-meta-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; }
.detail-meta-row + .detail-meta-row { border-top: 1px solid var(--line); }
.detail-meta-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); flex-shrink: 0; }
.detail-meta-body { display: grid; gap: 3px; min-width: 0; }
.dialog-content .detail-meta-primary { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.dialog-content .detail-meta-secondary { font-size: 14px; line-height: 1.4; color: var(--muted); }
.detail-venue-link, .detail-directions { text-decoration: underline; text-underline-offset: 3px; }
.detail-directions { color: var(--ink); }
.home-description { white-space: pre-wrap; }
.detail-description { display: grid; gap: 6px; justify-items: start; }
.dialog-content .home-description.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.detail-read-more { border: 0; background: transparent; padding: 4px 0; min-height: 36px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.detail-read-more:hover { color: var(--accent-ink); }
.detail-actions { display: grid; gap: 10px; }
.detail-primary-link { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: var(--paper); border: 0; border-radius: var(--radius-control); padding: 12px 18px; min-height: 50px; font-size: 16px; font-weight: 700; text-align: center; }
.detail-primary-link:hover { text-decoration: underline; }
.detail-btn-icon { width: 17px; height: 17px; flex-shrink: 0; }
.dialog-content .event-utility-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dialog-content .event-utility-btn { gap: 8px; border-color: var(--line); background: transparent; padding: 10px 12px; }
.dialog-content .event-utility-btn:hover { border-color: var(--ink); background: var(--hover); }
.detail-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.dialog-content .detail-note { font-size: 12.5px; color: var(--muted); }
.detail-original-link { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.detail-original-link:hover { color: var(--accent-ink); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.detail-tags a { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; border: 0; border-radius: 8px; background: var(--paper-warm); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; }
.detail-tags a:hover, .detail-tags a:focus-visible { background: var(--ink); color: var(--paper); }
.search-tags strong, .results-heading strong { font-weight: 700; }
.results-heading .clear-tag { margin-left: 6px; font-size: 13px; text-decoration: underline; }
.detail-facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.detail-facts > div { display: grid; grid-template-columns: minmax(96px, 32%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.detail-facts dt { font: 12px/1.6 var(--mono); text-transform: uppercase; color: var(--muted); }
.detail-facts dd { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.detail-facts a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.detail-facts code { font: 12px var(--mono); }
@media (max-width: 420px) { .detail-facts > div { grid-template-columns: 1fr; gap: 2px; } }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: calc(100% - 32px); width: max-content; }
#toast:not(:empty) { background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 12px; font-size: 13px; line-height: 1.5; }

@media (max-width: 700px) {
  .site-header { gap: 12px; }
  .wordmark { font-size: 22px; }
  .town-label, .town-link { font-size: 12px; padding: 6px 10px; min-height: 36px; }
  .hero h1 { font-size: clamp(48px, 11vw, 77px); }
  .town-hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .filter-bar { position: relative; top: auto; gap: 12px; }
  .home-search { max-width: none; flex-basis: 100%; }
  .date-selector { max-width: 100%; }
  .date-menu { left: 0; }
  .date-range input { width: 100%; min-width: 0; }
  .date-range label { flex: 1 1 140px; }
  .listings { padding-bottom: 48px; }
  .event-list { padding-left: 16px; }
  .event-open { gap: 9px; padding: 9px 10px; }
  .event-arrow { display: none; }
  .event-time { width: 42px; font-size: 11px; }
  .event-meta { font-size: 11.5px; }
  .event-series { font-size: 10.5px; }
  .dialog-header { padding: 20px 20px 0; }
  .dialog-content { padding: 14px 20px 20px; }
  .dialog-content .event-utility-actions { grid-template-columns: 1fr; }
}


/* Filtering updates the existing document; the previous results remain visible while loading. */
main[aria-busy="true"] .filter-bar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  opacity: .7;
}
#event-results:focus { outline: none; }

.home-search:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-search input:focus-visible { outline: none; }
.home-search button:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -3px; background: var(--hover); }

.date-option-meta { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.date-option-count { min-width: 3ch; text-align: right; font: 12px var(--mono); font-variant-numeric: tabular-nums; }

/* A single, predictable clear affordance; the native clear remains for no-JS browsing. */
.home-search[data-enhanced] input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; border-radius: 50%; color: var(--muted); }
.search-clear svg { width: 18px; height: 18px; }
.search-clear::after { content: ''; position: absolute; right: 0; top: 11px; bottom: 11px; width: 1px; background: var(--line); }
.search-clear:hover { color: var(--ink); }

/* Multi-select filter dropdowns (event types, venues, places, nearby) with include & exclude controls. */
.filter-selector, .place-selector { position: relative; min-width: 0; max-width: 260px; }
.place-selector-button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: var(--radius-control); cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.place-selector-button > span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-selector-button svg { width: 20px; height: 20px; }
.filter-selector summary::-webkit-details-marker, .place-selector summary::-webkit-details-marker { display: none; }
.filter-selector.is-active > summary { background: var(--ink); color: var(--paper); }
.beta-badge { padding: 1px 6px; border: 1px solid currentColor; border-radius: 999px; font: 600 10px/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.place-menu { position: absolute; left: 0; right: auto; top: calc(100% + 8px); width: min(360px, calc(100vw - 32px)); max-height: min(440px, 70dvh); z-index: 5; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 40px var(--shadow-menu); padding: 8px; }
.place-menu.align-right { left: auto; right: 0; }
.place-search { display: flex; align-items: center; gap: 8px; margin: 4px 4px 6px; padding: 0 12px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--paper); }
.place-search[hidden], .place-option[hidden], .filter-option[hidden], .place-help[hidden] { display: none; }
.place-search:focus-within { border-color: var(--ink); }
.place-search svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.place-search input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.place-help { padding: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.filter-footnote { padding: 6px 8px 4px; }
.place-options { min-width: 0; scrollbar-width: thin; border: 0; padding: 0 4px; margin: 0; min-height: 0; max-height: min(260px, 42dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.place-option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 8px; cursor: pointer; border-radius: 10px; }
.place-option:hover { background: var(--hover); }
.place-option input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ink); margin: 0; }
.place-option > span:first-of-type { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.filter-option { display: flex; align-items: center; gap: 4px; min-height: 44px; padding-right: 4px; border-radius: 10px; transition: background .12s; }
.filter-option:hover { background: var(--hover); }
.filter-include { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 6px 6px 8px; cursor: pointer; }
.filter-include input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ink); margin: 0; cursor: pointer; }
.filter-option-label { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; }
.filter-option.is-included .filter-option-label { font-weight: 700; }
.filter-option.is-excluded .filter-option-label { text-decoration: line-through; color: var(--muted); }
.filter-option.is-excluded .place-count { color: var(--muted); opacity: .7; }
.place-count { margin-left: auto; padding-left: 8px; font: 12px var(--mono); font-variant-numeric: tabular-nums; }
.filter-exclude { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; padding: 4px; }
.filter-exclude input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.filter-exclude-pill { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); font-size: 16px; font-weight: 700; line-height: 1; color: var(--muted); transition: background .12s, color .12s, border-color .12s; }
.filter-exclude:hover .filter-exclude-pill { border-color: var(--accent-ink); color: var(--accent-ink); background: var(--paper); }
.filter-exclude input:focus-visible + .filter-exclude-pill { outline: 3px solid var(--accent); outline-offset: 2px; }
.filter-exclude input:checked + .filter-exclude-pill,
.filter-option.is-excluded .filter-exclude-pill { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--cta-ink); }
.place-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 2px; border-top: 1px solid var(--line); }
.place-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 4px; font-size: 13px; text-decoration: underline; }
@media (max-width: 700px) {
  .town-selector { position: static; }
  .town-menu { top: calc(100% + 4px); right: var(--gutter); left: auto; width: min(240px, calc(100vw - 2 * var(--gutter))); }
  .filter-selector, .place-selector { position: static; max-width: 100%; }
  .place-menu, .place-menu.align-right { left: var(--gutter); right: auto; width: min(360px, calc(100vw - 2 * var(--gutter))); }
}

/* Ongoing events sit at the end of their day, with any beyond the first two behind a native disclosure. */
.event-row.is-ongoing .event-time { color: var(--muted); }
.ongoing-more { margin: 0; padding-left: 66px; }
.ongoing-more-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 2px; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.ongoing-more-closed, .ongoing-more-open { text-decoration: underline; text-underline-offset: 3px; }
.ongoing-more-toggle::-webkit-details-marker { display: none; }
.ongoing-more-toggle:hover { color: var(--accent-ink); }
.ongoing-more-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.ongoing-more-open { display: none; }
.ongoing-more[open] .ongoing-more-closed { display: none; }
.ongoing-more[open] .ongoing-more-open { display: inline; }
.ongoing-more-chevron { display: inline-block; font-size: 16px; line-height: 1; transition: transform .15s; }
.ongoing-more[open] .ongoing-more-chevron { transform: rotate(180deg); }
.ongoing-more-list { padding-left: 0; margin-top: 6px; }
@media (max-width: 960px) { .ongoing-more { padding-left: 26px; } }
@media (max-width: 700px) { .ongoing-more { padding-left: 16px; } }

/* Establishment types and ongoing badges in listings and the event details dialog. */
.venue-type-pill { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); vertical-align: 1px; margin-left: 4px; }
.venue-type-badge { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--ink); border-radius: 999px; font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); vertical-align: middle; margin-left: 4px; }
.dialog-content .detail-kind { display: inline-flex; align-items: center; width: fit-content; padding: 3px 10px; border: 1px solid var(--accent-ink); border-radius: 999px; font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); margin-bottom: -8px; }

/* National landing page & footer links */
.landing-lede { margin: 16px 0 0; max-width: 44ch; font-size: 1.05rem; color: var(--muted); }
.town-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; margin-top: 24px; padding: 0 var(--gutter) 48px; }
.town-card { container-type: inline-size; background: var(--paper-bright); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.town-card h2 { margin: 0; font-size: 1.4rem; }
.town-card h2 a { color: inherit; text-decoration: none; }
.town-card h2 a:hover { color: var(--accent); }
.town-card-count { margin: 0; color: var(--muted); font-size: 0.95rem; }
.town-card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.town-card-links .pill-button { white-space: nowrap; }
@container (max-width: 340px) {
  .town-card-links { justify-content: center; }
}
.town-card-request { background: var(--paper-warm); border: 1.5px dashed var(--line); }
.town-card-request .pill-button { cursor: pointer; font-family: inherit; }

/* Request a town modal */
.town-request-form { display: grid; gap: 16px; }
.town-request-intro { margin: 0; color: var(--muted); }
.town-picker { display: grid; gap: 8px; }
.town-request-label { font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.town-request-input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper-bright); color: var(--ink); font: 500 16px/1.3 Archivo, sans-serif; }
.town-request-input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.town-request-list { list-style: none; margin: 0; padding: 4px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-bright); display: grid; gap: 2px; }
.town-request-list[hidden] { display: none; }
.town-request-option { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1.35; color: var(--ink); }
.town-request-option:hover, .town-request-option.is-active { background: var(--hover); }
.town-request-option[aria-selected="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }
.town-request-option.is-custom { font-style: italic; color: var(--accent-ink); }
.town-request-option.is-custom[aria-selected="true"] { color: var(--paper); }
.town-request-live-note, .town-request-empty { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.town-request-live-note a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.town-request-status { margin: 0; font-size: 14px; color: var(--muted); }
.town-request-status.is-error { color: var(--accent-ink); font-weight: 600; }
.town-request-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.town-request-actions .pill-button { cursor: pointer; font-family: inherit; }
.town-request-submit:disabled { opacity: .45; cursor: not-allowed; }
.town-request-success { display: grid; gap: 14px; }
.town-request-success-title { margin: 0; font-weight: 800; font-size: 20px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: 0.9rem; }
.footer-links a { color: var(--promo-ink); opacity: .82; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { opacity: 1; text-decoration: underline; }

/* Static text pages (e.g. /privacy) */
.event-detail-page { max-width: 780px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 2px; color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.event-detail-card { background: var(--paper-bright); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.event-detail-card h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.15; overflow-wrap: anywhere; }
.event-detail-card p { line-height: 1.6; }

/* Standalone event detail page (editorial poster layout) */
.event-page { width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(16px, 3vw, 28px) var(--gutter) clamp(48px, 6vw, 72px); }
.event-layout { display: grid; gap: 20px; align-items: start; }
.event-main-content { display: grid; gap: 24px; min-width: 0; }

.event-hero { background: var(--paper-bright); border: 1.5px solid var(--ink); border-radius: 16px; padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.5vw, 24px); align-items: start; min-width: 0; }
.event-date-stamp { border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper); text-align: center; min-width: 96px; flex-shrink: 0; }
.stamp-date { padding: 10px 12px 8px; display: grid; gap: 2px; }
.stamp-weekday { font: 700 11px/1.2 var(--mono); letter-spacing: .08em; color: var(--muted); }
.stamp-day { font-weight: 900; font-stretch: 72%; font-size: 40px; line-height: .9; letter-spacing: -.02em; color: var(--ink); }
.stamp-month { font: 600 11px/1.2 var(--mono); letter-spacing: .05em; color: var(--ink); }
.stamp-time { background: var(--ink); color: var(--paper); padding: 6px 10px; font: 700 12px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; }

.event-hero-body { display: grid; gap: 10px; min-width: 0; }
.event-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.event-category-link { font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); }
.event-category-link:hover { text-decoration: underline; }
.event-kind-badge { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid var(--accent-ink); border-radius: 999px; font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); }
.event-past-badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.event-hero h1 { font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: clamp(32px, 5vw, 54px); line-height: .92; letter-spacing: -.015em; overflow-wrap: anywhere; text-wrap: balance; }
.event-hero-venue { font-size: 15px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.event-hero-address { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.event-hero .detail-tags { margin-top: 4px; }

.event-action-card { background: var(--paper-bright); border: 1.5px solid var(--ink); border-radius: 16px; padding: 20px; display: grid; gap: 16px; min-width: 0; }
.section-kicker { font: 700 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.action-glance { display: grid; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.glance-row { display: grid; gap: 2px; }
.glance-label { font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.glance-value { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.glance-sub { font-size: 13px; color: var(--muted); }

.event-primary-cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius-control); background: var(--cta-bg); color: var(--cta-ink); font-size: 16px; font-weight: 700; text-align: center; transition: background .15s; }
.event-primary-cta:hover, .event-primary-cta:focus-visible { background: var(--cta-bg-hover); text-decoration: none; }
.event-utility-actions { display: grid; gap: 8px; }
.event-utility-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: var(--radius-control); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; transition: background .15s; }
.event-utility-btn:hover, .event-utility-btn:focus-visible { background: var(--hover); text-decoration: none; }
.action-note { font-size: 12px; line-height: 1.45; color: var(--muted); }

.event-past-notice { background: var(--paper-warm); border: 1px solid var(--ink); border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.45; }
.event-body { display: grid; gap: 12px; }
.event-body .home-description { font-size: 16px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.event-sparse-notice { background: var(--paper-warm); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; display: grid; gap: 6px; }
.sparse-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.sparse-copy { font-size: 14px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.sparse-copy a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.event-series-list { display: grid; gap: 10px; }
.event-series-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.event-series-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--radius-control); background: var(--paper-bright); color: var(--ink); font: 600 13px/1.3 var(--mono); text-decoration: none; transition: background .15s, color .15s; }
.event-series-list a:hover, .event-series-list a:focus-visible { background: var(--ink); color: var(--paper); }

.event-venue-details { display: grid; gap: 10px; }
.inline-maps-link { display: inline-block; margin-left: 6px; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

.event-discovery { margin-top: clamp(36px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); border-top: 2px solid var(--ink); display: grid; gap: clamp(28px, 4vw, 40px); }
.discovery-section { display: grid; gap: 14px; min-width: 0; }
.discovery-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.discovery-header h2 { font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: clamp(24px, 3.2vw, 34px); line-height: 1; overflow-wrap: anywhere; }
.discovery-more { font: 600 13px/1.3 var(--mono); color: var(--accent-ink); white-space: nowrap; }
.discovery-more:hover { text-decoration: underline; }
.discovery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.discovery-card { background: var(--paper-bright); border: 1px solid var(--line); border-radius: 12px; min-width: 0; transition: border-color .15s, background .15s; }
.discovery-card:hover { border-color: var(--ink); background: var(--hover); }
.discovery-card a { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; height: 100%; min-width: 0; }
.discovery-when { font: 600 12px/1.3 var(--mono); color: var(--accent-ink); }
.discovery-title { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; text-wrap: pretty; }
.discovery-meta { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }

.town-promo-banner { background: var(--promo-bg); color: var(--promo-ink); border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 20px; }
.promo-copy { display: grid; gap: 8px; }
.town-promo-banner h2 { font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: clamp(28px, 4.5vw, 44px); line-height: .94; letter-spacing: -.015em; }
.town-promo-banner p { font-size: 15px; line-height: 1.5; color: var(--promo-ink); opacity: .85; max-width: 56ch; }
.promo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.promo-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-control); background: var(--cta-bg); color: var(--cta-ink); font-size: 14px; font-weight: 700; transition: background .15s; }
.promo-cta:hover, .promo-cta:focus-visible { background: var(--cta-bg-hover); }
.promo-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid var(--promo-border); border-radius: var(--radius-control); color: var(--promo-ink); font-size: 14px; font-weight: 600; transition: border-color .15s, background .15s; }
.promo-link:hover, .promo-link:focus-visible { border-color: var(--promo-ink); background: var(--promo-hover); }

@media (min-width: 860px) {
  .event-layout { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto 1fr; column-gap: 28px; row-gap: 24px; }
  .event-hero { grid-column: 1; grid-row: 1; }
  .event-main-content { grid-column: 1; grid-row: 2; }
  .event-action-card { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 20px; }
}

@media (max-width: 520px) {
  .event-hero { grid-template-columns: 1fr; gap: 14px; }
  .event-date-stamp { display: flex; align-items: stretch; justify-content: space-between; text-align: left; min-width: 0; }
  .stamp-date { display: flex; align-items: baseline; gap: 8px; padding: 8px 12px; }
  .stamp-day { font-size: 26px; }
  .stamp-time { display: flex; align-items: center; padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category-tile, .category-more::after, .ongoing-more-chevron, .event-primary-cta, .event-utility-btn, .event-series-list a, .discovery-card, .promo-cta, .promo-link { transition: none; }
}

/* Event preferences (love / less / hide), stored in an anonymous cookie. */
.results-heading { flex-wrap: wrap; }
.preference-note { margin: 0; font-size: 13px; color: var(--muted); }
.preference-note a { text-decoration: underline; }
.for-you { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 999px; background: var(--accent-ink); color: var(--cta-ink); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.event-copy .for-you { align-self: flex-start; justify-self: start; width: fit-content; }
.event-row.preference-less .event-copy { opacity: .62; }
.event-row.preference-less:hover .event-copy, .event-row.preference-less:focus-within .event-copy { opacity: 1; }
.preferences-page { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.preferences-page h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 8px 0 12px; }
.preferences-page h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 32px 0 8px; }
.preferences-back a, .preferences-privacy a { text-decoration: underline; }
.preferences-lede { font-size: 17px; line-height: 1.5; margin: 0 0 16px; }
.preferences-saved { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-bright); }
.preference-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); }
.preference-row legend { float: left; padding: 0; font-weight: 600; font-size: 16px; }
.preference-options { display: flex; flex-wrap: wrap; gap: 6px; }
.preference-option { position: relative; }
.preference-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.preference-option span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-control); font-size: 14px; cursor: pointer; }
.preference-option input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.preference-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.preferences-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.preferences-actions button { cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; }
.preferences-privacy { margin-top: 28px; font-size: 14px; color: var(--muted); }
.preferences-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: var(--radius-control); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.preferences-link svg { width: 20px; height: 20px; }
.preferences-link:hover { background: var(--hover); }
.preferences-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.preferences-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
@media (max-width: 700px) { .preferences-link { margin-left: auto; } }

/* Venue pages (/:town/venues/:slug-:id): header with draw stars and Mapbox map. */
.venue-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.venue-hero { background: var(--paper-bright); border: 1.5px solid var(--ink); border-radius: 16px; padding: clamp(18px, 3vw, 28px); margin-bottom: clamp(24px, 4vw, 40px); display: grid; gap: clamp(18px, 3vw, 32px); align-items: start; }
.venue-hero.has-map { grid-template-columns: minmax(0, 1fr) minmax(260px, 44%); }
.venue-hero-details { min-width: 0; }
.venue-map { margin: 0; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper-warm); aspect-ratio: 3 / 2; }
.venue-map a, .venue-map picture { display: block; height: 100%; }
.venue-map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.venue-map a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.venue-draw { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 17px; }
.draw-stars { display: inline-flex; gap: 1px; font-size: 20px; line-height: 1; letter-spacing: 0; }
.draw-stars .on { color: var(--accent); }
.draw-stars .off { color: var(--ink); opacity: .18; }
@media (max-width: 700px) { .venue-hero.has-map { grid-template-columns: minmax(0, 1fr); } }
.venue-hero h1 { font-weight: 900; font-stretch: 68%; text-transform: uppercase; font-size: clamp(36px, 6vw, 64px); line-height: .95; margin: 8px 0 12px; overflow-wrap: anywhere; }
.venue-hero .venue-type-badge { margin-left: 0; }
.venue-address { margin: 0 0 12px; font-size: 16px; }
.venue-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-weight: 600; font-size: 14px; }
.venue-links a { color: var(--accent-ink); }
.venue-hours { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.venue-count { margin: 8px 0 16px; font-size: 14px; color: var(--muted); }
.venue-event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.venue-event a { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.venue-event a:hover .venue-event-title { text-decoration: underline; }
.venue-event-when { font: 500 13px/1.4 var(--mono); color: var(--muted); }
.venue-event-title { font-weight: 700; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.venue-event-meta { font-size: 13px; color: var(--muted); text-align: right; }
.venue-event-more { display: block; font-weight: 600; }
@media (max-width: 700px) {
  .venue-event a { grid-template-columns: minmax(0, 1fr); }
  .venue-event-meta { text-align: left; }
}
.detail-venue-link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
