/* ==========================================================================
   Events — list (events.php) and event hero (event.php)
   Tokens come from styles/modern.css; the hero reuses .bc-hero* from there.
   ========================================================================== */

/* ---------- Shared bits ---------- */
.bc-ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bc-surface);
  box-shadow: inset 0 0 0 1px var(--bc-line-strong);
  color: var(--bc-ink-2) !important;
  font: 600 13.5px/1 var(--bc-font, inherit);
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--bc-ease), background-color 0.2s var(--bc-ease), box-shadow 0.2s var(--bc-ease);
}
.bc-ev-btn:hover { background: var(--bc-surface-3); color: var(--bc-ink) !important; }
.bc-ev-btn:active { transform: scale(0.97); }
.bc-ev-btn:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.bc-ev-btn i { font-size: 13px; }
.bc-ev-btn--primary { background: var(--bc-ink); color: var(--bc-on-ink) !important; box-shadow: 0 8px 20px -10px rgba(11, 11, 16, 0.6); }
.bc-ev-btn--primary:hover { background: #1c1c26; color: #fff !important; }
.bc-ev-btn.is-on { box-shadow: inset 0 0 0 1.5px var(--bc-accent); color: var(--bc-accent) !important; }
.bc-ev-btn--sm { height: 32px; padding: 0 12px; font-size: 12.5px; margin-top: 14px; }

/* Type chip, coloured per type */
.bc-ev-type {
  --tc: var(--bc-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--tc);
  background: color-mix(in srgb, var(--tc) 10%, var(--bc-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 22%, transparent);
  white-space: nowrap;
}
.bc-ev-type i { font-size: 10.5px; }
.bc-ev-type.is-seminar, .bc-ev-pill.is-seminar, .bc-ev-hero.is-seminar { --tc: #5b4bd1; }
.bc-ev-type.is-competition, .bc-ev-pill.is-competition, .bc-ev-hero.is-competition { --tc: #c2410c; }
.bc-ev-type.is-camp, .bc-ev-pill.is-camp, .bc-ev-hero.is-camp { --tc: #0e8aa0; }
.bc-ev-type.is-other, .bc-ev-pill.is-other, .bc-ev-hero.is-other { --tc: #6b6b76; }

/* Date tile: month small, day big */
.bc-ev-date {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 60px;
  border-radius: 14px;
  background: var(--bc-surface);
  box-shadow: inset 0 0 0 1px var(--bc-line-strong), var(--bc-shadow-1);
  overflow: hidden;
  line-height: 1;
}
.bc-ev-date-m {
  align-self: stretch;
  padding: 4px 0 3px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bc-accent);
}
.bc-ev-date-d { flex: 1 1 auto; display: grid; place-items: center; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--bc-ink); }
.bc-ev-date-y { margin: -4px 0 5px; font-size: 10px; font-weight: 600; color: var(--bc-muted); }

/* ---------- List page ---------- */
.bc-events-shell { width: 100%; max-width: 1080px; margin: 0 auto; min-width: 0; }

.bc-ev-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 16px 16px;
  min-width: 0;
}
.bc-ev-pills { position: relative; flex: 1 1 auto; min-width: 0; max-width: 100%; }
.bc-ev-pills-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 3px 2px;
}
.bc-ev-pills-scroll::-webkit-scrollbar { display: none; }
.bc-ev-pill {
  --tc: var(--bc-ink-2);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--bc-surface);
  box-shadow: inset 0 0 0 1px var(--bc-line-strong);
  color: var(--bc-ink-2) !important;
  font: 600 13.5px/1 var(--bc-font, inherit);
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s var(--bc-ease), color 0.2s var(--bc-ease);
}
.bc-ev-pill i { font-size: 12px; color: var(--tc); }
.bc-ev-pill:hover { background: var(--bc-surface-3); color: var(--bc-ink) !important; }
.bc-ev-pill.is-active { background: var(--bc-ink); box-shadow: none; color: var(--bc-on-ink) !important; }
.bc-ev-pill.is-active i { color: #fff; }

.bc-ev-actions { flex: 0 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: auto; }

.bc-ev-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--bc-surface-3);
  flex: 0 0 auto;
}
.bc-ev-seg a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bc-muted) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.bc-ev-seg a.is-active { background: var(--bc-surface); color: var(--bc-ink) !important; box-shadow: var(--bc-shadow-1), 0 0 0 1px var(--bc-line); }

.bc-ev-search {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  min-width: 0;
}
.bc-ev-search i { position: absolute; left: 13px; font-size: 13px; color: var(--bc-muted); pointer-events: none; }
.bc-ev-search input {
  width: 180px;
  height: 38px;
  margin: 0 !important;
  padding: 0 14px 0 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bc-surface) !important;
  box-shadow: inset 0 0 0 1px var(--bc-line-strong) !important;
  font-size: 13.5px;
  color: var(--bc-ink);
  transition: width 0.25s var(--bc-ease), box-shadow 0.2s var(--bc-ease);
}
.bc-ev-search input:focus { width: 230px; outline: none; box-shadow: inset 0 0 0 1.5px var(--bc-accent), var(--bc-ring) !important; }

/* Extra filters panel */
.bc-ev-filters {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 16px 18px;
  border-radius: var(--bc-r-lg);
  background: var(--bc-surface);
  box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line);
  animation: bc-ev-drop 0.25s var(--bc-ease);
}
.bc-ev-filters[hidden] { display: none; }
.bc-ev-filters label { display: flex; flex-direction: column; gap: 5px; margin: 0; min-width: 0; font-size: 12px; font-weight: 600; color: var(--bc-muted); }
.bc-ev-filters label > span:first-child { padding-left: 2px; }
.bc-ev-filters input, .bc-ev-filters select { margin: 0 !important; width: 100%; }
.bc-ev-filters .autocomplete { display: block; }
.bc-ev-filters-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
@keyframes bc-ev-drop { from { opacity: 0; transform: translateY(-6px); } }

/* Month heading + card of rows */
.bc-ev-month {
  margin: 22px 20px 8px;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-muted);
}
.bc-ev-list > .bc-ev-month:first-child { margin-top: 4px; }
.bc-ev-card {
  margin: 0 16px;
  border-radius: var(--bc-r-lg);
  background: var(--bc-surface);
  box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line);
  overflow: hidden;
}

.bc-ev-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bc-surface);
  transition: background-color 0.2s var(--bc-ease);
}
.bc-ev-row + .bc-ev-row { border-top: 1px solid var(--bc-line); }
.bc-ev-row:hover { background: var(--bc-surface-2); }
.bc-ev-main { flex: 1 1 auto; min-width: 0; }
.bc-ev-title { margin: 0 0 6px !important; font-size: 16px !important; font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; }
.bc-ev-title a { color: var(--bc-ink) !important; text-decoration: none !important; }
/* The whole row opens the event; inner links sit above the stretched link */
.bc-ev-link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.bc-ev-row:hover .bc-ev-title a { color: var(--bc-accent) !important; }
.bc-ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--bc-muted); min-width: 0; }
.bc-ev-place, .bc-ev-aff { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--bc-muted) !important; text-decoration: none !important; }
.bc-ev-place i, .bc-ev-aff i { font-size: 11.5px; color: var(--bc-faint); }
.bc-ev-aff { position: relative; z-index: 1; }
.bc-ev-aff:hover { color: var(--bc-ink) !important; }

.bc-ev-side { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.bc-ev-row .bc-ev-side { font-size: 13px; color: var(--bc-muted); }
.bc-ev-owner { position: relative; z-index: 1; line-height: 0; }
.bc-ev-owner img, .bc-ev-owner > div > * { margin: 0 !important; }
.bc-ev-going, .bc-ev-score { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.bc-ev-going { color: var(--bc-ink-2); }
.bc-ev-going--m { display: none; font-weight: 500; }
.bc-ev-going i { color: var(--bc-green); font-size: 12px; }
.bc-ev-score i { font-size: 12px; }
.bc-ev-chev { font-size: 11px; color: var(--bc-faint); transition: transform 0.2s var(--bc-ease); }
.bc-ev-row:hover .bc-ev-chev { transform: translateX(2px); color: var(--bc-ink-2); }

.bc-ev-draft { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; color: #b45309; background: var(--bc-surface-2); }

/* Past + downvoted: quieter */
.bc-ev-row.is-past .bc-ev-date-m { background: var(--bc-faint); }
.bc-ev-row.is-past .bc-ev-date-d, .bc-ev-row.is-past .bc-ev-title a { color: var(--bc-ink-2) !important; }
.bc-ev-row.is-past .bc-ev-date, .bc-ev-row.is-past .bc-ev-type, .bc-ev-row.is-past .bc-ev-owner { filter: saturate(0.2); opacity: 0.8; }
.bc-ev-row.is-downvoted { opacity: 0.5; }

.bc-ev-count { margin: 14px 16px 26px; text-align: center; font-size: 12.5px; color: var(--bc-faint); }
.bc-ev-empty { margin: 0 16px; padding: 42px 20px; border-radius: var(--bc-r-lg); background: var(--bc-surface); box-shadow: var(--bc-shadow-2), 0 0 0 1px var(--bc-line); text-align: center; color: var(--bc-muted); }
.bc-ev-empty i { font-size: 28px; color: var(--bc-faint); margin-bottom: 10px; }
.bc-ev-empty p { margin: 0 0 14px; }

/* ---------- Event hero ---------- */
.bc-ev-cover:not(.has-photo) {
  background:
    radial-gradient(60% 120% at 88% 0%, rgba(212, 116, 79, 0.5), transparent 60%),
    radial-gradient(50% 120% at 10% 100%, rgba(3, 195, 227, 0.4), transparent 60%),
    linear-gradient(120deg, color-mix(in srgb, var(--tc, #5b4bd1) 70%, #0b0b10) 0%, #5b4bd1 55%, #9a3ea8 115%);
}
.bc-ev-hero .bc-hero-cover { height: 190px; }
.bc-ev-hero .bc-hero-cover.has-photo { background-position: center; }
.bc-ev-cover-edit {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff !important;
  background: rgba(11, 11, 16, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none !important;
}
.bc-ev-cover-edit:hover { background: rgba(11, 11, 16, 0.65); }

.bc-ev-hero-body { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.bc-ev-id { margin-top: -64px; }
.bc-ev-logo {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: block;
  width: 132px;
  height: 132px;
  padding: 5px;
  border-radius: 30px;
  background: var(--bc-surface);
  box-shadow: var(--bc-shadow-3);
  line-height: 0;
}
.bc-ev-logo img, .bc-ev-logo-ph { width: 100%; height: 100%; border-radius: 25px; object-fit: cover; }
.bc-ev-logo-ph {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 40px;
  background: var(--bc-brand-grad);
}
.bc-ev-logo-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  color: var(--bc-on-ink);
  background: var(--bc-ink);
  box-shadow: 0 0 0 3px var(--bc-surface);
  transition: transform 0.2s var(--bc-ease);
}
.bc-ev-logo.is-editable:hover .bc-ev-logo-edit { transform: scale(1.08); }
.bc-ev-text { padding-top: 74px; }
.bc-ev-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.bc-ev-when { font-size: 12px; font-weight: 650; color: var(--bc-green); }
.bc-ev-when.is-past { color: var(--bc-muted); }
.bc-ev-name { font-size: 30px; }
.bc-ev-dateline { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--bc-ink-2); }
.bc-ev-dateline i { color: var(--bc-accent); }
.bc-ev-facts .bc-ev-fact { max-width: 100%; }
.bc-ev-facts .bc-ev-fact > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-ev-facts .bc-ev-fact a { color: inherit !important; text-decoration: none !important; }
.bc-ev-facts .bc-ev-fact a:hover { text-decoration: underline !important; }
.bc-ev-facts a.bc-ev-fact { text-decoration: none !important; }
.bc-ev-facts .bc-ev-ext { font-size: 9.5px; }

.bc-ev-org { display: flex; align-items: center; gap: 11px; margin-top: 16px; min-width: 0; }
.bc-ev-org-av { line-height: 0; flex: 0 0 auto; }
.bc-ev-org-av img, .bc-ev-org-av > div > * { margin: 0 !important; }
.bc-ev-org-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bc-ev-org-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bc-faint); }
.bc-ev-org-name { font-size: 14.5px; font-weight: 650; color: var(--bc-ink) !important; text-decoration: none !important; }
.bc-ev-org-name:hover { color: var(--bc-accent) !important; }
.bc-ev-org-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12.5px; color: var(--bc-muted); }
.bc-ev-org-sub a { color: var(--bc-muted) !important; text-decoration: none !important; }
.bc-ev-org-sub a:hover { color: var(--bc-ink) !important; }
.bc-ev-dot { color: var(--bc-faint); }
.bc-ev-org-belt { display: inline-flex; align-items: center; gap: 5px; }
.bc-ev-org-beltdot { display: inline-block; width: 16px; height: 6px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }

/* Right side */
.bc-ev-heroside { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-top: 20px; }
.bc-ev-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line); }
.bc-ev-count-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; min-width: 0; }
.bc-ev-count-item + .bc-ev-count-item { border-left: 1px solid var(--bc-line); }
.bc-ev-count-item b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--bc-ink); line-height: 1.1; }
.bc-ev-count-item span { font-size: 11.5px; color: var(--bc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.bc-ev-rsvp { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bc-ev-rsvp-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bc-faint); padding-left: 2px; }
.bc-ev-rsvp-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bc-ev-rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  background: var(--bc-surface);
  box-shadow: inset 0 0 0 1px var(--bc-line-strong);
  color: var(--bc-ink-2);
  font: 600 13px/1 var(--bc-font, inherit);
  cursor: pointer;
  min-width: 0;
  transition: background-color 0.2s var(--bc-ease), color 0.2s var(--bc-ease), transform 0.2s var(--bc-ease);
}
.bc-ev-rsvp-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-ev-rsvp-btn i { font-size: 13px; color: var(--bc-faint); }
.bc-ev-rsvp-btn:hover { background: var(--bc-surface-3); }
.bc-ev-rsvp-btn:active { transform: scale(0.97); }
.bc-ev-rsvp-btn:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.bc-ev-rsvp-btn.is-1.is-on { background: var(--bc-green); color: #fff; box-shadow: 0 8px 18px -10px rgba(22, 163, 74, 0.9); }
.bc-ev-rsvp-btn.is-3.is-on { background: var(--bc-accent); color: #fff; box-shadow: 0 8px 18px -10px rgba(91, 75, 209, 0.9); }
.bc-ev-rsvp-btn.is-2.is-on { background: var(--bc-ink-2); color: #fff; }
.bc-ev-rsvp-btn.is-on i { color: #fff; }

.bc-ev-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-ev-cta .bc-ev-btn { flex: 1 1 auto; }
.bc-ev-share.is-done { box-shadow: inset 0 0 0 1.5px var(--bc-green); color: var(--bc-green) !important; }
.bc-ev-reacts { justify-content: flex-start; margin: 0; }

/* Below the hero */
.bc-ev-notices:empty { display: none; }
.bc-ev-notices { margin: 0 4px; }
.bc-ev-desc { font-size: 15.5px; line-height: 1.7; color: var(--bc-ink-2); overflow-wrap: anywhere; max-width: 72ch; }
.bc-ev-desc a { color: var(--bc-accent) !important; }
.bc-ev-desc img { max-width: 100%; height: auto; }

.bc-ev-info { list-style: none; margin: 0; padding: 0; }
.bc-ev-info li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; font-size: 14px; min-width: 0; }
.bc-ev-info li + li { border-top: 1px solid var(--bc-line); }
.bc-ev-info i { width: 16px; flex: 0 0 16px; margin-top: 3px; text-align: center; color: var(--bc-muted); }
.bc-ev-info a { color: var(--bc-ink-2) !important; text-decoration: none !important; min-width: 0; overflow-wrap: anywhere; }
.bc-ev-info a:hover { color: var(--bc-accent) !important; }
.bc-ev-info small { display: block; font-size: 12.5px; color: var(--bc-muted); }
.bc-ev-map { margin: 0 0 6px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--bc-line); aspect-ratio: 4 / 3; background: var(--bc-surface-2); }
.bc-ev-map iframe { display: block; width: 100%; height: 100%; border: 0; }

.bc-ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bc-ev-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; cursor: zoom-in; transition: transform 0.25s var(--bc-ease), filter 0.25s var(--bc-ease); }
.bc-ev-gallery img:hover { transform: scale(1.02); filter: brightness(1.05); }
.bc-ev-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bc-ev-video { margin: 0; }
.bc-ev-video-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.bc-ev-video-frame iframe { display: block; width: 100%; height: 100%; }
.bc-ev-video figcaption { margin-top: 6px; font-size: 12.5px; color: var(--bc-muted); }
.bc-ev-none { margin: 0; font-size: 14px; color: var(--bc-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .bc-ev-hero-body { grid-template-columns: 1fr; }
  .bc-ev-heroside { border-top: 1px solid var(--bc-line); padding-top: 16px; }
  .bc-ev-actions { flex: 1 1 100%; margin-left: 0; }
  .bc-ev-search { flex: 1 1 auto; }
  .bc-ev-search input, .bc-ev-search input:focus { width: 100%; }
}
@media (max-width: 767px) {
  .bc-ev-head { gap: 8px; margin: 0 12px 12px; }
  .bc-ev-pills { flex-basis: 100%; margin: 0 -12px; }
  .bc-ev-pills-scroll { padding: 3px 12px; }
  .bc-ev-pill { height: 34px; font-size: 13px; }
  .bc-ev-actions { gap: 6px; flex-wrap: wrap; }
  .bc-ev-seg { order: 1; }
  .bc-ev-actions > .bc-ev-btn { order: 2; width: 38px; padding: 0; }
  .bc-ev-actions > .bc-ev-btn span { display: none; }
  .bc-ev-search { order: 3; flex: 1 1 100%; }
  .bc-ev-search input { font-size: 16px; }
  .bc-ev-seg + .bc-ev-search + .bc-ev-btn { margin-left: auto; }
  .bc-ev-filters { grid-template-columns: 1fr 1fr; padding: 14px; }
  .bc-ev-filters-foot .bc-ev-btn { flex: 1 1 0; }

  .bc-ev-card { margin: 0 8px; }
  .bc-ev-month { margin: 18px 14px 8px; }
  .bc-ev-row { align-items: flex-start; gap: 12px; padding: 13px 14px; }
  .bc-ev-date { width: 50px; height: 54px; border-radius: 12px; }
  .bc-ev-date-d { font-size: 19px; }
  .bc-ev-title { font-size: 15px !important; margin-bottom: 5px !important; }
  .bc-ev-meta { gap: 5px 10px; font-size: 12.5px; }
  .bc-ev-row .bc-ev-side { position: absolute; right: 14px; top: 13px; gap: 8px; }
  .bc-ev-row .bc-ev-side .bc-ev-going, .bc-ev-row .bc-ev-side .bc-ev-score, .bc-ev-row .bc-ev-side .bc-ev-chev { display: none; }
  .bc-ev-row .bc-ev-going--m { display: inline-flex; }
  .bc-ev-row .bc-ev-owner img, .bc-ev-row .bc-ev-owner svg { width: 26px !important; height: 26px !important; }
  .bc-ev-row:has(.bc-ev-owner) .bc-ev-title { padding-right: 34px; }
  .bc-ev-count { margin-bottom: 20px; }
}
@media (max-width: 520px) {
  .bc-ev-hero .bc-hero-cover { height: 130px; }
  .bc-ev-id { margin-top: -62px; }
  .bc-ev-logo { width: 112px; height: 112px; border-radius: 26px; }
  .bc-ev-logo img, .bc-ev-logo-ph { border-radius: 21px; }
  .bc-ev-text { padding-top: 0; }
  .bc-ev-kicker, .bc-ev-dateline, .bc-ev-org { justify-content: center; }
  .bc-ev-name { font-size: 24px; }
  .bc-ev-org { text-align: left; }
  .bc-ev-facts .bc-ev-fact > span { white-space: normal; }
  .bc-ev-facts .bc-ev-fact { border-radius: 14px; text-align: left; }
  .bc-ev-cta .bc-ev-btn { flex: 1 1 40%; }
  .bc-ev-reacts { justify-content: center; }
  .bc-ev-filters { grid-template-columns: 1fr; }
  .bc-ev-map { aspect-ratio: 16 / 10; }
  .bc-ev-rsvp-btn { gap: 5px; padding: 0 6px; font-size: 12.5px; }
}
@media (max-width: 400px) {
  .bc-ev-rsvp-btn i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-ev-filters { animation: none; }
  .bc-ev-row, .bc-ev-btn, .bc-ev-gallery img { transition: none; }
}

/* The event's picture beside the date (functions_events.php bcEventRowHtml) */
.bc-ev-thumb { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--bc-surface-3); box-shadow: 0 0 0 1px var(--bc-line); }
.bc-ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.bc-ev-row:hover .bc-ev-thumb img { transform: scale(1.04); }
.bc-ev-row.is-past .bc-ev-thumb { opacity: .75; }
@media (max-width: 640px) { .bc-ev-thumb { width: 54px; height: 54px; border-radius: 12px; } }
