/* Shared styles for sermon/event/ministry pages — dark theme matching /about. */

/* Brand tokens. Defaults match the existing dark theme; the Admin → Settings →
   Brand panel overrides these on documentElement via js/site-config.js. */
:root {
  --brand-bg: #0a0a0b;
  --brand-text: #f4efe8;
  --brand-primary: #ffffff;
  --brand-heading-font: helvetica-neue-lt-pro;
  --brand-body-font: gotham;
}

.marketing-body {
  background-color: var(--brand-bg, #0a0a0b);
  color: var(--brand-text, #f4efe8);
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: rgba(244, 239, 232, 0.5);
  margin: 0 0 1.1em;
}

.marketing-hero {
  padding-top: 6em;
  padding-bottom: 4em;
}
.marketing-hero__lede {
  max-width: 38em;
  margin-top: 1.2em;
  color: rgba(244, 239, 232, 0.75);
}
.marketing-hero__title {
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.marketing-section { padding: 4em 0; }
.marketing-section + .marketing-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.marketing-loading,
.marketing-empty {
  color: rgba(244, 239, 232, 0.55);
  padding: 1.4em 0;
}

.marketing-footer {
  padding: 2.5em 0 3.5em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(244, 239, 232, 0.5);
}
.marketing-footer a { color: rgba(244, 239, 232, 0.8); }

/* ---------- Home events scroller ---------- */
.home-events {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1em;
}
.home-events__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.home-events__title { margin: 0; }
.home-events__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  white-space: nowrap;
}
.home-events__viewport {
  position: relative;
  min-width: 0;
}
.home-events__scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(4em, calc(50vw - 37.5rem + 4em));
  scroll-padding-right: max(4em, calc(50vw - 37.5rem + 4em));
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Full-bleed: cards run to the page edges and slide off both sides, while
     the first/last card still line up with the container gutter. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -0.25rem;
  padding-left: max(4em, calc(50vw - 37.5rem + 4em));
  padding-right: max(4em, calc(50vw - 37.5rem + 4em));
  padding-top: 0.25rem;
  padding-bottom: 1rem;
}
.home-events__scroll::-webkit-scrollbar { display: none; }
/* Clip whatever scrolls past the viewport so there's no page scrollbar. */
#events { overflow-x: clip; }
.home-events__empty {
  color: rgba(244, 239, 232, 0.6);
  font-size: 1rem;
  margin: 0;
  padding: 2rem 0;
}

.home-event-card {
  flex: 0 0 auto;
  width: clamp(260px, 32%, 340px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 0.4em 0.4em 1.25em;
  color: var(--white, #fff);
  border: 1px solid #6a6a6a;
  border-radius: 1.5em;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.home-event-card:hover {
  border-color: var(--white, #fff);
  background-color: rgba(255, 255, 255, 0.06);
}
.home-event-card__media {
  border-radius: 1em;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: rgba(255, 255, 255, 0.04);
}
.home-event-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-event-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 0 0.6em;
}
.home-event-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
}
.home-event-card__title {
  margin: 0;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white, #fff);
}
.home-event-card__arrow {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background-color: #ffffff;
  color: #131313;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.home-event-card:hover .home-event-card__arrow {
  transform: translateX(2px);
}
.home-event-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  font-size: 0.9rem;
  color: rgba(244, 239, 232, 0.7);
}
.home-event-card__when { font-weight: 500; color: rgba(244, 239, 232, 0.85); }
.home-event-card__location { font-size: 0.85rem; }

.home-events__nav-group {
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin-top: 2em;
}
/* Collapse the group (and its margin) when neither arrow is shown. */
.home-events__nav-group:not(:has(button:not([hidden]))) { display: none; }
.home-events__nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(19, 19, 19, 0.12);
  background-color: #fff;
  color: #131313;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.home-events__nav:hover { background-color: #f4efe8; border-color: rgba(19, 19, 19, 0.25); }
.home-events__nav:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 780px) {
  .home-event-card { width: 78vw; max-width: 320px; }
}

/* Tablet: .container.middl side padding drops to 2em at <=767px. */
@media (max-width: 767px) {
  .home-events__scroll {
    scroll-padding-left: max(2em, calc(50vw - 37.5rem + 2em));
    scroll-padding-right: max(2em, calc(50vw - 37.5rem + 2em));
    padding-left: max(2em, calc(50vw - 37.5rem + 2em));
    padding-right: max(2em, calc(50vw - 37.5rem + 2em));
  }
}

/* Phone: .container.middl side padding drops to 1em at <=479px. */
@media (max-width: 479px) {
  .home-events__scroll {
    scroll-padding-left: max(1em, calc(50vw - 37.5rem + 1em));
    scroll-padding-right: max(1em, calc(50vw - 37.5rem + 1em));
    padding-left: max(1em, calc(50vw - 37.5rem + 1em));
    padding-right: max(1em, calc(50vw - 37.5rem + 1em));
  }
}

/* ---------- New Here (What to expect on Sunday) ---------- */
.new-here {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.5rem;
  align-items: center;
  padding: 2rem 0;
}
.new-here__media {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: #e7e0d4;
  box-shadow: 0 30px 60px -30px rgba(19, 19, 19, 0.25);
}
.new-here__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.new-here__content { color: #131313; }
.new-here__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(19, 19, 19, 0.55);
}
.new-here__title {
  margin: 0 0 1rem;
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-text-stroke-width: 0.04em;
  -webkit-text-stroke-color: #131313;
  color: #131313;
}
.new-here__lede {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(19, 19, 19, 0.72);
  max-width: 34rem;
}

.new-here__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.new-here__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(19, 19, 19, 0.08);
  border-radius: 1rem;
}
.new-here__item-title {
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: #131313;
}
.new-here__item-body {
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(19, 19, 19, 0.68);
}

.new-here__visit {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(19, 19, 19, 0.1);
}
.new-here__address-label {
  margin: 0 0 0.4rem;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(19, 19, 19, 0.55);
}
.new-here__address-line {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  line-height: 1.35;
  color: #131313;
  font-weight: 500;
}
.new-here__maps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.new-here__map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #131313;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(19, 19, 19, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.new-here__map-link:hover { border-color: #131313; opacity: 0.85; }
.new-here__map-link svg { color: rgba(19, 19, 19, 0.65); }

.new-here__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.new-here__cta,
.im-new-page .section.texture .button,
.im-new-page .im-new__visit-card .button {
  background-color: #131313;
  color: #ffffff;
  text-decoration: none;
}
.new-here__cta:hover,
.im-new-page .section.texture .button:hover,
.im-new-page .im-new__visit-card .button:hover {
  color: #ffffff;
  opacity: 0.85;
}
.new-here__secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #131313;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 19, 19, 0.35);
  padding-bottom: 1px;
}
.new-here__secondary:hover { border-color: #131313; }

@media (max-width: 900px) {
  .new-here { grid-template-columns: 1fr; gap: 2.25rem; }
  .new-here__media { aspect-ratio: 4 / 3; max-height: 460px; }
}
@media (max-width: 560px) {
  .new-here__list { grid-template-columns: 1fr; }
  .new-here__visit { flex-direction: column; align-items: flex-start; }
}

/* ---------- I'm New page ---------- */
/* Body becomes white so .section.dark's 2em rounded corners cut against white,
   and .section.texture (white gradient + transparent middle) renders truly
   light instead of showing the dark body through the middle band. */
.im-new-page { background-color: #ffffff; }
.im-new-page .section.texture .container { color: #131313; }
.im-new-page .ministry-hero { background-color: #ffffff; }

.im-new__visit-section { padding: 4.5em 0; }
.im-new__visit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.im-new__visit-card {
  background: #fff;
  color: #131313;
  border: 1px solid rgba(19, 19, 19, 0.08);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 30px 60px -40px rgba(19, 19, 19, 0.25);
}
.im-new__visit-card .im-new__visit-title { color: #131313; }
.im-new__visit-card--alt { background: #131313; color: #f4f1ea; border-color: #131313; }
.im-new__visit-card--alt .im-new__visit-eyebrow { color: rgba(244, 241, 234, 0.6); }
.im-new__visit-card--alt .im-new__visit-title { color: #f4f1ea; }
.im-new__visit-card--alt .im-new__visit-list li { border-color: rgba(244, 241, 234, 0.15); }
.im-new__visit-card--alt .im-new__visit-list span { color: rgba(244, 241, 234, 0.55); }
.im-new__visit-card--alt .im-new__visit-list strong { color: #f4f1ea; }
.im-new__visit-card--alt .im-new__visit-secondary { color: #f4f1ea; border-color: rgba(244, 241, 234, 0.4); }
.im-new__visit-eyebrow {
  margin: 0;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(19, 19, 19, 0.55);
}
.im-new__visit-title {
  margin: 0;
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.im-new__visit-list { list-style: none; padding: 0; margin: 0; }
.im-new__visit-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(19, 19, 19, 0.08);
  font-size: 0.95rem;
}
.im-new__visit-list li:last-child { border-bottom: none; }
.im-new__visit-list span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(19, 19, 19, 0.5);
}
.im-new__visit-list strong { font-weight: 600; text-align: right; }
.im-new__visit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: auto;
}
.im-new__visit-actions .button { text-decoration: none; }
.im-new__visit-secondary {
  display: inline-flex;
  align-items: center;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #131313;
  text-decoration: none;
  border-bottom: 1px solid rgba(19, 19, 19, 0.35);
  padding-bottom: 1px;
}

.im-new__section-title {
  margin: 0.5rem 0 1.5rem;
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.im-new__expect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.im-new__expect {
  padding: 1.5rem;
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: 1rem;
  background: rgba(244, 241, 234, 0.03);
}
.im-new__expect-title {
  margin: 0 0 0.5rem;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.im-new__expect-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(244, 241, 234, 0.72);
}

.im-new__feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
}
.im-new__feature--reverse .im-new__feature-media { order: 2; }
.im-new__feature-media {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px -40px rgba(19, 19, 19, 0.45);
}
.im-new__feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-new__feature-eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: currentColor;
  opacity: 0.6;
}
.im-new__feature-title {
  margin: 0 0 1rem;
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.im-new__feature-text { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.55; opacity: 0.8; max-width: 36rem; }
.im-new__feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.55rem;
}
.im-new__feature-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0.85;
}
.im-new__feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.6;
}
.im-new__feature-list a { color: inherit; text-decoration: underline; }

.im-new__first-step {
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto;
  gap: 2rem;
  align-items: end;
}
.im-new__first-step-cta { display: flex; justify-content: flex-end; }

.im-new__faq { display: grid; gap: 0.6rem; max-width: 52rem; }
.im-new__faq-item {
  border: 1px solid rgba(244, 241, 234, 0.14);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(244, 241, 234, 0.03);
}
.im-new__faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.im-new__faq-item summary::-webkit-details-marker { display: none; }
.im-new__faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.6;
  transition: transform 0.15s ease;
}
.im-new__faq-item[open] summary::after { content: "−"; }
.im-new__faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.78;
}
.im-new__faq-item a { color: inherit; text-decoration: underline; }

.im-new__final {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}
.im-new__final .im-new__feature-text { margin-left: auto; margin-right: auto; }
.im-new__final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .im-new__visit-grid { grid-template-columns: 1fr; }
  .im-new__expect-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .im-new__feature, .im-new__feature--reverse { grid-template-columns: 1fr; gap: 1.75rem; }
  .im-new__feature--reverse .im-new__feature-media { order: 0; }
  .im-new__first-step { grid-template-columns: 1fr; align-items: start; }
  .im-new__first-step-cta { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .im-new__expect-grid { grid-template-columns: 1fr; }
  .im-new__visit-list li { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .im-new__visit-list strong { text-align: left; }
}

/* ---------- Sitewide footer (Pastoral) ---------- */
.site-footer {
  background-color: #131313;
  color: #f4efe8;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 2em;
  border-top-right-radius: 2em;
  padding: 5rem 0 2.5rem;
}
.site-footer a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-footer__band {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer__band-text { max-width: 36rem; }
.site-footer__statement {
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-text-stroke-width: 0.04em;
  -webkit-text-stroke-color: #f4efe8;
  color: #f4efe8;
  margin: 0 0 0.6rem;
}
.site-footer__times {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(244, 239, 232, 0.75);
}

.site-footer__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.site-footer .site-footer__cta,
.site-footer a.site-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.5em;
  border-radius: 1000em;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  background-color: var(--brand-primary, #ffffff);
  color: #131313;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.site-footer a.site-footer__cta:hover,
.site-footer a.site-footer__cta:visited { color: #131313; }
.site-footer a.site-footer__cta:hover { opacity: 0.7; }
.site-footer a.site-footer__cta.site-footer__cta--ghost,
.site-footer a.site-footer__cta.site-footer__cta--ghost:visited,
.site-footer a.site-footer__cta.site-footer__cta--ghost:hover {
  color: #f4efe8;
}
.site-footer a.site-footer__cta.site-footer__cta--ghost {
  background-color: #131313;
  color: #f4efe8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 600;
}
.site-footer a.site-footer__cta.site-footer__cta--ghost:hover {
  background-color: #1f1f1f;
  opacity: 1;
  color: #f4efe8;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem;
  margin-bottom: 4rem;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 1.75rem; }
.site-footer__logo-link { display: inline-block; }
.site-footer__logo { display: block; width: 220px; max-width: 100%; height: auto; }
.site-footer__tagline {
  margin: 0;
  color: rgba(244, 239, 232, 0.55);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 20rem;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.site-footer__heading {
  margin: 0 0 1.25rem;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(244, 239, 232, 0.55);
}
.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.95rem;
}
.site-footer__links a { color: rgba(244, 239, 232, 0.75); }
.site-footer__links a:hover { color: #f4efe8; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: rgba(244, 239, 232, 0.55);
}
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
.site-footer__legal-links { display: inline-flex; align-items: center; gap: 0.6rem; }
.site-footer__legal-links a:hover { color: rgba(244, 239, 232, 0.85); }
.site-footer__meta { display: flex; align-items: center; gap: 1.25rem; }
.site-footer__address { color: rgba(244, 239, 232, 0.75); font-size: 0.9rem; }
.site-footer__socials {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(244, 239, 232, 0.75);
  transition: color 0.2s ease, opacity 0.2s ease;
}
.site-footer__social:hover { color: #f4efe8; opacity: 1; }
.site-footer__social img,
.site-footer__social svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: invert(1) brightness(1.1);
}

@media (max-width: 760px) {
  .site-footer { padding: 3.5rem 0 2rem; }
  .site-footer__main { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .site-footer__nav { grid-template-columns: 1fr; }
}

/* ---------- Card grid (used by /sermons & series detail) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8em;
  margin-top: 2.5em;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-3px); }
.card__media {
  aspect-ratio: 16/10;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.6em;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card__title {
  margin: 0;
  font-size: 1.05rem;
  color: #f4efe8;
  font-weight: 500;
}
.card__meta {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 232, 0.55);
}
.livestream-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  padding: 1.75em 2em;
  border: 1px solid rgba(244, 239, 232, 0.14);
  border-radius: 0.75em;
  background: rgba(244, 239, 232, 0.04);
  flex-wrap: wrap;
}
.livestream-card__body { display: grid; gap: 0.35em; }
.livestream-card__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 232, 0.6);
}
.livestream-card__text {
  margin: 0;
  font-size: 1.1rem;
  color: #f4efe8;
}

.card__description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(244, 239, 232, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Series groups on /sermons ---------- */
.series-group { margin-top: 3.5em; }
.series-group:first-of-type { margin-top: 2em; }
.series-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1em;
}
.series-group__title {
  margin: 0;
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
}
.series-group__link {
  color: rgba(244, 239, 232, 0.7);
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
}
.series-group__link:hover { color: #fff; }

/* ---------- Single-record detail layouts ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3.5em;
  align-items: start;
}
@media (max-width: 880px) {
  .detail-layout { grid-template-columns: 1fr; gap: 2em; }
}
.detail-media {
  aspect-ratio: 16/10;
  background: rgba(255,255,255,0.04);
  border-radius: 0.75em;
  overflow: hidden;
}
.detail-media img,
.detail-media iframe {
  width: 100%; height: 100%; display: block; border: 0; object-fit: cover;
}
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.detail-meta__row {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.detail-meta__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 232, 0.5);
}
.detail-meta__value { color: #f4efe8; font-size: 1rem; }
.detail-body {
  margin-top: 2.5em;
  max-width: 50em;
  color: rgba(244, 239, 232, 0.8);
  line-height: 1.75;
  white-space: pre-wrap;
}
.detail-actions {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 1.5em;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: 2.5em;
  padding: 0.55em 1.1em 0.55em 0.95em;
  color: rgba(244, 239, 232, 0.75);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(244, 239, 232, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.detail-back:hover {
  color: #f4efe8;
  border-color: rgba(244, 239, 232, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.detail-meta__dates { list-style: disc; margin: 0.2em 0 0 1.2em; padding: 0; }
.detail-meta__dates li { margin: 0.15em 0; }

/* ---------- Content blocks ---------- */
.detail-body .block-heading { color: #f4efe8; margin: 1.6em 0 0.4em; line-height: 1.2; }
.detail-body .block-heading--h2 { font-size: 1.9rem; }
.detail-body .block-heading--h3 { font-size: 1.4rem; }
.detail-body .block-paragraph { margin: 0 0 1em; }
.detail-body .block-paragraph a { color: #f4efe8; text-decoration: underline; }
.detail-body .block-image { margin: 1.5em 0; }
.detail-body .block-image img { display: block; width: 100%; height: auto; border-radius: 0.5em; }
.detail-body .block-image figcaption {
  margin-top: 0.5em;
  font-size: 0.85rem;
  color: rgba(244, 239, 232, 0.55);
  text-align: center;
}
.detail-body .block-button { margin: 1.5em 0; }
.detail-body .block-button .button,
.detail-body .block-button a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.6em;
  background-color: #131313;
  color: #f4efe8;
  border: 1px solid #131313;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.detail-body .block-button .button:hover,
.detail-body .block-button a.button:hover {
  background-color: #2a2a2a;
  color: #f4efe8;
  opacity: 0.95;
}
/* Light mode: keep the same dark pill so it stays high-contrast on cream. */
.marketing-body--light .detail-body .block-button .button,
.marketing-body--light .detail-body .block-button a.button {
  background-color: #131313;
  color: #f4efe8;
  border-color: #131313;
}
.marketing-body--light .detail-body .block-button .button:hover,
.marketing-body--light .detail-body .block-button a.button:hover {
  background-color: #2a2a2a;
  color: #f4efe8;
}
.detail-body .block-video { margin: 1.5em 0; }
.detail-body .block-video__wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 0.5em;
  overflow: hidden;
  background: #000;
}
.detail-body .block-video__wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
/* Uploaded files size to their natural aspect ratio rather than forcing 16:9. */
.detail-body .block-video__wrap--file {
  padding-bottom: 0;
}
.detail-body .block-video__wrap--file video {
  display: block; width: 100%; height: auto;
}
/* Runs of 2+ adjacent videos sit side-by-side (mirrors `.page-section` grid). */
.detail-body .block-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2em;
  margin: 1.5em 0;
}
.detail-body .block-video-grid .block-video {
  margin: 0;
}
/* Two videos across on tablet and up; single column on mobile. */
@media (min-width: 600px) {
  .detail-body .block-video-grid[data-count="2"],
  .detail-body .block-video-grid[data-count="3"],
  .detail-body .block-video-grid[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
}
.detail-body .block-list { margin: 0 0 1em 1.2em; padding: 0; }
.detail-body .block-list li { margin: 0.3em 0; }
.detail-body .block-divider {
  border: 0;
  border-top: 1px solid rgba(244, 239, 232, 0.15);
  margin: 2em 0;
}
.detail-body .block-quote {
  margin: 1.5em 0;
  padding: 0.8em 1.2em;
  border-left: 3px solid rgba(244, 239, 232, 0.35);
  font-style: italic;
  color: #f4efe8;
}
.detail-body .block-quote cite {
  display: block;
  margin-top: 0.5em;
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(244, 239, 232, 0.55);
}
[data-event-blocks] { white-space: normal; }

/* ---------- Light-mode override (scoped to .marketing-body--light) ---------- */
/* Re-tints the event detail surfaces (hero, body section, meta card, date
   tiles, back button, content blocks) onto a neutral light-gray background
   with dark ink. The site footer keeps its original dark colors. */
.marketing-body--light {
  background-color: #f3f3f4;
  color: #131313;
}
.marketing-body--light .section.dark,
.marketing-body--light .event-detail__hero,
.marketing-body--light .event-detail__body-section {
  background-color: #f3f3f4;
  color: #131313;
}
.marketing-body--light .event-detail__title { color: #131313; }
.marketing-body--light .event-detail__media {
  background: rgba(0, 0, 0, 0.06);
}

/* Back-button pill */
.marketing-body--light .detail-back {
  color: rgba(19, 19, 19, 0.75);
  border-color: rgba(19, 19, 19, 0.2);
  background: rgba(0, 0, 0, 0.025);
}
.marketing-body--light .detail-back:hover {
  color: #131313;
  border-color: rgba(19, 19, 19, 0.5);
  background: rgba(0, 0, 0, 0.06);
}

/* Meta card */
.marketing-body--light .event-detail__meta-card {
  border: 1px solid rgba(19, 19, 19, 0.12);
  background: rgba(255, 255, 255, 0.55);
}
.marketing-body--light .event-detail__meta-label {
  color: rgba(19, 19, 19, 0.55);
}
.marketing-body--light .event-detail__meta-value { color: #131313; }

/* Date row + tiles */
.marketing-body--light .event-detail__date-row {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(19, 19, 19, 0.08);
}
.marketing-body--light .event-detail__date-tile {
  background: #131313;
  color: #f4efe8;
}
.marketing-body--light .event-detail__date-dow,
.marketing-body--light .event-detail__date-mon {
  color: rgba(244, 239, 232, 0.7);
}
.marketing-body--light .event-detail__date-day { color: #f4efe8; }
.marketing-body--light .event-detail__date-full { color: rgba(19, 19, 19, 0.5); }
.marketing-body--light .event-detail__date-time { color: #131313; font-weight: 600; }
.marketing-body--light .event-detail__date-endpoint-label { color: rgba(19, 19, 19, 0.55); }
.marketing-body--light .event-detail__date-endpoint-time { color: #131313; }
.marketing-body--light .event-detail__date-arrow { color: rgba(19, 19, 19, 0.45); }
.marketing-body--light .event-detail__date-year,
.marketing-body--light .event-detail__date-endpoint-year,
.marketing-body--light .event-detail__date-stack-year {
  color: rgba(19, 19, 19, 0.55);
  border-top-color: rgba(19, 19, 19, 0.15);
}
.marketing-body--light .event-detail__date-intro {
  color: #131313;
  background: rgba(19, 19, 19, 0.06);
  border-color: rgba(19, 19, 19, 0.15);
}
.marketing-body--light .event-detail__date-occurrence-label { color: #131313; }

/* Where (location) */
.marketing-body--light .event-detail__where-name { color: #131313; }
.marketing-body--light .event-detail__where-name--link {
  border-bottom-color: rgba(19, 19, 19, 0.3);
}
.marketing-body--light .event-detail__where-name--link:hover {
  border-bottom-color: #131313;
}
.marketing-body--light .event-detail__where-addr {
  color: rgba(19, 19, 19, 0.6);
}
.marketing-body--light a.event-detail__where-addr:hover { color: #131313; }

/* Add-to-calendar button + actions divider */
.marketing-body--light .event-detail__meta-actions {
  border-top-color: rgba(19, 19, 19, 0.1);
}
.marketing-body--light .event-detail__cal-btn {
  color: #131313;
  border-color: rgba(19, 19, 19, 0.35);
}
.marketing-body--light .event-detail__cal-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(19, 19, 19, 0.6);
}

/* Content blocks (paragraphs, headings, captions, dividers, quotes) */
.marketing-body--light .detail-body { color: rgba(19, 19, 19, 0.85); }
.marketing-body--light .detail-body .block-heading { color: #131313; }
.marketing-body--light .detail-body .block-paragraph a {
  color: #131313;
}
.marketing-body--light .detail-body .block-image figcaption {
  color: rgba(19, 19, 19, 0.6);
}
.marketing-body--light .detail-body .block-divider {
  border-top-color: rgba(19, 19, 19, 0.15);
}
.marketing-body--light .detail-body .block-quote {
  color: #131313;
  border-left-color: rgba(19, 19, 19, 0.35);
}
.marketing-body--light .detail-body .block-quote cite {
  color: rgba(19, 19, 19, 0.6);
}

/* ---------- Events listing (centered + bold title to match event detail) ---------- */
.events-list__hero > .container,
.events-list__section > .container {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}
.events-list__title {
  font-weight: 900;
  -webkit-text-stroke: 1.5px #f4efe8;
  -webkit-text-stroke-color: #f4efe8;
  paint-order: stroke fill;
}
/* Drop the eyebrow/title/lede down so they sit just above the filter line. */
.events-list__hero {
  padding-top: 9.5em;
  padding-bottom: 1.5em;
}
.events-list__section {
  padding-top: 0;
}
.events-list__section .filter-bar {
  margin-top: 0;
  border-bottom: none;
}
/* Event cards run off the page edges in a full-bleed horizontal scroller; the
   section clips whatever scrolls past the viewport so there's no page scrollbar
   and cards slide smoothly off the sides. */
.events-list__section { overflow-x: clip; }
.events-list__section > .container { overflow: visible; }
.events-list__section .card-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.8em;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(4em, calc(50vw - 37.5rem + 4em));
  padding-right: max(4em, calc(50vw - 37.5rem + 4em));
  padding-top: 0.5em;
  padding-bottom: 0.75em;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.events-list__section .card-grid::-webkit-scrollbar { display: none; }
.events-list__section .card-grid > .card {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 340px);
}
/* The Webflow container drops to 1em side padding on phones — match it so the
   first/last cards stay aligned with the page gutter. */
@media screen and (max-width: 479px) {
  .events-list__section .card-grid {
    padding-left: max(1em, calc(50vw - 37.5rem + 1em));
    padding-right: max(1em, calc(50vw - 37.5rem + 1em));
  }
}

/* ---------- Event detail (hero with title + 16:9 graphic → meta card → blocks) ---------- */

/* Detail/marketing template pages: no rounded section or footer corners. */
.marketing-body .section.dark { border-radius: 0; }
.marketing-body .site-footer {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Center the detail page contents on wide screens. */
.event-detail__hero > .container,
.event-detail__body-section > .container {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

.event-detail__hero { padding: 6em 0 1em; }
.event-detail__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3em;
  align-items: center;
}
.event-detail__hero-grid--no-media { grid-template-columns: minmax(0, 1fr); }
.event-detail__title {
  font-size: clamp(2.6rem, 5.4vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin: 0;
  -webkit-text-stroke: 1.5px currentColor;
  paint-order: stroke fill;
}
.event-detail__media {
  aspect-ratio: 16 / 9;
  border-radius: 1em;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.event-detail__media img,
.event-detail__media iframe {
  width: 100%; height: 100%; display: block; object-fit: cover; border: 0;
}
@media (max-width: 880px) {
  /* Extra top padding so the back-button pill clears the fixed nav bar. */
  .event-detail__hero { padding: 7.5em 0 0.5em; }
  .event-detail__hero-grid { grid-template-columns: 1fr; gap: 1.25em; }
  .event-detail__media { border-radius: 0.85em; }
}

.event-detail__body-section { padding: 0.5em 0 5em; }
@media (max-width: 880px) {
  .event-detail__body-section { padding: 0.25em 0 4em; }
}

.event-detail__body-grid {
  display: grid;
  grid-template-columns: 22em minmax(0, 1fr);
  gap: 2.5em;
  align-items: start;
}
.event-detail__body-col { min-width: 0; }
@media (max-width: 880px) {
  .event-detail__body-grid { grid-template-columns: 1fr; gap: 2em; }
}

.event-detail__meta-card {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
  padding: 1.6em 1.6em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.025);
}
@media (min-width: 881px) {
  .event-detail__meta-card {
    position: sticky;
    top: 6em;
  }
}
.event-detail__meta-grid {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}
@media (max-width: 720px) {
  .event-detail__meta-card { padding: 1.4em 1.4em; border-radius: 0.85em; }
}
.event-detail__meta-cell { display: flex; flex-direction: column; gap: 0.4em; min-width: 0; }
.event-detail__meta-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(244, 239, 232, 0.55);
}
.event-detail__meta-value {
  color: #f4efe8;
  font-size: 1.12rem;
  line-height: 1.45;
  word-wrap: break-word;
}
/* Date presentation in the info card */
.event-detail__date-stack {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.event-detail__date-intro {
  display: block;
  width: 100%;
  margin: 0 0 0.9em;
  padding: 0.75em 0.6em;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: #f4efe8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
.event-detail__date-occurrence {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
}
.event-detail__date-occurrence-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4efe8;
}
.event-detail__date-row {
  display: grid;
  align-items: center;
  gap: 1em;
  padding: 0.85em 0.9em;
  border-radius: 0.75em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.event-detail__date-row--single { grid-template-columns: auto minmax(0, 1fr); }
.event-detail__date-row--range {
  grid-template-columns: 1fr;
  justify-items: start;
  row-gap: 0.6em;
}
.event-detail__date-row--range .event-detail__date-arrow {
  transform: rotate(90deg);
  /* Center horizontally under the date tile (tile is 4em wide, arrow 22px). */
  margin-left: calc(2em - 11px);
}
.event-detail__date-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25em;
  width: 4em;
  padding: 0.55em 0.3em;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.55em;
  line-height: 1;
  flex: 0 0 auto;
}
.event-detail__date-dow,
.event-detail__date-mon {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.6);
  line-height: 1;
}
.event-detail__date-day {
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #f4efe8;
  line-height: 1;
  margin-top: 0.1em;
}
.event-detail__date-meta { display: flex; flex-direction: column; gap: 0.3em; min-width: 0; }
.event-detail__date-full {
  font-size: 1.05rem;
  color: #f4efe8;
  line-height: 1.3;
}
.event-detail__date-time {
  font-size: 0.95rem;
  color: rgba(244, 239, 232, 0.7);
}
.event-detail__date-endpoint {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  min-width: 0;
  align-self: stretch;
  width: 100%;
}
.event-detail__date-endpoint-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  min-width: 0;
}
.event-detail__date-endpoint-year {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.55);
  text-align: center;
  padding-top: 0.5em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}
.event-detail__date-endpoint-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  min-width: 0;
}
.event-detail__date-endpoint-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.5);
}
.event-detail__date-endpoint-time {
  font-size: 0.98rem;
  color: #f4efe8;
  white-space: nowrap;
}
.event-detail__date-arrow {
  color: rgba(244, 239, 232, 0.5);
  flex: 0 0 auto;
  justify-self: center;
}
.event-detail__date-year {
  grid-column: 1 / -1;
  width: 100%;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.55);
  text-align: center;
  padding-top: 0.5em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.event-detail__date-stack-year {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.55);
  text-align: center;
  padding-top: 0.6em;
  margin-top: 0.2em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.event-detail__where {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  min-width: 0;
}
.event-detail__where-name {
  color: #f4efe8;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 500;
  word-wrap: break-word;
}
.event-detail__where-name--link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 239, 232, 0.25);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: border-color 0.15s ease;
}
.event-detail__where-name--link:hover { border-bottom-color: #f4efe8; }
.event-detail__where-addr {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45em;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(244, 239, 232, 0.6);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.15s ease;
}
a.event-detail__where-addr:hover { color: #f4efe8; }
.event-detail__where-pin {
  flex: 0 0 auto;
  margin-top: 0.18em;
  opacity: 0.75;
}

.event-detail__meta-actions {
  display: flex;
  gap: 0.75em;
  flex-wrap: wrap;
  padding-top: 1.2em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.event-detail__cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.1em;
  border-radius: 999px;
  background: transparent;
  color: #f4efe8;
  border: 1px solid rgba(244, 239, 232, 0.35);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.event-detail__cal-btn:hover {
  background: rgba(244, 239, 232, 0.08);
  border-color: rgba(244, 239, 232, 0.6);
}
.event-detail__cal-btn svg { flex: 0 0 auto; }

.event-detail__body { margin-top: 0; max-width: none; }

/* ---------- Ministry pages ---------- */
.ministry-hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.ministry-hero__media {
  position: relative;
  height: 60vh;
  min-height: 28em;
  max-height: 40em;
  overflow: hidden;
}
.ministry-hero__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ministry-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,11,0.25) 0%,
    rgba(10,10,11,0.55) 60%,
    rgba(10,10,11,1) 100%);
}
.ministry-hero__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3em 0 2.5em;
  z-index: 1;
}
.ministry-hero__eyebrow {
  color: rgba(244, 239, 232, 0.7);
  margin: 0 0 0.8em;
}
.ministry-hero__title {
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
  color: #f4efe8;
}

.ministry-section { padding: 4.5em 0; }
.ministry-section + .ministry-section {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.ministry-prose {
  max-width: 38em;
  color: rgba(244, 239, 232, 0.8);
  line-height: 1.75;
  font-size: 1.05rem;
}
.ministry-prose p { margin: 0 0 1em; }
.ministry-prose p:last-child { margin-bottom: 0; }

.ministry-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em;
  margin-top: 2.5em;
}
.ministry-fact {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75em;
  padding: 1.5em 1.6em;
  background: rgba(255,255,255,0.02);
}
.ministry-fact__label {
  margin: 0 0 0.4em;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 232, 0.5);
}
.ministry-fact__value {
  margin: 0;
  color: #f4efe8;
  font-size: 1.05rem;
  line-height: 1.5;
}

.ministry-cta {
  display: flex;
  align-items: center;
  gap: 1.2em;
  flex-wrap: wrap;
  margin-top: 2.5em;
}

/* ---------- Series description on detail ---------- */
.detail-description {
  margin-top: 2.5em;
  max-width: 50em;
  color: rgba(244, 239, 232, 0.8);
  line-height: 1.75;
  white-space: pre-wrap;
}

/* ---------- /sermons featured + filters ---------- */
.featured-message {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5em;
  align-items: center;
  margin-top: 1em;
  padding-bottom: 3em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 880px) {
  .featured-message { grid-template-columns: 1fr; gap: 1.5em; }
}
.featured-message__media {
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.04);
  border-radius: 0.75em;
  overflow: hidden;
}
.featured-message__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.featured-message__media:hover img { transform: scale(1.03); }
.featured-message__eyebrow {
  color: rgba(244, 239, 232, 0.6);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0 0 1em;
}
.featured-message__title {
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.8em;
  color: #f4efe8;
}
.featured-message__title a { color: inherit; text-decoration: none; }
.featured-message__title a:hover { text-decoration: underline; }
.featured-message__meta {
  color: rgba(244, 239, 232, 0.65);
  font-size: 0.95rem;
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin: 2.5em 0 1em;
  padding: 1.4em 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.filter-group { display: flex; flex-direction: column; gap: 0.5em; min-width: 220px; }
.filter-group__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 232, 0.5);
}
.filter-group select {
  background: rgba(255,255,255,0.04);
  color: #f4efe8;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.4em;
  padding: 0.6em 0.8em;
  font: inherit;
  cursor: pointer;
}
.filter-group select:focus {
  outline: 2px solid rgba(244, 239, 232, 0.4);
  outline-offset: 1px;
}
.card__meta--stacked { display: block; line-height: 1.5; }
.card__speaker {
  display: block;
  color: rgba(244, 239, 232, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: none;
  margin-top: 0.15em;
}

/* ---- Movement Maker Statements (home, light section) ---- */
.mm-stmts {
  display: flex;
  flex-direction: column;
  gap: 2.4em;
  padding: 0.4em 0 0;
}
.mm-stmts__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8em;
  max-width: 56rem;
  margin: 0 auto;
}
.mm-stmts__head .text-icon.big { color: #131313; }
.mm-stmts__eyebrow {
  margin: 0;
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-text-stroke-width: 0.04em;
  -webkit-text-stroke-color: #131313;
  color: #131313;
}
.mm-stmts__motto {
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: #131313;
}
.mm-stmts__motto-accent {
  font-style: italic;
  color: rgba(19, 19, 19, 0.55);
}
.mm-stmts__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em;
}
.mm-stmts__card {
  background: rgba(19, 19, 19, 0.04);
  border: 1px solid rgba(19, 19, 19, 0.08);
  border-radius: 1.1em;
  padding: 1.8em 1.8em 2em;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}
.mm-stmts__card--accent {
  background: #131313;
  border-color: #131313;
  color: #f4efe8;
}
.mm-stmts__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(19, 19, 19, 0.55);
}
.mm-stmts__card--accent .mm-stmts__label { color: rgba(244, 239, 232, 0.6); }
.mm-stmts__text {
  margin: 0;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  line-height: 1.3;
  color: #131313;
}
.mm-stmts__card--accent .mm-stmts__text { color: #f4efe8; }

.mm-stmts__model {
  border-top: 1px solid rgba(19, 19, 19, 0.1);
  padding-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}
.mm-stmts__model-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4em 2.4em;
}
.mm-stmts__model-group {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  flex: 1 1 16rem;
}
.mm-stmts__model-title {
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
  color: #131313;
}
.mm-stmts__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}
.mm-stmts__pillar {
  background: #ffffff;
  border: 1px solid rgba(19, 19, 19, 0.08);
  border-radius: 1em;
  padding: 1.4em 1.4em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  min-height: 9.5em;
}
.mm-stmts__pillar-tag {
  align-self: flex-start;
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #131313;
  background: rgba(19, 19, 19, 0.06);
  border-radius: 999px;
  padding: 0.35em 0.85em;
}
.mm-stmts__pillar-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(19, 19, 19, 0.78);
}
@media (max-width: 767px) {
  .mm-stmts__row { grid-template-columns: 1fr; }
  .mm-stmts__pillars { grid-template-columns: 1fr; order: 2; }
  .mm-stmts__card { padding: 1.5em; }
  .mm-stmts__pillar { min-height: 0; }
  .mm-stmts__model-head { display: contents; }
  .mm-stmts__model-group { flex: 0 0 auto; }
  .mm-stmts__model-group--model { order: 1; }
  .mm-stmts__model-group--motto { order: 3; }
  .mm-stmts-section > .container.middl.light { padding-top: 1.5em; }
}

.mm-stmts-section { padding-top: 0; }
.mm-stmts-section > .container.middl.light { padding-top: 32px; padding-bottom: 88px; }

/* ===== CMS page detail (slim variant of event-detail) ===== */
.page-detail__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 22rem;
  padding-top: 9rem;
  padding-bottom: 3.5rem;
  background-color: #131313;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.page-detail__hero--has-image {
  min-height: clamp(28rem, 60vh, 42rem);
  padding-top: 11rem;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
/* Bottom-weighted scrim so the overlaid title reads against the photo. */
.page-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 11, 0.85) 0%,
    rgba(10, 10, 11, 0.35) 55%,
    rgba(10, 10, 11, 0.5) 100%
  );
  pointer-events: none;
}
.page-detail__hero:not(.page-detail__hero--has-image) .page-detail__hero-overlay {
  display: none;
}
.page-detail__hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 32px;
}
.page-detail__hero--has-image .detail-back,
.page-detail__hero--has-image .page-detail__title,
.page-detail__hero--has-image .page-detail__subtitle {
  color: #f4efe8;
}
.page-detail__hero--has-image .detail-back,
.page-detail__hero--has-image .page-detail__subtitle {
  text-shadow: 0 0 22px rgba(0, 0, 0, 0.4);
}
/* All-caps, stroked Helvetica display title — matches the marketing hero. */
.page-detail__title {
  margin: 0.25em 0 0;
  max-width: none;
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f4efe8;
  -webkit-text-fill-color: #f4efe8;
  -webkit-text-stroke-width: 0.04em;
  -webkit-text-stroke-color: #f4efe8;
  paint-order: stroke fill;
}
.page-detail__subtitle {
  margin: 1.1em 0 0;
  max-width: 40em;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(244, 239, 232, 0.85);
}
.page-detail__body-section {
  padding-top: 3rem;
  padding-bottom: 6rem;
}
/* Sections inside the body are full-bleed theme bands; the body itself adds no
   width constraint — each .page-section__inner owns its own prose column. */
.page-detail__body {
  margin: 0;
}
.marketing-body--light .page-detail__hero:not(.page-detail__hero--has-image) {
  background-color: #ffffff;
}
.marketing-body--light .page-detail__body-section {
  background-color: #ffffff;
}
.marketing-body--light .page-detail__hero:not(.page-detail__hero--has-image) .page-detail__title {
  color: #131313;
  -webkit-text-fill-color: #131313;
  -webkit-text-stroke-color: #131313;
}
.marketing-body--light .page-detail__hero:not(.page-detail__hero--has-image) .page-detail__subtitle {
  color: rgba(19, 19, 19, 0.72);
}
/* Keep the back link visible on the white (no-image) hero. */
.marketing-body--light .page-detail__hero:not(.page-detail__hero--has-image) .detail-back {
  color: rgba(19, 19, 19, 0.7);
  border-color: rgba(19, 19, 19, 0.18);
  background: rgba(19, 19, 19, 0.02);
}
.marketing-body--light .page-detail__hero:not(.page-detail__hero--has-image) .detail-back:hover {
  color: #131313;
  border-color: rgba(19, 19, 19, 0.4);
  background: rgba(19, 19, 19, 0.05);
}
@media (max-width: 640px) {
  .page-detail__hero--has-image {
    min-height: 22rem;
    padding-top: 8rem;
    padding-bottom: 3rem;
  }
  .page-detail__hero-inner { padding: 0 20px; }
}

/* Sequential page navigation (previous / next) shown below page body. */
/* Full-bleed band so it can carry the final section's theme color and flow
 * straight into the footer (no white strip after a dark/accent section). */
.page-detail__pager { margin: 0; padding: 0; }
.page-detail__pager-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
/* Band color matches the last section's theme (set on the pager in page.js). */
.page-detail__pager--theme-light { background: #f4f4f5; }
.page-detail__pager--theme-dark { background: #131313; }
.page-detail__pager--nextgen-kids { background: #ea580c; }
.page-detail__pager--nextgen-youth { background: #dc2626; }
.page-detail__pager--nextgen-ya { background: #7c3aed; }
.page-detail__pager-link {
  flex: 1 1 0;
  min-width: 12rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.page-detail__pager-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.04);
}
.page-detail__pager-link--next {
  text-align: right;
  align-items: flex-end;
}
.page-detail__pager-dir {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.page-detail__pager-title {
  font-size: 1.125rem;
  font-weight: 600;
}
.marketing-body--light .page-detail__pager-link {
  border-color: rgba(19, 19, 19, 0.16);
  color: #131313;
}
.marketing-body--light .page-detail__pager-link:hover {
  border-color: rgba(19, 19, 19, 0.4);
  background-color: rgba(19, 19, 19, 0.03);
}
/* Dark + accent bands need light ink (beat the light-mode override above). */
.marketing-body--light .page-detail__pager--theme-dark .page-detail__pager-link,
.marketing-body--light .page-detail__pager--nextgen-kids .page-detail__pager-link,
.marketing-body--light .page-detail__pager--nextgen-youth .page-detail__pager-link,
.marketing-body--light .page-detail__pager--nextgen-ya .page-detail__pager-link {
  color: #f4efe8;
  border-color: rgba(255, 255, 255, 0.22);
}
.marketing-body--light .page-detail__pager--theme-dark .page-detail__pager-link:hover,
.marketing-body--light .page-detail__pager--nextgen-kids .page-detail__pager-link:hover,
.marketing-body--light .page-detail__pager--nextgen-youth .page-detail__pager-link:hover,
.marketing-body--light .page-detail__pager--nextgen-ya .page-detail__pager-link:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background-color: rgba(255, 255, 255, 0.06);
}
@media (max-width: 640px) {
  .page-detail__pager-inner {
    flex-direction: column;
  }
  .page-detail__pager-link--next {
    text-align: left;
    align-items: flex-start;
  }
}

/* ===========================================================
 * Event-reference content block — inline event detail on a page.
 * Single-column stacked layout (graphic → title → meta card →
 * optional CTA → body); reuses .event-detail__* visual rules.
 * =========================================================== */
.block-event-reference.event-ref {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  margin: 1.5em 0;
}
.event-ref__media {
  width: 100%;
  border-radius: 1em;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.event-ref__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.event-ref__title {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.15;
  /* Lighter than the big stroked event-detail page title — this is an inline
     reference, not a hero. Override the inherited weight + text stroke. */
  font-weight: 600;
  letter-spacing: -0.005em;
  -webkit-text-stroke: 0;
}
.event-ref__meta {
  /* Override sticky positioning from the event-detail aside — we're stacked,
     not in a two-column grid. */
  position: static !important;
  top: auto !important;
}
/* Event graphic shown small, inside the info card (not a full-width banner).
   Keep a 16:9 frame at a fixed height and align it to the left of the card. */
.event-ref__meta-media {
  align-self: flex-start;
  max-width: 100%;
  border-radius: 0.6em;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.event-ref__meta-media img {
  display: block;
  height: 180px;
  width: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.marketing-body--light .event-ref__meta-media {
  background: rgba(19, 19, 19, 0.04);
}
.event-ref__cta { margin-top: -0.25em; }
.event-ref__body { margin-top: 0.5em; }
.marketing-body--light .event-ref__media {
  background: rgba(19, 19, 19, 0.04);
}

/* ===========================================================
 * Page hero event bar — when a simple page references an event,
 * we surface the event date/place/CTA in a band right under the
 * hero so the key info is "above the fold".
 * =========================================================== */
.page-detail__event-bar {
  background: #f4efe8;
  border-bottom: 1px solid rgba(19, 19, 19, 0.08);
}
.page-detail__event-bar[hidden] { display: none !important; }
.page-detail__event-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  /* Match the hero / body prose column (override Webflow .container). */
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.4em 32px;
}
.page-detail__event-bar-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5em;
  min-width: 0;
  flex: 1 1 auto;
}
.page-detail__event-bar-when {
  color: #131313;
}
/* Slim down the heavy event-detail date markup for use inline in the bar. */
.page-detail__event-bar-when .event-detail__date-stack,
.page-detail__event-bar-when .event-detail__date-row {
  padding: 0;
  background: transparent;
  border: 0;
  margin: 0;
}
.page-detail__event-bar-when .event-detail__date-stack-year {
  display: none;
}
.page-detail__event-bar-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1em 1.4em;
  color: rgba(19, 19, 19, 0.72);
  font-size: 0.95rem;
}
.page-detail__event-bar-secondary .event-detail__where {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.page-detail__event-bar-secondary .event-detail__where-name {
  color: #131313;
  font-weight: 600;
}
.page-detail__event-bar-secondary .event-detail__where-addr {
  color: rgba(19, 19, 19, 0.6);
  font-size: 0.88rem;
}
.page-detail__event-bar-category {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  background: rgba(19, 19, 19, 0.07);
  color: #131313;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.page-detail__event-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.85em;
  flex-wrap: wrap;
}
.page-detail__event-bar-cta.button {
  margin: 0;
}
.page-detail__event-bar-cal {
  /* Mirror the existing event-detail cal-btn style but in light theme. */
  color: #131313;
  border-color: rgba(19, 19, 19, 0.2);
  background: #ffffff;
}
@media (max-width: 720px) {
  .page-detail__event-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }
  .page-detail__event-bar-actions { width: 100%; }
  .page-detail__event-bar-cta.button { flex: 1 1 auto; text-align: center; }
}

/* Compact mode for the event-reference content block when the hero already
 * shows the meta — we skip the meta card to avoid duplication, leaving
 * graphic + title + event body. */
.event-ref.event-ref--compact .event-ref__title {
  margin-top: 0.5em;
}

/* ===========================================================
 * Event-reference card — when the referenced event points
 * elsewhere (its own detail page or another page), render a
 * tidy, tappable card instead of duplicating the event inline.
 * =========================================================== */
.block-event-reference.event-ref-card {
  margin: 1.5em 0;
}
.event-card {
  display: flex;
  align-items: stretch;
  gap: 1.25em;
  padding: 0.75em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.25em;
  text-decoration: none;
  color: var(--brand-text, #f4efe8);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.event-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}
.event-card__media {
  flex: 0 0 auto;
  width: clamp(96px, 28%, 160px);
  border-radius: 0.85em;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 16 / 10;
}
.event-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35em;
  min-width: 0;
  padding: 0.4em 0.4em 0.4em 0;
  flex: 1 1 auto;
}
.event-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
}
.event-card__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.2;
  font-weight: 600;
  /* Explicit color beats the Webflow base `h3` color (which inherit/cascade
     does not). Light bands override below. */
  color: var(--brand-text, #f4efe8);
}
.event-card__arrow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #ffffff;
  color: #131313;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.event-card:hover .event-card__arrow {
  transform: translateX(2px);
}
.event-card__when {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(244, 239, 232, 0.7);
}

/* Light-theme variant (pages/sections rendered on a light background). */
.marketing-body--light .event-card {
  border-color: rgba(19, 19, 19, 0.12);
  background: rgba(19, 19, 19, 0.02);
  color: #131313;
}
.marketing-body--light .event-card:hover {
  border-color: rgba(19, 19, 19, 0.35);
  background: rgba(19, 19, 19, 0.05);
}
.marketing-body--light .event-card__media {
  background: rgba(19, 19, 19, 0.05);
}
.marketing-body--light .event-card__arrow {
  background: #131313;
  color: #ffffff;
}
.marketing-body--light .event-card__when {
  color: rgba(19, 19, 19, 0.62);
}
.marketing-body--light .event-card__title {
  color: #131313;
}

/* Light-section variant — themes the card off the band, not the body, so a
   light section on a dark-body page (and the light nextgen kids/youth bands)
   still gets dark card text/borders. */
.page-section--theme-light .event-card,
.page-section--nextgen-kids .event-card,
.page-section--nextgen-youth .event-card {
  border-color: rgba(19, 19, 19, 0.12);
  background: rgba(19, 19, 19, 0.02);
  color: #131313;
}
.page-section--theme-light .event-card:hover,
.page-section--nextgen-kids .event-card:hover,
.page-section--nextgen-youth .event-card:hover {
  border-color: rgba(19, 19, 19, 0.35);
  background: rgba(19, 19, 19, 0.05);
}
.page-section--theme-light .event-card__media,
.page-section--nextgen-kids .event-card__media,
.page-section--nextgen-youth .event-card__media {
  background: rgba(19, 19, 19, 0.05);
}
.page-section--theme-light .event-card__arrow,
.page-section--nextgen-kids .event-card__arrow,
.page-section--nextgen-youth .event-card__arrow {
  background: #131313;
  color: #ffffff;
}
.page-section--theme-light .event-card__when,
.page-section--nextgen-kids .event-card__when,
.page-section--nextgen-youth .event-card__when {
  color: rgba(19, 19, 19, 0.62);
}
.page-section--theme-light .event-card__title,
.page-section--nextgen-kids .event-card__title,
.page-section--nextgen-youth .event-card__title {
  color: #131313;
}

@media (max-width: 520px) {
  .event-card { flex-direction: column; }
  .event-card__media { width: 100%; aspect-ratio: 16 / 9; }
  .event-card__body { padding: 0.2em 0.4em 0.5em; }
}

/* ---------------- Accordion block ---------------- */
.block-accordion {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin: 1em 0;
}
.block-accordion__item + .block-accordion__item {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.block-accordion__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.9em 1.1em;
  cursor: pointer;
  color: inherit;
  font-weight: 500;
  user-select: none;
}
.block-accordion__summary::-webkit-details-marker { display: none; }
.block-accordion__summary:hover { background: rgba(255, 255, 255, 0.03); }
.block-accordion__caret {
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.6;
  flex-shrink: 0;
}
.block-accordion__item[open] .block-accordion__caret {
  transform: rotate(-135deg);
}
.block-accordion__body {
  padding: 0 1.1em 1em;
  color: inherit;
  opacity: 0.85;
  line-height: 1.6;
  overflow: hidden;
  transition: height 0.28s ease;
}
@media (prefers-reduced-motion: reduce) {
  .block-accordion__body { transition: none; }
}

/* ---------------- Gallery block ---------------- */
.block-gallery {
  display: grid;
  gap: 1rem;
  margin: 1em 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .block-gallery--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .block-gallery--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.block-gallery__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}
.block-gallery__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.block-gallery__img--placeholder { background: rgba(255, 255, 255, 0.05); }
.block-gallery__meta {
  padding: 0.75em 0.9em;
}
.block-gallery__title { font-weight: 500; }
.block-gallery__subtitle {
  font-size: 0.9em;
  opacity: 0.7;
  margin-top: 0.15em;
}
.block-gallery__email {
  display: inline-block;
  margin-top: 0.4em;
  font-size: 0.85em;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  opacity: 0.85;
  word-break: break-all;
}
.block-gallery__email:hover { opacity: 1; }

/* ---------------- Form block ---------------- */
.block-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.25em;
  margin: 1.25em 0;
  max-width: 560px;
}
.block-form__title {
  margin: 0 0 0.75em;
  font-size: 1.25em;
  font-weight: 500;
}
.block-form__form { display: flex; flex-direction: column; gap: 0.85em; }
.block-form__row { display: flex; flex-direction: column; gap: 0.3em; }
.block-form__label {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.block-form__input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.6em 0.75em;
  color: inherit;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}
.block-form__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
}
.block-form__input[type="textarea"], textarea.block-form__input { resize: vertical; min-height: 5em; }
.block-form__submit { align-self: flex-start; margin-top: 0.25em; cursor: pointer; }
.block-form__submit[disabled] { opacity: 0.6; cursor: progress; }
.block-form__status { font-size: 0.9em; opacity: 0.8; margin: 0.25em 0 0; }
.block-form__status--ok { color: #6ee7b7; opacity: 1; }
.block-form__status--error { color: #fca5a5; opacity: 1; }
.block-form__empty { opacity: 0.6; font-style: italic; }

/* Form: radio / checkbox / file variants */
.block-form__check {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  font-size: 0.95em;
}
.block-form__check input[type="checkbox"] {
  width: 1em;
  height: 1em;
  accent-color: currentColor;
}
.block-form__radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}
.block-form__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  font-size: 0.95em;
}
.block-form__radio input[type="radio"] {
  width: 1em;
  height: 1em;
  accent-color: currentColor;
}
.block-form__input--file {
  padding: 0.5em 0.6em;
  background: rgba(255, 255, 255, 0.02);
}
.block-form__file-note {
  display: block;
  font-size: 0.8em;
  opacity: 0.75;
  margin-top: 0.25em;
}

/* =========================================================================
 * Simple-page CMS render — refined "graduation" design.
 * Each CMS page is a stack of <section class="page-section page-section--theme-*">
 * bands. Each band paints its own full-bleed theme background and centers its
 * blocks in a readable prose column (.page-section__inner). Mirrors the approved
 * page-detail mockup: caps + stroked Helvetica headings, gotham-black pill
 * buttons, generous vertical rhythm.
 *   --theme-dark / --theme-light   base bands
 *   --nextgen-kids/youth/ya        light band + ministry accent
 * (Self-contained — does NOT depend on the event-page .detail-body styles.)
 * ========================================================================= */
.page-section { padding: clamp(2.75rem, 5vw, 5rem) 0; }

/* Readable, centered prose column. */
.page-section__inner {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 32px;
  line-height: 1.6;
  font-size: 1.02rem;
}
@media (max-width: 640px) {
  .page-section__inner { padding: 0 20px; }
}

/* ---- Headings: all-caps, stroked Helvetica display ---- */
.page-section .block-heading {
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.02;
  -webkit-text-stroke-width: 0.06em;
  -webkit-text-stroke-color: currentColor;
  paint-order: stroke fill;
}
.page-section .block-heading--h2 { font-size: clamp(1.9rem, 3.2vw, 2.4rem); margin: 2em 0 0.75em; }
.page-section .block-heading--h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); margin: 1.85em 0 0.65em; }
.page-section .block-heading:first-child { margin-top: 0; }

/* ---- Body copy ---- */
.page-section .block-paragraph { margin: 0 0 1.35em; }
.page-section .block-paragraph a { text-decoration: underline; }
.page-section .block-list { margin: 0 0 1.5em 1.3em; padding: 0; }
.page-section .block-list li { margin: 0.6em 0; }
.page-section .block-divider { border: 0; border-top: 1px solid rgba(19, 19, 19, 0.15); margin: 2.5em 0; }

/* ---- Media ---- */
.page-section .block-image { margin: 1.8em 0; }
.page-section .block-image img { display: block; width: 100%; height: auto; border-radius: 0.75em; }
.page-section .block-image figcaption {
  margin-top: 0.6em;
  font-size: 0.85rem;
  color: rgba(19, 19, 19, 0.6);
  text-align: center;
}
.page-section .block-video { margin: 2.2em 0; }
.page-section .block-video__wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 0.85em;
  overflow: hidden;
  background: #000;
}
.page-section .block-video__wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
/* Uploaded files keep their natural aspect ratio rather than forcing 16:9. */
.page-section .block-video__wrap--file {
  padding-bottom: 0;
}
.page-section .block-video__wrap--file video {
  display: block; width: 100%; height: auto;
}

/* ---- Video grid (runs of 2+ consecutive videos) ---- */
/* Mobile-first: videos stack in a single column. */
.page-section .block-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2em;
  margin: 2.2em 0;
}
/* Inside the grid the gap handles spacing, so drop each video's own margin. */
.page-section .block-video-grid .block-video {
  margin: 0;
}
/* Two videos across on tablet and up; single column on mobile. */
@media (min-width: 600px) {
  .page-section .block-video-grid[data-count="2"],
  .page-section .block-video-grid[data-count="3"],
  .page-section .block-video-grid[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Quote ---- */
.page-section .block-quote {
  margin: 1.8em 0;
  padding: 0.4em 1.3em;
  border-left: 3px solid rgba(19, 19, 19, 0.25);
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
}
.page-section .block-quote cite {
  display: block;
  margin-top: 0.6em;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0;
}

/* ---- Buttons: gotham-black caps pill ---- */
.page-section .block-button { margin: 1.8em 0; }
.page-section .block-button .button,
.page-section .block-button a.button,
.page-section .block-form__submit.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  background: #131313;
  color: #f4efe8;
  border: 1px solid transparent;
  font-family: var(--brand-body-font, gotham), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.page-section .block-button .button:hover,
.page-section .block-button a.button:hover,
.page-section .block-form__submit.button:hover { transform: translateY(-1px); }

/* ---- Interactive blocks on light bands (accordion / gallery / form) ---- */
.page-section .block-accordion { border-color: rgba(19, 19, 19, 0.14); }
.page-section .block-accordion__item + .block-accordion__item { border-top-color: rgba(19, 19, 19, 0.1); }
.page-section .block-accordion__summary:hover { background: rgba(19, 19, 19, 0.03); }
.page-section .block-gallery__card { background: rgba(19, 19, 19, 0.03); border-color: rgba(19, 19, 19, 0.08); }
.page-section .block-gallery__img--placeholder { background: rgba(19, 19, 19, 0.05); }
.page-section .block-form { background: rgba(19, 19, 19, 0.02); border-color: rgba(19, 19, 19, 0.1); }
.page-section .block-form__input { background: #ffffff; border-color: rgba(19, 19, 19, 0.18); }
.page-section .block-form__input:focus { border-color: rgba(19, 19, 19, 0.4); }
.page-section .block-form__input--file { background: rgba(19, 19, 19, 0.02); }

/* ============================ Themes ============================ */
/* Light band — very light gray, like the events listing background. */
.page-section--theme-light { background: #f4f4f5; color: rgba(19, 19, 19, 0.85); }
.page-section--theme-light .block-heading { color: #131313; }
.page-section--theme-light .block-paragraph a { color: #131313; }

/* Nextgen accent bands are defined AFTER the theme blocks below, so the full
 * ministry-color background wins the source-order tie (a nextgen section also
 * carries a theme-* class). See "Nextgen accent bands" further down. */

/* Dark band — cream ink on near-black; invert the pill buttons and re-tint
 * the interactive blocks. (Placed last so it wins the source-order tie.) */
.page-section--theme-dark { background: #131313; color: rgba(244, 239, 232, 0.85); }
.page-section--theme-dark .block-heading { color: #f4efe8; }
.page-section--theme-dark .block-paragraph a { color: #f4efe8; }
.page-section--theme-dark .block-quote { border-left-color: rgba(244, 239, 232, 0.3); }
.page-section--theme-dark .block-divider { border-top-color: rgba(244, 239, 232, 0.18); }
.page-section--theme-dark .block-image figcaption { color: rgba(244, 239, 232, 0.55); }
.page-section--theme-dark .block-button .button,
.page-section--theme-dark .block-button a.button,
.page-section--theme-dark .block-form__submit.button { background: #f4efe8; color: #131313; }
.page-section--theme-dark .block-button .button:hover,
.page-section--theme-dark .block-button a.button:hover,
.page-section--theme-dark .block-form__submit.button:hover { background: #ffffff; }
.page-section--theme-dark .block-accordion { border-color: rgba(244, 239, 232, 0.14); }
.page-section--theme-dark .block-accordion__item + .block-accordion__item { border-top-color: rgba(244, 239, 232, 0.1); }
.page-section--theme-dark .block-accordion__summary:hover { background: rgba(244, 239, 232, 0.04); }
.page-section--theme-dark .block-gallery__card { background: rgba(244, 239, 232, 0.04); border-color: rgba(244, 239, 232, 0.08); }
.page-section--theme-dark .block-form { background: rgba(244, 239, 232, 0.03); border-color: rgba(244, 239, 232, 0.1); }
.page-section--theme-dark .block-form__input { background: rgba(244, 239, 232, 0.04); border-color: rgba(244, 239, 232, 0.16); color: #f4efe8; }

/* ===================== Nextgen accent bands ===================== */
/* Full ministry-color background with white ink (kids = orange, youth = red,
 * ya = purple). Defined after the theme blocks so the accent color wins even
 * though each nextgen section also carries a theme-* class. */
.page-section--nextgen-kids { background: #ea580c; }
.page-section--nextgen-youth { background: #dc2626; }
.page-section--nextgen-ya { background: #7c3aed; }
.page-section--nextgen-kids,
.page-section--nextgen-youth,
.page-section--nextgen-ya { color: rgba(255, 255, 255, 0.92); }
.page-section--nextgen-kids .block-heading,
.page-section--nextgen-youth .block-heading,
.page-section--nextgen-ya .block-heading,
.page-section--nextgen-kids .block-paragraph a,
.page-section--nextgen-youth .block-paragraph a,
.page-section--nextgen-ya .block-paragraph a { color: #ffffff; }
.page-section--nextgen-kids .block-quote,
.page-section--nextgen-youth .block-quote,
.page-section--nextgen-ya .block-quote { color: #ffffff; border-left-color: rgba(255, 255, 255, 0.5); }
.page-section--nextgen-kids .block-divider,
.page-section--nextgen-youth .block-divider,
.page-section--nextgen-ya .block-divider { border-top-color: rgba(255, 255, 255, 0.25); }
.page-section--nextgen-kids .block-image figcaption,
.page-section--nextgen-youth .block-image figcaption,
.page-section--nextgen-ya .block-image figcaption { color: rgba(255, 255, 255, 0.75); }
/* White pill buttons with the ministry color as ink. */
.page-section--nextgen-kids .block-button .button,
.page-section--nextgen-kids .block-button a.button,
.page-section--nextgen-youth .block-button .button,
.page-section--nextgen-youth .block-button a.button,
.page-section--nextgen-ya .block-button .button,
.page-section--nextgen-ya .block-button a.button { background: #ffffff; }
.page-section--nextgen-kids .block-button .button,
.page-section--nextgen-kids .block-button a.button { color: #c2410c; }
.page-section--nextgen-youth .block-button .button,
.page-section--nextgen-youth .block-button a.button { color: #b91c1c; }
.page-section--nextgen-ya .block-button .button,
.page-section--nextgen-ya .block-button a.button { color: #6d28d9; }
.page-section--nextgen-kids .block-button .button:hover,
.page-section--nextgen-kids .block-button a.button:hover,
.page-section--nextgen-youth .block-button .button:hover,
.page-section--nextgen-youth .block-button a.button:hover,
.page-section--nextgen-ya .block-button .button:hover,
.page-section--nextgen-ya .block-button a.button:hover { background: rgba(255, 255, 255, 0.88); }
/* Interactive blocks (accordion / gallery / form) on accent bands. */
.page-section--nextgen-kids .block-accordion,
.page-section--nextgen-youth .block-accordion,
.page-section--nextgen-ya .block-accordion { border-color: rgba(255, 255, 255, 0.3); }
.page-section--nextgen-kids .block-accordion__item + .block-accordion__item,
.page-section--nextgen-youth .block-accordion__item + .block-accordion__item,
.page-section--nextgen-ya .block-accordion__item + .block-accordion__item { border-top-color: rgba(255, 255, 255, 0.22); }
.page-section--nextgen-kids .block-accordion__summary:hover,
.page-section--nextgen-youth .block-accordion__summary:hover,
.page-section--nextgen-ya .block-accordion__summary:hover { background: rgba(255, 255, 255, 0.1); }
.page-section--nextgen-kids .block-gallery__card,
.page-section--nextgen-youth .block-gallery__card,
.page-section--nextgen-ya .block-gallery__card { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.18); }
.page-section--nextgen-kids .block-form,
.page-section--nextgen-youth .block-form,
.page-section--nextgen-ya .block-form { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.page-section--nextgen-kids .block-form__input,
.page-section--nextgen-youth .block-form__input,
.page-section--nextgen-ya .block-form__input { background: rgba(255, 255, 255, 0.95); border-color: rgba(255, 255, 255, 0.4); color: #131313; }
/* The nextgen form submit should read as a white pill like the other buttons. */
.page-section--nextgen-kids .block-form__submit.button,
.page-section--nextgen-youth .block-form__submit.button,
.page-section--nextgen-ya .block-form__submit.button { background: #ffffff; }
.page-section--nextgen-kids .block-form__submit.button { color: #c2410c; }
.page-section--nextgen-youth .block-form__submit.button { color: #b91c1c; }
.page-section--nextgen-ya .block-form__submit.button { color: #6d28d9; }

/* Nested event-reference inline content keeps its own `.detail-body` styling.
 * On a DARK band, the light-mode `.marketing-body--light .detail-body .block-*`
 * color overrides (0,3,0) would otherwise paint that nested event text dark-on-
 * dark. These 0,4,0 selectors win and restore cream ink for legibility. */
.marketing-body--light .page-section--theme-dark .detail-body .block-heading { color: #f4efe8; }
.marketing-body--light .page-section--theme-dark .detail-body .block-quote {
  color: #f4efe8;
  border-left-color: rgba(244, 239, 232, 0.3);
}
.marketing-body--light .page-section--theme-dark .detail-body .block-quote cite { color: rgba(244, 239, 232, 0.55); }
.marketing-body--light .page-section--theme-dark .detail-body .block-image figcaption { color: rgba(244, 239, 232, 0.55); }

/* =========================================================================
 * Sermon pages — listing, series detail, message detail.
 * Centered, constrained content + bold stroked hero titles, matching the
 * event/page detail templates. Dark theme (cream stroke).
 * ========================================================================= */
.sermon-shell {
  width: 100%;
  max-width: 75rem;
  margin: 0 auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
@media (max-width: 640px) {
  .sermon-shell { padding-left: 20px; padding-right: 20px; }
}

.sermon-hero { padding: 7rem 0 2.25rem; }
@media (max-width: 880px) { .sermon-hero { padding-top: 8rem; } }

.sermon-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: rgba(244, 239, 232, 0.5);
  margin: 0 0 1.1em;
}
.sermon-hero__title {
  margin: 0;
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f4efe8;
  -webkit-text-fill-color: #f4efe8;
  -webkit-text-stroke-width: 0.04em;
  -webkit-text-stroke-color: #f4efe8;
  paint-order: stroke fill;
}
.sermon-hero__lede {
  margin: 1.15em 0 0;
  max-width: 40em;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(244, 239, 232, 0.78);
}

.sermon-section { padding: 0 0 2.5em; }
.sermon-section--last { padding-bottom: 6em; }

/* Sermons listing: the series grid is the section's first in-flow child, so its
   top margin collapses out of the dark section and the darker page background
   shows as a strip. Contain that space inside the section instead. */
.sermon-section--last:has(> .sermon-shell > [data-series-list]) { padding-top: 1.5em; }
.sermon-section--last > .sermon-shell > .card-grid[data-series-list] { margin-top: 0; }

.sermon-section__heading {
  margin: 3em 0 0;
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f4efe8;
  -webkit-text-stroke-width: 0.03em;
  -webkit-text-stroke-color: #f4efe8;
  paint-order: stroke fill;
  padding-bottom: 0.6em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Series detail ---- */
.sermon-series__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 3em;
  align-items: start;
}
@media (max-width: 880px) {
  .sermon-series__intro { grid-template-columns: 1fr; gap: 1.75em; }
}
.sermon-series__media {
  aspect-ratio: 16 / 9;
  border-radius: 1em;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.sermon-series__media img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.sermon-series__desc { margin-top: 2.5em; }

/* ---- Message detail (the video is the focal point) ---- */
/* No narrower cap: the media + meta share the same 75rem shell as the hero
   title, so the video's left edge lines up with the heading above it. */
.sermon-message__media {
  aspect-ratio: 16 / 9;
  border-radius: 1em;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.sermon-message__media img,
.sermon-message__media iframe {
  width: 100%; height: 100%; display: block; border: 0; object-fit: cover;
}
.sermon-message__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3em 2.6em;
  margin-top: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sermon-message__meta .detail-actions {
  margin-top: 0;
  margin-left: auto;
}
.sermon-message__body { margin-top: 2.25em; }
@media (max-width: 880px) {
  .sermon-message__meta .detail-actions { margin-left: 0; width: 100%; }
}

/* Prev / next message pager */
.sermon-message__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin-top: 3em;
}
.sermon-message__nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  padding: 1.15em 1.4em;
  border: 1px solid rgba(244, 239, 232, 0.14);
  border-radius: 0.9em;
  background: rgba(244, 239, 232, 0.04);
  text-decoration: none;
  color: #f4efe8;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sermon-message__nav-link:hover {
  border-color: rgba(244, 239, 232, 0.4);
  background: rgba(244, 239, 232, 0.07);
}
.sermon-message__nav-link--next { text-align: right; align-items: flex-end; }
.sermon-message__nav-spacer { border: 0; background: none; }
.sermon-message__nav-dir {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 232, 0.55);
}
.sermon-message__nav-title {
  font-family: var(--brand-heading-font, helvetica-neue-lt-pro), "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .sermon-message__nav { grid-template-columns: 1fr; }
  .sermon-message__nav-link--next { text-align: left; align-items: flex-start; }
  .sermon-message__nav-spacer { display: none; }
}

/* Promo banner (home page, above Latest Message) — white framed 16:9 image */
.promo-banner {
  background: #ffffff;
}
/* Full-bleed within the section: drop the 75rem container cap so the banner
   stretches the full section width (wider than the Latest Message box). The
   2em inner padding reveals the white section behind on all sides. */
.promo-banner .container {
  max-width: none;
  padding: 0;
}
.promo-banner .promo-banner__inner {
  padding: 2em;
  background: #ffffff;
}
.promo-banner__link {
  display: block;
  text-decoration: none;
}
.promo-banner__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1em;
}
