/* Capital FM Signal & Soul — What’s On City Guide
   Standalone event styling. Loaded after the main and dark theme styles. */

.cfm-city-events,
.cfm-single-event {
  --city-ink: #271825;
  --city-plum: #392141;
  --city-red: #e91d1b;
  --city-yellow: #fddc3f;
  --city-paper: #f7f4ed;
  background: var(--city-paper);
  color: var(--city-ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cfm-city-events *,
.cfm-single-event * {
  box-sizing: border-box;
}

.cfm-city-events__masthead {
  background: var(--city-paper);
  border-bottom: 5px solid var(--city-red);
  min-height: 390px;
  overflow: hidden;
  padding: 78px 0 68px;
  position: relative;
}

.cfm-city-events__masthead::before,
.cfm-city-events__masthead::after {
  border: 1px solid rgba(233, 29, 27, .22);
  border-radius: 50%;
  content: '';
  height: 500px;
  position: absolute;
  right: -150px;
  top: -265px;
  width: 500px;
}

.cfm-city-events__masthead::after {
  height: 260px;
  right: 12%;
  top: 160px;
  width: 260px;
}

.cfm-city-events__masthead-inner {
  position: relative;
  z-index: 1;
}

.cfm-city-events__eyebrow,
.cfm-city-events__section-heading>p,
.cfm-city-events__archive-heading>p,
.cfm-home-events__intro>p {
  color: var(--city-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  margin: 0 0 15px;
  text-transform: uppercase;
}

.cfm-city-events__masthead h1 {
  font-size: clamp(52px, 7vw, 102px);
  letter-spacing: -.075em;
  line-height: .86;
  margin: 0;
  max-width: 760px;
}

.cfm-city-events__masthead h1 em {
  color: var(--city-red);
  font-style: normal;
}

.cfm-city-events__standfirst {
  font-size: 18px;
  line-height: 1.5;
  margin: 28px 0 25px;
  max-width: 480px;
}

.cfm-city-events__masthead-link,
.cfm-city-events__all-link,
.cfm-home-events__intro>a {
  border-bottom: 1px solid currentColor;
  color: var(--city-ink);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 16px;
  padding-bottom: 7px;
  text-decoration: none;
}

.cfm-city-events__masthead-link:hover,
.cfm-city-events__all-link:hover,
.cfm-home-events__intro>a:hover {
  color: var(--city-red);
}

.cfm-city-events__now {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(290px, .78fr);
  margin-bottom: 104px;
  margin-top: 66px;
  overflow: visible;
}

.cfm-city-events__lead,
.cfm-city-events__archive-item,
.cfm-home-events__lead {
  background-color: var(--city-plum);
  background-image: linear-gradient(0deg, rgba(26, 12, 26, .94) 0%, rgba(26, 12, 26, .38) 58%, rgba(26, 12, 26, .1) 100%), var(--cfm-event-image, linear-gradient(135deg, #e91d1b, #392141));
  background-position: center;
  background-size: cover;
  color: #fff;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.cfm-city-events__lead {
  min-height: 570px;
}

.cfm-city-events__lead::before,
.cfm-home-events__lead::before {
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  content: '';
  height: 290px;
  position: absolute;
  right: -105px;
  top: -115px;
  width: 290px;
}

.cfm-city-events__lead-surface {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: inherit;
  padding: 34px;
  position: relative;
}

.cfm-city-events__lead-kicker,
.cfm-city-events__lead-copy>span,
.cfm-city-events__tile>div>p,
.cfm-home-events__label {
  color: var(--city-yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  margin: 0;
  text-transform: uppercase;
}

.cfm-city-events__date {
  align-items: center;
  background: var(--city-red);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
  min-height: 84px;
  width: 76px;
}

.cfm-city-events__date b {
  font-size: 30px;
  letter-spacing: -.08em;
  line-height: .9;
}

.cfm-city-events__date small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-top: 4px;
  text-transform: uppercase;
}

.cfm-city-events__lead-copy {
  margin-top: auto;
  max-width: 600px;
}

.cfm-city-events__lead-copy h2 {
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -.07em;
  line-height: .9;
  margin: 13px 0 18px;
}

.cfm-city-events__lead-copy p {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.45;
  margin: 4px 0;
}

.cfm-city-events__lead-copy b,
.cfm-city-events__archive-item b,
.cfm-home-events__lead b {
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  gap: 12px;
  margin-top: 22px;
}

.cfm-city-events__next-list {
  background: var(--city-plum);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
}

.cfm-city-events__next-list>div>p {
  color: var(--city-yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.cfm-city-events__next-list h2 {
  color: #fff;
  font-size: 40px;
  letter-spacing: -.065em;
  line-height: .93;
  margin: 0 0 42px;
}

.cfm-city-events__next-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cfm-city-events__next-list li {
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.cfm-city-events__next-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.cfm-city-events__next-list li a {
  align-items: start;
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: 24px minmax(0, 1fr) 14px;
  padding: 17px 0;
  text-decoration: none;
}

.cfm-city-events__next-list li b {
  color: var(--city-yellow);
  font-size: 10px;
}

.cfm-city-events__next-list li small {
  color: rgba(255, 255, 255, .58);
  display: block;
  font-size: 10px;
  margin-bottom: 5px;
}

.cfm-city-events__next-list li span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.cfm-city-events__next-list li i {
  font-size: 14px;
  font-style: normal;
}

.cfm-city-events__next-note {
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.cfm-city-events__all-link {
  color: #fff;
  margin-top: auto;
  padding-top: 32px;
}

.cfm-city-events__empty-state {
  background: var(--city-plum);
  color: #fff;
  grid-column: 1 / -1;
  min-height: 380px;
  padding: 54px;
}

.cfm-city-events__empty-state p {
  color: var(--city-yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cfm-city-events__empty-state h2 {
  font-size: 58px;
  letter-spacing: -.07em;
  line-height: .9;
  margin: 22px 0;
  max-width: 540px;
}

.cfm-city-events__empty-state span {
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
}

.cfm-city-events__feed {
  margin-bottom: 106px;
}

.cfm-city-events__section-heading,
.cfm-city-events__archive-heading {
  margin-bottom: 30px;
  max-width: 660px;
}

.cfm-city-events__section-heading h2,
.cfm-city-events__archive-heading h2 {
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -.07em;
  line-height: .9;
  margin: 0;
}

/* .cfm-city-events__event-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
} */


.cfm-events-grid {
  --card: calc((100% - 40px) / 3);   /* one card's width: 100% − 2×gap, ÷3 */
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
}

/* exactly 1 event → one centered card */
.cfm-events-grid:has(> :last-child:nth-child(1)) {
  grid-template-columns: var(--card);
}

/* exactly 2 events → two centered cards */
.cfm-events-grid:has(> :last-child:nth-child(2)) {
  grid-template-columns: repeat(2, var(--card));
}

.cfm-city-events__tile {
  border-top: 2px solid var(--city-ink);
  padding-top: 12px;
}

.cfm-city-events__tile-image {
  background-color: #d2c9ba;
  background-image: linear-gradient(0deg, rgba(37, 23, 34, .14), rgba(37, 23, 34, .05)), var(--cfm-event-image, linear-gradient(135deg, #e91d1b, #fddc3f));
  background-position: center;
  background-size: cover;
  display: block;
  height: 230px;
  overflow: hidden;
  position: relative;
}

.cfm-city-events__tile-image span {
  align-items: center;
  background: var(--city-red);
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 58px;
  justify-content: center;
  left: 10px;
  position: absolute;
  top: 10px;
  width: 52px;
}

.cfm-city-events__tile-image b {
  font-size: 21px;
  line-height: .9;
}

.cfm-city-events__tile-image small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: 4px;
  text-transform: uppercase;
}

.cfm-city-events__tile>div {
  padding-top: 14px;
}

.cfm-city-events__tile h3 {
  font-size: 24px;
  letter-spacing: -.05em;
  line-height: 1.02;
  margin: 8px 0 12px;
}

.cfm-city-events__tile h3 a {
  color: var(--city-ink);
  text-decoration: none;
}

.cfm-city-events__tile>div>small {
  color: rgba(37, 23, 34, .68);
  display: block;
  font-size: 12px;
  line-height: 1.45;
}

.cfm-city-events__tile-link {
  color: var(--city-red);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  margin-top: 17px;
  text-decoration: none;
}

.cfm-city-events__archive {
  background: var(--city-ink);
  color: #fff;
  padding: 96px 0 110px;
}

.cfm-city-events__archive-heading>p {
  color: var(--city-yellow);
}

.cfm-city-events__archive-heading h2 {
  color: #fff;
}

.cfm-city-events__archive-heading>span {
  color: rgba(255, 255, 255, .65);
  display: block;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 18px;
  max-width: 470px;
}

.cfm-city-events__archive-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 230px);
}

.cfm-city-events__archive-item {
  min-height: 0;
}

.cfm-city-events__archive-item.is-featured {
  grid-row: span 2;
}

.cfm-city-events__archive-item>div {
  align-items: start;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  padding: 23px;
}

.cfm-city-events__archive-item span {
  color: var(--city-yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.cfm-city-events__archive-item h3 {
  color: #fff;
  font-size: clamp(21px, 2vw, 34px);
  letter-spacing: -.055em;
  line-height: .96;
  margin: 10px 0;
}

.cfm-city-events__archive-item p {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  margin: 0;
}

.cfm-city-events__archive-item b {
  margin-top: 16px;
}

.cfm-single-event-hero {
  align-items: flex-end;
  background-color: var(--city-plum);
  height: min(54vw, 400px);
  min-height: 440px;
}

.cfm-single-event-hero-overlay {
  background: linear-gradient(0deg, rgba(20, 10, 20, .95) 0%, rgba(20, 10, 20, .42) 62%, rgba(20, 10, 20, .05) 100%);
  padding: 80px 0 52px;
}

.cfm-single-event-cat {
  color: var(--city-yellow);
}

.cfm-single-event-title {
  font-size: clamp(44px, 6vw, 82px);
  letter-spacing: -.07em;
  line-height: .88;
  max-width: 860px;
}

.cfm-single-event-container {
  padding-bottom: 100px;
  padding-top: 64px;
}

.cfm-single-event-layout {
  gap: 70px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.cfm-single-event-description {
  font-size: 18px;
  line-height: 1.72;
}

.cfm-single-event-description h2,
.cfm-single-event-title-fallback {
  font-size: 34px;
  letter-spacing: -.05em;
  line-height: 1;
}

.cfm-event-details-card {
  border: 0;
  border-top: 4px solid var(--city-red);
  border-radius: 0;
  box-shadow: 0 18px 42px rgba(37, 23, 34, .12);
  padding: 27px;
}

.cfm-event-ticket-cta {
  background: var(--city-red);
  border-radius: 0;
}

.cfm-event-ticket-cta:hover {
  background: var(--city-plum);
}

.cfm-event-section-title {
  border-bottom-color: var(--city-red);
  font-size: 24px;
  letter-spacing: -.03em;
}

.cfm-home-events {
  background: var(--city-yellow);
  color: var(--city-ink);
  padding: 78px 0;
}

.cfm-home-events__grid {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  overflow: visible;
}

.cfm-home-events__intro {
  align-items: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 42px 26px 0;
}

.cfm-home-events__intro>p {
  color: var(--city-red);
}

.cfm-home-events__intro h2 {
  font-size: clamp(40px, 5vw, 65px);
  letter-spacing: -.07em;
  line-height: .88;
  margin: auto 0 26px;
}

.cfm-home-events__lead {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 28px;
}

.cfm-home-events__lead h3 {
  color: #fff;
  font-size: clamp(31px, 4vw, 50px);
  letter-spacing: -.065em;
  line-height: .92;
  margin: auto 0 12px;
  max-width: 600px;
}

.cfm-home-events__lead p {
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  margin: 0;
}

.cfm-home-events__lead b {
  margin-top: 18px;
}

html.dark-mode .cfm-city-events,
html.dark-mode .cfm-single-event,
body.dark-theme .cfm-city-events,
body.dark-theme .cfm-single-event {
  --city-ink: #f7f4ed;
  --city-paper: #171218;
  background: var(--city-paper);
  color: var(--city-ink);
}

html.dark-mode .cfm-city-events__masthead,
body.dark-theme .cfm-city-events__masthead {
  background: #211827;
}

html.dark-mode .cfm-city-events__masthead-link,
html.dark-mode .cfm-home-events__intro>a,
body.dark-theme .cfm-city-events__masthead-link,
body.dark-theme .cfm-home-events__intro>a {
  color: #fff;
}

html.dark-mode .cfm-city-events__tile,
body.dark-theme .cfm-city-events__tile {
  border-top-color: rgba(255, 255, 255, .75);
}

html.dark-mode .cfm-city-events__tile h3 a,
html.dark-mode .cfm-city-events__tile>div>small,
body.dark-theme .cfm-city-events__tile h3 a,
body.dark-theme .cfm-city-events__tile>div>small {
  color: #f7f4ed;
}

html.dark-mode .cfm-city-events__tile>div>small,
body.dark-theme .cfm-city-events__tile>div>small {
  color: rgba(247, 244, 237, .65);
}

html.dark-mode .cfm-event-details-card,
body.dark-theme .cfm-event-details-card {
  background: #211827;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .35);
}

@media (max-width: 840px) {

  .cfm-city-events__now,
  .cfm-home-events__grid {
    grid-template-columns: 1fr;
  }

  .cfm-city-events__lead {
    min-height: 490px;
  }

  .cfm-city-events__next-list {
    min-height: 340px;
  }

  .cfm-city-events__event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfm-city-events__archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfm-city-events__archive-item.is-featured {
    grid-column: span 2;
    grid-row: auto;
  }

  .cfm-single-event-layout {
    gap: 34px;
  }

  .cfm-home-events__intro {
    min-height: 250px;
    padding: 26px 0;
  }
}

@media (max-width: 560px) {
  .cfm-city-events__masthead {
    min-height: 340px;
    padding: 56px 0 50px;
  }

  .cfm-city-events__masthead h1 {
    font-size: 56px;
  }

  .cfm-city-events__standfirst {
    font-size: 15px;
    margin: 22px 0;
  }

  .cfm-city-events__now {
    margin-bottom: 68px;
    margin-top: 34px;
  }

  .cfm-city-events__lead {
    min-height: 455px;
  }

  .cfm-city-events__lead-surface,
  .cfm-city-events__next-list {
    padding: 24px 20px;
  }

  .cfm-city-events__lead-copy h2 {
    font-size: 42px;
  }

  .cfm-city-events__next-list h2 {
    font-size: 35px;
    margin-bottom: 28px;
  }

  .cfm-city-events__event-grid,
  .cfm-city-events__archive-grid {
    grid-template-columns: 1fr;
  }

  .cfm-city-events__archive {
    padding: 68px 0;
  }

  .cfm-city-events__archive-grid {
    grid-template-rows: none;
  }

  .cfm-city-events__archive-item,
  .cfm-city-events__archive-item.is-featured {
    grid-column: auto;
    grid-row: auto;
    min-height: 285px;
  }

  .cfm-city-events__tile-image {
    height: 255px;
  }

  .cfm-single-event-hero {
    height: 520px;
    min-height: 0;
  }

  .cfm-single-event-hero-overlay {
    padding-bottom: 34px;
  }

  .cfm-single-event-title {
    font-size: 48px;
  }

  .cfm-single-event-container {
    padding-bottom: 72px;
    padding-top: 42px;
  }

  .cfm-single-event-description {
    font-size: 16px;
  }

  .cfm-home-events {
    padding: 54px 0;
  }

  .cfm-home-events__lead {
    min-height: 335px;
    padding: 22px;
  }
}

/* Refinement: archive contrast and event-detail editorial presentation. */
html.dark-mode .cfm-city-events__archive,
body.dark-theme .cfm-city-events__archive {
  background: #171218;
  color: #f7f4ed;
}

.cfm-single-event {
  background: var(--city-paper);
  overflow: hidden;
}

.cfm-single-event-hero {
  align-items: flex-end;
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  display: flex;
  height: min(64vw, 680px);
  min-height: 470px;
  position: relative;
}

.cfm-single-event-hero::before {
  background: linear-gradient(90deg, rgba(25, 13, 24, .93) 0%, rgba(25, 13, 24, .6) 46%, rgba(25, 13, 24, .1) 100%);
  content: '';
  inset: 0;
  position: absolute;
}

.cfm-single-event-hero-overlay {
  background: none;
  padding: 88px 0 62px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.cfm-single-event-cat {
  border-bottom: 1px solid rgba(253, 220, 63, .58);
  color: var(--city-yellow);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  padding-bottom: 7px;
  text-decoration: none;
  text-transform: uppercase;
}

.cfm-single-event-title {
  color: #fff;
  font-size: clamp(48px, 6.8vw, 94px);
  letter-spacing: -.075em;
  line-height: .86;
  margin: 20px 0 0;
  max-width: 900px;
}

.cfm-single-event-past-badge {
  background: var(--city-yellow);
  color: var(--city-ink);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: 24px;
  padding: 10px 12px;
  text-transform: uppercase;
}

.cfm-single-event-container {
  padding-bottom: 116px;
  padding-top: 0;
}

.cfm-single-event-layout {
  align-items: start;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin-top: 0;
}

.cfm-single-event-main {
  min-width: 0;
}

.cfm-event-intro-band {
  align-items: stretch;
  border-bottom: 1px solid rgba(39, 24, 37, .18);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(170px, .52fr) minmax(0, 1.48fr);
  margin-bottom: 48px;
  padding: 34px 0;
}

.cfm-event-intro-band__label span,
.cfm-event-copy-kicker {
  color: var(--city-red);
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.cfm-event-intro-band__label strong {
  display: block;
  font-size: 30px;
  letter-spacing: -.06em;
  line-height: .95;
  margin-top: 12px;
}

.cfm-event-quick-facts {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cfm-event-quick-facts>div {
  border-left: 2px solid var(--city-red);
  min-width: 0;
  padding: 2px 0 3px 12px;
}

.cfm-event-quick-facts span {
  color: rgba(39, 24, 37, .65);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.cfm-event-quick-facts strong {
  font-size: 13px;
  line-height: 1.35;
}

.cfm-single-event-description {
  color: var(--city-ink);
  font-size: 18px;
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 720px;
}

.cfm-single-event-description h2,
.cfm-single-event-title-fallback {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -.065em;
  line-height: .94;
  margin: 13px 0 24px;
}

.cfm-single-event-description p {
  margin: 0 0 1.25em;
}

.cfm-single-event-share {
  align-items: center;
  border-bottom: 1px solid rgba(39, 24, 37, .18);
  border-top: 1px solid rgba(39, 24, 37, .18);
  display: flex;
  gap: 20px;
  margin: 42px 0 56px;
  padding: 16px 0;
}

.cfm-single-event-share-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cfm-single-event-share .social-share {
  display: flex;
  gap: 8px;
}

.cfm-single-event-share .share-btn {
  align-items: center;
  background: var(--city-plum);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  transition: transform .18s ease, background .18s ease;
  width: 34px;
}

.cfm-single-event-share .share-btn:hover {
  background: var(--city-red);
  transform: translateY(-2px);
}

.cfm-single-event-sidebar {
  position: sticky;
  top: 108px;
}

.cfm-event-details-card {
  background: #fff;
  border: 0;
  border-top: 5px solid var(--city-red);
  border-radius: 0;
  box-shadow: 0 20px 46px rgba(39, 24, 37, .13);
  overflow: hidden;
  padding: 0;
}

.cfm-event-detail-price {
  background: var(--city-plum);
  color: #fff;
  padding: 26px 26px 23px;
}

.cfm-event-detail-price-label {
  color: var(--city-yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cfm-event-detail-price-value {
  display: block;
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1;
  margin-top: 8px;
}

.cfm-event-detail-price-value.free {
  color: var(--city-yellow);
}

.cfm-event-details-list {
  padding: 8px 26px 10px;
}

.cfm-event-detail-row {
  border-bottom: 1px solid rgba(39, 24, 37, .13);
  display: grid;
  gap: 12px;
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 18px 0;
}

.cfm-event-detail-row:last-child {
  border-bottom: 0;
}

.cfm-event-detail-icon {
  font-size: 15px;
  line-height: 1.15;
}

.cfm-event-detail-label {
  color: var(--city-red);
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.cfm-event-detail-value {
  color: var(--city-ink);
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.cfm-event-detail-sub {
  color: rgba(39, 24, 37, .63);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.cfm-event-ticket-cta {
  background: var(--city-red);
  border-radius: 0;
  color: #fff;
  display: block;
  font-size: 13px;
  font-weight: 800;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease;
}

.cfm-event-ticket-cta:hover {
  background: var(--city-plum);
  color: #fff;
}

.cfm-event-ticket-cta--past {
  background: #ded8ce;
  color: var(--city-ink);
}

.cfm-event-back-link {
  color: var(--city-ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin: 20px 26px 25px;
  text-decoration: none;
}

.cfm-event-gallery,
.cfm-event-videos,
.cfm-event-coverage {
  margin-top: 64px;
}

.cfm-event-section-title {
  align-items: baseline;
  border-bottom: 2px solid var(--city-red);
  color: var(--city-ink);
  display: flex;
  font-size: 27px;
  gap: 9px;
  letter-spacing: -.045em;
  margin: 0 0 20px;
  padding-bottom: 13px;
}

.cfm-event-section-title-icon {
  display: none;
}

.cfm-event-gallery-count {
  color: rgba(39, 24, 37, .58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: auto;
}

.cfm-event-gallery-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cfm-gallery-item {
  aspect-ratio: 1 / .86;
  background: var(--city-plum);
  display: block;
  overflow: hidden;
  position: relative;
}

.cfm-gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.cfm-gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
  width: 100%;
}

.cfm-gallery-item:hover img {
  transform: scale(1.04);
}

.cfm-gallery-item-overlay {
  align-items: center;
  background: rgba(39, 24, 37, .48);
  color: #fff;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transition: opacity .2s ease;
}

.cfm-gallery-item:hover .cfm-gallery-item-overlay {
  opacity: 1;
}

.cfm-event-videos-grid,
.cfm-event-coverage-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cfm-event-video-wrap {
  aspect-ratio: 16 / 9;
  background: var(--city-plum);
}

.cfm-event-video-wrap iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.cfm-coverage-card {
  background: #fff;
  color: var(--city-ink);
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  min-width: 0;
  text-decoration: none;
}

.cfm-coverage-card-thumb {
  background: var(--city-plum);
  min-height: 135px;
}

.cfm-coverage-card-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cfm-coverage-card-body {
  padding: 16px;
}

.cfm-coverage-card-cat {
  color: var(--city-red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cfm-coverage-card-title {
  font-size: 18px;
  letter-spacing: -.04em;
  line-height: 1;
  margin: 8px 0;
}

.cfm-coverage-card-date {
  color: rgba(39, 24, 37, .62);
  font-size: 11px;
}

html.dark-mode .cfm-event-intro-band,
html.dark-mode .cfm-single-event-share,
body.dark-theme .cfm-event-intro-band,
body.dark-theme .cfm-single-event-share {
  border-color: rgba(247, 244, 237, .18);
}

html.dark-mode .cfm-event-quick-facts span,
html.dark-mode .cfm-event-detail-sub,
html.dark-mode .cfm-event-gallery-count,
html.dark-mode .cfm-coverage-card-date,
body.dark-theme .cfm-event-quick-facts span,
body.dark-theme .cfm-event-detail-sub,
body.dark-theme .cfm-event-gallery-count,
body.dark-theme .cfm-coverage-card-date {
  color: rgba(247, 244, 237, .62);
}

html.dark-mode .cfm-event-details-card,
html.dark-mode .cfm-coverage-card,
body.dark-theme .cfm-event-details-card,
body.dark-theme .cfm-coverage-card {
  background: #211827;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .34);
}

html.dark-mode .cfm-event-detail-row,
body.dark-theme .cfm-event-detail-row {
  border-color: rgba(247, 244, 237, .13);
}

html.dark-mode .cfm-event-detail-value,
html.dark-mode .cfm-event-back-link,
html.dark-mode .cfm-coverage-card,
body.dark-theme .cfm-event-detail-value,
body.dark-theme .cfm-event-back-link,
body.dark-theme .cfm-coverage-card {
  color: #f7f4ed;
}

@media (max-width: 840px) {
  .cfm-single-event-layout {
    grid-template-columns: 1fr;
  }

  .cfm-single-event-sidebar {
    position: static;
  }

  .cfm-event-details-card {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .cfm-single-event-hero {
    height: 510px;
    min-height: 0;
  }

  .cfm-single-event-hero-overlay {
    padding: 54px 0 36px;
  }

  .cfm-single-event-title {
    font-size: 51px;
  }

  .cfm-single-event-layout {
    gap: 36px;
  }

  .cfm-event-intro-band {
    gap: 25px;
    grid-template-columns: 1fr;
    margin-bottom: 34px;
    padding: 26px 0;
  }

  .cfm-event-quick-facts {
    grid-template-columns: 1fr;
  }

  .cfm-single-event-description {
    font-size: 16px;
  }

  .cfm-event-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cfm-gallery-item:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .cfm-event-videos-grid,
  .cfm-event-coverage-grid {
    grid-template-columns: 1fr;
  }

  .cfm-single-event-share {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

/* Editorial archive and coverage modules. */
.cfm-event-section-heading {
  border-bottom: 1px solid rgba(39, 24, 37, .18);
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.cfm-event-section-heading>span {
  color: var(--city-red);
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cfm-event-section-heading>p {
  color: rgba(39, 24, 37, .66);
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0 0;
  max-width: 540px;
}

.cfm-event-section-heading .cfm-event-section-title {
  align-items: baseline;
  border: 0;
  display: flex;
  font-size: clamp(30px, 3.5vw, 43px);
  gap: 14px;
  margin: 0;
  padding: 0;
}

.cfm-event-section-heading .cfm-event-gallery-count {
  color: rgba(39, 24, 37, .58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-left: auto;
  text-transform: uppercase;
}

.cfm-event-gallery {
  background: #eee8dd;
  margin-left: -32px;
  margin-right: -32px;
  padding: 42px 32px;
}

.cfm-event-gallery-grid {
  gap: 10px;
}

.cfm-gallery-item {
  aspect-ratio: 1 / .78;
}

.cfm-gallery-item:first-child {
  aspect-ratio: auto;
  min-height: 380px;
}

.cfm-event-coverage {
  padding-top: 12px;
}

.cfm-event-coverage-grid {
  gap: 12px;
}

.cfm-coverage-card {
  border-top: 3px solid var(--city-red);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cfm-coverage-card:hover {
  box-shadow: 0 16px 30px rgba(39, 24, 37, .12);
  transform: translateY(-3px);
}

html.dark-mode .cfm-event-section-heading,
body.dark-theme .cfm-event-section-heading {
  border-color: rgba(247, 244, 237, .18);
}

html.dark-mode .cfm-event-section-heading>p,
html.dark-mode .cfm-event-section-heading .cfm-event-gallery-count,
body.dark-theme .cfm-event-section-heading>p,
body.dark-theme .cfm-event-section-heading .cfm-event-gallery-count {
  color: rgba(247, 244, 237, .66);
}

html.dark-mode .cfm-event-gallery,
body.dark-theme .cfm-event-gallery {
  background: #211827;
}

@media (max-width: 560px) {
  .cfm-event-gallery {
    margin-left: -15px;
    margin-right: -15px;
    padding: 28px 15px;
  }

  .cfm-event-section-heading .cfm-event-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .cfm-event-section-heading .cfm-event-gallery-count {
    margin-left: 0;
  }

  .cfm-gallery-item:first-child {
    min-height: 270px;
  }
}

/* Reliable editorial coverage cards: never allow theme-wide image overlays to cover copy. */
.cfm-event-coverage-grid {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.cfm-coverage-card {
  background: #fff !important;
  border: 1px solid rgba(39, 24, 37, .12);
  box-shadow: 0 10px 22px rgba(39, 24, 37, .07);
  color: #271825 !important;
  display: grid !important;
  grid-template-columns: minmax(150px, 39%) minmax(0, 1fr) !important;
  min-height: 178px;
  overflow: hidden;
  position: relative !important;
  text-decoration: none !important;
}

.cfm-coverage-card-thumb {
  background: #2c132b;
  min-height: 178px;
  overflow: hidden;
  position: relative !important;
}

.cfm-coverage-card-thumb img {
  display: block !important;
  height: 100% !important;
  left: auto !important;
  object-fit: cover !important;
  position: static !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
}

.cfm-coverage-card-thumb-placeholder {
  align-items: center;
  color: #f5c518;
  display: flex;
  height: 100%;
  justify-content: center;
}

.cfm-coverage-card-body {
  background: #fff !important;
  display: flex !important;
  flex-direction: column;
  min-width: 0;
  padding: 20px !important;
  position: relative !important;
  z-index: 2;
}

.cfm-coverage-card-cat {
  color: #e8192c !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  line-height: 1.1;
  text-transform: uppercase;
}

.cfm-coverage-card-title {
  color: #271825 !important;
  font-size: clamp(18px, 1.6vw, 23px) !important;
  font-weight: 800 !important;
  letter-spacing: -.045em !important;
  line-height: 1.03 !important;
  margin: 9px 0 13px !important;
  overflow-wrap: anywhere;
}

.cfm-coverage-card-date {
  color: rgba(39, 24, 37, .58) !important;
  font-size: 11px !important;
  font-weight: 700;
}

.cfm-coverage-card-body::after {
  color: #271825;
  content: 'Read full story ↗';
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-top: auto;
  padding-top: 15px;
  text-transform: uppercase;
}

.cfm-coverage-card:hover {
  box-shadow: 0 18px 34px rgba(39, 24, 37, .14) !important;
  transform: translateY(-3px);
}

.cfm-coverage-card:hover .cfm-coverage-card-thumb img {
  transform: scale(1.04) !important;
  transition: transform .3s ease;
}

html.dark-mode .cfm-coverage-card,
html.dark-mode .cfm-coverage-card-body,
body.dark-theme .cfm-coverage-card,
body.dark-theme .cfm-coverage-card-body {
  background: #211827 !important;
  border-color: rgba(247, 244, 237, .15);
}

html.dark-mode .cfm-coverage-card-title,
html.dark-mode .cfm-coverage-card-body::after,
body.dark-theme .cfm-coverage-card-title,
body.dark-theme .cfm-coverage-card-body::after {
  color: #f7f4ed !important;
}

html.dark-mode .cfm-coverage-card-date,
body.dark-theme .cfm-coverage-card-date {
  color: rgba(247, 244, 237, .63) !important;
}

@media (max-width: 700px) {
  .cfm-event-coverage-grid {
    grid-template-columns: 1fr !important;
  }

  .cfm-coverage-card {
    grid-template-columns: 132px minmax(0, 1fr) !important;
    min-height: 148px;
  }

  .cfm-coverage-card-thumb {
    min-height: 148px;
  }

  .cfm-coverage-card-body {
    padding: 15px !important;
  }

  .cfm-coverage-card-title {
    font-size: 19px !important;
    margin: 6px 0 10px !important;
  }

  .cfm-coverage-card-body::after {
    display: none;
  }
}