/* carmeetscolorado.com */
:root {
  --bg: #f6f5f2;
  --bg-2: rgba(239, 237, 232, .15);
  --surface: rgba(255, 255, 255, .58);
  --surface-2: rgba(255, 255, 255, .48);
  --border: rgba(120, 110, 95, .42);
  --border-strong: rgba(120, 110, 95, .58);
  --glass: blur(10px) saturate(1.2);
  --text: #16181c;
  --text-2: #2f3238;
  --muted: #4a4e56;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(255, 90, 31, .12);
  --accent-text: #1a6ee8;
  --cta: #0b0c0e;
  --cta-hover: #2a2e35;
  --cta-press: #000000;
  --cta-edge: #0b0c0e;
  --hero-scrim: rgba(246, 245, 242, .74);
  --wash-top: rgba(246, 245, 242, 0);
  --wash: rgba(246, 245, 242, .06);
  --today: #ff5a1f;
  --shadow: 0 1px 2px rgba(20, 20, 30, .06), 0 8px 24px rgba(20, 20, 30, .06);
  --shadow-lg: 0 24px 60px rgba(10, 10, 20, .25);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --c-meet: #ff5a1f;
  --c-show: #3b82f6;
  --c-cars_and_coffee: #b7791f;
  --c-cruise: #0fa3a3;
  --c-racing: #e11d48;
  --c-track_day: #8b5cf6;
  --c-swap_meet: #4d9b2e;
  --c-auction: #c9a227;
  --c-club: #db2777;
  --c-other: #6b7280;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0f12;
    --bg-2: rgba(18, 21, 26, .15);
    --surface: rgba(22, 26, 32, .62);
    --surface-2: rgba(27, 32, 40, .52);
    --border: rgba(255, 255, 255, .22);
    --border-strong: rgba(255, 255, 255, .32);
    --text: #f3f1ec;
    --text-2: #dde0e5;
    --muted: #b4bac4;
    --accent-soft: rgba(255, 90, 31, .16);
    --accent-text: #5ea4ff;
    --cta-edge: rgba(255, 255, 255, .55);
    --hero-scrim: rgba(13, 15, 18, .66);
    --wash-top: rgba(13, 15, 18, .04);
    --wash: rgba(13, 15, 18, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0f12;
  --bg-2: rgba(18, 21, 26, .15);
  --surface: rgba(22, 26, 32, .62);
  --surface-2: rgba(27, 32, 40, .52);
  --border: rgba(255, 255, 255, .22);
  --border-strong: rgba(255, 255, 255, .32);
  --text: #f3f1ec;
  --text-2: #dde0e5;
  --muted: #b4bac4;
  --accent-soft: rgba(255, 90, 31, .16);
  --accent-text: #5ea4ff;
  --cta-edge: rgba(255, 255, 255, .55);
  --hero-scrim: rgba(13, 15, 18, .66);
  --wash-top: rgba(13, 15, 18, .04);
  --wash: rgba(13, 15, 18, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; }
/* site background: mountain + cars photo, washed so content stays readable */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
/* photo (sky extended upward) spans the width so all four cars stay in view; its top colour fills taller screens */
body::before { background: rgb(132 148 178) url("/bg.webp?v=2") center bottom / 100% auto no-repeat; filter: saturate(1.3) contrast(1.1) brightness(1.03); }
body::after { background: linear-gradient(180deg, var(--wash-top) 0, var(--wash) 70vh); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }

.wrap { width: 100%; max-width: 2400px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 64px); }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--text-2); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border); }
.btn--icon { padding: 0; width: 40px; }
.btn--sm.btn--icon { width: 36px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.06); border-color: var(--accent); }

/* ---------- top bar */
.topbar {
  position: relative; z-index: 30; width: 100%;
  background: #000; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
}
.topbar .btn--ghost { color: #fff; }
.topbar .btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); }
.topbar :focus-visible { outline-color: #5ea4ff; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand .brand__tld { color: #b8bcc4; }
.brand__logo { height: 50px; width: auto; display: block; }
.brand picture { flex: none; }
.brand { min-width: 0; }
.brand__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__actions { flex: none; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.brand__accent { color: var(--accent-text); }
.brand__tld { color: var(--muted); font-weight: 500; }
.topbar__actions { display: flex; gap: 4px; }

/* ---------- hero */
.hero { padding: 56px 0 28px; position: relative; overflow: hidden; isolation: isolate; }
/* readability: a soft wash behind the text side of the hero; the mountains stay clear on the right */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--hero-scrim) 0%, color-mix(in srgb, var(--hero-scrim) 70%, transparent) 38%, transparent 72%); }
.hero__line2 { color: var(--text); }
.hero__crumb { margin: 0 0 10px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--text-2); margin: 0 0 14px; }
.hero { text-shadow: 0 1px 14px color-mix(in srgb, var(--bg) 85%, transparent); }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.02; font-weight: 700; text-wrap: balance; }
.accent-text { color: var(--accent-text); }
.hero__sub { color: var(--text); font-weight: 500; font-size: clamp(15px, 1.6vw, 18px); max-width: 60ch; margin: 18px 0 0; width: fit-content;
  padding: 6px 12px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 80%, transparent); text-shadow: none; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.stats { display: flex; gap: 12px; margin: 28px 0 0; flex-wrap: wrap; }
.stat { text-shadow: none; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; min-width: 128px; box-shadow: var(--shadow); }
.stat dt { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat dd { margin: 2px 0 0; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.updated { color: var(--text); font-weight: 500; font-size: 13px; margin: 14px 0 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------- this week rail */
.rail-section { margin-top: 12px; }
.rail-box {
  border: 2px solid var(--accent-text); border-radius: 18px; padding: 16px 16px 4px;
  background: var(--surface-2); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-text) 18%, transparent);
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.section-head h2 { font-size: 20px; text-shadow: 0 1px 10px color-mix(in srgb, var(--bg) 85%, transparent); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 290px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 14px; margin: 0 -2px;
  scrollbar-width: thin; scrollbar-color: #d4d6da transparent;
}
.rail::-webkit-scrollbar { height: 8px; background: transparent; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: #d4d6da; border-radius: 999px; }
.rail::-webkit-scrollbar-thumb:hover { background: #bfc2c7; }
.rail > * { scroll-snap-align: start; }

/* ---------- event card */
.card {
  position: relative; display: flex; gap: 14px; text-align: left; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; cursor: pointer; box-shadow: var(--shadow);
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cat, var(--c-other)); }
.card__date { flex: none; width: 52px; text-align: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); padding: 6px 0; height: fit-content; }
.card__dow { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card__day { display: block; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.card__mon { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--accent-text); }
.card__body { min-width: 0; flex: 1; }
.card__title { font-weight: 650; font-size: 15px; line-height: 1.3; margin: 2px 0 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { color: var(--text-2); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card__meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.card__meta svg { width: 14px; height: 14px; color: var(--muted); }
.card__src { color: var(--muted); font-size: 12px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 650; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; color: var(--cat, var(--c-other));
  background: color-mix(in srgb, var(--cat, var(--c-other)) 14%, transparent);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- toolbar */
#calendar { margin-top: 28px; scroll-margin-top: 12px; }
.toolbar {
  position: relative; z-index: 20; padding: 12px 0 10px;
}
.toolbar__row { display: flex; gap: 10px; align-items: center; }
.search { backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; min-width: 0; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; height: 100%; }
select {
  height: 44px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  appearance: none; -webkit-appearance: none; cursor: pointer; max-width: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.seg { display: flex; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; height: 44px; flex: none; }
.seg button { border: 0; background: transparent; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--text-2); }
.seg button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 2px 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font-size: 13px; font-weight: 550; color: var(--text-2); white-space: nowrap;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--text-2)); }
.chip small { color: var(--muted); font-weight: 500; }
.chip[aria-pressed="true"] { border-color: var(--cat, var(--text)); color: var(--text); background: color-mix(in srgb, var(--cat, var(--text)) 12%, var(--surface)); }

/* ---------- month grid */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 12px; }
.cal-head__nav { display: flex; align-items: center; gap: 6px; }
.cal-head h2 { font-size: 24px; min-width: 9.5ch; text-align: center; border-radius: 12px; background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.month-btn { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 2px 14px; min-height: 40px; width: 100%; border-radius: 12px; cursor: pointer; }
.month-btn:hover { background: var(--surface-2); }
.grid-head { border-radius: 10px 10px 0 0; background: var(--surface); color: var(--text-2) !important; padding-top: 6px !important; margin-bottom: 4px; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); display: grid; grid-template-columns: repeat(7, 1fr); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 0 6px; }
.grid-head span { padding: 0 8px; }
.grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden;
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
}
.day {
  background: var(--surface); min-height: max(128px, 13vh); padding: 6px; display: flex; flex-direction: column; gap: 3px;
  border: 0; text-align: left; cursor: pointer; position: relative; min-width: 0;
  box-shadow: inset -1px -1px 0 var(--border); overflow: hidden;
}
.day:nth-child(7n) { box-shadow: inset 0 -1px 0 var(--border); }
.day:hover { background: var(--surface-2); }
.day--out { background: var(--bg-2); }
.day--out .day__num { color: var(--muted); opacity: .6; }
.day--weekend:not(.day--out) { background: color-mix(in srgb, var(--surface) 97.5%, var(--accent)); }
.day--selected, .day--selected:nth-child(7n) { box-shadow: inset 0 0 0 2px var(--accent); }
.day__num { font-size: 13px; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.day--today .day__num { background: var(--today); color: #fff; }
.day--past:not(.day--today) .pill { opacity: .55; }
.pill {
  display: block; font-size: 12px; line-height: 1.3; padding: 3px 6px 3px 7px; border-radius: 6px;
  background: color-mix(in srgb, var(--cat) 13%, transparent); border-left: 3px solid var(--cat);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); max-width: 100%;
}
.pill b { font-weight: 600; color: var(--text-2); margin-right: 4px; font-variant-numeric: tabular-nums; }
.more { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 6px; }
.dots { display: none; gap: 3px; flex-wrap: wrap; padding: 0 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--cat); }

.day-panel { margin-top: 18px; }
.day-panel h3 { font-size: 18px; margin: 0 0 10px; }
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ---------- list view */
.list-day { margin: 0 0 20px; }
.list-day__head {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 12px; border-radius: 10px; background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); margin-bottom: 8px; font-family: var(--display); font-size: 17px; font-weight: 650;
}
.list-day__head small { color: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 500; }
.list-day__head .tag { font-family: var(--font); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }

.empty { background: var(--surface-2); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); text-align: center; padding: 56px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2); margin-top: 12px; }
.empty__title { font-family: var(--display); font-size: 20px; font-weight: 650; color: var(--text); margin: 0 0 6px; }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- modal */
.modal { border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); color: var(--text); }
.modal::backdrop { background: rgba(5, 6, 8, .62); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal__card { position: relative; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); max-height: calc(100dvh - 24px); overflow-y: auto; }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(6px); }
.modal__media { aspect-ratio: 2.4 / 1; background: var(--surface-2); overflow: hidden; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 22px 24px 24px; }
.modal__body h2 { font-size: 26px; line-height: 1.15; margin: 10px 40px 14px 0; overflow-wrap: anywhere; }
.facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.facts svg { margin-top: 2px; color: var(--muted); }
.facts a { color: var(--text); font-weight: 550; }
.modal__desc { color: var(--text-2); margin: 0 0 18px; white-space: pre-line; overflow-wrap: anywhere; }
.modal__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.modal__links h3 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.modal__links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.modal__links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; font-size: 14px; }
.modal__links a:hover { border-color: var(--border-strong); }
.modal__links a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.modal__links a small { color: var(--muted); flex: none; margin-left: auto; }
.modal__links a svg { width: 14px; height: 14px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 60; box-shadow: var(--shadow-lg); }

/* ---------- footer */
.footer { margin-top: 64px; border-top: 1px solid var(--border); padding: 32px 0 44px; background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__inner > div:first-child { max-width: 560px; }
.footer__brand { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.footer .muted { font-size: 13px; margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 550; }
.footer__links a { text-decoration: none; color: var(--text-2); }
.footer__links a:hover { color: var(--text); }

/* ---------- shared bits for new features */
.count-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.section-note { font-size: 13px; color: var(--muted); text-shadow: 0 1px 8px color-mix(in srgb, var(--bg) 85%, transparent); }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.linklike:hover { text-decoration-color: currentColor; }
.notice { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; margin: 0 0 12px; }
.notice svg { width: 16px; height: 16px; margin-top: 1px; color: var(--accent-text); }
.notice a { color: var(--accent-text); font-weight: 600; }
.btn--danger { color: #fff; background: #c0392b; border-color: #c0392b; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crowd-mini { font-size: 11px; font-weight: 650; color: var(--accent-text); letter-spacing: .02em; }
.save-btn[aria-pressed="true"] { color: var(--accent-text); border-color: color-mix(in srgb, var(--accent-text) 50%, var(--border-strong)); }
.save-btn[aria-pressed="true"] svg { color: var(--accent-text); }

/* crowd filter row */
.chips__label { flex: none; align-self: center; height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--accent-text); }
.modal h2[tabindex="-1"]:focus { outline: none; }
.chips--crowd .chip[aria-pressed="true"] { border-color: var(--accent-text); color: var(--text); background: color-mix(in srgb, var(--accent-text) 14%, var(--surface)); }
.chip--follow svg { width: 14px; height: 14px; color: var(--accent-text); }
.chips--wrap { flex-wrap: wrap; overflow: visible; padding: 4px 0; }

/* weekly picks */
.picks-section { margin-top: 18px; }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pick {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
}
.pick::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cat, var(--accent)); }
.pick__top { display: flex; align-items: center; gap: 8px; }
.pick__num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; background: var(--accent-text); color: #fff; }
.pick__title { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.pick__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.pick__facts li { display: flex; gap: 6px; align-items: center; }
.pick__facts svg { width: 14px; height: 14px; color: var(--muted); }
.pick__price { font-weight: 650; color: var(--text); }
.pick__why { margin: 2px 0 0; font-size: 14px; color: var(--text); flex: 1; }
.pick__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* event modal additions */
.venue-link { font-weight: 600; color: var(--accent-text) !important; white-space: nowrap; }
.why { margin-top: 4px; font-size: 13px; }
.why summary, .quote summary, .more-opts summary { cursor: pointer; color: var(--accent-text); font-weight: 600; width: fit-content; }
.why ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); display: grid; gap: 4px; }
.byg { border-top: 1px solid var(--border); padding-top: 16px; margin: 0 0 20px; }
.byg h3, .garage-sec h3, .plan-day h3 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.byg__list { margin: 0; display: grid; gap: 2px; }
.byg__row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.byg__row:last-child { border-bottom: 0; }
.byg__row dt { font-weight: 650; font-size: 14px; }
.byg__row dd { margin: 0; font-size: 14px; color: var(--text); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.byg__row--missing dd { color: var(--muted); font-style: italic; }
.src { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.src--organizer { color: #0f7a4a; background: rgba(15, 122, 74, .12); }
.src--owner { color: var(--accent-text); background: color-mix(in srgb, var(--accent-text) 14%, transparent); }
.src--community { color: #9a6a00; background: rgba(201, 162, 39, .16); }
.src--listing { color: var(--text-2); background: var(--surface-2); }
.quote blockquote { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--border-strong); color: var(--text-2); font-size: 13px; white-space: pre-line; }
.byg__note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.byg__note a { color: var(--accent-text); }

/* panels (planner, garage) */
.modal--panel { max-width: min(720px, calc(100vw - 24px)); }
.modal--panel .modal__card { background: color-mix(in srgb, var(--bg) 86%, transparent); }
.modal--panel h2 { font-size: 24px; margin: 4px 40px 6px 0; }
.plan-sub { margin: 0 0 14px; font-size: 13px; }
.plan-empty { text-align: center; padding: 28px 8px; color: var(--text-2); }
.plan-empty svg { width: 34px; height: 34px; color: var(--accent-text); margin: 0 auto 6px; }
.plan-day { margin: 0 0 18px; }
.plan-day__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.plan-day__head h3 { margin: 0; font-family: var(--display); font-size: 18px; text-transform: none; letter-spacing: -.01em; color: var(--text); display: flex; gap: 8px; align-items: baseline; }
.plan-day__head .tag { font-family: var(--font); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.plan-day__tools { display: flex; gap: 6px; flex-wrap: wrap; }
.stops { list-style: none; margin: 0; padding: 0; }
.stop {
  position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 12px 12px 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
}
.stop::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cat); }
.stop--past { opacity: .6; }
.stop__time { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.stop__title { font-weight: 650; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.stop__addr { display: flex; gap: 5px; align-items: flex-start; margin: 4px 0 0; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.stop__addr svg { width: 14px; height: 14px; margin-top: 2px; color: var(--muted); }
.stop__links { display: flex; gap: 12px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.stop__links a { color: var(--accent-text); }
.stop__ctrl { display: flex; gap: 2px; }
.stop__ctrl .btn:disabled { opacity: .3; cursor: default; }
.leg { position: relative; padding: 8px 0 8px 46px; font-size: 13px; }
.leg__line { position: absolute; left: 24px; top: 0; bottom: 0; border-left: 2px dashed var(--border-strong); }
.leg__est { font-weight: 650; color: var(--text); }
.leg__label { color: var(--muted); }
.leg a { color: var(--accent-text); font-weight: 600; }
.leg__note { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0 0; color: var(--text-2); }
.leg__note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.leg--warn .leg__note { color: #9a6a00; }
.leg--conflict .leg__note { color: #c0392b; font-weight: 600; }
.leg--conflict .leg__line { border-color: #c0392b; }

/* forms */
.stack { display: grid; gap: 12px; max-width: 460px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field__label { font-size: 13px; font-weight: 600; }
.field__hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.field input, .field textarea, .garage-sec select, .admin input, .admin textarea, .admin select {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--surface) 80%, var(--bg)); font-size: 15px;
}
.field textarea, .admin textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-text); outline-offset: 0; border-color: transparent; }
.form-error { color: #c0392b; font-size: 13px; font-weight: 600; margin: 0; }
.toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-text); flex: none; }
.toggle strong { display: block; font-size: 14px; }
.seg--tabs { width: fit-content; margin: 12px 0 14px; }
.garage-sec { border-top: 1px solid var(--border); padding: 16px 0 4px; }
.garage-sec:first-of-type { border-top: 0; padding-top: 0; }
.garage-sec > * + * { margin-top: 10px; }
.garage-sec select { max-width: 240px; min-height: 38px; height: 38px; padding: 0 36px 0 12px; border-radius: 999px; }
.cars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.car { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.car:has(.car-form) { grid-template-columns: 1fr; }
.car__photo { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.car__photo--empty { display: grid; place-items: center; color: var(--muted); }
.car__photo--empty svg { width: 34px; height: 34px; }
.car__name { font-family: var(--display); font-weight: 700; font-size: 17px; margin: 0; }
.car__mods { margin: 2px 0 8px; font-size: 13px; color: var(--text-2); white-space: pre-line; }
.car-form { display: grid; gap: 10px; }
.car-form__row { display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 8px; }
.add-car summary { list-style: none; width: fit-content; }
.add-car summary::-webkit-details-marker { display: none; }
.add-car[open] summary { margin-bottom: 10px; }
.more-opts { margin-top: 10px; }
.more-opts > form { margin-top: 10px; }

/* ---------- venue, profile & admin pages */
.page-pad { padding-top: 28px; padding-bottom: 12px; }
.crumb { margin: 0 0 14px; font-size: 14px; }
.crumb a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.venue-head { margin: 0 0 22px; text-shadow: 0 1px 12px color-mix(in srgb, var(--bg) 85%, transparent); }
.venue-head h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.08; margin: 0 0 10px; overflow-wrap: anywhere; }
.venue-head__addr { display: flex; gap: 6px; align-items: center; font-weight: 500; margin: 0 0 14px; }
.venue-head__lead { max-width: 60ch; color: var(--text); font-weight: 500; margin: 0 0 12px; }
.verified-line { margin: 14px 0 0; font-size: 14px; }
.verified-line span { display: inline-flex; gap: 6px; align-items: center; }
.verified { display: inline-flex; gap: 4px; align-items: center; color: #0f7a4a; font-weight: 600; font-size: 12px; }
.verified svg { width: 14px; height: 14px; }
.venue-sec { margin: 0 0 18px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.venue-sec h2 { font-size: 20px; margin: 0 0 12px; }
.venue-sec h3 { font-size: 15px; margin: 0 0 8px; }
.empty-note { color: var(--text-2); margin: 0; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.photo figcaption { font-size: 13px; margin-top: 6px; display: grid; gap: 4px; }
.photo__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.facts-list { margin: 0; display: grid; }
.facts-list__row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.facts-list__row:last-child { border-bottom: 0; }
.facts-list dt { font-weight: 650; }
.facts-list dd { margin: 0; }
.facts-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fact__value { margin: 0 0 4px; overflow-wrap: anywhere; }
.fact__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--text-2); margin: 0 0 2px; }
.fact__meta a { color: var(--accent-text); }
.fact--pending { opacity: .75; }
.mod { margin-top: 6px; }
.legend { margin-top: 12px; font-size: 13px; }
.legend summary { cursor: pointer; color: var(--accent-text); font-weight: 600; }
.legend ul { margin: 8px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; color: var(--text-2); }
.contrib { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.venue-search { max-width: 520px; margin: 0 0 16px; }
.venue-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.venue-item { display: grid; gap: 4px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; box-shadow: var(--shadow); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.venue-item:hover { border-color: var(--border-strong); }
.venue-item__name { font-weight: 650; font-size: 15px; }
.venue-item__meta { font-size: 13px; color: var(--text-2); }
.venue-item__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.garage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.garage-card { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.garage-card img, .garage-card__ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.garage-card__ph svg { width: 48px; height: 48px; }
.garage-card__body { padding: 12px 14px 14px; }
.garage-card h2 { font-size: 18px; margin: 0 0 4px; }
.pick-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.pick-slot { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.admin select { height: 42px; border-radius: 10px; max-width: none; }
.admin > * + * { margin-top: 10px; }
.mod-item { padding: 12px 0; border-top: 1px solid var(--border); }
.mod-item blockquote { margin: 6px 0 10px; padding: 6px 10px; border-left: 3px solid var(--border-strong); }
.mod-photo { max-width: 320px; border-radius: 10px; margin: 6px 0 10px; }

/* ---------- quick discovery, distance, active filters */
.qchip {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); cursor: pointer;
  background: var(--surface); color: var(--text); font-weight: 650; font-size: 14px; text-shadow: none;
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); transition: background .15s, border-color .15s;
}
.qchip:hover { border-color: var(--accent-text); }
.qchip[aria-pressed="true"] { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.qchip[aria-busy="true"] { opacity: .6; cursor: progress; }
.submit-btn { min-height: 44px; padding: 0 20px; font-size: 15px; text-shadow: none; background: var(--cta); border: 1px solid var(--cta-edge); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); flex: none; white-space: nowrap; }
.submit-btn:hover { background: var(--cta-hover); border-color: var(--cta-edge); filter: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
/* white gap + blue ring: visible on the light page, the dark page and the photo */
.submit-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1a6ee8; }
.submit-btn:active { background: var(--cta-press); transform: scale(.97); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .5); }
.distance-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 100px auto; gap: 10px; align-items: end; margin: 12px 0 0;
}
.distance-panel .btn { height: 42px; }
.distance-panel select { max-width: none; height: 42px; border-radius: 10px; }
.distance-panel__msg, .distance-panel__choices, .distance-panel__note { grid-column: 1 / -1; margin: 0; }
.distance-panel__msg { font-size: 14px; color: var(--text-2); }
.distance-panel__msg:empty { display: none; }
.distance-panel__msg.is-error { color: #c0392b; font-weight: 600; }
.distance-panel__choices { display: flex; flex-wrap: wrap; gap: 8px; }
.distance-panel__choices:empty { display: none; }
.active-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent-text) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-text) 35%, var(--border)); }
.active-bar[hidden] { display: none; }
.active-bar__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.apill { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--accent-text); color: #fff; font-size: 13px; font-weight: 600; }
.apill__x { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.apill__x:hover { background: rgba(255, 255, 255, .32); }
.apill__select { height: 24px; padding: 0 22px 0 8px; border-radius: 999px; border: 0; font-size: 13px; font-weight: 700; color: var(--accent-text); background-color: #fff; background-position: right 5px center; background-size: 12px; max-width: none; }
.active-bar__note { flex-basis: 100%; margin: 2px 0 0; font-size: 12px; color: var(--text-2); }
.card__dist { font-weight: 650; color: var(--accent-text); }
.card--canceled .card__title { text-decoration: line-through; text-decoration-color: #c0392b; }
.card__src--org { display: inline-flex; gap: 4px; align-items: center; color: #0f7a4a; font-weight: 600; }
.card__src--org svg { width: 13px; height: 13px; }
.status-pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.status-pill--canceled { background: #c0392b; color: #fff; }
.status-pill--moved { background: #9a6a00; color: #fff; text-transform: none; letter-spacing: 0; }

/* ---------- event modal: status, origin, series, footer */
.status-banner { padding: 10px 12px; border-radius: var(--radius-sm); margin: 0 0 12px; font-size: 14px; }
.status-banner--canceled { background: rgba(192, 57, 43, .12); color: #a5281c; border: 1px solid rgba(192, 57, 43, .35); }
.status-banner--rescheduled { background: rgba(201, 162, 39, .14); color: #7a5300; border: 1px solid rgba(201, 162, 39, .4); }
.origin-line { font-size: 13px; color: var(--text-2); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.origin-line .src { display: inline-flex; gap: 4px; align-items: center; }
.origin-line .src svg { width: 12px; height: 12px; }
.org-contact { color: var(--text-2); }
.src--expected { color: #7a5300; background: rgba(201, 162, 39, .16); border: 1px dashed rgba(154, 106, 0, .55); }
.src--canceled { color: #fff; background: #c0392b; }
.series-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 18px; background: var(--surface-2); }
.series-box[hidden] { display: none; }
.series-box__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.series-box h3 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0; }
.series-box__rule { margin: 2px 0 0; font-weight: 650; }
.series-dates { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.series-dates a { color: var(--accent-text); font-weight: 600; }
.series-dates__expected { color: var(--text-2); font-style: italic; }
.follow-btn[aria-pressed="true"] { color: var(--accent-text); border-color: var(--accent-text); }
.modal__foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 18px; padding-top: 14px; font-size: 14px; }
.modal__foot .linklike { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); font-weight: 600; }
.modal__foot .linklike svg { width: 16px; height: 16px; }

/* ---------- forms (submit, report, claim, edit) */
.modal--small { max-width: min(520px, calc(100vw - 24px)); }
.submit-form { display: grid; gap: 16px; }
.submit-form .lead { margin: 0; color: var(--text-2); }
.submit-form fieldset, .radio-list { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.submit-form legend { font-family: var(--display); font-size: 16px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.submit-form fieldset + fieldset { border-top: 1px solid var(--border); padding-top: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid[hidden] { display: none; }
.field select, .submit-form select { width: 100%; max-width: none; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); }
.field input[type="file"] { padding: 8px; }
.field__error { color: #c0392b; font-size: 13px; font-weight: 600; }
.field__error:empty { display: none; }
.field [aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }
.req { color: #c0392b; }
.radio-list legend { margin-bottom: 4px; }
.radio { display: flex; gap: 10px; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 15px; }
.radio:has(input:checked) { border-color: var(--accent-text); background: color-mix(in srgb, var(--accent-text) 10%, var(--surface)); }
.radio input { width: 18px; height: 18px; accent-color: var(--accent-text); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.flyer-preview img { max-height: 200px; border-radius: 10px; border: 1px solid var(--border); }
.done { text-align: center; padding: 10px 4px; display: grid; gap: 10px; justify-items: center; }
.done h3 { font-size: 20px; margin: 0; }
.done p { margin: 0; color: var(--text-2); max-width: 52ch; }
.done .notice { text-align: left; }
.done .notice ul { margin: 6px 0 0; padding-left: 18px; }
.done__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 122, 74, .14); color: #0f7a4a; }
.done__icon svg { width: 28px; height: 28px; }
.toggle--sm { font-size: 13px; color: var(--text-2); }
.toggle--sm input { width: 18px; height: 18px; }
.follow-list, .confirm-list, .history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.follow-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.follow-item__main { display: grid; gap: 4px; min-width: 0; }
.follow-item__main p { margin: 0; font-size: 14px; }
.follow-item__expected { color: var(--text-2); font-style: italic; }
.confirm-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.history li { font-size: 13px; overflow-wrap: anywhere; }

/* ---------- admin tabs */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.admin-tabs button { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 650; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.admin-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.queue-item { padding: 14px 0; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.queue-item:first-of-type { border-top: 0; }
.queue-item h3 { font-size: 17px; margin: 0; }
.queue-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); }
.queue-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px 12px; font-size: 14px; margin: 0; }
.queue-grid dt { color: var(--muted); font-weight: 600; }
.queue-grid dd { margin: 0; overflow-wrap: anywhere; }
.private { background: rgba(192, 57, 43, .08); border-radius: 6px; padding: 0 4px; }
.queue-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.queue-actions input[type="text"], .queue-actions select { min-height: 36px; height: 36px; max-width: 260px; }
.dup-warn { border-left: 3px solid #c9a227; padding: 6px 10px; background: rgba(201, 162, 39, .1); border-radius: 0 8px 8px 0; font-size: 14px; }

/* ---------- responsive */
@media (max-width: 1000px) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .day { min-height: 104px; }
  .pill b { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .brand__logo { height: 44px; }
  .brand__name { font-size: 17px; }
  .hero { padding: 36px 0 18px; }
  .rail-box { padding: 12px 12px 2px; border-radius: 16px; }
  .stats { gap: 8px; }
  .stat { flex: 1; min-width: 0; padding: 10px 12px; }
  .stat dd { font-size: 22px; }
  .toolbar__row { flex-wrap: wrap; }
  .search { flex: 1 1 100%; order: -1; }
  select { flex: 1; max-width: none; }
  .grid-head span { padding: 0; text-align: center; }
  .day { min-height: 58px; padding: 4px 2px; align-items: center; }
  .day__num { width: 24px; height: 24px; font-size: 12px; }
  .pill, .more { display: none; }
  .dots { display: flex; justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .cal-head h2 { font-size: 20px; }
  .cal-head__nav { flex: 1; min-width: 0; }
  .cal-head__nav h2 { flex: 1; }
  .modal { max-width: 100vw; margin: auto 0 0; max-height: 92dvh; }
  .modal__card { border-radius: 20px 20px 0 0; max-height: 92dvh; }
  .modal__body { padding: 18px 18px 28px; }
  .modal__body h2 { font-size: 22px; }
  .modal__actions .btn { flex: 1 1 auto; }
  .modal__links a small { display: none; }
  .picks { grid-template-columns: 1fr; }
  .byg__row { grid-template-columns: 1fr; gap: 2px; }
  .stop { grid-template-columns: minmax(0, 1fr) auto; }
  .stop__time { grid-column: 1 / -1; }
  .car { grid-template-columns: 88px minmax(0, 1fr); }
  .car__photo { width: 88px; }
  .car-form__row { grid-template-columns: 80px 1fr; }
  .car-form__row .field:last-child { grid-column: 1 / -1; }
  .modal--panel h2 { font-size: 21px; }
  .distance-panel { grid-template-columns: minmax(0, 1fr) 96px; }
  .distance-panel .btn { grid-column: 1 / -1; }
  .form-grid, .queue-grid { grid-template-columns: 1fr; }
  .queue-grid dt { margin-top: 6px; }
  .follow-item { flex-direction: column; }
  .facts-list__row { grid-template-columns: 1fr; gap: 4px; }
  .contrib, .pick-slots { grid-template-columns: 1fr; }
  .venue-sec { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 440px) {
  .brand__tld { display: none; }
  .brand__logo { height: 38px; }
  .brand { gap: 6px; }
  .brand__name { font-size: 16px; }
  .topbar__actions { gap: 0; }
}
@media (max-width: 370px) {
  .brand__logo { height: 32px; }
  .brand { gap: 5px; }
  .brand__name { font-size: 15px; letter-spacing: -.04em; }
}

/* ---------- homepage hub: panels, regions, weekend, photos, newcomer, roundup */
.panel { border-radius: 18px; padding: 16px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.panel > .section-head { flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; }
.section-sub { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.hub-section { margin-top: 18px; }
.linkish { color: var(--accent-text); font-weight: 600; }
.region-nav { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.region-nav__title { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--text); padding: 6px 10px; border-radius: 999px; background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.region-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rchip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px; text-decoration: none; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.rchip:hover { border-color: var(--text-2); }
.rchip.is-current { background: var(--text); color: var(--bg); border-color: var(--text); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.feature { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.feature__media { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__ph { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cat, var(--c-other)) 85%, #000) 0%, color-mix(in srgb, var(--cat, var(--c-other)) 55%, #111) 100%); }
.feature__ph svg { width: 44px; height: 44px; opacity: .9; }
.feature__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.feature__title { font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.feature__why { margin: 0; font-size: 13.5px; color: var(--text); flex: 1; }
.feature__whysrc { color: var(--muted); font-size: 12px; }
.feature__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.empty--inline { margin: 0; padding: 24px 16px; grid-column: 1 / -1; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.pgrid__item { margin: 0; display: grid; gap: 4px; min-width: 0; }
.pgrid__btn { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); aspect-ratio: 1; display: block; width: 100%; }
.pgrid__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.pgrid__btn:hover img { transform: scale(1.03); }
.pgrid__item figcaption { font-size: 12px; color: var(--text-2); display: grid; gap: 1px; overflow-wrap: anywhere; }
.pgrid__item figcaption a { color: var(--text); font-weight: 600; }
.credit { color: var(--muted); }
.credit a { color: inherit; }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(6, 7, 9, .94); color: #f3f1ec; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .7); }
.lightbox__fig { margin: 0; padding: 56px 64px 20px; display: grid; gap: 10px; justify-items: center; max-width: 100%; }
.lightbox__fig img { max-width: min(1400px, 100%); max-height: calc(100dvh - 190px); object-fit: contain; border-radius: 8px; }
.lightbox__fig figcaption { max-width: 70ch; text-align: center; font-size: 14px; }
.lightbox__fig figcaption p { margin: 2px 0; }
.lightbox__fig a { color: #9cc4ff; }
.lightbox__credit, .lightbox__count { color: #b4bac4; font-size: 13px; }
.lightbox__btn { position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(20, 22, 26, .7); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(60, 64, 72, .85); }
.lightbox__btn:focus-visible { outline: 3px solid #5ea4ff; outline-offset: 2px; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

.community-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.community-row .panel { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.community-row .panel h2 { font-size: 22px; }
.community-row .panel p { margin: 0; color: var(--text); }
.community-row .eyebrow { margin: 0; }
.community-row .btn { width: fit-content; margin-top: auto; }
.newbie-points { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text-2); font-size: 14px; }
.roundup-card__intro { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.venue-links { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 6px 16px; font-size: 14px; }
.venue-links a { color: var(--text); font-weight: 650; }

/* map view */
.map-wrap { position: relative; }
.map { height: clamp(380px, 62vh, 780px); border-radius: var(--radius); border: 1px solid var(--border-strong); overflow: hidden; background: var(--surface-2); z-index: 0; }
.map-status { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; z-index: 500; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.map-status:empty { display: none; }
.map-note { font-size: 13px; color: var(--text-2); margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.map-note:empty { display: none; }
.map-pin { background: none; border: 0; }
.map-pin span { display: grid; place-items: center; width: 22px; height: 22px; margin: 4px; border-radius: 50%; background: #1a6ee8; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); color: #fff; font: 700 11px/1 var(--font); }
.map-pin--multi span { width: 28px; height: 28px; margin: 1px; background: #0b0c0e; }
.leaflet-marker-icon:focus-visible { outline: 3px solid #ff5a1f; outline-offset: 2px; border-radius: 50%; }
.map-pop { font: 13px/1.4 var(--font); color: #16181c; }
.map-pop__venue { font-weight: 700; font-size: 14px; margin: 0 0 4px !important; }
.map-pop__venue span { font-weight: 500; color: #4a4e56; }
.map-pop__count { margin: 0 0 6px !important; color: #4a4e56; }
.map-pop__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.map-pop__list li { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid #e5e2dc; }
.map-pop__when { font-size: 12px; color: #4a4e56; }
.map-pop__title { font-weight: 650; color: #16181c; text-align: left; }
.map-pop__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.map-pop__more { margin: 6px 0 0 !important; color: #4a4e56; font-size: 12px; }

@media (max-width: 900px) {
  .community-row { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, var(--hero-scrim) 0%, color-mix(in srgb, var(--hero-scrim) 75%, transparent) 70%, transparent 100%); }
}
@media (max-width: 720px) {
  .panel { padding: 12px; border-radius: 16px; }
  .lightbox__fig { padding: 60px 8px 16px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; }
  .region-nav__title { width: 100%; text-align: center; }
  .rchip { min-height: 34px; padding: 0 12px; font-size: 13px; }
}
@media (max-width: 560px) {
  .cal-head h2 { min-width: 0; }
  .month-btn { font-size: 18px; }
}

/* ---------- beginner guide */
.guide { max-width: 980px; }
.guide__head h1 { margin-bottom: 10px; }
.guide-callout { margin: 0 0 18px; padding: 16px 18px; border-radius: var(--radius); border: 2px solid var(--text); background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.guide-callout h2 { font-size: 18px; margin: 0 0 6px; }
.guide-callout p { margin: 0; }
.guide-toc { margin: 0 0 18px; }
.guide-toc h2 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.guide-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.guide-toc a { color: var(--text); font-weight: 600; }
.guide-sec { scroll-margin-top: 12px; }
.guide-sec p, .guide-sec li, .guide-sec dd { font-size: 15.5px; line-height: 1.6; }
.guide-sec ul { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0 0; }
.guide-sec a { color: var(--accent-text); font-weight: 600; }
.guide-note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid #c0392b; background: rgba(192, 57, 43, .08); border-radius: 0 10px 10px 0; }
.guide-dl { margin: 10px 0 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 8px 16px; }
.guide-dl dt { font-weight: 700; }
.guide-dl dd { margin: 0; }
.guide-check { list-style: none; padding: 0 !important; }
.guide-check li { position: relative; padding-left: 28px; }
.guide-check li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--text-2); }
.guide-sec .row-gap { margin-top: 14px; }
@media (max-width: 720px) { .guide-dl { grid-template-columns: 1fr; gap: 2px; } .guide-dl dd { margin-bottom: 8px; } }

/* ---------- weekly roundups */
.roundup { max-width: 1100px; }
.roundup__date { font-size: 14px; color: var(--text-2); margin: 0 0 10px; }
.roundup__intro { white-space: pre-line; }
.rhl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rhl { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.rhl::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cat, var(--c-other)); }
.rhl__when { font-weight: 700; font-size: 14px; }
.rhl h3 { font-size: 17px; margin: 0 0 4px; }
.rhl h3 a { color: var(--text); }
.rhl__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0; font-size: 13px; color: var(--text-2); }
.rhl__note { margin: 6px 0 0; }
.rhl__gone { margin: 6px 0 0; font-size: 13px; color: var(--muted); font-style: italic; }
.rfeat + .rfeat { border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 12px; }
.rfeat p { margin: 4px 0 0; white-space: pre-line; }
.rfeat a, .rcov a, .roundup-archive a { color: var(--accent-text); font-weight: 650; }
.rcov { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.roundup-archive { list-style: none; display: grid; gap: 14px; }
.roundup-archive li p { margin: 4px 0 0; color: var(--text-2); }
@media (max-width: 720px) { .rhl { grid-template-columns: 1fr; gap: 4px; } }
.venue-head__aka { font-size: 13px; color: var(--text-2); margin: -8px 0 12px; }
.venue-regions { margin: 0 0 14px; }
.venue-head { text-shadow: none; }
.venue-head > * { width: fit-content; max-width: 100%; }
.venue-head h1, .venue-head .eyebrow, .venue-head__lead, .venue-head__addr { padding: 2px 10px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }

/* ---------- round 5: compact hero, toolbar, filter sheet, date picker, paged list, site menu */
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.browse-btn { min-height: 44px; padding: 0 20px; font-size: 15px; text-shadow: none; backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.newbie-strip {
  display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 14px 0 0; padding: 10px 12px 10px 14px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow); text-shadow: none;
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
}
.newbie-strip__icon { width: 28px; height: 28px; color: var(--accent-text); }
.newbie-strip__text { min-width: 0; flex: 1 1 220px; }
.newbie-strip__text p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.newbie-strip__text .newbie-strip__title { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--text); }
.newbie-strip__btn { flex: none; background: transparent; color: var(--text); border: 2px solid var(--text); }
.newbie-strip__btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.filter-btn { position: relative; height: 44px; flex: none; background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.filter-btn.is-active { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text) inset; }
.filter-btn .count-badge { background: var(--accent-text); }
.quick-inline { display: none; gap: 6px; flex: none; }
.quick-inline .qchip { height: 44px; padding: 0 14px; font-size: 13.5px; }
@media (min-width: 1180px) { .quick-inline { display: flex; } }

.active-bar__clear { margin-left: auto; }

/* date bar above List and Map */
.date-bar { display: flex; align-items: center; gap: 8px; margin: 10px 0 12px; }
.date-bar__step { width: 44px; min-height: 44px; flex: none; background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.date-bar__step:disabled { opacity: .45; cursor: default; transform: none; }
.date-bar__today { min-height: 44px; flex: none; background: var(--surface); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.date-bar__today[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.date-btn {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 14px; text-align: left; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
  backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass);
}
.date-btn:hover { border-color: var(--text-2); }
.date-btn.is-set { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text) inset; }
.date-btn > svg:first-child { color: var(--accent-text); }
.date-btn__text { min-width: 0; flex: 1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.date-btn__label { font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.date-btn small { color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.date-btn__hint { font-size: 13px; font-weight: 650; color: var(--accent-text); white-space: nowrap; }
.date-btn__chev { color: var(--muted); }

.list-more { display: grid; justify-items: center; gap: 8px; margin: 4px 0 8px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--border-strong); backdrop-filter: var(--glass); -webkit-backdrop-filter: var(--glass); }
.list-more .btn { min-height: 44px; min-width: min(100%, 280px); }
.list-more__hint { margin: 0; font-size: 13.5px; color: var(--text-2); text-align: center; }
.list-more__hint .linklike { color: var(--accent-text); font-weight: 650; }
.list-day__foot { display: flex; justify-content: center; margin-top: 14px; }
.list-day__foot .btn { min-height: 44px; }
.list-day__head .tag--past { color: var(--muted); }
.day-empty { display: grid; justify-items: center; gap: 8px; }
.day-empty p { margin: 0; }

/* bottom sheet on phones, side panel on larger screens */
.sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100vw; max-height: 90dvh; background: transparent; color: var(--text); }
.sheet::backdrop { background: rgba(5, 6, 8, .55); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-up .2s ease-out; }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } }
.sheet__card { position: relative;
  display: flex; flex-direction: column; max-height: 90dvh; border-radius: 20px 20px 0 0; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 90%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 10px 18px; border-bottom: 1px solid var(--border); }
.sheet__head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--border-strong); }
.sheet__head h2 { font-size: 21px; }
.sheet__head h2:focus { outline: none; }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 16px; -webkit-overflow-scrolling: touch; }
.sheet__foot { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.sheet__foot .btn { min-height: 48px; flex: 1; font-size: 15px; }
.sheet__foot .btn--primary { flex: 2; background: var(--text); border-color: var(--text); color: var(--bg); }
.sheet__foot .btn--primary:hover { filter: none; background: var(--text-2); }
.sheet__foot .btn:disabled { opacity: .5; cursor: default; transform: none; }
.fsec { padding: 14px 0; border-bottom: 1px solid var(--border); }
.fsec:last-child { border-bottom: 0; }
.fsec h3 { font-family: var(--font); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin: 0 0 10px; }
.fsec h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-left: 6px; }
.fsec__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fsec .chip { height: 40px; font-size: 14px; padding: 0 14px; }
.fsec .chip[role="radio"][aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.fsec .chip[aria-busy="true"] { opacity: .6; cursor: progress; }
.fsec .chip svg { width: 15px; height: 15px; }
.fsec .field select { max-width: none; width: 100%; height: 44px; border-radius: 10px; }
.fsec__origin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.fsec__origin-set { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.fsec__origin-set .linklike { color: var(--text-2); font-weight: 600; font-size: 13px; }
.fsec .distance-panel .btn { height: 44px; }
.fsec .distance-panel select { height: 44px; }
.fsec .distance-panel input { height: 44px; }
@media (min-width: 721px) {
  .sheet { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100vw); }
  .sheet[open] { animation: sheet-in .2s ease-out; }
  @keyframes sheet-in { from { transform: translateX(24px); opacity: 0; } }
  .sheet__card { height: 100%; max-height: 100dvh; border-radius: 20px 0 0 20px; }
  .sheet__head::before { display: none; }
  .sheet--date { margin: auto; height: auto; max-height: calc(100dvh - 24px); width: min(400px, calc(100vw - 24px)); }
  .sheet--date .sheet__card { border-radius: 20px; height: auto; }
}

/* date picker */
.dp { padding: 10px 14px 4px; }
.dp__nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.dp__month { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; }
.dp__dow, .dp__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dp__dow span { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.dp__grid { display: grid; gap: 2px; }
.dp__day {
  position: relative; display: grid; place-items: center; height: 46px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  font-weight: 600; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums;
}
.dp__day:hover { background: var(--surface); }
.dp__day i { position: absolute; bottom: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent-text); }
.dp__day--out { color: var(--muted); opacity: .55; }
.dp__day--past:not(.dp__day--today) { color: var(--muted); }
.dp__day--today span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--today); }
.dp__day--sel { background: var(--text); color: var(--bg); }
.dp__day--sel:hover { background: var(--text-2); }
.dp__day--sel i { background: var(--bg); }
.dp__day:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 0; }
.dp__legend { display: flex; align-items: center; gap: 8px; margin: 8px 2px 6px; font-size: 12.5px; color: var(--text-2); }
.dp__legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); }

/* site menu */
.site-menu { position: relative; }
.site-menu__pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; display: grid; padding: 6px;
  border-radius: 14px; background: #0b0c0e; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.site-menu__pop a, .site-menu__pop button {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; background: none; border: 0; text-align: left; cursor: pointer; width: 100%;
}
.site-menu__pop a:hover, .site-menu__pop button:hover { background: rgba(255, 255, 255, .1); }
.site-menu__pop button { border-top: 1px solid rgba(255, 255, 255, .14); border-radius: 0 0 10px 10px; margin-top: 4px; }

@media (max-width: 720px) {
  /* hero: headline, one line of copy, two actions and the newcomer strip */
  .hero h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero__sub { margin-top: 12px; font-size: 15px; }
  .hero__actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero__actions .btn { width: 100%; min-height: 48px; padding: 0 12px; font-size: 15px; }
  .newbie-strip { width: 100%; padding: 10px 12px; gap: 10px; }
  .newbie-strip__icon { display: none; }
  .newbie-strip__text { flex-basis: 100%; }
  .newbie-strip__btn { width: 100%; min-height: 44px; }
  .stats { margin-top: 14px; }
  .stat { padding: 8px 10px; border-radius: 12px; }
  .stat dt { font-size: 11.5px; }
  .stat dd { font-size: 20px; }
  .updated { margin-top: 10px; font-size: 12.5px; }
  .eyebrow { font-size: 11px; margin-bottom: 10px; }
  /* regions: one swipeable row */
  .region-nav { flex-wrap: nowrap; gap: 8px; }
  .region-nav__title { width: auto; flex: none; }
  .region-nav__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; min-width: 0; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .region-nav__list::-webkit-scrollbar { display: none; }
  .rchip { white-space: nowrap; min-height: 40px; }
  /* weekend cards: swipe sideways instead of a long stack */
  #weekendGrid:has(.feature) { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #d4d6da transparent; }
  #weekendGrid .feature { scroll-snap-align: start; }
  #weekendGrid .feature__media { aspect-ratio: 21 / 9; }
  /* toolbar: search + Filters, then the view switch */
  .toolbar { padding-top: 8px; }
  .toolbar__row { flex-wrap: wrap; gap: 8px; }
  .search { flex: 1 1 0; order: 0; }
  .filter-btn { padding: 0 14px; }
  .toolbar__row .seg { flex: 1 1 100%; }
  .toolbar__row .seg button { flex: 1; min-height: 38px; font-size: 14px; }
  .active-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 6px 8px; }
  .active-bar::-webkit-scrollbar { display: none; }
  .active-bar .apill, .active-bar .btn { flex: none; white-space: nowrap; }
  .active-bar__label { display: none; }
  .active-bar:has(.active-bar__note) { flex-wrap: wrap; }
  .date-bar { gap: 6px; }
  .date-btn { padding: 4px 10px; gap: 8px; }
  .date-btn__hint { display: none; }
  .date-btn__label { font-size: 16px; }
  .date-bar__today { padding: 0 12px; }
  .sheet__body { padding: 2px 16px 12px; }
}
@media (max-width: 370px) {
  .hero__actions { grid-template-columns: 1fr; }
  .filter-btn span:not(.count-badge) { display: none; }
  .filter-btn { width: 44px; padding: 0; }
  .filter-btn .count-badge { position: absolute; top: -4px; right: -4px; }
  .date-bar__step { width: 40px; }
}
.sheet--date .sheet__foot .btn { flex: 1; white-space: nowrap; }
.fsec .distance-panel { grid-template-columns: minmax(0, 1fr) 100px; }
.fsec .distance-panel .btn { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .topbar__actions .btn--sm:not(.btn--icon) { padding: 0 9px; min-width: 40px; }
  .topbar__actions .btn--sm.btn--icon { width: 40px; }
}
.list-day__head { flex-wrap: wrap; row-gap: 0; }
@media (max-width: 340px) { .brand__name { font-size: 14px; } }
