/* Native Posts-powered events; extends the existing BCAC event card design. */
.bcac-events-feed { width: 100%; }
.bcac-events-feed > .bcac-wide { margin-inline: auto; width: min(100% - 40px, var(--bcac-layout-content-wide, 1180px)); }
.bcac-events-feed .bcac-archive-heading { margin-bottom: 0; }
.bcac-events-feed .bcac-event-grid { margin-top: var(--bcac-spacing-2xl, 48px); }
/* Dynamic cards use real links inside the original visual heading.
   Explicit specificity beats site-wide link/visited styles without touching
   ordinary links, media crops, or the Gutenberg section layouts. */
.bcac-event-grid .bcac-event-card__body > .bcac-event-card__title > a,
.bcac-event-grid .bcac-event-card__body > .bcac-event-card__title > a:link,
.bcac-event-grid .bcac-event-card__body > .bcac-event-card__title > a:visited {
  color: var(--bcac-color-text-primary);
  text-decoration: none;
}
.bcac-event-grid .bcac-event-card__body > .bcac-event-card__title > a:hover {
  color: var(--bcac-color-link-hover, #70110c);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bcac-event-card__title a:focus-visible,
.bcac-event-card__media:focus-visible {
  outline: 3px solid var(--bcac-color-focus-ring, #70110c);
  outline-offset: 3px;
}
.bcac-event-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 377 / 236;
  padding: 24px;
  background: #70110c;
  color: #fff;
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 750;
  text-decoration: none;
}
.bcac-event-card__media--placeholder:hover { color: #fff; background: #8a1712; }
.bcac-events-empty { grid-column: 1 / -1; color: var(--bcac-color-text-secondary, #5a5a5a); }
.bcac-event-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; color: var(--bcac-color-text-secondary, #5a5a5a); }
.bcac-event-detail-action { margin-top: 28px; }


/* Individual event pages: editorial header with full-flyer and detail sidebar. */
body.single-post:has(.bcac-event-single__layout) main.wp-block-group {
  width: min(100% - 40px, 1120px);
  max-width: 1120px;
  margin-inline: auto;
  padding-bottom: clamp(72px, 7vw, 112px) !important;
}
body.single-post:has(.bcac-event-single__layout) main > .wp-block-post-title {
  max-width: 960px;
  margin-top: 12px;
  margin-bottom: 32px;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
/* Match the title's wider block constraint instead of centering on 760px. */
body.single-post:has(.bcac-event-single__layout) main > .bcac-event-single__eyebrow {
  width: min(100%, 960px);
  max-width: 960px;
  margin: 0 auto 12px;
}
.bcac-event-single__eyebrow {
  margin: 0;
  color: #70110c;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bcac-event-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}
.bcac-event-single__poster {
  margin: 0;
  width: 100%;
}
.bcac-event-single__poster img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.bcac-event-single__poster--placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  padding: 40px;
  background: #70110c;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  font-weight: 700;
  text-align: center;
}
.bcac-event-single__sidebar { min-width: 0; }
.bcac-event-single__details {
  padding: clamp(24px, 3vw, 40px);
  background: #f9f8f8;
  border-top: 4px solid #70110c;
}
.bcac-event-single__section-label {
  margin: 0 0 24px;
  color: #70110c;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bcac-event-single__facts { display: grid; gap: 20px; margin: 0; }
.bcac-event-single__fact {
  padding-bottom: 18px;
  border-bottom: 1px solid #ddd8d1;
}
.bcac-event-single__fact:last-child { padding-bottom: 0; border-bottom: 0; }
.bcac-event-single__fact dt {
  margin-bottom: 6px;
  color: #5a5a5a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bcac-event-single__fact dd {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #171717;
  font-size: 1.06rem;
  line-height: 1.45;
}
.bcac-event-single__fact dd strong { font-weight: 750; }
.bcac-event-single__description {
  margin-top: 32px;
  font-size: 1.06rem;
  line-height: 1.7;
}
.bcac-event-single__description > :first-child { margin-top: 0; }
.bcac-event-single__description > :last-child { margin-bottom: 0; }
.bcac-event-single__action { margin: 24px 0 0; }
.bcac-event-single__action a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 3px;
  background: #70110c;
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.bcac-event-single__action a:hover { background: #911c16; color: white; }
.bcac-event-single__back { margin: 28px 0 0; }
.bcac-event-single__back a { color: #70110c; font-weight: 700; text-underline-offset: 4px; }
.bcac-event-single__action a:focus-visible,
.bcac-event-single__back a:focus-visible { outline: 3px solid #70110c; outline-offset: 4px; }
@media (max-width: 767px) {
  .bcac-event-single__layout { grid-template-columns: minmax(0, 1fr); }
  .bcac-event-single__details { padding: 24px; }
  body.single-post:has(.bcac-event-single__layout) main > .wp-block-post-title { font-size: clamp(2rem, 8vw, 3rem); }
}

/* Event-only responsive refinement: more room below the site header. */
body.single-post:has(.bcac-event-single__layout) main.wp-block-group {
  padding-top: clamp(36px, 5vw, 64px) !important;
}

/* Tablet layouts: keep the approved flyer readable instead of squeezing
   it next to the detail panel. Desktop two-column layout begins at 1101px. */
@media (max-width: 1100px) {
  .bcac-event-single__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .bcac-event-single__poster {
    width: 100%;
    max-width: 540px;
    margin-inline: auto;
  }
  .bcac-event-single__sidebar {
    width: 100%;
    max-width: 700px;
    margin-inline: auto;
  }
}
@media (max-width: 600px) {
  body.single-post:has(.bcac-event-single__layout) main.wp-block-group {
    padding-top: 28px !important;
  }
  .bcac-event-single__layout { gap: 28px; }
  .bcac-event-single__poster,
  .bcac-event-single__sidebar { max-width: none; }
}
