/* T22: the public Events & Activities page (docs/FRONTEND.md section 4; the approved design in
   reports/frontend/calendar-approved/, D-20261108-17: calendar option C Hybrid, the day dialog, the phone layout).
   Loaded by events.html after vsra.css. It uses the live tokens (--vs-*, --t-*, --fs; A+ = body.large-text) and the shared
   filter panel (31-vs-filter.css). Events use ONE section colour (chartreuse, D-20261109-27; the dark-teal title bar stays) with deep-teal ink; categories are told apart by
   icon and word, status by words (Cancelled, Full, Ended). Every size follows A+ through --fs. */
:root { --ev-hl: #d4d655; --ev-hl-t: #e9f0df; --ev-hl-c: #dde8cb; --ev-hl-e: #6b6f00; --ev-ink: #062f37; --ev-line: #9fb4b8; --ev-focus: #1c5d99; }
.ev-wrap { padding-bottom: 28px; font-family: var(--vs-font, Figtree, sans-serif); color: var(--vs-ink); font-size: var(--t-body); line-height: 1.4; }
.ev-wrap *, .ev-wrap *::before, .ev-wrap *::after, dialog.ev-dlg *, .ev-print * { box-sizing: border-box; }
/* site rule: no outline after mouse / touch; a clear ring for the keyboard */
.ev-page :focus:not(:focus-visible) { outline: none !important; }
.ev-page :focus-visible { outline: 3px solid var(--ev-focus) !important; outline-offset: 2px !important; }
#rs-h:focus, #dlg-title:focus, .ev-card:focus { outline: none !important; }
#rs-h:focus-visible, .ev-card:focus-visible { outline: 3px solid var(--ev-focus) !important; }
html[data-input="pointer"] .ev-page :focus-visible, html[data-input="pointer"] .ev-page :focus { outline: none !important; }
html[data-input="keyboard"] #rs-h:focus { outline: 3px solid var(--ev-focus) !important; outline-offset: 2px !important; }

.ev-sample { margin: 0 0 8px; padding: 4px 10px; background: #ffd23f; color: #1a1a1a; font: 700 calc(14px * var(--fs,1))/1.3 Figtree, sans-serif; text-align: center; border-bottom: 1px solid #c9a100; }
.ev-wrap h2 { margin: 0; font: 800 calc(22px * var(--fs,1))/1.2 Figtree, sans-serif; color: var(--vs-teal); }
.ev-tl { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 6px; font: 700 calc(17px * var(--fs,1))/1.2 Figtree, sans-serif; color: var(--vs-teal); text-decoration: underline; text-underline-offset: 3px; }
.ev-tl:hover { color: #05282f; }
.ev-tl[hidden] { display: none; }
/* the live button language: white, 2 px deep edge, 4 px offset shadow, 8 px corners */
.ev-btn, .ev-back { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px; background: #fff; color: var(--vs-teal); border: 2px solid var(--ev-ink); border-radius: 0; box-shadow: 4px 4px 0 var(--ev-ink); font: 800 calc(17px * var(--fs,1))/1.15 Figtree, sans-serif; }
.ev-btn:hover, .ev-back:hover { background: #e3f0f1; }
.ev-btn:active, .ev-back:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ev-ink); }
.ev-btn .qn { font-weight: 600; }
.ev-empty { margin: 6px 0; color: #3e5559; }
.ev-gone { margin: 12px 0; padding: 12px; border: 2px solid var(--ev-ink); border-radius: 0; background: #fff; font-weight: 700; }

/* ---------- search and the shared filter panel ---------- */
.ev-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; }
.ev-sum[hidden] { display: none; }
.ev-sum-n { font: 800 calc(15px * var(--fs,1))/1 Figtree, sans-serif; color: var(--vsf-muted, #3d5257); }

/* ---------- category chip (icon) ---------- */
.ev-ic { display: inline-grid; place-items: center; flex: none; width: calc(24px * var(--fs,1)); height: calc(24px * var(--fs,1)); border-radius: 0; background: var(--ev-hl-c); box-shadow: inset 0 0 0 1px var(--ev-hl-e); color: var(--ev-ink); }
.ev-ic svg { width: 66%; height: 66%; }

/* ---------- quick views: one joined set, label above a quieter count ---------- */
.ev-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 10px; border: 2px solid var(--ev-ink); border-radius: 0; box-shadow: 4px 4px 0 var(--ev-ink); overflow: hidden; background: #fff; }
@media (min-width: 900px) { .ev-quick { max-width: 560px; } }
.ev-quick button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 54px; padding: 5px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; color: var(--ev-ink); }
.ev-quick button + button { border-left: 2px solid var(--ev-ink); }
.ev-quick button:hover { background: #e3f0f1; }
.ev-quick button:focus-visible { outline-offset: -5px !important; }
.ev-quick .ql { font: 800 calc(17px * var(--fs,1))/1.1 Figtree, sans-serif; }
.ev-quick .qn { font: 600 calc(15px * var(--fs,1))/1.1 Figtree, sans-serif; color: #3e5559; }

/* ---------- the calendar ---------- */
table.cal { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 2px solid var(--ev-ink); border-radius: 0; overflow: hidden; background: #fff; }
.cal th { padding: 7px 2px; background: #0b4a54; color: #fff; font: 800 calc(16px * var(--fs,1))/1 Figtree, sans-serif; text-align: center; border-left: 1px solid rgba(255,255,255,.25); }
.cal th:first-child { border-left: 0; }
.cal th abbr { text-decoration: none; }
.cal th .f, .cal th .x { display: none; }
.cal td { padding: 0; height: calc(58px * var(--fs,1)); vertical-align: top; border-left: 1px solid var(--ev-line); border-top: 1px solid var(--ev-line); background: #fff; }
.cal td:first-child { border-left: 0; }
.cal tbody tr:first-child td { border-top: 0; }
.cal .dc { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; height: 100%; min-height: 100%; padding: 4px 5px; cursor: pointer; overflow: hidden; }
button.dc:hover { background: #eef8f9; }
.cal .dc:focus-visible { outline: 3px solid var(--ev-focus) !important; outline-offset: -3px !important; }
.dn { display: inline-flex; align-items: baseline; gap: 4px; font: 800 calc(17px * var(--fs,1))/1.1 Figtree, sans-serif; color: var(--ev-ink); white-space: nowrap; }
.dn .mo, .dn .tw { color: #b45309; }
.dn .mo { font-weight: 800; }
.dn .tw { display: none; }
.cnt { position: absolute; right: 4px; bottom: 4px; min-width: calc(24px * var(--fs,1)); height: calc(24px * var(--fs,1)); padding: 0 5px; border-radius: 0; display: grid; place-items: center; background: var(--ev-hl-c); box-shadow: inset 0 0 0 1px var(--ev-hl-e); font: 800 calc(16px * var(--fs,1))/1 Figtree, sans-serif; color: var(--ev-ink); }
.evs { display: none; align-self: stretch; }
.cc { display: none; }
/* elapsed days of the current week: stripes, no events */
.cal td.past { background: repeating-linear-gradient(135deg, #f4f7f7 0 6px, #dce5e6 6px 8px); }
.cal td.past .dn { color: #4d6368; font-weight: 700; }
.cal td.past .dn .mo { color: #8a3300; }
/* today: a deep top rule (and the word "Today" on computers); chosen day: chartreuse fill */
.cal td.today .dc { box-shadow: inset 0 4px 0 var(--ev-ink); padding-top: 7px; }
.cal td.today .dn { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.cal td.sel { background: var(--ev-hl); }
.cal td.sel button.dc:hover { background: transparent; }
.cal td.sel .cnt { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ev-ink); }
.cal-after { display: flex; justify-content: flex-start; margin: 12px 0 4px; }

/* phones: shorter weekday names; at the narrowest, one letter */
@media (max-width: 359px) { .cal th .s { display: none; } .cal th .x { display: inline; } .dn .mo { display: none; } }
@media (max-width: 419px) { body.large-text .cal th .s { display: none; } body.large-text .cal th .x { display: inline; } body.large-text .dn .mo { display: none; } }
@media (max-width: 380px) { .cal .dc { padding: 3px 3px; } .cnt { right: 2px; bottom: 3px; padding: 0 3px; } }
@media (min-width: 600px) and (max-width: 899px) { .cal td { height: calc(76px * var(--fs,1)); } }

/* computers: this week shows 3 names and "+N more"; later weeks show the date and the number of events */
@media (min-width: 900px) {
  .cal th { padding: 9px 4px; }
  .cal th .s { display: none; } .cal th .f { display: inline; }
  .cal td { height: calc(96px * var(--fs,1)); }
  .cal tr.curwk td { height: calc(196px * var(--fs,1)); }
  .cal .dc { padding: 6px 7px; }
  .dn .tw { display: inline; font: 800 calc(14px * var(--fs,1))/1 Figtree, sans-serif; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
  .cal td.today .dn { text-decoration: none; }
  .cal td.today .dn > :not(.tw) { text-decoration: none; }
  .cnt { display: none; }
  .cc { display: inline-block; margin-top: 6px; font: 700 calc(15.5px * var(--fs,1))/1.2 Figtree, sans-serif; color: #0b2a30; background: var(--ev-hl-c); padding: 3px 8px; border-radius: 0; box-shadow: inset 0 0 0 1.5px var(--ev-hl-e); }
  .cc.z { background: none; box-shadow: none; padding: 3px 0; font-weight: 600; color: #4d6368; }
  .evs { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
  .ce { display: flex; align-items: flex-start; gap: 6px; }
  .ce .ev-ic { width: calc(20px * var(--fs,1)); height: calc(20px * var(--fs,1)); margin-top: 1px; border-radius: 0; }
  .ce .ct { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 600 calc(16px * var(--fs,1))/1.25 Figtree, sans-serif; color: #0b2a30; }
  .ce:hover .ct { text-decoration: underline; }
  .ce.cx .ct { text-decoration: line-through; color: #5a6c70; }
  .ce.end .ct { color: #5a6c70; }
  .more { font: 800 calc(15.5px * var(--fs,1))/1.2 Figtree, sans-serif; color: var(--vs-teal); text-decoration: underline; padding-left: 2px; }
  .cal td.sel { background: var(--ev-hl-t); box-shadow: inset 0 0 0 3px var(--ev-ink); }
}

/* 320 with A+: the counts leave the quick views */
@media (max-width: 400px) { body.large-text .ev-quick .qn { display: none; } body.large-text .ev-quick button { min-height: 48px; padding: 4px 2px; } body.large-text .ev-quick .ql { font-size: calc(15px * var(--fs,1)); } }
@media (max-width: 599px) { .ev-top h1 { font-size: calc(26px * var(--fs,1)); } .ev-wrap h2 { font-size: calc(20px * var(--fs,1)); } }
@media (max-width: 380px) { .ev-quick .ql { font-size: calc(16px * var(--fs,1)); } }

/* ---------- results below the calendar (phones, and "See all events") ---------- */
.ev-results { margin: 18px 0 0; padding: 12px 0 0; border-top: 4px solid var(--ev-ink); scroll-margin-top: 72px; }
.ev-results[hidden] { display: none; }
.evr-bar { margin: 0 0 10px; }
.evr-end { margin: 14px 0 0; }
.ev-back { min-height: 48px; }
#rs-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; scroll-margin-top: 70px; }
.rs-n { font: 700 calc(17px * var(--fs,1))/1.2 Figtree, sans-serif; color: #3e5559; }
.rs-nav { display: flex; justify-content: space-between; margin: 0 -6px 4px; }
.rs-day { margin: 14px 0 0; }
.rs-day > h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 8px; padding: 0 0 4px; border-bottom: 2px solid var(--ev-ink); font: 800 calc(19px * var(--fs,1))/1.2 Figtree, sans-serif; color: var(--vs-teal); }
.rs-day > h3 small { font: 700 calc(16px * var(--fs,1))/1 Figtree, sans-serif; color: #3e5559; }
.pcards { display: grid; gap: 14px; }
@media (min-width: 900px) { .ev-results .pcards { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); align-items: start; } }

/* ---------- the day dialog: the standard dark-teal title bar with the x top-right (D-20261108-37) ---------- */
html.dlg-open { overflow: hidden; }
dialog.ev-dlg { padding: 0; border: 3px solid var(--ev-ink); border-radius: 0; background: #fff; color: var(--vs-ink); overflow: hidden; font-family: Figtree, sans-serif; }
dialog.ev-dlg[open] { display: flex; flex-direction: column; }
dialog.ev-dlg::backdrop { background: rgba(6, 30, 36, .58); }
dialog.ev-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(820px, calc(100vw - 32px)); max-width: none; max-height: min(88vh, 88dvh, 960px); }
.dlg-h { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; background: #0b4a54; color: #fff; padding: 10px 8px 10px 16px; }
.dlg-h h2 { margin: 0; color: #fff; font: 800 calc(22px * var(--fs,1))/1.2 Figtree, sans-serif; }
.dlg-h p { margin: 2px 0 0; font: 600 calc(16px * var(--fs,1))/1.25 Figtree, sans-serif; }
.dlg-hint { font-weight: 800; }
.ev-x { all: unset; box-sizing: border-box; cursor: pointer; flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 0; font: 400 34px/1 Figtree, sans-serif; color: #fff; }
.ev-x:hover { background: rgba(255,255,255,.18); }
.ev-x:focus-visible { outline: 3px solid #ffd23f !important; outline-offset: 2px !important; }
.dlg-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 16px; scrollbar-gutter: stable; }
/* obvious scrolling: a visible scrollbar and a shadow at the bottom while there is more below */
.dlg-body::-webkit-scrollbar { width: 12px; }
.dlg-body::-webkit-scrollbar-thumb { background: #0b4a54; border-radius: 0; border: 2px solid #e6eeef; }
.dlg-body::-webkit-scrollbar-track { background: #e6eeef; }
dialog.ev-dlg.is-over:not(.is-end) .dlg-f { box-shadow: 0 -12px 14px -6px rgba(6, 47, 55, .35); }
.dlg-f { flex: none; display: flex; justify-content: space-between; gap: 8px; padding: 4px 10px; border-top: 2px solid var(--ev-ink); background: #f4f8f8; position: relative; }
.dlg-f:has(> .ev-tl[hidden] + .ev-tl:not([hidden])) { justify-content: flex-end; }
.dsec + .dsec { margin-top: 16px; }
.dh { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; padding: 0 0 4px; border-bottom: 2px solid var(--ev-ink); font: 800 calc(19px * var(--fs,1))/1.2 Figtree, sans-serif; color: var(--vs-teal); }
.dh small { font: 700 calc(16px * var(--fs,1))/1.2 Figtree, sans-serif; color: #3e5559; }

/* ---------- the event card: the live .resource-card with event lines ---------- */
.ev-card { margin: 0 !important; }
.ev-card .ev-meta { padding: 6px 12px !important; display: grid; gap: 2px; }
.ev-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; font: 800 calc(16px * var(--fs,1))/1.25 Figtree, sans-serif; color: var(--ev-ink); }
.ev-when { font: 800 var(--t-body)/1.3 Figtree, sans-serif; color: #05282f; }
.ev-when.ev-old { text-decoration: line-through; color: #5a6c70; }
.ev-day { font-weight: 600; }
.ev-where { display: flex; align-items: flex-start; gap: 6px; font-size: var(--t-body); line-height: 1.35; }
.ev-pin { flex: none; margin-top: 4px; color: #0b6f76; }
.ev-price { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: var(--t-body); }
.ev-price b { font-weight: 800; }
.ev-free { color: #115c2b; }
.ev-st { font: 800 calc(14px * var(--fs,1))/1 Figtree, sans-serif; padding: 4px 7px; border-radius: 0; text-transform: uppercase; letter-spacing: .03em; }
.ev-st.cx { background: #8f1630; color: #fff; }
.ev-st.mv { background: #fff; color: #6b3000; box-shadow: inset 0 0 0 2px #6b3000; }
.ev-st.full { background: #fff; color: #6b0f23; box-shadow: inset 0 0 0 2px #8f1630; }
.ev-st.end { background: #e2e9ea; color: #2f4448; }
.ev-card .ev-note { margin: 0; padding: 6px 12px; border-left: 5px solid #8f1630; background: #fdecef; color: #4a0a18; font: 600 calc(16px * var(--fs,1))/1.35 Figtree, sans-serif; }
.ev-card.is-cx > h3 { text-decoration: line-through; text-decoration-thickness: 2px; }
.ev-card.is-cx > h3, .ev-card.is-end > h3 { filter: saturate(.55) brightness(1.15); }
.ev-card .description p { margin: 0; }
.ev-extra > p { margin: 6px 0 4px !important; }
.ev-extra[hidden] { display: none !important; }
.ev-dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 6px 0; }
.ev-dl dt { font-weight: 800; color: #05282f; }
.ev-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ev-card .description-toggle { min-height: 44px; display: inline-flex !important; align-items: center; gap: 4px; }
.ev-card .description-toggle[hidden] { display: inline-flex !important; }
.ev-card .description-toggle.is-open .vs-chev { transform: rotate(180deg); }
.ev-card .description-toggle svg { width: 16px; height: 16px; }
.ev-card svg.ev-pin { width: calc(16px * var(--fs,1)) !important; height: calc(16px * var(--fs,1)) !important; }
.ev-card .rc-btn { min-height: 44px; }
.ev-addr { color: #0b4a54; text-decoration: underline; text-underline-offset: 3px; }
/* My List on the left; Print, then Share, far bottom-right (D-20261108-13) */
.ev-links { display: flex !important; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.ev-links .ev-tl { font-size: calc(16px * var(--fs,1)); }
.ev-links .ev-tl[data-ev-print] { margin-left: auto; }
.ev-links .ev-tl svg { width: 18px; height: 18px; }
.ev-links .ev-share svg { margin-right: 2px; }
.ev-tl.is-on { text-decoration-thickness: 2px; font-weight: 800; }

/* ---------- share (native sheet first; otherwise a small menu with Copy link last) ---------- */
.sh-menu { position: fixed; z-index: 1400; width: 340px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 16px); overflow-y: auto; background: #fff; border: 2px solid var(--vs-deep); border-radius: 0; box-shadow: 0 12px 28px rgba(6, 47, 55, .25); padding: 0 0 8px; font: 500 var(--t-sm)/1.3 Figtree, sans-serif; color: var(--vs-ink); }
.sh-menu * { box-sizing: border-box; }
.sh-hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #0b4a54; color: #fff; padding: 2px 4px 2px 12px; font: 800 var(--t-body)/1.2 Figtree, sans-serif; }
.sh-x { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; font: 400 28px/1 Figtree, sans-serif; color: #fff; border-radius: 0; }
.sh-x:hover { background: rgba(255,255,255,.18); }
.sh-ttl { margin: 6px 12px 4px; font-weight: 700; color: var(--vs-muted); }
.sh-list { list-style: none; margin: 0; padding: 0 12px; }
.sh-it { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 4px 6px; border-top: 1px solid var(--vs-line); cursor: pointer; color: var(--vs-ink); font: 700 var(--t-body)/1.2 Figtree, sans-serif; }
.sh-it:hover { background: var(--vs-teal-t); }
.sh-it:focus-visible { outline: 3px solid #1c5d99; outline-offset: -3px; }
.sh-it svg { width: 26px; height: 26px; flex: none; color: var(--vs-teal); }
.sh-ltr { width: 26px; height: 26px; border-radius: 0; color: #fff; font: 800 16px/26px Figtree, sans-serif; text-align: center; flex: none; }
.sh-tip { margin: 6px 12px 0; padding: 6px 8px; background: #e8f4ea; border: 1px solid #2d7a3f; border-radius: 0; font-weight: 600; }
.sh-back { position: fixed; inset: 0; background: rgba(6, 30, 36, .5); z-index: 1390; display: flex; align-items: flex-end; }
.sh-menu.sheet { position: static; width: 100%; max-width: none; border-radius: 0; border-width: 2px 0 0; box-shadow: none; }

/* ---------- printing one event: black on white, one page, nothing else ---------- */
.ev-print { display: none; }
@media print {
  html.ev-printing body > *:not(.ev-print) { display: none !important; }
  html.ev-printing .ev-print { display: block; padding: 0; color: #000; background: #fff; font: 12pt/1.4 Arial, Helvetica, sans-serif; }
  .ev-print .top { display: flex; justify-content: space-between; border-bottom: 2px solid #000; padding-bottom: 4px; font-weight: 700; }
  .ev-print h1 { font: 700 21pt/1.15 Arial, sans-serif; margin: 12px 0 2px; color: #000; }
  .ev-print .box { border: 2px solid #000; padding: 6px 10px; margin: 8px 0; font-weight: 700; }
  .ev-print table { border-collapse: collapse; width: 100%; margin: 8px 0; }
  .ev-print th, .ev-print td { border-top: 1px solid #777; border-bottom: 1px solid #777; padding: 5px 8px; text-align: left; vertical-align: top; }
  .ev-print th { width: 1.45in; background: #f0f0f0; }
  .ev-print .foot { margin-top: 16px; border-top: 2px solid #000; padding-top: 8px; font-size: 10.5pt; }
  @page { size: Letter; margin: 16mm 15mm; }
}
/* narrow phones: the grid runs edge to edge so each of the 7 day buttons is at least 44 px wide */
@media (max-width: 420px) { table.cal { margin-inline: -16px; width: calc(100% + 32px); border-left: 0; border-right: 0; border-radius: 0; } }

/* ---------- 11-09 redesign (owner D-20261109-17): hero, the site's search box, Filters + Map, quick views in place, slim Featured ---------- */
/* the search box sits on the hero's bottom edge: half in the hero, half in the body (owner 11-09) */

.ev-wrap > .search-container:not(#s):not(#s):not(#s) { position: relative; z-index: 3; margin: -22px auto 0 !important; width: 100%; max-width: 34rem; }
.ev-tools { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 10px 0 8px; }
.ev-tools > * { flex: 1 1 120px; min-width: min-content; white-space: nowrap; }
.ev-mapbtn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 4px 12px; border: 2px solid var(--vsf-deep, #062f37); border-radius: 0; background: #fff; color: var(--vs-teal); box-shadow: 2px 2px 0 var(--vsf-deep, #062f37); font: 800 calc(16px * var(--fs,1))/1.2 Figtree, sans-serif; }
.ev-mapbtn:hover { background: #e3f0f1; }
.ev-mapbtn svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 700px) { .ev-tools > * { flex: 0 0 auto; min-width: 150px; } }
#ev-quick { scroll-margin-top: 72px; margin-top: 4px; }
#ev-quick .ev-quick { margin-bottom: 12px; }
.ev-quick button[aria-pressed="true"] { background: #fff; box-shadow: inset 0 -5px 0 var(--ev-ink); }
@media (min-width: 900px) { #ev-quick .ev-quick button { min-height: 50px; } }
/* Featured events: one slim row below the calendar, computers and tablets only */
.ev-feat { display: flex; align-items: center; gap: 4px 12px; margin: 14px 0 0; padding: 8px 0 0; border-top: 2px solid var(--ev-line); }
.ev-feat[hidden] { display: none; }
@media (max-width: 699px) { .ev-feat, .ev-feat[hidden] { display: none !important; } }
.ev-feat h2 { flex: none; font-size: calc(17px * var(--fs,1)) !important; }
.ev-feat-row { display: flex; gap: 8px; overflow-x: auto; list-style: none; margin: 0; padding: 2px 2px 6px; min-width: 0; }
.ev-feat-row li { flex: 0 0 auto; }
.ev-feat-b { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; gap: 8px; min-height: 44px; padding: 4px 12px; border: 2px solid var(--ev-ink); border-radius: 0; background: var(--ev-hl-c); white-space: nowrap; align-items: center; }
.ev-feat-b:hover { background: #d2eef3; }
.ev-feat-b .t { font: 800 calc(16px * var(--fs,1))/1.2 Figtree, sans-serif; color: var(--ev-ink); }
.ev-feat-b .w { font: 700 calc(15px * var(--fs,1))/1.2 Figtree, sans-serif; color: #8a3300; }

/* D-20261109-27: the info band under the (dark-teal) title bar is the chartreuse tint; the category chip is solid chartreuse with an olive edge. */
.ev-card > .rc-meta:not(#s):not(#s):not(#s):not(#s):not(#s):not(#s):not(#s):not(#s) { background: var(--ev-hl-t) !important; }
.ev-card .ev-ic { background: var(--ev-hl-c); }

/* D-20261109-32 (owner pick, pair 1): every EVENT card's title bar is forest #204817 with white text (10.5:1); resource cards and the dialog header stay dark teal. */
.ev-card > h3:not(#s):not(#s):not(#s):not(#s):not(#s):not(#s):not(#s):not(#s) { background: #204817 !important; color: #fff !important; }
.ev-card:not(#s):not(#s):not(#s):not(#s):not(#s):not(#s) { border-color: #204817 !important; }

/* Owner 2026-11-11: the Events page hero uses the same photo as the homepage carousel's Events slide
   (/images/home/events-street, framed at 50% 62% as on the slide). */
body.events-page .hero::after {
  background-image: url('/images/home/events-street-1600.jpg');
  background-image: image-set(
    url('/images/home/events-street-1600.webp') type('image/webp'),
    url('/images/home/events-street-1600.jpg') type('image/jpeg')
  );
  background-position: 50% 62%;
}
