/* A town's page and the towns list (services/townPages.js), in design tokens v2 with the shared header and footer
   (/site-v2.css): the town's newest flyers behind its name, filters as links, then what's on day by day and what
   happened recently, with ways to share a flyer and follow the town beside it. One column on phones. */

/* The town's name over its newest flyers (decorative, blurred) */
/* The hero doesn't clip (the Follow menu hangs below it); the mosaic has its own clipping box. */
.town-hero { position: relative; color: #ffffff; background: #17171d; }
.mosaic-clip { position: absolute; inset: 0; overflow: hidden; }
.mosaic { position: absolute; inset: -8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 6px; filter: blur(2px) saturate(1.15); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (min-width: 760px) { .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 200px; } }
.town-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 20, 0.66), rgba(14, 14, 20, 0.88)); }
.hero-in { position: relative; z-index: 1; display: grid; gap: 12px; padding-block: 40px 30px; }
.kicker { color: rgba(255, 255, 255, 0.8); font-size: 18px; font-weight: 500; }
.town-hero h1 { font-size: clamp(36px, 7vw, 60px); line-height: 1.02; font-weight: 650; letter-spacing: -0.035em; text-wrap: balance; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 18px; color: rgba(255, 255, 255, 0.86); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.hero-actions .buzz { min-height: 44px; margin-left: 0; font-size: 15px; }
.ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #ffffff; font-size: 15px; font-weight: 600; text-decoration: none; }
.ghost:hover { background: rgba(255, 255, 255, 0.24); }
.town-link { color: rgba(255, 255, 255, 0.86); }
.town-link:hover { color: #ffffff; }

/* Follow: a calendar feed or RSS (no account needed), the weekly email and a venue's news (public/follow.js) */
.follow { position: relative; }
.follow summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #ffffff; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.follow summary::-webkit-details-marker { display: none; }
.follow summary:hover { background: rgba(255, 255, 255, 0.24); }
.follow-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(300px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); }
.follow-menu a, .follow-menu form button { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.follow-menu a:hover, .follow-menu form button:hover { background: var(--fill); }
.follow-menu .follow-note:empty { display: none; }
.follow-menu .follow-note { margin: 0; padding: 4px 12px 8px; color: var(--ink-2); font-size: 13px; }
.follow-menu b { font-size: 15px; font-weight: 600; }
.follow-menu small { color: var(--ink-3); font-size: 13px; }

/* Filters: each one is its own page (/towns/olympia-wa/this-weekend) */
.town-main { padding-block: 18px 56px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px 6px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.chips a:hover { color: var(--ink); border-color: var(--fill-2); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips small { color: inherit; opacity: 0.7; font-size: 12px; }

.town-split { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 900px) {
  .town-split { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
  .town-side { position: sticky; top: 76px; }
}

/* Day by day, on a thin rail */
.day-label { position: relative; margin: 20px 0 10px; padding-left: 18px; font-size: 16px; font-weight: 650; }
.day-label::before { content: ""; position: absolute; left: 1px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.cards { display: grid; gap: 10px; margin: 0 0 0 5px; padding: 0 0 0 17px; list-style: none; border-left: 1px dashed var(--fill-2); }
.card a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 12px 12px 12px 16px; border: 1px solid var(--card-edge); border-radius: 22px; background: var(--card); color: inherit; text-decoration: none; }
.card a:hover { border-color: var(--fill-2); }
.card-text { display: grid; gap: 3px; min-width: 0; }
.card-time { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.now { display: inline-block; margin-right: 4px; padding: 0 8px; border-radius: 999px; background: var(--note-bg); color: var(--note); font-size: 12px; font-weight: 650; }
.card-title { font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.card-place { color: var(--ink-2); font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { padding: 2px 8px; border-radius: 6px; background: var(--fill); color: var(--ink-2); font-size: 12px; font-weight: 650; }
.card-flyer { width: 84px; height: auto; max-height: 120px; object-fit: contain; align-self: start; border-radius: 10px; background: var(--fill); }
.section-title { margin: 40px 0 6px; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.section-note { margin: -4px 0 12px; color: var(--ink-3); font-size: 14px; }
.past .card a { background: transparent; }
.empty { display: grid; justify-items: start; gap: 10px; margin-top: 18px; padding: 22px; border: 1px dashed var(--fill-2); border-radius: 22px; color: var(--ink-2); }
.empty h2 { color: var(--ink); font-size: 17px; }
.empty .buzz { margin-left: 0; }

/* Beside the list */
.town-side { display: grid; gap: 12px; }
.panel { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--card-edge); border-radius: 22px; background: var(--card); color: var(--ink-2); font-size: 14px; }
.panel h2 { color: var(--ink); font-size: 15px; font-weight: 650; }
.panel .buzz, .panel .button { justify-self: start; margin-left: 0; }
.town-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.town-list li { display: flex; justify-content: space-between; gap: 10px; min-height: 36px; align-items: center; }
.town-list span { color: var(--ink-3); }

/* The towns list */
.towns-index { padding-block: 28px 56px; display: grid; gap: 22px; }
.index-head { display: grid; gap: 6px; }
.index-head h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.05; font-weight: 650; letter-spacing: -0.03em; }
.index-head p { color: var(--ink-2); }
.town-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.town-tile { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--card-edge); border-radius: 22px; background: var(--card); color: inherit; text-decoration: none; }
.town-tile:hover { border-color: var(--fill-2); }
/* As many columns as the town has flyers to show (up to three), so one or two fill the tile. */
.tile-flyers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; height: 92px; overflow: hidden; border-radius: 12px; background: var(--fill); }
.tile-flyers img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile-name { font-size: 17px; font-weight: 650; }
.tile-count { color: var(--ink-3); font-size: 14px; }

/* Places and Venues (venues are first class, owner decisions 2026-10-13): a search that works without script, and venue tiles */
.places-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.places-search { display: flex; gap: 8px; margin-top: 10px; max-width: 560px; }
.places-search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
.places-search input:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
.places-page section { display: grid; gap: 12px; }
.places-page .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.places-page .section-head h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.places-page .section-head a { flex: none; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.tile-empty { height: 44px; }
.tile-verified { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.places-page .empty a { color: var(--link); }

/* A venue's map (public/event-page.js draws it when it comes near the screen) */
.event-map { position: relative; z-index: 0; height: 220px; overflow: hidden; border-radius: 16px; background: var(--fill); }

/* A managed venue's page (venue owners plan, phase 4; services/venueProfile.js): its cover behind its name, in its
   color, with its logo, about, hours, contact and photos. Colors are dark enough for white text. */
.venue-page { --venue-tint: 14, 14, 20; }
.tint-ink { --venue-tint: 38, 38, 46; }
.tint-red { --venue-tint: 150, 28, 38; }
.tint-orange { --venue-tint: 160, 66, 12; }
.tint-gold { --venue-tint: 128, 92, 8; }
.tint-green { --venue-tint: 24, 102, 52; }
.tint-teal { --venue-tint: 10, 98, 104; }
.tint-blue { --venue-tint: 28, 70, 150; }
.tint-purple { --venue-tint: 92, 46, 156; }
.tint-pink { --venue-tint: 160, 30, 100; }
.venue-page[class*="tint-"] .town-hero { background: rgb(var(--venue-tint)); }
.venue-page[class*="tint-"] .town-hero::after { background: linear-gradient(180deg, rgba(var(--venue-tint), 0.7), rgba(var(--venue-tint), 0.94)); }
.cover-clip { position: absolute; inset: 0; overflow: hidden; }
.cover-clip img { width: 100%; height: 100%; object-fit: cover; }
.town-hero.has-cover::after { background: linear-gradient(180deg, rgba(var(--venue-tint), 0.35) 0%, rgba(var(--venue-tint), 0.9) 85%); }
.town-hero.has-cover .hero-in { padding-top: 120px; }
.venue-name { display: flex; align-items: center; gap: 16px; min-width: 0; }
.venue-name h1 { min-width: 0; overflow-wrap: anywhere; }
.venue-logo { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: 18px; background: #ffffff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9); }
@media (min-width: 760px) { .venue-logo { width: 88px; height: 88px; } }
.verified { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); color: #ffffff; font-size: 14px; font-weight: 650; }

/* Its notice and featured events (plan P14, venue track V4; services/venuePromotion.js). News carries the venue's color;
   important is the note color, so it reads as a warning in every theme. */
.venue-notice { display: grid; gap: 4px; margin: 0 0 18px; padding: 14px 16px; border-radius: var(--radius-tile); border-left: 5px solid rgb(var(--venue-tint)); background: var(--fill); color: var(--ink); }
.venue-notice h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.venue-notice p { margin: 0; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.venue-notice a { color: var(--link); font-weight: 650; }
.venue-page:not([class*="tint-"]) .venue-notice { border-left-color: var(--link); }
.venue-page .venue-notice.is-important { border-left-color: var(--note); background: var(--note-bg); }
.featured .section-title { margin-top: 8px; }
/* Open now, dated hours and specials (plan P14, venue track V8; services/venueHours.js). */
.open-now { margin: 0 0 10px; font-weight: 650; color: var(--ink-2); }
.open-now.is-open { color: var(--good); }
.hours-sub { margin: 14px 0 6px; font-size: 14px; }
.hours.dated dd span { display: block; color: var(--ink-3); font-size: 13px; }
.specials { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.specials li { display: grid; gap: 2px; }
.specials .when { color: var(--ink-2); font-size: 14px; }
.specials .what { color: var(--ink-3); font-size: 14px; }
.specials .today { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-size: 12px; font-weight: 650; }
.about { display: grid; gap: 10px; margin-bottom: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.about .section-title { margin-top: 18px; color: var(--ink); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.photo-grid li { display: grid; gap: 4px; }
.photo-grid a { display: block; overflow: hidden; border-radius: 14px; background: var(--fill); aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid span { color: var(--ink-3); font-size: 13px; }

.hours { display: grid; gap: 2px; margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 12px; min-height: 28px; align-items: center; }
.hours dt { color: var(--ink); font-weight: 550; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .closed dd { color: var(--ink-3); }
.venue-contact a { overflow-wrap: anywhere; }

/* A venue's theme (owner decision 2026-10-13, plan P9; config/venuePages.js themes): body class theme-<key>, combined
   with its color (--venue-tint). Classic is the look above. Every theme keeps text readable in light and dark mode. */
/* Bold: a solid block of the color, big capitals, square cards. */
.venue-page.theme-bold .town-hero { background: rgb(var(--venue-tint)); }
.venue-page.theme-bold .town-hero::after, .venue-page.theme-bold .town-hero.has-cover::after { background: rgba(var(--venue-tint), 0.88); }
.venue-page.theme-bold .town-hero h1 { text-transform: uppercase; font-weight: 800; font-size: clamp(40px, 9vw, 84px); line-height: 0.95; letter-spacing: -0.01em; }
.venue-page.theme-bold .section-title, .venue-page.theme-bold .panel h2 { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; }
.venue-page.theme-bold .card a, .venue-page.theme-bold .panel, .venue-page.theme-bold .photo-grid a { border-radius: 4px; border-width: 2px; }
.venue-page.theme-bold .card-flyer, .venue-page.theme-bold .venue-logo { border-radius: 4px; }
.venue-page.theme-bold .ghost, .venue-page.theme-bold .follow summary, .venue-page.theme-bold .hero-actions .buzz { border-radius: 4px; }

/* Minimal: dark text on the page; the cover is a framed photo above the name. */
.venue-page.theme-minimal .town-hero { background: transparent; color: var(--ink); border-top: 6px solid rgb(var(--venue-tint)); }
.venue-page.theme-minimal .town-hero::after, .venue-page.theme-minimal .mosaic-clip { display: none; }
.venue-page.theme-minimal .cover-clip { position: relative; inset: auto; width: calc(min(100%, 1100px) - 2 * clamp(16px, 4vw, 32px)); height: clamp(180px, 32vw, 340px);
  margin: 20px auto 0; border-radius: var(--radius-image); }
.venue-page.theme-minimal .town-hero.has-cover .hero-in { padding-top: 24px; }
.venue-page.theme-minimal .kicker, .venue-page.theme-minimal .facts, .venue-page.theme-minimal .town-link { color: var(--ink-2); }
.venue-page.theme-minimal .town-link:hover { color: var(--ink); }
.venue-page.theme-minimal .town-hero h1 { font-weight: 600; }
.venue-page.theme-minimal .ghost, .venue-page.theme-minimal .follow summary { background: var(--fill); color: var(--ink); }
.venue-page.theme-minimal .ghost:hover, .venue-page.theme-minimal .follow summary:hover { background: var(--fill-2); }
.venue-page.theme-minimal .verified { background: var(--fill); color: var(--ink); }
.venue-page.theme-minimal .venue-logo { box-shadow: 0 0 0 1px var(--line); }
.venue-page.theme-minimal .card a, .venue-page.theme-minimal .panel { background: transparent; border-color: var(--line); }

/* Night: dark all the way down, the color glowing behind the name. */
.venue-page.theme-night {
  --bg: #0b0b0e; --surface: #141418; --card: rgba(255, 255, 255, 0.05); --card-edge: rgba(255, 255, 255, 0.08);
  --ink: #f3f3f5; --ink-2: rgba(243, 243, 245, 0.74); --ink-3: rgba(243, 243, 245, 0.62);
  --line: rgba(255, 255, 255, 0.1); --fill: rgba(255, 255, 255, 0.07); --fill-2: rgba(255, 255, 255, 0.12);
  --on-ink: #0b0b0e; --link: #c4b1ff; --focus: #c4b1ff; color-scheme: dark;
}
.venue-page.theme-night .town-hero, .venue-page.theme-night[class*="tint-"] .town-hero { background: #0b0b0e; }
.venue-page.theme-night .town-hero::after, .venue-page.theme-night .town-hero.has-cover::after,
.venue-page.theme-night[class*="tint-"] .town-hero::after { background: linear-gradient(180deg, rgba(var(--venue-tint), 0.5) 0%, rgba(11, 11, 14, 0.82) 60%, #0b0b0e 100%); }
.venue-page.theme-night .town-hero h1 { text-shadow: 0 0 32px rgba(var(--venue-tint), 0.95), 0 0 2px rgba(255, 255, 255, 0.4); }
.venue-page.theme-night .card a, .venue-page.theme-night .panel { border-color: rgba(var(--venue-tint), 0.55); }
.venue-page.theme-night .card a:hover { border-color: rgba(255, 255, 255, 0.3); }

/* Warm: classic type on a cream page, soft rounded cards. */
.venue-page.theme-warm { --bg: #f5efe6; --card: #fffaf3; --card-edge: #ecdfcc; --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
@media (prefers-color-scheme: dark) { .venue-page.theme-warm { --bg: #15110d; --card: rgba(255, 236, 210, 0.05); --card-edge: rgba(255, 236, 210, 0.09); } }
.venue-page.theme-warm .town-hero h1, .venue-page.theme-warm .section-title, .venue-page.theme-warm .panel h2, .venue-page.theme-warm .card-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.venue-page.theme-warm .about { font-family: var(--serif); font-size: 18px; }
.venue-page.theme-warm .card a, .venue-page.theme-warm .panel { border-radius: 28px; }
.venue-page.theme-warm .photo-grid a { border-radius: 22px; }
.venue-page.theme-warm .venue-logo { border-radius: 50%; }

/* Poster: a tall cover with the name set large across its foot. */
.venue-page.theme-poster .town-hero { display: grid; align-items: end; min-height: min(78vh, 720px); }
@media (max-width: 760px) { .venue-page.theme-poster .town-hero { min-height: 60vh; } }
.venue-page.theme-poster .town-hero::after, .venue-page.theme-poster .town-hero.has-cover::after,
.venue-page.theme-poster[class*="tint-"] .town-hero::after { background: linear-gradient(180deg, rgba(var(--venue-tint), 0) 25%, rgba(var(--venue-tint), 0.55) 55%, rgba(var(--venue-tint), 0.95) 100%); }
.venue-page.theme-poster .town-hero h1 { text-transform: uppercase; font-weight: 900; font-size: clamp(48px, 12vw, 128px); line-height: 0.88; letter-spacing: -0.045em; }
.venue-page.theme-poster .town-hero.has-cover .hero-in { padding-top: 40px; }
.venue-page.theme-poster .photo-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 4px; }
.venue-page.theme-poster .photo-grid a { border-radius: 2px; aspect-ratio: 4 / 5; }

/* Managing a venue from its own page (owner decisions 2026-10-14, plan P14; public/venue-manage.js): a bar in the Venue
   Manager's look for people who manage the venue or help run it, and Edit links on the parts their role may change. */
.manage-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px clamp(16px, 4vw, 32px); background: #101116; color: #ecedf2; border-bottom: 2px solid #a98bff; }
.manage-bar[hidden] { display: none; }
.manage-who { margin: 0; font-size: 14px; }
.manage-who strong::before { content: "● "; color: #a98bff; }
.manage-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.manage-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; color: #ecedf2; text-decoration: none; font-size: 14px; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); }
.manage-actions a:hover { background: rgba(255, 255, 255, 0.16); }
.manage-actions .manage-primary { background: #a98bff; color: #101116; }
.manage-actions .manage-primary:hover { background: #bda6ff; }
.manage-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: #ff7a7a; color: #101116; font-size: 12px; text-align: center; }
.manage-edit { display: inline-flex; align-items: center; min-height: 28px; margin-left: 6px; padding: 0 10px; border-radius: 999px; border: 1px dashed #a98bff; color: var(--link);
  font-size: 13px; font-weight: 600; text-decoration: none; vertical-align: middle; letter-spacing: 0; text-transform: none; }
.manage-edit:hover { background: rgba(169, 139, 255, 0.12); }
.is-tinted .manage-edit { color: #ffffff; border-color: rgba(255, 255, 255, 0.6); }
@media (max-width: 760px) { .manage-bar { position: static; } .manage-actions { width: 100%; } }
