/* template.css — base styles. Theme palette comes from /themes/*.css */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--text);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-deep); }

.inner { max-width: var(--max-section); margin: 0 auto; padding: 0 32px; }
.inner.wide { max-width: var(--max-wide); }
.inner.prose { max-width: var(--max-prose); }

.section-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin-bottom: 32px;
}
.section-heading .em { font-style: italic; color: var(--accent); font-weight: 400; }

.content { padding: 96px 0; }
.content.alt { background: var(--bg-soft); }

/* ============ BUTTONS ============ */
.btn-pill {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-pill:hover { background: var(--accent-deep); transform: translateY(-1px); color: var(--bg); }

.btn-ghost {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--accent); color: var(--bg); }

.btn-text {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-text .arrow { transition: transform 0.2s; }
.btn-text:hover .arrow { transform: translateX(4px); }

/* ============ NAV ============ */
nav.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb), 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.logo {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo:hover { color: var(--accent); }
nav.topbar ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
nav.topbar ul a {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
nav.topbar ul a:hover { color: var(--accent); }
nav.topbar .nav-cta {
  background: var(--accent);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
}
nav.topbar .nav-cta:hover { background: var(--accent-deep); color: var(--bg); }
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 84vw);
  height: 100vh;
  background: var(--bg);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.10);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.2,.85,.3,1);
  padding: 80px 32px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text);
}
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu ul a {
  display: block;
  padding: 14px 0;
  font-family: 'Spectral', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--rule);
}
.mobile-menu ul a:hover { color: var(--accent); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1490127252417-7c393f993ee4?w=1800&q=85');
  background-size: cover;
  background-position: center;
  background-color: var(--accent-deep);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-wide);
  margin: 0 auto;
  width: 100%;
  padding: 30px 32px 80px;
  color: #ffffff;
}
.hero-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0.92;
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
  font-family: 'Spectral', serif;
  font-size: clamp(48px, 7.5vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero h1 .em { font-style: italic; }
.hero-tagline {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 50ch;
  opacity: 0.96;
  line-height: 1.4;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.hero .btn-pill {
  background: #ffffff;
  color: var(--text);
}
.hero .btn-pill:hover { background: rgba(255,255,255,0.88); color: var(--text); }

/* ============ WELCOME ============ */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.welcome-text {
  padding-top: 20px;
}
.welcome-text .section-eyebrow {
  font-family: 'Spectral', Georgia, serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 32px;
}
.welcome-text > p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 18px;
}
.welcome-text .section-eyebrow + p {
  font-family: 'Spectral', serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--accent-deep);
  margin-bottom: 24px;
}
.welcome-accordion {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
}
.accordion-panel { border-bottom: 1px solid var(--rule); }
.accordion-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 22px 0;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  font-family: 'Spectral', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.accordion-summary::after {
  content: '+';
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: color 0.3s;
}
.accordion-panel.is-open .accordion-summary::after { content: '−'; color: var(--accent-deep); }
.accordion-summary:hover { color: var(--accent); }
.accordion-summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.accordion-panel.is-open .accordion-content { grid-template-rows: 1fr; }
.accordion-inner {
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
}
.accordion-inner-pad { padding: 0 0 26px 0; }
.accordion-inner p { margin-bottom: 14px; }
.accordion-inner p:last-of-type { margin-bottom: 18px; }
.accordion-inner strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 4px;
}

/* ============ RUBRIC BAND ============ */
.rubric-band {
  background: var(--accent);
  color: var(--bg);
  padding: 96px 36px;
  text-align: center;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 50%, rgba(0,0,0,0.10));
}
.rubric-band .inner-band { max-width: 800px; margin: 0 auto; }
.rubric-band .rubric-quote {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.35;
  color: var(--bg);
}
.rubric-band .rubric-cite {
  display: block;
  margin-top: 28px;
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bg);
  opacity: 0.78;
}
.rubric-band .rubric-credit {
  margin-top: 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--bg);
  opacity: 0.45;
}
.rubric-band .rubric-credit a { color: inherit; text-decoration: underline; }

/* ============ PASTOR ============ */
.pastor-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.pastor-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--accent-soft);
  background-image: url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?w=900&q=85');
  background-size: cover;
  background-position: center;
  border-radius: 18px;
}
.pastor-text h2 {
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 28px;
}
.pastor-text > p {
  font-family: 'Spectral', serif;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
}
.pastor-text > p:first-of-type {
  font-size: 22px;
  font-style: italic;
  color: var(--accent-deep);
}
.pastor-signature {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 24px;
  margin-top: 28px;
  color: var(--accent);
}

/* ============ GATHERING TIMES (schedule) ============ */
.gathering-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.gathering-card {
  padding: 32px 28px;
  background: var(--bg);
  border-radius: 18px;
  border: 1px solid var(--rule);
  transition: transform 0.2s, border-color 0.2s;
}
.gathering-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.gathering-card.alt { background: var(--bg-soft); }
.gathering-card .day {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 12px;
}
.gathering-card .title {
  font-family: 'Spectral', serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text);
}
.gathering-card .time {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 500;
  margin-bottom: 8px;
}
.gathering-card p {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ============ VISIT ============ */
/* ============ GALLERIES — anchor+quad and tall+mosaic ============ */
  .photo-anchor-quad, .photo-mosaic { max-width: var(--max-wide); margin: 0 auto; }
  .photo-anchor-quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .photo-anchor {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--accent-soft);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
  }
  .photo-quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
  }
  .photo-quad .photo-cell {
    width: 100%;
    height: 100%;
    background-color: var(--accent-soft);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    min-height: 0;
  }
  .photo-mosaic {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 16px;
  }
  .photo-tall {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: var(--accent-soft);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
  }
  .photo-mosaic-right {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
  }
  .photo-wide {
    width: 100%;
    height: 100%;
    background-color: var(--accent-soft);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    min-height: 0;
  }
  .photo-mosaic-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .photo-mosaic-bottom .photo-cell {
    width: 100%;
    height: 100%;
    background-color: var(--accent-soft);
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    min-height: 0;
  }

  /* ============ VISIT — prose + features (Garden-styled) ============ */
  .visit-prose {
    max-width: var(--max-prose);
    margin: 0 auto 48px;
  }
  .visit-prose p {
    font-family: 'Spectral', serif;
    font-size: 19px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 18px;
    text-align: center;
  }
  .visit-prose p:first-of-type {
    font-size: 22px;
    font-style: italic;
    color: var(--accent-deep);
  }
  .visit-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: var(--max-wide);
    margin: 0 auto;
  }
  .visit-feature {
    padding: 32px 28px;
    background: var(--bg-soft);
    border: 1px solid var(--rule);
    border-radius: 18px;
    transition: border-color 0.2s, transform 0.2s;
  }
  .visit-feature:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
  .visit-feature .vf-mark {
    font-family: 'Spectral', serif;
    font-style: italic;
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1;
  }
  .visit-feature h3 {
    font-family: 'Spectral', serif;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text);
    line-height: 1.2;
  }
  .visit-feature p {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-soft);
  }

  /* ============ STAFF GRID ============ */
  .staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: var(--max-wide);
    margin: 0 auto;
  }
  .staff-card {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-radius: 18px;
    overflow: hidden;
    padding: 0 0 26px;
    transition: border-color 0.2s, transform 0.2s;
  }
  .staff-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
  }
  .staff-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: var(--accent-soft);
    background-size: cover;
    background-position: center;
    margin-bottom: 22px;
  }
  .staff-name {
    font-family: 'Spectral', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.15;
    padding: 0 22px;
    margin-bottom: 6px;
  }
  .staff-role {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    padding: 0 22px;
    margin-bottom: 14px;
  }
  .staff-bio {
    font-family: 'Spectral', serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-soft);
    padding: 0 22px;
  }

  /* ============ SERMON ============ */
.sermon-section {
  background: var(--bg);
  color: var(--text);
  padding: 96px 0;
}
.sermon-section h2 { color: var(--text); }
.sermon-section .section-eyebrow { color: var(--accent); }
/* Sermon embed: clean 16:9 frame for the YouTube iframe.
   Was a mockup placeholder with a fake play button (::before
   circle + ::after triangle); removed now that the iframe brings
   YouTube's real player. */
.sermon-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
    border-radius: 18px;
    margin: 32px auto;
    max-width: 880px;
    overflow: hidden;
}
.sermon-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.sermon-meta {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 18px;
}
.sermon-meta strong { font-family: 'Spectral', serif; font-weight: 500; font-size: 22px; color: var(--text); display: block; margin-bottom: 6px; font-style: italic; }

/* ============ STORY ============ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.story-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--accent-soft);
  background-size: cover;
  background-position: center;
  border-radius: 18px;
}
.story-text p {
  font-family: 'Spectral', serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}
.story-text > p:first-of-type { font-size: 24px; font-style: italic; color: var(--accent-deep); }

/* ============ EVENTS ============ */
.events-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.event-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  padding: 24px 28px;
  background: var(--bg);
  border-radius: 18px;
  border: 1px solid var(--rule);
  align-items: center;
  transition: border-color 0.2s;
}
.event-item:hover { border-color: var(--accent); }
.event-date {
  text-align: center;
  font-family: 'Spectral', serif;
}
.event-date .month {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.event-date .day {
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}
.event-title {
  font-family: 'Spectral', serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 6px;
}
.event-meta {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--text-soft);
}

/* ============ GIVE ============ */
.give-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.give-content > p {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 36px;
}
.give-amounts {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.give-amount {
  padding: 14px 28px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.give-amount:hover { background: var(--accent); color: var(--bg); }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: var(--max-wide);
  margin: 0 auto;
}
.contact-info p {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}
.contact-info strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-map {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--accent-soft);
  background-image: url('https://images.unsplash.com/photo-1524661135-423995f22d0b?w=1000&q=85');
  background-size: cover;
  background-position: center;
  border-radius: 18px;
}

/* ============ LINKS OUT ============ */
.links-out {
  background: var(--bg-soft);
  padding: 72px 0;
}
.links-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
}
.link-item {
  padding: 12px 24px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.link-item:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.link-item .arrow { transition: transform 0.2s; }
.link-item:hover .arrow { transform: translateX(3px); }

/* ============ FOOTER ============ */
footer {
  background: var(--bg-invert);
  color: var(--text-invert);
  padding: 64px 0 48px;
}
footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: var(--max-wide);
}
footer .footer-brand {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 26px;
  color: var(--text-invert);
  margin-bottom: 8px;
}
footer .footer-tagline {
  font-family: 'Spectral', serif;
  font-style: italic;
  color: var(--text-invert-soft);
  font-size: 16px;
  line-height: 1.5;
  max-width: 36ch;
}
footer h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--text-invert);
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { font-family: 'Manrope', sans-serif; font-size: 14px; color: var(--text-invert-soft); }
footer ul a:hover { color: var(--accent-soft); }
footer .copyright {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--text-invert-soft);
  text-align: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-inner ul { display: none; }
  .nav-inner .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 30px 24px 56px; }
  .welcome-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .pastor-grid { grid-template-columns: 1fr; gap: 40px; }
  .pastor-photo { max-width: 480px; margin: 0 auto; }
  .gathering-cards { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; gap: 32px; }
  .photo-anchor-quad { grid-template-columns: 1fr; gap: 8px; }
  .photo-quad { grid-template-rows: auto auto; gap: 8px; }
  .photo-quad .photo-cell { aspect-ratio: 1 / 1; height: auto; }
  .photo-mosaic { grid-template-columns: 1fr; gap: 8px; }
  .photo-tall { aspect-ratio: 4 / 3; }
  .photo-mosaic-right { grid-template-rows: auto auto; gap: 8px; }
  .photo-wide { aspect-ratio: 16 / 9; height: auto; }
  .photo-mosaic-bottom { gap: 8px; }
  .photo-mosaic-bottom .photo-cell { aspect-ratio: 1 / 1; height: auto; }
  .visit-features { grid-template-columns: 1fr; gap: 16px; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  footer .inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .content { padding: 64px 0; }
  .rubric-band { padding: 64px 24px; }
  .accordion-summary { font-size: 19px; padding: 20px 0; }
  .event-item { grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 22px; }
  .event-item .btn-text { grid-column: span 2; }
}
@media (max-width: 540px) {
  .staff-grid { grid-template-columns: 1fr; }
  footer .inner { grid-template-columns: 1fr; }
}

  

  /* ============ MEGA MENU ============
     Top-nav grouping for desktop. Triggers are <button>s so they don't
     interact with boost.js navigation. Only one panel is open at a time;
     ESC, outside click, and after-link clicks close. Hover-open is
     enabled with small open/close delays. Below 900px the entire mega
     system is hidden and the existing hamburger handles every
     destination. */

  nav.topbar { position: sticky; top: 0; }  /* sticky also anchors the absolute mega panels — relative here was clobbering the NAV section's sticky */

  nav.topbar .nav-primary {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
  }
  nav.topbar .nav-item > a,
  nav.topbar .nav-item > .nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text);
    background: transparent;
    border: 0;
    padding: 12px 14px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1;
  }
  nav.topbar .nav-item > a:hover,
  nav.topbar .nav-item > .nav-trigger:hover,
  nav.topbar .nav-item > .nav-trigger[aria-expanded="true"] {
    color: var(--accent);
  }
  nav.topbar .nav-trigger .caret {
    font-size: 9px;
    margin-left: 2px;
    transition: transform 0.2s;
  }
  nav.topbar .nav-trigger[aria-expanded="true"] .caret {
    transform: rotate(180deg);
  }
  nav.topbar .nav-trigger:focus-visible,
  nav.topbar .nav-item > a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }

  /* Panel */
  .mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      opacity 200ms ease,
      transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .mega-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mega-panel[hidden] { display: none; }

  .mega-inner {
    max-width: var(--max-wide, 1200px);
    margin: 0 auto;
    padding: 40px 36px 44px;
    display: grid;
    gap: 48px;
  }
  .mega-inner.mega-cols-2 { grid-template-columns: 1fr 1fr; }
  .mega-inner.mega-cols-3 { grid-template-columns: 1fr 1.4fr 1fr; }

  .mega-heading {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--accent);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
  }
  .mega-lede {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13.5px;
    font-style: italic;
    color: var(--text-soft, var(--text));
    line-height: 1.5;
    margin: 0 0 20px;
    opacity: 0.9;
  }
  .mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .mega-list a {
    display: block;
    text-decoration: none;
    color: var(--text);
    padding: 6px 0;
    transition: color 0.2s, transform 0.2s;
  }
  .mega-list a:hover {
    color: var(--accent);
    transform: translateX(2px);
  }
  .mega-list a strong {
    display: block;
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 2px;
  }
  .mega-list a span {
    display: block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    color: var(--text-soft, var(--text));
    opacity: 0.85;
    line-height: 1.45;
  }

  .mega-list-tight {
    gap: 6px;
    column-count: 2;
    column-gap: 24px;
  }
  .mega-list-tight li { break-inside: avoid; }
  .mega-list-tight a {
    font-family: 'Lora', Georgia, serif;
    font-size: 15.5px;
    color: var(--accent);
    padding: 4px 0;
    border-bottom: 1px solid transparent;
  }
  .mega-list-tight a:hover {
    border-bottom-color: var(--rule);
    transform: none;
  }
  .mega-col-feature {
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
    padding: 0 28px;
  }
  .mega-all {
    display: inline-block;
    margin-top: 18px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--accent);
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid var(--accent);
  }

  /* Hamburger: hidden on desktop, shown when the horizontal nav
     collapses at 900px. (Was missing entirely, so the button rendered
     as an unstyled default control at every width.) */
  .hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--accent);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
  }

  @media (max-width: 900px) {
    nav.topbar .nav-primary { display: none; }
    .hamburger { display: block; }
    .mega-panel { display: none !important; }
  }


  /* ============ MINISTRIES ============ */
  main > section.content > .inner > .page-hero {
    text-align: center;
    margin-bottom: 56px;
  }
  .page-hero h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 500;
    color: var(--text);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
  }
  .page-hero .lede {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-soft, var(--text));
    max-width: 640px;
    margin: 0 auto;
  }

  .ministry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 48px;
    margin-bottom: 56px;
  }
  .ministry-card {
    position: relative;
    padding: 26px 4px 22px;
    border-top: 1px solid var(--accent);
    display: flex;
    flex-direction: column;
  }
  .ministry-card h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--accent);
    margin: 0 0 8px;
    line-height: 1.2;
  }
  .ministry-card .ministry-meta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-soft, var(--text));
    margin-bottom: 14px;
    opacity: 0.85;
  }
  .ministry-card p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--text);
    margin: 0 0 20px;
    flex: 1;
  }
  .ministry-more {
    align-self: flex-start;
    background: transparent;
    border: 0;
    padding: 6px 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--accent);
    cursor: pointer;
    border-bottom: 1px solid var(--accent);
    transition: color 0.2s, gap 0.2s;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
  }
  .ministry-more:hover { gap: 12px; }
  .ministry-more:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
  }

  /* Modal */
  .ministry-modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 90vw;
    max-height: 90vh;
    opacity: 0;
    transform: translateY(8px) scale(0.985);
    transition:
      opacity 220ms ease,
      transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
      overlay 220ms allow-discrete,
      display 220ms allow-discrete;
  }
  .ministry-modal[open] {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  @starting-style {
    .ministry-modal[open] {
      opacity: 0;
      transform: translateY(8px) scale(0.985);
    }
  }
  .ministry-modal::backdrop {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition:
      background 220ms ease,
      backdrop-filter 220ms ease,
      overlay 220ms allow-discrete,
      display 220ms allow-discrete;
  }
  .ministry-modal[open]::backdrop {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
  }
  @starting-style {
    .ministry-modal[open]::backdrop {
      background: rgba(0, 0, 0, 0);
      backdrop-filter: blur(0px);
    }
  }
  .ministry-modal-inner {
    position: relative;
    width: min(560px, 90vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg);
    border-top: 4px solid var(--accent);
    padding: 52px 48px 44px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  }
  .ministry-modal-inner h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--accent);
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.2;
  }
  .ministry-modal-inner .ministry-meta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--text-soft, var(--text));
    text-align: center;
    margin-bottom: 26px;
    opacity: 0.85;
  }
  .ministry-modal-inner p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    margin: 0 0 16px;
  }
  .ministry-modal-inner .ministry-contact {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    font-size: 14.5px;
    color: var(--text-soft, var(--text));
  }
  .ministry-modal-inner .ministry-contact a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .ministry-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--text-soft, var(--text));
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
  }
  .ministry-modal-close:hover {
    background: var(--rule);
    color: var(--accent);
  }
  body:has(dialog.ministry-modal[open]) {
    overflow: hidden;
  }

  @media (max-width: 800px) {
    .ministry-grid {
      grid-template-columns: 1fr;
      gap: 26px;
    }
    .ministry-modal-inner { padding: 40px 24px 32px; }
    .ministry-modal-inner h2 { font-size: 26px; }
  }


  /* ============ MEGA MENU OVERRIDES ============
     Each template's existing `nav.topbar ul a` rule has higher
     specificity than our `.mega-list a` rule, so its uppercase
     text-transform and wide letter-spacing leak into the mega panel.
     Garden & loft additionally set `align-items: center` on
     `nav.topbar ul`, which centers our column items horizontally.
     These overrides match higher specificity (two classes +
     element ≥ one class + three elements) to defeat the bleed. */

  nav.topbar .mega-list,
  nav.topbar .mega-list-tight {
    align-items: stretch;
    text-align: left;
  }
  nav.topbar .mega-list a {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: var(--text);
    opacity: 1;
    font-size: inherit;
  }
  nav.topbar .mega-list a strong {
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.005em;
    color: var(--text);
  }
  nav.topbar .mega-list a span {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-soft, var(--text));
  }
  nav.topbar .mega-list-tight a {
    font-family: 'Lora', Georgia, serif;
    font-size: 15.5px;
    text-transform: none;
    letter-spacing: normal;
    color: var(--accent);
  }
  nav.topbar .mega-heading {
    text-align: left;
    color: var(--accent);
  }
  nav.topbar .mega-lede {
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
  }
  nav.topbar .mega-all {
    text-transform: uppercase;
    letter-spacing: 0.24em;
  }

  /* Keep panel columns aligned to top so single-item columns don't
     stretch to fill the height of the tallest column. */
  nav.topbar .mega-inner > .mega-col {
    align-self: start;
  }


  /* ============ MEGA SECTION STACKING ============
     When the combined column holds multiple sub-sections (e.g. Clergy
     stacked over Events on the left of a Parish Life panel), separate
     them with a comfortable margin and let the second heading have a
     bit of extra breathing room above it. */
  .mega-col-stacked .mega-section + .mega-section {
    margin-top: 32px;
  }


  /* ============ TEMPLATE/THEME SWITCHER (preview tool) ============
     A fixed bottom-right button that opens a modal listing all
     templates and themes. Styled with system fonts and a neutral
     palette so it doesn't blend into the surrounding template — it
     should read as out-of-band tooling. Hidden on print. */

  .switcher-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    z-index: 9000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s, background 0.18s;
  }
  .switcher-btn:hover {
    transform: scale(1.06);
    background: #2a2a2a;
  }
  .switcher-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }

  .switcher-modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 92vw;
    max-height: 92vh;
    color: #111;
  }
  .switcher-modal::backdrop {
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(3px);
  }
  .switcher-modal-inner {
    position: relative;
    width: min(560px, 92vw);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    color: #111;
    padding: 30px 30px 26px;
    border-radius: 8px;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  }
  .switcher-modal-inner h2 {
    font-family: system-ui, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #888;
    margin: 0 0 22px;
  }
  .switcher-section {
    margin-bottom: 22px;
  }
  .switcher-section:last-child { margin-bottom: 0; }
  .switcher-section h3 {
    font-family: system-ui, sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #aaa;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
  }
  .switcher-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .switcher-list-themes {
    grid-template-columns: repeat(3, 1fr);
  }
  .switcher-option {
    display: block;
    padding: 9px 11px;
    border-radius: 5px;
    text-decoration: none;
    color: #111;
    background: #f5f5f5;
    transition: background 0.12s, color 0.12s;
  }
  .switcher-option:hover {
    background: #e8e8e8;
    color: #111;
  }
  .switcher-option.is-current {
    background: #1a1a1a;
    color: #ffffff;
    cursor: default;
  }
  .switcher-option.is-current:hover {
    background: #1a1a1a;
  }
  .switcher-option strong {
    display: block;
    font-family: system-ui, sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 1px;
    text-transform: none;
    letter-spacing: 0;
  }
  .switcher-option span {
    display: block;
    font-family: system-ui, sans-serif;
    font-size: 10.5px;
    color: #888;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
  }
  .switcher-option.is-current span { color: #bbb; }
  .switcher-list-themes .switcher-option strong {
    font-size: 12px;
  }

  .switcher-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    border-radius: 50%;
  }
  .switcher-close:hover {
    color: #111;
    background: #f0f0f0;
  }

  @media (max-width: 600px) {
    .switcher-list { grid-template-columns: 1fr; }
    .switcher-list-themes { grid-template-columns: 1fr 1fr; }
  }
  @media print {
    .switcher-btn, .switcher-modal { display: none !important; }
  }


  /* ============ MINISTRY MODAL — IMPROVED ============
     Native <dialog> placed via showModal() is centered by the user agent
     using `position: fixed; inset: 0; margin: auto;` — but only if the
     dialog has a determined width. Earlier rules left the dialog at
     content-size with a transparent background and styled the inner
     <article> instead, which led to centering inconsistency. We pin
     the dialog's box explicitly here and put visible styling directly
     on it; the inner <article> just handles padding and overflow. */

  dialog.ministry-modal {
    position: fixed;
    inset: 0;
    margin: auto;

    width: min(560px, calc(100% - 32px));
    max-height: calc(100% - 32px);

    background: var(--bg);
    color: var(--text);
    border: 0;
    border-top: 4px solid var(--accent);
    border-radius: 6px;
    padding: 0;

    box-shadow:
      0 30px 80px -10px rgba(0, 0, 0, 0.45),
      0 8px 20px -8px rgba(0, 0, 0, 0.25);

    opacity: 0;
    transform: none;
    transition:
      opacity 220ms ease,
      overlay 220ms allow-discrete,
      display 220ms allow-discrete;
  }
  dialog.ministry-modal[open] {
    opacity: 1;
    transform: none;
  }
  @starting-style {
    dialog.ministry-modal[open] { opacity: 0; }
  }

  dialog.ministry-modal::backdrop {
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    transition:
      background 220ms ease,
      backdrop-filter 220ms ease,
      overlay 220ms allow-discrete,
      display 220ms allow-discrete;
  }
  dialog.ministry-modal[open]::backdrop {
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
  }
  @starting-style {
    dialog.ministry-modal[open]::backdrop {
      background: rgba(0, 0, 0, 0);
      backdrop-filter: blur(0);
    }
  }

  dialog.ministry-modal .ministry-modal-inner {
    position: relative;
    padding: 52px 44px 40px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: transparent;
    box-shadow: none;
    border: 0;
    width: auto;
  }
  dialog.ministry-modal .ministry-modal-inner h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 30px;
    font-weight: 500;
    color: var(--accent);
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.005em;
  }
  dialog.ministry-modal .ministry-modal-inner > .ministry-meta {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-soft, var(--text));
    text-align: center;
    margin: 0 0 28px;
    padding: 0;
    opacity: 0.8;
  }
  dialog.ministry-modal .ministry-modal-inner p {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 16px;
  }
  dialog.ministry-modal .ministry-modal-inner p:last-of-type {
    margin-bottom: 0;
  }
  dialog.ministry-modal .ministry-modal-inner .ministry-contact {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    font-size: 14px;
    color: var(--text-soft, var(--text));
  }
  dialog.ministry-modal .ministry-modal-inner .ministry-contact a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  dialog.ministry-modal .ministry-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--text-soft, var(--text));
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  dialog.ministry-modal .ministry-modal-close:hover {
    background: var(--rule);
    color: var(--accent);
  }

  body:has(dialog.ministry-modal[open]) {
    overflow: hidden;
  }

  @media (max-width: 600px) {
    dialog.ministry-modal {
      width: calc(100% - 16px);
      max-height: calc(100% - 16px);
      border-radius: 0;
      border-top-width: 3px;
    }
    dialog.ministry-modal .ministry-modal-inner {
      padding: 40px 24px 30px;
    }
    dialog.ministry-modal .ministry-modal-inner h2 {
      font-size: 24px;
    }
  }


  /* ============ MEGA LIST-TIGHT FIX ============
     The .mega-list parent rule uses `display: flex` so the multi-column
     declaration on .mega-list-tight gets dropped — items end up in a
     single tall stack. Force display: block here (specificity 0,3,1
     with three classes ≥ the original 0,1,0) and tighten the padding so
     the 8 ministries fit in two visually balanced columns of four. */
  nav.topbar .mega-list.mega-list-tight {
    display: block;
    column-count: 2;
    column-gap: 24px;
    gap: 0;
  }
  nav.topbar .mega-list.mega-list-tight li {
    display: block;
    break-inside: avoid;
    margin: 0;
    padding: 0;
  }
  nav.topbar .mega-list.mega-list-tight a {
    display: block;
    padding: 3px 0;
    line-height: 1.3;
  }


  /* ============ SWITCHER PALETTE SWATCHES ============ */
  /* Theme swatches — a single span with a 4-stripe gradient set
     via inline style. No children, no flex, no width-collapse risk. */
  .theme-swatches {
    display: block;
    width: 100%;
    height: 28px;
    margin-bottom: 6px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  }
  .switcher-option.is-current .theme-swatches {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  }


/* ════ Sermon playlist player — themed skin ════════════════════════════════════
   Base structural styles live in _shared/sermon_player.css (loaded first);
   this only sets accents + corners to match the garden look. */
.sermon-player__frame { border-radius: 10px; scroll-margin-top: 96px; }
.sermon-player__thumb-wrap { border-radius: 8px; }
.sermon-player__tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.sermon-player__item.is-active .sermon-player__thumb-wrap { outline-color: var(--accent); }
.sermon-player__all { color: var(--accent); border-bottom-color: var(--accent); }

  .about-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
  .about-links a { color: var(--accent, var(--moment, #2a3441)); text-decoration: none; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .15s ease; }
  .about-links a:hover { opacity: .65; }

/* -- Ministries (icon + image cards, shared modal) -- */
  /* Ministry group headers — title + optional subtitle between card runs. */
  .min-group-head {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center; margin: 0 0 26px;
  }
  .min-icon-grid + .min-group-head,
  .min-feat-grid + .min-group-head { margin-top: 56px; }
  .min-group-title {
    margin: 0; font-family: 'Spectral', Georgia, serif;
    font-weight: 400; font-size: 1.5rem; color: var(--text);
  }
  .min-group-title::after {
    content: ""; display: block; width: 44px; height: 2px; margin: 9px auto 0;
    background: var(--accent, var(--moment, #2a3441));
  }
  .min-group-subtitle {
    margin: 0; max-width: 56ch;
    font-size: 0.98rem; line-height: 1.55; color: var(--text-soft, #666);
  }

  .min-icon-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin:36px 0 8px; }
  .min-icon-card { border:1px solid var(--rule-soft); border-radius:10px; background:var(--bg-soft);
    padding:26px 24px; display:flex; flex-direction:column; transition:border-color .2s ease, transform .2s ease; }
  .min-icon-card:hover { border-color:var(--accent); }
  .mi-icon { color:var(--accent); line-height:0; margin-bottom:14px; }
  .mi-icon svg { width:30px; height:30px; }
  .min-icon-card h3 { font-family:'Spectral',Georgia,serif; color:var(--text); font-size:22px; line-height:1.15; margin:0 0 8px; font-weight:600; letter-spacing:-0.005em; }
  .min-icon-card p { color:var(--text-soft); font-size:15px; line-height:1.6; margin:0 0 18px; flex:1; }
  .mi-actions { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
  .mi-more { background:none; border:0; padding:0; cursor:pointer; color:var(--accent);
    font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; display:inline-flex; gap:7px; align-items:center;
    border-bottom:1px solid transparent; transition:gap .2s, border-color .2s; }
  .mi-more:hover { gap:11px; border-color:var(--accent); }
  .mi-link { color:var(--text-soft); text-decoration:none; font-size:12px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
    display:inline-flex; gap:6px; align-items:center; border-bottom:1px solid transparent; transition:color .2s, border-color .2s; }
  .mi-link:hover { color:var(--accent); border-color:var(--accent); }

  .min-feat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:36px 0 8px; }
  .min-feature { position:relative; display:block; width:100%; text-align:left; border:0; padding:0; cursor:pointer; overflow:hidden;
    aspect-ratio:4/5; background-color:var(--bg-soft); background-size:cover; background-position:center; color:#fff; text-decoration:none;
    border-radius:10px; transition:transform .4s cubic-bezier(.2,.8,.2,1); }
  .min-feature:hover { transform:scale(1.012); }
  .mf-overlay { position:absolute; inset:0; transition:background .3s ease;
    background:linear-gradient(to top, color-mix(in srgb, var(--accent) 90%, transparent) 0%, color-mix(in srgb, var(--accent) 55%, transparent) 44%, color-mix(in srgb, var(--accent) 14%, transparent) 100%); }
  .min-feature:hover .mf-overlay, .min-feature:focus-visible .mf-overlay {
    background:linear-gradient(to top, color-mix(in srgb, var(--accent) 95%, transparent) 0%, color-mix(in srgb, var(--accent) 68%, transparent) 46%, color-mix(in srgb, var(--accent) 30%, transparent) 100%); }
  .min-feature:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
  .mf-body { position:absolute; inset:auto 0 0 0; padding:24px; z-index:1; }
  .mf-body h3 { font-family:'Spectral',Georgia,serif; color:#fff; font-weight:600; font-size:23px; line-height:1.1; margin:0 0 7px; letter-spacing:-0.005em; }
  .mf-body p { font-family:inherit; color:rgba(255,255,255,.92); font-size:14.5px; line-height:1.5; margin:0; }
  .mf-cue { display:inline-block; margin-top:13px; font-size:11px; text-transform:uppercase; letter-spacing:.22em; color:#fff;
    border-bottom:1px solid rgba(255,255,255,.55); padding-bottom:2px; }

  .min-modal { border:0; padding:0; background:transparent; max-width:90vw; max-height:90vh; }
  .min-modal::backdrop { background:rgba(10,10,12,.55); backdrop-filter:blur(2px); }
  .min-modal-inner { position:relative; width:min(540px,90vw); max-height:90vh; overflow-y:auto; background:var(--bg);
    border-top:4px solid var(--accent); padding:44px 44px 36px; box-shadow:0 24px 70px rgba(0,0,0,.28); border-radius:10px; }
  .min-modal-inner h2 { font-family:'Spectral',Georgia,serif; color:var(--text); margin:0 0 14px; font-size:28px; line-height:1.1; }
  .min-modal-inner p { color:var(--text-soft); line-height:1.7; margin:0 0 14px; }
  .min-modal-contact a { color:var(--accent); }
  .min-modal-close { position:absolute; top:14px; right:16px; background:none; border:0; font-size:26px; line-height:1; cursor:pointer; color:var(--text-soft); }
  .min-modal-close:hover { color:var(--accent); }


  /* ═══════════════════════════════════════════════════════════
     BLOG / LATEST NEWS PAGE (.bp- namespace)
     Index + single-post views rendered by blocks/blog.php via
     templates/_shared/blog_page.php. Integrated from the
     blog_new mockups (June 2026).
     ═══════════════════════════════════════════════════════════ */

/* ============================================================
   Garden — blog_new.css
   Blog / news pages. New file: loads after template.css + boost.css.
   Theme-aware: every color derives from the active theme's custom
   properties, so all themes in /themes work unchanged.
   All selectors namespaced .bp- to avoid collisions with template.css.
   ============================================================ */

/* ---------- section width ---------- */
.bp-index-section .inner,
.bp-index-section .section-inner,
.bp-index-section .slab-inner {
  max-width: var(--max-wide, 1160px);
}
.bp-intro {
  max-width: 56ch;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.65;
  margin: 0.75rem 0 0;
  padding-bottom: 20px;
}

/* ---------- tag filter ---------- */
.bp-toolbar { margin: 2.25rem 0 1.75rem; }
.bp-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.bp-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  
  letter-spacing: 0.02em;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.bp-tag:hover { color: var(--text); border-color: var(--accent); }
.bp-tag.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

/* ---------- listing grid ---------- */
.bp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin: 0;
}
.bp-grid-latest { grid-template-columns: repeat(var(--bp-cols, 3), 1fr); }
.bp-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: none;
  border-radius: 16px;
  overflow: hidden;
}
.bp-card-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}
.bp-card-feature .bp-card-media { height: 100%; min-height: 320px; }
.bp-card-feature .bp-card-body { align-self: center; }
.bp-card-feature .bp-card-title { font-size: 2.1rem; }

.bp-card-media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-soft);
}
.bp-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.bp-card:hover .bp-card-media img { transform: scale(1.03); }
.bp-media-ph {
  background:
    radial-gradient(ellipse at 70% 25%, color-mix(in srgb, var(--accent) 14%, var(--bg)) 0%, transparent 55%),
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, var(--bg)) 0%, color-mix(in srgb, var(--accent) 26%, var(--bg)) 55%, color-mix(in srgb, var(--accent-deep) 55%, var(--bg)) 100%);
}

.bp-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  flex: 1;
}
.bp-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  
  letter-spacing: 0.02em;
  color: var(--text-faint);
}
.bp-chip {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.bp-chip:hover { text-decoration: underline; }
.bp-card-title {
  margin: 0;
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.bp-card-title a {
  color: var(--text);
  text-decoration: none;
}
.bp-card-title a:hover { color: var(--accent); }
.bp-card-excerpt {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
.bp-card-foot {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--rule);
}
.bp-author-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text-soft);
}
.bp-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.bp-avatar-ph {
  background: var(--accent);
  color: var(--bg);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.bp-readmore {
  margin-left: auto;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.bp-readmore:hover { text-decoration: underline; }

/* ---------- pagination ---------- */
.bp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 2.75rem 0 0;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
}
.bp-page-num, .bp-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--text-soft);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.bp-page-num:hover, .bp-page-btn:hover { border-color: var(--accent); color: var(--text); }
.bp-page-num.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.bp-page-btn.is-disabled { opacity: 0.4; pointer-events: none; }

/* ---------- empty state ---------- */
.bp-empty {
  border: 1px dashed var(--rule);
  border-radius: 16px;
  padding: 3rem 1.5rem;
  text-align: center;
}
.bp-empty-mark { font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: 0.6rem; }
.bp-empty-mark::before { content: "»6"; }
.bp-empty-line {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}
.bp-empty-sub { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

/* ---------- mockup divider (remove on integration) ---------- */
.bp-demo-divider::before, .bp-demo-divider::after {
  content: "";
  flex: 1;
  border-top: 1px dashed var(--rule);
}

/* ---------- single post ---------- */
.bp-post { max-width: var(--max-prose, 680px); margin: 0 auto; }
.bp-back { margin: 0 0 2rem; }
.bp-back a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  
  letter-spacing: 0.02em;
  color: var(--text-soft);
  text-decoration: none;
}
.bp-back a:hover { color: var(--accent); }
.bp-post-kicker {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.85rem;
}
.bp-post-title {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}
.bp-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0 0 2.25rem;
}
.bp-post-meta .bp-sep { color: var(--text-faint); }
.bp-post-figure { margin: 0 0 2.25rem; }
.bp-post-figure img, .bp-post-figure .bp-media-ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.bp-post-figure figcaption {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 0.6rem;
}

/* prose: full sanitizer allowlist (p br span strong b em i u s ul ol li
   h2 h3 h4 blockquote hr a img figure figcaption) */
.bp-prose { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.bp-prose p { margin: 0 0 1.35rem; }
.bp-prose a { color: var(--accent); text-underline-offset: 3px; }
.bp-prose a:hover { opacity: 0.8; }
.bp-prose h2, .bp-prose h3, .bp-prose h4 {
  font-family: 'Spectral', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 2.4rem 0 0.9rem;
}
.bp-prose h2 { font-size: 1.7rem; }
.bp-prose h3 { font-size: 1.35rem; }
.bp-prose h4 { font-size: 1.1rem; }
.bp-prose ul, .bp-prose ol { margin: 0 0 1.35rem; padding-left: 1.4rem; }
.bp-prose li p { margin: 0; }
.bp-prose li::marker { color: var(--accent); }
.bp-prose blockquote {
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-left: 3px solid var(--accent);
  color: var(--text-soft);
  font-style: italic;
  font-size: 1.12rem;
}
.bp-prose blockquote p { margin: 0; }
.bp-prose hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem auto;
  width: 38%;
}
.bp-prose figure { margin: 2.25rem 0; }
.bp-prose figure img { width: 100%; border-radius: 10px; display: block; }
.bp-prose figcaption { font-size: 0.82rem; color: var(--text-faint); margin-top: 0.6rem; }
.bp-prose img { max-width: 100%; height: auto; }

/* ---------- video (structured field; never raw HTML) ---------- */
.bp-video {
  margin: 2.5rem 0;
  border-radius: 16px;
  overflow: hidden;
}
.bp-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.bp-video-ph {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 70% 25%, color-mix(in srgb, var(--accent) 14%, var(--bg)) 0%, transparent 55%),
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 26%, var(--bg)) 0%, color-mix(in srgb, var(--accent-deep) 55%, var(--bg)) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.bp-play {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 4px;
}
.bp-video-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}

/* ---------- attached form CTA ---------- */
.bp-form-cta {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg-soft);
  border-radius: 16px;
  border: none;
  text-align: center;
}
.bp-cta-heading {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.bp-form-cta p { color: var(--text-soft); margin: 0 0 1.4rem; font-size: 0.98rem; }
.bp-cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.bp-cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---------- author bio footer ---------- */
.bp-author-bio {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.bp-bio-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-bio-photo.bp-avatar-ph { font-size: 1rem; }
.bp-bio-name {
  font-family: 'Spectral', serif;
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.bp-bio-text { color: var(--text-soft); font-size: 0.93rem; line-height: 1.6; margin: 0; }

/* ---------- prev / next ---------- */
.bp-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1rem;
}
.bp-postnav a {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.bp-postnav a:hover { border-color: var(--accent); }
.bp-postnav a span {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-faint);
  margin-bottom: 0.35rem;
}
.bp-postnav a strong {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}
.bp-postnav-next { text-align: right; }

/* ---------- a11y / motion ---------- */
.bp-tag:focus-visible, .bp-readmore:focus-visible, .bp-chip:focus-visible,
.bp-card-title a:focus-visible, .bp-page-num:focus-visible, .bp-page-btn:focus-visible,
.bp-cta-btn:focus-visible, .bp-postnav a:focus-visible, .bp-back a:focus-visible,
.bp-card-media:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .bp-card-media img, .bp-cta-btn { transition: none; }
  .bp-card:hover .bp-card-media img { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .bp-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-card-feature { grid-template-columns: 1fr; }
  .bp-card-feature .bp-card-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) {
  .bp-grid { grid-template-columns: 1fr; }
  .bp-postnav { grid-template-columns: 1fr; }
  .bp-postnav-next { text-align: left; }
  .bp-form-cta { padding: 1.5rem 1.25rem; }
  .bp-author-bio { flex-direction: column; }
}

/* ---- Garden signature: organic softness, leaf bullet ---- */
.bp-card { box-shadow: 0 1px 0 var(--rule-soft); }
.bp-prose li::marker { content: "❧  "; color: var(--accent); }
.bp-empty-mark::before { content: "❧"; }
.bp-post-kicker { font-style: italic; font-family: 'Spectral', serif; text-transform: none; letter-spacing: 0.02em; font-size: 1rem; }

/* ── Blog feature-card layout fix ──────────────────────────────────────────
   The feature (first) post on the index uses a 2-column grid: image | text.
   The base .bp-card-media has aspect-ratio:3/2, which in the grid context can
   compute a width that overflows its column, dropping the image across the
   whole card with the body text rendering on top of it. These higher-specificity
   rules pin each child to its own column, neutralize the aspect-ratio in the
   feature context, and add min-width:0 so the grid tracks can shrink. */
.bp-grid .bp-card.bp-card-feature { align-items: stretch; }
.bp-grid .bp-card-feature > .bp-card-media {
  grid-column: 1;
  aspect-ratio: auto;
  height: 100%;
  min-height: 320px;
  min-width: 0;
}
.bp-grid .bp-card-feature > .bp-card-body {
  grid-column: 2;
  min-width: 0;
}
@media (max-width: 960px) {
  .bp-grid .bp-card-feature > .bp-card-media { grid-column: 1; aspect-ratio: 16 / 9; min-height: 0; }
  .bp-grid .bp-card-feature > .bp-card-body { grid-column: 1; }
}



  /* ═══════════════════════════════════════════════════════════
     CLERGY & LEADERSHIP REDESIGN (.cp- namespace)
     Heroes / lay grid / read-more modals + gallery, rendered by
     blocks/clergy.php via _shared/clergy_page.php. Integrated
     from the clergy_new mockups (June 2026).
     ═══════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════════════════
 * clergy_new.css — Garden · Clergy & Leadership page
 *
 * Appends to template.css. All new classes namespaced .cp-.
 * Design language: botanical-editorial. Arch-topped portraits (rounded
 * crowns), Spectral italic pull-quotes in accent, soft organic surfaces,
 * smaller arch thumbs for lay leaders, gentle modal with arched image.
 *
 * Email policy: envelope affordance on the card, full address in modal.
 * ════════════════════════════════════════════════════════════════════════ */

/* ===== Clergy heroes ==================================================== */

.cp-clergy-list {
  max-width: var(--max-wide);
  margin: 56px auto 0;
  display: grid;
  gap: 72px;
}

.cp-hero {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 56px;
  align-items: center;
}
.cp-hero--flip { grid-template-columns: 1fr minmax(300px, 420px); }
.cp-hero--flip .cp-portrait { order: 2; }
.cp-hero--flip .cp-hero-text { order: 1; }
.cp-hero--no-photo {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 48px 44px;
  background: var(--bg-soft);
  border: 1px solid var(--rule-soft);
  border-radius: 200px 200px 24px 24px;
  text-align: center;
}
.cp-hero--no-photo .cp-quote { margin-left: auto; margin-right: auto; }
.cp-hero--no-photo .cp-card-foot { justify-content: center; }

.cp-portrait { margin: 0; }
.cp-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px 16px 16px;
  border: 1px solid var(--rule-soft);
}

.cp-role {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.cp-name {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 16px;
}

.cp-bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 0 20px;
  max-width: var(--max-prose);
}

.cp-quote {
  margin: 0 0 24px;
  max-width: 480px;
}
.cp-quote p {
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--accent);
  margin: 0 0 8px;
}
.cp-quote cite {
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.cp-card-foot {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cp-more {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid var(--accent-deep);
  background: none;
  color: var(--accent-deep);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.cp-more:hover { background: var(--accent-deep); color: var(--bg); }

.cp-mail-hint {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  color: var(--text-soft);
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.cp-mail-hint:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

/* ===== Lay grid ========================================================= */

.cp-lay-grid {
  max-width: var(--max-wide);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.cp-lay-card { text-align: center; }

.cp-lay-trigger,
.cp-lay-static {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: center;
}
.cp-lay-trigger { cursor: pointer; }

.cp-lay-photo {
  margin: 0 auto 14px;
  max-width: 190px;
}
.cp-lay-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 120px 120px 12px 12px;
  border: 1px solid var(--rule-soft);
  transition: transform 0.3s ease;
}
.cp-lay-trigger:hover .cp-lay-photo img { transform: translateY(-4px); }

.cp-lay-monogram {
  margin: 0 auto 14px;
  width: 100%;
  max-width: 190px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: 120px 120px 12px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--rule-soft);
  font-family: 'Spectral', Georgia, serif;
  font-style: italic;
  font-size: 44px;
  color: var(--accent);
}

.cp-lay-name {
  font-family: 'Spectral', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.cp-lay-role {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

/* ===== Modal ============================================================ */

.cp-modal {
  margin: auto;
  border: 1px solid var(--rule-soft);
  border-radius: 24px;
  padding: 0;
  max-width: min(860px, calc(100vw - 32px));
  width: 100%;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.4);
}
.cp-modal::backdrop { background: rgba(var(--bg-rgb), 0.8); backdrop-filter: blur(3px); }

.cp-modal-inner { position: relative; padding: 44px; }

.cp-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--rule-soft);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  z-index: 2;
}
.cp-modal-close:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

.cp-modal-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 40px;
  align-items: start;
}
.cp-modal--no-photo .cp-modal-body { max-width: 580px; }

.cp-modal-media { margin: 0; }
.cp-modal-portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 140px 140px 12px 12px;
  border: 1px solid var(--rule-soft);
}

.cp-modal-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.cp-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.cp-gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.cp-gallery-thumb:hover { opacity: 1; }
.cp-gallery-thumb.is-active { opacity: 1; border-color: var(--accent-deep); }

.cp-modal-name {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.cp-quote--modal { margin-bottom: 22px; }
.cp-quote--modal p { font-size: 19px; }

.cp-modal-bio p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 14px;
}

.cp-modal-email {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-deep);
  padding-bottom: 1px;
}
.cp-modal-email:hover { opacity: 0.8; }

/* ===== Responsive ======================================================= */

@media (max-width: 920px) {
  .cp-lay-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .cp-hero { grid-template-columns: 1fr; gap: 28px; }
  .cp-hero--flip .cp-portrait { order: 0; }
  .cp-hero--flip .cp-hero-text { order: 1; }
  .cp-portrait { max-width: 280px; margin: 0 auto; }
  .cp-hero-text { text-align: center; }
  .cp-quote, .cp-bio { margin-left: auto; margin-right: auto; }
  .cp-card-foot { justify-content: center; }
  .cp-hero--no-photo { padding: 36px 24px; border-radius: 100px 100px 20px 20px; }
  .cp-modal-inner { padding: 32px 22px; }
  .cp-modal-grid { grid-template-columns: 1fr; }
  .cp-modal-media { max-width: 240px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .cp-lay-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* Ministries grid — responsive collapse on tablet/mobile (was fixed 3 columns). */
@media (max-width: 900px) { .min-icon-grid, .min-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .min-icon-grid, .min-feat-grid { grid-template-columns: 1fr; } }
