/* Collinsville Daily News — Community Calendar (Rendered demo)
   Brand: CDN purple #5f249f + elegant serif wordmark. Clean, ad-free, mobile-first. */

:root{
  --purple:#5f249f; --purple-dark:#461b75; --purple-light:#782dc9;
  --purple-wash:#f4eefb; --purple-line:#e7ddf4;
  --gold:#9a6b12; --gold-soft:#fbf1d8; --gold-line:#e9d39a;
  --ink:#1c1726; --muted:#6c6480;
  --bg:#faf9fc; --card:#ffffff; --line:#ece8f2; --field-line:#b7b1c6;
  --shadow:0 1px 2px rgba(28,23,38,.05), 0 6px 22px rgba(95,36,159,.07);
  --shadow-lg:0 10px 40px rgba(95,36,159,.16);
  --serif:'Playfair Display',Georgia,'Times New Roman',serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  /* state grammar: purple=pitch · green=live · gold=system/monetization chrome */
  --live:#1f9d4d; --live-deep:#1a6b3b; --live-wash:#eafaf0; --live-line:#b8e6c9; --live-text:#1b6e3d;
  --gold-text:#875c0f;            /* gold as TEXT on light (AA-safe) — fills keep --gold */
  --body:#4a4458;                 /* paragraph copy (~6.5:1) */
  --faint:#6e6488;                /* was #7a7090 — clears AA on --bg, not just white */
  --header-h:64px;
  /* spacing scale (8px base) */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px;
  /* radius scale */
  --r-xs:8px; --r-sm:10px; --r-md:14px; --r-lg:18px;
  --shadow-gold:0 1px 2px rgba(28,23,38,.05),0 6px 22px rgba(154,107,18,.12);
  --t:.15s;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--purple);text-decoration:none}
a:not(.btn):not(.a-btn):hover{color:var(--purple-dark);text-decoration:underline;text-underline-offset:2px}
.btn-primary:hover,.btn-primary:active{color:#fff}
.btn-ghost:hover,.btn-ghost:active{color:var(--purple)}
a:focus-visible,button:focus-visible,.chip:focus-visible,.btn:focus-visible,
.viewtoggle button:focus-visible,.evcard:focus-visible,.tile:focus-visible,
.tw-card:focus-visible,[role="button"]:focus-visible,select:focus-visible,
.skip-link:focus-visible{outline:2px solid var(--purple-light);outline-offset:2px}
.evcard:focus-visible,.tile:focus-visible{border-color:var(--purple-light)}
img{max-width:100%;display:block}
.wrap{max-width:1080px;margin:0 auto;padding:0 var(--space-4)}
@media(min-width:768px){.wrap{padding:0 var(--space-5)}}
@media(max-width:400px){.wrap{padding:0 var(--space-3)}}
.serif{font-family:var(--serif)}

/* ---------- Shared a11y utilities ---------- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-9999px;top:0;z-index:200;background:var(--purple);color:#fff;padding:10px 16px;border-radius:0 0 8px 0;font-weight:700}
.skip-link:focus{left:0}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line)}
.state-demo .site-header{background:rgba(252,247,238,.92);border-bottom:1px solid var(--gold-line)}
/* the header is the persistent state-cue anchor — keep it sticky; do not move the pill out of it */
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);gap:12px}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand img{height:34px;width:auto}
.brand .sep{width:1px;height:26px;background:var(--purple-line);margin:0 2px}
.brand .kicker{font-size:13px;color:var(--muted);font-weight:500;white-space:nowrap;letter-spacing:.01em}
.statepill{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;padding:4px 9px;border-radius:999px;white-space:nowrap;line-height:1.2}
.state-demo .statepill{background:var(--live-wash);color:var(--live-text);border:1px solid var(--live-line)}
.state-demo .statepill::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--live);flex-shrink:0}
.state-overview .statepill,.state-teaser .statepill{background:var(--purple-wash);color:var(--purple);border:1px solid var(--purple-line)}
.header-actions{display:flex;align-items:center;gap:10px}
.btn{display:inline-flex;align-items:center;gap:7px;font-family:var(--sans);font-size:14px;font-weight:600;border-radius:var(--r-sm);padding:9px 15px;border:1px solid transparent;cursor:pointer;transition:transform var(--t) ease,box-shadow var(--t) ease,background var(--t) ease,border-color var(--t) ease;white-space:nowrap}
.btn-primary{background:var(--purple);color:#fff}
.btn-primary:hover{background:var(--purple-dark)}
.btn-ghost{background:#fff;color:var(--purple);border-color:var(--purple-line)}
.btn-ghost:hover{background:var(--purple-wash)}
.btn-sm{padding:7px 12px;font-size:13px;border-radius:9px}

/* ---------- Hero ---------- */
.hero{padding:var(--space-6) 0 var(--space-4);text-align:center}
.hero h1{font-family:var(--serif);font-weight:800;font-size:clamp(24px,4vw,36px);
  line-height:1.1;margin:0 0 8px;letter-spacing:-.01em}
.hero h1 .accent{color:var(--purple)}
.hero p{color:var(--body);font-size:clamp(15px,2.2vw,17px);margin:0 auto;max-width:560px}

/* One-time snapshot note: a slim, dismissible pill. Seen once, then the x removes it for good (remembered),
   so it never persistently sits above the calendar or crowds the first impression. */
.snapnote{display:flex;align-items:center;gap:7px;width:fit-content;max-width:100%;margin:12px auto 0;
  padding:5px 7px 5px 13px;background:var(--purple-wash);border:1px solid var(--purple-line);border-radius:999px;
  color:var(--purple-dark);font-size:12.5px;line-height:1.3}
.snapnote svg{flex-shrink:0;color:var(--purple)}
.snapnote .snap-txt{min-width:0}
.snapnote b{font-weight:700;white-space:nowrap}
.snapnote-x{flex-shrink:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;padding:0;
  border:0;background:transparent;color:var(--purple);font-size:17px;line-height:1;cursor:pointer;border-radius:50%;
  opacity:.6;transition:opacity var(--t) ease,background var(--t) ease}
.snapnote-x:hover{opacity:1;background:#fff}
.snapnote[hidden]{display:none}

/* ---------- Live calendar app frame (demo only) ---------- */
.state-demo .appframe{position:relative;background:#fff;border:1px solid var(--line);
  border-radius:var(--r-lg);box-shadow:var(--shadow);padding:46px 18px 22px;margin:6px 0 0}
.state-demo .appframe::before{content:"Live calendar · collinsvilledailynews.com";
  position:absolute;top:0;left:0;right:0;height:34px;display:flex;align-items:center;gap:7px;
  padding:0 16px;font-size:11.5px;font-weight:700;color:var(--muted);
  background:linear-gradient(180deg,#faf9fc,#fff);border-bottom:1px solid var(--line);
  border-radius:var(--r-lg) var(--r-lg) 0 0}
.state-demo .appframe>.toolbar{margin-top:0}
.state-demo .appframe .toolbar{background:#fff}
/* toolbar is sticky top:64px — inside the padded frame it still pins to viewport, which is correct */
@media(max-width:680px){
  .state-demo .appframe{padding:38px 18px 16px;border-radius:var(--r-md)}
  .state-demo .appframe::before{height:32px;font-size:11.5px}
}
.state-demo .header-actions{flex-wrap:wrap;justify-content:flex-end}

/* ---------- Breadcrumb (demo only) ---------- */
.crumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding-top:12px}
.crumb ol{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:8px}
.crumb li{display:flex;align-items:center;gap:8px}
.crumb a{color:var(--purple);font-weight:600}
.crumb a:hover{text-decoration:underline;text-underline-offset:2px}
.crumb b{color:var(--ink);font-weight:700}
.crumb span{color:var(--faint)}
.crumb [aria-current="page"]{color:var(--ink);font-weight:700}

/* ---------- Toolbar / filters ---------- */
.toolbar{position:sticky;top:var(--header-h);z-index:40;background:var(--bg);padding:var(--space-3) 0}
.searchrow{display:flex;gap:var(--space-3);margin-bottom:var(--space-3)}
.search{flex:1;position:relative}
.search input{width:100%;height:48px;border:1px solid var(--field-line);border-radius:var(--r-sm);
  padding:0 16px 0 44px;font-size:16px;font-family:var(--sans);background:#fff;color:var(--ink);
  box-shadow:var(--shadow);-webkit-appearance:none;appearance:none;background-clip:padding-box}
.search input:focus{outline:none;border-color:var(--purple-light);box-shadow:0 0 0 3px var(--purple-wash)}
.search svg{position:absolute;left:15px;top:15px;color:var(--faint)}
.viewtoggle{display:flex;background:#fff;border:1px solid var(--field-line);border-radius:12px;padding:4px;box-shadow:var(--shadow)}
.viewtoggle button{border:0;background:none;padding:0 13px;height:auto;min-height:38px;padding-top:7px;padding-bottom:7px;border-radius:9px;cursor:pointer;color:var(--muted);font-weight:600;font-size:13px;display:flex;align-items:center;gap:6px;font-family:var(--sans)}
.viewtoggle button.active{background:var(--purple);color:#fff;font-weight:800}
.viewtoggle button:hover:not(.active){color:var(--purple);background:var(--purple-wash)}
.chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.chip{border:1px solid var(--field-line);background:#fff;color:var(--ink);border-radius:999px;padding:8px 14px;font-size:13.5px;font-weight:600;cursor:pointer;transition:border-color var(--t) ease,background var(--t) ease,color var(--t) ease;font-family:var(--sans)}
.chip:hover{border-color:var(--purple-light)}
.btn:active,.chip:active,.viewtoggle button:active{transform:translateY(1px)}
.chip.active{background:var(--purple);border-color:var(--purple);color:#fff;font-weight:800}
.chip-div{width:1px;height:22px;background:var(--line);margin:0 3px}
.catselect{margin-left:auto}
.catselect select{height:44px;border:1px solid var(--field-line);border-radius:var(--r-sm);background:#fff;
  padding:0 40px 0 14px;font-size:16px;font-weight:600;color:var(--ink);font-family:var(--sans);cursor:pointer;
  appearance:none;-webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c6480' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat;background-position:right 15px center}
.resultcount{color:var(--muted);font-size:14px;margin:var(--space-4) 2px var(--space-2)}

/* ---------- Featured spotlight ---------- */
.spotlight{position:relative;border-radius:var(--r-lg);overflow:hidden;margin:var(--space-2) 0 var(--space-5);box-shadow:var(--shadow-lg);min-height:230px;display:flex;align-items:flex-end;color:#fff;background:#2a1640}
.spotlight img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.72}
.spotlight .grad{position:absolute;inset:0;background:linear-gradient(180deg,rgba(42,22,64,.32) 0%,rgba(42,22,64,.46) 50%,rgba(30,14,48,.9) 100%)}
.spotlight svg{width:15px;height:15px;flex-shrink:0}
.spotlight .inner{position:relative;padding:var(--space-5) var(--space-5);width:100%}
.spotlight .tag{display:inline-flex;align-items:center;gap:6px;background:var(--gold);color:#241700;font-weight:800;font-size:12px;letter-spacing:.08em;text-transform:uppercase;padding:5px 11px;border-radius:999px;margin-bottom:12px}
.spotlight h2{font-family:var(--serif);font-weight:800;font-size:clamp(22px,3.6vw,32px);margin:0 0 8px;line-height:1.12;text-shadow:0 1px 3px rgba(0,0,0,.4)}
.spotlight .meta{font-size:15px;opacity:1;color:#fff;display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin-bottom:var(--space-4);text-shadow:0 1px 2px rgba(0,0,0,.55)}
.spotlight .meta b{font-weight:700}

/* ---------- List view ---------- */
.daygroup{margin-bottom:var(--space-6)}
:root{--dayhead-top:188px}
@media(max-width:768px){:root{--dayhead-top:120px}}
/* Not pinned. A pinned bar broke because the collapsing categories row shifts every card up by
   the collapse height, sliding the first card under a bar frozen at the tall-toolbar position.
   Scrolling with its own events means the bar and its cards always move together: no overlap,
   no JS timing to get wrong. Each day stays clearly labeled at the top of its group. */
.dayhead{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:9px 15px;background:var(--purple-wash);border:1px solid var(--purple-line);border-radius:12px;box-shadow:0 4px 14px rgba(95,36,159,.12)}
.dayhead .d{font-family:var(--serif);font-weight:800;font-size:19px}
.dayhead .dd{color:var(--muted);font-size:13.5px;font-weight:500}
.dayhead .today{background:var(--purple);color:#fff;font-size:11px;font-weight:800;letter-spacing:.04em;padding:3px 9px;border-radius:999px;text-transform:uppercase}
.evlist{list-style:none;margin:0;padding:0}

.evcard{position:relative;display:flex;gap:var(--space-4);background:var(--card);border:1px solid var(--line);
  border-radius:var(--r-md);padding:var(--space-4);margin-bottom:var(--space-3);cursor:pointer;
  transition:transform var(--t) ease,box-shadow var(--t) ease,border-color var(--t) ease;box-shadow:var(--shadow)}
.evcard:hover{border-color:var(--purple-line);box-shadow:var(--shadow-lg);transform:translateY(-1px)}
.evcard .thumb{width:108px;height:96px;border-radius:10px;object-fit:cover;flex-shrink:0;background:var(--purple-wash)}
.evcard .time{flex-shrink:0;width:74px;text-align:center;padding-top:3px}
.evcard .time .t{font-weight:800;font-size:16px;color:var(--purple);line-height:1.1}
.evcard .time .ampm{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:.04em}
.evcard .body{min-width:0;flex:1}
.evcard h3{font-family:var(--serif);font-weight:700;font-size:18px;margin:1px 0 5px;line-height:1.28}
.evcard .where{color:var(--muted);font-size:13px;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.evcard .when{font-size:12.5px;font-weight:800;color:var(--purple);letter-spacing:.01em;margin:0 0 3px}
.evcard .when-t{color:var(--muted);font-weight:600}
.evcard .badges{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.cat{font-size:11.5px;font-weight:700;color:var(--purple);background:var(--purple-wash);padding:3px 9px;border-radius:999px;letter-spacing:.01em}
.free{font-size:11.5px;font-weight:700;color:var(--live-deep);background:#e6f6ec;padding:3px 9px;border-radius:999px}
.cost{font-size:11.5px;font-weight:700;color:var(--ink);background:#f0edf6;padding:3px 9px;border-radius:999px}
.sponsor{font-size:11.5px;font-weight:700;color:var(--gold-text);background:var(--gold-soft);border:1px solid var(--gold-line);padding:3px 9px;border-radius:999px;display:inline-flex;align-items:center;gap:5px}
.sponsor svg{width:11px;height:11px}

/* ---------- Grid view ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:var(--space-4);list-style:none;margin:0;padding:0}
.tile{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;cursor:pointer;transition:transform var(--t) ease,box-shadow var(--t) ease,border-color var(--t) ease;box-shadow:var(--shadow);display:flex;flex-direction:column}
.tile:hover{border-color:var(--purple-line);box-shadow:var(--shadow-lg);transform:translateY(-2px)}
.tile .pic{aspect-ratio:16/10;width:100%;object-fit:cover;background:var(--purple-wash)}
.tile .tbody{padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-2);flex:1}
.tile .dt{font-size:13px;font-weight:700;color:var(--purple);text-transform:uppercase;letter-spacing:.04em}
.tile h3{font-family:var(--serif);font-weight:700;font-size:17px;margin:0;line-height:1.28}
.tile .where{color:var(--muted);font-size:13px;margin-top:auto}
.tile .badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:2px}

/* ---------- Map view ---------- */
#map{height:560px;border-radius:16px;border:1px solid var(--line);box-shadow:var(--shadow);z-index:1}
.leaflet-popup-content{margin:12px 14px;font-family:var(--sans)}
.mappop h4{font-family:var(--serif);font-size:15px;margin:0 0 4px;line-height:1.18}
.mappop .mp-meta{font-size:12.5px;color:var(--muted);margin-bottom:8px}
.mappop .mp-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:2px}
.mappop .mp-link{font-weight:700;font-size:13px;color:var(--purple);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;font-family:var(--sans)}

/* ---------- Modal ---------- */
.modal-back{position:fixed;inset:0;background:rgba(28,18,40,.55);backdrop-filter:blur(3px);z-index:100;display:none;align-items:flex-start;justify-content:center;overflow-y:auto;padding:calc(var(--space-5) + env(safe-area-inset-top)) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom))}
.modal-back.open{display:flex}
.modal{background:#fff;border-radius:20px;max-width:620px;width:100%;box-shadow:var(--shadow-lg);overflow:hidden;animation:pop .2s ease}
@keyframes pop{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
.modal .hero-img{width:100%;height:260px;object-fit:cover;background:var(--purple-wash);display:block}
.modal .hero-wrap{display:block;position:relative;width:100%;padding:0;border:0;background:none;cursor:zoom-in;overflow:hidden}
.modal .hero-zoom{position:absolute;right:12px;bottom:12px;width:34px;height:34px;border-radius:9px;background:rgba(18,10,28,.5);color:#fff;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:background var(--t) ease}
.modal .hero-wrap:hover .hero-zoom,.modal .hero-wrap:focus-visible .hero-zoom{background:rgba(18,10,28,.82)}
.modal .hero-wrap:focus-visible{outline:2px solid var(--purple-light);outline-offset:-3px}
.lightbox{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(18,10,28,.88);opacity:0;transition:opacity .18s ease;cursor:zoom-out;-webkit-tap-highlight-color:transparent}
.lightbox.show{opacity:1}
.lightbox img{max-width:96vw;max-height:92vh;width:auto;height:auto;border-radius:10px;box-shadow:0 24px 70px rgba(0,0,0,.55);object-fit:contain}
.lb-close{position:absolute;top:16px;right:16px;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.94);border:0;cursor:pointer;font-size:26px;line-height:1;color:var(--ink);display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.lb-close:hover{background:#fff}
.lb-close:focus-visible{outline:2px solid #fff;outline-offset:3px}
.spotlight .sl-zoom{position:absolute;top:12px;right:12px;z-index:2;width:34px;height:34px;border-radius:9px;background:rgba(18,10,28,.5);color:#fff;border:0;cursor:zoom-in;display:flex;align-items:center;justify-content:center;transition:background var(--t) ease}
.spotlight .sl-zoom:hover{background:rgba(18,10,28,.85)}
.spotlight .sl-zoom:focus-visible{outline:2px solid #fff;outline-offset:2px}
.modal .mclose{position:absolute;top:14px;right:14px;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.92);border:1px solid var(--line);cursor:pointer;font-size:22px;line-height:1;color:var(--ink);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow)}
.modal .mclose:hover{background:#fff;color:var(--purple-dark)}
.modal .mclose:focus-visible{outline:2px solid var(--purple-light);outline-offset:2px}
.modal .mbody{padding:var(--space-5)}
.modal .ribbon{display:inline-flex;align-items:center;gap:6px;background:var(--gold);color:#241700;font-weight:800;font-size:12px;letter-spacing:.08em;text-transform:uppercase;padding:5px 11px;border-radius:999px;margin-bottom:12px}
.modal .ribbon svg{width:12px;height:12px}
.modal h2{font-family:var(--serif);font-weight:800;font-size:26px;margin:0 0 14px;line-height:1.12}
.mrow{display:flex;gap:12px;align-items:flex-start;margin-bottom:var(--space-3);font-size:14.5px}
.mrow svg{color:var(--purple);flex-shrink:0;margin-top:2px}
.mrow .lbl{color:var(--ink)}
.mrow .sub{color:var(--muted);font-size:13px}
.maplinks{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px}
.maplink{display:inline-flex;align-items:center;gap:5px;padding:0;border:0;background:none;font:inherit;font-size:13px;font-weight:700;color:var(--purple);cursor:pointer;text-decoration:none}
.maplink svg{width:14px;height:14px}
.maplink:hover{text-decoration:underline}
.mdesc{color:#3a3349;font-size:14.5px;line-height:1.62;margin:16px 0;white-space:pre-line}
.mpresented{background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:12px;padding:12px 15px;margin:14px 0;display:flex;align-items:center;gap:10px;font-size:13.5px}
.mpresented .ico{width:30px;height:30px;border-radius:8px;background:var(--gold);color:#241700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.mpresented .ico svg{width:16px;height:16px}
.mpresented b{color:var(--gold-text)}
.mactions{display:flex;gap:var(--space-3);flex-wrap:wrap;margin-top:var(--space-5);
  padding-top:var(--space-5);border-top:1px solid var(--line)}
.mbadges{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:4px}

/* ---------- Submit form ---------- */
.form-grid{display:grid;gap:var(--space-4)}
.field label{display:block;font-size:13px;font-weight:700;margin-bottom:5px;color:var(--ink)}
.field input,.field textarea,.field select{width:100%;border:1px solid var(--field-line);
  border-radius:var(--r-sm);padding:12px 14px;font-size:16px;line-height:1.3;font-family:var(--sans);
  color:var(--ink);background:#fff;-webkit-appearance:none;appearance:none;background-clip:padding-box;min-height:46px}
.field select{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c6480' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right 15px center;padding-right:40px}
.field input:focus,.field textarea:focus,.field select:focus,.catselect select:focus{
  outline:none;border-color:var(--purple-light);box-shadow:0 0 0 3px var(--purple-wash)}
/* native date/time controls ignore line-height/padding on iOS — pin height + appearance */
.field input[type=date],.field input[type=time]{-webkit-appearance:none;appearance:none;min-height:46px;line-height:1.3}
.field input[type=date]::-webkit-date-and-time-value{text-align:left}
.two{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3)}
.confirm{text-align:center;padding:30px 10px}
.confirm .ck{width:62px;height:62px;border-radius:50%;background:#e6f6ec;color:#1f7a44;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.confirm h2{font-family:var(--serif);margin:0 0 8px;line-height:1.18}
.confirm p{color:var(--muted);margin:0 auto;max-width:340px}
.hint{font-size:12.5px;color:var(--muted);margin-top:6px}
.hint-ok{color:#1f7a44;font-weight:600}
.hint svg{width:13px;height:13px;vertical-align:-2px;margin-right:2px}
.fopt{color:var(--muted);font-weight:400}
.field input[type=file]{border:1px dashed var(--field-line);background:var(--bg);padding:10px 12px;font-size:13.5px;color:var(--muted);cursor:pointer}
.field input[type=file]::file-selector-button{font:inherit;font-weight:700;font-size:13px;color:var(--purple);background:var(--purple-wash);border:1px solid var(--purple-line);border-radius:8px;padding:8px 14px;margin-right:12px;cursor:pointer;transition:background var(--t) ease}
.field input[type=file]::file-selector-button:hover{background:#ece1f7}
.form-intro{color:var(--muted);margin:0 0 18px;font-size:14.5px}
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"],.field select[aria-invalid="true"]{border-color:#b3261e;box-shadow:0 0 0 3px #fbe9e7}
.field-error{color:#b3261e;font-size:13px;font-weight:600;margin-top:5px}
.search input::placeholder,.field input::placeholder,.field textarea::placeholder{color:#5f586e;opacity:1}

/* ---------- Footer ---------- */
.site-footer{margin-top:var(--space-7);border-top:1px solid var(--line);background:#fff;
  padding:var(--space-5) 0;text-align:center;color:var(--muted);font-size:13px}
.site-footer .credit{margin-top:8px;font-size:13px;color:var(--muted)}
/* Rendered Digital footer lockup — the sanctioned maker credit (rendereddigital.io family convention) */
.footer-credit{margin-top:14px;font-size:12px;color:var(--muted)}
.rendered-lockup{display:inline-flex;align-items:center;gap:.4em;text-decoration:none;color:var(--muted)}
.rendered-lockup:hover,.rendered-lockup:focus-visible{color:var(--purple)}
.rendered-prism{width:1.15em;height:1.15em;flex-shrink:0;vertical-align:middle}
.rendered-verb{font-weight:400;letter-spacing:normal}
.rendered-wordmark{font-weight:700;letter-spacing:.15em;text-transform:uppercase;font-size:.85em}
.empty{text-align:center;padding:var(--space-7) var(--space-5);color:var(--muted)}
.empty .serif{font-size:20px;color:var(--ink);margin-bottom:6px;display:block}

/* ---------- Demo / state banner ---------- */
.demobar{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;
  font-size:12.5px;font-weight:600;padding:calc(var(--space-2) + env(safe-area-inset-top)) var(--space-4) var(--space-2);letter-spacing:.01em;line-height:1.4}
.demobar b{font-weight:800}
/* PITCH state (overview + teaser): purple */
.state-overview .demobar,.state-teaser .demobar{
  background:linear-gradient(90deg,var(--purple),var(--purple-light));color:#fff}
/* LIVE state (calendar): gold system bar + pulsing green dot */
.state-demo .demobar{background:var(--gold-soft);color:#5a3d07;border-bottom:1px solid var(--gold-line)}
.state-demo .demobar b{color:var(--gold-text)}
.state-demo .demobar::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--live);
  box-shadow:0 0 0 0 rgba(31,157,77,.5);animation:livepulse 2s infinite;flex-shrink:0}
@keyframes livepulse{0%{box-shadow:0 0 0 0 rgba(31,157,77,.5)}70%{box-shadow:0 0 0 6px rgba(31,157,77,0)}100%{box-shadow:0 0 0 0 rgba(31,157,77,0)}}
@media(prefers-reduced-motion:reduce){.state-demo .demobar::before{animation:none}}

@media(max-width:680px){
  :root{--header-h:56px}
  .brand .kicker{display:none}
  .hero{padding:var(--space-5) 0 var(--space-3)}
  .searchrow{flex-direction:column}
  .viewtoggle{align-self:stretch}
  .viewtoggle button{flex:1;justify-content:center;height:44px}
  .evcard{gap:var(--space-3);padding:var(--space-3)}
  .evcard .thumb{width:84px;height:84px}
  .evcard .time{display:none}
  .catselect{margin-left:0;width:100%}
  .catselect select{width:100%;height:44px}
  .chip{padding:11px 15px;font-size:14px}
  #map{height:440px}
  .demobar{font-size:12px;line-height:1.4}
  .modal-back{padding:calc(var(--space-3) + env(safe-area-inset-top)) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom))}
  .modal{border-radius:var(--r-md)}
  .modal .hero-img{height:200px}
  .modal .mbody{padding:var(--space-4)}
  .modal h2{font-size:22px}
  .spotlight .inner{padding:var(--space-5) var(--space-4)}
  .spotlight{min-height:200px}
  .donateband,.whatsnext{padding:var(--space-5) var(--space-4)}
  .empty{padding:var(--space-6) var(--space-4)}
}

/* ---------- Monetization — every surface is revenue SHE keeps ---------- */
/* CTA buttons (were <a>, now real <button> — keep their look) */
.cta{font:inherit;cursor:pointer}
.adslot .cta,.sponsorband .cta{border-width:1px;border-style:solid}
.adslot .cta{border-color:var(--purple)}
.adslot .cta:hover{border-color:var(--purple-dark)}
/* Calendar sponsor (premium top slot) */
.sponsorband{display:flex;align-items:center;gap:14px;background:linear-gradient(90deg,var(--gold-soft),#fff 70%);border:1px solid var(--gold-line);border-radius:var(--r-md);padding:var(--space-3) var(--space-4);margin:0 0 var(--space-5)}
.sponsorband .lab{font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--gold-text);background:#fff;border:1px solid var(--gold-line);padding:5px 9px;border-radius:7px;white-space:nowrap;text-align:center;line-height:1.25}
.sponsorband .txt{font-size:14px;color:var(--ink);flex:1;line-height:1.35;min-width:0}
.sponsorband .txt b{font-family:var(--serif);font-weight:700;line-height:1.18}
.sponsorband .txt .sub{color:var(--muted);font-size:12px;display:block;margin-top:1px}
.sponsorband .cta{font-size:12.5px;font-weight:700;color:var(--gold-text);white-space:nowrap;border:1px solid var(--gold-line);background:#fff;border-radius:9px;padding:8px 13px}
.sponsorband .cta:hover{background:var(--gold-soft)}

/* Native in-feed ad slot (sold + kept by the paper) */
.adslot{display:flex;gap:15px;align-items:center;background:#fff;border:1px dashed var(--purple-line);border-radius:var(--r-md);padding:var(--space-4);margin:0 0 var(--space-3);position:relative}
.adslot .slotlab{position:absolute;top:-8px;left:15px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);background:var(--bg);padding:1px 8px;border:1px solid var(--line);border-radius:6px}
.adslot .ico{width:48px;height:48px;border-radius:12px;background:var(--purple-wash);color:var(--purple);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.adslot .body{flex:1;min-width:0}
.adhead{font-family:var(--serif);font-size:16px;margin:0 0 3px;line-height:1.18}
.adslot p{margin:0;font-size:13px;color:var(--body);line-height:1.4}
.adslot .cta{font-size:13px;font-weight:700;color:#fff;background:var(--purple);border-radius:9px;padding:10px 15px;white-space:nowrap}
.adslot .cta:hover{background:var(--purple-dark)}

/* Promoted event treatment (a paid feature): a soft gold wash, matching the app's gradient idiom instead of a rail. */
.evcard.promoted{background:linear-gradient(150deg,var(--gold-soft),#fff 70%);border-color:var(--gold-line);box-shadow:var(--shadow-gold)}

/* Support / donate */
.donateband{background:linear-gradient(120deg,var(--purple),var(--purple-light));color:#fff;border-radius:var(--r-lg);padding:var(--space-6);margin:var(--space-6) 0 var(--space-2);display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.donateband .dt h3{font-family:var(--serif);font-weight:800;font-size:22px;margin:0 0 5px;line-height:1.18}
.donateband .dt p{margin:0;font-size:14px;opacity:.93;max-width:520px;line-height:1.5}
.donateband .dbtns{display:flex;gap:10px;flex-wrap:wrap}
.donateband .btn-white{background:#fff;color:var(--purple)}
.donateband .btn-white:hover{background:#f3ecfb}
.donateband .btn-out{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.6)}
.donateband .btn-out:hover{background:rgba(255,255,255,.24)}

/* Promote upsell after a submission */
.promo-up{background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:13px;padding:16px 18px;margin-top:20px;text-align:left}
.promo-up h4{font-family:var(--serif);margin:0 0 5px;font-size:17px;line-height:1.18}
.promo-up p{margin:0 0 13px;font-size:13.5px;color:#5a4a2a;line-height:1.45}
.promo-up .row{display:flex;gap:11px;align-items:center;flex-wrap:wrap}
.promo-up .price{font-weight:800;color:var(--gold-text);font-size:16px}

/* Keep a keyboard-focused card clear of the sticky header + toolbar */
.evcard,.tile,.spotlight,.adslot,.dayhead{scroll-margin-top:170px}
@media(max-width:680px){.evcard,.tile,.spotlight,.adslot,.dayhead{scroll-margin-top:150px}}
@media(max-width:600px){.evcard,.tile,.spotlight,.adslot,.dayhead{scroll-margin-top:140px}}

@media(max-width:680px){
  .sponsorband{flex-wrap:wrap;gap:10px}
  .sponsorband .lab{order:1}
  .sponsorband .txt{order:2;flex-basis:100%}
  .sponsorband .cta{order:3;flex-basis:100%;text-align:center;min-height:44px;
    display:inline-flex;align-items:center;justify-content:center}
  .donateband{flex-direction:column;align-items:flex-start;gap:16px}
  .donateband .dbtns{flex-direction:column;align-self:stretch;width:100%}
  .donateband .dbtns .btn{justify-content:center}
  .whatsnext{flex-direction:column;align-items:flex-start;gap:16px}
  .whatsnext .btn-white{align-self:stretch;text-align:center;justify-content:center}
}

/* ============ COVER PAGE ============ */
.btn-lg{font-size:15.5px;padding:13px 22px;border-radius:12px}
.cover-hero{text-align:center;padding:var(--space-7) 0 var(--space-6);max-width:760px;margin:0 auto}
.eyebrow{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--purple);background:var(--purple-wash);padding:10px 20px;border-radius:999px;margin-bottom:20px;line-height:1.2}
.eyebrow-live{background:var(--live-wash);color:var(--live-text)}
.cover-hero h1{font-family:var(--serif);font-weight:800;font-size:clamp(26px,6.4vw,52px);line-height:1.14;margin:0 0 20px;letter-spacing:-.005em}
.cover-hero h1 .accent{color:var(--purple)}
.cover-hero .lede{font-size:clamp(16px,2.3vw,18.5px);color:#48415a;line-height:1.6;margin:0 auto 26px;max-width:640px}
.cover-hero .lede b{color:var(--ink);font-weight:700}
.cta-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.freenote{font-size:13px;color:var(--muted);margin:20px auto var(--space-5);max-width:520px}

.props{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-4);padding:var(--space-6) 0 0}
.prop{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:var(--space-5);box-shadow:var(--shadow)}
.prop .ic{width:48px;height:48px;border-radius:13px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.ic-purple{background:var(--purple-wash);color:var(--purple)}
.ic-gold{background:var(--gold-soft);color:var(--gold)}
.ic-char{font-family:var(--serif);font-weight:800;font-size:27px;line-height:1}
.prop h3{font-family:var(--serif);font-weight:700;font-size:19px;margin:0 0 8px;line-height:1.2}
.prop p{margin:0;font-size:14px;color:var(--body);line-height:1.55}
.prop p b{color:var(--ink)}

.revenue{padding:var(--space-7) 0 0}
.rev-head{text-align:center;max-width:620px;margin:0 auto 22px}
.rev-head h2{font-family:var(--serif);font-weight:800;font-size:clamp(24px,4vw,32px);margin:0 0 8px;line-height:1.18}
.rev-head p{margin:0;color:var(--body);font-size:15px}
.rev-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-3)}
.rev-item{background:linear-gradient(180deg,#fff,var(--purple-wash));border:1px solid var(--purple-line);border-radius:var(--r-md);padding:var(--space-4)}
.rev-tag{display:inline-block;font-family:var(--serif);font-weight:700;font-size:16px;color:var(--purple);margin-bottom:7px}
.rev-item p{margin:0;font-size:13px;color:var(--body);line-height:1.5}
/* Payment reassurance beat: how the money actually reaches the publisher (explained, not built into the demo). */
.paynote{margin-top:var(--space-5);background:linear-gradient(150deg,var(--gold-soft),#fff 72%);border:1px solid var(--gold-line);border-radius:var(--r-md);padding:22px 30px;text-align:center}
.paynote h3{font-family:var(--serif);font-weight:800;font-size:19px;margin:0 0 8px;color:var(--ink);line-height:1.2}
.paynote p{margin:0 auto;font-size:14px;color:var(--body);line-height:1.62;max-width:58ch}
.paynote b{color:var(--ink);font-weight:700}

.runit{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:var(--space-6);margin:var(--space-7) 0 0;display:flex;align-items:center;justify-content:space-between;gap:var(--space-6);flex-wrap:wrap}
.ri-txt{flex:1;min-width:250px}
.ri-eyebrow{display:inline-block;font-size:11.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--purple);background:var(--purple-wash);border:1px solid var(--purple-line);padding:5px 11px;border-radius:999px;margin-bottom:13px}
.ri-txt h2{font-family:var(--serif);font-weight:800;font-size:clamp(21px,3.4vw,28px);margin:0 0 8px;line-height:1.14;color:var(--ink)}
.ri-txt p{margin:0;font-size:14.5px;color:var(--body);line-height:1.55;max-width:560px}
.ri-act{display:flex;flex-direction:column;align-items:flex-start;gap:9px;flex-shrink:0}
.ri-note{font-size:12.5px;color:var(--muted)}
@media(max-width:560px){.runit{padding:var(--space-5)}.ri-act{align-items:stretch;width:100%}.ri-act .btn{justify-content:center;text-align:center}}

.whatsnext{background:linear-gradient(120deg,var(--purple),var(--purple-light));color:#fff;border-radius:20px;padding:var(--space-6);margin:var(--space-7) 0 var(--space-2);display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.whatsnext h2{font-family:var(--serif);font-weight:800;font-size:clamp(21px,3.4vw,28px);margin:0 0 7px;line-height:1.12}
.whatsnext p{margin:0;font-size:14.5px;opacity:.93;max-width:560px;line-height:1.55}

/* ============ TEASER / EMBED PAGE ============ */
.siteframe{border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-lg);background:#fff;margin:8px 0 10px}
.state-teaser .siteframe{position:relative}
.state-teaser .siteframe::before{content:"Your homepage (mock-up)";display:block;
  font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:var(--faint);padding:10px 16px 0}
.sf-bar{display:flex;align-items:center;gap:var(--space-3) var(--space-4);
  padding:var(--space-3) var(--space-4);flex-wrap:wrap;border-bottom:1px solid var(--line);background:#fff}
.sf-logo{height:30px;width:auto}
.sf-nav{display:flex;gap:20px;font-size:13.5px;font-weight:600;color:var(--muted);flex-wrap:wrap}
.sf-nav .on{color:var(--purple);position:relative}
.sf-nav .on::after{content:"";position:absolute;left:0;right:0;bottom:-15px;height:2px;background:var(--purple)}
.sf-body{padding:var(--space-4);background:#fbfafd}
@media(min-width:768px){.sf-body{padding:var(--space-5)}}
.sf-lead{display:flex;gap:18px;align-items:flex-start;margin-bottom:4px}
.sf-lead .sf-img{height:148px;width:228px;flex-shrink:0;margin:0}
.sf-lead .sf-lines{flex:1;min-width:0;padding-top:4px}
.sf-img{background:linear-gradient(135deg,#ece8f2,#e2dcef);border-radius:12px}
.sf-lines i{display:block;height:11px;border-radius:6px;background:#e9e6f0;margin-bottom:9px}
.sf-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:22px}
.sf-art{display:flex;gap:14px;align-items:flex-start}
.sf-art .sf-img{height:74px;width:108px;flex-shrink:0;margin:0}
.sf-art .sf-lines{flex:1;min-width:0}

/* the embed itself — a full-width "Upcoming Events" band that matches the paper's full-width layout (no sidebar) */
.embed-wrap{position:relative;margin:24px 0}
.embed-note{position:absolute;top:-12px;right:14px;z-index:2;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:var(--gold);padding:4px 10px;border-radius:7px;box-shadow:var(--shadow)}
.teaser-widget{border:2px solid var(--purple);border-radius:var(--r-md);overflow:hidden;box-shadow:var(--shadow-lg);background:#fff}
.tw-head{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--purple);color:#fff;padding:12px 16px}
.tw-head>span{font-family:var(--serif);font-weight:700;font-size:17px}
.tw-all{font-size:13px;font-weight:700;color:#fff;white-space:nowrap;opacity:.95}
.tw-all:hover{opacity:1;text-decoration:underline}
.tw-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:10px;padding:14px}
.tw-card{display:block;border:1px solid var(--line);border-radius:11px;padding:12px 13px;text-decoration:none;background:#fff;transition:border-color var(--t) ease,box-shadow var(--t) ease,background var(--t) ease}
.tw-card:hover{border-color:var(--purple);background:var(--purple-wash);box-shadow:var(--shadow)}
.tw-d{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--purple);margin-bottom:6px}
.tw-t{font-weight:700;font-size:13.5px;color:var(--ink);line-height:1.3;margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tw-m{font-size:12px;color:var(--muted)}

.how{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-5);margin:var(--space-6) 0 var(--space-2)}
.how-step{display:flex;gap:var(--space-3);align-items:flex-start}
.how-n{flex-shrink:0;width:32px;height:32px;border-radius:50%;background:var(--purple);color:#fff;font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center;font-family:var(--serif)}
.how-step h4{font-family:var(--serif);font-weight:700;font-size:16px;margin:3px 0 5px;line-height:1.18}
.how-step p{margin:0;font-size:13.5px;color:var(--body);line-height:1.5}
.teaser-cta{text-align:center;margin:var(--space-6) 0 var(--space-2)}

@media(max-width:820px){
  .props{grid-template-columns:1fr}
  .rev-grid{grid-template-columns:1fr 1fr}
  .how{grid-template-columns:1fr;gap:var(--space-6)}
}

/* ---------- Responsive tiers (1024 / 760 / 540 / 480 / 400) ---------- */
@media(max-width:1024px){.wrap{padding:0 22px}.revenue{padding-top:var(--space-7)}.rev-grid{gap:12px}}

@media(max-width:760px){
  .catselect{margin-left:0;flex-basis:100%;margin-top:4px}
  .catselect select{width:100%}
}

@media(max-width:540px){
  :root{--header-h:56px}
  .site-header .wrap{gap:8px}
  .header-actions{gap:8px}
  .btn-sm{padding:7px 10px;font-size:12.5px}
  .chip-div{display:none}
  .spotlight{min-height:200px}
  .spotlight .meta{gap:6px 12px;font-size:13.5px;margin-bottom:12px}
  .spotlight h2{font-size:21px}
  .adslot{flex-wrap:wrap;gap:12px}
  .adslot .ico{width:40px;height:40px;border-radius:var(--r-sm)}
  .adslot .cta{order:3;flex-basis:100%;text-align:center;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .sf-body{padding:var(--space-4)}
  .sf-lead{flex-direction:column;gap:10px}
  .sf-lead .sf-img{width:100%;height:150px}
  .sf-row{grid-template-columns:1fr;gap:16px}
  .sf-art .sf-img{width:96px;height:66px}
  .sf-nav{gap:14px;font-size:12.5px}
  .cover-hero h1 br{display:none}
}

@media(max-width:480px){
  .two{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr}
  .mactions{flex-direction:column}
  .mactions .btn{width:100%;justify-content:center}
  .rev-grid{grid-template-columns:1fr;gap:var(--space-3)}
  .rev-item{padding:var(--space-4)}
  .paynote{padding:20px 20px}
  .header-actions .btn-ghost{display:none}  /* logo already links to index.html; keeps Submit uncramped */
}

@media(max-width:400px){
  .evcard{gap:10px;padding:10px}
  .evcard .thumb{width:72px;height:72px;border-radius:9px}
  .evcard h3{font-size:17px}
  .evcard .where{font-size:13px;margin-bottom:6px}
  #map{height:380px}
  .spotlight .meta{flex-direction:column;gap:5px}
  .sf-bar{padding:12px 14px;gap:12px}
  .sf-nav{display:none}   /* faux nav is decorative; kills horizontal overflow at 320–375 */
}

/* ---------- Mobile input floor (iOS zoom guard) — keep last ---------- */
@media(max-width:680px){
  input,textarea,select{font-size:16px}
}

/* ---------- Mobile top-bar polish (pass 2): calm, crisp first impression ---------- */
.demobar .db-short{display:none}
@media(max-width:600px){
  /* one tidy banner line instead of a 3-line wrap */
  .demobar{font-size:12px;padding:calc(9px + env(safe-area-inset-top)) 14px 9px;line-height:1.4}
  .demobar .db-full{display:none}
  .demobar .db-short{display:inline}
  /* lighter header: smaller logo, drop the divider + the redundant state pill
     (the gold banner + header tint + breadcrumb already say "live demo") */
  .brand img{height:26px}
  .brand .sep{display:none}
  .statepill{display:none}
  .site-header .wrap{gap:10px}
  /* kill the third "live demo" shout — the banner already carries it */
  .state-demo .eyebrow-live{display:none}
  /* tighten the run-up to the calendar */
  .crumb{padding-top:10px;font-size:12px}
  .state-demo .hero{padding-top:var(--space-4)}
}

/* ---------- Mobile container / overflow fixes (pass 2.1) ---------- */
@media(max-width:600px){
  html{overflow-x:clip}                          /* belt: never let a phone scroll sideways */
  .teaser-widget,.siteframe,.sf-body,.tw-strip{max-width:100%;min-width:0}
  .sf-body{padding:14px}                          /* a little breathing room around the embedded widget */
}

/* ============ Pitch surfaces (overview + teaser): editorial neutral, purple = "go live" only ============ */
/* calm neutral state banner instead of full purple */
.state-overview .demobar,.state-teaser .demobar{background:#f0eef4;color:var(--ink);border-bottom:1px solid var(--line)}
.state-overview .demobar b,.state-teaser .demobar b{color:var(--ink)}
/* status pill -> neutral (it's a label, not an action) */
.state-overview .statepill,.state-teaser .statepill{background:#ecebf1;color:var(--muted);border:1px solid var(--line)}
/* hero wordmark -> ink, matching her real black masthead */
.state-overview .cover-hero h1 .accent,.state-teaser .cover-hero h1 .accent{color:var(--ink)}
/* eyebrow -> calm neutral */
.state-overview .eyebrow,.state-teaser .eyebrow{background:#ecebf1;color:var(--muted)}
/* prop icons -> neutral slate (the gold "money" icon stays gold on purpose) */
.state-overview .ic-purple{background:#ecebf1;color:#574f6d}
/* revenue labels -> ink, neutral card wash */
.state-overview .rev-tag{color:var(--ink)}
.state-overview .rev-item{background:linear-gradient(180deg,#fff,#f5f4f8);border-color:var(--line)}
/* numbered steps (teaser) -> neutral */
.state-teaser .how-n{background:#574f6d}
/* closing band -> dark slate (drops the big purple block, and its CTA finally reads) */
.state-overview .whatsnext{background:linear-gradient(120deg,#272430,#3a3644)}
/* make the white CTA actually render anywhere (was only styled inside .donateband) */
.btn-white{background:#fff;color:var(--purple)}
.btn-white:hover{background:#f3ecfb}

/* ---------- Compact sticky toolbar on phones (reclaim viewport for content) ---------- */
.datechips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
@media(max-width:600px){
  /* date pills = one swipeable row instead of wrapping to two; category drops below */
  #chiprow{align-items:stretch}
  .datechips{flex:0 0 100%;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding-bottom:2px}
  .datechips::-webkit-scrollbar{display:none}
  .datechips .chip{flex:0 0 auto}
  .catselect{flex:0 0 100%;margin-left:0;margin-top:0}
  .catselect select{width:100%}
  /* trim the bar's height */
  .toolbar{padding:10px 0}
  .searchrow{margin-bottom:8px}
  .search input{height:44px}
  .search svg{top:13px}
  .resultcount{margin:10px 2px 2px}
}

/* ---------- Mobile readability bump (S5: nothing meaningful shrinks below ~11px) ---------- */
@media(max-width:600px){
  .cat,.free,.cost,.sponsor{font-size:12px}
  .evcard .where,.tile .where,.resultcount{font-size:13.5px}
  .statepill{font-size:12px}
  .spotlight .tag{font-size:12px}
  .crumb{font-size:13px}
}

/* ---------- Leaflet OSM attribution: legible + non-tiny (m6) ---------- */
.leaflet-control-attribution a{color:#0a5a7a}
.leaflet-control-attribution{font-size:11px}

/* ---------- Long line length on wide screens (m9) ---------- */
.prop p,.adslot p,.how-step p{max-width:60ch}

/* ---------- Reduced motion: also calm hover/tap transforms + modal pop (m7) ---------- */
@media(prefers-reduced-motion:reduce){
  .evcard:hover,.tile:hover{transform:none}
  .btn:active,.chip:active,.viewtoggle button:active{transform:none}
  .modal{animation:none}
  *{transition-duration:0.001ms !important}
}

/* ---------- Ad-slot sample thumbnail (lets her picture an advertiser's graphic in context) ---------- */
.adslot .adthumb{position:relative;flex-shrink:0;width:108px;height:80px;border-radius:9px;overflow:hidden;color:#fff;
  background:linear-gradient(135deg,#2f6f9e,#57a0cf);display:flex;flex-direction:column;justify-content:flex-end;padding:9px 10px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.07)}
.adslot .adthumb-tag{position:absolute;top:6px;left:6px;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;background:rgba(255,255,255,.92);color:#26506e;padding:2px 6px;border-radius:5px}
.adslot .adthumb-logo{position:absolute;top:7px;right:8px;width:22px;height:22px;border-radius:6px;background:rgba(255,255,255,.92);color:#2f6f9e;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}
.adslot .adthumb-copy b{display:block;font-family:var(--serif);font-size:15px;line-height:1.05}
.adslot .adthumb-copy span{font-size:10.5px;opacity:.95}
@media(max-width:540px){.adslot .adthumb{width:90px;height:74px}.adslot .adthumb-copy b{font-size:13px}}

/* ---------- Scroll-condensing sticky chrome (demo, phones + small tablets): reclaim viewport while reading ---------- */
@media(max-width:768px){
  .state-demo .site-header .wrap{transition:height .18s ease}
  .state-demo .brand img{transition:height .18s ease}
  .state-demo #chiprow{max-height:140px;overflow:hidden;transition:max-height .22s ease,opacity .18s ease,margin .2s ease}
  .state-demo.condensed .site-header .wrap{height:48px}
  .state-demo.condensed .brand img{height:23px}
  .state-demo.condensed .toolbar{top:48px}
  .state-demo.condensed #chiprow{max-height:0;opacity:0;margin:0;pointer-events:none}
  .state-demo .toolbar:focus-within #chiprow{max-height:140px;opacity:1;pointer-events:auto}
  /* on a filter tap, results snap to just under the condensed bar (see scrollToResults) */
  #resultcount{scroll-margin-top:122px}
}

/* more air above the eyebrow on phones so it doesn't read as bolted to the header */
@media(max-width:600px){.cover-hero{padding-top:64px}}

/* ---------- Install prompt (banner + info sheet) + app-share ---------- */
.install-banner{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:180;display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 34px rgba(28,23,38,.20);padding:14px 16px;max-width:560px;margin:0 auto;transform:translateY(160%);opacity:0;transition:transform .32s cubic-bezier(.2,.7,.2,1),opacity .3s ease}
.install-banner.show{transform:none;opacity:1}
.install-banner .ib-txt{flex:1 1 200px;min-width:0;display:flex;flex-direction:column;gap:2px}
.install-banner .ib-txt b{font-size:15px;color:var(--ink)}
.install-banner .ib-txt span{font-size:13px;color:var(--muted);line-height:1.4}
.install-banner .ib-act{display:flex;gap:8px;align-items:center;flex-shrink:0}
@media(max-width:420px){.install-banner .ib-act{flex-basis:100%}.install-banner .ib-add{flex:1;justify-content:center}}
@media(prefers-reduced-motion:reduce){.install-banner{transition:opacity .2s ease;transform:none}}
.ins-back{position:fixed;inset:0;z-index:190;background:rgba(28,23,38,.5);display:flex;align-items:flex-end;justify-content:center;opacity:0;transition:opacity .2s ease}
.ins-back.open{opacity:1}
.ins-sheet{position:relative;background:#fff;width:100%;max-width:520px;max-height:90vh;overflow:auto;border-radius:20px 20px 0 0;padding:26px 22px calc(26px + env(safe-area-inset-bottom));box-shadow:0 -10px 34px rgba(28,23,38,.28);transform:translateY(24px);transition:transform .25s ease}
.ins-back.open .ins-sheet{transform:none}
@media(min-width:560px){.ins-back{align-items:center}.ins-sheet{border-radius:18px;max-height:86vh}}
@media(prefers-reduced-motion:reduce){.ins-back,.ins-sheet{transition:opacity .2s ease}.ins-sheet{transform:none}}
.ins-x{position:absolute;top:12px;right:12px;width:34px;height:34px;border:0;background:var(--bg);border-radius:50%;font-size:22px;line-height:32px;color:var(--muted);cursor:pointer;padding:0}
.ins-x:hover{background:var(--line);color:var(--ink)}
.ins-sheet h2{font-family:var(--serif);font-weight:800;font-size:22px;margin:0 30px 12px 0;line-height:1.16;color:var(--ink)}
.ins-sheet h3{font-size:13px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--purple);margin:20px 0 9px}
.ins-intro{font-size:14.5px;line-height:1.55;color:var(--body);margin:0 0 10px}
.ins-sub{font-size:13px;font-weight:700;color:var(--ink);margin:14px 0 6px}
.ins-steps{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:9px}
.ins-steps li{font-size:14.5px;line-height:1.5;color:var(--ink)}
.ins-fine{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:13px 15px;margin:18px 0 0}
.ins-fine p{font-size:13px;color:var(--muted);line-height:1.5;margin:0 0 8px}
.ins-fine p:last-child{margin:0}
.ins-push{font-size:13.5px;line-height:1.5;color:var(--purple-dark);background:var(--purple-wash);border:1px solid var(--purple-line);border-radius:12px;padding:12px 15px;margin:16px 0 0}
.app-share{text-align:center;margin:var(--space-6) 0 var(--space-2)}
.app-share .as-lead{font-size:15px;color:var(--muted);margin:0 0 13px}
.footrow{margin:12px 0 0}
.footlink{background:none;border:0;padding:0;font:inherit;font-size:13px;font-weight:700;color:var(--purple);cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.footlink:hover{text-decoration:underline}

/* ---- text wordmark (product: tenant brand is text, not a logo file) ---- */
.brand-name{font-family:var(--serif);font-weight:800;font-size:19px;color:var(--ink);letter-spacing:.01em;white-space:nowrap}
