/* The events page on /beta (Build Design Note §24), on top of styles.css and beta.css. External file only: the site's
   security policy allows no inline style and no script. Only what the design system doesn't already cover. */

/* Fraunces 600 for card titles (D-394), the same as the /beta home page's cards (Kat, 2026-11-07: the events page
   matches /beta). Served from our own assets/ (SIL Open Font License, Fraunces-OFL.txt beside it). */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url(Fraunces-600.woff2) format('woff2')}

/* Preview notes for Kat's view */
.preview-problem{margin:0 0 var(--space-6);padding:var(--space-3) var(--space-4);background:var(--status-tint);font-weight:600;line-height:1.45}

/* The filter panel (D-330): one band with the search box and the time buttons; Age, Area and the other filters fold
   into "Filters" (a details element, no script); the 10-day strip under them. */
.find-panel{margin:var(--space-4) 0 var(--space-6)}
.find-form{display:flex;flex-direction:column;min-width:0;gap:var(--space-3);padding:18px;background:var(--surface-band);border:1px solid var(--line)}
.find-top{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.find-search{flex:2 1 300px;min-width:0;display:flex;flex-direction:column;gap:4px}
.find-search label,.find-select label{font-weight:600}
.find-search-row{display:flex;gap:var(--space-2)}
.find-search-row .input{flex:1;min-width:0;font-size:var(--size-body-lg)}
.find-search .button{border:0;flex:none}
.time-chips{display:flex;gap:var(--space-2);flex:3 1 420px;min-width:0;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}
.time-chips .chip{flex:0 0 auto}
.chip-number{font-weight:600}
.find-more > summary{list-style:none;font-weight:700;display:inline-flex}
.find-more > summary::-webkit-details-marker{display:none}
.find-more[open] > summary{background:var(--ink);border-color:var(--ink);color:var(--on-primary)}
.find-more-body{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding-top:var(--space-3)}
.find-select{flex:1 1 200px;min-width:0;display:flex;flex-direction:column;gap:4px}
.find-chips{display:flex;flex-wrap:wrap;gap:var(--space-2);flex:2 1 360px;align-items:center}
.find-chips .button{border:0}
.day-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(64px,1fr);gap:6px;min-width:0;max-width:100%;overflow-x:auto;padding-bottom:4px}
.strip-day{position:relative;display:flex;flex-direction:column;align-items:center;min-height:44px;padding:6px 4px 8px;border:1px solid var(--line);background:var(--surface-card);color:var(--ink);text-decoration:none;transition:background .2s,color .2s}
.strip-day:hover,.strip-day:focus-visible{background:var(--ink);color:var(--on-primary)}
.strip-weekday{font-size:var(--size-body)}
.strip-number{font:700 26px/1 var(--font-display);text-transform:uppercase}
.strip-day--weekend{border-bottom:3px solid var(--ink)}
.strip-day--on,.strip-day--on:hover{background:var(--ink);border-color:var(--ink);color:var(--on-primary)}
/* Where ten days don't fit across, two rows of five: nothing scrolls sideways (Kat's phone rule, 2026-11-05) */
@media (max-width:760px){.day-strip{grid-auto-flow:row;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-columns:auto;overflow-x:visible;padding-bottom:0}}
.find-panel .filter-status a{margin-left:var(--space-2)}
@media (max-width:1000px){.time-chips{flex:1 1 100%;flex-wrap:wrap;overflow:visible}}
@media (max-width:800px){
  .find-form{padding:var(--space-3)}
  .find-panel .filter-status{display:block}
}
/* "Registration opening soon" (D-328, D-339): one closed pale-blue line; its list opens on tap. */
.opening-soon{margin:0 0 var(--space-2)}
/* Its stand-in when ?opening=1 is asked and nothing opens this week: the same pale-blue line, as plain text. */
.opening-none{margin:0 0 var(--space-2);padding:var(--space-3) 18px;border:1px solid var(--related-line);background:var(--related-tint);color:var(--related-ink)}
.opening-soon > summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:var(--space-3);min-height:56px;padding:var(--space-2) 18px;border:1px solid var(--related-line);background:var(--related-tint)}
.opening-soon > summary::-webkit-details-marker{display:none}
.opening-title{display:flex;flex-direction:column}
.opening-heading{font:700 22px/1 var(--font-display);text-transform:uppercase}
.opening-count{color:var(--related-ink)}
.opening-show{font-weight:700}

.opening-list{list-style:none;margin:0;padding:0}
.opening-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--space-3);align-items:center;padding:var(--space-3) 18px;border:1px solid var(--related-line);border-top:0;background:var(--surface-card);color:var(--ink);text-decoration:none}
a.opening-row:hover,a.opening-row:focus-visible{background:var(--related-tint)}
a.opening-row:hover .opening-name,a.opening-row:focus-visible .opening-name{text-decoration:underline;text-underline-offset:4px}
.opening-what{display:flex;flex-direction:column;min-width:0}
.opening-name{font-weight:600}
.opening-soon .when-open,.opening-soon[open] .when-closed{display:none}
.opening-soon[open] .when-open{display:inline}
.opening-event{color:var(--muted)}
@media (max-width:600px){.opening-row{grid-template-columns:1fr}.opening-row .tag{justify-self:start}}

/* Prices as the venue lists them, inside "See details" */
.price-list{margin:var(--space-2) 0;padding-left:1.2em}
.price-list li{margin-top:3px}

/* Sold out: the facts line says it (photos and the corner ribbon come later, C26) */
.tag--sold-out{background:var(--ink);color:var(--surface-card)}

/* Paging through the main list */
/* Page numbers with each page's dates (Kat, 2026-11-09); smaller buttons (Kat, 2026-11-10) */
.pager{display:flex;align-items:stretch;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:var(--space-6)}
.pager-page,.pager-step{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:40px;min-height:38px;padding:3px 9px;border:1px solid var(--line-control);background:var(--surface-card);color:var(--ink);font:600 14px/1.1 var(--font-sans);text-decoration:none}
.pager-step{flex-direction:row;gap:5px}
.pager-page small{font-size:11px;font-weight:400;color:var(--muted)}
.pager-page:hover,.pager-step:hover{border-color:var(--ink)}
.pager-page.is-current{background:var(--ink);border-color:var(--ink);color:var(--on-primary)}
.pager-page.is-current small{color:var(--on-primary)}
.pager-gap{align-self:center;color:var(--muted)}

/* Clubs (D7): their own section under the main list. One tile per topic (Kat, 2026-11-10, D-452): a light blue band
   the full width of the page (a same-colour shadow trimmed at the screen's edges, so nothing scrolls sideways), the
   heading in ink with Kat's handwritten line beside it, as Holiday Wonders. */
.clubs{margin-top:var(--section-pad);padding:40px 0 48px;background:var(--related-tint);box-shadow:0 0 0 100vmax var(--related-tint);clip-path:inset(0 -100vmax)}
.events .empty,.clubs .empty{margin-top:var(--space-3)}
.clubs-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 22px;margin-bottom:var(--space-5)}
.clubs h2{font-size:38px;line-height:1;margin:0}
.clubs-line{margin:0;font-family:var(--font-hand);font-size:32px;line-height:1.1;color:var(--accent-strong)}
/* Computer: photo tiles, five to a row on the event cards' own columns, so a tile is as wide as a card (Kat,
   2026-11-12, D-481: three to a row was "too big"); three to a row on a tablet. The photo fills the tile, the name in
   white over a soft fade, a round arrow, a gentle lift on hover */
.club-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.club-tile{position:relative;display:block;aspect-ratio:3/2;overflow:hidden;background:var(--ink);color:var(--on-primary);text-decoration:none;box-shadow:0 1px 2px #19233814,0 6px 18px #1923381f;transition:transform .2s ease,box-shadow .2s ease}
.club-tile img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.club-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,#0a0e16d9 0%,#0a0e1666 42%,#0a0e1600 72%)}
.club-tile-body{position:absolute;left:0;right:44px;bottom:0;z-index:1;display:flex;flex-direction:column;gap:2px;padding:12px 14px}
.club-tile-name{font-family:'Fraunces',Georgia,'Times New Roman',serif;font-size:18px;font-weight:600;line-height:1.15}
.club-tile-count{font-size:13px;color:#ffffffe0}
.club-tile-arrow{position:absolute;right:12px;bottom:14px;z-index:1;display:flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%;background:var(--surface-card);color:var(--ink);font-size:14px;transition:transform .2s ease}
.club-tile:hover{transform:translateY(-3px);box-shadow:0 2px 4px #1923381a,0 14px 30px #19233833}
.club-tile:hover img{transform:scale(1.05)}
.club-tile:hover .club-tile-arrow{transform:translateX(3px)}
.club-tile:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.club-tile,.club-tile img,.club-tile-arrow{transition:none}}
@media (max-width:1100px){.club-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:800px){
  .clubs{margin-top:var(--section-pad-phone);padding:28px 0 32px}
}
/* Phone: round rows, two to a row (Kat, 2026-11-10: much smaller on the phone): a small round photo, the name, the
   count and an arrow */
@media (max-width:600px){
  .clubs h2{font-size:28px}
  .clubs-line{font-size:22px}
  .club-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .club-tile{display:flex;align-items:center;gap:10px;aspect-ratio:auto;padding:8px 10px 8px 8px;background:var(--surface-card);color:var(--ink);border:1px solid var(--related-line);box-shadow:0 1px 2px #19233810}
  .club-tile::after{display:none}
  .club-tile img{position:static;flex:none;width:44px;height:44px;border-radius:50%}
  .club-tile-body{position:static;flex:1;min-width:0;padding:0;gap:0}
  .club-tile-name{font-size:15px;line-height:1.15}
  .club-tile-count{font-size:12px;color:var(--muted)}
  .club-tile-arrow{position:static;width:auto;height:auto;background:none;color:var(--related-ink);font-size:15px}
  .club-tile:hover{transform:none;box-shadow:0 1px 2px #19233810;border-color:var(--related-ink)}
  .club-tile:hover img{transform:none}
}

/* Sign out is a POST form, styled to look like a link (in the slim bar above the header). */

/* ── /events (Build Design Note §25, step 1) ─────────────────────────────────────────────
   The masthead, the Today / This weekend / Next 7 days row, and the magazine day headings. Scoped to
   body.page-events so /beta keeps its current look until step 5. No scripts anywhere. */
.page-events .masthead{padding:var(--space-8) 0 var(--space-4)}
.page-events .masthead h1{font-size:var(--size-heading-1);margin-top:var(--space-2)}
.page-events .masthead-note{color:var(--muted);margin-top:var(--space-3)}
.page-events .preview-banner{margin-top:var(--space-4)}

/* The day heading (D-330): a rule above, the day's number large, then "Friday · Nov · Today". */
.day-heading--rule{display:flex;align-items:baseline;gap:14px;margin:22px 0 var(--space-3);padding-top:10px;border-top:2px solid var(--ink);font:inherit}
.day-heading--rule::after{display:none}
.day-heading--list{margin:20px 0 6px;font:700 24px/1 var(--font-display);text-transform:uppercase;color:var(--ink)}
.day-heading--list::after{display:none}
.day-heading--rule .day-number{font:700 34px/.9 var(--font-display);letter-spacing:-.02em;color:var(--ink)}
.day-heading--rule .day-label{font-weight:700;letter-spacing:.075em;text-transform:uppercase;color:var(--ink)}
@media (max-width:800px){
  .page-events .masthead{padding:var(--space-5) 0 var(--space-2)}
  .page-events .masthead h1{font-size:var(--size-heading-1-phone)}
  .day-heading--rule .day-number{font-size:30px}
}

/* A day's cards (D-330, D-332): five across (Kat, 2026-11-11; was four). A Wonder Gem takes two columns, four beside
   one card, three beside "Also this week". */
.card-grid.card-grid--day{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:0}
.card-grid--day > .span-2{grid-column:span 2}
.card-grid--day > .span-3{grid-column:span 3}
.card-grid--day > .span-4{grid-column:span 4}
/* With several days listed, a day shows its first two rows, then "Show more" (Kat, 2026-11-11). The page carries every
   card; events-dates.js marks the ones it opens (is-shown). A wide gem takes two places, so its day shows one fewer. */
.day-cards > :nth-child(n+11):not(.is-shown),.day-cards.has-gem > :nth-child(n+10):not(.is-shown){display:none}
/* "Show more" is a thin line across with the words in the middle (Kat, 2026-11-12: the full-width button was "too big
   and bulky"). The words are slim; the link itself stays 44px tall for a thumb. The arrow turns up on "Show fewer". */
.day-more{display:flex;align-items:center;gap:14px;margin:8px 0 0}
.day-more[hidden]{display:none}
.day-more::before,.day-more::after{content:"";flex:1;height:1px;background:var(--line)}
.day-more-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--ink);font-weight:600;font-size:15px;text-decoration:none}
.day-more-link::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg)}
.day-more-link.is-open::after{transform:translateY(2px) rotate(225deg)}
@media (hover:hover){.day-more-link:hover{text-decoration:underline;text-underline-offset:4px}}
/* "See all" at the right end of the day's heading (Kat, 2026-11-09): the heading's rule moves to the row around both */
.day-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:22px 0 var(--space-3);padding-top:10px;border-top:2px solid var(--ink)}
.day-head .day-heading--rule{flex:1;min-width:0;margin:0;padding:0;border:0}
.day-all{display:inline-block;padding:12px 0;line-height:20px;white-space:nowrap;color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:4px}
.day-all-short{display:none}
@media (max-width:600px){.day-all-long{display:none}.day-all-short{display:inline}.day-head{gap:8px}.day-head .day-label{font-size:15px;letter-spacing:.03em}}
/* Previous / next from a picked day or range (Kat, 2026-11-09) */
.day-step{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.day-step a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border:1px solid var(--line-control);background:var(--surface-card);color:var(--ink);font:600 14px/1 var(--font-sans);text-decoration:none}
.day-step a:hover{border-color:var(--ink)}
.also-week{grid-column:span 2;display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-4);border:1px solid var(--line);background:var(--surface-card)}
.also-week ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-3)}
.also-week li{display:flex;flex-direction:column}
.also-week a{color:var(--ink);font-weight:600}
.also-week li span{color:var(--muted)}
/* Narrower screens: three across showing three rows, two across showing three rows, then one column showing four cards */
@media (max-width:1100px){
  .card-grid.card-grid--day{grid-template-columns:repeat(3,minmax(0,1fr))}
  .card-grid--day > .span-3,.card-grid--day > .span-4{grid-column:span 2}
  .also-week{grid-column:auto}
  .day-cards > :nth-child(n+10):not(.is-shown),.day-cards.has-gem > :nth-child(n+9):not(.is-shown){display:none}
}
@media (max-width:800px){
  .card-grid.card-grid--day{grid-template-columns:repeat(2,minmax(0,1fr))}
  .also-week{grid-column:span 2}
  .day-cards > :nth-child(n+7):not(.is-shown),.day-cards.has-gem > :nth-child(n+6):not(.is-shown){display:none}
}
@media (max-width:600px){
  .card-grid.card-grid--day{grid-template-columns:1fr}
  .card-grid--day > .span-2,.card-grid--day > .span-3,.card-grid--day > .span-4,.also-week{grid-column:auto}
  .day-cards > :nth-child(n+5):not(.is-shown){display:none}
}

/* The Volunteer view's grid (F12, Kat 2026-11-14, "Photo grid"): each program once on one page, four across on a
   laptop, then three, two and one; a bigger photo with the date on a dark badge across its bottom edge, the age tags at
   the top right, and clock and pin icons on the when and where lines. */
.card-grid.card-grid--dated{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin-top:20px}
.event-card--dated{position:relative;transition:border-color .2s,transform .2s,box-shadow .2s}
.event-card--dated:hover,.event-card--dated:focus-within{transform:translateY(-3px);box-shadow:0 10px 24px #19203014}
.event-card.event-card--dated > .card-photo{aspect-ratio:3/2;overflow:visible}
.event-card--dated .age-tags{left:auto;justify-content:flex-end}
.event-card--dated .age-tags li{font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.card-date{position:absolute;left:16px;bottom:-26px;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;width:62px;height:72px;margin:0;background:var(--ink);color:var(--on-primary);box-shadow:0 4px 12px #19203030;line-height:1}
.card-date b{font:700 34px/1 var(--font-display)}
.card-date span{color:var(--count-badge);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.card-grid--dated .event-card.event-card--dated > .card-body{padding-top:36px}   /* room under the badge; beats .page-listings' padding */
/* An organizer's photo credit sits beside the badge, and the body then needs less room under it */
.event-card--dated > .card-credit{padding-left:92px;min-height:30px}
.card-grid--dated .event-card.event-card--dated > .card-credit + .card-body{padding-top:12px}
.event-card--dated .card-title{font-size:19px}
.event-card--dated .card-when,.event-card--dated .card-where{display:flex;align-items:flex-start;gap:7px;font-size:15px}
.event-card--dated .card-when .icon,.event-card--dated .card-where .icon{width:15px;height:15px;flex:none;margin-top:3px}
@media (max-width:1100px){.card-grid.card-grid--dated{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:800px){.card-grid.card-grid--dated{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.card-grid.card-grid--dated{grid-template-columns:minmax(0,1fr)}.event-card.event-card--dated > .card-photo{aspect-ratio:2/1}}
@media (prefers-reduced-motion:reduce){.event-card--dated{transition:none}.event-card--dated:hover,.event-card--dated:focus-within{transform:none}}

/* The sign-up banner inside the list (Round 3 board): the dark band, left out for subscribers (D-338). */
/* The Weekly Edit sign-up (_WeeklySignup, Kat 2026-11-14, F13): the home page's band, also inside the events list after
   the second day (--in-list), where it replaced the older launch banner. Moved here from home-launch.css (which only the
   home page loads); both pages load this file. */
.home-weekly{margin-top:var(--space-10);background:var(--ink);color:var(--on-primary)}
.home-weekly-inner{display:flex;flex-wrap:wrap;align-items:center;gap:18px 32px;padding:26px 0}
.home-weekly .home-weekly-title{flex:0 1 auto;color:var(--on-primary);font-family:var(--font-display);font-weight:700;text-transform:uppercase;font-size:36px;line-height:.98;max-width:300px;padding-right:30px;border-right:1px solid var(--muted)}
.home-weekly .home-weekly-copy{flex:1 1 260px;color:var(--line)}
.home-weekly .sign-form{flex:1 1 380px;min-width:0;gap:6px}
.home-weekly .sign-row{flex-wrap:wrap}
.home-weekly .sign-row .input{flex:1 1 200px;border:0}
.home-weekly .fine,.home-weekly .fine a{color:var(--line)}
.home-weekly :focus-visible{outline-color:var(--on-primary)}
.home-weekly .button--accent{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--on-primary);font:700 18px/1 var(--font-display);letter-spacing:.04em;text-transform:uppercase}
.home-weekly .button--accent:hover{background:var(--accent);border-color:var(--accent)}
.home-weekly.home-weekly--in-list{margin-top:28px}
.home-weekly--in-list .home-weekly-inner{padding:26px 28px}
@media (max-width:800px){
  .home-weekly{margin-top:var(--space-8)}
  .home-weekly-inner{display:block;padding:20px 0}
  .home-weekly .home-weekly-title{font-size:28px;max-width:none;border:0;padding:0;margin-bottom:6px}
  .home-weekly .home-weekly-copy{margin-bottom:12px}
  .home-weekly .sign-row{flex-direction:column}
  .home-weekly .sign-row .input,.home-weekly .sign-row .button{width:100%;flex:none}
  .home-weekly--in-list .home-weekly-inner{padding:20px}
}

/* ── The card (Build Design Note §25.6; D-331, D-333, D-336, D-340) ─────────────────────────────────────
   The same card on every page, top to bottom: the orange band when sign-up closes today or tomorrow (the card's
   one orange signal, with a 2px orange border), photo, gem badge, title, bold ages, tags, when, where, the orange
   clock line, then a light row with "Details →" and Save. Four to a row on desktop, one on phones. */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px;align-items:stretch;margin-top:var(--space-3)}
.event-card{display:flex;flex-direction:column;padding:0;background:var(--surface-card);border:1px solid var(--line);color:var(--ink);min-width:0;transition:border-color .25s}
.event-card:hover,.event-card:focus-within{border-color:var(--ink)}
.event-card.is-hot,.event-card.is-hot:hover,.event-card.is-hot:focus-within{border:2px solid var(--accent)}
.card-band{display:flex;align-items:center;gap:var(--space-2);padding:8px 14px;background:var(--accent);color:var(--on-primary);font-weight:700}
.card-band .icon,.card-deadline .icon{width:16px;height:16px;flex:none}
.card-photo{position:relative;overflow:hidden;background:var(--surface-band)}
/* A shorter photo so more events fit on one screen (C93, Kat 2026-11-05) */
.event-card > .card-photo{width:100%;aspect-ratio:2.8/1;flex:none}
.card-photo > img{display:block;width:100%;height:100%;object-fit:cover}
.card-photo--placeholder{background:var(--surface-band) repeating-linear-gradient(135deg,transparent 0 10px,rgba(25,31,43,.035) 10px 11px)}
.card-credit{padding:4px 14px 0;color:var(--muted);font-size:14px}
.event-card > .card-body{display:flex;flex-direction:column;gap:4px;flex:1;padding:12px 14px 10px;min-width:0;font-size:var(--size-meta)}
.card-title{font-size:var(--size-title-2);font-weight:600;line-height:1.25;letter-spacing:-.01em}
.card-title a{color:inherit;text-decoration:none}
.card-title a:hover,.card-title a:focus-visible{text-decoration:underline;text-underline-offset:4px}
.card-ages{font-size:var(--size-meta);font-weight:600}
.card-tags{display:flex;flex-wrap:wrap;gap:6px}
.card-tags .tag{margin:0;white-space:normal;font-size:var(--size-label)}
.card-when,.card-where{line-height:1.4}
.card-where{color:var(--muted)}
.card-organizer{color:var(--muted);line-height:1.4;font-size:14px;margin:2px 0 0}
.card-deadline{display:flex;align-items:center;gap:6px;color:var(--accent);font-weight:700}
.gem-badge{display:inline-flex;align-self:flex-start;align-items:center;gap:4px;padding:2px 8px;background:var(--surface-card);border:1px solid var(--ink);font-weight:700}
.gem-badge .icon{width:14px;height:14px}
.gem-label{font-size:var(--size-label);font-weight:700;letter-spacing:.075em;text-transform:uppercase;color:var(--muted)}
.gem-line{margin-top:2px;font-family:var(--font-hand);font-size:20px;line-height:1.1;color:var(--accent-strong)}
.card-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:4px;border-top:1px solid var(--line)}
/* One underline under the whole phrase, arrow included: a block of text, not a row of separate pieces (Kat, 2026-11-09) */
.card-details{display:inline-block;padding:12px 0;line-height:20px;color:var(--ink);font-weight:400;text-decoration:underline;text-underline-offset:4px}
.card-save-form{display:inline;margin:0 0 0 auto}
.card-save{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-left:auto;padding:0 12px;border:1px solid var(--line);background:var(--surface-card);color:var(--ink);font:400 var(--size-meta)/1.2 var(--font-sans);text-decoration:none;cursor:pointer;transition:border-color .2s}
.card-save:hover,.card-save:focus-visible{border-color:var(--ink)}
.card-save .icon{width:18px;height:18px;color:var(--muted)}
.card-save--on .icon{color:var(--ink)}
/* On /events and the event pages (.page-listings), the cards look like the /beta home page's (Kat, 2026-11-07): Fraunces
   titles (D-394), tighter spacing, no line above "View event", the same line height for the date and place. */
.page-listings .event-card > .card-body{gap:2px;padding:10px 14px 4px}
.page-listings .card-title,.page-listings .event-card .card-title{font-family:'Fraunces', Georgia, 'Times New Roman', serif;letter-spacing:0}
.page-listings .card-foot{padding-top:2px;border-top:0}
.page-listings .card-when,.page-listings .card-where{line-height:1.5}

/* The wide Wonder Gem card (D-332, D-336): white with an ink border, the photo beside the text. After the card's own
   rules, so it wins over them. */
.event-card.event-card--feature{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);border:2px solid var(--ink)}
.event-card--feature > .card-band,.event-card--feature > .card-credit{grid-column:1/-1}
.event-card.event-card--feature > .card-photo{aspect-ratio:auto;height:auto;min-height:260px}
.event-card--feature > .card-photo > img{position:absolute;inset:0}
.event-card.event-card--feature > .card-body{padding:20px;gap:8px}
.event-card--feature .card-title{font-size:21px;line-height:1.15}
.event-card--feature .gem-line{font-size:22px}
@media (max-width:600px){.event-card.event-card--feature{grid-template-columns:1fr}.event-card.event-card--feature > .card-photo{min-height:0;aspect-ratio:2/1}}

/* The tag row: Free in lime, urgency in orange, "Registration opens" and New this week
   in the related blue (D-328), sold out / cancelled / postponed in ink. The words come from the listing (D-255). */
.tag--free{background:var(--status-tint);color:var(--ink)}
.tag--urgent{background:var(--accent);color:var(--on-primary)}
.tag--new,.tag--opens{background:var(--related-tint);color:var(--related-ink);box-shadow:inset 0 0 0 1px var(--related-line)}
.tag--status{background:var(--ink);color:var(--surface-card)}
.tag--sponsored{color:var(--muted)}   /* the rest comes from styles.css */

/* The age group on the photo's top-left (Kat, 2026-11-06/07): solid white so it reads on any photo. The List view has
   no photo, so there it leads the tag row, outlined. */
.age-tags{position:absolute;top:10px;left:10px;right:10px;z-index:1;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.age-tags li{background:var(--surface-card);color:var(--ink);font-size:13px;font-weight:700;line-height:1.3;padding:3px 8px;box-shadow:0 1px 3px rgba(25,31,43,.3)}
.tag--age{background:var(--surface-card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}

/* The Sponsored card (decision 10; Content Policy §8): the design system's cream block with its 2px border. */
.event-card--sponsored{background:var(--surface-band);border:2px solid var(--line-sponsored)}

/* The List view (C68): one row per event, no photo; time at the left, Save at the top right. On phones the time and
   Save share the top line. The same layout serves The Weekly Edit email. */
.row-list{display:flex;flex-direction:column;margin-top:var(--space-2);border-bottom:1px solid var(--line)}
.event-row{display:grid;grid-template-columns:170px minmax(0,1fr) auto;gap:16px;align-items:start;padding:14px 12px;border-top:1px solid var(--line)}
.event-row.is-hot{border:2px solid var(--accent);margin:6px 0}
.row-time{font-weight:700}
.event-row > .card-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.event-row .card-title{font-size:var(--size-title-2)}
.card-band-text{color:var(--accent);font-weight:700}
.event-row .card-foot{border:0;padding:0;margin-top:0}
@media (max-width:800px){
  .event-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px 4px}
  .event-row > .row-time{grid-column:1;grid-row:1;align-self:center}
  .event-row > .card-body{grid-column:1/-1;grid-row:2}
  .event-row > .card-save-form,.event-row > .card-save{grid-column:2;grid-row:1}
}

/* The Cards / List switch (D-330). */
.section-heading--view{align-items:end}
.view-switch{display:flex;flex:none}
.view-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid var(--line-control);background:var(--surface-card);color:var(--ink)}
.view-button + .view-button{border-left:0}
.view-button--on{background:var(--ink);border-color:var(--ink);color:var(--on-primary)}
.view-button .icon{width:22px;height:22px}
@media (max-width:800px){.section-heading--view{display:flex}}

/* ── The event page (Build Design Note §25.2, step 3) ─────────────────────────────────────
   One event in full: the photo with its date badge, the tag row, the title, a summary list, then the blocks
   (Every date, From the organizer, Location, Share) and "More like this" cards. Polish comes in the design pass
   after step 5 (D-309). No scripts anywhere. */
.page-event .breadcrumb{margin:var(--space-4) 0 0}
.event-page{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-6);margin-top:var(--space-5)}
.event-hero .event-photo{position:relative;width:100%;max-width:720px;height:auto;aspect-ratio:16/9;margin:0}
.event-hero .event-photo img{width:100%;height:100%;object-fit:cover}
.photo-credit{color:var(--muted);font-size:14px;margin-top:var(--space-2)}
.event-main h1{font-size:var(--size-heading-1);margin:var(--space-2) 0 var(--space-4)}
.event-summary{display:grid;gap:var(--space-3);margin:0;padding:var(--space-5);background:var(--surface-card);border:1px solid var(--line)}
.event-summary > div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:var(--space-3)}
.event-summary dt{color:var(--muted);font-weight:600}
.event-summary dd{margin:0}
.event-summary .price-list{margin:var(--space-2) 0 0}
.event-summary .price-note{display:block;color:var(--muted);font-size:14px;margin-top:var(--space-1)}
.event-cta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3) var(--space-5);margin-top:var(--space-5)}
.event-cta .event-actions{margin:0}
/* "Add to calendar" and "Share" (Kat, 2026-11-11): under the photo on a computer, under the organizer's button on
   narrower screens, where the photo comes before the title. The row is in the page twice; one shows. */
.event-tools{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.event-tools--photo{display:none}
.tool-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--ink);background:var(--surface-card);color:var(--ink);font:600 15px/1 var(--font-sans);text-decoration:none;cursor:pointer;list-style:none}
.tool-button::-webkit-details-marker{display:none}
.tool-button .icon{width:18px;height:18px;flex:none}
@media (hover:hover){.tool-button:hover{background:var(--ink);color:var(--on-primary)}}
.tool-menu{position:relative}
.tool-menu ul{position:absolute;z-index:5;top:calc(100% + 6px);left:0;min-width:230px;margin:0;padding:6px 0;list-style:none;background:var(--surface-card);border:1px solid var(--line);box-shadow:0 10px 30px rgba(25,31,43,.18)}
.tool-menu a{display:block;padding:11px 16px;color:var(--ink);text-decoration:none}
.tool-menu a:hover,.tool-menu a:focus-visible{background:var(--surface-page);text-decoration:underline}
/* The Share window, opened by event-page.js */
.share-box{width:min(480px,calc(100% - 32px));padding:20px;border:1px solid var(--line);background:var(--surface-card);color:var(--ink);box-shadow:0 20px 60px rgba(25,31,43,.3)}
.share-box:not([open]){display:none}   /* a browser with no dialogs never shows it: the Share section serves there */
.share-box::backdrop{background:rgba(25,31,43,.55)}
.share-box-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.share-box-head h2{margin:0;font:700 22px/1.1 var(--font-display);text-transform:uppercase;letter-spacing:.01em}
.share-box-close{width:40px;height:40px;border:0;background:none;color:var(--ink);font-size:28px;line-height:1;cursor:pointer}
.share-box-event{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line)}
.share-box-event img{width:64px;height:64px;object-fit:cover;flex:none}
.share-box-name{margin:0;font-weight:700;line-height:1.25}
.share-box-when{margin:4px 0 0;color:var(--muted);font-size:14px}
.share-box-link{display:flex;margin-top:12px;border:1px solid var(--line-control)}
.share-box-link input{flex:1;min-width:0;height:44px;padding:0 12px;border:0;background:var(--surface-page);color:var(--ink);font:inherit;font-size:14px}
.share-box-copy{flex:none;height:44px;padding:0 16px;border:0;background:var(--ink);color:var(--on-primary);font:700 14px/1 var(--font-sans);cursor:pointer}
.share-box-label{margin:16px 0 8px;font-weight:700}
/* Seven across where there's room ("More" is the seventh, on a browser with its own share menu); four across on a phone */
.share-box-icons{display:grid;grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:8px 4px;margin:0;padding:0;list-style:none}
@media (max-width:520px){.share-box-icons{grid-template-columns:repeat(4,minmax(0,1fr))}}
.share-box-icons a,.share-box-icons button{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:6px 0;border:0;background:none;color:var(--ink);font:inherit;font-size:12px;text-decoration:none;cursor:pointer}
.share-box-icons [hidden]{display:none}
.share-logo{width:40px;height:40px}
.event-block{margin-top:var(--space-8)}
.event-block .text-button{display:inline-block;padding:12px 0;line-height:20px}   /* Learn more, Open in maps, Share: one underline (Kat, 2026-11-09) */
.event-block--about{margin:0 0 var(--space-5)}   /* under the title, above the facts (Kat, 2026-11-09) */
.event-block h2{font-size:var(--size-title-1);margin-bottom:var(--space-3)}
.event-block p{margin:0 0 var(--space-2)}
.date-list{margin:0;padding-left:1.2em}
.date-list li{margin-top:4px}
.block-note{color:var(--muted);font-size:14px;margin-top:var(--space-2)}
/* The weekly schedule of an event on most days (Kat, 2026-11-08); dates booked one by one fold under it */
.schedule-list{list-style:none;margin:0;padding:0}
.schedule-list li{margin-top:4px}
.event-block .schedule-range{font-weight:600;margin-top:var(--space-3)}
.date-book{margin-top:var(--space-4)}
.date-book > summary{cursor:pointer;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.date-book .date-list{margin-top:var(--space-3)}
.share-address{max-width:560px;font-size:14px}
.related{margin:var(--space-12) 0}
.related .result-summary{color:var(--muted);margin-top:var(--space-2)}
/* "More like this" scrolls sideways (Kat, 2026-11-09): five fill the row on a computer, the arrows at the right of the
   heading move five at a time, "See more events" ends the row. Tablets show two and a bit, phones one and a bit (swipe). */
.related-head{display:flex;justify-content:space-between;align-items:flex-end;gap:var(--space-4)}
.related-head h2{margin:0}
.related-arrows{display:flex;gap:8px;flex:none}
.related-arrows[hidden]{display:none}
.related-arrow{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--line-control);border-radius:50%;background:var(--surface-card);color:var(--ink);font:600 24px/1 var(--font-sans);cursor:pointer}
.related-arrow:hover:not([aria-disabled="true"]){border-color:var(--ink)}
.related-arrow[aria-disabled="true"]{opacity:.35;cursor:default}
.related-row{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 72px) / 5);gap:18px;align-items:stretch;margin-top:var(--space-3);padding-bottom:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:thin}
.related-row > *{scroll-snap-align:start}
.related-more{display:flex;align-items:center;justify-content:center;gap:6px;padding:var(--space-4);border:1px solid var(--line);background:var(--surface-card);color:var(--ink);font-weight:600;text-align:center;text-decoration:underline;text-underline-offset:3px}
.related-more:hover{border-color:var(--ink)}
.related-row > .related-more:focus-visible{outline-offset:-4px}
@media (prefers-reduced-motion:reduce){.related-row{scroll-behavior:auto}}
@media (max-width:1100px){.related-row{grid-auto-columns:calc((100% - 36px) / 2.3)}}
@media (max-width:600px){.related-row{grid-auto-columns:82%}.related-arrows,.related-arrows[hidden]{display:none}}
.gone-note{margin:var(--space-4) 0 0;padding:var(--space-3) var(--space-4);background:var(--related-tint);color:var(--related-ink);font-weight:600;line-height:1.45}
@media (min-width:1101px){
  .event-page{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
  .event-hero{order:2}
  .event-main{order:1}
  .event-tools--photo{display:flex}
  .event-tools--cta{display:none}
}
@media (max-width:800px){
  .event-main h1{font-size:var(--size-heading-1-phone)}
  .event-summary{padding:var(--space-4)}
  .event-summary > div{grid-template-columns:80px minmax(0,1fr)}
  .related{margin-top:var(--space-8)}
}

/* The header's Saved link (D-339): bookmark and word. */
.nav-saved{display:inline-flex;align-items:center;gap:6px}
.nav-saved .icon{width:18px;height:18px}
@media (prefers-reduced-motion:reduce){.event-card,.card-save,.strip-day{transition:none}}

/* The slim bar above the header (Kat, 2026-11-02): "Your account" and "Sign out" at the top right. */
/* The holiday section (D-392): a cream band above the daily list, one card per seasonal attraction. A stand-in look
   until Kat's design; on phones the cards stack, full width. */
/* No coloured band (Kat, 2026-11-07: it took attention from the events): a plain section like the rest, a rule above */
.wonders{margin:0 0 var(--space-6);padding:18px 0 0;background:none;border-top:2px solid var(--ink)}
/* The Wonder Gems look (Kat, 2026-11-10): the heading in ink, Kat's handwritten line beside it on one baseline */
.wonders-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 22px;margin-bottom:var(--space-4)}
.wonders h2{font-size:38px;line-height:1}
.wonders-line{margin:0;font-family:var(--font-hand);font-size:32px;line-height:1.1;color:var(--accent-strong)}
/* Kat's design B3 (2026-11-08): the lead attraction runs the full width like a cover photo, its name on the photo
   over a dark fade; the others two to a row underneath, photo on the left. Any number fits. */
.wonders .card-grid{margin-top:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.wonders .event-card{display:grid;grid-template-columns:42% minmax(0,1fr);grid-template-rows:auto 1fr auto;grid-template-areas:"band band" "photo body" "credit body"}
.wonders .event-card > .card-band{grid-area:band}
.wonders .event-card > .card-photo{grid-area:photo;aspect-ratio:auto;height:100%;min-height:150px}
.wonders .event-card > .card-credit{grid-area:credit;padding-bottom:6px}
.wonders .event-card > .card-body{grid-area:body}
.wonders .event-card--lead{grid-column:1 / -1;position:relative;display:block;min-height:380px;background:#0b0f18;color:#fff;border:0}
.wonders .event-card--lead > .card-photo{position:absolute;inset:0;height:auto;min-height:0}
.wonders .event-card--lead > .card-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0b0f18eb 0%,#0b0f18c4 42%,transparent 78%)}
.wonders .event-card--lead > .card-band{position:relative;z-index:1}
.wonders .event-card--lead > .card-credit{position:relative;z-index:1;width:fit-content;margin:8px 8px 0 auto;padding:2px 6px;background:#0b0f18b3;color:#fff;font-size:12px}
.wonders .event-card--lead.is-hot,.wonders .event-card--lead.is-hot:hover,.wonders .event-card--lead.is-hot:focus-within{border:0}
.wonders .event-card--lead .card-deadline{color:#ffb38a}
.wonders .event-card--lead .gem-line{color:#ffb38a}   /* Kat's line on the dark photo (Kat, 2026-11-09) */
.wonders .event-card--lead > .card-body{position:relative;justify-content:flex-end;max-width:560px;min-height:380px;padding:32px;gap:4px;color:#fff}
.page-listings .wonders .event-card--lead .card-title{font-size:36px;line-height:1.15}
.wonders .event-card--lead .card-where,.wonders .event-card--lead .card-pattern,.wonders .event-card--lead .card-organizer{color:#e8e4da}
.event-card--dated .card-organizer{font-size:15px;padding-left:22px}
.wonders .event-card--lead .card-foot{margin-top:8px}
.wonders .event-card--lead .card-details{color:#fff}
.wonders .event-card--lead .gem-badge{color:var(--ink)}
.wonders .event-card--lead a:focus-visible{outline-color:#fff}
/* Up to tablet width the words run the card's full width: a fade from the bottom, darker all the way up (QA) */
@media (max-width:900px){
  .wonders .event-card--lead > .card-photo::after{background:linear-gradient(180deg,#0b0f1866 0%,#0b0f18a8 35%,#0b0f18ee 75%)}
  .wonders .event-card--lead > .card-body{max-width:none}
}
.card-season{font-weight:700}
.card-pattern{line-height:1.4}
@media (max-width:600px){
  .wonders{padding:14px 0 0}
  .wonders h2{font-size:28px}
  .wonders-line{font-size:22px}
  /* Stacked full width, never a row you swipe (Kat's phone rule, 2026-11-05); the lead's words under a dark fade at
     the bottom, the others with the photo on the left (B3, Kat 2026-11-08) */
  .wonders .card-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .wonders .event-card{grid-template-columns:40% minmax(0,1fr)}
  .wonders .event-card--lead,.wonders .event-card--lead > .card-body{min-height:320px}
  .wonders .event-card--lead > .card-body{padding:18px}
  .page-listings .wonders .event-card--lead .card-title{font-size:26px}
}

/* The filter bar (Kat, 2026-11-07, round 3): one search box, one row of equal buttons that open small panels, the
   one-tap Free / Homeschool / Weekday adventures, and the picked filters as removable tags. Phones: When and one
   Filters panel. Two forms, one shown at a time. */
.fb{margin:var(--space-4) 0 var(--space-6);padding:20px 20px 16px;background:var(--surface-band);border:1px solid var(--line)}
.fb-form--phone{display:none}
.fb-search{display:flex;height:52px;background:var(--surface-card);border:1px solid var(--line-control)}
.fb-search:focus-within{outline:2px solid var(--focus-ring);outline-offset:2px}
.fb-search-icon{display:flex;align-items:center;padding-left:16px;color:var(--muted)}
.fb-search-icon .icon{width:20px;height:20px}
.fb-search input{flex:1;min-width:0;border:0;background:transparent;padding:0 14px;font:400 var(--size-body-lg)/1 var(--font-sans);color:var(--ink);outline:0}
.fb-search input::placeholder{color:var(--placeholder)}
.fb-search button{flex:none;border:0;padding:0 26px;background:var(--accent-strong);color:var(--on-primary);font:700 18px/1 var(--font-display);letter-spacing:.04em;text-transform:uppercase;cursor:pointer}
.fb-search button:hover{background:var(--accent)}
.fb-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px}
.fb-sep{width:1px;height:24px;margin:0 4px;background:var(--line-control);opacity:.6}
.fb-pill{position:relative;min-width:0}
.fb-quick{display:flex;align-items:center;gap:6px}
.fb-pill > summary,.fb-toggle{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 11px;background:var(--surface-card);border:1px solid var(--line-control);color:var(--ink);font:600 14px/1 var(--font-sans);white-space:nowrap;cursor:pointer;list-style:none;text-decoration:none}
.fb-pill > summary::-webkit-details-marker{display:none}
.fb-pill > summary{max-width:100%;min-width:0}
.fb-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
.fb-pill > summary .icon,.fb-toggle .icon{width:16px;height:16px;flex:none}
.fb-pill > summary .chev{width:14px;height:14px;transition:transform .15s}
.fb-pill[open] > summary .chev{transform:rotate(180deg)}
.fb-pill > summary:hover,.fb-toggle:hover{border-color:var(--ink)}
.fb-pill[open] > summary{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.fb-pill > summary.is-set,.fb-toggle.is-on{background:var(--ink);border-color:var(--ink);color:var(--on-primary)}
.fb-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;background:var(--count-badge);color:var(--ink);font-size:12px;font-weight:700}
.fb-toggle .fb-check{display:none}
.fb-toggle.is-on .fb-check{display:block}
/* The quick switches: an icon each and a dashed edge, so they read as one tap; once on, solid with the tick (Kat, 2026-11-08, F1) */
.fb-toggle{border-style:dashed}
.fb-toggle.is-on{border-style:solid}
.fb-toggle.is-on .fb-ico{display:none}
/* Wonder Gems in the wide row sits among the menu buttons: their solid line, not the switches' dashes (Kat, 2026-11-09) */
.fb-bar > .fb-toggle{border-style:solid}
.fb-short{display:none}
.fb-pop{position:absolute;z-index:6;top:calc(100% + 8px);left:0;width:320px;max-height:min(70vh,560px);overflow:auto;padding:16px;background:var(--surface-card);border:1px solid var(--line);box-shadow:0 10px 30px rgba(25,31,43,.18)}
.fb-pop--wide{width:440px}
.fb-pop--right{left:auto;right:0}
.fb-pop--when{width:340px}
.fb-pop-title{margin:0 0 8px;font:700 16px/1 var(--font-display);text-transform:uppercase;letter-spacing:.02em}
.fb-list + .fb-pop-title{margin-top:14px}
.fb-list{display:grid;grid-template-columns:minmax(0,1fr);column-gap:16px}
.fb-list--two,.fb-list--cols{grid-template-columns:repeat(2,minmax(0,1fr))}
.fb-opt{display:flex;align-items:center;gap:10px;min-height:38px;cursor:pointer;font-size:15px}
.fb-opt input{width:18px;height:18px;margin:0;accent-color:var(--ink);flex:none}
/* Clear and Show events stay in view at the bottom of a panel while a long list scrolls above them (Kat, 2026-11-11:
   with 26 towns the Area panel's button had scrolled out of sight). The foot brings the panel's bottom padding with
   it, so nothing shows beneath it; the When panel has its own foot and keeps its padding. */
.fb-pop:not(.fb-pop--when){padding-bottom:0}
.fb-pop-foot{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;margin:12px -16px 0;padding:12px 16px 16px;border-top:1px solid var(--line);background:var(--surface-card)}
.fb-clear{display:inline-flex;align-items:center;min-height:40px;color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.fb-apply{height:40px;padding:0 18px;background:var(--ink);border:0;color:var(--on-primary);font:700 15px/1 var(--font-sans);cursor:pointer}
/* When: the quick choices, then the small month */
.fb-seg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:12px}
/* Label and count in one run of text, so "This weekend (today) · 13" wraps as words, centred (Kat, 2026-11-08) */
.fb-seg a{display:flex;align-items:center;justify-content:center;min-height:38px;padding:3px 6px;line-height:1.2;text-align:center;border:1px solid var(--line-control);color:var(--ink);font-weight:600;font-size:14px;text-decoration:none}
.fb-seg a:hover{border-color:var(--ink)}
.fb-seg a.is-on{background:var(--ink);border-color:var(--ink);color:var(--on-primary)}
.fb-seg-n{font-weight:400;margin-left:2px;white-space:nowrap}
.cal-head{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:6px;margin-bottom:4px}
.cal-arrow{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--line-control);background:var(--surface-card);color:var(--ink);font-size:20px;line-height:1;text-decoration:none}
span.cal-arrow{opacity:.35}
a.cal-arrow:hover,a.cal-arrow:focus-visible{border-color:var(--ink)}
.cal-title{margin:0;text-align:center;font:700 16px/1 var(--font-display);text-transform:uppercase}
.cal-grid{width:100%;border-collapse:collapse;table-layout:fixed}
.cal-grid th{padding:2px 0 4px;font-size:12px;font-weight:700;color:var(--muted);text-align:center}
.cal-grid td{padding:1px 0;text-align:center}
.cal-day{display:flex;align-items:center;justify-content:center;height:36px;color:var(--ink);font-weight:600;font-size:14px;text-decoration:none;position:relative}
a.cal-day:hover,a.cal-day:focus-visible{outline:1px solid var(--ink);outline-offset:-1px}
.cal-day.is-off{color:#b9bec7;font-weight:400}
.cal-day.is-today::after{content:"";position:absolute;left:50%;bottom:4px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--accent)}
.cal-day.in-range{background:var(--surface-band)}
.cal-day.is-start,.cal-day.is-end{background:var(--ink);color:var(--on-primary)}
.cal-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.cal-clear{display:inline-flex;align-items:center;min-height:40px;color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.cal-show{display:inline-flex;align-items:center;height:40px;padding:0 18px;background:var(--ink);color:var(--on-primary);font-weight:700;font-size:15px;text-decoration:none}
.cal-show.is-off{opacity:.4}
/* What's on, each one removable */
.fb-tokens{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.fb-token{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:0 8px 0 10px;background:var(--surface-card);border:1px solid var(--line);color:var(--ink);font-size:14px;text-decoration:none}
.fb-token:hover,.fb-token:focus-visible{border-color:var(--ink)}
.fb-x{font-size:16px;line-height:1;color:var(--muted)}
.fb-clearall{font-size:14px;color:var(--ink);text-decoration:underline;text-underline-offset:3px;margin-left:4px}
/* The slim bar once the filter bar has scrolled away (Kat, 2026-11-08, F3); events-dates.js shows it */
.fb-slim{position:fixed;top:0;left:0;right:0;z-index:9;display:flex;align-items:center;gap:10px;padding:8px max(var(--gutter-desktop),calc((100% - var(--container-max)) / 2));background:var(--surface-page);border-bottom:1px solid var(--line);box-shadow:0 4px 14px #19233816;transform:translateY(-110%);visibility:hidden;transition:transform .2s ease-out,visibility 0s .2s}
.fb-slim[hidden]{display:none}
.fb-slim.is-shown{transform:none;visibility:visible;transition:transform .2s ease-out}
/* While the slim bar can show, a jump to a section or a card (a search, Save) and keyboard focus stop below it (QA) */
html.has-slim{scroll-padding-top:76px}
.fb-slim-form{flex:1;min-width:0}
.fb-slim .fb-search{height:42px}
.fb-slim .fb-search button{padding:0 16px;font-size:15px}
.fb-slim-filters{display:inline-flex;align-items:center;gap:6px;height:42px;padding:0 12px;background:var(--ink);border:1px solid var(--ink);color:var(--on-primary);font:600 14px/1 var(--font-sans);text-decoration:none;white-space:nowrap}
.fb-slim-filters .icon{width:16px;height:16px;flex:none}
.fb-slim-count{color:var(--muted);font-size:14px;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.fb-slim,.fb-slim.is-shown{transition:none}}
/* Up to tablet width, the phone form: the wide row's panels would not fit on screen (QA) */
@media (max-width:900px){
  .fb{padding:14px}
  .fb-form--wide{display:none}
  .fb-form--phone{display:block}
  .fb-search{height:48px}
  .fb-search button{padding:0 16px;font-size:16px}
  .fb-form--phone .fb-bar{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .fb-form--phone .fb-pill{position:static}
  .fb-form--phone .fb-pill > summary{width:100%;justify-content:center}
  .fb-form--phone .fb-pop{left:0;right:0;width:auto;max-height:75vh;overflow:auto}
  .fb-toggles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:8px}
  .fb-toggles .fb-toggle{justify-content:center;padding:0 6px;font-size:14px}
  .fb-long{display:none}
  .fb-short{display:inline}
  .cal-day{height:44px}
  .fb-slim .fb-search button,.fb-slim-count{display:none}
}
@media (max-width:800px){.fb-slim{padding:8px var(--gutter-phone)}}
/* The filter panel (Kat, 2026-11-09, Style C): from the right, two columns, on computers; a sheet from the bottom up
   to 800px. A native dialog: the page behind is dimmed; on phones it doesn't scroll under the sheet (on computers a
   lock would make the scrollbar's room jump or leave an undimmed strip beside the panel, QA). */
.fp{position:fixed;inset:0 0 0 auto;width:min(760px,100%);height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--surface-page);color:var(--ink);box-shadow:-12px 0 40px #19233833}
.fp[open]{animation:fp-side .2s ease-out}
.fp::backdrop{background:#0b0f1880}
.fp-form{display:flex;flex-direction:column;height:100%}
.fp-head{position:relative;display:flex;align-items:center;justify-content:space-between;padding:14px 24px;border-bottom:1px solid var(--line)}
.fp-head h2{margin:0;font:700 24px/1.1 var(--font-display);text-transform:uppercase;letter-spacing:.02em}
.fp-close{width:40px;height:40px;border:1px solid var(--line);background:var(--surface-card);color:var(--ink);font-size:24px;line-height:1;cursor:pointer}
.fp-body{flex:1;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:4px 32px;align-content:start;padding:16px 24px 8px}
.fp-group{min-width:0;margin:0 0 16px;padding:0;border:0}
.fp-group legend{margin:0 0 6px;padding:0;color:var(--muted);font:700 13px/1.2 var(--font-sans);letter-spacing:.06em;text-transform:uppercase}
.fp-group--wide,.fp-group--area{grid-column:1 / -1}
.fp-towns{grid-template-columns:repeat(3,minmax(0,1fr))}
.fp-chips{display:flex;flex-wrap:wrap;gap:8px}
.fp-chip{position:relative;display:inline-flex}
.fp-chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.fp-chip span{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border:1px dashed var(--line-control);background:var(--surface-card);font:600 14px/1 var(--font-sans)}
.fp-chip input:checked + span{border-style:solid;border-color:var(--ink);background:var(--ink);color:var(--on-primary)}
.fp-chip input:focus-visible + span{outline:2px solid var(--focus-ring);outline-offset:2px}
.fp-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 24px;border-top:1px solid var(--line);background:var(--surface-card)}
.fp-clear{padding:8px 0;border:0;background:none;color:var(--ink);font:600 15px/1 var(--font-sans);text-decoration:underline;cursor:pointer}
.fp-show{height:46px;padding:0 28px;border:0;background:var(--accent);color:var(--on-primary);font:700 15px/1 var(--font-sans);letter-spacing:.04em;text-transform:uppercase;cursor:pointer}
.fp-show:hover{background:var(--accent-strong)}
@keyframes fp-side{from{opacity:0;transform:translateX(40px)}to{opacity:1;transform:none}}
@keyframes fp-up{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}
@media (max-width:800px){
  .fp{inset:auto 0 0 0;width:100%;height:auto;max-height:88vh;max-height:88dvh;box-shadow:0 -12px 40px #19233833}
  .fp[open]{animation-name:fp-up}
  .fp-form{height:auto;max-height:inherit}
  .fp-head{padding:14px var(--gutter-phone) 12px}
  .fp-head::before{content:"";position:absolute;top:6px;left:50%;width:40px;height:4px;margin-left:-20px;background:var(--line)}
  .fp-body{display:block;padding:14px var(--gutter-phone) 6px}
  .fp-towns{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fp-foot{padding:10px var(--gutter-phone) calc(10px + env(safe-area-inset-bottom))}
  .fp-show{flex:1}
  html:has(.fp[open]){overflow:hidden}
}
@media (prefers-reduced-motion:reduce){.fp[open]{animation:none}}
/* Quick switches on a narrow phone: no room for the icons as well (Kat's phone rule: nothing runs off the side) */
@media (max-width:480px){.fb-toggles .fb-ico{display:none}}
/* Phones: the four quick switches in two rows (Kat, 2026-11-09) */
@media (max-width:640px){.fb-toggles{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* "Ongoing ways to help" on the Volunteer view (D-460, Kat 2026-11-11): volunteer programs with no dates. On a computer the
   description and "How to help" show; on a phone they fold under "More about it" (a details element, no script). */
.ongoing{margin:8px 0 36px}
.ongoing-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin:0 0 14px}
.ongoing-head h2{margin:0}
.ongoing-head p{margin:0;color:var(--muted);font-size:15px}
.ongoing-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,520px),1fr));gap:16px}
.ongoing-card{display:grid;grid-template-columns:200px 1fr;background:var(--surface-card,#fff);border:1px solid var(--related-line);border-radius:14px;overflow:hidden}
.ongoing-card img{width:100%;height:100%;object-fit:cover;display:block;min-height:180px}
.ongoing-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:6px;min-width:0}
.ongoing-tag{align-self:flex-start;font-size:12px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--related-ink);background:var(--related-tint);border-radius:999px;padding:3px 10px}
.ongoing-body h3{margin:2px 0 0;font-size:20px;line-height:1.25}
.ongoing-where{margin:0;font-size:14px;color:var(--muted)}
.ongoing-full{display:flex;flex-direction:column;gap:6px;flex:1}
.ongoing-text{margin:4px 0 6px;font-size:15px;line-height:1.5}
.ongoing-go{align-self:flex-start;margin-top:auto;display:inline-flex;gap:6px;align-items:center;background:var(--ink);color:#fff;font-weight:700;font-size:14px;padding:9px 14px;border-radius:6px;text-decoration:none}
.ongoing-go:hover{background:#2b3446}
.ongoing-go:focus-visible{outline:3px solid var(--related-ink);outline-offset:2px}
.ongoing-more{display:none}
.ongoing-more summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:15px;color:var(--related-ink);padding:6px 0;text-decoration:underline;text-underline-offset:3px}
.ongoing-more summary::-webkit-details-marker{display:none}
.ongoing-more summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.ongoing-more[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.ongoing-more[open] summary{margin-bottom:4px}
.ongoing-more .ongoing-go{margin-top:4px}
@media (max-width:600px){
  .ongoing-card{grid-template-columns:1fr}
  .ongoing-card img{min-height:0;aspect-ratio:16/9;height:auto}
  .ongoing-body h3{font-size:18px}
  .ongoing-full{display:none}
  .ongoing-more{display:block}
}
@media (prefers-reduced-motion:reduce){.ongoing-more summary::after{transition:none}}

/* "Back to top" (Kat, 2026-11-11): bottom right; events-dates.js shows it only two screens down and only while the
   reader is scrolling back up. Under the slim bar and the filter panel. */
.to-top{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:8;display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 18px;border-radius:999px;background:var(--ink);color:var(--on-primary);font:600 15px/1 var(--font-sans);text-decoration:none;white-space:nowrap;box-shadow:0 6px 18px #19233845;opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .2s,transform .2s,visibility 0s .2s}
.to-top[hidden]{display:none}
.to-top.is-shown{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .2s}
@media (max-width:600px){.to-top{right:14px;bottom:max(14px,env(safe-area-inset-bottom))}}
@media (prefers-reduced-motion:reduce){.to-top,.to-top.is-shown{transition:none}}
