/* Plazza new look (site B).
   Written 2026-11-30 by Claude (Claude Code desktop app, Fable 5.2) for David Thomson.
   Session d34ac1c9-ad4a-4e32-9a8c-cf154bf0511d.
   Revised 2026-12-03 by Claude (Fable 5.2): side panel of filters, one layout for every
   event and venue, sign-in and venue pages.  Session 8987e058-2a6f-49bf-8723-f37a1e889e12. */
:root {
  --bg: #faf7f2; --card: #ffffff; --ink: #1f2430; --soft: #5d6577; --line: #e6e0d6;
  --accent: #b4532a; --accent-ink: #ffffff; --chip: #f0ebe2; --free: #1f7a4d; --bad: #b3261e;
  --music: #7c4dbd; --theater: #b4532a; --movies: #2f6f9f; --sports: #c2410c;
  --library: #1f7a4d; --science: #3b5bdb; --community: #a16207; --civic: #6b7280;
  --play: #d6336c; --art: #0c8599; --outdoors: #2b8a3e; --food: #e8590c; --class: #5f3dc4;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15171c; --card: #1e2128; --ink: #eceef2; --soft: #a3aab8; --line: #30343e;
          --chip: #2a2e38; --accent: #e08a5f; --accent-ink: #15171c; --free: #5fcf98; --bad: #f2867f;
          --music: #b79ae8; --theater: #e08a5f; --movies: #7fb6de; --sports: #f59e6b;
          --library: #5fcf98; --science: #8ea2f5; --community: #d9b25a; --civic: #9aa1ad;
          --play: #f783ac; --art: #66d9e8; --outdoors: #8ce99a; --food: #ffa94d; --class: #b197fc; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.soft { color: var(--soft); font-weight: 400; }
.bad { color: var(--bad); }
.free { color: var(--free); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px;
         color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
              background: var(--accent); color: var(--accent-ink); font-size: 18px; }
.search { flex: 1 1 220px; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-right: 0;
                border-radius: 10px 0 0 10px; background: var(--card); color: var(--ink); font: inherit; }
.search button { padding: 9px 14px; border: 1px solid var(--accent); border-radius: 0 10px 10px 0;
                 background: var(--accent); color: var(--accent-ink); font: inherit; cursor: pointer; }
.top-nav { display: flex; gap: 14px; font-size: 15px; }
.top-nav a { color: var(--soft); text-decoration: none; white-space: nowrap; }
.top-nav a:hover { color: var(--ink); }
#saved-count { color: var(--accent); font-weight: 700; }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; align-items: center; }
.chips::-webkit-scrollbar { display: none; }
.wrap-chips { flex-wrap: wrap; overflow: visible; gap: 6px; }
.chip { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--chip); color: var(--ink);
        text-decoration: none; font-size: 15px; border: 1px solid transparent; white-space: nowrap; }
.chip:hover { border-color: var(--soft); }
.chip.on { background: var(--ink); color: var(--bg); }
.chip i { font-style: normal; color: var(--soft); font-size: 13px; margin-left: 2px; }
.chip.on i { color: inherit; opacity: .7; }
.chip-wide { display: inline-block; margin-top: 6px; }

/* the date bar, always on top */
.whenbar { padding: 12px 0 2px; }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.day { flex: none; width: 46px; padding: 5px 0; border-radius: 10px; text-align: center; text-decoration: none;
       color: var(--ink); background: var(--card); border: 1px solid var(--line); }
.day span { display: block; font-size: 11px; color: var(--soft); text-transform: uppercase; letter-spacing: .04em; }
.day b { font-size: 17px; }
.day.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day.on span { color: inherit; }

/* filters at the side (wide screens) or behind a button (phones) */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 28px; align-items: start; }
.side-toggle { width: 100%; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
               color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.side-toggle::after { content: "▾"; float: right; color: var(--soft); }
.side-toggle b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px;
                 background: var(--accent); color: var(--accent-ink); font-size: 13px; margin-left: 4px; }
.side-body { display: none; padding: 4px 2px 0; }
.side.open .side-body { display: block; }
.side.open .side-toggle::after { content: "▴"; }
.fgroup { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--soft); }
.fgroup .chip { font-size: 14px; padding: 5px 11px; }
.fhint { margin: 0 0 6px; color: var(--soft); font-size: 14px; }
.quiet-link { display: block; margin-top: 6px; color: var(--soft); font-size: 13.5px; }
.catlist { display: flex; flex-direction: column; gap: 2px; }
.catlist a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 9px; border-radius: 8px;
             color: var(--ink); text-decoration: none; font-size: 15px; }
.catlist a:hover { background: var(--chip); }
.catlist a.on { background: var(--ink); color: var(--bg); }
.catlist a.muted { opacity: .5; }
.catlist i { font-style: normal; color: var(--soft); font-size: 13px; }
.catlist a.on i { color: inherit; opacity: .7; }
@media (min-width: 900px) {
  .layout { grid-template-columns: 250px minmax(0, 1fr); }
  .side { position: sticky; top: 64px; max-height: calc(100vh - 72px); overflow-y: auto; scrollbar-width: thin; }
  .side-toggle { display: none; }
  .side-body { display: block; }
}

.summary { color: var(--soft); margin: 10px 0 14px; }
.summary b { color: var(--ink); }
.summary a { margin-left: 8px; white-space: nowrap; }
.summary a.quiet { color: var(--soft); }
.page-h { margin: 22px 0 4px; font-size: 26px; }
.note { background: var(--chip); padding: 10px 14px; border-radius: 10px; border-left: 4px solid var(--free); }
.note-bad { border-left-color: var(--bad); }
.empty { text-align: center; padding: 40px 0; color: var(--soft); }

/* day sections */
.daysec h2 { position: sticky; top: 59px; z-index: 2; margin: 22px 0 8px; padding: 6px 0; background: var(--bg);
             font-size: 17px; border-bottom: 2px solid var(--ink); }
.results .daysec:first-of-type h2 { margin-top: 8px; }
.daysec h2 span { color: var(--soft); font-weight: 400; font-size: 14px; margin-left: 6px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }

/* event rows */
.ev { border-bottom: 1px solid var(--line); border-left: 4px solid var(--civic); }
.ev:last-child { border-bottom: 0; }
.ev.cat-music, .one.cat-music .p-nopic { border-left-color: var(--music); }
.ev.cat-theater, .ev.cat-dance, .ev.cat-comedy { border-left-color: var(--theater); }
.ev.cat-movies { border-left-color: var(--movies); }
.ev.cat-sports { border-left-color: var(--sports); }
.ev.cat-library { border-left-color: var(--library); }
.ev.cat-science, .ev.cat-history { border-left-color: var(--science); }
.ev.cat-community, .ev.cat-festival, .ev.cat-market, .ev.cat-faith { border-left-color: var(--community); }
.ev.cat-play { border-left-color: var(--play); }
.ev.cat-art { border-left-color: var(--art); }
.ev.cat-outdoors { border-left-color: var(--outdoors); }
.ev.cat-food { border-left-color: var(--food); }
.ev.cat-class { border-left-color: var(--class); }
.ev summary { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; cursor: pointer; list-style: none; }
.ev summary::-webkit-details-marker { display: none; }
.ev summary:hover { background: color-mix(in srgb, var(--chip) 55%, transparent); }
.ev-time { flex: none; width: 74px; font-variant-numeric: tabular-nums; color: var(--soft); font-size: 15px; padding-top: 1px; }
.ev-main { flex: 1; min-width: 0; }
.ev-title { display: block; font-weight: 600; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: var(--soft); font-size: 14px; margin-top: 2px; }
.ev-dot::before { content: "· "; }
.ev-thumb { flex: none; width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: var(--chip); }
.ev[open] .ev-thumb { width: 96px; height: 96px; }
.tag { padding: 1px 8px; border-radius: 999px; background: var(--chip); font-size: 12.5px; color: var(--ink); font-style: normal; }
.tag-free { color: var(--free); font-weight: 600; }
.tag-bad { color: var(--bad); font-weight: 600; }
.star { flex: none; border: 0; background: none; font-size: 21px; line-height: 1; color: var(--soft); cursor: pointer; padding: 2px 4px; }
.star.on { color: #e0a100; }
.ev-body { padding: 2px 12px 14px 98px; }
.ev-where { margin: 0 0 6px; color: var(--soft); font-size: 14.5px; }
.ev-desc { margin: 0 0 10px; white-space: pre-line; }
.ev-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.btn { display: inline-block; padding: 7px 14px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
       text-decoration: none; font: inherit; font-size: 14.5px; border: 1px solid var(--accent); cursor: pointer; text-align: center; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost.on { background: var(--chip); }
.btn.small { padding: 5px 11px; font-size: 14px; }
.btn.wide { display: block; width: 100%; }
.btn.danger { color: var(--bad); border-color: var(--bad); }

/* on many days */
.ongoing { margin: 6px 0 4px; }
.ongoing > summary { cursor: pointer; padding: 11px 14px; background: var(--chip); border-radius: 12px; color: var(--soft); }
.ongoing > summary b { color: var(--ink); margin-right: 6px; }
.ongoing[open] > summary { border-radius: 12px 12px 0 0; }
.ongoing .list { border-radius: 0 0 12px 12px; border-top: 0; }

/* one event or one venue: the same parts in the same places */
.one { padding: 14px 0 30px; }
.crumb { color: var(--soft); font-size: 14.5px; }
.crumb-edit { float: right; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.p-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--chip); }
.p-credit { display: block; color: var(--soft); font-size: 12.5px; margin-top: 3px; }
.p-nopic { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px;
           background: linear-gradient(135deg, var(--chip), var(--card)); border: 1px solid var(--line); }
.p-nopic span { font-size: 84px; filter: saturate(.85); }
.p-info h1 { margin: 0 0 4px; font-size: 27px; line-height: 1.2; }
.p-venue { margin: 0 0 8px; color: var(--soft); }
.p-sum { margin: 0 0 12px; font-size: 17px; }
.facts { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0; margin: 0 0 12px; border-top: 1px solid var(--line); }
.facts dt { padding: 8px 0; color: var(--soft); font-size: 14px; border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dd span { display: block; color: var(--soft); font-size: 14.5px; }
.facts dd span.bad { color: var(--bad); }
.hours-row i { display: inline-block; width: 38px; font-style: normal; }
.p-act { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; }
.p-act-when { font-weight: 600; }
.p-act-cost { color: var(--soft); margin-bottom: 4px; }
.p-act-cost:empty { display: none; }
@media (min-width: 720px) {
  .pgrid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .p-act { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: center; }
  .p-act-when, .p-act-cost { grid-column: 1 / -1; }
}
@media (min-width: 1020px) {
  .pgrid { grid-template-columns: 330px minmax(0, 1fr) 250px; }
  .p-act { grid-column: auto; grid-template-columns: 1fr; position: sticky; top: 70px; }
}
.pbelow { max-width: 760px; }
.pbelow section { margin-top: 26px; }
.pbelow h2 { font-size: 19px; margin: 0 0 8px; padding-bottom: 5px; border-bottom: 2px solid var(--ink); }
.one-desc p { margin: 0 0 10px; }
.dates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.dates a { display: block; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 9px;
           text-decoration: none; color: var(--ink); font-size: 14.5px; }
.rel { padding-left: 18px; margin: 0; }
.rel i { color: var(--soft); font-size: 13.5px; margin-left: 6px; }
.vbox { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
        background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.vbox-name { display: block; font-weight: 600; font-size: 17px; text-decoration: none; }
.vbox span { display: block; color: var(--soft); font-size: 14.5px; }
.vbox span.bad { color: var(--bad); }
.vbox-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* stars */
.stars { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--soft); white-space: nowrap; margin-left: 6px; }
.stars b { color: var(--ink); }
.stars i { font-style: normal; }
.stars-bar { position: relative; display: inline-block; width: 80px; height: 15px; }
.stars-bar::before, .stars-bar span::before { content: "★★★★★"; position: absolute; left: 0; top: -3px; font-size: 16px; letter-spacing: 0; line-height: 1.2; }
.stars-bar::before { color: var(--line); }
.stars-bar span { position: absolute; left: 0; top: 0; height: 100%; overflow: hidden; }
.stars-bar span::before { color: #e0a100; }
.rate { display: grid; gap: 2px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.rate i { font-style: normal; font-size: 13px; }
.rate-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rate-stars button { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--line); cursor: pointer; padding: 0 1px; }
.rate-stars button.on, .rate-stars button:hover, .rate-stars button:hover ~ button { color: #e0a100; }

/* venues, prefs, forms */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.vcard { display: block; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
         text-decoration: none; color: var(--ink); }
.vcard span { display: block; color: var(--soft); font-size: 14px; }
.vcard.muted { opacity: .55; }
.prefs fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 16px; padding: 10px 14px 14px;
                  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; background: var(--card); }
.prefs fieldset.plain { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); }
.prefs fieldset.plain .fhint { grid-column: 1 / -1; margin: 0; }
.prefs legend { font-weight: 700; padding: 0 6px; }
.check { display: flex; gap: 8px; align-items: center; }
.check i { font-style: normal; color: var(--soft); font-size: 13px; }
.linkish { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-weight: 400; font-size: 14px; }
.narrow { max-width: 440px; margin: 0 auto; }
.narrow.wide-ish { max-width: 680px; }
.card-form { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 12px; }
.card-form p { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.field { display: block; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.field > span i { font-style: normal; font-weight: 400; color: var(--soft); }
.field input, .field select, .field textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px;
        background: var(--bg); color: var(--ink); font: inherit; }
.field textarea { min-height: 90px; resize: vertical; }
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.req { color: var(--bad); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; max-width: 360px; }
.hours span { font-size: 14.5px; }

/* a venue's own listings */
.mhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 10px; }
.mhead h2 { margin: 0; font-size: 19px; }
.mrow { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between;
        padding: 11px 14px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow.past .mrow-main { opacity: .55; }
.mrow-main { flex: 1 1 260px; min-width: 0; }
.mrow-main b { display: block; }
.mrow-main span { color: var(--soft); font-size: 14.5px; }
.mrow-act { display: flex; flex-wrap: wrap; gap: 6px; }
.mrow-act form { margin: 0; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 36px;
        color: var(--soft); font-size: 14px; }

@media (max-width: 899px) {
  .daysec h2 { top: 59px; }
}
@media (max-width: 640px) {
  .top-nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 14.5px; }
  .daysec h2 { top: 96px; }
  .ev-time { width: 62px; font-size: 14px; }
  .ev-body { padding-left: 12px; }
  .ev-thumb { width: 46px; height: 46px; }
  .crumb-edit { float: none; display: block; margin-top: 4px; }
}
