:root { --night: #0e2133; --ink: #0e2133; --gold: #ffd27a; --pine: #2f7a52; --berry: #c8373e; --cream: #fff8ec; --plum: #0e2133; --paper: #fff8ec; --orange: #ffd27a; --green: #2f7a52; --muted: #566676; --border: #dedbd2; }
body { background: var(--cream); color: var(--night); }
.intro, .site-header, .topbar { background: var(--night); color: var(--cream); }
.intro h1, .intro em, .intro .eyebrow { color: var(--gold); }
.intro-art { object-fit: contain; border-radius: 24px; }
.event-intro h1 { color: var(--cream); }
.site-header .brand { color: var(--gold); }
.site-header { padding: 16px 24px; margin-block: 16px; border-radius: 20px; flex-wrap: wrap; gap: 8px 24px; }
.site-header nav, .site-header .header-actions { gap: 4px 16px; }
.site-header nav a, .site-header .header-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-account-active { color: var(--gold); border-color: var(--gold); }
.join-section { background: #edf2ec; }
.button.primary, .seasonal-primary { background: var(--berry); color: white; }
.button.primary:hover { background: #a62b32; }
.donate-button { display: inline-block; margin: 12px 0; background: var(--pine); color: white; }
.charity-fields { display: grid; gap: 12px; margin-block: 20px; }
.pin-swatch { border: 1px solid #718298; }
.new-display-form { max-width: 640px; margin-block: 24px; }
.owner-dashboard { margin-block: 24px 20px; }
.owner-dashboard h2 { margin: 0; font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.5; }
.owner-season-label { font-weight: 400; color: var(--muted); }
/* display:block overrides tour.css's site-header `nav { display: flex }`, which shrank the card to its content width;
   the card's class selector also outranks tour.css's mobile `nav a:first-child { display: none }`. */
.owner-past-seasons { display: block; margin-block: 32px 28px; }
.owner-past-seasons .archive-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; min-height: 44px; padding: 20px; border: 1px solid #ebb98c; border-radius: 8px; background: linear-gradient(135deg, #fde2c9 0%, #fdeedf 60%, #fdf3e7 100%); color: var(--ink); font-size: 1rem; text-decoration: none; }
.owner-past-seasons .archive-card:hover { border-color: #dc9455; box-shadow: 0 6px 16px rgba(138, 69, 19, .14); }
.owner-past-seasons .archive-card:focus-visible { outline: 3px solid #c8601c; outline-offset: 3px; }
.owner-past-seasons .archive-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(220, 148, 85, .35); font-size: 1.375rem; line-height: 1; }
.owner-past-seasons .archive-body { display: grid; gap: 2px; min-width: 0; }
.owner-past-seasons .archive-eyebrow { color: #8a4513; font-size: .8125rem; font-weight: 600; }
.owner-past-seasons .archive-title { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.owner-past-seasons .archive-card:hover .archive-title { text-decoration-color: currentColor; }
.owner-past-seasons .archive-arrow { display: inline-block; margin-inline-start: 2px; }
.owner-past-seasons .archive-desc { color: var(--muted); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.owner-past-seasons .archive-hint { padding: 2px 10px; border: 1px solid #ebb98c; border-radius: 999px; background: #fff; color: #8a4513; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .owner-past-seasons .archive-card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
  .owner-past-seasons .archive-arrow { transition: transform .15s ease; }
  .owner-past-seasons .archive-card:hover { transform: translateY(-1px); }
  .owner-past-seasons .archive-card:hover .archive-arrow { transform: translate(2px, -2px); }
}
@media (max-width: 480px) {
  .owner-past-seasons .archive-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 16px; }
  .owner-past-seasons .archive-hint { grid-column: 2; justify-self: start; margin-top: 6px; }
}
.intake-signin { display: flex; align-items: center; gap: 12px 20px; padding: 16px; margin-block: 16px 20px; border-radius: 12px; background: #f0f5ef; }
.intake-signin strong { display: block; color: var(--ink); font-size: .9375rem; }
.intake-signin p { margin: 4px 0 0; line-height: 1.5; }
.intake-signin-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; flex-shrink: 0; font-size: .9375rem; font-weight: 600; color: var(--pine); text-underline-offset: 4px; }
.join-form .intake-intro { margin: 0 0 20px; line-height: 1.6; }
@media (max-width: 480px) { .intake-signin { flex-direction: column; align-items: flex-start; gap: 4px; } }
@media (max-width: 680px) {
  .site-header { padding: 16px 20px; align-items: flex-start; }
  .site-header .brand { font-size: 1.25rem; }
  .site-header nav, .site-header .header-actions { width: 100%; }
  .site-header nav a:first-child { display: none; }
}
/* Town links (?town=<slug>): All towns plus one pill per town; the current one is filled.
   .town-switcher .town-link outranks tour.css's mobile `nav a:first-child { display: none }`. */
.town-switcher { gap: 8px; margin: -6px 0 20px; }
.town-switcher .town-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--night); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.town-switcher .town-link:hover { border-color: var(--night); }
.town-switcher .town-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.town-switcher .town-link[aria-current="page"] { background: var(--night); border-color: var(--night); color: var(--gold); }
/* Pills for towns with too few stops stay hidden (see showTownPills in tour.mjs). */
.town-switcher .town-link[hidden] { display: none; }
/* The whole row stays hidden until the feed is counted, and whenever fewer than two towns qualify. */
.town-switcher[hidden] { display: none; }
@media (max-width: 680px) { .town-switcher { gap: 6px; } .town-switcher .town-link { padding: 0 12px; font-size: .875rem; } }
@media print { .town-switcher { display: none; } }
@media print { body { background: white; color: black; } }
/* Kind filter (All / Light Displays / Food; see halloween/kinds.mjs). One tap switches; the
   pressed button is filled. */
.kind-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 14px; }
.kind-filter .kind-button { min-height: 44px; padding: 0 20px; border: 2px solid var(--night); border-radius: 999px; background: #fff; color: var(--night); font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; }
.kind-filter .kind-button:hover { background: #f3efe6; }
.kind-filter .kind-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.kind-filter .kind-button[aria-pressed="true"] { background: var(--berry); border-color: var(--berry); color: #fff; }
@media (max-width: 680px) { .kind-filter { gap: 6px; } .kind-filter .kind-button { flex: 1 1 auto; padding: 0 12px; font-size: .9375rem; } }
@media print { .kind-filter { display: none; } }
/* Food stops: a Christmas-red pin (the buttons' berry) with a darker rim, holding a cream badge
   with a multicolour picture (drawn in christmas/icons.mjs), so they stand apart from the
   white light-display pins and still read on the pale map tiles. */
.tour-pin.is-food { background: var(--pin, var(--berry)); border-color: #8e1f26; box-shadow: 0 0 0 1px #fff, 0 2px 6px #241a2d66; }
.display-icon.is-food { background: var(--pin, var(--berry)); box-shadow: inset 0 0 0 2px #8e1f26; }
.key-pin.food { width: 18px; height: 18px; background: var(--berry); box-shadow: 0 0 0 1px #8e1f26; }
.key-pin.food svg { display: block; }
.spotlight.is-food .spotlight-art svg { width: 92px; height: 92px; }
.display-featured { display: block; margin-top: 2px; color: #8a3f14; font-weight: 600; line-height: 1.4; }
/* A food stop's items, food-magazine style: each photo sits beside its own name and
   commentary, sides alternating row by row when the popup is wide enough; narrower
   popups stack each photo directly above its own text. Text-only items keep the
   same headline and commentary without an empty image box. */
.food-items { container-type: inline-size; margin: 20px 0 8px; }
.food-item { display: grid; gap: 12px; padding-block: 20px; border-top: 1px solid var(--border); }
.food-item:first-child { padding-top: 4px; border-top: 0; }
/* Each photo shows whole at its own shape (never cover-cropped): the frame shrinks
   to the image, no wider than its column nor taller than a phone screen allows, and
   never enlarged past its own pixels, so small photos stay sharp. */
.food-item-photo img.detail-media { display: block; width: auto; height: auto; max-width: 100%; max-height: min(460px, 65vh); margin: 0 auto; aspect-ratio: auto; object-fit: contain; background: none; border-radius: 12px; box-shadow: 0 6px 18px #241a2d26; cursor: zoom-in; }
#display-detail .food-item-name { margin: 0 0 6px; color: #8a3f14; font-size: 1.3125rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.food-item-text .detail-story { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.6; }
@container (min-width: 460px) {
  .food-item.has-photo { grid-template-columns: minmax(0, 45%) minmax(0, 1fr); align-items: center; gap: 22px; }
  .food-item.has-photo.is-flipped { grid-template-columns: minmax(0, 1fr) minmax(0, 45%); }
  .food-item.is-flipped .food-item-photo { order: 2; }
  .food-item-photo img.detail-media { max-height: 420px; }
}
.food-directions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 16px 8px; }
.food-directions h3 { flex-basis: 100%; margin: 0; }
.food-hours { flex-basis: 100%; margin: 0 0 4px; display: grid; gap: 4px; }
.food-hours-row { display: flex; flex-wrap: wrap; gap: 0 8px; }
.food-hours dt { font-weight: 700; }
.food-hours dt::after { content: ':'; }
.food-hours dd { margin: 0; }
/* A food stop's website / Instagram link: a pill beside Share in the address row. */
.food-website { display: inline-block; text-decoration: none; }
.food-website:hover { border-color: var(--ink); }
/* After "Tried it": an optional comment, reviewed before it shows (food-engagement.mjs). */
.food-comment { margin: 12px 0 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fffaf3; }
.food-comment[hidden] { display: none; }
.food-comment label { display: block; margin: 0 0 6px; font-weight: 600; }
.food-comment .food-comment-name-label { margin-top: 10px; font-weight: 500; font-size: .9375rem; }
.food-comment textarea, .food-comment input { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: inherit; }
.food-comment-note { margin: 8px 0 0; color: var(--muted, #5d5466); font-size: .8125rem; }
.food-comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 10px; }
.food-comment-status:empty { display: none; }
.food-comment-status, .food-comment-thanks { margin: 8px 0 0; font-size: .9375rem; }
.food-comment-thanks { margin: 0; font-weight: 600; outline: none; }
/* Organizer-approved comments, below the items. Plain text; line breaks kept. */
.food-comments { margin: 16px 0 8px; }
.food-comments h3 { margin: 0 0 8px; }
.food-comments-list { margin: 0; padding: 0; list-style: none; }
.food-comments-item { padding: 10px 0; border-top: 1px solid var(--border); }
.food-comments-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.food-comments-by { margin: 4px 0 0; color: var(--muted, #5d5466); font-size: .875rem; }
@media print { .food-comment { display: none; } }
/* Ratings are for light displays: the Rate button and nudge step aside while only Food shows. */
html[data-kind-filter="food"] #vote-open, html[data-kind-filter="food"] #rate-nudge { display: none !important; }
/* Festive treatment (Christmas page only; tour.css is shared with Halloween, so all of this lives here). */
/* 1. Illustrated banner: a full-width storybook strip across the top of the hero card, fading into the night
   panel below. The card's overflow: hidden + 20px radius rounds its top corners. */
.event-intro.has-banner { grid-template-columns: 1fr; min-height: 0; }
.event-intro.has-banner .intro-copy { padding: 20px 38px 30px; }
.event-intro.has-banner h1 { margin: 10px 0 14px; }
.event-intro.has-banner .intro-text { margin-bottom: 0; }
.event-intro.has-banner .hero-actions:not(:empty) { margin-top: 18px; }
.intro-banner { order: -1; display: block; width: 100%; height: auto; aspect-ratio: 2704 / 832; max-height: 300px; object-fit: cover; object-position: center 40%; background: #16324a; mask-image: linear-gradient(to bottom, #000 82%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); }
@media (max-width: 680px) {
  .event-intro.has-banner .intro-copy { padding: 12px 22px 22px; }
  .event-intro.has-banner h1 { margin: 8px 0 10px; }
  .intro-banner { aspect-ratio: auto; height: clamp(140px, 44vw, 210px); max-height: none; }
}
/* 2. Winter wash on the map tiles only (pins, popups and controls live in other panes). Tiles are slightly
   desaturated and let a little of the pale blue container show through; text and roads stay dark and crisp. */
#map.leaflet-container { background: #c8dbee; }
#map .leaflet-tile-pane { filter: saturate(.68) brightness(1.04) opacity(.86); }
/* 3. Festive frame: decorative, never interactive. It sits above the map panes (400) but below Leaflet's
   control corners (1000), so the zoom buttons and attribution always draw on top of it. */
.festive-frame { position: absolute; inset: 0; z-index: 450; pointer-events: none; overflow: hidden; }
.festive-frame svg { position: absolute; display: block; overflow: visible; }
.frame-lights { top: 0; left: 0; width: 100%; height: 24px; }
.frame-bulbs { position: absolute; top: 0; left: 0; right: 0; height: 24px; }
.frame-bulbs i { --bulb: #e0434b; position: absolute; width: 7px; height: 10px; margin: 1px 0 0 -3.5px; border-radius: 45% 45% 50% 50% / 35% 35% 65% 65%; background: var(--bulb); box-shadow: 0 0 6px 1px var(--bulb); }
.frame-bulbs i::before { content: ""; position: absolute; top: -2px; left: 1.5px; width: 4px; height: 3px; border-radius: 1px; background: #1d3b2c; }
.frame-bulbs i:nth-child(4n+2) { --bulb: #ffd27a; }
.frame-bulbs i:nth-child(4n+3) { --bulb: #3fae6f; }
.frame-bulbs i:nth-child(4n) { --bulb: #5aa8f0; }
.frame-drifts { left: 0; bottom: 0; width: 100%; height: 34px; filter: drop-shadow(0 -1px 2px #5f86ad40); }
.frame-tree { width: 34px; height: 48px; filter: drop-shadow(0 1px 1px #0e213333); }
.frame-tree-left { left: 4px; bottom: 6px; }
/* Right tree stands above the attribution strip so the licence text is never behind it. */
.frame-tree-right { right: 6px; bottom: 20px; }
@media (min-width: 681px) { .map-key { left: 46px; } }
@media (max-width: 680px) { .festive-frame .frame-tree { display: none; } .festive-frame .frame-drifts { height: 24px; } }
@media (prefers-reduced-motion: no-preference) {
  .frame-bulbs i { animation: bulb-twinkle 3.2s ease-in-out infinite; }
  .frame-bulbs i:nth-child(odd) { animation-delay: -1.6s; }
  .frame-bulbs i:nth-child(3n) { animation-duration: 4.1s; }
}
@keyframes bulb-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
/* 4. Snowfall canvas (snow.mjs): fixed to the viewport, clipped to the hero + map region, never interactive. */
.snowfall { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
html.map-fullscreen .snowfall { display: none; }
@media (prefers-reduced-motion: reduce) { .snowfall { display: none; } }
@media print { .festive-frame, .snowfall, .intro-banner { display: none; } }
/* Spotlight (below the map): "Spotlight" heading over today's display or food stop. */
.spotlight.is-christmas { margin-top: 28px; border-top: 4px solid var(--berry); background: #fffdf8; box-shadow: 0 10px 30px #0e21330f; }
.spotlight.is-christmas.is-food { border-top-color: var(--gold); }
.spotlight-head { grid-column: 1 / -1; }
.spotlight.is-christmas .spotlight-eyebrow { color: var(--berry); }
.spotlight-head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.1; }
.spotlight-head h2::before { content: '✦ '; color: var(--gold); }
.spotlight.is-christmas .spotlight-media { background: var(--night); }
/* The Spotlight photo shows whole, never cover-cropped: a portrait food photo or a
   landscape display shot is contained in the 4:3 frame, centred, over a blurred and
   dimmed copy of itself that fills the rest of the frame. */
.spotlight.is-christmas .spotlight-media.has-photo { position: relative; isolation: isolate; }
.spotlight.is-christmas .spotlight-media.has-photo img.detail-media { position: relative; object-fit: contain; object-position: center; }
.spotlight-backdrop { position: absolute; inset: -30px; z-index: -1; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(24px) brightness(.6) saturate(1.15); pointer-events: none; }
.spotlight-backdrop:not([src]) { display: none; }
.spotlight-name { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; }
.spotlight-featured { margin: 0 0 8px; }
/* No photo (or one that won't load): the stop's own icon on a starry night panel. */
.spotlight-media.is-placeholder { display: grid; place-content: center; justify-items: center; gap: 12px; background: radial-gradient(circle at 30% 25%, #ffffff14 0 2px, transparent 3px) 0 0 / 46px 46px, radial-gradient(circle at 70% 60%, #ffd27a24 0 1.5px, transparent 2.5px) 0 0 / 38px 38px, linear-gradient(160deg, #173350, var(--night)); }
.spotlight-art { display: grid; place-items: center; width: 116px; height: 116px; border-radius: 50%; color: #fff; background: var(--pin, var(--berry)); box-shadow: 0 0 0 6px #ffffff22, 0 0 40px #ffd27a55; }
.spotlight-art svg { width: 64px; height: 64px; }
.spotlight-art-label { margin: 0; color: var(--gold); font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.spotlight-media.is-placeholder .media-error { display: none; }
