/* ========================================
   EVENTS PAGE (/events/) — featured hero, gallery, spotlight, filters
   and calendar. Loaded after /style.css and /css/events-common.css.
   ======================================== */

.btn--cli {
  font-family: var(--font-mono);
  background: var(--teal);
  color: var(--bg-0);
  font-size: 0.8125rem;
  font-weight: 700;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  letter-spacing: 0.01em;
}

.btn--cli svg {
  width: 15px;
  height: 15px;
}

/* Events hero — full width banner */
.ev-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.ev-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ev-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.3) brightness(0.45);
  -webkit-mask-image: radial-gradient(circle 1.2px, black 100%, transparent 100%);
  mask-image: radial-gradient(circle 1.2px, black 100%, transparent 100%);
  -webkit-mask-size: 3px 3px;
  mask-size: 3px 3px;
}

.ev-hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--teal);
  mix-blend-mode: color;
  opacity: 0.25;
}

.ev-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, var(--bg-0) 0%, var(--bg-0) 8%, rgba(19,20,20,0.85) 30%, transparent 65%);
}

.ev-hero__content {
  position: relative;
  z-index: 3;
  padding: 2.5rem var(--frame-pad);
}

.ev-hero__ascii {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 3.5px;
  line-height: 1.05;
  color: var(--teal);
  opacity: 0.12;
  white-space: pre;
  pointer-events: none;
}

/* Status row */
.ev-hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.ev-hero__status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 0.3rem 0.75rem;
  border-radius: 5px;
  border: 1px solid var(--teal-line);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ev-hero__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: ev-pulse 2s ease-in-out infinite;
}

@keyframes ev-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ev-hero__hash {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  opacity: 0.5;
}

/* Event name */
.ev-hero__name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.ev-hero__name span {
  color: var(--teal);
  display: block;
}

/* Countdown */
.ev-hero__countdown {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ev-hero__countdown-label {
  font-size: 0.625rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 0.35rem;
}

.ev-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--teal);
  border-radius: 1px;
  animation: ev-blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes ev-blink {
  50% { opacity: 0; }
}

/* Reduced motion: the status dot and the cursor rest, fully drawn */
@media (prefers-reduced-motion: reduce) {
  .ev-hero__status::before,
  .ev-cursor { animation: none; }
}

.ev-hero__tagline {
  color: var(--ink-dim);
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 440px;
  margin-bottom: 1.75rem;
}

/* Detail grid */
.ev-hero__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  margin-bottom: 2rem;
  max-width: 460px;
  background: var(--bg-1);
}

.ev-hero__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
}

.ev-hero__detail + .ev-hero__detail {
  border-left: 1px solid var(--line);
}

.ev-hero__detail--loc {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.ev-hero__detail--loc:hover {
  background: var(--bg-2);
}

.ev-hero__detail-icon {
  color: var(--teal);
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.ev-hero__detail-text {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}

.ev-hero__detail-text small {
  display: block;
  color: var(--ink-dim);
  font-weight: 400;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

/* Featured event RSVP. min-height reserves the logged-out state (button +
   count line, 76px) so the bottom-aligned hero text doesn't jump up when
   the RSVP renders after the hero. */
.ev-hero__rsvp {
  margin-top: 1.5rem;
  min-height: 4.75rem;
}

.ev-rsvp__confirmed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ev-rsvp__status {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
}

.ev-rsvp__cancel {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.15s ease;
  align-self: flex-start;
}

.ev-rsvp__cancel:hover {
  color: var(--ink-dim);
}

/* "Change on the event page", under a ticket answer (looks like Cancel) */
.ev-rsvp__manage {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-decoration: underline;
  transition: color 0.15s ease;
  align-self: flex-start;
}

.ev-rsvp__manage:hover {
  color: var(--ink-dim);
}

/* Button row for side-by-side Interested + Apply */
.ev-rsvp__btn-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* A guest's secondary "Log in", beside the sign-up button */
.ev-rsvp__login {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--teal-line);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.ev-rsvp__login:hover {
  color: var(--ink);
  text-decoration-color: var(--ink-faint);
}

/* No drop animation when shown alongside Interested in the btn row */
.ev-rsvp__btn-row .rsvp-apply {
  animation: none;
}

/* RSVP button animation states */
.ev-rsvp__btn--loading {
  opacity: 0.85;
  cursor: wait;
}

.ev-rsvp__error {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #FF6B6B;
  margin-top: 0.5rem;
}

/* ================================================================
   EVENT GALLERY — CARD GRID + CALENDAR
   ================================================================ */
.ev-gallery {
  padding: 4rem 0 6rem;
}

.ev-gallery__head {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

/* View containers */
.ev-gallery__view {
  transition: opacity 200ms ease;
}

.ev-gallery__view--hidden {
  display: none !important;
  opacity: 0;
}

.ev-gallery__more {
  display: block;
  margin: 1.5rem auto 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

.ev-gallery__more:hover {
  border-color: var(--teal-line);
  color: var(--teal);
}

.ev-gallery__more:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.ev-gallery__empty {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 3rem 1rem;
}

/* ---- Card grid ---- */
.ev-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Past card with projects: a <div> card with a stretched name link and the
   "N projects" link above it */
.ev-gallery__open {
  text-decoration: none;
}

.ev-gallery__open:focus-visible {
  outline: none;
}

.ev-gallery__card--split:has(.ev-gallery__open:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.ev-gallery__projects {
  align-self: flex-start;
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--teal);
  text-decoration: none;
}

.ev-gallery__projects:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ev-gallery__projects:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Gallery responsive ---- */
@media (max-width: 860px) {
  .ev-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ev-gallery__grid {
    grid-template-columns: 1fr;
  }

}

/* ================================================================
   SPOTLIGHT — horizontal scroll rail
   ================================================================ */
.ev-spotlight {
  padding: 3rem 1.5rem 1rem;
}

.ev-spotlight__head {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin-bottom: 1rem;
}

.ev-spotlight__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.ev-spotlight__rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.ev-spotlight__rail::-webkit-scrollbar { height: 4px; }
.ev-spotlight__rail::-webkit-scrollbar-track { background: transparent; }
.ev-spotlight__rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.ev-spotlight__rail .ev-gallery__card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

/* Centre the cards; auto margins collapse to 0 once the rail overflows,
   so a long rail still scrolls from its first card. */
.ev-spotlight__rail > :first-child { margin-left: auto; }
.ev-spotlight__rail > :last-child { margin-right: auto; }

@media (max-width: 600px) {
  .ev-spotlight__rail .ev-gallery__card {
    flex: 0 0 260px;
  }
}

/* ================================================================
   EVENT CONTROLS — VIEW TOGGLE + FILTERS
   ================================================================ */
.ev-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Sort dropdown */
.ev-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ev-sort-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.ev-sort {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: border-color 150ms;
}

.ev-sort:focus { border-color: var(--teal-line); outline: none; }

.ev-controls__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ev-view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.ev-view-toggle__btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 1rem;
  border: none;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.ev-view-toggle__btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.ev-view-toggle__btn--active {
  background: var(--bg-2);
  color: var(--teal);
}

.ev-view-toggle__btn:not(.ev-view-toggle__btn--active):hover {
  color: var(--ink-dim);
}

/* Filter row */
.ev-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.ev-filters__group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  align-items: center;
}

.ev-filters__group-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-right: 0.25rem;
}

.ev-filters__sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 0.5rem;
}

/* Loading state — sections invisible but space-reserving to prevent layout shift */
.ev-hero--pending {
  visibility: hidden;
}

.ev-about--pending {
  display: none;
}

/* Everything below the hero stays hidden until the grid renders: the about
   section and spotlight appear above it at that point, and moving a
   visible box (even an empty one) counts as layout shift. That includes the
   .ev-body backdrop and the footer: with no featured event the reserved
   hero collapses once the events load, which would move them up. */
.ev-main--loading .ev-body,
.ev-main--loading ~ .footer { visibility: hidden; }

/* If js/events-page.js never runs, the footer's legal links still appear. */
.ev-main--loading ~ .footer { animation: ev-reveal 0s 8s forwards; }

@keyframes ev-reveal { to { visibility: visible; } }

.ev-main--loading .ev-gallery,
.ev-main--loading .ev-spotlight { opacity: 0; }
.ev-main--loaded .ev-gallery,
.ev-main--loaded .ev-spotlight { opacity: 1; transition: opacity 300ms ease; }

/* Search */
.ev-search-wrap { width: 100%; margin-bottom: 0.5rem; text-align: center; }
.ev-search {
  width: 100%;
  max-width: 320px;
  padding: 0.45em 0.75em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 150ms;
}
.ev-search:focus { border-color: var(--teal-line); outline: none; }
.ev-search::placeholder { color: var(--ink-faint); }

/* Calendar agenda (mobile) */
.ev-cal__days--agenda {
  display: flex !important;
  flex-direction: column;
  gap: 0;
}
.ev-cal__agenda-day {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.ev-cal__agenda-date {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-dim);
  margin-bottom: 0.25rem;
}
.ev-cal__agenda-event {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  padding: 0.2rem 0 0.2rem 0.75rem;
  border-left: 2px solid var(--teal-line);
  transition: color 150ms;
}
.ev-cal__agenda-event:hover { color: var(--ink); }

.ev-filter-pill {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.ev-filter-pill:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.ev-filter-pill:not(.ev-filter-pill--active):hover {
  color: var(--ink-dim);
  border-color: var(--ink-faint);
}

.ev-filter-pill--active {
  border-color: var(--teal);
  background: var(--teal-dim);
  color: var(--teal);
}

.ev-filter-pill--pinned {
  border-color: var(--teal-line);
  color: var(--teal);
  opacity: 0.75;
}

.ev-filter-pill--pinned.ev-filter-pill--active {
  opacity: 1;
  background: var(--teal-dim);
  border-color: var(--teal);
}

.ev-filter-select {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-2);
  color: var(--ink-dim);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23818987' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.6rem;
  transition: border-color 200ms ease, color 200ms ease;
}

.ev-filter-select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.ev-filter-select:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}

.ev-filter-select option {
  background: var(--bg-2);
  color: var(--ink);
}

/* ── More filters toggle ── */
.ev-filters__more-btn {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
  margin-left: 0.25rem;
}

.ev-filters__more-btn:hover,
.ev-filters__more-btn.is-open {
  color: var(--ink-dim);
  border-color: var(--ink-faint);
}

.ev-filters__tier2 {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  padding-top: 0.5rem;
}

.ev-filters__tier2.is-open {
  display: flex;
}

/* Reserved row while attendees load (sized by an empty circle) */
.ev-attendees--pending {
  visibility: hidden;
}

/* ================================================================
   CALENDAR VIEW
   ================================================================ */

.ev-cal {
  width: 100%;
}

.ev-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.ev-cal__title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.ev-cal__nav {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
}

.ev-cal__nav:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
}

.ev-cal__nav:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.ev-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 1px;
}

.ev-cal__weekday {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-align: center;
  padding: 0.5rem 0;
}

.ev-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.ev-cal__day {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  min-height: 64px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.ev-cal__day--outside {
  opacity: 0.3;
}

.ev-cal__day--today {
  border-color: var(--ink-faint);
}

.ev-cal__day--has-event {
  border-color: var(--teal-line);
  cursor: pointer;
}

.ev-cal__day--has-event:hover {
  background: var(--bg-2);
  border-color: var(--teal-line);
}

.ev-cal__day-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-dim);
  line-height: 1;
}

.ev-cal__day--today .ev-cal__day-num {
  color: var(--ink);
}

.ev-cal__day--has-event .ev-cal__day-num {
  color: var(--teal);
}

.ev-cal__event-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.ev-cal__event-name {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  opacity: 0.7;
  transition: opacity 160ms ease;
}

.ev-cal__day:hover .ev-cal__event-name {
  opacity: 1;
}

.ev-cal__tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-2);
  border: 1px solid var(--teal-line);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.ev-cal__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--teal-line);
}

.ev-cal__day--has-event:hover .ev-cal__tooltip {
  display: block;
}

.ev-cal__empty {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 2rem 1rem;
}

/* ================================================================
   CALENDAR + CONTROLS — RESPONSIVE
   ================================================================ */
@media (max-width: 860px) {
  .ev-cal__day {
    min-height: 52px;
    padding: 0.3rem;
  }

  .ev-cal__day-num {
    font-size: 0.625rem;
  }

  .ev-cal__event-dot {
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 600px) {
  .ev-cal__day {
    min-height: 36px;
    padding: 0.2rem;
  }

  .ev-cal__day-num {
    font-size: 0.5625rem;
  }

  .ev-cal__event-dot {
    width: 4px;
    height: 4px;
  }

  .ev-cal__event-name {
    display: none;
  }

  .ev-filters {
    gap: 0.35rem;
  }

  .ev-filter-pill {
    font-size: 0.5625rem;
    padding: 0.25rem 0.55rem;
  }
}

/* Content after the hero */
.ev-body {
  background: var(--bg-0);
}

.ev-about {
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 4rem var(--frame-gutter) 0;
}

.ev-about__inner {
  max-width: 680px;
}

.ev-about__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 1rem;
}

.ev-about__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.ev-about__body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.ev-about__body p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-dim);
}

.ev-about__body p:first-child {
  color: var(--ink);
}

/* Events page — mobile */
@media (max-width: 767px) {
  .ev-hero {
    min-height: 70vh;
  }

  .ev-hero__content {
    padding: 2rem 5vw;
  }

  .ev-hero__name {
    font-size: clamp(1.75rem, 9vw, 3.5rem);
    word-break: break-word;
  }

  .ev-hero__details {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .ev-hero__detail + .ev-hero__detail {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .ev-hero__tagline {
    max-width: 100%;
  }

  .ev-hero__ascii {
    display: none;
  }
}
