/* The month calendar on /events/ and /month/ (event-calendar.mjs). Prefix evc-; the Everything | Big ones switch is evv-. */
.evc-wrap { padding-top: 2px; }
.evv { display: inline-flex; gap: var(--sp-4); margin: 0 0 var(--sp-16); padding: var(--sp-4); border-radius: 999px; background: #efe6d6; }
.evv-b { display: inline-flex; align-items: baseline; gap: var(--sp-8); min-height: 40px; padding: .7em 1.15em; border-radius: 999px; font: 600 .9rem/1 var(--sans); color: var(--ink-2); text-decoration: none; }
.evv-b:hover { color: var(--ink); }
.evv-b.on { background: var(--ink); color: var(--paper); }
.evv-n { font-weight: 500; font-size: .82rem; opacity: .75; font-variant-numeric: tabular-nums; }

.evc { margin: 0 0 var(--sp-m, 20px); }
.evc-dow, .evc-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-4); }
.evc-dow span { padding: 0 0 var(--sp-8); font: 600 .75rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
/* a week's own bars sit tight under it; the next week starts clearly lower, so a bar never reads as the next week's */
.evc-wk { row-gap: var(--sp-4); margin-bottom: var(--sp-12); }
.evc-d { position: relative; grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); min-height: 58px; padding: var(--sp-8) 2px; border-radius: var(--radius-sm); background: #fffaf2; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.evc-we { background: #fbe9cf; }
.evc-out { background: none; box-shadow: none; }
a.evc-d:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--tile); }
a.evc-d:focus-visible { outline: 2.5px solid var(--tile); outline-offset: 2px; }
.evc-top { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); }
.evc-num { font: 400 1.12rem/1 var(--serif); white-space: nowrap; text-align: center; }
.evc-mon { display: block; margin-bottom: var(--sp-4); font: 600 .75rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.evc-c { font: 700 .75rem/1 var(--sans); color: var(--tile-deep); font-variant-numeric: tabular-nums; }
.evc-0 .evc-c { color: var(--ink-3); font-weight: 500; }
.evc-today { box-shadow: inset 0 0 0 2px var(--ink); }
.evc-rain { display: inline-flex; align-items: center; gap: var(--sp-4); font: 600 .75rem/1 var(--sans); color: var(--sea); }
.evc-rain-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evc-t { display: none; }
/* a big day carries the event's photo, the day and count in white over it */
.evc-ph { position: absolute; inset: 0; }
.evc-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.evc-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 12, .8), rgba(20, 16, 12, .62) 50%, rgba(20, 16, 12, .88)); } /* dark enough for white text on a bright photo (Neon review 2026-11-21) */
.evc-d:has(.evc-ph) { color: #fff; box-shadow: none; }
.evc-d:has(.evc-ph) > :not(.evc-ph) { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.evc-d:has(.evc-ph) :is(.evc-c, .evc-rain) { color: #fff; }
.evc-d.evc-today:has(.evc-ph) { box-shadow: 0 0 0 2px var(--ink); }
/* a big day without a photo of its own still stands out */
.evc-big:not(:has(.evc-ph)) { background: #fffaf2; box-shadow: inset 0 0 0 2px var(--sun); }
.evc-big:not(:has(.evc-ph)) .evc-num::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: var(--sp-4); border-radius: 50%; background: var(--sun); vertical-align: middle; }
/* the picked day (events.js), and days outside a picked range */
.evc-on, .evc-d.evc-on:has(.evc-ph) { box-shadow: 0 0 0 3px var(--ink); }
.evc-on:not(:has(.evc-ph)) { background: var(--ink); color: var(--paper); }
.evc-on:not(:has(.evc-ph)) :is(.evc-c, .evc-rain) { color: inherit; }
.evc-off { opacity: .4; }
a.evc-d[aria-disabled="true"] { pointer-events: none; }
/* a run of days is a bar under its week */
.evc-bar { display: block; min-width: 0; height: 8px; padding: 0 var(--sp-8); border-radius: 999px; background: color-mix(in srgb, var(--sea) 45%, #fffaf2); color: var(--sea); font: 600 .75rem/20px var(--sans); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.evc-bar:hover { background: color-mix(in srgb, var(--sea) 26%, #fffaf2); }
/* on a phone a run is a thin band, its name kept for screen readers; the name shows from 900px */
/* phones show the run's name too (2026-11-23 review: bare 8px bars under every week read as stray lines) */
.evc-bar { height: 18px; background: color-mix(in srgb, var(--sea) 16%, #fffaf2); font-size: .68rem; line-height: 18px; }
.evc-bar-t { position: static; width: auto; height: auto; clip: auto; }
.evc-bar-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.evc-bar-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }

@media (min-width: 900px) {
  .evc-dow, .evc-wk { gap: var(--sp-8); }
  .evc-wk { row-gap: var(--sp-4); margin-bottom: var(--sp-16); }
  .evc-dow span { text-align: left; padding-left: var(--sp-12); }
  .evc-d { align-items: stretch; justify-content: flex-start; min-height: 98px; padding: var(--sp-8) var(--sp-12); border-radius: var(--radius); }
  .evc-top { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .evc-num { font-size: 1.5rem; text-align: left; }
  .evc-c { font-size: .82rem; }
  .evc-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: auto; font: 600 .9rem/1.25 var(--sans); }
  .evc-more { font-weight: 500; opacity: .85; }
  .evc-mon { display: inline; margin: 0; }
  .evc-rain { font-size: .82rem; }
  .evc-rain-t { position: static; width: auto; height: auto; clip: auto; }
  /* rain sits in the flow under the date, so a two-line title never runs over it */
  .evc-d.evc-big > .evc-rain { margin-top: calc(-1 * var(--sp-4)); }
  .evc-plain .evc-d { min-height: 88px; }
  .evc-bar { height: 24px; padding: 0 var(--sp-12); background: color-mix(in srgb, var(--sea) 16%, #fffaf2); font-size: .82rem; line-height: 24px; }
  .evc-bar-t { position: static; width: auto; height: auto; clip: auto; }
  /* the calendar carries the big ones' photos on a wide screen, so the photo strip is the phone's */
  .evc-wrap + .evb { display: none; }
}
@media (prefers-reduced-motion: reduce) { .evc-d { transition: none; } }

/* /month/: a photo beside each big event (month.mjs). Prefix ma-. */
.ma-card { scroll-margin-top: 110px; }
.ma-ph { flex: 0 0 104px; align-self: flex-start; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: #e9e1d2; }
.ma-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .ma-ph { flex-basis: 168px; aspect-ratio: 4 / 3; } }
/* /month/ "Further out" (2026-11-17): the biggest few of each later month, two by two on wide screens */
.ma-further { margin-top: var(--sp-64); padding-top: var(--sp-48); border-top: 1px solid var(--line); }
.ma-further > .lede { margin-bottom: var(--sp-32); }
@media (min-width: 900px) { .ma-further .ff-five > :first-child { grid-column: auto; } }
/* /festivals/ (festivals.mjs, 2026-11-18): the month cards above, plus a row of month links */
.fe-jump { display: flex; flex-wrap: wrap; gap: var(--sp-8); margin-bottom: var(--sp-32); }
.fe-jump a { padding: var(--sp-8) var(--sp-12); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; text-decoration: none; color: inherit; }
.fe-jump a:hover { border-color: currentColor; }
.fe-sec .ma-week { scroll-margin-top: 110px; }
@media (min-width: 900px) { .fe-sec .ff-five > :first-child { grid-column: auto; } }
