/* One event's page (/events/<date>-<slug>/) and the Details links that reach it. Prefix ev1-; the where-box reuses eatplace's .ep-card. */
.ev1-hero { padding-bottom: var(--sp-8); }
.ev1-hero h1 { max-width: 20ch; }
.ev1-when { font: 600 1.12rem/1.4 var(--sans); color: var(--ink-2); margin: var(--sp-8) 0 0; }
.ev1-glance { font: 500 1rem/1.4 var(--sans); color: var(--ink-2); margin: var(--sp-4) 0 0; }
@media (min-width: 820px) { .ev1-glance { display: none; } } /* the side card says it there */
.ev1-note { display: inline-block; margin: var(--sp-16) 0 0; padding: var(--sp-8) var(--sp-12); border-radius: 8px; background: var(--paper-2); color: var(--tile-deep); font-weight: 600; }
.ev1-body { display: grid; gap: var(--sp-24); padding-top: var(--sp-20); }
.ev1-main p { max-width: 38em; font-size: 1rem; line-height: 1.6; }
.ev1-ours { font-weight: 500; color: var(--ink); }
.ev1-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-8); margin-top: var(--sp-16); }
.ev1-acts .share-btn, .ev1-calendar .add-cal a { min-height: 44px; }
.ev1-calendar { max-width: 100%; }
.ev1-calendar summary { list-style: none; }
.ev1-calendar summary::-webkit-details-marker { display: none; }
.ev1-calendar .add-cal { display: flex; margin-top: var(--sp-8); }
.ev1-calendar .add-cal a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.ev1-acts svg { display: inline; width: 14px; height: 14px; margin-left: var(--sp-8); vertical-align: -2px; }
.ev1-card p { margin: 0 0 var(--sp-12); }
.ev1-card .ep-k { margin-bottom: 2px; }
.ev1-body { grid-template-areas: "main" "side" "after"; padding-bottom: clamp(36px, 5vw, 60px); }
.ev1-main { grid-area: main; min-width: 0; } .ev1-card { grid-area: side; } .ev1-after { grid-area: after; min-width: 0; }
@media (min-width: 820px) { .ev1-body { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main side" "after side"; grid-template-rows: auto 1fr; align-items: start; } }

/* The day bar (src/event-day.mjs): the event's window on the day's light, 6 AM to 8 PM unless the event runs past it.
   With a Sunset Score forecast the bar is the sky with sunrise and sunset marks and the tide-pool window; without one
   it's a plain day scale. */
.db { margin-top: clamp(18px, 3vw, 26px); }
.db-bar { position: relative; height: 96px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(24, 34, 46, .1); }
.db-plain .db-bar { height: 64px; background: #fffaf2 repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--hrs, 14) - 1px), var(--line) calc(100% / var(--hrs, 14) - 1px) calc(100% / var(--hrs, 14))); }
.db-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: linear-gradient(180deg, rgba(23, 46, 84, .5), rgba(14, 30, 60, .78)); }
.db-ev { position: absolute; top: 0; bottom: 0; min-width: 4px; background: rgba(255, 250, 242, .6); box-shadow: inset 0 0 0 1.5px rgba(255, 250, 242, .95), 0 0 22px -6px rgba(10, 20, 36, .45); }
.db-plain .db-ev { background: rgba(185, 71, 42, .16); box-shadow: inset 0 0 0 1.5px var(--tile); }
.db-ev.db-start { width: 4px; margin-left: -2px; background: var(--tile); box-shadow: none; }
.db-ev.db-all { left: 0; right: 0; background: rgba(255, 250, 242, .28); box-shadow: inset 0 0 0 2px rgba(255, 250, 242, .9); border-radius: var(--radius); }
.db-plain .db-ev.db-all { background: rgba(185, 71, 42, .1); box-shadow: inset 0 0 0 2px var(--tile); }
.db-lab { position: absolute; bottom: 10px; z-index: 3; margin: 0 var(--sp-8); padding: var(--sp-4) var(--sp-8); border-radius: 8px; background: var(--paper); color: var(--ink); font: 600 .82rem/1.1 var(--sans); white-space: nowrap; box-shadow: 0 4px 14px -6px rgba(10, 20, 36, .55); }
.db-plain .db-lab { bottom: 50%; transform: translateY(50%); }
.db-tick { position: absolute; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; background: rgba(255, 250, 242, .8); z-index: 2; }
.db-tick .tmark { --sz: 34px; position: absolute; left: 50%; top: 8px; margin-left: -17px; box-shadow: 0 0 0 2px rgba(255, 250, 242, .75); }
.db-tick-l .tmark { left: 0; margin-left: -3px; }
.db-tick-r .tmark { left: auto; right: 0; margin: 0 -3px 0 0; }
.db-tide { position: absolute; bottom: 0; height: 28px; z-index: 1; background: rgba(120, 196, 178, .55); box-shadow: inset 0 3px 0 #9fdccb; }
.db-ax { position: relative; height: 14px; margin: var(--sp-8) 0 0; font: 500 .75rem/1 var(--sans); color: var(--ink-3); }
.db-ax span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.db-ax span:first-child { transform: none; } .db-ax span:last-child { transform: translateX(-100%); }
.db-line { margin: var(--sp-16) 0 0; display: flex; flex-wrap: wrap; gap: var(--sp-8) var(--sp-24); color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.db-say { display: flex; gap: var(--sp-8); align-items: flex-start; max-width: 34em; }
.db-say b { color: var(--ink); font-weight: 600; }
.db-say .tmark { --sz: 28px; margin-top: -3px; }
.db-key { flex: none; width: 28px; height: 12px; margin-top: var(--sp-4); border-radius: 3px; background: rgba(120, 196, 178, .8); box-shadow: inset 0 3px 0 #9fdccb, 0 0 0 1px rgba(24, 34, 46, .15); }
@media (max-width: 600px) {
  .db-bar { height: 84px; }
  .db-plain .db-bar { height: 56px; }
  .db-tick .tmark { --sz: 28px; margin-left: -14px; top: 6px; }
  .db-tick-l .tmark { margin-left: -3px; } .db-tick-r .tmark { margin: 0 -3px 0 0; }
  .db-lab { font-size: .75rem; padding: var(--sp-4) var(--sp-8); margin: 0 var(--sp-4); bottom: 7px; }
  .db-ax { font-size: .75rem; }
  .db-ax .db-ax-near { display: none; }
}

/* After the description: food and drink nearby, then the day's other events. One list shape: key on the left, serif name. */
.ev-after { margin-top: clamp(28px, 4vw, 40px); }
.ev-after h2 { font-size: var(--h2-sec); margin: 0 0 var(--sp-12); }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev-list li { display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: var(--sp-12); padding: var(--sp-12) 0; border-top: 1px solid var(--line); align-items: baseline; }
.ev-list li:last-child { border-bottom: 1px solid var(--line); }
.ev-list .k { font: 600 .9rem/1.3 var(--sans); color: var(--tile-deep); font-variant-numeric: tabular-nums; }
.ev-list .k.dim { color: var(--ink-2); }
.ev-list a { font: 600 1.12rem/1.25 var(--sans); color: var(--ink); text-decoration: none; }
.ev-list a:hover { text-decoration: underline; text-underline-offset: .15em; }
.ev-list small { display: block; margin-top: 2px; font: 400 .9rem/1.35 var(--sans); color: var(--ink-3); }
.ev-more-link { margin: var(--sp-8) 0 0; font-weight: 600; font-size: .9rem; }
.ev-more-link a { color: var(--tile-deep); }
@media (max-width: 600px) { .ev-list li { grid-template-columns: 4.6em minmax(0, 1fr); } }

/* The venue's other dates, inside the where-card */
.ev1-venue { margin-top: var(--sp-16); padding: var(--sp-16) var(--sp-16); border-radius: var(--radius); background: var(--paper-2); }
.ev1-venue h2 { font-size: var(--h2-card); margin: 0 0 var(--sp-8); }
.ev1-venue ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-8); }
.ev1-venue a { font-weight: 600; color: var(--ink); text-decoration: none; }
.ev1-venue a:hover { text-decoration: underline; }
.ev1-venue li > span { display: block; font-size: .9rem; color: var(--ink-2); }

.ev-more, .pick-more { font-size: .82rem; white-space: nowrap; }
.ev-where .ev-more { margin-left: .5em; }
.pick .pick-more { position: relative; z-index: 3; display: inline-block; margin-top: var(--sp-4); padding: var(--sp-8) 0; }

/* The events calendar (/events/): one block per day, time on the left. Prefix evh-. */
.evh { padding-top: var(--sp-8); }
.evh-day { scroll-margin-top: 160px; }
.evh-day { border-top: 1px solid var(--line); }
.evh-day:last-of-type { border-bottom: 1px solid var(--line); }
.evh-day > summary { display: flex; align-items: baseline; gap: var(--sp-12); padding: var(--sp-16) 0; cursor: pointer; list-style: none; }
.evh-day > summary::-webkit-details-marker { display: none; }
.evh-day > summary::after { content: ""; width: 9px; height: 9px; margin-left: auto; align-self: center; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
.evh-day[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.evh-day[open] > ul { padding-bottom: var(--sp-24); }
.evh-h { font-size: var(--h2-sec); margin: 0; }
/* day blocks without a toggle (venue pages): the heading gets the room the toggle row has, never glued to the rule above */
section.evh-day > .evh-h { padding: var(--sp-16) 0 var(--sp-12); }
section.evh-day > ul { padding-bottom: var(--sp-24); }
.evh-n { color: var(--ink-3); font-size: .9rem; white-space: nowrap; }
.evh-day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-16); }
.evh-row { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: var(--sp-12); align-items: baseline; }
.evh-time { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.evh-main a { font-weight: 600; color: var(--ink); text-decoration: none; }
.evh-main a:hover { text-decoration: underline; }
.evh-where { display: block; color: var(--ink-3); font-size: .9rem; margin-top: 2px; }
.evh-add { margin: var(--sp-48) 0 0; font-weight: 600; }
.evh-add a { color: var(--tile-deep); }
.evh-flag { font-size: .82rem; font-weight: 700; color: var(--tile-deep); }
/* Hub rows are This Weekend's list rows (.ev, weekend.css) with its small photo; these are the hub-only touches */
.evh-day ul.evlist { display: block; }
.evh-ev .ev-title a { color: inherit; text-decoration: none; }
.evh-ev .ev-title a:hover { text-decoration: underline; }
/* an open day shows its first rows still to come (events.js marks the rest .evh-over: past ten on phones, twenty on wide screens) until asked */
.evh-cap:not(.all) > .evh-over { display: none; }
.evh-day > .ev-all { display: block; width: 100%; min-height: 46px; margin: -10px 0 var(--sp-24); border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: none; color: var(--ink); font: 600 .9rem/1 var(--sans); cursor: pointer; }
.evh-day > .ev-all:hover { background: #fffaf2; }
.evh-day > .evlist.all + .ev-all, .evh-day > .ev-all[hidden] { display: none; }
/* the end of the 7-day list (event.mjs HUB_SPLIT_DAYS): a link to the later days that events.js loads in place */
.evh-more { margin: var(--sp-12) 0 var(--sp-24); }
.evh-more[hidden] { display: none; }
.evh-more a { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 var(--sp-12); border: 1.5px solid var(--line); border-radius: var(--r-ctl); color: var(--ink); font: 600 .9rem/1.2 var(--sans); text-align: center; text-decoration: none; }
.evh-more a:hover { background: #fffaf2; }
/* Shortcuts under the hub's title (event.mjs hubGuide): days, then categories. Plain links that set the filters. */
.evh-jump { margin-top: var(--sp-16); display: grid; gap: var(--sp-4); }
.evh-jl { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sp-16); margin: 0; font: 600 .9rem/1.2 var(--sans); }
.evh-jk { flex: none; width: 3.6em; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.evh-jl a { display: inline-flex; align-items: center; min-height: 32px; color: var(--tile-deep); text-decoration: none; white-space: nowrap; }
.evh-jl a:hover { text-decoration: underline; }
@media (max-width: 680px) { .evh-jl { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .evh-jl::-webkit-scrollbar { display: none; } }
/* Questions under the calendar, answered from its counts */
.evh-faq { margin-top: var(--sp-48); }
.evh-fh { font-size: var(--h2-sec); margin: 0 0 var(--sp-16); }
.evh-q { border-top: 1px solid var(--line); padding: var(--sp-16) 0; }
.evh-q:last-of-type { border-bottom: 1px solid var(--line); }
.evh-q summary { cursor: pointer; font: 600 1rem/1.4 var(--sans); color: var(--ink); }
.evh-q p { margin: var(--sp-8) 0 0; color: var(--ink-2); max-width: 68ch; }
.evh-q a { color: var(--tile-deep); }
/* Biggest this month: photo cards from the month page's ranking. Prefix evb-. A swipe strip on phones, one row on desktop. */
.evb { padding: var(--sp-4) 0 var(--sp-24); }
.evb-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-12); margin: 0 0 var(--sp-12); }
.evb-h { margin: 0; font: 400 1.5rem/1.15 var(--serif); color: var(--ink); }
.evb-all { flex: none; font: 600 .9rem var(--sans); color: var(--tile-deep); text-underline-offset: 3px; }
.evb-strip { position: relative; list-style: none; margin: 0 -20px; padding: 2px var(--sp-20) var(--sp-8); display: flex; gap: var(--sp-12); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; scrollbar-width: none; }
.evb-strip::-webkit-scrollbar { display: none; }
.evb-card { flex: 0 0 62%; max-width: 250px; scroll-snap-align: start; }
.evb-card a { display: flex; flex-direction: column; gap: var(--sp-4); color: var(--ink); text-decoration: none; }
.evb-ph { display: block; aspect-ratio: 4 / 3; margin-bottom: var(--sp-8); border-radius: var(--radius); overflow: hidden; background: #e9e1d2; }
.evb-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.evb-card a:hover .evb-ph img { transform: scale(1.04); }
.evb-when { font: 600 .82rem/1.2 var(--sans); color: var(--tile-deep); }
.evb-t { font: 600 1rem/1.3 var(--sans); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.evb-card a:hover .evb-t { text-decoration: underline; text-underline-offset: 3px; }
.evb-where { font-size: .82rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) {
  .evb-strip { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-16); overflow: visible; }
  .evb-card { max-width: none; }
  .evb-card:nth-child(n+6) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .evb-ph img { transition: none; } }
@media (max-width: 900px) { .evh-row { grid-template-columns: 4.4em minmax(0, 1fr); gap: var(--sp-8); } .evh-time { font-size: .9rem; } }
#ev-dates-h { margin-top: clamp(24px, 4vw, 36px); }
/* /events/ filters (events.js): days outside the chosen range dim, days with no matches stop looking clickable */
.evh-bar { margin-bottom: var(--sp-4); }
/* Meet me there (pages/event.mjs meetBtn, js/meet.js): the copy button, then what was copied */
.ev1-meet { display: contents; }
.ev1-acts .meet-btn { min-height: 44px; }
.ev1-acts .meet-btn svg { margin: 0; width: 16px; height: 16px; vertical-align: 0; }
.meet-msg:empty, .meet-msg[hidden] { display: none; }
.meet-msg { flex-basis: 100%; display: grid; gap: var(--sp-4); padding: var(--sp-12) var(--sp-16); border-radius: var(--radius); background: color-mix(in srgb, var(--sea) 8%, transparent); font-size: .9rem; line-height: 1.45; color: var(--ink-2); }
.meet-k { font: 600 .75rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.meet-msg q { quotes: none; color: var(--ink); overflow-wrap: anywhere; }
