/* ==========================================================================
   GiveLife — events, galleries, calendar and lightbox
   Extends assets/css/style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Event grid & cards
   -------------------------------------------------------------------------- */
.ev-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
  .ev-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ev-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.ev-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
}

/* The display rules above would otherwise beat the `hidden` attribute. */
.ev-grid[hidden],
.ev-card[hidden],
.ev-empty[hidden] { display: none; }

.ev-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--sand);
  overflow: hidden;
}

.ev-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ev-card:hover .ev-card__media img { transform: scale(1.03); }

.ev-card__status {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(250, 245, 236, 0.94);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ev-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.35rem 1.5rem;
  flex: 1;
}

.ev-card__kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.ev-card__title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.ev-card__title a:hover { color: var(--brand-dark); }

.ev-card__summary {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.ev-card__facts {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
}

.ev-card__facts div {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.ev-card__facts dt {
  flex: none;
  width: 3.1rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ev-card__facts dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.ev-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

.ev-card__count {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.filters__empty {
  padding: 2rem 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Event detail hero
   -------------------------------------------------------------------------- */
.ev-hero {
  padding-block: 2.75rem 2.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.ev-hero__inner {
  display: grid;
  gap: 2rem;
}

.ev-crumbs {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.ev-crumbs a:hover { color: var(--brand); }
.ev-crumbs span { color: var(--line); }

.ev-hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.028em;
  max-width: 20ch;
}

.ev-hero__sub {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  font-style: italic;
}

.ev-hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.ev-hero__count {
  font-size: 0.76rem;
  color: var(--muted);
}

.ev-hero__media {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 4 / 3;
}

.ev-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev-hero__media--poster {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ev-hero__media--poster img {
  object-fit: contain;
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

@media (min-width: 900px) {
  .ev-hero { padding-block: 3.5rem; }
  .ev-hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
  .ev-hero__media { aspect-ratio: 4 / 3.6; }
}

/* --------------------------------------------------------------------------
   Facts strip
   -------------------------------------------------------------------------- */
.ev-facts {
  background: var(--ink);
  color: var(--paper);
  padding-block: 1.75rem;
}

.ev-facts__grid {
  display: grid;
  gap: 1.4rem;
}

.ev-facts__item {
  display: grid;
  gap: 0.3rem;
  border-top: 1px solid var(--line-light);
  padding-top: 0.85rem;
}

.ev-facts__label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.ev-facts__value {
  font-family: var(--font-display);
  font-size: 1.06rem;
  line-height: 1.35;
  color: var(--paper);
}

.ev-facts__value small {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: rgba(250, 245, 236, 0.55);
}

@media (min-width: 640px) {
  .ev-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .ev-facts { padding-block: 2rem; }
  .ev-facts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

/* --------------------------------------------------------------------------
   Event stats
   -------------------------------------------------------------------------- */
.ev-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}

.ev-stat {
  border-top: 1px solid var(--line-light);
  padding-top: 1rem;
}

.ev-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.ev-stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.6);
  max-width: 24ch;
}

@media (min-width: 640px) {
  .ev-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .ev-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

/* --------------------------------------------------------------------------
   Event body layout
   -------------------------------------------------------------------------- */
.ev-body {
  display: grid;
  gap: 2.75rem;
}

.ev-body .prose ul {
  list-style: disc;
}

@media (min-width: 960px) {
  .ev-body { grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr); gap: 4.5rem; align-items: start; }
}

.ev-aside {
  display: grid;
  gap: 2rem;
}

.ev-aside__card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 1.65rem 1.5rem;
}

.ev-aside__label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.8rem;
}

.ev-aside__title {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.ev-aside__text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.ev-aside__card .btn { margin-top: 0.4rem; }

.ev-aside__block {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
}

.partner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.partner-list li {
  padding-left: 0.9rem;
  position: relative;
}

.partner-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.chips {
  list-style: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 !important;
  margin: 0.75rem 0 0 !important;
}

.chip {
  font-size: 0.76rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery__button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--sand);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}

.gallery__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity var(--dur) var(--ease);
}

.gallery__button:hover img { transform: scale(1.025); opacity: 0.92; }

.gallery__item figcaption {
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--muted);
}

.gallery__item--lead {
  grid-column: 1 / -1;
}

.gallery__item--lead .gallery__button { aspect-ratio: 16 / 9; }

@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
  .gallery__item--lead { grid-column: span 2; }
  .gallery__item--lead .gallery__button { aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(12, 18, 17, 0.94);
  color: var(--paper);
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-height: 100%;
}

.lightbox__figure img {
  max-width: min(1100px, 88vw);
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: #0b1110;
}

.lightbox__figure figcaption {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(250, 245, 236, 0.75);
  text-align: center;
  max-width: 60ch;
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: rgba(250, 245, 236, 0.06);
  color: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}

.lightbox__nav:hover,
.lightbox__close:hover { background: rgba(250, 245, 236, 0.16); }

.lightbox__count {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.55);
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 0.75rem; }
  .lightbox__nav {
    position: absolute;
    bottom: 2.6rem;
    z-index: 2;
  }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__figure img { max-height: 68vh; }
}

/* --------------------------------------------------------------------------
   Home calendar (on the ink section)
   -------------------------------------------------------------------------- */
.calendar {
  display: grid;
  gap: 2.25rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-light);
}

.calendar__col { display: grid; gap: 0; align-content: start; }

.calendar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.calendar__head h3 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.calendar__head .link-arrow {
  font-size: 0.76rem;
  color: rgba(250, 245, 236, 0.72);
}

.calendar__empty {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(250, 245, 236, 0.62);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
}

.cal-row {
  display: grid;
  grid-template-columns: 3.6rem 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-light);
  transition: opacity var(--dur) var(--ease);
}

.cal-row:hover { opacity: 0.7; }

.cal-row__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line-light);
  padding-right: 0.65rem;
}

.cal-row__day {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--paper);
}

.cal-row__month {
  margin-top: 0.25rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.5);
}

.cal-row__body { display: grid; gap: 0.25rem; }

.cal-row__tag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.cal-row__title {
  font-family: var(--font-display);
  font-size: 1.09rem;
  line-height: 1.3;
  color: var(--paper);
}

.cal-row__meta {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(250, 245, 236, 0.55);
}

.cal-row__go {
  color: rgba(250, 245, 236, 0.4);
  font-size: 1.1rem;
  padding-top: 0.3rem;
}

@media (min-width: 900px) {
  .calendar { grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-top: 3.25rem; }
}

/* --------------------------------------------------------------------------
   Home archive mosaic
   -------------------------------------------------------------------------- */
.archive-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.archive-mosaic__item {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--sand);
}

.archive-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity var(--dur) var(--ease);
}

.archive-mosaic__item:hover img { transform: scale(1.05); opacity: 0.9; }

.archive-copy {
  margin-top: 1.35rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 42ch;
}

/* --------------------------------------------------------------------------
   Home hero banner
   -------------------------------------------------------------------------- */
.home-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 78vh, 45rem);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.home-banner__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.home-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0.55;
}

.home-banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 17, 16, 0.94) 6%, rgba(11, 17, 16, 0.45) 55%, rgba(11, 17, 16, 0.72) 100%);
}

.home-banner__inner {
  position: relative;
  width: 100%;
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.home-banner .eyebrow { color: var(--gold); }
.home-banner .eyebrow::before { background: var(--gold); }

.home-banner__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.6vw, 5.4rem);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin-bottom: 1.2rem;
}

.home-banner__title em {
  font-style: italic;
  color: var(--gold);
}

.home-banner__lede {
  max-width: 46ch;
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  line-height: 1.6;
  color: rgba(250, 245, 236, 0.78);
  margin-bottom: 1.8rem;
}

.home-banner__rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(250, 245, 236, 0.22);
}

@media (min-width: 780px) {
  .home-banner__rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.home-banner__rail dt {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--paper);
}

.home-banner__rail dd {
  margin-top: 0.15rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 245, 236, 0.55);
}

/* --------------------------------------------------------------------------
   Upcoming event feature (home)
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.feature__media {
  display: block;
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 16 / 10;
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.feature__media:hover img { transform: scale(1.03); }

.feature__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);
}

.feature__tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.1;
}

.feature__title a { color: var(--ink); }
.feature__meta { font-size: 0.85rem; color: var(--muted); }
.feature__text { font-size: 0.98rem; line-height: 1.7; color: var(--ink-2); max-width: 52ch; }

.feature__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.feature__facts li { display: flex; align-items: baseline; gap: 0.4rem; }
.feature__facts strong { color: var(--ink); font-weight: 600; }

.feature__note { font-size: 0.76rem; line-height: 1.5; color: var(--muted); }

.feature__entry { display: grid; gap: 0.9rem; margin: 0; }
.feature__entry dt { font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.feature__entry dd {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

@media (min-width: 860px) {
  .feature { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .feature__media { aspect-ratio: auto; height: 100%; min-height: 24rem; }
}

/* --------------------------------------------------------------------------
   Registration categories (distance cards)
   -------------------------------------------------------------------------- */
.ev-runs { display: grid; gap: 1.25rem; }

.ev-run {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.ev-run__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ev-run__distance {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 0.95;
  color: var(--brand);
}

.ev-run__name {
  margin-top: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.ev-run__fee {
  font-family: var(--font-display);
  font-size: 1.35rem;
  white-space: nowrap;
}

.ev-run__desc { font-size: 0.95rem; line-height: 1.65; color: var(--ink-2); }

.ev-run__times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.8rem 0;
  border-block: 1px solid var(--line-soft);
}

.ev-run__times div { display: flex; align-items: baseline; gap: 0.45rem; }
.ev-run__times dt {
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ev-run__times dd { font-size: 0.9rem; font-weight: 600; }

.ev-run__includes {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.ev-run__includes li { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; align-items: baseline; }
.ev-run__includes li::before { content: "✓"; font-size: 0.8rem; color: var(--brand); }

.ev-run__pay {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.6rem;
}

.ev-run__qr {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.ev-run__qr img { width: 132px; height: 132px; object-fit: contain; }
.ev-run__qr figcaption {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.ev-register__note {
  margin-top: 1.5rem;
  max-width: 72ch;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.ev-aside__links { display: grid; gap: 0.45rem; margin: 0.15rem 0 1rem; font-size: 0.92rem; }
.ev-aside__links a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}

@media (min-width: 780px) {
  .ev-runs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
  .ev-run__pay { grid-template-columns: 1fr auto; }
}

/* --------------------------------------------------------------------------
   Home upcoming list — one event per full-width row
   -------------------------------------------------------------------------- */
.ev-grid--home { grid-template-columns: 1fr; gap: 1.5rem; }

@media (min-width: 720px) {
  .ev-grid--home .ev-card { flex-direction: row; align-items: stretch; }
  .ev-grid--home .ev-card__media {
    flex: 0 0 40%;
    aspect-ratio: auto;
    min-height: 17rem;
  }
  .ev-grid--home .ev-card__body {
    flex: 1;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.25rem);
  }
}
