:root {
  --bg: #f8f5f0;
  --card: #ffffff;
  --ink: #1d1b18;
  --muted: #7a726a;
  --faint: #b5ada4;
  --line: rgba(29, 27, 24, 0.08);
  --fill: rgba(29, 27, 24, 0.05);
  --accent: #e8590c;
  --accent-soft: rgba(232, 89, 12, 0.12);
  /* The same orange, one shade deeper, for words and small icons on cream or white: 4.8:1 (the fill orange is 3.3–3.6:1,
     under the 4.5 that text needs). Fills, rings and buttons keep --accent. */
  --accent-ink: #c2410c;
  --on-accent: #ffffff;
  --now: #2f9e44;
  --up: #2f9e44;
  --mid: #f08c00;
  --down: #e03131;
  --shadow: 0 1px 2px rgba(29, 27, 24, 0.04), 0 6px 20px rgba(29, 27, 24, 0.06);
  --shadow-lift: 0 10px 30px rgba(29, 27, 24, 0.18);
  --r: 18px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);

  --t-sports: #e7efff; --i-sports: #3b6fd8;
  --t-music: #f3e9ff; --i-music: #8b46d9;
  --t-faith: #fff4d4; --i-faith: #b8860b;
  --t-sales: #ffe9e1; --i-sales: #d9480f;
  --t-food: #fff0dc; --i-food: #c46a00;
  --t-arts: #e3f6ef; --i-arts: #198754;
  --t-community: #eef0f3; --i-community: #5c6773;
  /* Your area's map: three land tints (no two neighboring states match), state lines, state names */
  --map-land: #f3efe6; --map-land-2: #e9e2d2; --map-land-3: #eaeee0; --map-border: #8d8378; --map-name: rgba(29, 27, 24, 0.24);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --card: #1d1b19;
    --ink: #f4f0ea;
    --muted: #a59d94;
    --faint: #6d665f;
    --line: rgba(255, 255, 255, 0.08);
    --fill: rgba(255, 255, 255, 0.07);
    --accent: #ff7a33;
    --accent-soft: rgba(255, 122, 51, 0.16);
    --accent-ink: #ff7a33;
    --on-accent: #1a0d05;
    --now: #51cf66;
    --up: #51cf66;
    --mid: #fcc419;
    --down: #ff6b6b;
    --map-land: #23211e; --map-land-2: #1b1a17; --map-land-3: #1f2220; --map-border: #7b7268; --map-name: rgba(255, 255, 255, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.5);
    --t-sports: #1d2a44; --i-sports: #8fb0ff;
    --t-music: #2d2040; --i-music: #c9a3ff;
    --t-faith: #3a3018; --i-faith: #f2cc60;
    --t-sales: #3d231b; --i-sales: #ff9f80;
    --t-food: #3b2a14; --i-food: #ffc078;
    --t-arts: #17332a; --i-arts: #7ee0b5;
    --t-community: #262a2f; --i-community: #b0bac4;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

.press { transition: transform 0.18s var(--ease), opacity 0.18s; }
.press:active { transform: scale(0.97); opacity: 0.85; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  padding: var(--top) 8px 0 16px;
  height: calc(52px + var(--top));
  display: flex; align-items: center; gap: 4px;
  transition: background 0.25s, box-shadow 0.25s;
}
.bar.solid {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 0.5px 0 var(--line);
}
/* The big title shrinks up into the bar at the same left edge (four controls sit on the right). */
.bar-title {
  flex: 1; min-width: 0; font-weight: 650; font-size: 17px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s var(--ease);
}
.bar.solid .bar-title { opacity: 1; transform: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px;
  display: grid; place-items: center; color: var(--ink);
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn.on { color: var(--accent-ink); }

/* ---------- page ---------- */
main { max-width: 640px; margin: 0 auto; padding: calc(52px + var(--top)) 0 calc(120px + var(--bottom)); }
.hero { padding: 6px 20px 2px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
h1 {
  margin: 2px 0 0; font: 800 38px/1.05 ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.chips {
  position: sticky; top: calc(52px + var(--top)); z-index: 10;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 20px 8px; scroll-padding: 0 20px;
  background: var(--bg);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; font-weight: 550; white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s var(--ease);
}
.chip:active { transform: scale(0.95); }
.chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip .e { font-size: 16px; }

/* ---------- list ---------- */
.day { padding: 18px 20px 8px; display: flex; align-items: center; gap: 8px; }
.day h2 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.01em; }
.day .sub { color: var(--muted); font-size: 15px; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--now); box-shadow: 0 0 0 0 color-mix(in srgb, var(--now) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.cards { display: grid; gap: 10px; padding: 0 16px; }
.card {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%;
  padding: 10px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: var(--shadow); } }
.thumb {
  flex: none; width: 68px; height: 68px; border-radius: 13px; overflow: hidden;
  display: grid; place-items: center; font-size: 30px;
  background: var(--t, var(--fill));
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* A venue's logo in place of a flyer: logos are drawn for white, so the tile stays white in dark mode too */
.thumb.logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.hero-tile.logo { height: 190px; background: #fff; }
.hero-tile.logo img { width: 150px; height: 150px; border-radius: 22px; }
.card .txt { min-width: 0; flex: 1; }
.card .title {
  font-weight: 650; font-size: 16.5px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta { margin-top: 3px; color: var(--muted); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.badge { font-size: 12.5px; font-weight: 650; padding: 2px 8px; border-radius: 10px; background: var(--fill); color: var(--muted); }
.badge.now { background: color-mix(in srgb, var(--now) 16%, transparent); color: var(--now); }
.badge.up { color: var(--up); }
.badge.down { color: var(--down); }
.badge.mix { color: var(--ink); }

.empty { text-align: center; padding: 56px 32px; color: var(--muted); }
.empty .big { font-size: 44px; margin-bottom: 8px; }
.empty p { margin: 0 0 18px; font-size: 17px; }

.skel { height: 88px; border-radius: var(--r); background: linear-gradient(100deg, var(--card) 40%, var(--fill) 50%, var(--card) 60%) 0 0 / 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 36px 0 0; }
footer button { color: var(--muted); font-weight: 600; padding: 8px; }

/* ---------- add button ---------- */
.fab {
  position: fixed; z-index: 15; right: max(20px, calc(50vw - 300px)); bottom: calc(22px + var(--bottom));
  width: 62px; height: 62px; border-radius: 31px;
  background: var(--accent); color: var(--on-accent);
  display: grid; place-items: center; box-shadow: var(--shadow-lift);
  transition: transform 0.25s var(--ease);
}
.fab:active { transform: scale(0.92); }
.fab svg { width: 30px; height: 30px; }

.btn {
  height: 54px; border-radius: 16px; padding: 0 22px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 18.7px; font-weight: 700; /* large text: white on the orange (3.6:1) passes at this size */
  background: var(--accent); color: var(--on-accent);
}
.btn.ghost { background: var(--fill); color: var(--ink); }
.btn:disabled { opacity: 0.4; }
.btn.small { height: 44px; width: auto; font-size: 16px; }
.link { color: var(--accent-ink); font-weight: 600; padding: 12px; font-size: 16px; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.38); opacity: 0; transition: opacity 0.4s var(--ease); }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 640px;
  max-height: calc(100% - var(--top) - 10px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lift);
  transform: translateY(100%); transition: transform 0.45s var(--ease);
  will-change: transform;
}
.sheet.open { transform: translateY(0); }
.sheet.dragging { transition: none; }
.grab { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.grab::before { content: ""; width: 38px; height: 5px; border-radius: 3px; background: var(--faint); opacity: 0.6; }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 17px; background: color-mix(in srgb, var(--card) 85%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; color: var(--muted); }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 20px calc(28px + var(--bottom)); }
.sheet-foot { flex: none; padding: 12px 20px calc(14px + var(--bottom)); background: var(--bg); box-shadow: 0 -0.5px 0 var(--line); }

/* event */
.hero-img {
  /* About a third of the screen (2026-11-03 review): title, when, where and Interested stay in the first view; the
     Flyer button opens the whole picture. */
  position: relative; margin: 0 -20px; height: min(38vh, 320px); overflow: hidden; background: #000;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.hero-img .blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(0.7); }
/* The whole picture, letterboxed on its own blur: max-height: 100% never took hold here (the row had no height of its
   own), so a tall flyer filled the width and lost its foot (2026-11-03). */
.hero-img img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.hero-tile { margin: 0 -20px; height: 150px; display: grid; place-items: center; font-size: 64px; background: var(--t, var(--fill)); }
.ev-badges { display: flex; gap: 6px; margin: 16px 0 6px; flex-wrap: wrap; }
.ev-title { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 750; letter-spacing: -0.015em; }
.rows { margin: 14px 0 0; display: grid; gap: 2px; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 16.5px; text-align: left; width: 100%; }
.row svg { flex: none; width: 22px; height: 22px; color: var(--muted); }
.row .sub { color: var(--muted); }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 6px; }
.act { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.act .ring { width: 54px; height: 54px; border-radius: 27px; display: grid; place-items: center; background: var(--card); box-shadow: var(--shadow); color: var(--ink); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.act:active .ring { transform: scale(0.92); }
.act .ring svg { width: 24px; height: 24px; }
.act.on .ring { background: var(--accent); color: var(--on-accent); }
.details { margin: 14px 0 0; color: var(--ink); opacity: 0.85; font-size: 16px; line-height: 1.5; }

.box { margin-top: 22px; padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.box h3 { margin: 0 0 14px; font-size: 19px; font-weight: 750; }
.rate { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rate button {
  display: grid; justify-items: center; gap: 4px; padding: 14px 4px; border-radius: 14px;
  background: var(--fill); font-size: 13.5px; font-weight: 650;
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.rate button .e { font-size: 30px; line-height: 1; }
.rate button:active { transform: scale(0.94); }
.rate button.on[data-r="1"] { background: color-mix(in srgb, var(--up) 18%, transparent); box-shadow: inset 0 0 0 2px var(--up); }
.rate button.on[data-r="0"] { background: color-mix(in srgb, var(--mid) 18%, transparent); box-shadow: inset 0 0 0 2px var(--mid); }
.rate button.on[data-r="-1"] { background: color-mix(in srgb, var(--down) 16%, transparent); box-shadow: inset 0 0 0 2px var(--down); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags .chip { height: 38px; }
.tags .n { color: var(--muted); font-weight: 600; }
.chip.on .n { color: inherit; opacity: 0.7; }
.reveal { animation: reveal 0.35s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } }

.meter { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--fill); gap: 2px; }
.meter i { display: block; height: 100%; transition: flex-grow 0.6s var(--ease); }
.meter .u { background: var(--up); } .meter .m { background: var(--mid); } .meter .d { background: var(--down); }
.counts { display: flex; gap: 14px; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.counts b { color: var(--ink); }
.live-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.quiet { color: var(--muted); font-size: 15px; margin: 0; }
.thanks { font-size: 17px; font-weight: 650; margin: 0 0 12px; }

.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 26px; }
.report-wrap > button { color: var(--muted); font-size: 14px; font-weight: 600; padding: 12px; min-height: 44px; }

/* post */
.pick { display: grid; gap: 10px; padding: 8px 0 4px; }
.pick-main {
  height: 168px; border-radius: 22px; background: var(--accent); color: var(--on-accent);
  display: grid; place-content: center; justify-items: center; gap: 10px; font-size: 20px; font-weight: 750;
  box-shadow: var(--shadow-lift); position: relative; overflow: hidden;
}
.pick-main svg { width: 46px; height: 46px; }
.pick-main small { font-size: 14px; font-weight: 600; opacity: 0.8; }
.pick-main input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sheet-h { margin: 6px 0 16px; font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }

.reading { position: relative; margin: 6px 0 0; border-radius: 18px; overflow: hidden; background: #000; height: 46vh; display: grid; place-items: center; }
.reading img { max-height: 100%; width: auto; opacity: 0.75; }
.scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent); animation: scan 1.6s var(--ease) infinite; }
@keyframes scan { to { top: 100%; } }
.reading .label { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 8px 16px; border-radius: 20px; background: rgba(0, 0, 0, 0.6); color: #fff; font-weight: 650; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.draft { position: relative; margin-top: 12px; padding: 6px 16px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.draft + .draft { margin-top: 14px; }
.draft .x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 16px; display: grid; place-items: center; color: var(--muted); }
.draft .x svg { width: 18px; height: 18px; }
.field { display: block; border-bottom: 0.5px solid var(--line); padding: 10px 0; }
.field:last-of-type { border-bottom: 0; }
.field input, .field textarea {
  width: 100%; border: 0; outline: 0; background: transparent; padding: 0; font-size: 17px; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: none; min-height: 44px; font-size: 16px; color: var(--muted); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field.title input { font-size: 21px; font-weight: 700; padding-right: 30px; }
.field.title.need { box-shadow: inset 0 -2px 0 var(--accent); }
.field.title.need input::placeholder { color: var(--accent-ink); }
.split { display: flex; gap: 10px; align-items: center; }
.split input[type="date"], .split input[type="time"] { min-width: 0; flex: 1; min-height: 28px; }
.split .to { color: var(--faint); }
.cat-pick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 10px -16px 0; padding: 2px 16px 4px; }
.cat-pick::-webkit-scrollbar { display: none; }
.cat-pick .chip { height: 34px; font-size: 14px; }
.chip.kid.on { background: var(--accent); color: var(--on-accent); }
.thumb-strip { display: flex; align-items: center; gap: 12px; margin: 4px 0 4px; color: var(--muted); font-size: 15px; font-weight: 600; }
.thumb-strip img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.oops { text-align: center; padding: 20px 0 8px; }
.oops .big { font-size: 46px; }
.oops p { font-size: 18px; font-weight: 650; margin: 8px 0 18px; }
.oops .btn + .btn { margin-top: 10px; }

/* zoom */
.zoom { position: fixed; inset: 0; z-index: 60; background: #000; opacity: 0; transition: opacity 0.3s; }
.zoom.open { opacity: 1; }
.zoom-stage { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; touch-action: manipulation; cursor: zoom-in; -webkit-overflow-scrolling: touch; }
.zoom-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom-stage.zoomed { place-items: start; cursor: zoom-out; }
.zoom-stage.zoomed img { max-width: none; max-height: none; width: 250%; }
.zoom-close { position: absolute; top: calc(12px + var(--top)); right: 12px; width: 42px; height: 42px; border-radius: 21px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.zoom-close svg { width: 20px; height: 20px; }
.zoom-share { position: absolute; left: 50%; bottom: calc(22px + var(--bottom)); transform: translateX(-50%); height: 50px; padding: 0 22px; border-radius: 25px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1d1b18; font-size: 16px; font-weight: 700; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4); white-space: nowrap; }
.zoom-share svg { width: 20px; height: 20px; }
.zoom-share:active { transform: translateX(-50%) scale(0.96); }
/* The event picture says it's the flyer */
.flyer-tag { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 14px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 13px; font-weight: 650; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.flyer-tag svg { width: 14px; height: 14px; }

/* toast */
.toast {
  /* Centred by margins, not left: 50% (that let a long toast shrink to half the screen, 2026-11-03). */
  position: fixed; z-index: 70; left: 16px; right: 16px; margin: 0 auto; width: fit-content; bottom: calc(100px + var(--bottom));
  transform: translateY(20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 16px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15.5px; box-shadow: var(--shadow-lift);
  transition: transform 0.35s var(--ease), opacity 0.25s; max-width: 560px;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast button { flex: none; white-space: nowrap; color: var(--accent); font-weight: 750; padding: 4px 6px; }

/* Tap areas of at least 44 points where the shape is smaller (2026-11-03 review): the sheet's ×, the chip row. */
.sheet-close::before { content: ""; position: absolute; inset: -5px; }
#chips .chip { position: relative; }
#chips .chip::before { content: ""; position: absolute; inset: -4px 0; }
/* Keyboard focus: a ring on whatever has it (taps don't show one); fields show the line under them. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field:focus-within { box-shadow: inset 0 -2px 0 var(--accent); }
.field.solo:focus-within { box-shadow: none; }
.field.solo input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.search:focus-within, .town-search:focus-within { outline: 2px solid var(--accent); outline-offset: 0; }

.c-sports { --t: var(--t-sports); --i: var(--i-sports); }
.c-music { --t: var(--t-music); --i: var(--i-music); }
.c-faith { --t: var(--t-faith); --i: var(--i-faith); }
.c-sales { --t: var(--t-sales); --i: var(--i-sales); }
.c-food { --t: var(--t-food); --i: var(--i-food); }
.c-arts { --t: var(--t-arts); --i: var(--i-arts); }
.c-community { --t: var(--t-community); --i: var(--i-community); }

@media (min-width: 700px) {
  .sheet { bottom: 24px; border-radius: 22px; max-height: calc(100% - 48px); }
  .hero-img, .hero-tile { margin: 0 -20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* form + button resets used by the sheets */
.split svg { flex: none; width: 20px; height: 20px; color: var(--faint); }
button.hero-img { width: calc(100% + 40px); padding: 0; cursor: zoom-in; }
.act { color: var(--muted); }
.row.press, button.row { color: inherit; }

/* interested / going */
.intent { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.pill {
  height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; font-weight: 650;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.pill svg { width: 20px; height: 20px; }
.pill.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.crowd { margin: 10px 2px 0; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.actions { grid-template-columns: repeat(3, 1fr); }

/* footer */
footer { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.push-btn { display: inline-flex; align-items: center; gap: 6px; }
.push-btn svg { width: 16px; height: 16px; }
.push-btn.on { color: var(--accent-ink); }

/* add-to-home-screen steps */
.steps { display: grid; gap: 12px; margin: 4px 0 8px; }
.step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); font-size: 17px; font-weight: 600; }
.step .num { flex: none; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; font-weight: 800; }
.step svg { flex: none; width: 24px; height: 24px; color: var(--accent-ink); }

/* Add to Home Screen */
.step .txt { flex: 1; display: grid; gap: 2px; }
.step .txt small { color: var(--muted); font-size: 14px; font-weight: 500; }
.step .appicon { flex: none; width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.nudge {
  position: fixed; z-index: 16; left: 16px; right: 16px; bottom: calc(96px + var(--bottom)); max-width: 608px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 12px; border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow-lift);
  transform: translateY(16px); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s;
}
.nudge.show { transform: none; opacity: 1; }
.nudge img { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.nudge-main { flex: 1; display: grid; gap: 1px; text-align: left; padding: 4px 0; }
.nudge-main b { font-size: 16px; }
.nudge-main small { color: var(--muted); font-size: 14px; }
.nudge-x { flex: none; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; color: var(--muted); }
.nudge-x svg { width: 18px; height: 18px; }

/* Review fixes (2026-10-27) */
/* A long "when · place" line must ellipsize, never widen the page. */
.cards { grid-template-columns: minmax(0, 1fr); }

/* Snap pill: one tap opens the camera or photos; the pencil types one in. */
.fab { width: auto; height: 58px; border-radius: 29px; display: flex; align-items: stretch; overflow: hidden; padding: 0; }
.fab:active { transform: none; }
.fab-snap { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 18px 0 18px; font-size: 18px; font-weight: 750; cursor: pointer; transition: background 0.15s; }
.fab-snap svg { width: 26px; height: 26px; }
.fab-snap input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.fab-type { width: 54px; display: grid; place-items: center; color: inherit; border-left: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent); transition: background 0.15s; }
.fab-type svg { width: 22px; height: 22px; }
.fab-snap:active, .fab-type:active { background: rgba(0, 0, 0, 0.12); }
/* Signed out: a quiet line in the pill's place that opens sign-in (2026-10-30). */
.fab.hint { height: auto; background: var(--card); color: var(--muted); box-shadow: var(--shadow); }
.fab-hint { padding: 11px 16px; font-size: 15px; font-weight: 600; line-height: 1.2; color: inherit; background: none; }

/* Warnings from neighbors' reports */
.badge.warn { background: color-mix(in srgb, var(--mid) 20%, transparent); color: color-mix(in srgb, var(--mid) 70%, var(--ink)); }
.flag { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--mid) 16%, transparent); font-size: 15px; font-weight: 600; }

/* What people said: plain text, not tappable-looking chips */
.taglist { margin: 12px 0 0; color: var(--ink); opacity: 0.8; font-size: 15px; line-height: 1.5; }
.last-report { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.said { margin-bottom: 16px; }
.said.after { margin: 18px 0 0; }
.nudge-shake { animation: shake 0.4s; color: var(--down) !important; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Report: asks why, inline */
.report-wrap { display: flex; justify-content: center; width: 100%; }
.report-box { width: 100%; display: grid; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.report-q { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.report-opt { height: 46px; border-radius: 12px; background: var(--fill); font-size: 16px; font-weight: 600; text-align: left; padding: 0 14px; color: var(--ink) !important; }
.report-cancel { color: var(--muted) !important; padding: 10px; }
.reported { color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px; }

/* Keep a toast clear of the Home Screen card */
body.nudging .toast { bottom: calc(176px + var(--bottom)); }

/* "Remind you?" card inside the event, after Interested/Going */
.remind { margin: 14px 0 0; padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.remind-head { display: flex; gap: 12px; align-items: flex-start; }
.remind-head svg { flex: none; width: 24px; height: 24px; color: var(--accent-ink); margin-top: 1px; }
.remind-head b { display: block; font-size: 16.5px; }
.remind-head small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.remind-btns { display: flex; gap: 8px; margin-top: 12px; }
.remind-btns .btn { flex: 1; height: 44px; font-size: 16px; }
.steps.compact { margin: 12px 0 0; gap: 8px; }
.steps.compact .step { padding: 10px 12px; font-size: 15.5px; box-shadow: none; background: var(--fill); }

/* More dates / repeats (post form) */
.dates-panel { border-bottom: 0.5px solid var(--line); padding: 4px 0 10px; }
.more-dates-btn { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 600; font-size: 15.5px; padding: 8px 0; min-height: 40px; }
.more-dates-btn svg { width: 18px; height: 18px; }
.repeat-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.repeat-pick .chip { height: 36px; font-size: 14.5px; }
.until { margin: 8px 0 0; }
.until-l { color: var(--muted); font-weight: 600; font-size: 15px; min-width: 44px; }
.extra-date { margin: 8px 0 0; }
.extra-date input, .until input { flex: 1; min-width: 0; border: 0; outline: 0; background: var(--fill); border-radius: 10px; padding: 8px 10px; font-size: 16px; min-height: 40px; }
.x-sm { flex: none; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--muted); }
.x-sm svg { width: 16px; height: 16px; }
.add-date { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; font-size: 15px; padding: 10px 0 2px; min-height: 40px; }
.add-date svg { width: 18px; height: 18px; }
.dates-sum { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.dates-sum:empty { display: none; }

/* The other dates on the event page */
.row.more-dates { align-items: flex-start; }
.row.more-dates svg { margin-top: 7px; }
.date-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.date-chip { height: 34px; font-size: 14px; padding: 0 12px; }

/* Towns, sign-ups, links (2026-10-27) */
.badge.town { background: color-mix(in srgb, var(--accent) 10%, transparent); color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }
.chip.wide.on { background: var(--accent); color: var(--on-accent); }
.split .grow2 { flex: 2; min-width: 0; }
.split .town-in { flex: 1; min-width: 0; max-width: 40%; color: var(--muted); }
.split .based-l { flex: none; color: var(--muted); font-size: 17px; }
.link-row:empty { display: none; }
.link-row { margin: 14px 0 0; }
.link-btn { text-decoration: none; }
.link-btn svg { width: 20px; height: 20px; }
.extras .field:last-child { border-bottom: 0.5px solid var(--line); }
button.thumb-strip { padding: 0; cursor: zoom-in; }
.details a { color: var(--accent-ink); font-weight: 600; word-break: break-word; }
.dup { display: grid; gap: 10px; }
.dup-q { margin: 0; text-align: center; font-weight: 700; font-size: 16px; }
.dup-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* A draft that's already on Town Hub: what's there, and it's left out of the post */
.twin { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 12px; border-radius: 12px; background: var(--accent-soft); }
.twin-txt { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: 14px; }
.twin-txt b { color: var(--accent-ink); font-weight: 700; }
.twin-txt span { color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.twin .link { flex: none; padding: 8px; font-size: 14px; color: var(--ink); }
.twin.kept { background: var(--fill); }
.twin.kept .twin-txt { color: var(--muted); }
.bitem .twin { margin: 0 10px 10px; }
.draft .twin { margin: 8px 34px 6px 0; }
.bitem.twinned .brow, .draft.twinned > .field { opacity: 0.5; }
.twins-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 4px; color: var(--muted); font-size: 14px; }
.twins-bar .link { flex: none; white-space: nowrap; padding: 8px 0 8px 8px; font-size: 14px; }

/* batch snap: many photos read at once */
.batch-read { margin-top: 6px; }
.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.btile { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #000; }
.btile img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; transition: opacity 0.3s; }
.btile.busy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%); background-size: 100% 200%; animation: bscan 1.2s linear infinite; }
.btile.ok img { opacity: 1; }
.btile.ok::before, .btile.bad::before { position: absolute; right: 6px; bottom: 6px; z-index: 1; width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.btile.ok::before { content: '✓'; background: #1f9d55; }
.btile.bad::before { content: '!'; background: #d64545; }
@keyframes bscan { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.batch-read .label { margin-top: 16px; text-align: center; font-weight: 650; color: var(--muted); }
.batch-note { margin: -4px 0 6px; color: var(--muted); font-size: 14px; }
.bitem { margin-top: 10px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.brow { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px; min-height: 64px; }
.bthumb { flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; }
.bthumb img { width: 100%; height: 100%; object-fit: cover; }
.btext { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; }
.btext b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btext .sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brow .x { flex: none; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--muted); }
.brow .x svg { width: 18px; height: 18px; }
.bitem .draft { margin: 0; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); }
.foot-links .from { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 14px; }

/* accounts: sign in, your posts, the owner's check */
.sheet-sub { margin: -8px 0 14px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.field.solo { border-bottom: 0; padding: 0; margin: 4px 0 6px; }
.field.solo input { width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 18px; }
.code-in { text-align: center; font-size: 28px !important; font-weight: 750; letter-spacing: 0.35em; font-variant-numeric: tabular-nums; }
.code-links { display: flex; justify-content: space-between; margin: 0 -12px; }
.link.quiet { color: var(--muted); font-weight: 600; }
.link.danger { color: var(--down); }
.report-opt.danger { color: var(--down) !important; }
.acct-row { display: grid; gap: 8px; margin: 14px 0 4px; }
.acct-strip { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; margin: 14px 0 4px; padding: 0 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-size: 16px; text-align: left; }
.acct-row .acct-strip { margin: 0; }
.acct-strip svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.acct-strip .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-strip b { color: var(--accent-ink); }
.acct-strip.review { font-weight: 650; }
.acct-strip.review.has { background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--accent-ink); }
.acct-strip.review.has svg { color: var(--accent-ink); }
.acct-h { margin: 22px 0 8px; font-size: 18px; font-weight: 750; }
/* The account sheet's groups (owner, 2026-11-03): one row opens to its rows in the same card; the chevron turns.
   Inside, rows lose their icon and line up under the group's words; a group with something waiting carries the
   accent while closed, and hands it to the row that has it once open. */
.acct-group { margin: 14px 0 4px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.acct-group > .acct-strip, .acct-rows > .acct-strip { margin: 0; border-radius: 0; background: transparent; box-shadow: none; }
.acct-head > svg:last-child { transition: transform 0.25s var(--ease); }
.acct-head[aria-expanded="true"] > svg:last-child { transform: rotate(90deg); }
.acct-head.has { background: color-mix(in srgb, var(--accent) 12%, var(--card)); }
.acct-head.has, .acct-head.has svg, .acct-head.has .grow b.plain { color: var(--accent-ink); }
.acct-group.open > .acct-head.has { background: transparent; }
.acct-rows > * { border-top: 1px solid var(--line); }
.acct-rows > .acct-strip { min-height: 48px; padding-left: 50px; }
.acct-rows > .acct-strip > svg:first-child:not(:last-child) { display: none; }
.acct-rows > .post-list { gap: 0; }
.acct-rows .post-row { border-radius: 0; box-shadow: none; background: transparent; padding: 8px 16px; }
.acct-rows .post-row + .post-row { border-top: 1px solid var(--line); }
.acct-rows > .muted { margin: 0; padding: 12px 16px 14px; font-size: 15px; }
.acct-rows > .acct-sub-h { margin: 0; padding: 12px 16px 4px; font-size: 14px; font-weight: 700; color: var(--muted); }
.acct-rows > .link { display: block; width: 100%; margin: 0; padding: 12px 16px; text-align: left; }
.badge.mine { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); }
/* The owner's weekly share image for the Facebook groups: EN/ES, the picture, share (or save) and copy the words */
.share-lang { display: flex; gap: 8px; margin: 0 0 14px; }
.share-skel { height: auto; aspect-ratio: 4 / 5; }
.share-img { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-lift); }
.share-btns { display: grid; gap: 10px; margin: 16px 0 10px; }
.share-btns a { text-decoration: none; }
.share-btns .btn svg { width: 20px; height: 20px; flex: none; }
.share-post { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.45; word-break: break-word; }
.muted { color: var(--muted); }
.post-list { display: grid; gap: 8px; }
.post-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.post-row img, .post-row .tile { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; font-size: 24px; }
.post-row .grow, .review-top .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.post-row b, .review-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-row .sub, .review-top .sub { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-foot { display: flex; justify-content: space-between; margin: 22px -12px 0; }
.badge.wait, .badge.trend { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); }
.report-wrap.owner { display: flex; gap: 6px; }
.report-wrap.owner > button { color: var(--accent-ink); }
.review-list { display: grid; gap: 12px; }
.review-card { padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.review-top { display: flex; align-items: center; gap: 12px; }
button.review-top { width: 100%; padding: 0; text-align: left; color: inherit; }
.review-details { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); opacity: 0.85; }
.review-link { display: block; margin-top: 6px; color: var(--accent-ink); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poster-line { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.review-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.review-btns .btn { width: 100%; }
.review-more { display: flex; justify-content: space-between; margin: 4px -12px -8px; }
.btn.danger { background: var(--down); color: #fff; }
#list > .acct-strip, #list > .acct-row { width: calc(100% - 32px); margin-left: 16px; margin-right: 16px; }
.stack { display: grid; gap: 8px; }
.stack .field.solo { margin: 0; }
.poster { display: grid; gap: 2px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.poster b { color: var(--ink); font-size: 15px; }
.poster-status { margin-top: 2px; font-weight: 650; color: var(--accent-ink); }
.acct-strip .grow b.plain { color: var(--ink); }
.acct-strip .grow .sub { color: var(--muted); font-size: 14px; }
#account-btn { position: relative; }
#account-btn .dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
#account-btn.in { color: var(--accent-ink); }

/* Find events (2026-10-27): date strip, calendar, Free, search, onboarding, featured, businesses */
/* The language you'd switch to, as text, in the top bar */
.lang-btn { height: 44px; min-width: 36px; padding: 0 4px; border-radius: 22px; font-size: 14px; font-weight: 750; letter-spacing: 0.05em; color: var(--ink); }

/* Date strip: text pills, lighter than the chips above; a 44px tap target on a 34px pill */
.days { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 16px 6px; scroll-padding: 0 16px; }
.days::-webkit-scrollbar { display: none; }
.dpill {
  position: relative; flex: none; height: 34px; padding: 0 11px; border-radius: 17px;
  color: var(--muted); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.18s var(--ease);
}
.dpill::before { content: ""; position: absolute; inset: -5px 0; }
.dpill:active { transform: scale(0.95); }
.dpill.none { color: var(--faint); }
.dpill.on { background: var(--accent-soft); color: var(--accent-ink); }
.dpill.cal { width: 34px; padding: 0; margin-right: 4px; display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.dpill.cal svg { width: 18px; height: 18px; }
.dpill.cal.on { background: var(--accent); color: var(--on-accent); box-shadow: none; }

/* Calendar sheet */
.presets { display: flex; gap: 8px; margin: -4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.months { display: grid; gap: 18px; }
.month h3 { margin: 0 0 6px; font-size: 17px; font-weight: 750; }
.dow, .dgrid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dow span { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.dc { position: relative; height: 44px; display: grid; place-items: center; font-size: 16px; font-weight: 600; color: var(--ink); }
.dc .n { width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; transition: background 0.15s, color 0.15s; }
.dc.past { color: var(--faint); font-weight: 500; }
.dc.today .n { box-shadow: inset 0 0 0 1.5px var(--accent); }
.dc.has::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 2px; background: var(--accent); }
.dc.in { background: var(--accent-soft); }
.dc.from { border-radius: 22px 0 0 22px; }
.dc.to { border-radius: 0 22px 22px 0; }
.dc.from.to { border-radius: 22px; }
.dc.from .n, .dc.to .n { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.dc.from::after, .dc.to::after { background: var(--on-accent); }

/* Search: one field under the hero, only while open */
.search { display: flex; align-items: center; gap: 10px; margin: 10px 20px 0; height: 44px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.search > svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font-size: 17px; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button, .search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--faint); }
.search-x { flex: none; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; color: var(--muted); }
.search-x svg { width: 18px; height: 18px; }
.search { position: relative; }
/* Suggestions under the search field, over the chips and the list. */
.suggest { position: absolute; z-index: 12; top: calc(100% + 6px); left: 0; right: 0; max-height: min(62vh, 460px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 0; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0, 0, 0, 0.14); }
.sug-h { padding: 10px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.sug-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 14px; text-align: left; }
.sug-row:hover, .sug-row.act { background: var(--line); }
.sug-ic { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 19px; object-fit: cover; background: var(--bg); }
.sug-ic[class*='c-'] { background: var(--t); }
.sug-ic.logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sug-ic.plain { background: transparent; color: var(--muted); }
.sug-ic.plain svg { width: 20px; height: 20px; }
.sug-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sug-t { font-size: 16px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sug-t b { font-weight: 750; }
.sug-s { font-size: 13px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sug-n { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sug-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 8px; }
.sug-none { margin: 0; padding: 14px; color: var(--muted); }
/* While a search is on it looks through everything: the chips and days wait, a tap on one ends the search. */
body.searching #chips, body.searching #days { opacity: 0.45; }
/* What people say, on a business page (sayBlock). */
.say .say-line { margin: 6px 0 2px; font-size: 16px; }
.say .say-sub { color: var(--muted); }
.say .taglist { margin: 0 0 8px; }
.say .tags { margin: 8px 0 4px; }
.say .say-acts { display: flex; align-items: center; gap: 16px; margin: 10px 0 4px; }
.say .pill { flex: none; padding: 0 20px; }
.say .quiet { margin: 6px 0; }
/* Where the list draws its next cards (drawMore). */
.list-end { height: 1px; }
.fallback { margin: 26px 20px -8px; color: var(--muted); font-size: 15.5px; font-weight: 600; }

/* Onboarding */
.seg { display: inline-flex; padding: 3px; border-radius: 14px; background: var(--fill); margin: 2px 0 18px; }
.seg-opt { height: 36px; padding: 0 16px; border-radius: 11px; font-size: 15px; font-weight: 650; color: var(--muted); transition: background 0.2s, color 0.2s; }
.seg-opt.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.likes { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.likes .chip { height: 42px; padding: 0 16px; }
.likes .chip.on { background: var(--accent); color: var(--on-accent); }
/* Family Hub: a person's colour as a dot on their chip */
.chip .sw { flex: none; width: 10px; height: 10px; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); }
.chip.on .sw { box-shadow: 0 0 0 1.5px var(--on-accent); }
.onboard-skip { display: block; margin: 6px auto 0; color: var(--muted); }
/* The gate (owner, 2026-11-03): a social app's browser gets only the way out; a phone's browser gets the app first */
.gate { position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); opacity: 0; transition: opacity 0.25s var(--ease); }
.gate.show { opacity: 1; }
.gate-in { position: relative; min-height: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: calc(56px + var(--top)) 24px calc(24px + var(--bottom)); }
.gate-lang { position: absolute; top: calc(12px + var(--top)); right: 12px; padding: 8px 12px; color: var(--muted); font-size: 15px; font-weight: 700; }
.gate-icon { width: 76px; height: 76px; margin-bottom: 20px; border-radius: 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.gate-h { margin: 0 0 8px; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.gate-sub { margin: 0 0 20px; color: var(--muted); font-size: 17px; line-height: 1.4; }
.gate-card { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.gate-card img, .gate-card .ph { flex: none; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.gate-card .ph svg { width: 26px; height: 26px; }
.gate-card .txt { min-width: 0; display: grid; gap: 2px; }
.gate-card b, .gate-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gate-card b { font-size: 16px; }
.gate-card small { color: var(--muted); font-size: 14px; }
.gate .steps { margin-bottom: 20px; }
.gate-foot { display: grid; }
.gate-alt { display: block; margin: 12px auto 0; padding: 8px 12px; color: var(--muted); font-size: 16px; }
/* One question with one icon: notifications on (the Home Screen app, a business that just applied) */
.ask-icon { width: 56px; height: 56px; margin: 4px 0 14px; border-radius: 28px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.ask-icon svg { width: 28px; height: 28px; }

/* Featured: a quiet accent ring and a tiny label */
.card.featured { box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.feat { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }
/* The owner's free pick: the same tag, outlined instead of filled (a paid one is filled). */
.feat.pick { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.mem { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--fill); color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }

/* A verified business or group */
.badge.check { background: color-mix(in srgb, var(--now) 14%, transparent); color: color-mix(in srgb, var(--now) 70%, var(--ink)); }
.check-badge { flex: none; width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--now) 16%, transparent); color: var(--now); font-size: 13px; font-weight: 800; }

/* Round 2 (2026-10-27): flyers on typed posts, businesses, the owner's stats, subscribe */
/* A flyer (or a business photo) in the form: thumb · label · Replace · × */
.flyer-box { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 0.5px solid var(--line); color: var(--muted); font-size: 15px; font-weight: 600; }
.flyer-box .grow { flex: 1; min-width: 0; }
.flyer-box .more-dates-btn { padding: 8px 0; }
.field .flyer-box { border-bottom: 0; padding: 0; }
.flyer-btn { position: relative; overflow: hidden; cursor: pointer; }
.flyer-btn input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.extras-btns { display: flex; flex-wrap: wrap; gap: 0 18px; }
.extras .extras-btns + .field, .extras .field:last-child { border-bottom: 0.5px solid var(--line); }
.extras .extras-btns:last-child { padding-bottom: 2px; }
/* A Facebook link: one quiet line, and the flyer button beside it */
.fb-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: -2px 0 4px; color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.fb-hint .more-dates-btn { padding: 4px 0; min-height: 36px; }

/* "Post as {name}": one row with a switch; the whole row toggles */
.toggle-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; margin: -4px 0 4px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; }
.toggle-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch { flex: none; position: relative; width: 50px; height: 30px; border-radius: 15px; background: var(--faint); transition: background 0.2s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s var(--ease); }
.toggle-row.on .switch { background: var(--accent); }
.toggle-row.on .switch .knob { transform: translateX(20px); }

/* The business page */
/* Weekly hours: the form's seven days, and the page's open-now row with its week */
.week { display: grid; min-width: 0; }
.week > * { min-width: 0; }
.week-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 28px; text-align: left; font-size: 16px; }
.week-h > svg { flex: none; width: 20px; height: 20px; color: var(--faint); }
.week-h .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.week-t { color: var(--muted); }
.week-sum { color: var(--ink); font-size: 15px; }
.week-h[aria-expanded="true"] { padding-bottom: 6px; }
.week-h .chev, .hours .chev { display: grid; color: var(--faint); transform: rotate(90deg); transition: transform 0.2s var(--ease); }
.week-h .chev.up, .hours .chev.up { transform: rotate(-90deg); }
.week-h .chev svg, .hours .chev svg { width: 18px; height: 18px; }
.wday { padding: 4px 0 6px 30px; border-top: 0.5px solid var(--line); }
.wday-top { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.wday-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.wday-closed { color: var(--muted); font-size: 15px; }
.wsw { flex: none; display: flex; padding: 4px 0; }
.wsw .switch { width: 44px; height: 26px; border-radius: 13px; }
.wsw .switch .knob { width: 20px; height: 20px; border-radius: 10px; }
.wsw.on .switch { background: var(--accent); }
.wsw.on .switch .knob { transform: translateX(18px); }
.wday-line { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; font-size: 16px; }
.wday-line .grow { flex: 1; }
.field .wday-line input[type="time"] { flex: 1 1 0; width: 0; min-width: 0; height: 36px; padding: 0 8px; border-radius: 10px; background: var(--fill); font-size: 16px; }
.wday-line input[type="time"]::-webkit-calendar-picker-indicator { display: none; }
.wday-line .to { color: var(--faint); }
.wday-more { display: flex; gap: 18px; }
.link.small { padding: 6px 0; font-size: 14px; }
.hours .grow { flex: 1; min-width: 0; }
.now-open { color: var(--now); font-weight: 650; }
.now-closed { color: var(--down); font-weight: 650; }
.week-list { display: grid; gap: 4px; padding: 0 0 8px 34px; font-size: 15px; }
.week-list .wl { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.week-list .wl.today { color: var(--ink); font-weight: 650; }
.hours-note { margin: 0 0 8px 34px; color: var(--muted); font-size: 15px; }
.hero-img.org { height: min(40vh, 320px); }
.hero-tile.org { background: var(--accent-soft); }
.follow { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; }
.follow .pill { flex: none; padding: 0 20px; }
.follow .crowd { margin: 0; }
.follow:empty { display: none; }

/* follow anything: one quiet row under the event, and the star view's Following block */
.follow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; }
.follow-row .lbl { color: var(--muted); font-size: 14px; font-weight: 600; margin-right: 2px; }
.follow-row .chip, .follow-chips .chip { height: 34px; padding: 0 12px; font-size: 14px; max-width: 100%; }
.follow-row .chip svg, .follow-chips .chip svg { flex: none; width: 15px; height: 15px; }
.follow-row .chip .t, .follow-chips .chip .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#list > .following { width: calc(100% - 32px); margin: 14px 16px 0; }
.following .acct-h { margin: 0 0 8px; font-size: 16px; }
.follow-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.follow-chips .chip { padding-right: 10px; }
.follow-chips .chip .x { display: inline-flex; opacity: 0.7; }
a.row { text-decoration: none; color: inherit; }
.sheet .cards { padding: 0; }
.org-form .cat-pick { margin-top: 4px; }

/* The owner's check: a business, then its plan */
.review-top .tile.bthumb { display: grid; place-items: center; font-size: 24px; background: var(--fill); }
.plan-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan-box .repeat-pick { margin: 0; }
.plan-box .review-btns { margin-top: 12px; }
.review-card.done { box-shadow: var(--shadow), inset 0 0 0 1.5px color-mix(in srgb, var(--now) 50%, transparent); }
/* Feature until… (the owner, on any event) */
.report-wrap.owner .report-box .until { margin: 0; }
.report-box .until input { flex: 1; min-width: 0; }
.report-box .until .btn.small { flex: none; }

/* Stats: the accent is the only data color; numbers wear the ink */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 12px; }
.stat { padding: 14px 16px 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); display: grid; gap: 1px; }
.stat b { font-size: 30px; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { font-size: 14px; font-weight: 650; }
.stat small { font-size: 13px; font-weight: 600; color: var(--muted); }
.sbox { margin-top: 12px; padding: 14px 16px 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.sbox h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 17px; font-weight: 750; }
.sbox h3 small { font-size: 13px; font-weight: 600; color: var(--muted); }
.srow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; width: 100%; padding: 7px 0; border-top: 0.5px solid var(--line); font-size: 15.5px; text-align: left; color: var(--ink); }
.sbox h3 + .srow, .sbox h3 + .muted { border-top: 0; }
.srow .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow b { font-variant-numeric: tabular-nums; }
.srow small { flex-basis: 100%; color: var(--muted); font-size: 13.5px; font-weight: 600; }
button.srow { min-height: 44px; }
.sbox .muted { margin: 4px 0; font-size: 15px; }
.readout { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.readout b { color: var(--ink); font-size: 20px; font-weight: 750; margin-right: 2px; }
.chart { position: relative; }
.ymax { position: absolute; left: 0; top: -2px; font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: stretch; gap: 2px; height: 150px; }
.cbar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; }
.cbar .col { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.cbar i { display: block; width: min(100%, 18px); border-radius: 4px 4px 0 0; background: var(--accent); opacity: 0.45; transition: opacity 0.15s; }
.cbar.on i { opacity: 1; }
.cbar small { font-size: 11px; font-weight: 600; line-height: 1; color: var(--muted); }
.cbar.on small { color: var(--ink); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.funnel { display: grid; gap: 7px; margin-top: 4px; }
.frow { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: baseline; font-size: 15px; }
.frow b { font-variant-numeric: tabular-nums; }
.fbar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.fbar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.sfoot { margin: 16px 4px 4px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* Subscribe: the feed link, and the toggles that shape it */
.url-box { margin: 10px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--fill); color: var(--ink); font: 600 13.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.family { margin: 16px 0 0; text-align: center; font-size: 14.5px; }
.review-link.quiet { color: var(--muted); }

/* Home town: the quiet line under the title in wide mode, the leading chip, and the town sheet */
.hero-sub { margin: 3px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
h1 { overflow-wrap: anywhere; }
.chip.home { color: var(--accent-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 650; }
.chip.home .e { font-size: 14px; }
.btn.loc { margin: 2px 0 14px; }
.btn.loc svg { width: 20px; height: 20px; }
.town-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.town-search svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.town-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0; font-size: 17px; -webkit-appearance: none; appearance: none; }
.town-search input::-webkit-search-cancel-button, .town-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.town-search input::placeholder { color: var(--faint); }
.town-list { display: grid; gap: 2px; margin: 10px 0 0; }
.town-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 12px; color: var(--ink); font-size: 16.5px; text-align: left; }
.town-row:active { background: var(--fill); }
.town-row .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.town-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.town-row .sub { color: var(--muted); font-size: 14px; }
.town-row.on b { color: var(--accent-ink); }
.town-row svg { flex: none; width: 20px; height: 20px; color: var(--accent-ink); }
.town-sep { height: 0.5px; margin: 8px 0; background: var(--line); }
.town-none { margin: 16px 0; text-align: center; font-size: 15.5px; }
.town-row:disabled { opacity: 1; }

/* ---------- swipe a card away ---------- */
#list .card { touch-action: pan-y; }
#list .card.swiping { animation: none; transition: none; }
#list .card.gone { transition: transform 0.2s ease-in, opacity 0.2s; pointer-events: none; }
#list .card.closing { transition: height 0.2s var(--ease), padding 0.2s var(--ease), margin 0.2s var(--ease); height: 0 !important; padding-top: 0; padding-bottom: 0; margin-bottom: -10px; overflow: hidden; }

/* ---------- services ---------- */
/* The town's name with the Events | Services switch beside it (when Services is on) */
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-row h1 { min-width: 0; }
.hero .tabs { flex: none; margin: 0; }
.hero .tabs .seg-opt { height: 34px; padding: 0 12px; font-size: 14px; }
.svc-cards { padding-top: 14px; }
.svc-note { margin: 18px 16px 0; text-align: center; color: var(--muted); font-size: 13px; }
.sheet .svc-note { margin: 18px 0 0; }
.svc-reading { margin: 4px 0 12px; }
.svc-seeded { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 16px 0 0; }
.svc-seeded .quiet { font-size: 14px; }
.svc-seeded .link { padding: 8px 0; }
.svc-hint { margin: 6px 2px 0; font-size: 13.5px; }
.org-form .field > .quiet { margin: 0 0 6px; font-size: 14px; }

/* ---------- your area ---------- */
.area-map { margin: 4px 0 0; border-radius: var(--r); background: var(--map-land); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; }
.area-map svg { border-radius: inherit; }
.area-map svg { display: block; width: 100%; height: auto; }
.area-map .ring { fill: color-mix(in srgb, var(--accent) 8%, transparent); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.area-map .spot { fill: var(--map-border); opacity: 0.35; }
.area-map .town { cursor: pointer; }
.area-map .town .hit { fill: transparent; }
.area-map .town .dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; vector-effect: non-scaling-stroke; }
.area-map .town.out .dot { fill: var(--card); stroke: var(--muted); stroke-width: 1.5; }
.area-map text { fill: var(--ink); font-weight: 650; paint-order: stroke; stroke: var(--map-land); stroke-width: 3; vector-effect: non-scaling-stroke; }
.area-map .town.out text { fill: var(--muted); }
.area-map .home .halo { fill: color-mix(in srgb, var(--ink) 14%, transparent); }
.area-map .home .dot { fill: var(--ink); stroke: var(--card); stroke-width: 2; vector-effect: non-scaling-stroke; }
.area-map .home text { font-weight: 800; }
.area-map .land { fill: var(--map-land); }
.area-map .land.t2 { fill: var(--map-land-2); }
.area-map .land.t3 { fill: var(--map-land-3); }
.area-map .border { fill: none; stroke: var(--map-border); stroke-width: 1.4; stroke-dasharray: 8 3 2 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.area-map .state { fill: var(--map-name); stroke: none; font-weight: 800; letter-spacing: 0.22em; }
.area-range { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; }
.area-range .area-mi { flex: none; min-width: 108px; font-size: 16px; font-weight: 700; }
.area-range input { flex: 1; min-width: 0; accent-color: var(--accent); height: 32px; }
.area-hidden { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.area-hidden .link { padding: 10px 0; }

/* ---------- "?" sheet and the privacy and terms line ---------- */
.faq { margin: 0 0 16px; }
.faq h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.faq p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
/* "Found a bug or have an idea? Tell us": one quiet line after the questions */
.faq-ask { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.faq-ask button { color: var(--accent-ink); font-weight: 600; padding: 8px 0; }

/* ---------- Send feedback, and the owner's list ---------- */
.field.solo.feedback-text { margin-top: 10px; }
.field.feedback-text textarea { display: block; min-height: 132px; padding: 12px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 17px; line-height: 1.4; }
.feedback-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feedback-when { color: var(--muted); font-size: 14px; }
.feedback-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-ctx { font-size: 12.5px; line-height: 1.4; }
.feedback-btns { display: flex; justify-content: flex-end; margin-top: 12px; }
.feedback-card.read { opacity: 0.6; }
/* Privacy and Terms side by side, on a line of their own (footer .br breaks the row) */
footer a { display: inline-block; color: var(--muted); font-weight: 600; font-size: 13px; padding: 13px 10px; text-decoration: none; }
footer .push-btn { min-height: 44px; }
footer .br { flex-basis: 100%; height: 0; }

/* A business's own page: what paying gets it, and its event's Sponsor button */
.promo { margin: 18px 0 2px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.promo .acct-h { margin-top: 0; }
.promo p { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.promo p b { color: var(--ink); font-weight: 650; }
.promo .promo-small { font-size: 13.5px; color: var(--muted); }
/* Stripe's form inside the app (payInApp): the sheet is Stripe's, edge to edge, tall enough not to jump as it loads. */
.sheet.pay .sheet-body { padding: 0 12px calc(16px + var(--bottom)); }
.pay-mount { min-height: 460px; margin-top: 6px; }
.pay-wait { margin: 40px 0; text-align: center; color: var(--muted); font-size: 16px; }
.promo-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.report-wrap.owner .sponsor { color: var(--accent-ink); font-weight: 650; }
/* Anyone can sponsor (2026-11-03): a quiet row under the actions, a small box like Report's, one accent for the choice. */
.sponsor-wrap { margin: 2px 0 0; }
.sponsor-wrap > .sponsor-open { color: var(--muted); font-size: 15px; }
.sponsor-box { margin-top: 6px; }
.sponsor-box .report-q { margin: 0; }
.sponsor-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.35; }
.sponsor-note b { color: var(--ink); font-weight: 650; }
.sponsor-opts { display: grid; gap: 8px; margin-top: 2px; }
.report-opt.sponsor-opt { height: auto; min-height: 54px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.sponsor-opt .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.sponsor-opt .sub { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.sponsor-opt .price { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.sponsor-opt.on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.sponsor-opt.on .price { color: var(--accent-ink); }
.sponsor-opt:disabled { opacity: 0.5; }
.sponsor-name { width: 100%; border: 0; outline: 0; background: var(--fill); color: var(--ink); border-radius: 12px; padding: 0 14px; min-height: 46px; font-size: 16px; }
.sponsor-name:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.sponsored-by { margin: 4px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; }
.sponsored-by b { color: var(--ink); font-weight: 650; }
.sponsored-mine { color: var(--accent-ink); font-weight: 650; font-size: 14px; }
.flyer-box .flyer-rm { padding: 8px 4px; font-size: 15px; }
.draft > .flyer-box { margin-right: 30px; }
.bitem .draft > .flyer-box { margin-right: 0; }

/* ---------- The business questions, and the owner's answers (2026-11-03) ---------- */
.sv-q { margin: 0 0 16px; }
.sv-h { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.sv-h span { margin-left: 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.sv-q .repeat-pick .chip { height: 34px; padding: 0 12px; font-size: 14px; }
.field.solo.sv-line { margin: 8px 0 0; }
.field.solo.sv-line input { height: 44px; padding: 0 14px; border-radius: 12px; font-size: 16px; }
.field.sv-line textarea { display: block; min-height: 44px; padding: 11px 14px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 16px; line-height: 1.4; }
.sv-consent { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); font-size: 16px; line-height: 1.35; cursor: pointer; }
.sv-consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.sv-skip { display: block; margin: 6px auto 0; }
.sv-label { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.cat-pick.sv-filter { margin: 6px -20px 0; padding: 2px 20px 4px; }
.sv-bar { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; }
.sv-bar .chip { height: 34px; font-size: 14px; }
.sv-count { flex: 1; min-width: 0; color: var(--muted); font-size: 14px; }
.sv-csv { flex: none; padding: 8px 0; font-size: 15px; text-decoration: none; }
.sv-card .review-top { align-items: flex-start; }
.sv-card .feedback-when { flex: none; }
.sv-r { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.sv-r b { color: var(--ink); font-weight: 650; }
.sv-note-r { margin-top: 6px; overflow-wrap: anywhere; }
.sv-card .poster a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }

/* The owner's Businesses: search and sort on one line, then the card per business with its own tracking at the foot. */
.biz-tools { display: flex; gap: 8px; margin: 12px 0 2px; }
.biz-find, .biz-sort { height: 44px; border: 0; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: 16px; }
.biz-find { flex: 1; min-width: 0; padding: 0 14px; -webkit-appearance: none; appearance: none; }
.biz-sort { flex: none; max-width: 46%; padding: 0 10px; }
.biz-stats { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.biz-none { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.biz-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; font-size: 14.5px; }
.biz-links a { color: var(--accent-ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.biz-card .poster .sub { color: var(--muted); }
.biz-card .review-top .sub { white-space: normal; overflow: visible; }
.biz-tools ~ .sv-label { margin-top: 12px; }
.biz-stage-l { margin-top: 12px; }
.biz-stage .chip { height: 32px; padding: 0 12px; font-size: 13.5px; }
.biz-note { display: block; width: 100%; min-height: 44px; margin: 6px 0 0; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; resize: vertical; }
.biz-card.flash { animation: flash 1.6s var(--ease); }

/* How it works · Privacy · Terms at the foot of the Account sheet */
.about-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 4px; margin: 14px 0 0; }
.about-links .link { font-size: 14px; padding: 12px 10px; text-decoration: none; }

/* ---------- desktop (2026-11-03) ---------- */
/* Wide screens only. No phone reaches 1024px, even turned sideways (the biggest is 956), so everything above stays
   the phone app; this only adds. The page widens to 1200px, a day's events sit side by side, the chips and the date
   strip wrap instead of scrolling sideways (a mouse can't swipe), and a sheet opens as a dialog near the top. */
@media (min-width: 1024px) {
  main { max-width: 1200px; }
  /* The bar's title and buttons line up with the page, not the window's edges */
  .bar { padding-left: max(16px, calc(50% - 580px)); padding-right: max(8px, calc(50% - 594px)); }
  .hero { padding-top: 18px; }
  h1 { font-size: 48px; }
  .chips { flex-wrap: wrap; overflow: visible; padding-top: 14px; padding-bottom: 10px; }
  .days { flex-wrap: wrap; row-gap: 6px; padding-bottom: 4px; }
  .cat-pick, .presets { flex-wrap: wrap; }
  .day { padding-top: 24px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
  .thumb { width: 76px; height: 76px; }
  .fab { right: max(24px, calc(50% - 584px)); bottom: calc(28px + var(--bottom)); }
  /* Saved: the account strip and Following stay a readable width */
  #list > .acct-strip, #list > .acct-row, #list > .following { max-width: 608px; }

  .sheet {
    top: max(32px, 6vh); bottom: auto; max-height: calc(100% - 2 * max(32px, 6vh));
    border-radius: 22px; overflow: hidden;
    opacity: 0; transform: translateY(18px) scale(0.98);
    transition: transform 0.35s var(--ease), opacity 0.25s;
  }
  .sheet.open { opacity: 1; transform: none; }
  .grab { cursor: default; }
  .grab::before { content: none; }

  /* An event: the flyer on the left, held in view, and everything else beside it */
  .sheet:has(> .sheet-body > .ev-title) { max-width: 940px; }
  /* The flyer spans every row; the last row is 1fr so a tall flyer stretches that one, not the gaps between the rows */
  .sheet-body:has(> .ev-title) { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); grid-template-rows: repeat(19, auto) 1fr; column-gap: 28px; align-items: start; padding-left: 24px; padding-right: 24px; }
  .sheet-body:has(> .ev-title) > * { grid-column: 2; }
  .sheet-body:has(> .ev-title) > :first-child { grid-column: 1; grid-row: 1 / -1; position: sticky; top: 0; margin: 0 0 24px; border-radius: 18px; overflow: hidden; }
  .sheet-body:has(> .ev-title) > .hero-img { width: 100%; height: min(70vh, 560px); }
  .sheet-body:has(> .ev-title) > .hero-tile { height: 320px; font-size: 96px; }
  .sheet-body:has(> .ev-title) > .hero-tile.logo img { width: 180px; height: 180px; }
  .sheet-body:has(> .ev-title) > .ev-badges { margin-top: 6px; }
  .sheet-body:has(> .ev-title) > .ev-title { padding-right: 40px; font-size: 30px; }
}

/* A mouse: things answer the pointer. (Touch screens don't hover, so phones never see this.) */
@media (hover: hover) and (pointer: fine) {
  .card { transition: transform 0.2s var(--ease), box-shadow 0.2s; }
  .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 28px rgba(0, 0, 0, 0.1); }
  .card:active { transform: scale(0.99); }
  .card.featured:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 28px rgba(0, 0, 0, 0.1), inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
  .chip:not(.on):hover, .dpill:not(.on):hover, .seg-opt:not(.on):hover { background: var(--fill); }
  .chip.home:hover { background: var(--accent-soft); }
  .icon-btn:hover, .lang-btn:hover, .sheet-close:hover, .search-x:hover { background: var(--fill); }
  .fab-snap:hover, .fab-type:hover { background: rgba(0, 0, 0, 0.08); }
  .pill:not(.on):hover, .act:not(.on):hover .ring { background: color-mix(in srgb, var(--card) 92%, var(--ink)); }
  .town-row:hover { background: var(--fill); }
  .post-row:hover, .acct-strip:not(.has):hover { background: color-mix(in srgb, var(--card) 94%, var(--ink)); }
  .link:hover, footer button:hover, footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* The welcome (2026-11-03): the app's icon and name, one line, an account or just a look. Left like every sheet. */
.welcome { padding: 4px 0 2px; }
.welcome-icon { display: block; width: 64px; height: 64px; margin: 0 0 16px; border-radius: 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.welcome .sheet-h { margin: 0 0 6px; font-size: 30px; letter-spacing: -0.02em; }
.welcome .sheet-sub { margin: 0 0 18px; font-size: 17px; }
.welcome-alt { display: block; margin: 0 -12px; text-align: left; }

/* ---------- the server's copy (src/seo.js) ---------- */
/* The Worker draws this week's list (or the event, or the business) into the page for search engines; a first visit
   sees it until the app draws its own, so it's shaped like the cards. renderList takes it down. */
.ssr { padding: 0 16px; }
.ssr h2 { margin: 18px 4px 6px; font-size: 17px; font-weight: 750; }
.ssr h3 { margin: 16px 4px 8px; font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ssr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ssr li a { display: block; padding: 12px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.ssr li b { display: block; font-weight: 650; font-size: 16.5px; line-height: 1.25; }
.ssr li span, .ssr .ssr-meta { color: var(--muted); font-size: 14.5px; }
.ssr article { padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.ssr article h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
.ssr article p { margin: 6px 0; line-height: 1.45; }
.ssr article a { color: var(--accent-ink); font-weight: 600; }
