/* Event tiles: glass / chrome-on-black, matches the stop pages. Loaded only by pages that render events. */
.ev-tile[hidden], .ev-strip[hidden] { display: none !important; }
.ev-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ev-strip { position: relative; clear: both; margin: 3.4rem 0 1.6rem; }
.ev-strip[hidden] { display: none !important; }  /* 3.4rem clears the stop page backdrop (.sp-grid::before extends 2rem below the grid) */
.ev-strip-h { margin: 0 0 .8rem; text-align: center; font-size: .95rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff, #aab1b9 60%, #e6e9ed); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ev-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
  padding: 1.1rem 1.1rem 1.25rem; border-radius: 20px; border: 1px solid rgba(255,255,255,.26);
  background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.03) 45%, rgba(255,255,255,.07)), #07090b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 28px rgba(0,0,0,.55); }
.ev-sample { align-self: stretch; margin: -1.1rem -1.1rem .9rem; padding: .35rem .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .18em; color: #101214;
  background: repeating-linear-gradient(135deg, #ffd23f 0 14px, #e8b800 14px 28px); }
.ev-img { display: block; width: calc(100% + 2.2rem); max-width: none; margin: -1.1rem -1.1rem .9rem; aspect-ratio: 3 / 2; object-fit: cover; }
.ev-sample + .ev-img { margin-top: -.9rem; }
.ev-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 5.4rem; padding: .45rem 0 .5rem; margin: 0 auto .8rem; border-radius: 16px; line-height: 1; color: #04140a;
  /* metallic-green date plate: same gradient + glow as the green titles (var(--metal-green-lg) is defined in glass-site.css); dark text for contrast */
  background: var(--metal-green-lg, linear-gradient(180deg, #8dff80, #3bfe2c 50%, #3bfe2c)); border: 1px solid rgba(234,255,230,.85);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(0,60,0,.35), 0 0 14px rgba(59,254,44,.45), 0 4px 14px rgba(0,0,0,.6); }
.ev-badge span { text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.ev-img ~ .ev-badge { margin-top: -2.9rem; position: relative; z-index: 1; }
.ev-dow { font-size: .85rem; font-weight: 800; letter-spacing: .2em; }
.ev-day { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; padding: .1rem 0; }
.ev-mon { font-size: .95rem; font-weight: 800; letter-spacing: .2em; }
.ev-body { display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 100%; min-width: 0; }
.ev-cat { margin: 0; font-size: .85rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #aeb5bd; }
.ev-title { margin: .1rem 0 .1rem; font-size: clamp(1.55rem, 6.4vw, 1.9rem); line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #ffffff 0%, #dfe3e8 40%, #98a0a8 55%, #eef1f4 75%, #b4bac1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ev-acts { margin: 0; color: #eef1f4; font-size: 1.2rem; font-weight: 600; line-height: 1.35; }
.ev-where { margin: .2rem 0 0; color: #cfd5db; font-size: 1.15rem; line-height: 1.4; font-weight: 500; }
.ev-where a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.ev-where a:hover { border-bottom-color: #fff; text-decoration: none; }
.ev-time { margin: .15rem 0 0; color: var(--neon); font-size: 1.2rem; font-weight: 700; line-height: 1.35; }
.ev-date-line { white-space: nowrap; }
.ev-cost { margin: 0; color: #fff; font-size: 1.15rem; font-weight: 700; }
.ev-recur { margin: 0; color: #aeb5bd; font-size: 1.05rem; font-style: italic; }
.ev-desc { margin: .35rem 0 0; color: #dde1e6; font-size: 1.05rem; line-height: 1.5; font-weight: 400; }
.ev-links { display: flex; flex-direction: column; gap: .55rem; align-items: stretch; width: 100%; margin-top: .8rem; }
.ev-src, .ev-stopbtn { display: block; text-align: center; text-decoration: none; padding: .7rem 1rem; border-radius: 14px; font-size: 1.1rem; font-weight: 700; color: #eef1f4;
  border: 1px solid rgba(255,255,255,.4); background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.ev-src b { color: var(--neon); }
.ev-stopbtn { font-family: var(--font-heading); letter-spacing: .12em; text-transform: uppercase; color: var(--neon); }
.ev-src:hover, .ev-stopbtn:hover { color: #fff; text-decoration: none; border-color: #fff; }
.ev-filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; }

/* ---- stop page: "Events & Promotions" band (every stop page). ----
   .ev-layout.has-ev : stop event(s) centered; promo tiles 1 and 2 on its left/right (desktop); extras wrap onto the next row.
   .ev-layout.no-ev  : promo tiles centered, 3 across (2 on tablet, stacked on phones).
   Mobile (<700px): event(s) first, then the promo tiles stacked. */
.ev-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; justify-items: center; }
.ev-col { display: grid; gap: 1rem; width: 100%; max-width: 640px; grid-template-columns: minmax(0, 1fr); }
.ev-col[hidden] { display: none; }
.ev-col .ev-tile { margin: 0 auto; width: 100%; }
.ev-promos { display: contents; }
.ev-promo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .55rem; width: 100%; max-width: 640px; min-width: 0; box-sizing: border-box; padding: 1.3rem 1.2rem 1.4rem; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 28px rgba(0,0,0,.55);
  background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.03) 45%, rgba(255,255,255,.07)), #07090b; }
.ev-promo-title { margin: 0; font-size: clamp(1.45rem, 6vw, 1.75rem); line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #ffffff 0%, #dfe3e8 40%, #98a0a8 55%, #eef1f4 75%, #b4bac1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ev-promo-body { margin: 0; color: #dde1e6; font-size: 1.1rem; line-height: 1.5; overflow-wrap: anywhere; }
.ev-promo-sponsor { margin: 0; color: var(--neon); font-size: .95rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ev-promo-cta { width: 100%; margin-top: auto; box-sizing: border-box; }
.ev-promo-body + .ev-promo-cta, .ev-punches + .ev-promo-cta { margin-top: .5rem; }
.ev-punches { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: .2rem 0; }
.ev-punches span { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.ev-punches span.on { border-color: var(--neon); background: radial-gradient(circle at 35% 30%, #b8ffb0, var(--neon) 60%, #1f9a14); box-shadow: 0 0 10px rgba(59,254,44,.55); }

/* no event: centered promo tiles. */
.ev-layout.no-ev .ev-promos { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 1rem; width: 100%; }
.ev-layout.no-ev .ev-promo { flex: 0 1 100%; max-width: 640px; }
@media (min-width: 700px) { .ev-layout.no-ev .ev-promo { flex: 0 1 calc((100% - 1rem) / 2); max-width: none; } }
@media (min-width: 1060px) { .ev-layout.no-ev .ev-promos { gap: 1.5rem; } .ev-layout.no-ev .ev-promo { flex: 0 1 calc((100% - 3rem) / 3); } }

/* with event(s) */
@media (min-width: 700px) and (max-width: 1059px) {
  .ev-layout.has-ev { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .ev-layout.has-ev .ev-col { grid-column: 1 / -1; justify-self: center; }
  .ev-layout.has-ev .ev-promo { max-width: none; }
}
@media (min-width: 1060px) {
  .ev-layout.has-ev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
  .ev-layout.has-ev .ev-col { grid-column: 2; grid-row: 1; }
  .ev-layout.has-ev .ev-promo { max-width: none; }
  .ev-layout.has-ev .ev-promo--left { grid-column: 1; grid-row: 1; }
  .ev-layout.has-ev .ev-promo--right { grid-column: 3; grid-row: 1; }
  .ev-layout.has-ev .ev-promo--extra { grid-row: 2; }
}

/* live events: skeletons reserve the tile's space while /api/events loads (no layout jump); no stale build-time tiles are ever painted */
.ev-skel { width: 100%; min-height: 31rem; border-radius: 20px; border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 70%) 0 0 / 220% 100%, #07090b;
  animation: ev-shimmer 1.4s linear infinite; }
@keyframes ev-shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .ev-skel { animation: none; } }
.ev-grid .ev-skel { min-height: 28rem; }
.ev-error { text-align: center; }
.ev-col--multi { gap: 1.2rem; }

.ev-where .ev-dist { color: #3bfe2c; font-weight: 600; font-size: .95em; }

/* metallic green text on events / stop-page event cards (tokens from glass-site.css) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ev-time, .ev-src b, .ev-promo-sponsor, .ev-where .ev-dist {
    background-image: var(--metal-green); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    filter: var(--metal-glow);
  }
}

/* ---- events listing toolbar + compact calendar (20261108c5) ---- */
.ev-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 1.1rem;
}
.ev-toolbar-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  min-width: 0;
}
.ev-toolbar-main #ev-loc,
.ev-toolbar-main .ev-filter-actions { align-self: flex-start; }
.ev-toolbar-main #ev-status { margin: 0; }
.ev-toolbar-side { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.ev-toolbar-filters { display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); width: 100%; }
.ev-toolbar-filters #ev-state {
  width: 14rem;
  max-width: 100%;
  justify-self: start;
}
.ev-filter-actions { display: flex; flex-direction: column; flex-wrap: wrap; gap: 0.5rem; align-items: flex-start; margin: 0; }
@media (min-width: 700px) {
  .ev-toolbar {
    display: grid;
    grid-template-columns: minmax(14rem, 20rem) minmax(17rem, 22rem);
    justify-content: start;
    align-items: start;
    gap: 0.85rem 1rem;
  }
}
.ev-cal {
  margin: 0;
  width: 100%;
  max-width: 22rem;
  padding: 0.5rem 0.55rem 0.6rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.26);
  background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.03) 45%, rgba(255,255,255,.07)), #07090b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 28px rgba(0,0,0,.55);
}
@media (max-width: 699px) {
  .ev-cal { max-width: none; }
}
.ev-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; margin-bottom: 0.35rem; }
.ev-cal-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  flex: 1 1 auto;
  color: var(--neon, #3bfe2c);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ev-cal-label {
    background-image: var(--metal-green, linear-gradient(180deg, #d2ffcc 0%, #6bff5e 24%, #3bfe2c 46%, #22c618 58%, #3bfe2c 72%, #a9ffa2 100%));
    -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
    filter: var(--metal-glow);
  }
}
.ev-cal-nav {
  min-width: 2.25rem; min-height: 2.25rem;
  border-radius: 10px; border: 1px solid var(--chrome-mid, rgba(255,255,255,.4));
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.05));
  color: #fff; font-size: 1.15rem; cursor: pointer;
}
.ev-cal-nav:focus { outline: 2px solid var(--neon, #3bfe2c); outline-offset: 1px; }
.ev-cal-dow, .ev-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.15rem; }
.ev-cal-dow span { text-align: center; font-size: 0.65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--chrome-steel, #aeb5bd); padding: 0.1rem 0; }
.ev-cal-day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; min-height: 1.85rem; padding: 0.12rem 0.05rem;
  border-radius: 8px; border: 1px solid transparent;
  background: rgba(255,255,255,.04); color: #eef1f4; cursor: pointer; font: inherit; font-size: 0.82rem;
}
@media (max-width: 699px) {
  .ev-cal-day { min-height: 2.15rem; }
}
.ev-cal-day.is-out { color: var(--chrome-graphite, #6a727a); background: transparent; }
.ev-cal-day.is-today:not(.is-selected) {
  outline: 2px solid var(--rs-brand-blue, #1f6ef5);
  outline-offset: 0;
  box-shadow: 0 0 12px rgba(40,140,255,.35);
}
.ev-cal-day.is-selected {
  color: #04140a; border-color: rgba(234,255,230,.85);
  background: var(--metal-green-lg, linear-gradient(180deg, #8dff80, #3bfe2c 50%, #3bfe2c));
  box-shadow: inset 0 1px 0 #fff, 0 0 14px rgba(59,254,44,.45);
}
.ev-cal-day:focus { outline: 2px solid var(--neon, #3bfe2c); outline-offset: 1px; }
.ev-cal-num { font-weight: 700; line-height: 1.1; }
.ev-cal-n { font-size: 0.58rem; font-weight: 800; color: var(--neon, #3bfe2c); line-height: 1; }
.ev-cal-day.is-selected .ev-cal-n { color: #04140a; }
.ev-cal-sel { margin: 0.45rem 0 0; color: #cfd5db; font-size: 0.85rem; }
