/* Helderberg Social — site styles. No build step; plain CSS with custom properties. */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #efece4;
  --text: #1c2431;
  --muted: #5b6573;
  --line: #e2ddd2;
  --brand: #0f4c5c;         /* deep sea */
  --brand-2: #1c7c8c;
  --accent: #f26b3a;        /* Helderberg sunset */
  --accent-2: #ffb35c;
  --green: #4f8a3c;         /* fynbos */
  --ok: #2e7d4f;
  --warn: #b35c00;
  --gold: #c99a1e;          /* featured events: border and badge */
  --gold-ink: #7a5600;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 8px 24px -12px rgba(20, 30, 40, .18);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151c; --surface: #171f28; --surface-2: #1f2933; --text: #e8edf2; --muted: #9aa7b5;
    --line: #2a3542; --brand: #5ec2d6; --brand-2: #8ad8e6; --accent: #ff8a5b; --accent-2: #ffc27a;
    --green: #7cc36a; --ok: #6fd39a; --warn: #f0a04b; --gold: #e2b440; --gold-ink: #f3cf6e;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f151c; --surface: #171f28; --surface-2: #1f2933; --text: #e8edf2; --muted: #9aa7b5;
  --line: #2a3542; --brand: #5ec2d6; --brand-2: #8ad8e6; --accent: #ff8a5b; --accent-2: #ffc27a;
  --green: #7cc36a; --ok: #6fd39a; --warn: #f0a04b; --gold: #e2b440; --gold-ink: #f3cf6e;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { width: min(1440px, 100% - 2rem); margin-inline: auto; }
/* Wide monitors: keep growing instead of leaving two thirds of the screen empty. */
@media (min-width: 1700px) { .wrap { width: min(1760px, 100% - 6rem); } }
.wrap-narrow { width: min(820px, 100% - 2rem); margin-inline: auto; }
section { padding: 2.5rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; flex: none; border-radius: 9px; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.logo .wordmark { font-family: var(--font-display); font-variation-settings: "opsz" 144; font-weight: 600; font-size: 1.5rem; line-height: 1; letter-spacing: -.025em; white-space: nowrap; }
.logo .wordmark em { font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -.01em; }
.site-footer .logo-mark { width: 30px; height: 30px; }
.site-footer .wordmark { font-size: 1.25rem; }
.nav { display: flex; gap: .15rem; margin-left: auto; align-items: center; }
.nav a { padding: .45rem .7rem; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .93rem; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--brand); color: #fff; }
.nav a.cta { background: var(--accent); color: #fff; margin-left: .35rem; }
.nav a.cta.alt { background: var(--brand); }
.nav a.signin { margin-left: .35rem; border: 1px solid var(--line); font-weight: 600; }
.nav a.signin:hover { border-color: var(--brand); background: var(--surface-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem .6rem; color: var(--text); font-size: 1.1rem; cursor: pointer; }
@media (max-width: 1150px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: .6rem 1rem 1rem; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { width: 100%; }
  .nav-check:checked ~ .nav { display: flex; }
}
/* The pages the API draws itself (api/chrome.go) run no script, so their menu
   opens with a checkbox instead of site.js's button. It stays focusable for
   the keyboard; the label is what shows. */
.nav-check { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.nav-check:focus-visible + .nav-toggle { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.05rem; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; background: var(--brand); color: #fff; line-height: 1.2; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.accent { background: var(--accent); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: .4rem .7rem; font-size: .85rem; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 1px; border-color: var(--brand); }
label { font-weight: 600; font-size: .88rem; display: block; margin-bottom: .3rem; }
.field { margin-bottom: 1rem; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.field.error input, .field.error select, .field.error textarea { border-color: #c0392b; }
.field .err { color: #c0392b; font-size: .8rem; margin-top: .3rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 2.75rem 0 3.25rem; color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255,179,92,.45), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(242,107,58,.35), transparent 60%),
    linear-gradient(160deg, #0b3a47, #0f4c5c 45%, #1c7c8c);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 70px; background: var(--bg);
  clip-path: polygon(0 100%, 0 70%, 12% 55%, 22% 65%, 33% 35%, 42% 50%, 52% 20%, 60% 45%, 70% 30%, 80% 60%, 90% 40%, 100% 65%, 100% 100%); opacity: .95; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 1.5rem 3rem; align-items: center; }
.hero h1 { color: #fff; max-width: 22ch; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: .3em; }
.hero .lead { font-size: 1.05rem; max-width: 72ch; color: rgba(255,255,255,.88); margin: 0 0 1rem; }
.searchbar { display: flex; gap: .5rem; max-width: 720px; background: rgba(255,255,255,.14); padding: .4rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.searchbar input { background: #fff; color: #1c2431; border: none; }
.searchbar .btn { flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.btn.whatsapp { background: #25d366; color: #0b2416; border-color: rgba(255,255,255,.35); }
.btn.whatsapp:hover { background: #2ee07a; filter: none; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; font-size: .85rem; color: rgba(255,255,255,.85); }
.hero-stats > div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: .7rem .9rem; }
.hero-stats b { font-size: 1.6rem; line-height: 1.1; display: block; font-family: var(--font-display); color: #fff; }
@media (max-width: 860px) {
  .hero { padding: 2.5rem 0 3rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .hero-stats > div { padding: .55rem .6rem; }
}
@media (max-width: 520px) { .hero-stats { grid-template-columns: 1fr 1fr; } }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.tile { display: flex; flex-direction: column; gap: .35rem; padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow); transition: transform .12s ease, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--brand); text-decoration: none; }
.tile .ic { font-size: 1.6rem; line-height: 1; }
.tile b { font-size: .92rem; }
.tile span { font-size: .78rem; color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform .12s ease, border-color .12s; }
.card:hover { transform: translateY(-2px); border-color: var(--brand); text-decoration: none; }
.card-art { height: 110px; position: relative; display: flex; align-items: end; padding: .7rem .9rem; color: #fff; font-size: 1.9rem; }
.card-art .type { position: absolute; top: .6rem; right: .7rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(0,0,0,.35); padding: .2rem .5rem; border-radius: 999px; }
.card-body { padding: .9rem .95rem 1rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.08rem; }
.card .meta { font-size: .82rem; color: var(--muted); display: flex; gap: .6rem; flex-wrap: wrap; }
.card .summary { font-size: .9rem; color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { margin-top: auto; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; padding-top: .3rem; }
.pill { display: inline-block; font-size: .74rem; padding: .2rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.pill.free { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); border-color: transparent; }
.pill.verified { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); border-color: transparent; }
.pill.status-paused, .pill.status-closed { background: var(--warn); color: #fff; border-color: transparent; font-weight: 600; }
.pill.status-closed { background: #b3261e; }
.pill.unverified { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border-color: transparent; }
.pill.promoted { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); border-color: transparent; }
.pill.spots { background: color-mix(in srgb, var(--brand-2, var(--brand)) 14%, transparent); color: var(--brand); border-color: transparent; font-weight: 600; }
.pill.spots.full { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.pill.spots.shut { background: var(--surface-2); color: var(--muted); font-weight: 400; }
/* Help bubbles: a small ? next to "Add a listing" and "Post an event". CSS
   shows them on hover/focus; site.js toggles .open for taps and Escape. */
.help { position: relative; display: inline-block; vertical-align: middle; margin-left: .15rem; }
.help-btn { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 700 .72rem/1 Inter, system-ui, sans-serif; cursor: pointer; padding: 0; }
.help-btn:hover, .help-btn:focus-visible, .help.open .help-btn { color: #fff; background: var(--brand); border-color: var(--brand); }
.help-bubble { display: none; position: absolute; z-index: 50; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%); width: min(22rem, calc(100vw - 2rem)); padding: .8rem .9rem; border-radius: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.14); font-size: .84rem; line-height: 1.45; text-align: left; font-weight: 400; }
.help-bubble b { display: block; font-size: .95rem; margin-bottom: .25rem; }
.help-bubble span { display: block; margin: 0 0 .45rem; }
.help-bubble .help-how { color: var(--muted); }
.help-bubble a { font-weight: 600; }
.help:hover .help-bubble, .help:focus-within .help-bubble, .help.open .help-bubble { display: block; }
.help-bubble::before { content: ""; position: absolute; top: -.4rem; left: 50%; width: .7rem; height: .7rem; transform: translateX(-50%) rotate(45deg); background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.nav .help { margin-left: -.35rem; }
.nav .help-bubble { left: auto; right: 0; transform: none; }
.nav .help-bubble::before { left: auto; right: 1rem; transform: rotate(45deg); }
.site-footer .help-bubble { top: auto; bottom: calc(100% + .5rem); left: 0; transform: none; }
.site-footer .help-bubble::before { top: auto; bottom: -.4rem; left: .6rem; transform: rotate(225deg); }
h1 .help-btn, h2 .help-btn { width: 1.5rem; height: 1.5rem; font-size: .85rem; vertical-align: middle; }
h1 .help-bubble, h2 .help-bubble { left: 0; transform: none; font-family: Inter, system-ui, sans-serif; }
h1 .help-bubble::before, h2 .help-bubble::before { left: .8rem; transform: rotate(45deg); }
/* Noticeboard */
.post-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.post .meta { font-size: .8rem; color: var(--muted); }
.post h3 { margin: 0; font-size: 1.1rem; }
.post p { margin: 0 0 .3rem; font-size: .92rem; }
.post .btn { align-self: flex-start; margin-top: auto; }
.post:target, .post.hit { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Filters */
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: .6rem; margin-bottom: .8rem; }
.filters-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .filters, .filters-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .filters, .filters-3 { grid-template-columns: 1fr; } }
/* Fingers, not cursors: taller small buttons and controls on touch screens. */
@media (pointer: coarse) { .btn.sm { padding: .55rem .85rem; } .filters select, .filters input { min-height: 42px; } }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: .35rem .75rem; font-size: .85rem; cursor: pointer; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: .9rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: none; background: var(--surface); color: var(--text); padding: .45rem .8rem; cursor: pointer; font: inherit; font-size: .88rem; }
.seg button.on { background: var(--brand); color: #fff; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Map */
.map { height: 460px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); }
.map.small { height: 280px; }
.leaflet-popup-content { font: 13px/1.4 var(--font-body); }
.leaflet-popup-content a { font-weight: 600; }

/* Events */
.event-list { display: grid; grid-template-columns: 1fr; gap: .7rem; }
/* Two columns of events once there is room for two comfortable rows. */
@media (min-width: 1300px) {
  #dated .event-list { grid-template-columns: 1fr 1fr; }
  #dated .event { grid-template-columns: 74px 1fr; }
  #dated .event .actions { grid-column: 2; justify-content: flex-start; margin-top: .2rem; }
}
.event { display: grid; grid-template-columns: 74px 1fr auto; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow); }
.event .date { text-align: center; background: var(--surface-2); border-radius: 10px; padding: .4rem .2rem; line-height: 1.1; }
.event .date b { display: block; font-size: 1.5rem; font-family: var(--font-display); }
.event .date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.event h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.event .meta { font-size: .82rem; color: var(--muted); }
.event .actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.event .actions .btn svg, .share-menu svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.cal-wrap { display: inline-flex; }
.cal-wrap .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-wrap .btn.ics { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; padding-inline: .55rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; }
.share-wrap { position: relative; display: inline-flex; }
.share-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .35rem; flex-direction: column; }
.share-menu.open { display: flex; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: .55rem; width: 100%; text-align: left; padding: .5rem .65rem; border-radius: 8px; border: none; background: none; color: var(--text); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: none; }
.share-menu a:hover, .share-menu button:hover { background: var(--surface-2); text-decoration: none; }
.event.hl { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent), var(--shadow); }
/* Paid to be featured (api/featured.go): a gold edge and a faint gold wash.
   The highlight above still wins when someone opens the event by its link. */
.event.featured { border: 2px solid var(--gold); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface) 55%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 16%, transparent), var(--shadow); }
.event.featured.hl { border-color: var(--accent); }
.pill.featured { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-ink); border-color: color-mix(in srgb, var(--gold) 45%, transparent); font-weight: 700; }
@supports not (color: color-mix(in srgb, red 50%, blue)) { .event.hl { box-shadow: 0 0 0 3px rgba(242, 107, 58, .3), var(--shadow); } }
@media (max-width: 600px) { .event { grid-template-columns: 64px 1fr; } .event .actions { grid-column: 1 / -1; justify-content: flex-start; } .share-menu { right: auto; left: 0; } }
/* A row is a summary and the whole of it opens in a sheet, so the row is
   clickable everywhere except on its own controls. */
.event { cursor: pointer; align-items: start; }
.event:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
@supports not (color: color-mix(in srgb, red 50%, blue)) { .event:hover { border-color: var(--brand); } }
.event .ev-main { min-width: 0; }
.event .meta { display: flex; flex-wrap: wrap; gap: .1rem .8rem; }
.event .meta .where { overflow-wrap: anywhere; }
.event .pills { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 0; }
.event .summary { margin: .4rem 0 0; font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event .actions { align-self: center; }

/* The sheet: the whole event, without leaving the list. */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(10, 16, 22, .55); }
.sheet-card { position: relative; z-index: 1; width: min(46rem, 100%); max-height: 88vh; overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); padding: 1.1rem 1.2rem 1.4rem; }
@media (min-width: 700px) { .sheet { align-items: center; padding: 2rem 1rem; } .sheet-card { border-radius: var(--radius); max-height: 86vh; } }
html.sheet-on, html.sheet-on body { overflow: hidden; }
.sheet-head { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: start; }
.sheet-head .date { text-align: center; background: var(--surface-2); border-radius: 10px; padding: .4rem .2rem; line-height: 1.1; }
.sheet-head .date b { display: block; font-size: 1.5rem; font-family: var(--font-display); }
.sheet-head .date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sheet-head h2 { margin: 0 0 .4rem; font-size: 1.3rem; font-family: var(--font-display); line-height: 1.2; }
.sheet-head .pills { display: flex; flex-wrap: wrap; gap: .3rem; }
.sheet-x { border: none; background: var(--surface-2); color: var(--text); width: 2rem; height: 2rem; border-radius: 999px; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.sheet-x:hover { background: var(--line); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem .9rem; margin: 1rem 0 0; padding: .8rem .9rem; background: var(--surface-2); border-radius: 12px; font-size: .92rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sheet-body { margin: 1rem 0 0; font-size: .95rem; line-height: 1.6; }
.sheet-body p { margin: 0 0 .7rem; }
.sheet-body p:last-child { margin-bottom: 0; }
.sheet-card .actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0 0; }
.sheet-card .actions .btn { white-space: nowrap; }
.sheet-card .share-menu { top: auto; bottom: calc(100% + 6px); }
.sheet-foot { margin: .9rem 0 0; }
@media (max-width: 480px) { .sheet-head { grid-template-columns: 52px 1fr auto; gap: .6rem; } .sheet-card { padding: .9rem .9rem 1.2rem; } .facts { grid-template-columns: 1fr; gap: 0; } .facts dt { margin-top: .5rem; } .facts dt:first-child { margin-top: 0; } }

.month-head { margin: 1.6rem 0 .6rem; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-body); font-weight: 700; }

/* Listing detail */
.detail-hero { padding: 2.5rem 0 1.5rem; }
.detail-hero .kicker { font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.panel h3 { margin-top: 0; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: .4rem .8rem; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.notice { border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); padding: .7rem .9rem; border-radius: 8px; font-size: .88rem; }
.notice.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.announce { background: var(--accent, #f26b3a); color: #fff; font-size: .9rem; font-weight: 500; }
.announce .wrap { padding: .5rem 1rem; }
.announce a { color: #fff; text-decoration: underline; margin-left: .4rem; }

/* Towns */
.town { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.town:nth-child(even) .town-art { order: 2; }
@media (max-width: 760px) { .town { grid-template-columns: 1fr; } .town:nth-child(even) .town-art { order: 0; } }
.town-art { height: 200px; border-radius: var(--radius); background: linear-gradient(135deg, var(--brand), var(--brand-2)); position: relative; overflow: hidden; }
.town-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: rgba(255,255,255,.12); clip-path: polygon(0 100%, 0 60%, 15% 40%, 30% 55%, 45% 20%, 60% 45%, 75% 30%, 90% 50%, 100% 35%, 100% 100%); }
.town ul { padding-left: 1.1rem; margin: .5rem 0 1rem; color: var(--muted); font-size: .92rem; }

/* CTA band */
.band { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: var(--radius); padding: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 .2rem; }
.band p { margin: 0; color: rgba(255,255,255,.88); }
.band .btn { background: #fff; color: var(--brand); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; margin-top: 2rem; color: var(--muted); font-size: .88rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.5rem; }
.site-footer .follow a { display: inline-flex; align-items: center; gap: .45rem; }
.site-footer .follow svg { width: 18px; height: 18px; fill: currentColor; }
/* The API's pages have no Follow column: its links live only in data.js. */
.site-footer.lean .wrap { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 900px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer .console-link { color: inherit; text-decoration: none; opacity: .35; padding: 0 .35rem; }
.site-footer .console-link:hover, .site-footer .console-link:focus { opacity: 1; }
.site-footer h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.site-footer a { color: var(--muted); }

/* Utilities */
.stack { display: grid; gap: .8rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem .8rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

/* Forms: subscribe / submit */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.choice { display: flex; gap: .5rem; flex-wrap: wrap; }
.choice label { display: flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; background: var(--surface); }
.choice input { width: auto; margin: 0; accent-color: var(--accent); }
.choice label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.subscribe-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: center; }
.subscribe-band form { display: flex; gap: .5rem; }
.subscribe-band form input { flex: 1; }
@media (max-width: 760px) { .subscribe-band { grid-template-columns: 1fr; } .subscribe-band form { flex-direction: column; } }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- The home page account card ---------- */
/* Two halves in one panel: the invitation on the left, and on the right the
   newsletter, which needs no account at all. Keeping them side by side is the
   point - the page must never imply that finding out what is on requires
   signing up for anything. */
.join { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem; align-items: start; padding: 1.5rem 1.6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 600; color: var(--accent); margin: 0; }
.join-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .65rem; }
.join-list li { position: relative; padding-left: 1.7rem; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.join-list li b { color: var(--text); font-weight: 600; }
/* A tick rather than a bullet: each line is something you get, not one item in
   a list of equals. Drawn from a rotated border so it costs no icon font. */
.join-list li::before { content: ""; position: absolute; left: .25rem; top: .38em; width: .45rem; height: .8rem; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.join-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .7rem; }
.join-aside { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.join-aside h3 { font-size: 1.05rem; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.2rem; } }
/* Venues (venue.js) */
.venue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.venue-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; padding: .7rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.venue-list li .pill { margin-left: auto; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
