/* chepstow.wales: one stylesheet, no build step. */

:root {
  --ink: #16181d;
  --ink-soft: #3a3e47;
  --muted: #646a75;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #e2ded4;
  --header: #16181d;
  --header-ink: #f6f4ef;
  --accent: #c8102e;        /* Welsh red */
  --accent-ink: #ffffff;
  --accent-soft: #fbe6e9;
  --green: #0b7a43;         /* Welsh green */
  --green-soft: #e1f3e8;
  --notice: #fff3cc;        /* community listing bar */
  --notice-ink: #4d3800;
  --notice-line: #ecd38a;
  --focus: #2b6cff;
  --radius: 12px;
  --shadow: 0 1px 3px rgb(0 0 0 / 0.07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1efe9;
    --ink-soft: #d0cdc5;
    --muted: #9da3ad;
    --paper: #111216;
    --card: #1b1d22;
    --line: #2c2f36;
    --header: #0a0b0d;
    --accent: #ff4d63;
    --accent-ink: #16181d;
    --accent-soft: #3a1a20;
    --green: #5fd394;
    --green-soft: #173325;
    --notice: #2d2511;
    --notice-ink: #f3dc9a;
    --notice-line: #4a3d18;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: 1.35rem; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--card); padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* Header ------------------------------------------------------------- */
.site-header { background: var(--header); color: var(--header-ink); }
.header-inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--header-ink); }
.brand-mark { width: 30px; height: 30px; color: #ff4d63; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-tld { color: #ff4d63; }
.lang-switch {
  margin-left: auto; color: var(--header-ink); font-weight: 700; font-size: 0.92rem; text-decoration: none;
  border: 1px solid #3a3e47; border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.lang-switch:hover { background: #262930; }
.header-search { margin-left: 0; flex: 0 1 280px; min-width: 0; }
.header-search input {
  width: 100%; border: 1px solid #3a3e47; background: #22252c; color: var(--header-ink);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 0.95rem;
}
.header-search input::placeholder { color: #9da3ad; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  white-space: nowrap; text-decoration: none; color: #c9c6be; padding: 6px 12px;
  border-radius: 999px; font-weight: 600; font-size: 0.95rem;
}
.nav a:hover { color: #fff; background: #262930; }
/* Ten links in one row: a little tighter so they fit a 1280px-wide screen. */
.nav-full { gap: 2px; }
.nav-full a { padding: 6px 10px; font-size: 0.9rem; }
.nav a[aria-current="page"] { color: #16181d; background: var(--header-ink); }
.nav-sep { flex: none; width: 1px; margin: 6px 6px; background: #3a3d45; }
.nav a.nav-minor { font-weight: 500; color: #9d9a92; }
.nav a.nav-minor[aria-current="page"] { color: #16181d; }
/* Phones: the current section as a pill, then a "More" pill tucked behind it
   that opens every link in a panel. */
.nav-compact { display: none; position: relative; align-items: center; padding-bottom: 10px; }
@media (max-width: 899px) {
  .nav-full { display: none; }
  .nav-compact { display: flex; }
}
.nav-current {
  position: relative; z-index: 1; white-space: nowrap; text-decoration: none;
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  color: #16181d; background: var(--header-ink);
}
.nav-more { display: block; }
/* The current pill and "More" are one button: tapping either opens the menu. */
.nav-more summary { display: inline-flex; align-items: center; list-style: none; cursor: pointer; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-compact .nav-more summary::after, .nav-compact .nav-more[open] summary::after { content: none; }
.nav-more-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border: 1px solid #4a4e57; border-radius: 999px;
  color: #c9c6be; font-weight: 600; font-size: 0.95rem; white-space: nowrap;
}
.nav-more[open] .nav-more-label { color: #fff; border-color: #c9c6be; }
/* The left end runs on under the current pill, so the two read as one control. */
.nav-current + .nav-more-label { margin-left: -26px; padding-left: 38px; border-radius: 0 999px 999px 0; border-left: 0; }
.burger { width: 14px; height: 12px; flex: none; }
.nav-panel a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-panel .chip-minor { font-weight: 500; }
.nav-panel-break { flex-basis: 100%; height: 0; margin: 2px 0; border-top: 1px dashed var(--line); }

/* Listing pages: the nav moves out of the header into the top of the sticky
   filter bar, so it stays in view while scrolling. */
.has-bar-nav .site-header .nav, .has-bar-nav .site-header .nav-compact { display: none; }
.bar-nav { background: var(--header); margin: -14px 0 14px; padding-top: 10px; }
.bar-nav .nav { padding-bottom: 10px; }
.filter-bar-nav-only { padding-bottom: 0; }
.filter-bar-nav-only .bar-nav { margin-bottom: 0; }
@media (max-width: 560px) {
  .bar-nav { padding-top: 6px; margin-bottom: 12px; }
  .bar-nav .nav, .bar-nav .nav-compact { padding-bottom: 8px; }
}

@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; }
  .header-search { order: 3; flex: 1 0 100%; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 26px; height: 26px; }
  .lang-switch { padding: 5px 10px; }
}

/* Hero --------------------------------------------------------------- */
.hero { background: var(--header); color: var(--header-ink); padding: 28px 0 32px; }
.hero h1 { margin-bottom: 8px; }
.hero-small { padding: 20px 0 28px; }
.hero-sub { margin: 0; color: #c9c6be; font-size: 1.1rem; max-width: 60ch; }

/* Filters ------------------------------------------------------------ */
.filter-bar { background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 0 10px; position: sticky; top: 0; z-index: 4; }
.when-tabs, .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.when-tabs::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.chips { margin-top: 8px; }
/* Wide screens: date tabs, every category chip and the on/off toggles inline.
   Narrower screens: a "When" button and a "Category" button, each opening a
   panel under the filter bar; the toggles sit at the foot of the Category panel. */
.filter-bar .wrap { position: relative; }
.filter-bar .chips { flex-wrap: wrap; row-gap: 6px; overflow-x: visible; }
.cat-inline, .toggles-inline { display: contents; }
.picker { display: none; }
@media (max-width: 899px) {
  .when-tabs, .cat-inline, .toggles-inline { display: none; }
  .when-tabs + .chips { margin-top: 0; }
  .picker { display: block; }
  .filter-bar { padding-bottom: 12px; }
}
.picker summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.picker summary::-webkit-details-marker { display: none; }
.picker { min-width: 0; max-width: 100%; }
.picker summary { max-width: 100%; }
/* Long names ("Yr holl gelfyddydau…") trim rather than run off a phone screen. */
.picker summary strong { color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.picker summary::after { content: "▾"; font-size: 0.8em; margin-left: 2px; }
.picker[open] summary::after { content: "▴"; }
.picker summary.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.picker summary.is-active strong { color: inherit; }
.when-picker { flex: none; }
/* Category always starts its own row, however short the chosen name. */
.when-picker + .cat-picker { flex-basis: 100%; }
.picker-badge {
  flex: none; margin-left: 2px; padding: 0 6px; border-radius: 999px; font-size: 0.75rem; line-height: 1.5;
  background: var(--green); color: var(--card);
}
.cat-panel .date-pick .tab, .cat-panel .tab-clear { padding: 5px 12px; font-size: 0.88rem; }
/* The on/off options: tick boxes under a divider, so they don't read as categories. */
.panel-toggles {
  flex-basis: 100%; display: flex; flex-direction: column; gap: 12px;
  margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.check { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.check-box {
  flex: none; width: 20px; height: 20px; border: 2px solid var(--ink-soft); border-radius: 5px;
  display: grid; place-items: center; background: var(--card);
}
.check[aria-current="true"] .check-box { background: var(--green); border-color: var(--green); }
.check[aria-current="true"] .check-box::after { content: "✓"; color: var(--card); font-size: 14px; font-weight: 800; line-height: 1; }
.cat-panel {
  position: absolute; left: 16px; right: 16px; top: calc(100% + 6px); z-index: 5;
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px;
  max-height: 60vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.18);
}
.tab, .chip {
  white-space: nowrap; text-decoration: none; border-radius: 999px; font-weight: 600;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
}
.tab { padding: 8px 16px; font-size: 0.98rem; }
.chip { padding: 5px 12px; font-size: 0.88rem; }
.tab:hover, .chip:hover { border-color: var(--ink-soft); }
.tab[aria-current="true"], .tab.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-toggle[aria-current="true"] { background: var(--green); border-color: var(--green); color: var(--card); }
.chip-sep { flex: none; width: 1px; background: var(--line); margin: 2px 4px; }
.date-pick { display: flex; }
.tab-clear { padding: 8px 13px; text-decoration: none; }
.date-pick label { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.date-pick input[type="date"] {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer;
}
.date-pick input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* Listings ----------------------------------------------------------- */
.results { padding-top: 20px; padding-bottom: 56px; }
.result-count { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }
/* A reminder above every list of events that listings can change. */
.check-note {
  margin: 0 0 14px; padding: 8px 12px; font-size: 0.88rem; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px;
}
.htmx-request .results { opacity: 0.55; transition: opacity 120ms; }
/* New listings fade in after a filter change. */
.whats-on .results { transition: opacity 180ms ease-out; }
.whats-on.htmx-added .results { opacity: 0.55; }
@media (prefers-reduced-motion: reduce) {
  .whats-on .results { transition: none; }
}

/* Promoted listing: a sidebar one card wide on wide screens (so four
   single-event days still fit beside it), after the list on narrower ones.
   With nothing to promote the listings take the full width: five across. */
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
.promoted { margin-top: 12px; }
.promoted-label {
  display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
/* Stands apart from the listings: hard border, solid offset shadow, taller image, bigger type.
   Always a full card, even on phones where other cards are compact rows. */
.promoted .card {
  max-width: 340px; margin-right: 6px; border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--accent);
}
.promoted .card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--accent); }
.promoted .card-link { display: block; }
.promoted .card-media { aspect-ratio: 3 / 2; min-height: 0; height: auto; border-bottom: 3px solid var(--ink); }
.promoted .card-initial { font-size: 6rem; }
.promoted .card-time { left: 10px; right: auto; bottom: 10px; font-size: 0.92rem; padding: 5px 12px; border-radius: 999px; }
.promoted .card-body { padding: 14px 16px 16px; }
.promoted .card-title {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em;
}
.promoted .card-where { margin-top: 4px; font-size: 1rem; }
.promoted .card-tags { margin-top: 12px; }
@media (min-width: 900px) {
  .results-layout.has-promoted { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 20px; align-items: start; }
  .promoted { margin-top: 20px; position: sticky; top: 140px; }
  .has-bar-nav .promoted { top: 230px; }  /* below the taller sticky bar */
  .promoted .card-media { aspect-ratio: 4 / 5; }
}
.day { margin-top: 20px; }
.day-heading {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em;
  padding-bottom: 8px; border-bottom: 3px solid var(--ink); margin-bottom: 16px;
}
.day-heading span { font-weight: 500; color: var(--muted); font-size: 1rem; margin-left: 6px; }
.day-heading-small { font-size: 1.1rem; border-bottom-width: 2px; margin-top: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card-grid-tight { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
/* Cards are kept cheap to paint so long listings scroll smoothly: one small
   shadow, no blur effects, and each card painted on its own (contain). */
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line); contain: content;
}
@media (hover: hover) {
  .card { transition: transform 120ms ease; }
  .card:hover { transform: translateY(-2px); }
}
.card-link { display: block; text-decoration: none; height: 100%; }
.card-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--hue, 350) 62% 46%), hsl(calc(var(--hue, 350) + 50) 58% 28%));
  display: grid; place-items: center;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
/* A pinned picture keeps that part in view wherever the browser crops it.
   Side and height are separate classes, so each sets its half of the position. */
.img-left, .img-right, .img-top, .img-bottom { object-position: var(--focus-x, center) var(--focus-y, center); }
.img-left { --focus-x: left; }
.img-right { --focus-x: right; }
.img-top { --focus-y: top; }
.img-bottom { --focus-y: bottom; }
.card-initial {
  font-family: var(--font-display); font-weight: 900; font-size: 5rem; line-height: 1;
  color: rgb(255 255 255 / 0.22); text-transform: uppercase; user-select: none;
}
.card-time {
  position: absolute; left: 10px; bottom: 10px; background: rgb(10 11 13 / 0.86); color: #fff;
  font-weight: 700; font-size: 0.85rem; padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 12px 14px 14px; }
.card-title { font-size: 1.08rem; font-weight: 750; margin: 0 0 2px; }
.card-where { margin: 0; color: var(--muted); font-size: 0.93rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.card-tags:empty { display: none; }
/* Phones: compact rows (thumbnail + text) so more fits on screen. */
@media (max-width: 560px) {
  .card-grid, .card-grid-tight { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .card-link { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
  .card-media { aspect-ratio: auto; min-height: 104px; height: 100%; }
  .card-initial { font-size: 2.6rem; }
  .card-time { left: 6px; right: 6px; bottom: 6px; width: fit-content; font-size: 0.75rem; padding: 2px 8px; border-radius: 8px; }
  .card-body { padding: 10px 12px; }
  .card-title { font-size: 1rem; }
  .card-tags { margin-top: 6px; }
}
/* What's on: days flow side by side and wrap, so a day with one or two
   events doesn't leave the rest of its row empty. A busy day is wider
   than the page, so it shrinks to a full row and its cards wrap inside it. */
@media (min-width: 561px) {
  .days { display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 16px; }
  .days .day { flex: 0 1 auto; min-width: 0; }
  .days .card-grid { display: flex; flex-wrap: wrap; gap: 16px; }
  .days .card { flex: 0 0 220px; }
  /* Weekday on one line, date below, so every heading is the same height
     and fits over a single card. width: 0 + min-width: 100% stops the
     heading from widening its day. */
  .days .day-heading {
    width: 0; min-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .days .day-heading span {
    display: block; margin: 2px 0 0; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis;
  }
  .days .day-heading-small span { font-size: 0.85rem; }
}

.card-note { margin: 6px 0 0; font-size: 0.88rem; font-weight: 600; color: var(--accent); }
.is-cancelled .card-title { text-decoration: line-through; }
.date-list .is-off > span:first-child { text-decoration: line-through; color: var(--muted); }
.date-list .is-past { opacity: 0.5; }
.date-list .is-off > span:last-child, .date-moved { color: var(--accent); font-weight: 700; }
.row-changes { margin: 4px 0 0; padding: 0; list-style: none; font-size: 0.86rem; color: var(--accent); font-weight: 600; }
.is-cancelled .card-media { filter: grayscale(1); opacity: 0.7; }

.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 2px 8px; border-radius: 6px;
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line);
}
.tag-free { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tag-regular { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag-alert { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.tag-quiet { background: transparent; }

/* Search: matching profiles fold away above the events. */
.search-profiles summary { list-style: none; cursor: pointer; }
.search-profiles summary::-webkit-details-marker { display: none; }
.search-profiles summary h2 { display: inline; margin: 0; font-size: 1.1rem; }
.search-profiles .count, .search-profiles .fold-toggle {
  display: inline-block; vertical-align: 2px; margin-left: 4px; white-space: nowrap;
  font-size: 0.8rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line);
}
.search-profiles .count { background: var(--paper); }
.search-profiles .fold-toggle { background: var(--card); color: var(--ink-soft); }
.search-profiles .fold-toggle::after { content: " ▾"; }
.search-profiles[open] .fold-toggle::after { content: " ▴"; }
.search-profiles .fold-open, .search-profiles[open] .fold-closed { display: none; }
.search-profiles[open] .fold-open { display: inline; }
.search-profiles[open] .row-list { margin-top: 12px; }
.empty { text-align: center; padding: 48px 16px; background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); margin-top: 16px; }
.empty-title { font-weight: 800; font-size: 1.2rem; }
.empty-secondary { margin-top: 4px; font-size: 0.95rem; }
.empty-secondary a { color: var(--ink-soft); }

/* Row lists (regulars, search) --------------------------------------- */
.weekday { margin-top: 28px; }
.weekday:first-child { margin-top: 0; }
.row-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.row { display: flex; gap: 16px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-time { flex: none; width: 64px; font-weight: 800; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title { font-weight: 750; text-decoration: none; }
.row-title:hover { text-decoration: underline; }
.row-sub { color: var(--muted); font-size: 0.92rem; }
.row-sub a { color: var(--ink-soft); }
.row-start { color: var(--ink-soft); font-weight: 600; }
.filter-bar .chips:first-child { margin-top: 0; }
.row-tags { flex: none; display: flex; gap: 6px; }
@media (max-width: 560px) {
  .row { flex-wrap: wrap; gap: 4px 12px; }
  .row-time { width: auto; }
  .row-tags { width: 100%; }
}

/* Detail pages ------------------------------------------------------- */
.detail-hero {
  position: relative; color: #fff; padding: 56px 0 28px; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--hue, 350) 62% 40%), hsl(calc(var(--hue, 350) + 50) 58% 20%));
}
.detail-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero:has(.detail-hero-img)::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / 0.8), rgb(0 0 0 / 0.15));
}
.detail-hero-inner { position: relative; z-index: 1; }
.detail-hero .hero-sub { color: rgb(255 255 255 / 0.85); }
.eyebrow { margin: 0 0 6px; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.eyebrow a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.hero-dates { font-weight: 700; margin: 10px 0 0; font-size: 1.1rem; }
/* Community listing: added by us, not the host. */
.community-bar { background: var(--notice); color: var(--notice-ink); border-bottom: 1px solid var(--notice-line); }
.community-bar .wrap { padding-top: 10px; padding-bottom: 10px; }
.community-bar p { margin: 0; font-size: 0.93rem; line-height: 1.45; }
.community-bar p + p { margin-top: 4px; }
.community-bar a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.status-banner {
  margin: 16px 0 0; background: var(--accent); color: var(--accent-ink); font-weight: 800;
  padding: 10px 16px; border-radius: var(--radius);
}

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 28px; padding-bottom: 56px; }
@media (max-width: 860px) { .detail-layout { grid-template-columns: minmax(0, 1fr); } }
.detail-section { margin-top: 28px; }
.detail-section:first-child { margin-top: 0; }
/* A section heading with filter chips to its right (wrapping below on narrow screens). */
.section-head { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 4px; margin-bottom: 4px; }
.section-head h2 { margin: 0; }
.section-head .chips { margin: 0; min-width: 0; padding-bottom: 0; }
.htmx-request.coming-up .days { opacity: 0.55; transition: opacity 120ms; }
.prose { max-width: 68ch; font-size: 1.05rem; }
.prose p { margin: 0 0 1em; }
.prose h2 { margin-top: 1.5em; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 20px; }
.facts > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.facts dt { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.panel h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.panel p { margin: 0 0 6px; }
.panel p:last-child { margin-bottom: 0; }
.panel address { font-style: normal; font-weight: 600; margin-bottom: 8px; }
.panel-quiet { background: transparent; border-style: dashed; font-size: 0.95rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours th { text-align: left; font-weight: 600; padding: 4px 0; color: var(--ink-soft); width: 45%; vertical-align: top; }
.hours td { padding: 4px 0; }
.hours small { color: var(--muted); }
.contact-list, .date-list { list-style: none; margin: 0; padding: 0; }
.contact-list li, .date-list li { padding: 4px 0; }
.date-list li { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 6px 0; }
.date-list li:first-child { border-top: 0; }

.button {
  display: inline-block; text-decoration: none; font-weight: 750; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; font-weight: 750;
}
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.share-button { display: inline-flex; align-items: center; gap: 8px; }
.share-button[hidden] { display: none; }
.share-icon { width: 18px; height: 18px; flex: none; }
.big-search { display: flex; gap: 8px; margin-top: 12px; max-width: 560px; }
.big-search input { flex: 1; min-width: 0; font: inherit; padding: 10px 16px; border-radius: 999px; border: 0; }

/* Calendar links ----------------------------------------------------- */
.calendar-links a { font-weight: 700; }
.fact-link { display: block; margin-top: 6px; font-size: 0.9rem; }
.calendar-links a::before { content: "📅 "; }
.subscribe-all { margin-top: 32px; text-align: center; }
.small { font-size: 0.88rem; }

/* Maps --------------------------------------------------------------- */
.map { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; z-index: 0; background: var(--line); }
.map-large { height: 340px; margin-bottom: 20px; }
.map-small { height: 200px; margin: 4px 0 8px; }
@media (max-width: 560px) { .map-large { height: 260px; } }
.leaflet-popup-content a { font-weight: 700; color: #16181d; }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--header); color: #c9c6be; padding: 32px 0; font-size: 0.95rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; }
.footer-inner p { margin: 0 0 4px; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--header-ink); }
.footer-small { color: #8a8f99; align-self: end; }
.footer-small a { white-space: nowrap; }
.footer-small .hashtag { color: var(--header-ink); font-weight: 700; white-space: nowrap; }
.site-footer a { color: var(--header-ink); }
