/* "What's on tonight" (src/events-now.mjs, js/ev-now.js) on /events/, /events/today/, /events/tomorrow/ and
   /this-week/. Prefix evn-. Every rule names an evn- class (css-split.mjs). */
.evn-hero .crumbs { margin-bottom: var(--sp-8); }
.evn-hero h1, .ev1-hero.evn-hero h1 { max-width: 30ch; }
.evn { padding: var(--sp-8) 0 var(--sp-24); display: grid; gap: var(--sp-12); }
.evn-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-4) var(--sp-16); }
.evn-h { margin: 0; font: 400 var(--h2-sec)/1.1 var(--serif); color: var(--ink); }
.evn-checked { margin: 0; font-size: .82rem; color: var(--ink-3); }

/* Day chips: the word big, the date small. A link to the day's full list without scripts. */
.evn-days { display: flex; gap: var(--sp-8); overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px var(--sp-20); }
.evn-days::-webkit-scrollbar { display: none; }
.evn-day { flex: none; display: grid; gap: var(--sp-4); min-width: 104px; min-height: 44px; padding: var(--sp-8) var(--sp-16); border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: #fffaf2; color: var(--ink); text-decoration: none; transition: background .2s, border-color .2s; }
.evn-day b { font: 600 1rem/1.1 var(--sans); }
.evn-day small { font: 500 .75rem/1.1 var(--sans); color: var(--ink-3); }
.evn-day:hover { border-color: var(--ink-3); }
.evn-day[aria-pressed="true"], .evn-day[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.evn-day[aria-pressed="true"] small, .evn-day[aria-current="true"] small { color: rgba(250, 244, 234, .75); }

.evn-kinds { display: flex; gap: var(--sp-8); overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px var(--sp-20); }
.evn-kinds::-webkit-scrollbar { display: none; }
.evn-kinds .evn-k { min-height: 40px; }

.evn-sky { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-8) var(--sp-12); margin: 0 0 var(--sp-12); font: 600 .9rem/1.2 var(--sans); color: var(--ink-2); }
.evn-sky a { color: inherit; text-underline-offset: 3px; }
.evn-rain { padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: #e3ecf3; color: #24506a; font-size: .82rem; }

/* The cards: two across on phones, three from tablets up */
.evn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-16) var(--sp-12); }
.evn-card { position: relative; display: grid; align-content: start; gap: var(--sp-8); min-width: 0; }
.evn-card.evn-x { display: none; }
.evn-ph { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.evn-ph .evn-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.evn-card:hover .evn-ph .evn-img { transform: scale(1.04); }
.evn-time { position: absolute; left: var(--sp-8); bottom: var(--sp-8); padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: rgba(24, 34, 46, .82); color: #fff; font: 600 .82rem/1.2 var(--sans); }
.evn-body { display: grid; align-content: start; gap: var(--sp-4); min-width: 0; }
.evn-kind { font: 600 .68rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tile-deep); }
.evn-t { font: 600 1rem/1.3 var(--sans); color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.evn-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.evn-where { font-size: .82rem; line-height: 1.35; color: var(--ink-3); }
.evn-tags { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.evn-tags .badge { padding: var(--sp-4) var(--sp-8); }
.evn-pick { display: inline-flex; align-items: center; padding: var(--sp-4) var(--sp-8); border-radius: var(--r-tag); background: var(--sun); color: var(--ink); font: 600 .75rem/1 var(--sans); }
.evn-cal summary { display: inline-flex; align-items: center; min-height: 32px; font: 600 .82rem/1 var(--sans); color: var(--tile-deep); cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.evn-cal summary::-webkit-details-marker { display: none; }
.evn-cal .add-cal { margin-top: var(--sp-4); color: var(--ink); }
.evn-cal .add-cal a { min-height: 36px; }
.evn-none { margin: 0; font-size: .9rem; color: var(--ink-2); }
.evn-reset { font: 600 .9rem var(--sans); color: var(--tile-deep); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.evn-more { margin: var(--sp-16) 0 0; }
.evn-more a { font: 600 .9rem var(--sans); color: var(--tile-deep); text-underline-offset: 3px; }
.evn-after { display: grid; gap: var(--sp-8); padding-bottom: var(--sp-24); }
.evn-after .evh-jump { margin-top: 0; }
.evn-big { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
.evn-big a { color: var(--ink); text-underline-offset: 3px; }

@media (min-width: 720px) {
  .evn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-24) var(--sp-16); }
  .evn-t { font-size: 1.12rem; }
  .evn-days, .evn-kinds { margin: 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .evn-ph .evn-img, .evn-day { transition: none; } }
.evn-card > .pcred { position: absolute; top: var(--sp-8); right: var(--sp-8); bottom: auto; z-index: 3; }
/* the credit opens inside its own card: a 150 px phone column can't hold photos.css's 280 px box without it running
   off the left edge, so the card is a size container and the box is never wider than the card */
.evn-card { container-type: inline-size; }
.evn-card > .pcred .pcred-t { top: 34px; bottom: auto; max-width: 210px; max-width: min(210px, calc(100cqw - 2 * var(--sp-8))); }
.evn-day[hidden], .evn[hidden] { display: none; }
