/*
 * Blackburn Life single-event refinements.
 * Loaded after the Blackburn Life Events plugin stylesheet, only on tribe_events.
 * Keep the plugin's data and shortcode logic untouched.
 */
.bl-em-single {
  background: #fff;
  color: #1b1b1b;
}
.bl-em-single .bl-em-shell {
  width: min(1180px, calc(100% - 2rem));
}
.bl-em-single .bl-em-header {
  padding: clamp(2.25rem, 4.2vw, 4.2rem) 0 clamp(1.6rem, 3vw, 2.3rem);
  background: #fff;
  border-bottom: 1px solid #e4e6e8;
}
.bl-em-single .bl-em-eyebrow {
  margin-bottom: .9rem;
  color: #a84408;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
}
.bl-em-single .bl-em-eyebrow a:hover {
  color: #752d04;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.bl-em-single .bl-em-header h1 {
  max-width: 1030px;
  color: #1b1b1b;
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
  font-weight: 760;
  letter-spacing: -.047em;
  line-height: 1.09;
  text-wrap: balance;
}
.bl-em-single .bl-em-subtitle {
  margin-top: 1.15rem;
  color: #505861;
  font-size: .97rem;
}
.bl-em-single .bl-em-subtitle span + span::before {
  color: #a84408;
}
.bl-em-single .bl-em-page-grid {
  grid-template-columns: minmax(0, 1fr) minmax(275px, 345px);
  gap: clamp(1.5rem, 4vw, 3.7rem);
  padding-block: clamp(1.6rem, 3.5vw, 2.5rem) clamp(3rem, 5vw, 5rem);
}
.bl-em-single .bl-em-story,
.bl-em-single .bl-em-side {
  min-width: 0;
}
.bl-em-single .bl-em-hero-image {
  margin-bottom: 2rem;
  border-radius: 4px;
  background: #f1f2f2;
}
.bl-em-single .bl-em-hero-image img {
  width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: contain;
}
.bl-em-single .bl-em-description h2,
.bl-em-single .bl-em-more-dates h2 {
  margin-bottom: 1.1rem;
  color: #1b1b1b;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 750;
  letter-spacing: -.036em;
}
.bl-em-single .bl-em-prose {
  max-width: 75ch;
  color: #343b42;
  font-size: 1rem;
  line-height: 1.75;
}
.bl-em-single .bl-em-prose a {
  color: #873404;
  text-decoration-color: #a84408;
}
.bl-em-single .bl-em-prose blockquote {
  border-left-color: #f47a20;
}

/* Sticky positioning belongs to the whole sidebar, not to its inner card.
   The link back to the listing now lives in normal document flow in .bl-em-story. */
.bl-em-single .bl-em-side {
  position: sticky;
  top: 118px;
  align-self: start;
}
.admin-bar .bl-em-single .bl-em-side {
  top: 150px;
}
.bl-em-single .bl-em-info-card {
  position: static;
  top: auto;
  padding: clamp(1.25rem, 2.3vw, 1.8rem);
  border: 1px solid #e1e4e6;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 27, 34, .045);
}
.bl-em-single .bl-em-info-label {
  margin-bottom: .65rem;
  color: #a84408;
  font-size: .76rem;
  font-weight: 820;
}
.bl-em-single .bl-em-info-item {
  padding: 1.05rem 0;
  border-top-color: #e8ebed;
}
.bl-em-single .bl-em-info-item > span {
  color: #5c6269;
  font-size: .75rem;
}
.bl-em-single .bl-em-info-item strong {
  color: #202327;
  font-size: 1.05rem;
  line-height: 1.45;
}
.bl-em-single .bl-em-info-item strong a {
  color: #873404;
  text-decoration-color: #f47a20;
}
.bl-em-single .bl-em-book {
  min-height: 50px;
  padding: .95rem 1.1rem;
  border-radius: 3px;
  background: #f47a20;
  color: #191919 !important;
  font-size: .95rem;
  font-weight: 790;
}
.bl-em-single .bl-em-book:hover,
.bl-em-single .bl-em-book:focus-visible {
  background: #ff9846;
  color: #191919 !important;
}
.bl-em-single .bl-em-finished {
  background: #fff8f2;
  border-left-color: #f47a20;
}
.bl-em-single .bl-em-story-nav {
  margin-top: 2.15rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e7e9eb;
}
.bl-em-single .bl-em-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: #873404;
  font-size: .95rem;
  font-weight: 730;
  text-underline-offset: .2em;
}
.bl-em-single .bl-em-back:hover {
  color: #a84408;
}
@media (max-width: 780px), (max-height: 740px) {
  .bl-em-single .bl-em-side,
  .admin-bar .bl-em-single .bl-em-side {
    position: static;
    top: auto;
  }
}
@media (max-width: 780px) {
  .bl-em-single .bl-em-page-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .bl-em-single .bl-em-info-card {
    padding: 1.25rem;
  }
  .bl-em-single .bl-em-header h1 {
    font-size: clamp(2.15rem, 7vw, 3.5rem);
  }
}
@media (max-width: 520px) {
  .bl-em-single .bl-em-page-grid { gap: 1.65rem; }
  .bl-em-single .bl-em-hero-image { margin-bottom: 1.5rem; }
  .bl-em-single .bl-em-description h2,
  .bl-em-single .bl-em-more-dates h2 { font-size: 1.55rem; }
  .bl-em-single .bl-em-prose { font-size: .98rem; }
}
