/* Scenegoer — warm cream + ink chrome (Gander-inspired); colour lives only in the events. */
:root {
  --bg: #FFF4ED;
  --surface: #FFFAF6;
  --surface-2: #F9E9DE;
  --ink: #171717;
  --muted: #7A6C62;
  --line: rgba(23, 23, 23, .08);
  --line-strong: rgba(23, 23, 23, .16);
  --today: #D7EC5A;          /* Graza lime */
  --heat: #F2B48C;           /* apricot, for busy hours */
  --weekend: rgba(242, 180, 140, .10);
  --shadow: 0 1px 0 rgba(23,23,23,.04), 0 18px 50px -12px rgba(60, 35, 20, .28);
  --chip-mix: 58%;           /* how much category colour goes into a pill */

  /* category fills (soft) + inks (text on the fill) */
  --c-music: #C3B4F7;      --i-music: #3E2F8C;
  --c-nightlife: #F5B3CF;  --i-nightlife: #82244F;
  --c-comedy: #F7D877;     --i-comedy: #6B4E00;
  --c-sports: #B5DC9A;     --i-sports: #2A5E17;
  --c-arts: #A9CDF2;       --i-arts: #1B4F82;
  --c-food: #F8BE98;       --i-food: #7E3910;
  --c-festivals: #D9EA7A;  --i-festivals: #4A5600;
  --c-community: #DED3C8;  --i-community: #574C42;

  --radius: 14px;
  /* corner scale: rounded rectangles, not pills (circles are kept only for markers like "today") */
  --r-xs: 5px; --r-sm: 8px; --r-md: 10px; --r-lg: 12px;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412; --surface: #1D1916; --surface-2: #29231F; --ink: #F7EDE5; --muted: #A69488;
    --line: rgba(255, 244, 237, .07); --line-strong: rgba(255, 244, 237, .15);
    --today: #C9DF4C; --heat: #E0915F; --weekend: rgba(224, 145, 95, .05);
    --shadow: 0 18px 50px -12px rgba(0,0,0,.7);
    --chip-mix: 24%;
    --i-music: #D3C8FF; --i-nightlife: #FFC3DC; --i-comedy: #FBE08C; --i-sports: #C3E8A9;
    --i-arts: #BBDAFB; --i-food: #FFCBA8; --i-festivals: #E4F28E; --i-community: #E3D9CF;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font-size: 14px; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }

/* a category-coloured element sets --c (fill) and --i (ink) */
.tint { background: color-mix(in srgb, var(--c) var(--chip-mix), var(--surface)); color: var(--i); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 18px; padding: 14px 24px 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: 6px; }
.wordmark { font-family: "Bagel Fat One", "Instrument Sans", sans-serif; font-size: 30px; line-height: 1; letter-spacing: -.01em;
  transform: translateY(-.17em); } /* the font reserves room for capitals; lift the lowercase midline onto the header's centre line */
.brand { align-items: center; }
.trio { height: 56px; width: auto; flex: none; margin: -14px -6px -14px -4px; transform: rotate(-3deg); }
.datenav { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 280px; }
.datenav h1 { font-size: 22px; font-weight: 600; margin: 0 0 0 6px; letter-spacing: -.02em; white-space: nowrap; }
.arrows { display: flex; }
.btn { border: 1px solid var(--line-strong); background: transparent; border-radius: var(--r-md); padding: 7px 15px; cursor: pointer; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn.ink, .quick-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.icon-btn { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 99px; cursor: pointer; font-size: 18px; line-height: 1; display: grid; place-items: center; transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); }
.quick { display: flex; gap: 6px; }
.quick-btn { font-weight: 600; }
.search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 0 14px; height: 36px; width: 222px; transition: border-color .15s, background .15s; }
.search span { color: var(--muted); font-size: 17px; }
.search:focus-within { border-color: var(--ink); background: var(--surface); }
#search { border: 0; background: transparent; outline: none; width: 100%; min-width: 0; }
#search::placeholder { color: var(--muted); }
.seg { display: flex; background: var(--surface-2); border-radius: var(--r-lg); padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: var(--r-sm); cursor: pointer; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(23,23,23,.12); }

/* ---------- filters ---------- */
.filters { display: flex; gap: 20px; padding: 4px 24px 14px; align-items: flex-start; justify-content: space-between; }
.group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.group.what { flex: none; }
.group.where { justify-content: flex-end; flex: 1 1 0; }
.glabel { font-family: "Caveat Brush", cursive; font-size: 18px; color: var(--muted); flex: none; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.where .chips { justify-content: flex-end; }
.chip { --c: var(--surface-2); --i: var(--ink); display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; padding: 5px 11px; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; user-select: none; transition: background .15s, color .15s, opacity .15s, border-color .15s; }
.chip .n { font-weight: 500; opacity: .6; font-size: 12px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--c) var(--chip-mix), var(--surface)); color: var(--i); }
.chip[aria-pressed="false"] { background: transparent; border-color: var(--line-strong); color: var(--muted); }
.chip[aria-pressed="false"]:hover { color: var(--ink); }
.chip.all[aria-pressed="true"], .chip.city[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip.all[aria-pressed="false"] { opacity: .8; }
.chips.small .chip { font-size: 12px; padding: 3px 10px; }
.more-wrap { position: relative; }
.chip.more-btn[aria-expanded="true"], .chip.more-btn.has-on { border-color: var(--ink); color: var(--ink); }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; width: 290px; animation: rise .15s ease; }
.more-menu[hidden] { display: none; }

/* ---------- layout ---------- */
.layout { flex: 1; display: flex; min-height: 0; padding: 0 24px 0; gap: 16px; }
.cal { flex: 1; min-width: 0; overflow: auto; background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; border: 1px solid var(--line); border-bottom: 0; }
.panel { width: 0; opacity: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; transition: width .25s ease, opacity .2s ease; margin-left: -16px; }
.panel.open { width: 400px; opacity: 1; margin-left: 0; }
.panel > * { min-width: 398px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 16px 12px 20px; }
.panel-kicker { font-family: "Caveat Brush", cursive; font-size: 19px; color: var(--muted); line-height: 1; }
.panel h2 { margin: 4px 0 2px; font-size: 24px; letter-spacing: -.02em; font-weight: 700; }
.panel-count { color: var(--muted); font-size: 13px; }
.panel .chips { padding: 0 20px 14px; border-bottom: 1px solid var(--line); flex: none; }
.panel-list { overflow-y: auto; flex: 1; padding: 4px 10px 40px; }
.group-label { position: sticky; top: 0; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--muted); padding: 14px 10px 6px; z-index: 1; text-transform: uppercase; letter-spacing: .05em; }
.card { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 10px; border-radius: 12px; width: 100%; border: 0; background: none; text-align: left; cursor: pointer; transition: background .15s; align-items: start; }
.card:hover { background: var(--surface-2); }
.card .when { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.card h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.card .meta { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-xs); }
.free { color: var(--i-sports); font-weight: 600; }
.empty { color: var(--muted); padding: 60px 20px; text-align: center; }
.empty .hand { font-family: "Caveat Brush", cursive; font-size: 26px; color: var(--ink); display: block; margin-bottom: 4px; }

/* ---------- month ---------- */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(124px, 1fr); min-height: 100%; }
.dow { position: sticky; top: 0; z-index: 2; background: var(--surface); text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px 8px; border-bottom: 1px solid var(--line); }
.day { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: background .15s; }
.day:nth-child(7n) { border-right: 0; }
.day.wknd { background: var(--weekend); }
.day:hover { background: var(--surface-2); }
.day.other .num { color: var(--muted); font-weight: 500; }
.day.past { opacity: .45; }
.day.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.day-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.num { font-weight: 700; font-size: 14px; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; margin-left: -4px; }
.day.today .num { background: var(--today); color: #171717; }
.count { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ev { display: flex; gap: 5px; align-items: baseline; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; border-radius: var(--r-xs); padding: 2px 7px; cursor: pointer; transition: filter .15s, transform .1s; }
.ev:hover { filter: saturate(1.4) brightness(.97); }
.ev .t { font-weight: 700; flex: none; font-variant-numeric: tabular-nums; opacity: .8; }
.ev .x { overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.more { font-size: 12px; font-weight: 600; color: var(--muted); padding: 1px 7px; }
.mix { display: flex; gap: 3px; margin-top: auto; padding-top: 4px; }
.mix i { height: 4px; border-radius: 4px; background: var(--c); }

/* ---------- week / day time grid ---------- */
.grid { display: grid; min-width: 680px; }
.corner, .colhead { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.colhead { padding: 10px 10px 8px; cursor: pointer; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.colhead.wknd { background: color-mix(in srgb, var(--heat) 6%, var(--surface)); }
.colhead .d { font-size: 12px; font-weight: 600; color: var(--muted); }
.colhead .n { font-size: 18px; font-weight: 700; min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 99px; }
.colhead.today .n { background: var(--today); color: #171717; }
.colhead .tot { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.hour { font-size: 11px; color: var(--muted); text-align: right; padding: 0 10px; transform: translateY(-7px); font-variant-numeric: tabular-nums; }
.slot { --h: 0; position: relative; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 44px; cursor: pointer; padding: 4px 5px; background: color-mix(in srgb, var(--heat) calc(var(--h) * 38%), transparent); transition: box-shadow .15s; }
.slot:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.slot.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.slot .cnt { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot .cnt small { font-weight: 500; color: var(--muted); }
.slot .dots { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 3px; }
.slot .dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--c); }
.slot.allday { min-height: 36px; border-bottom: 1px solid var(--line-strong); }
.slot.now::after { content: ""; position: absolute; left: -1px; right: 0; top: var(--now); height: 2px; background: var(--ink); z-index: 1; pointer-events: none; }
.slot.now::before { content: ""; position: absolute; left: -5px; top: calc(var(--now) - 4px); width: 10px; height: 10px; border-radius: 99px; background: var(--ink); z-index: 1; }
.week-ev { display: block; font-size: 11.5px; font-weight: 500; line-height: 1.3; padding: 2px 6px; margin-bottom: 2px; border-radius: var(--r-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.week-ev:hover, .dchip:hover { filter: saturate(1.4) brightness(.97); }

.dayrow { display: grid; grid-template-columns: 72px 1fr; }
.dayrow .slot { display: flex; align-items: flex-start; gap: 10px; min-height: 54px; padding: 7px 10px; }
.dayrow .slot .cnt { min-width: 28px; height: 24px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--surface); border: 1px solid var(--line-strong); font-size: 12px; flex: none; }
.dayrow .flow { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.dchip { font-size: 12.5px; padding: 4px 10px; border-radius: var(--r-xs); max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.dchip b { font-weight: 600; }
.dchip span { opacity: .7; }

/* list (agenda) view */
.agenda { max-width: 760px; margin: 0 auto; padding: 0 14px 40px; }
.agenda-day { padding-top: 6px; }
.agenda-head { position: sticky; top: 0; z-index: 2; background: var(--surface); display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 16px 10px 8px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; border-bottom: 1px solid var(--line); }
.agenda-head em { font-family: "Caveat Brush", cursive; font-style: normal; font-weight: 400; font-size: 19px; color: var(--muted); }
.agenda-head small { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.agenda .card { border-bottom: 1px solid var(--line); border-radius: 0; }
.agenda .card:last-child { border-bottom: 0; }
.agenda-more { display: block; margin: 24px auto 0; }

/* invite friends */
.btn.invite { border-color: var(--ink); font-weight: 600; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); animation: rise .15s ease; }
.share-row[hidden] { display: none; }
.share-row a { text-decoration: none; }
.share-preview { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: var(--muted); font-style: italic; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-md); font-weight: 600; font-size: 13px; z-index: 60; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.filter-toggle { display: none; font-weight: 600; gap: 6px; align-items: center; }
.filter-toggle[aria-expanded="true"] { background: var(--surface-2); border-color: var(--ink); }
.ft-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-xs); background: var(--ink); color: var(--bg); font-size: 11px; font-variant-numeric: tabular-nums; }
.ft-n[hidden] { display: none; }

.foot { display: flex; justify-content: space-between; gap: 16px; padding: 10px 24px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); flex-wrap: wrap; background: var(--surface); margin: 0 24px; }
.foot a { color: var(--ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* ---------- event popup ---------- */
.pop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(40, 25, 15, .32); backdrop-filter: blur(2px); animation: fade .15s ease; }
.pop[hidden] { display: none; }
.pop-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); animation: rise .18s ease; }
.pop-x { position: absolute; top: 10px; right: 10px; z-index: 1; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(6px); }
.pop-img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; background: var(--surface-2); }
.pop-main { padding: 18px 22px 22px; }
.pop-main h2 { margin: 10px 30px 14px 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.facts { display: grid; gap: 9px; margin-bottom: 16px; }
.fact { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 14px; line-height: 1.4; }
.fact .k { font-family: "Caveat Brush", cursive; font-size: 17px; color: var(--muted); line-height: 1.2; }
.fact .sub { color: var(--muted); font-size: 12.5px; }
.desc { font-size: 14px; line-height: 1.55; color: color-mix(in srgb, var(--ink) 80%, var(--muted)); margin: 0 0 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions a { text-decoration: none; }
.listed { margin-top: 16px; font-size: 11.5px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(10px) scale(.98); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- tablet ---------- */
@media (max-width: 1320px) {
  .filters { flex-direction: column; gap: 8px; }
  .group.what, .group.where { flex: none; }
  .group.where, .where .chips { justify-content: flex-start; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .top { gap: 10px; padding: 12px 16px 8px; }
  .brand { flex: 1; }
  .wordmark { font-size: 26px; }
  .trio { height: 46px; margin: -10px -4px -10px -4px; }
  .seg button { padding: 6px 11px; }
  .seg [data-view="week"] { display: none; } /* seven columns don't fit a phone; list/month/day do */
  .agenda { padding: 0 4px 30px; }
  .datenav { order: 3; min-width: 100%; }
  .datenav h1 { font-size: 18px; }
  .quick { order: 4; width: 100%; }
  .quick-btn, .filter-toggle { flex: 1; justify-content: center; padding: 7px 10px; }
  .filter-toggle { display: inline-flex; }
  /* Search and the What/Where chips stay folded away until "Filters" is tapped. */
  .search { order: 5; flex: 1 1 100%; width: auto; min-width: 0; display: none; }
  .filters { padding: 2px 16px 10px; display: none; }
  body.filters-open .search { display: flex; }
  body.filters-open .filters { display: flex; }
  /* Bottom bar: just the email ask (the rest stays in the page for search engines). */
  .foot { justify-content: center; text-align: center; padding: 8px 12px; }
  .foot #updated, .foot .browse, .foot .foot-extra { display: none; }
  body.subscribed .foot { display: none; }
  .group { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .layout { padding: 0 8px; }
  .foot { margin: 0 8px; }
  .month { grid-auto-rows: minmax(74px, 1fr); }
  .dow { padding: 8px 4px 6px; text-align: center; }
  .day { padding: 5px 3px; align-items: center; }
  .day-top { flex-direction: column; gap: 0; }
  .num { margin: 0; }
  .ev, .day .more { display: none; }
  .mix { width: 100%; padding: 4px 3px 0; }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto !important; height: 0; margin: 0; border-radius: 22px 22px 0 0; box-shadow: var(--shadow); z-index: 20; transition: height .25s ease, opacity .2s; }
  .panel.open { height: 80vh; }
  .panel > * { min-width: 0; }
  .grid { min-width: 0; }
  .colhead { flex-direction: column; gap: 2px; padding: 8px 2px; }
  .colhead .tot { display: none; }
}

/* our own cover art, used when we don't have a licensed event image */
.pop-cover { aspect-ratio: 2 / 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 22px; border-radius: 20px 20px 0 0; position: relative; overflow: hidden; }
.pop-cover::before { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: color-mix(in srgb, var(--i) 12%, transparent); }
.pop-cover::after { content: ""; position: absolute; right: 70px; top: 40px; width: 90px; height: 90px; border-radius: 30px; background: color-mix(in srgb, var(--i) 9%, transparent); transform: rotate(18deg); }
.pop-cover span { font-family: "Bagel Fat One", sans-serif; font-size: 34px; line-height: 1; position: relative; }
.pop-cover b { font-family: "Caveat Brush", cursive; font-weight: 400; font-size: 20px; opacity: .8; position: relative; }

/* ---------- newsletter signup ---------- */
.signup-card { width: min(460px, 100%); }
.su-kicker { font-family: "Caveat Brush", cursive; font-size: 20px; color: var(--muted); line-height: 1; padding-top: 8px; }
.signup-card h2 { margin: 6px 30px 8px 0; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.su-lede { margin: 0 0 16px; color: color-mix(in srgb, var(--ink) 80%, var(--muted)); line-height: 1.5; }
.su-field { display: block; margin-bottom: 12px; }
.su-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 10px 0 6px; }
.su-field .su-label { margin-top: 0; }
#su-email { width: 100%; height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; font-size: 16px; background: var(--surface); color: var(--ink); outline: none; }
#su-email:focus { border-color: var(--ink); }
#su-email[aria-invalid="true"] { border-color: var(--i-nightlife); }
.su-hint { display: block; font-size: 13px; margin-top: 6px; color: var(--muted); }
.su-hint button { border: 0; background: none; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; cursor: pointer; }
.su-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.su-more { margin: 4px 0 14px; }
.su-more summary { cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.su-more summary::-webkit-details-marker { display: none; }
.su-more summary::before { content: "+ "; }
.su-more[open] summary::before { content: "– "; }
.su-more summary span { color: var(--muted); font-weight: 500; }
.su-more .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
/* Opt-in switch for the Sunday weeknight email: off unless the reader turns it on. */
.su-toggle { display: flex; gap: 12px; align-items: flex-start; margin: 2px 0 14px; cursor: pointer; font-size: 14px; line-height: 1.4; color: color-mix(in srgb, var(--ink) 80%, var(--muted)); }
.su-toggle b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.su-toggle input { appearance: none; flex: none; width: 38px; height: 22px; margin: 0; border-radius: 99px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; }
.su-toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.su-toggle input:checked { background: var(--ink); }
.su-toggle input:checked::after { transform: translateX(16px); }
.su-toggle input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.su-turnstile { min-height: 0; margin: 4px 0 10px; }
.su-submit { width: 100%; height: 46px; font-size: 15px; }
.su-submit[disabled] { opacity: .6; cursor: progress; }
.su-status { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; }
.su-status.ok { color: var(--i-sports); font-weight: 600; }
.su-status.err { color: var(--i-nightlife); }
.su-fine { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.panel-cta { margin: 18px 10px 0; padding: 16px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel-cta p { margin: 0; font-weight: 600; font-size: 14px; }

/* ---------- gentle signup asks ---------- */
.inline-ask { display: flex; align-items: center; gap: 12px; margin: 18px 6px 4px; padding: 14px 14px 14px 18px; border-radius: 14px; background: var(--surface-2); flex-wrap: wrap; }
.inline-ask div { flex: 1; min-width: 200px; font-size: 14px; }
.text-ask { display: block; margin-top: 10px; border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-ask:hover { color: var(--ink); }
.nudge { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 300px; padding: 16px 18px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); animation: rise .25s ease; }
.nudge .icon-btn { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; font-size: 14px; }
.nudge .hand { font-family: "Caveat Brush", cursive; font-size: 20px; color: var(--muted); }
.nudge p { margin: 4px 0 12px; font-size: 14px; line-height: 1.45; }
@media (max-width: 760px) { .nudge { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* long titles ("From Tue, Oct 27") shrink instead of colliding with the quick buttons */
.datenav { min-width: 300px; }
.datenav h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- featured (paid) events: pinned first, always labelled ---------- */
.featured-tag { background: var(--ink); color: var(--bg); letter-spacing: .02em; }
.card.featured { box-shadow: inset 3px 0 0 var(--ink); background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.ev.featured, .week-ev.featured, .dchip.featured { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 70%, transparent); }
.star { font-size: .9em; margin-right: 3px; flex: none; }

.foot .browse a { color: var(--muted); font-weight: 500; }
