/* CT Tonight — dark blue, colorful, clean. Mobile first. */
/* Headings: Trivial (Yeah Noah, "every type of use allowed"). Body: Liberation Mono (open license). */
@font-face { font-family: 'Trivial'; src: url('/fonts/trivial-regular.otf?v=2') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Trivial'; src: url('/fonts/trivial-bold.otf?v=2') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Trivial'; src: url('/fonts/trivial-heavy.otf?v=2') format('opentype'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'Liberation Mono'; src: url('/fonts/liberation-mono-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Liberation Mono'; src: url('/fonts/liberation-mono-bold.ttf') format('truetype'); font-weight: 500 900; font-display: swap; }
@font-face { font-family: 'Mathmos'; src: url('/fonts/mathmos.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }   /* free for NON-commercial use only */
@font-face { font-family: 'LT Asus Pro'; src: url('/fonts/lt-asus-pro-regular.ttf') format('truetype'); font-weight: 100 500; font-display: swap; }
@font-face { font-family: 'LT Asus Pro'; src: url('/fonts/lt-asus-pro-bold.ttf') format('truetype'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: 'Negotiate'; src: url('/fonts/negotiate.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }   /* Typodermic freeware: web use OK, don't modify */
@font-face { font-family: 'Aron Grotesque'; src: url('/fonts/aron-grotesque.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
/* LT Superior: SIL Open Font License (free for commercial use). */
@font-face { font-family: 'LT Superior'; src: url('/fonts/lt-superior-regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'LT Superior'; src: url('/fonts/lt-superior-medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
/* Body + subheader font: any bold (600–900) uses Semi-bold, per the owner. The Bold file is intentionally not used. */
@font-face { font-family: 'LT Superior'; src: url('/fonts/lt-superior-semibold.otf') format('opentype'); font-weight: 600 900; font-display: swap; }
@font-face { font-family: 'Pixochrome'; src: url('/fonts/pixochrome.ttf') format('truetype'); font-weight: 100 900; font-display: swap;
  /* Pixochrome's space is too narrow (words run together), so spaces come from the fallback font; it also runs small. */
  unicode-range: U+0021-00FF; size-adjust: 112%; }
@font-face { font-family: 'Tellural'; src: url('/fonts/tellural-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Tellural'; src: url('/fonts/tellural-bold.ttf') format('truetype'); font-weight: 500 900; font-display: swap; }
@font-face { font-family: 'Tellural'; src: url('/fonts/tellural-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'SchoolKX'; src: url('/fonts/schoolkx.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'MinimaSSK'; src: url('/fonts/minima-ssk.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Disc Black'; src: url('/fonts/disc-black.ttf') format('truetype'); font-weight: 100 900; font-display: swap;
  /* Disc Black's & · – — › … are blank or unclear, so only letters/digits/basic punctuation use it; those symbols fall back. */
  unicode-range: U+0020-0025, U+0027-007E, U+00A0-00B6, U+00B8-00FF; }
@font-face { font-family: 'Howies Funhouse'; src: url('/fonts/howies-funhouse.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Liberation Mono'; src: url('/fonts/liberation-mono-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
:root {
  --bg: #0d2f57;
  --bg-deep: #081f3d;
  --on-bg: #ffffff;
  --on-bg-muted: #b6cde6;
  --link-on-bg: #7dd3fc;
  --bg-2: #e0f0fd;
  --surface: #dbeafe;        /* light blue inside cards / info blocks */
  --surface-2: #cde0fb;      /* hover / header rows inside surfaces */
  --ink: #0c2d48;
  --ink-2: #284a66;
  --muted: #5d7186;
  --line: #b9d3ef;
  --line-strong: #a3c4e8;
  --primary: #0284c7;
  --primary-ink: #ffffff;
  --primary-soft: #e0f2fe;
  --accent-1: #0ea5e9;
  --accent-2: #7c3aed;
  --accent-3: #db2777;
  --accent-4: #f59e0b;
  --success: #059669;
  --warn: #b45309;
  --danger: #dc2626;
  --rainbow: linear-gradient(90deg, #0ea5e9, #7c3aed 40%, #db2777 70%, #f59e0b);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(12, 45, 72, .06), 0 4px 18px rgba(2, 132, 199, .08);
  --shadow-lg: 0 10px 40px rgba(2, 132, 199, .18);
  --header-h: 60px;
  --tabbar-h: 0px;
  --font: 'LT Superior', system-ui, sans-serif;
  /* previous body font, kept for easy switching back: 'Liberation Mono', ui-monospace, Consolas, 'Courier New', monospace */
  --font-display: 'Trivial', system-ui, sans-serif;
  --font-sub: 'LT Superior', system-ui, sans-serif;   /* subheaders: event names, card headings (Semi-bold) — also tried: Mathmos */
  --font-sub-weight: 600;
  /* body fonts tried: 'LT Superior', 'LT Asus Pro', 'Negotiate', 'Aron Grotesque', 'LT Superior', 'Pixochrome', 'Tellural', 'SchoolKX', 'MinimaSSK', 'Disc Black', 'Howies Funhouse', 'Liberation Mono', 'Trivial' */
  --link: var(--link-on-bg);
}
@media (max-width: 767px) { :root { --tabbar-h: 62px; --header-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--on-bg); font: 16px/1.5 var(--font);
  background: radial-gradient(1200px 600px at 85% -10%, rgba(124, 58, 237, .28), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(14, 165, 233, .22), transparent 60%), var(--bg);
  background-attachment: fixed;
  --muted: var(--on-bg-muted);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: #bae6fd; }
/* White surfaces keep dark text; everything sitting on the blue page background is white. */
.card, .ev-list, .when-card, .facts, .remind-box, .cal-cta, .cat-tile, .site-header, .tabbar, .submit-bar, dialog, .combo-list, .cat-results, .notice, .pcard, .search-drop-list, .tp-panel {
  color: var(--ink); --muted: #5d7186; --link: var(--primary);
}
.card a:hover, .ev-list a:hover, .facts a:hover, .remind-box a:hover, .cal-cta a:hover, dialog a:hover, .submit-bar a:hover { color: #0369a1; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
/* Line breaks: headings split into even lines; paragraphs avoid a lone last word. */
h1, h2, h3, .ev-main h3 a, .wc-date { text-wrap: balance; }
p, dd, li, .hint, .ev-desc, .hero-note, .lead { text-wrap: pretty; }
b, strong { font-weight: 600; } /* bold text uses LT Superior Semi-bold, same as subheaders (the full Bold looked too heavy) */
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center-page { text-align: center; padding-top: 60px; padding-bottom: 60px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(2, 132, 199, .55); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- PLACEHOLDER icons (final designs TBD — see js/lib/icons.js) */
.cat-ico { --c: var(--primary); display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px;
  background: var(--c); color: #fff; font: 800 .72rem/1 var(--font); object-fit: contain; }
img.cat-ico { background: none; }
.ui-ico { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.16em; margin-right: 5px; flex: none; }
.btn .ui-ico { margin-right: 0; }
.ev-venue .ui-ico, .ev-meta .ui-ico { color: var(--muted); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header::before { content: ''; display: block; height: 4px; background: var(--rainbow); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 800 1.35rem/1 var(--font-display); letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--primary); color: #fff; display: grid; place-items: center; font: 800 .8rem/1 var(--font); letter-spacing: 0; }
.logo b { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: none; gap: 4px; margin-left: 12px; }
.main-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.main-nav .nav-short { display: none; }
@media (max-width: 959px) { .main-nav .nav-long { display: none; } .main-nav .nav-short { display: inline; } .main-nav a { padding: 8px 10px; } }
.main-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.main-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.header-cta { margin-left: auto; }
@media (min-width: 768px) { .main-nav { display: flex; } }

.btn-submit {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff !important;
  background: linear-gradient(135deg, #0284c7, #7c3aed); font-weight: 700; padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, .3); white-space: nowrap; transition: transform .15s, box-shadow .15s;
}
.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 58, 237, .38); }

/* mobile tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; }
.tabbar .ui-ico { width: 22px; height: 22px; margin: 0; }
.tabbar a[aria-current="page"] { color: var(--primary); }
.tabbar .tab-plus { background: linear-gradient(135deg, #0284c7, #7c3aed); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
@media (min-width: 768px) { .tabbar { display: none; } }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 48px; background: var(--bg-deep); color: #cfe3f5; font-size: .9rem; }
.site-footer::before { content: ''; display: block; height: 4px; background: var(--rainbow); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; padding: 32px 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font: 700 1rem var(--font-display); margin: 0 0 8px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px; font-size: .8rem; color: #9fbcd6; }

/* ---------------------------------------------------------------- buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; min-height: 44px;
  border-radius: 11px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font: 600 .95rem var(--font);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #0369a1; border-color: #0369a1; color: #fff; }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: #fef2f2; border-color: var(--danger); color: var(--danger); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #047857; color: #fff; border-color: #047857; }
.btn-sm { min-height: 34px; padding: 6px 11px; font-size: .85rem; border-radius: 9px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.1rem; border-radius: 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row.is-wrapped { justify-content: center; }   /* set by common.js when the buttons spill onto a second line */
.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; }
.linklike:hover { color: var(--danger); }

input[type=text], input[type=email], input[type=url], input[type=search], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 11px; background: #fff;
  color: var(--ink); font: 16px/1.4 var(--font); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(2, 132, 199, .15); }
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230284c7' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; }
label { font-weight: 600; font-size: .92rem; }
.field { display: grid; gap: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .84rem; font-weight: 600; }
.req::after { content: ' *'; color: var(--accent-3); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.check select { width: auto; min-height: 36px; padding: 4px 30px 4px 10px; }
.stack { display: grid; gap: 14px; }
.grid-2 { display: grid; gap: 14px; }
.grid-3 { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; min-width: 0; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-group label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; background: #fff; }
.pill-group input { accent-color: var(--primary); margin: 0; }
.pill-group label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: #075985; }

/* ---------------------------------------------------------------- cards & chips */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
@media (min-width: 768px) { .card-pad { padding: 26px; } }
.chip {
  --c: var(--primary); display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 82%, #000); background: color-mix(in srgb, var(--c) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 25%, #fff);
}
.chip:hover { color: #fff; background: var(--c); }
.chip.plain { --c: #0284c7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0 0 0 4px; font-size: 1rem; line-height: 1; }
.notice { padding: 12px 16px; border-radius: 11px; background: var(--primary-soft); color: #075985; font-weight: 600; margin: 12px 0; }
.notice.warn { background: #fff7ed; color: var(--warn); }
.notice.ok { background: #ecfdf5; color: var(--success); }
.notice.err { background: #fef2f2; color: var(--danger); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; background: var(--primary-soft); color: #075985; }
.badge.live { background: #fee2e2; color: #b91c1c; }
.badge.live::before { content: '● '; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; z-index: 2; background: linear-gradient(160deg, rgba(14, 165, 233, .18) 0%, rgba(13, 47, 87, 0) 50%, rgba(219, 39, 119, .16) 100%); border-bottom: 1px solid rgba(255, 255, 255, .1); }
/* glow drawn inside the hero (no overflow clipping, so the signup's dropdowns can extend past the hero) */
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 520px at 92% 115%, rgba(124, 58, 237, .14), transparent 65%); }
/* Hero: everything centered */
.hero-inner { position: relative; z-index: 1; padding: 34px 16px 30px; display: flex; justify-content: center; }
@media (min-width: 900px) { .hero-inner { padding: 52px 16px 46px; } }
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.3rem); margin: 0; max-width: 900px; }
.hero h1 .grad { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: #dbeafe; max-width: 620px; margin: 0; }
.hero p.hero-about { font-size: 1.02rem; line-height: 1.6; max-width: 900px; }
.hero-about a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-about a:hover { color: #7dd3fc; }
.hero-submit { display: flex; justify-content: center; }
.hero-note { max-width: 640px; margin: 0; font-size: .85rem; line-height: 1.55; color: var(--on-bg-muted); }
.hero-card { padding: 16px 28px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; text-align: center; }
.hero-stats div { font: 800 1.6rem/1 var(--font-display); color: var(--primary); }
.hero-stats small { display: block; font: 600 .78rem var(--font); color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------------------------------------------------------------- filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.filter-bar > .field { flex: 1 1 200px; min-width: min(195px, 100%); }   /* never narrower than its text: the row wraps instead of cutting words off */
.filter-bar .field > label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.custom-range { display: none; flex-basis: 100%; gap: 8px 14px; grid-template-columns: 1fr 1fr; }
.custom-range.on { display: grid; }
.filter-extras { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: .88rem; }
.filter-extras .check { font-size: .88rem; }
.home-town { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.home-town select { width: auto; min-height: 32px; padding: 2px 28px 2px 8px; font-size: .85rem; }

/* ---------------------------------------------------------------- section headings */
.section { padding: 28px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head .emoji { font-size: 1.4rem; }

/* ---------------------------------------------------------------- event rows */
.ev-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; container-type: inline-size; }
.ev-row {
  display: grid; gap: 4px 14px; padding: 14px; border-top: 1px solid var(--line); position: relative;
  grid-template-columns: 84px 1fr; grid-template-areas: "poster when" "poster main";
  transition: background .12s;
}
.ev-row:first-child { border-top: 0; }
.ev-row:hover { background: var(--surface-2); }
.ev-row.cancelled { opacity: .6; }
.ev-poster { grid-area: poster; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--bg-2); align-self: start; }
.ev-poster { position: relative; }
.ev-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-ph {
  --c: #0284c7; width: 100%; height: 100%; min-height: 100%; display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #fff), color-mix(in srgb, var(--c) 95%, #000));
}
.poster-ph::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 50%),
  repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 8px, transparent 8px 16px); }
.poster-ph .ph-ico { position: relative; width: 40%; aspect-ratio: 1; border-radius: 22%; background: rgba(255, 255, 255, .9); color: var(--c); display: grid; place-items: center; font: 800 1.3rem/1 var(--font-display); }
.poster-ph img.ph-ico { object-fit: contain; padding: 12%; }
/* No flyer: the event name, poster-style */
.poster-ph { container-type: inline-size; }
.ph-title { position: relative; padding: 0 9%; text-align: center; color: #fff; font: var(--font-sub-weight) clamp(.72rem, 11cqi, 2.1rem)/1.15 var(--font-sub);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.poster-ph.big { aspect-ratio: 3 / 4; border-radius: var(--radius); }
.poster-ph.big .ph-ico { font-size: 3.5rem; width: 34%; }
.ev-main { grid-area: main; min-width: 0; }
.ev-main h3 { margin: 4px 0 2px; font-size: 1.08rem; line-height: 1.25; }
.ev-main h3 a { color: var(--ink); text-decoration: none; }
.ev-main h3 a:hover { color: var(--primary); }
.ev-main h3 a::after { content: ''; position: absolute; inset: 0; } /* whole row clickable */
.ev-main .chips, .ev-when a, .ev-when .share-btn { position: relative; z-index: 1; }
.ev-venue { margin: 0; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.ev-meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .8rem; color: var(--muted); font-weight: 600; }
.ev-desc { margin: 6px 0 0; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-when { grid-area: when; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; }
.ev-date { font: 800 1.12rem/1.1 var(--font-display); color: var(--ink); }
.ampm { font-size: .68em; position: relative; top: -.315em; top: calc(round(nearest, .315em, 1px) * -1); margin-left: .12em; letter-spacing: .02em; }   /* small raised AM/PM; its top lines up with the top of the numbers. Trivial snaps to whole pixels, so the raise is rounded to a whole pixel too (.67 cap height × (1/.68 − 1) ≈ .315em) */
.ev-time { font: 700 1.05rem/1.1 var(--font-display); color: var(--primary); }
.ev-price { font-weight: 800; color: var(--ink-2); font-size: .95rem; }
.ev-price.free { color: var(--success); }
.ev-when .btn { min-height: 34px; padding: 5px 12px; font-size: .85rem; }
/* Rows adapt to the width of their list (narrow browse column, calendar sidebar, phones), not the window. */
@container (max-width: 479px) { .ev-desc { display: none; } .ev-when .btn { display: none; }
  /* narrow rows keep a round icon-only Share button (phones use the share sheet) */
  .ev-when .btn.share-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 50%; margin-left: auto; align-self: center; }
  .ev-when .share-btn .sb-label { display: none; } .ev-when .share-btn .ui-ico { margin: 0; } }
@container (min-width: 640px) {
  .ev-row { grid-template-columns: 110px 1fr 190px; grid-template-areas: "poster main when"; padding: 16px 18px; gap: 18px; }
  .ev-when { flex-direction: column; align-items: flex-end; text-align: right; gap: 4px; align-self: center; }
  .ev-date { font-size: 1.3rem; }
  .ev-time { font-size: 1.3rem; }
  .ev-price { font-size: 1.1rem; }
}
.ev-empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty-ph { display: block; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 14px; background: var(--line); }
.ev-more { padding: 14px; text-align: center; border-top: 1px solid var(--line); }
.day-divider { padding: 8px 18px; background: linear-gradient(90deg, #bfd9f7, var(--surface)); font: 700 .82rem var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: #075985; border-top: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.day-divider:first-child { border-top: 0; }
.skeleton { height: 108px; border-top: 1px solid var(--line); background: linear-gradient(90deg, #f3f8fd 0%, #e9f3fc 50%, #f3f8fd 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- home: subscribe box */
.subscribe-box { position: relative; overflow: visible; background: linear-gradient(135deg, #0284c7, #6d28d9); color: #fff; border: 0; }
.subscribe-box h2 { color: #fff; }
.subscribe-box p { color: #e0f2fe; }
.subscribe-box label { color: #e0f2fe; }
.subscribe-box .muted { color: #bae6fd; }
.subscribe-box .pill-group label { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); color: #fff; }
.subscribe-box .pill-group label:has(input:checked) { background: #fff; color: #075985; border-color: #fff; }
.subscribe-box .btn-primary { background: #fff; color: #075985; border-color: #fff; }
.subscribe-box .btn-primary:hover { background: #f0f9ff; color: #075985; }
.subscribe-box details summary { cursor: pointer; font-weight: 700; color: #fff; }
.subscribe-box .form-msg.ok { color: #bbf7d0; }
.subscribe-box .form-msg.err { color: #fecaca; }
.subscribe-box .chip { --c: #fff; background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.home-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .home-grid { grid-template-columns: 1fr 360px; align-items: start; } .home-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cat-tile { --c: #0284c7; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); transition: transform .12s, box-shadow .12s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.cat-tile .cat-ico { width: 30px; height: 30px; font-size: .85rem; }

/* ---------------------------------------------------------------- browse layout */
.browse-wrap { padding-top: 16px; }
.browse-layout { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .browse-layout { grid-template-columns: 330px 1fr; height: calc(100vh - var(--header-h) - 4px - 32px); }
  .browse-layout > * { min-height: 0; }
}
.cat-sidebar { display: flex; flex-direction: column; overflow: hidden; }
.cat-sidebar-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.cat-tree { overflow-y: auto; padding: 6px; flex: 1; overscroll-behavior: contain; }
.cat-tree ul { list-style: none; margin: 0; padding: 0; }
.tree-root > .tree-row { font-weight: 500; }   /* category names: Medium, not bold (bold looked chunky) */
.tree-row { display: flex; align-items: center; gap: 4px; border-radius: 9px; }
.tree-row:hover { background: var(--surface-2); }
.tree-row.active { background: color-mix(in srgb, var(--c) 14%, #fff); }
.tree-row.active .tree-link { color: color-mix(in srgb, var(--c) 80%, #000); }
.tree-toggle { width: 30px; height: 34px; flex: none; border: 0; background: none; cursor: pointer; color: var(--muted); border-radius: 7px; font-size: .8rem; transition: transform .15s; }
.tree-toggle[aria-expanded="true"] { transform: rotate(90deg); }
.tree-link { flex: 1; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 2px; text-decoration: none; color: var(--ink); font-size: .88rem; min-width: 0; }
.tree-link .cat-ico { width: 22px; height: 22px; font-size: .7rem; }
.tree-link .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-link .count { margin-left: auto; font-size: .74rem; font-weight: 500; color: var(--muted); background: #fff; border-radius: 999px; padding: 1px 8px; }
.tree-link .count.zero { opacity: .45; }
.tree-subs { padding-left: 30px !important; margin-bottom: 4px !important; border-left: 2px solid color-mix(in srgb, var(--c) 30%, #fff); margin-left: 15px !important; }
.tree-subs .tree-link { font-weight: 400; padding-left: 8px; font-size: .88rem; }
.tree-subs[hidden] { display: none; }
.browse-main { display: flex; flex-direction: column; min-width: 0; gap: 12px; }
.browse-toolbar { padding: 14px; display: grid; gap: 10px; }
.search-box { position: relative; }
.search-box input { font-size: 1.02rem; min-height: 50px; padding-left: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d7186' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E") no-repeat 13px center / 18px 18px; }
.tp-search input { padding-left: 38px !important; background-size: 16px 16px; background-position: 12px center; }
.active-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; }
.crumb-trail { display: inline-flex; gap: 4px; align-items: center; flex-wrap: wrap; font-weight: 700; }
.crumb-trail a { text-decoration: none; }
.crumb-trail a:hover { text-decoration: underline; }
.scroll-pane { overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
@media (min-width: 900px) { .browse-results { flex: 1; min-height: 0; display: flex; flex-direction: column; } .browse-results .ev-list { flex: 1; min-height: 0; } }
@media (max-width: 899px) { .browse-results .scroll-pane { max-height: none; } }
.search-hits { padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.search-hits h4 { margin: 0 0 8px; font: 700 .78rem var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hit-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow-y: auto; }
.hit { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: .95rem; }
.hit:hover { background: var(--primary-soft); }
.hit a { text-decoration: none; font-weight: 700; color: color-mix(in srgb, var(--c) 80%, #000); }
.hit a:hover { text-decoration: underline; }
.hit .sep { color: var(--muted); }
.hit { align-items: flex-start; }
.hit .cat-ico { margin-top: 1px; }
.hit-path { flex: 1; min-width: 0; line-height: 1.35; }
.hit-path a { white-space: nowrap; }                /* keep "Music & Entertainment" together; wrap only at the › */
@media (max-width: 420px) { .hit-path a { white-space: normal; } }
.hit-count { flex: none; margin-left: 8px; font-size: .78rem; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.search-drop-list .hit-list { max-height: none; overflow: visible; }
.hit mark, .ev-row mark { background: #fef08a; color: inherit; padding: 0 1px; border-radius: 3px; }
.drawer-btn { display: none; }
@media (max-width: 899px) {
  .drawer-btn { display: inline-flex; }
  .cat-sidebar { position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px); z-index: 60; border-radius: 0; transform: translateX(100%); transition: transform .25s ease; padding-bottom: env(safe-area-inset-bottom); }
  .cat-sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .drawer-backdrop { position: fixed; inset: 0; background: rgba(12, 45, 72, .4); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
}
.drawer-close { display: none; }
@media (max-width: 899px) { .drawer-close { display: inline-flex; } }

/* ---------------------------------------------------------------- calendar */
.cal-wrap { padding-top: 16px; }
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-toolbar h1 { margin: 0; font-size: clamp(1.4rem, 3.5vw, 2rem); min-width: 220px; }
.cal-nav { display: flex; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 8px 6px; text-align: center; font: 700 .75rem var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal-day { min-height: 64px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; cursor: pointer; position: relative; background: var(--surface); text-align: left; font: inherit; color: inherit; border-top: 0; border-left: 0; display: flex; flex-direction: column; gap: 2px; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: var(--surface-2); }
.cal-day.other { background: #d3e3f7; color: #8aa3bd; }
.cal-day.past { background: repeating-linear-gradient(135deg, #d6e6fb 0 6px, #cfe1f8 6px 12px); }
.cal-day.today .dnum { background: var(--primary); color: #fff; }
.cal-day.selected { box-shadow: inset 0 0 0 2px var(--primary); z-index: 1; }
.dnum { font: 700 .85rem var(--font-display); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-dots { display: flex; flex-wrap: wrap; gap: 3px; padding: 0 2px; }
.cal-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); display: block; }
.cal-chip { display: none; }
.cal-more { font-size: .72rem; font-weight: 700; color: var(--muted); padding-left: 4px; }
@media (min-width: 768px) {
  .cal-day { min-height: 118px; padding: 6px; }
  .cal-dots { display: none; }
  .cal-chip { display: block; font-size: .74rem; font-weight: 600; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 75%, #000); border-left: 3px solid var(--c); text-decoration: none; }
  .cal-chip:hover { background: var(--c); color: #fff; }
}
.cal-layout { display: grid; gap: 16px; }
@media (min-width: 900px) { .cal-layout { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; } }
@media (min-width: 1250px) { .cal-layout { grid-template-columns: minmax(0, 1fr) 360px; } }
/* Narrow calendar cells (preview column beside them): tighter bars so more of each name shows. */
@media (min-width: 768px) and (max-width: 1249px) {
  .cal-day { padding: 4px 3px; }
  .cal-chip { font-size: .7rem; padding-left: 4px; }
  .cal-chip .cc-go { width: 15px; height: 15px; font-size: .72rem; border-radius: 3px; }
}
.cal-filters { margin-bottom: 12px; padding: 14px; position: relative; z-index: 20; display: grid; gap: 10px; }

/* ---------------------------------------------------------------- event page */
.event-page { padding-top: 16px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.ev-detail { display: grid; gap: 20px; }
@media (min-width: 860px) { .ev-detail { grid-template-columns: 380px 1fr; gap: 32px; align-items: start; } .ev-detail-poster { position: sticky; top: calc(var(--header-h) + 20px); } }
/* Whole poster at its own shape (4:5, 8.5×11, 11×17, 9:16 all fit); only extra-tall images get cropped, around the focus point. */
.ev-detail-poster img { display: block; width: 100%; height: auto; max-height: min(80vh, 760px); object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 859px) {
  .ev-detail-poster { max-width: min(100%, 420px); margin: 0 auto; }
  .ev-detail-poster img { max-height: 75vh; }
  .ev-detail-poster:has(.poster-ph) { max-width: none; }
  .poster-ph.big { aspect-ratio: 4 / 1; }
  .poster-ph.big .ph-ico { width: auto; height: 70%; font-size: 1.6rem; }
  .poster-ph.big .ph-title { font-size: clamp(1.1rem, 5cqi, 1.8rem); -webkit-line-clamp: 2; }
}
.ev-detail h1 { margin: 10px 0 14px; }
.when-card { display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 5px solid var(--primary); }
.wc-date { font: 800 1.45rem/1.15 var(--font-display); }
.wc-time { font: 700 1.3rem/1.2 var(--font-display); color: var(--primary); margin-top: 4px; }
.wc-time small { font-size: .7em; color: var(--muted); }
.wc-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.wc-price .btn { margin-left: auto; }
.nowrap { white-space: nowrap; }
.admin-card .ev-date { font-size: .95rem; color: var(--primary); margin-bottom: 2px; }
.price-tag { font: 800 1.45rem/1 var(--font-display); color: var(--ink); }
.price-tag.free { color: var(--success); }
.cal-cta { margin-top: 14px; padding: 16px; border-radius: var(--radius); background: linear-gradient(135deg, #e0f2fe, #ede9fe); }
.cal-cta-title { font-weight: 800; margin-bottom: 10px; }
.ev-section { margin-top: 24px; }
.ev-section h2 { font-size: 1.15rem; }
.ev-description { font-size: 1.02rem; color: #dbeafe; white-space: normal; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: 110px 1fr; gap: 12px 14px; margin: 0; padding: 18px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.facts dd { margin: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
.other-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.remind-box { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong); }
.remind-box h2 { margin-bottom: 2px; }
.remind-options { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.report-line { margin-top: 24px; font-size: .85rem; }

/* ---------------------------------------------------------------- submit form */
.form-page { padding-top: 24px; }
.form-section { padding: 20px; margin-bottom: 16px; }
@media (min-width: 768px) { .form-section { padding: 26px; } }
.form-section > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.form-section > h2 .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; color: #fff; background: var(--rainbow); flex: none; }
.cat-picker { position: relative; }
.cat-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin-top: 4px; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); }
.cat-results button { display: flex; width: 100%; align-items: center; gap: 8px; text-align: left; padding: 10px 12px; border: 0; background: none; font: inherit; cursor: pointer; border-bottom: 1px solid var(--line); }
.cat-results button:hover, .cat-results button.focus { background: var(--primary-soft); }
.cat-results .path-root { color: var(--muted); }
.cat-selected { display: grid; gap: 8px; margin-top: 10px; }
.cat-sel { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #eef5fe; border: 1px solid var(--line); }
.cat-sel .tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--line); color: var(--ink-2); }
.cat-sel .tag.main { background: var(--primary); color: #fff; }
.cat-sel .label { flex: 1; font-weight: 600; }
.cat-sel button { border: 0; background: none; cursor: pointer; color: var(--muted); font: 600 .8rem var(--font); }
.cat-sel button:hover { color: var(--primary); }
.poster-drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 20px; text-align: center; cursor: pointer; background: #eaf3fe; transition: border-color .15s, background .15s; display: grid; gap: 8px; justify-items: center; }
.poster-drop:hover, .poster-drop.drag { border-color: var(--primary); background: var(--primary-soft); }
.poster-preview { display: grid; gap: 12px; }
.poster-preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
/* crop pickers (one per shape): whole poster, dimmed outside the visible window, drag the circle */
.fp-help { margin: 0 0 12px; font-size: .9rem; color: var(--ink-2); }
.fp-grid { display: grid; gap: 18px; }
@media (min-width: 600px) { .fp-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.fp-one { margin: 0; display: grid; gap: 8px; justify-items: center; }
.fp-one figcaption { display: grid; text-align: center; font-size: .9rem; }
.fp-one figcaption span { font-size: .76rem; color: var(--muted); }
.fp-stage { position: relative; width: fit-content; max-width: 100%; overflow: hidden; border-radius: 10px; cursor: crosshair; touch-action: none; user-select: none; box-shadow: var(--shadow); }
.fp-img { display: block; max-width: 100%; max-height: 340px; }
.fp-window { position: absolute; pointer-events: none; border: 2px solid #fff; border-radius: 4px; box-shadow: 0 0 0 9999px rgba(8, 20, 40, .62); transition: left .05s, top .05s; }
.fp-nocrop .fp-window { box-shadow: none; border-color: transparent; }
.fp-dot { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; padding: 0; cursor: grab;
  border: 3px solid #fff; background: rgba(2, 132, 199, .45); box-shadow: 0 0 0 2px rgba(0, 0, 0, .45), 0 4px 14px rgba(0, 0, 0, .35); }
.fp-dot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff; }
.fp-stage.dragging .fp-dot { cursor: grabbing; transform: scale(1.1); }
.fp-dot:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.char-count { font-size: .8rem; color: var(--muted); text-align: right; }
.custom-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.submit-bar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 10; padding: 14px 16px; background: none; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 0 -16px; text-align: center; }
.submit-bar .btn-primary { box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }   /* floats over the form while scrolling */
.success-panel { text-align: center; padding: 40px 20px; }
.success-panel .big-emoji { font-size: 3.5rem; display: block; }

/* ---------------------------------------------------------------- modal */
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow-lg); color: var(--ink); }
dialog::backdrop { background: rgba(12, 45, 72, .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.x-btn { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; }
.x-btn:hover { background: var(--primary-soft); }

/* ---------------------------------------------------------------- prose pages */
.prose { padding-top: 28px; padding-bottom: 28px; } /* keep .container's side gutter */
.prose h1 { margin-bottom: 6px; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.prose .card { padding: 24px; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 20px); transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; transition: .2s; z-index: 100; pointer-events: none; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------------------------------------------------------------- admin */
.admin-wrap { padding-top: 16px; }
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.admin-tabs button { white-space: nowrap; }
.admin-tabs button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.admin-tabs .count { background: var(--accent-3); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 7px; margin-left: 4px; }
.admin-card { display: grid; gap: 14px; padding: 16px; border-top: 1px solid var(--line); }
.admin-card:first-child { border-top: 0; }
@media (min-width: 800px) { .admin-card { grid-template-columns: 120px 1fr 220px; } }
.admin-card .ev-poster { grid-area: auto; width: 100%; max-width: 120px; }
.admin-actions { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 799px) { .admin-actions { flex-direction: row; flex-wrap: wrap; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; font-size: .88rem; margin: 8px 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.meter { height: 12px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, #10b981, #0ea5e9); border-radius: inherit; }
.meter.hot > span { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { padding: 16px; }
.stat .big { font: 800 1.8rem/1 var(--font-display); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
.table-scroll { overflow-x: auto; }
.status { font-weight: 700; font-size: .78rem; text-transform: uppercase; }
.status.sent { color: var(--success); } .status.queued { color: var(--warn); } .status.failed { color: var(--danger); }
iframe.email-preview { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* ---------------------------------------------------------------- coming soon */
.coming { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(circle at 20% 10%, rgba(14, 165, 233, .35), transparent 40%), radial-gradient(circle at 85% 80%, rgba(124, 58, 237, .35), transparent 45%), radial-gradient(circle at 70% 20%, rgba(219, 39, 119, .25), transparent 35%), var(--bg); color: #fff; }
.coming h1 { font-size: clamp(2.6rem, 9vw, 5rem); margin: 16px 0 8px; }
.coming .grad { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.coming p { font-size: 1.2rem; color: #dbeafe; max-width: 520px; margin: 0 auto 12px; }

/* ---------------------------------------------------------------- searchable dropdown (js/combo.js) */
.combo { position: relative; }
.combo-input { padding-right: 34px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230284c7' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center !important; text-overflow: ellipsis; }
.combo-input::placeholder { color: var(--ink); opacity: .9; }
.combo-input:focus::placeholder { color: var(--muted); }
.combo-input:disabled { background-color: #f3f7fb !important; color: var(--muted); }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 70; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 4px; min-width: 220px; }
.combo-group { padding: 8px 10px 4px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); position: sticky; top: -4px; background: #fff; }
.combo-opt { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .95rem; }
.combo-opt:hover, .combo-opt.active { background: var(--primary-soft); }
.combo-opt.current { font-weight: 700; color: var(--primary); }
.combo-empty { padding: 10px; color: var(--muted); font-size: .88rem; }
.home-town .combo { min-width: 160px; }
.home-town .combo-input { min-height: 32px; padding: 2px 30px 2px 8px; font-size: .85rem; }

/* ---------------------------------------------------------------- home: centered filters + search */
.home-filters { margin-top: -18px; position: relative; z-index: 20; padding: 14px 16px 16px; }
.home-filters .filter-bar { justify-content: center; gap: 12px 16px; }
.home-filters .filter-bar > .field { max-width: 270px; }
.home-filters .filter-extras, .home-filters .custom-range { justify-content: center; }
.home-filters .custom-range { max-width: 560px; }
.search-bars { display: grid; gap: 12px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .search-bars { grid-template-columns: 1fr 1fr; } }
.browse-toolbar { position: relative; z-index: 20; }     /* search dropdown floats over the results */
.fbox-note { margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .8rem; line-height: 1.5; color: var(--muted); }
.browse-toolbar .drawer-btn { justify-self: start; }
.hero-submit { flex-wrap: wrap; gap: 12px; }
.btn-browse { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff !important; font-weight: 700; padding: 10px 18px;
  border-radius: 999px; border: 2px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-browse:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.hero-submit .btn-submit, .hero-submit .btn-browse { font-size: 1.1rem; padding: 14px 26px; }
.bar-field { display: grid; gap: 6px; min-width: 0; position: relative; }
.bar-field > label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* search dropdown (js/search-dropdown.js) */
.search-drop-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; z-index: 80; background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: min(70vh, 520px); overflow-y: auto; }
@media (min-width: 900px) { .search-drop-list { min-width: 460px; left: auto; } }
.sd-section { padding: 10px 12px 6px; }
.sd-section + .sd-section { border-top: 1px solid var(--line); }
.sd-head { font: 700 .72rem var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px 4px; }
.sd-empty { margin: 0 4px 6px; color: var(--muted); font-size: .9rem; }
.sd-event { display: grid; gap: 2px; padding: 8px 8px; border-radius: 9px; text-decoration: none; color: var(--ink); }
.sd-title { font-weight: 600; line-height: 1.3; }
.sd-meta { font-size: .82rem; color: var(--muted); }
.sd-path { font-size: .74rem; font-weight: 600; color: color-mix(in srgb, var(--c) 75%, #000); }
.sd-path::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.sd-event:hover, .sd-event.active, .search-drop-list .hit.active { background: var(--primary-soft); }
.sd-all { display: block; padding: 11px 16px; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; color: var(--primary); background: #f6faff; border-radius: 0 0 14px 14px; }
.sd-all:hover, .sd-all.active { background: var(--primary-soft); }
.search-split { display: grid; gap: 16px; }
@media (min-width: 860px) { .search-split { grid-template-columns: 300px 1fr; align-items: start; } }
.search-col { min-width: 0; }
.search-col h3 { font-size: 1rem; margin-bottom: 10px; }
.card.search-col { padding: 14px; }
.card.search-col .hit-list { max-height: 420px; }
.search-col .hit-empty { color: var(--muted); font-size: .9rem; padding: 6px 2px; }

/* ---------------------------------------------------------------- small-phone polish */
.logo { white-space: nowrap; }
@media (max-width: 480px) {
  .logo { font-size: 1.1rem; gap: 6px; }
  .logo-mark { width: 30px; height: 30px; }
  .header-inner { gap: 10px; }
  .btn-submit { padding: 9px 13px; font-size: .9rem; }
  .hero-card { padding: 12px 16px; }
  .hero-stats { gap: 18px; flex-wrap: nowrap; }
  .hero-stats div { font-size: 1.4rem; }
  .hero-stats small { font-size: .68rem; letter-spacing: .02em; }
}

/* ticket option pills (advance / at the door) */
.tpill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font: 700 .7rem/1.5 var(--font); letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; }
.tpill-advance { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
.tpill-door { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
.ev-price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
@container (min-width: 640px) { .ev-price-line { justify-content: flex-end; } }
.wc-price .tpill { font-size: .78rem; padding: 3px 11px; }

/* ---------------------------------------------------------------- home: cover-flow poster carousels (js/carousel.js) */
.carousel { --card-w: 250px; position: relative; }   /* cards are roughly playing-card shaped (5:7) */
@media (max-width: 600px) { .carousel { --card-w: min(70vw, 250px); } }
.car-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 10px max(16px, calc(50% - var(--card-w) / 2)) 18px; scrollbar-width: none; outline: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 3px solid rgba(125, 211, 252, .6); outline-offset: 2px; border-radius: 16px; }
.pcard { flex: 0 0 var(--card-w); scroll-snap-align: center; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 26px rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .25s ease, opacity .25s ease, box-shadow .2s; transform-origin: center; will-change: transform; }
.pcard:hover { color: var(--ink); box-shadow: 0 12px 34px rgba(0, 0, 0, .38); }
.pcard { position: relative; }
.pcard-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pcard-hit:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.pcard-share { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: transform .15s, background .15s; }
.pcard-share:hover { background: #fff; transform: scale(1.08); }
.pcard-share .ui-ico { width: 20px; height: 20px; margin: 0; }
.share-btn .on-touch, .share-btn .on-mouse { display: inline-flex; align-items: center; }
.share-btn .ui-ico { margin-right: 6px; }
.share-btn.icon-only .sb-label { display: none; }
.share-btn.icon-only .ui-ico, .pcard-share .ui-ico { margin-right: 0; }
.share-btn .on-touch { display: none; }   /* desktop: "Copy link" */
@media (pointer: coarse) { .share-btn .on-touch { display: inline-flex; } .share-btn .on-mouse { display: none; } }   /* phones: "Share" (opens the share sheet) */
.pcard.is-center { box-shadow: 0 14px 40px rgba(14, 165, 233, .35); }
.pcard-poster { position: relative; aspect-ratio: 1 / 1; background: var(--bg-2); overflow: hidden; }
.pcard-poster img, .pcard-poster .poster-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }   /* absolute so tall posters crop instead of stretching the card */
.pcard-poster .ph-ico { font-size: 2rem; }
.pcard-live { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.pcard-body { flex: none; height: 140px; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 12px 14px; }   /* fixed: every card is the same size */
.pcard-title { font-size: 1rem; line-height: 1.2; margin: 0; width: 100%; white-space: nowrap; overflow: hidden; }   /* shrunk to fit one line by fitOneLine() */
.pcard-title.wrap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .82rem; }   /* too long even at the minimum size: two small lines */
.pcard-title.wrap + .pcard-place span + span { display: none; }   /* …and drop the address line so the card stays the same size */
.pcard-place { display: grid; margin-top: 2px; font-size: .82rem; line-height: 1.3; font-weight: 500; color: var(--ink-2); max-width: 100%; }
.pcard-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: nowrap; justify-content: center; align-items: stretch; gap: 5px; max-width: 100%; }   /* lines up across cards */
/* time block: same box as the price block */
.time-block { display: grid; place-content: center; text-align: center; min-width: 62px; min-height: 46px; padding: 4px 9px; border-radius: 10px;
  background: #fff; border: 2px solid var(--primary); color: var(--primary); line-height: 1.05; }
.tb-main { font: 800 1.15rem/1.05 var(--font-display); white-space: nowrap; }
.tb-cap { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.pcard-empty { flex: 1; min-width: 100%; text-align: center; color: var(--on-bg-muted); padding: 30px 16px; scroll-snap-align: center; }
.pcard-empty .empty-ph { background: rgba(255, 255, 255, .15); }
.car-btn { position: absolute; top: 38%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.6rem; line-height: 1; box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  display: grid; place-items: center; transition: opacity .2s, transform .15s; }
.car-btn:hover { transform: scale(1.06); }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-prev { left: 4px; }
.car-next { right: 4px; }
.carousel.no-scroll .car-btn { display: none; }
@media (hover: none) { .car-btn { width: 38px; height: 38px; font-size: 1.3rem; } }
.pcard-loading { aspect-ratio: 5 / 7; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.16), rgba(255,255,255,.08)); background-size: 200% 100%; animation: shimmer 1.2s infinite; box-shadow: none; }
.home-grid > * { min-width: 0; }   /* let carousels scroll inside the column instead of widening the page */

/* ---------------------------------------------------------------- calendar: event bars with a go-button + hover preview */
.cal-main { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 768px) { .cal-chip { display: flex; align-items: center; gap: 2px; padding: 0 0 0 6px; cursor: pointer; } }   /* phones show dots instead */
.cal-chip .cc-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 0; }
.cal-chip .cc-go { flex: none; width: 20px; height: 20px; margin: 1px; display: grid; place-items: center; border-radius: 4px; text-decoration: none;
  font-weight: 800; font-size: .9rem; line-height: 1; color: #fff; background: var(--c); }
.cal-chip .cc-go:hover { filter: brightness(1.15); transform: scale(1.08); }
@media (min-width: 768px) { .cal-chip:hover { background: color-mix(in srgb, var(--c) 26%, #fff); color: color-mix(in srgb, var(--c) 80%, #000); } }
.cal-day:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.cal-preview { padding: 18px; min-height: 160px; scroll-margin-top: calc(var(--header-h) + 14px); }
@media (min-width: 900px) { .cal-preview { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; } }
.cal-preview-hint { margin: 0; color: var(--muted); text-align: center; padding: 30px 10px; }
.cal-preview-top { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; margin-bottom: 12px; }
.cal-preview-poster { grid-area: auto; width: 100%; }
.cal-preview h2 { margin: 6px 0 4px; font-size: 1.12rem; }
.cal-preview .chips { gap: 4px; }
.cp-back { margin-bottom: 10px; }
.cp-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cp-day-head h2 { margin: 0; }
.cp-day-list { display: grid; gap: 8px; }
.cp-day-item { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid var(--c);
  background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.cp-day-item:hover, .cp-day-item:focus-visible { background: var(--primary-soft); }
.cdi-time { font: 700 .9rem var(--font-display); color: var(--primary); }
.cdi-title { font-weight: 600; line-height: 1.25; }
.cdi-place { font-size: .8rem; color: var(--muted); }
.cp-when { font: 700 .95rem/1.3 var(--font-display); }
.cp-when span { display: block; color: var(--primary); }
.cp-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0; }
.cp-place { margin: 0 0 4px; }
.cp-meta { margin: 0 0 10px; font-size: .88rem; color: var(--muted); }
.cp-desc { font-size: .95rem; color: var(--ink-2); margin-bottom: 14px; white-space: pre-line; }

/* collapsed main-category search hits */
.hit-expand { flex: none; margin-left: 6px; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); border-radius: 999px;
  font: 600 .72rem var(--font); padding: 2px 9px; cursor: pointer; white-space: nowrap; }
.hit-expand:hover { color: var(--primary); border-color: var(--primary); }
.hit-expand[aria-expanded="true"] { background: var(--primary-soft); color: var(--primary); }
.hit-subs { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 4px 8px 8px 38px; }
.hit-subs[hidden] { display: none; }
.hit-subs a { font-size: .82rem; text-decoration: none; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--primary)) 10%, #fff);
  color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.hit-subs a:hover { border-color: var(--primary); color: var(--primary); }
.hit-subs .hit-count { margin-left: 2px; padding: 0; font-size: .7rem; }

/* ---------------------------------------------------------------- subheader font: event names + small headings
   Page/section headers (e.g. "December 2026", "Happening now & today") stay in --font-display. */
.ev-main h3, .pcard-title, .sd-title, .cdi-title, .cal-chip .cc-title, .cal-preview-top h2,
.ev-detail h1, .admin-card h3, .card h3, .search-col h3, .remind-box h2, .form-section > h2 {
  font-family: var(--font-sub);
  font-weight: var(--font-sub-weight);
}

/* ---------------------------------------------------------------- price: square block + pay-type blocks below */
.price-stack { display: inline-flex; flex-direction: row; align-items: stretch; gap: 6px; }   /* price block with pay types beside it, both the same height */
.price-block { display: grid; place-content: center; text-align: center; min-width: 62px; min-height: 52px; padding: 6px 8px;
  border-radius: 10px; background: #fff; border: 2px solid var(--ink); color: var(--ink); line-height: 1.05; }
.pb-main { font: 800 1.15rem/1.05 var(--font-display); white-space: nowrap; }   /* prices: header font */
.pb-cap { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 2px; }
.price-free { border-color: var(--success); color: var(--success); }
.price-free .pb-main, .price-donation .pb-main { font-size: 1rem; }
.price-donation, .price-suggested { border-color: #0d9488; color: #0f766e; }
.pay-blocks { display: flex; flex-direction: column; gap: 3px; }
.pay-blocks .pay-block { flex: 1; display: grid; place-items: center; }
.pay-block { display: block; text-align: center; padding: 3px 8px; border-radius: 7px; font: 700 .68rem/1.3 var(--font); white-space: nowrap; border: 1px solid transparent; }
.pay-door { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
.pay-advance { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
/* in event rows the price sits under the time; in wide rows the whole column is right-aligned */
.ev-when .price-stack { margin-top: 4px; }
@container (max-width: 639px) { .ev-when { align-items: flex-start; } .ev-when .price-block { min-height: 40px; min-width: 52px; padding: 4px 6px; } .ev-when .pb-main { font-size: 1rem; } }
.pcard-foot .price-block { min-height: 46px; min-width: 52px; padding: 4px 7px; }
.pcard-foot .pay-block { font-size: .62rem; padding: 2px 6px; }
.pcard-foot .time-block { padding: 4px 7px; min-width: 56px; }
.pcard-foot .pb-main { font-size: 1.15rem; }
.wc-price .price-block { min-width: 76px; min-height: 60px; }
.wc-price .pb-main { font-size: 1.35rem; }
.wc-price .pay-block { font-size: .75rem; }

/* ---------------------------------------------------------------- home: signup box in the hero, suggest line */
.home-suggest { text-align: center; color: var(--on-bg-muted); margin: 26px 0 0; }

/* ---------------------------------------------------------------- tree picker (js/tree-picker.js) */
.tp { position: relative; }
.tp-trigger { width: 100%; min-height: 46px; padding: 10px 36px 10px 12px; text-align: left; border: 1.5px solid var(--line-strong); border-radius: 11px;
  font: 16px/1.3 var(--font); color: var(--ink); cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230284c7' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; }
.tp-trigger:focus-visible, .tp-trigger[aria-expanded="true"] { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(2, 132, 199, .15); }
.tp-summary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 90; min-width: 280px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: min(70vh, 460px); overflow: hidden; }
.tp-search { padding: 10px 10px 6px; }
.tp-search input { min-height: 40px; font-size: .95rem; }
.tp-list { overflow-y: auto; padding: 4px 6px 8px; flex: 1; }
.tp-row { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 8px; border: 0; background: none; border-radius: 8px; cursor: pointer;
  font: 500 .93rem/1.25 var(--font); color: var(--ink); text-align: left; }
.tp-row:hover { background: var(--primary-soft); }
.tp-row.on { background: color-mix(in srgb, var(--c, var(--primary)) 16%, #fff); }
.tp-row input { width: 18px; height: 18px; flex: none; accent-color: var(--c, var(--primary)); margin: 0; }
.tp-row input:disabled + span { color: var(--muted); }
.tp-row .cat-ico { width: 22px; height: 22px; font-size: .7rem; }
.tp-all { border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.tp-head { display: flex; align-items: center; gap: 4px; }
.tp-head .tp-row { flex: 1; font-weight: 500; }
.tp-group { font-weight: 700; }
.tp-toggle { flex: none; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); border-radius: 999px; font: 600 .72rem var(--font);
  padding: 3px 9px; cursor: pointer; white-space: nowrap; }
.tp-toggle:hover, .tp-toggle[aria-expanded="true"] { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.tp-children { margin: 0 0 6px 19px; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--c) 45%, #fff); }
.tp-children .tp-row { font-weight: 400; padding: 6px 8px; }
.tp-children[hidden] { display: none; }
.tp-empty { padding: 14px; color: var(--muted); margin: 0; }
.tp-extra { border-top: 1px solid var(--line); padding: 10px 12px; }
.tp-near { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .88rem; color: var(--ink-2); }
.tp-near select.tp-near-r { width: auto; min-height: 36px; padding: 4px 28px 4px 10px; }
.tp-near .combo { flex: 1 1 140px; }
.tp-near .combo-input { min-height: 36px; }
.tp-foot { border-top: 1px solid var(--line); padding: 8px 10px; display: flex; justify-content: flex-end; }
.tp-chips { margin-top: 8px; }
.tp-chips:empty { display: none; }

/* ---------------------------------------------------------------- notification frequency checkboxes */
fieldset.freq { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset.freq legend { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 6px; }
.freq-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1.5px solid var(--line-strong); background: #fff;
  color: var(--ink); cursor: pointer; font-weight: 400; }
.freq-opt input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.freq-opt b { display: block; font-size: .98rem; }
.freq-opt small { display: block; font-size: .8rem; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.freq-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.subscribe-box .freq-opt { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.subscribe-box .freq-opt small { color: #dbeafe; }
.freq-note { display: block; font-size: .7rem; line-height: 1.35; font-style: italic; color: var(--muted); margin-top: 5px; }
.subscribe-box .freq-note { color: #bfdbfe; }
.subscribe-box .freq-opt:has(input:checked) { background: rgba(255, 255, 255, .22); border-color: #fff; }
.subscribe-box fieldset.freq legend { color: #fff; }
.subscribe-box .field-error { color: #fecaca; }
.tp-panel .tp-row, .tp-panel .tp-near, .tp-panel label { color: var(--ink); }   /* panels are white even inside the blue signup box */
.subscribe-box .tp-chips .chip { color: #fff; }

/* Expand arrows sit right after the category name (no badges, no count bubbles) */
.tp-head { gap: 0; }
.tp-head .tp-row { flex: 0 1 auto; width: auto; padding-right: 4px; }
.tp-toggle { border: 0; background: none; color: var(--muted); font-size: .95rem; line-height: 1; padding: 6px 8px; border-radius: 6px; }
.tp-toggle:hover, .tp-toggle[aria-expanded="true"] { background: var(--primary-soft); color: var(--primary); border: 0; }
.tp-children { margin-left: 18px; }
.hit-expand { border: 0; background: none; color: var(--muted); font-size: .9rem; line-height: 1; padding: 2px 6px; margin-left: 2px; border-radius: 6px; }
.hit-expand:hover, .hit-expand[aria-expanded="true"] { background: var(--primary-soft); color: var(--primary); border: 0; }
.hit-subs { padding-left: 12px; }
.tp-summary { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }   /* long picks wrap instead of being cut off */

/* ---------------------------------------------------------------- home: mailing-list band (full width, above the carousels) */
.signup-band { margin-top: 26px; position: relative; z-index: 20; display: grid; gap: 14px; }
.band-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; user-select: none; }
.band-toggle { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid #fff; background: rgba(255, 255, 255, .16);
  color: #fff; display: grid; place-items: center; padding: 0; cursor: pointer; transition: background .15s, transform .15s; }
.band-toggle svg { width: 30px; height: 30px; transition: transform .25s ease; }
.band-toggle:hover, .band-head:hover .band-toggle { background: rgba(255, 255, 255, .3); transform: scale(1.06); }
.band-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.band-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.band-intro h2 { margin: 0 0 4px; }
.band-intro p { margin: 0; }
@media (min-width: 820px) {
  /* row 1: email · event types · locations | row 2: how often (3 across) | row 3: spam check · sign up */
  .signup-band #sub-form { display: grid; gap: 14px 18px; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "email cat loc" "freq freq freq" "ts ts btn" "msg msg note"; }
  .signup-band #sub-prefs { display: contents; }
  .signup-band .band-email { grid-area: email; }
  .signup-band [data-field="categories"] { grid-area: cat; }
  .signup-band [data-field="locations"] { grid-area: loc; }
  .signup-band fieldset.freq { grid-area: freq; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .signup-band .turnstile-slot { grid-area: ts; }
  .signup-band button[type="submit"] { grid-area: btn; align-self: center; }
  .signup-band .form-msg { grid-area: msg; }
  .signup-band .band-note { grid-area: note; text-align: center; }
  .signup-band .freq-opt { height: 100%; }
}
