.ecosystem {
  background: #f7f3f9;
}

.program-section { background: #f8f8ff; }
.program-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.program-heading .eyebrow { display: inline-block; padding: 7px 16px; border-radius: 30px; background: #edeaff; color: #6551de; margin-bottom: 18px; }
.program-heading > p:last-child { color: var(--muted); font-size: 18px; }
.program-section h2 em,.recap-section h2 em { color: #6e50ef; }
.program-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.program-card { display: flex; align-items: stretch; overflow: hidden; background: white; border-radius: 24px; box-shadow: 0 10px 35px #30285409; border: 1px solid #efedf6; }
.program-date { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(155deg,#6055ff,#974bef); color: white; font-size: 35px; font-weight: 800; line-height: 1.2; padding: 24px 8px; }
.program-date small { font-size: 13px; letter-spacing: 2px; margin-top: 8px; }
.program-card:nth-child(2) .program-date { background: linear-gradient(155deg,#c638d6,#7350ef); }
.program-card:nth-child(3) .program-date { background: linear-gradient(155deg,#1d2263,#5653b7); color: #ffe295; }
.program-card:nth-child(4) .program-date { background: linear-gradient(155deg,#13b8af,#228789); }
.program-info { min-width: 0; padding: 26px; flex: 1; }
.program-tag { display: inline-block; border-radius: 30px; padding: 5px 11px; background: #f0ecff; color: #614bc8; font-size: 11px; font-weight: 700; letter-spacing: .6px; }
.program-info h3 { margin: 14px 0 9px; font-size: 23px; line-height: 1.2; }
.program-info p { font-size: 14px; color: var(--muted); }
.program-info .program-time { color: #35334c; font-weight: 700; }
.program-place { display: block; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; margin: 12px 0; }
.program-link { display: inline-block; font-weight: 700; font-size: 14px; color: #6650d7; margin-top: 10px; }
.program-info details { margin-top: 16px; }
.program-info summary { color: #6650d7; font-weight: 700; }
.program-info details img { display: block; width: 100%; height: auto; margin-top: 15px; border-radius: 10px; }
.stars-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; margin-top: 48px; padding: 28px; border-radius: 24px; background: #18183e; color: white; scroll-margin-top: 30px; }
.stars-feature img { display: block; width: 100%; border-radius: 14px; }
.stars-feature h3 { font-size: clamp(26px,3vw,36px); line-height: 1.15; margin: 18px 0; }
.stars-feature p { color: #dfdbf2; }
.stars-feature .button { margin-top: 14px; background: #eac66b; color: #242044; border-radius: 30px; }
.recap-section { background: white; }
.recap-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.recap-card { overflow: hidden; border: 1px solid #e8e4f4; border-radius: 24px; background: #faf9ff; }
.recap-art { padding: 28px; display: flex; align-items: center; gap: 20px; color: white; background: linear-gradient(120deg,#242052,#7253d7); }
.recap-art span { font-size: 64px; font-weight: 800; line-height: 1; }
.recap-art b { margin-left: auto; letter-spacing: 2px; }
.recap-copy { padding: 30px; }
.recap-copy h3 { font-size: 25px; line-height: 1.25; margin: 18px 0; }
.recap-copy p { color: var(--muted); }
.recap-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.recap-links a { border-radius: 25px; background: white; border: 1px solid #ddd5f2; padding: 9px 14px; font-size: 13px; color: #614bc8; font-weight: 700; }
.recap-upcoming { display: flex; align-items: center; }
@media(max-width:850px) { .program-grid,.recap-grid,.stars-feature { grid-template-columns: 1fr; } }
@media(max-width:480px) { .program-date { flex-basis: 67px; font-size: 27px; } .program-info { padding: 21px 17px; } .stars-feature { padding: 18px; } .recap-copy { padding: 22px; } }

.site-cover { max-width: 1200px; margin: 0 auto; background: #07523e; }
.site-cover img { display: block; width: 100%; height: auto; }
.ecosystem-pcnc-logo { display: block; width: 140px; height: 108px; object-fit: contain; background: white; border-radius: 8px; margin: 16px 0; }
.ecosystem-card .disciples-title { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -1px; }
.atmosphere-image { display: block; margin: 18px 0; }
.atmosphere-image img { display: block; width: 100%; height: auto; border-radius: 8px; }
.testimony-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; text-align: left; margin: 35px 0; }
.testimony-videos article { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; }
.testimony-videos video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #17121b; object-fit: contain; }
.testimony-videos h3 { font-size: 18px; padding: 16px; margin: 0; }
@media(max-width: 750px) { .testimony-videos { grid-template-columns: 1fr; } }

.ecosystem-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 9%;
  align-items: end;
  margin-bottom: 42px;
}

.ecosystem-heading h2 {
  margin-bottom: 0;
}

.ecosystem-heading > p {
  max-width: 440px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 18px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ecosystem-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ecosystem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px #2f15301c;
}

.ecosystem-card:focus-visible {
  outline-offset: 4px;
}

.ecosystem-number {
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.ecosystem-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 800;
  margin-bottom: 10px;
}

.ecosystem-card h3 {
  font-size: 46px;
  line-height: 1;
  margin: 0 0 18px;
  letter-spacing: -2px;
}

.ecosystem-card p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.ecosystem-card strong {
  font-size: 14px;
  border-top: 1px solid currentColor;
  padding-top: 18px;
}

.pcnc-card {
  background: #2c2231;
  color: white;
}

.pcnc-card .ecosystem-kicker {
  color: #dcaaf4;
}

.star-card {
  background: #8026ad;
  color: white;
}

.star-card .ecosystem-kicker {
  color: #f0d9fa;
}

.faveur-card {
  background: white;
  color: #292830;
  border: 1px solid #ded4e3;
}

.faveur-card .ecosystem-kicker,
.faveur-card h3 {
  color: #8026ad;
}

@media (max-width: 950px) {
  .ecosystem-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faveur-card {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .ecosystem-heading {
    gap: 5%;
  }
}

@media (max-width: 650px) {
  .ecosystem-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 30px;
  }

  .ecosystem-heading > p {
    font-size: 16px;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .faveur-card {
    grid-column: auto;
  }

  .ecosystem-card {
    min-height: 320px;
    padding: 26px;
  }

  .ecosystem-card h3 {
    font-size: 40px;
  }
}

/* Clickable church address and photo galleries. */
.address-link,
.event-address {
  display: inline-block;
  border-radius: 5px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.address-link:hover,
.event-address:hover {
  color: #dcaaf4;
}

.contact-address p {
  margin-bottom: 8px;
}

body.hub-open {
  overflow: hidden;
}

#hub-dialog {
  width: min(1420px, 96vw);
  height: 94dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

#hub-dialog::backdrop {
  background: #130d18d9;
  backdrop-filter: blur(4px);
}

.hub-toolbar {
  position: relative;
  z-index: 2;
  min-height: 68px;
  padding: 10px 14px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: #29232f;
  box-shadow: 0 3px 14px #0002;
}

.hub-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hub-brand {
  padding-right: 16px;
  border-right: 1px solid #ffffff40;
  color: #dcaaf4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

#hub-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-actions a,
.hub-actions button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff3d;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 24px;
}

.hub-actions a {
  font-size: 18px;
}

#hub-frame {
  display: block;
  width: 100%;
  height: calc(94dvh - 68px);
  border: 0;
  background: #fff;
}

.hub-loading {
  position: absolute;
  inset: 68px 0 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #8026ad;
  background: #fff;
  font-weight: 700;
}

.hub-loading.is-hidden {
  display: none;
}

@media (max-width: 650px) {
  #hub-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .hub-toolbar {
    min-height: 62px;
    padding: 8px 9px 8px 14px;
  }

  .hub-brand {
    display: none;
  }

  #hub-frame {
    height: calc(100dvh - 62px);
  }

  .hub-loading {
    inset: 62px 0 0;
  }
}
