:root,
[data-theme="light"] {
  --color-bg: #f7f6f2;
  --color-surface: #f9f8f5;
  --color-surface-alt: #fbfbf9;
  --color-surface-strong: #ece7df;
  --color-border: #d4d1ca;
  --color-divider: #dfdcd7;

  --color-text: #26231c;
  --color-text-muted: #7a7974;
  --color-text-soft: #b0ada7;
  --color-text-inverse: #fbfaf6;

  --color-primary: #12349c;
  --color-primary-soft: #e2e8f7;
  --color-primary-strong: #0b2470;

  --color-accent-gold: #d19900;
  --color-accent-soft: #f4eedf;
  --color-badge: #e6e1d7;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.07);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  --max-width-narrow: 640px;
  --max-width-main: 1120px;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);

  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-med: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --color-bg: #151411;
  --color-surface: #1c1b18;
  --color-surface-alt: #22201d;
  --color-surface-strong: #262420;
  --color-border: #3a3832;
  --color-divider: #32302b;

  --color-text: #f5f1e6;
  --color-text-muted: #b2aea2;
  --color-text-soft: #807c72;
  --color-text-inverse: #181614;

  --color-primary: #8fabff;
  --color-primary-soft: rgba(143, 171, 255, 0.15);
  --color-primary-strong: #4f72d9;

  --color-accent-gold: #e4b851;
  --color-accent-soft: rgba(228, 184, 81, 0.16);
  --color-badge: rgba(228, 184, 81, 0.2);

  --shadow-soft: 0 20px 45px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.75);
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

[data-theme="light"] body {
  background: radial-gradient(circle at top left, #fefaf0 0, #f7f6f2 52%, #f1eee8 100%);
}

[data-theme="dark"] body {
  background: radial-gradient(circle at top left, #1a1815 0, #151411 52%, #100f0d 100%);
}

img,
picture {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Shared responsive frame for event flyers and full-bleed page hero images.
   Keeps the flyer at its natural 16:9 aspect and caps it on large screens so
   it never overwhelms the layout. On mobile the container is fluid. */
.flyer-figure {
  margin: 0 0 var(--space-8);
  max-width: 44rem;
  margin-inline: auto;
}
.flyer-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 999px;
}

main {
  display: block;
}

/* Layout */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width-main);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container.narrow {
  max-width: var(--max-width-narrow);
}

/* Header & Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  /* Solid (not see-through) so photos never show behind the header */
  background: #f7f6f2;
  border-bottom: 1px solid rgba(212, 209, 202, 0.7);
}

[data-theme="dark"] .site-header {
  background: #151411;
  border-bottom-color: rgba(58, 56, 50, 0.9);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 0.85rem;
}

.brand {
  /* Let the name wrap instead of pushing the buttons to a new row. */
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(18, 52, 156, 0.18));
}

[data-theme="dark"] .brand-mark img {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

@media (min-width: 768px) {
  .brand-mark {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .site-header .brand {
    gap: 0.6rem;
  }

  .site-header .header-inner {
    gap: 0.5rem;
  }

  .site-header .brand-mark {
    width: 52px;
    height: 52px;
  }

  .site-header .brand-name {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
  }
}

@media (max-width: 359px) {
  .site-header .header-inner {
    gap: 0.3rem;
  }

  .site-header .brand {
    gap: 0.45rem;
  }

  .site-header .brand-mark {
    width: 44px;
    height: 44px;
  }

  .site-header .brand-name {
    font-size: 0.85rem;
  }

  .site-header .lang-btn {
    padding: 4px 7px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.brand-location {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(212, 209, 202, 0.85);
  background: rgba(250, 249, 245, 0.7);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

[data-theme="dark"] .nav-toggle {
  border-color: rgba(58, 56, 50, 0.9);
  background: rgba(21, 20, 17, 0.9);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.primary-nav {
  display: none;
}

.primary-nav.open {
  display: block;
  /* Mobile dropdown: drop to its own full-width row under the header. */
  flex-basis: 100%;
  order: 10;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-link {
  display: inline-block;
  white-space: nowrap;
  font-size: var(--text-sm);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  transition: color var(--transition-fast), background var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

.nav-link span {
  padding-inline: 0.35rem;
}

.nav-link.active {
  color: var(--color-primary);
  background: rgba(18, 52, 156, 0.09);
  box-shadow: 0 8px 20px rgba(18, 52, 156, 0.23);
}

[data-theme="dark"] .nav-link.active {
  background: rgba(143, 171, 255, 0.2);
  color: #f5f1e6;
}

.nav-link:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.header-cta {
  display: none;
}

/* Theme toggle */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(212, 209, 202, 0.85);
  background: rgba(250, 249, 245, 0.7);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

[data-theme="dark"] .theme-toggle {
  border-color: rgba(58, 56, 50, 0.9);
  background: rgba(21, 20, 17, 0.9);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Language switcher */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(212, 209, 202, 0.85);
  background: rgba(250, 249, 245, 0.7);
}

[data-theme="dark"] .lang-switcher {
  border-color: rgba(58, 56, 50, 0.9);
  background: rgba(21, 20, 17, 0.9);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  min-height: 30px;
}

.lang-btn:hover {
  background: rgba(212, 209, 202, 0.4);
}

[data-theme="dark"] .lang-btn:hover {
  background: rgba(58, 56, 50, 0.5);
}

.lang-btn.is-active {
  background: var(--color-accent, #b98a2c);
  color: #fff;
}

.lang-btn .lang-short { display: none; }

@media (max-width: 720px) {
  .lang-btn .lang-full { display: none; }
  .lang-btn .lang-short { display: inline; }
}

[data-theme="dark"] .lang-btn.is-active {
  background: var(--color-accent, #f1b454);
  color: #1a1815;
}

/* Hero */

.hero {
  padding-block: var(--space-10);
}

.hero-grid {
  display: grid;
  gap: var(--space-8);
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero h1 {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: var(--text-2xl);
  line-height: 1.07;
  letter-spacing: 0.02em;
  margin: 0;
}

.hero-highlight {
  color: var(--color-primary);
}

.hero-intro {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  font-size: var(--text-xs);
  color: #7b6430;
}

/* Buttons */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-med), color var(--transition-med),
    box-shadow var(--transition-med), transform var(--transition-med),
    border-color var(--transition-med);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #12349c, #0b2470);
  color: var(--color-text-inverse);
  box-shadow: 0 12px 30px rgba(18, 52, 156, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(18, 52, 156, 0.5);
}

.data-theme-dark .btn-primary {
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.9);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(177, 172, 159, 0.9);
}

[data-theme="dark"] .btn-outline {
  color: var(--color-text);
  border-color: rgba(178, 174, 162, 0.55);
}

.btn-outline:hover {
  background: rgba(250, 247, 240, 0.8);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Hero meta, cards, etc. */

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.hero-meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--text-xs);
  color: var(--color-text-soft);
}

.hero-meta-value {
  font-weight: 600;
}

.hero-meta-note {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* Hero right */

.hero-right {
  position: relative;
}

.hero-card {
  position: relative;
  padding: var(--space-5);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(18, 52, 156, 0.15) 0, transparent 50%),
    var(--color-surface-alt);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

[data-theme="dark"] .hero-card {
  background:
    radial-gradient(circle at top left, rgba(248, 244, 232, 0.06) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(143, 171, 255, 0.3) 0, transparent 50%),
    var(--color-surface-alt);
}

/* Sections */

.section {
  padding-block: var(--space-10);
  border-top: 1px solid rgba(212, 209, 202, 0.6);
  background: radial-gradient(circle at top right, #fdfaf4 0, transparent 55%), transparent;
}

[data-theme="dark"] .section {
  border-top-color: rgba(58, 56, 50, 0.9);
  background: radial-gradient(circle at top right, rgba(143, 171, 255, 0.16) 0, transparent 55%),
    transparent;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-4);
}

.section-header h2 {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: var(--text-xl);
  margin: 0;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Cards */

.card-grid {
  display: grid;
  gap: var(--space-4);
}

.card {
  border-radius: 1.25rem;
  padding: var(--space-4);
  background: var(--color-surface-alt);
  border: 1px solid rgba(212, 209, 202, 0.8);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast), background var(--transition-fast);
}

[data-theme="dark"] .card {
  background: var(--color-surface-alt);
  border-color: rgba(58, 56, 50, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

/* Utility bar (above header) */

.utility-bar {
  background: #1c1b18;
  color: #f5f1e6;
  font-size: var(--text-sm);
}

[data-theme="dark"] .utility-bar {
  background: #0a0908;
  color: #f5f1e6;
}

.utility-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  justify-content: space-between;
  align-items: center;
  padding-block: 0.65rem;
}

.utility-bar a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.utility-bar a:hover {
  text-decoration-color: currentColor;
}

.utility-bar strong {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Yearly theme band (below utility bar) */

.theme-band {
  background: linear-gradient(
    100deg,
    var(--color-primary-strong) 0%,
    var(--color-primary) 100%
  );
  color: #f5f7fd;
}

[data-theme="dark"] .theme-band {
  background: linear-gradient(
    100deg,
    #0a1f5c 0%,
    #143598 100%
  );
}

.theme-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem var(--space-6);
  padding-block: 0.7rem;
  font-size: var(--text-sm);
}

.theme-band-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.theme-band-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent-gold);
  white-space: nowrap;
}

.theme-band-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.theme-band-verses {
  color: rgba(243, 250, 249, 0.92);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 0.15rem;
}

.theme-band-verses .ref {
  white-space: nowrap;
}

.theme-band-verses .sep {
  opacity: 0.5;
  margin-inline: 0.35rem;
}

@media (max-width: 720px) {
  .theme-band-inner {
    flex-direction: column;
    gap: 0.55rem;
    padding-block: 0.7rem;
  }

  .theme-band-row {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }

  .theme-band-verses {
    line-height: 1.6;
  }
}

/* Eyebrow pill (mockup variant) */

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
}

[data-theme="dark"] .eyebrow-pill {
  background: rgba(143, 171, 255, 0.18);
}

/* Hero chips (quick-detail badges below CTAs) */

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero-chip {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt);
  border: 1px solid rgba(212, 209, 202, 0.85);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: var(--text-sm);
}

[data-theme="dark"] .hero-chip {
  background: var(--color-surface-alt);
  border-color: rgba(58, 56, 50, 0.9);
}

/* Hero side panel: stacked mock cards from mockup */

.hero-panel {
  position: relative;
  padding: var(--space-5);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(18, 52, 156, 0.12) 0, transparent 55%),
    var(--color-surface-alt);
  border: 1px solid rgba(212, 209, 202, 0.85);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

[data-theme="dark"] .hero-panel {
  background:
    radial-gradient(circle at top left, rgba(248, 244, 232, 0.06) 0, transparent 55%),
    radial-gradient(circle at bottom right, rgba(143, 171, 255, 0.25) 0, transparent 55%),
    var(--color-surface-alt);
  border-color: rgba(58, 56, 50, 0.9);
}

.hero-panel-card {
  position: relative;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(212, 209, 202, 0.8);
  backdrop-filter: blur(6px);
}

[data-theme="dark"] .hero-panel-card {
  background: rgba(28, 27, 24, 0.7);
  border-color: rgba(58, 56, 50, 0.9);
}

.hero-panel-card .kicker {
  color: var(--color-primary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 0.35rem;
}

.hero-panel-card h3 {
  margin: 0 0 0.4rem;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: var(--text-lg);
  line-height: 1.15;
}

.hero-panel-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Action grid (3 visitor paths) */

.action-grid {
  display: grid;
  gap: var(--space-4);
}

.action-card {
  padding: var(--space-5);
  border-radius: 1.25rem;
  background: var(--color-surface-alt);
  border: 1px solid rgba(212, 209, 202, 0.85);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
}

[data-theme="dark"] .action-card {
  border-color: rgba(58, 56, 50, 0.9);
}

.action-card h3 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: var(--text-lg);
  line-height: 1.2;
}

.action-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.link-row {
  margin-top: auto;
  padding-top: var(--space-2);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--color-primary-strong);
  transform: translateX(2px);
}

/* Info list with bullet dots (mockup pattern) */

.info-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.info-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.info-list .dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-accent-gold);
  margin-top: 0.45rem;
  flex-shrink: 0;
}

/* Pillar tags */

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.pillar {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-strong);
  color: var(--color-text);
  font-size: var(--text-sm);
  border: 1px solid rgba(212, 209, 202, 0.85);
}

[data-theme="dark"] .pillar {
  border-color: rgba(58, 56, 50, 0.9);
}

/* Split layout: text + side card */

.split-grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

/* Local banner (teal gradient call-out for Watch Online etc.) */

.local-banner {
  border-radius: 1.5rem;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-card);
}

.local-banner h2,
.local-banner h3,
.local-banner p,
.local-banner li {
  color: inherit;
}

.local-banner h2 {
  margin: 0 0 0.5rem;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: var(--text-xl);
  line-height: 1.1;
}

.local-banner ul {
  margin: var(--space-4) 0 0;
  padding-left: 1.1rem;
}

.local-banner ul li {
  margin-bottom: 0.35rem;
}

/* Section variants */

.section.band {
  background:
    radial-gradient(circle at top left, rgba(244, 238, 223, 0.65) 0, transparent 55%),
    var(--color-surface);
}

[data-theme="dark"] .section.band {
  background:
    radial-gradient(circle at top left, rgba(228, 184, 81, 0.08) 0, transparent 55%),
    var(--color-surface);
}

/* Card grid variants */

.card-grid.cols-2 {
  grid-template-columns: 1fr;
}

.card-grid.cols-4 {
  grid-template-columns: 1fr;
}

/* Footer */

.site-footer {
  padding-block: var(--space-6);
  border-top: 1px solid rgba(212, 209, 202, 0.7);
  background: radial-gradient(circle at top left, #f8f1de 0, #f3eee4 50%, #ece8de 100%);
}

[data-theme="dark"] .site-footer {
  background: #141310;
  border-top-color: rgba(58, 56, 50, 0.9);
}

.footer-inner {
  display: grid;
  gap: var(--space-4);
}

.footer-secondary {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--text-xs);
  color: var(--color-text-soft);
}

/* Page hero (inner pages) */

.page-hero {
  padding-block: var(--space-8);
}

.page-hero h1 {
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: var(--text-xl);
  margin: 0 0 var(--space-2);
}

.page-hero p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Responsive */

/* Full inline menu only when all eight links fit on one line; below this
   width visitors use the menu button. */
@media (min-width: 1180px) {
  .brand {
    flex: 0 0 auto;
    margin-right: auto;
  }

  .nav-toggle {
    display: none;
  }

  .primary-nav,
  .primary-nav.open {
    display: block;
    flex-basis: auto;
    order: 0;
  }

  .nav-list {
    margin: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }

  .nav-link {
    font-size: 0.8125rem;
    padding: 0.35rem 0.3rem;
  }

  .nav-link span {
    padding-inline: 0.25rem;
  }
}

@media (min-width: 768px) {
  .header-inner {
    padding-block: 0.95rem;
  }


  .hero {
    padding-block: var(--space-12);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
    align-items: center;
  }

  .section {
    padding-block: var(--space-12);
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .card-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .action-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer-inner {
    grid-template-columns: 2fr 1.5fr;
    align-items: start;
  }

  .footer-secondary {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
/* ============================================================
   Homepage Slideshow / Hero Carousel
   ============================================================ */

.slideshow {
  position: relative;
  width: 100%;
  margin: 0;
  background: var(--color-surface-strong);
  overflow: hidden;
  isolation: isolate;
}

.slideshow-viewport {
  position: relative;
  width: 100%;
  /* Responsive height: tall on mobile, cinematic on desktop */
  height: clamp(420px, 64vh, 640px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Readability scrim: stronger on the left where copy sits */
.slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 30, 31, 0.86) 0%,
    rgba(10, 30, 31, 0.62) 38%,
    rgba(10, 30, 31, 0.22) 64%,
    rgba(10, 30, 31, 0.08) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  max-width: 620px;
  padding-block: var(--space-8);
}

.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fbfaf6;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.slide-title {
  font-family: "DM Serif Display", Georgia, serif;
  color: #fefaf0;
  font-size: var(--text-2xl);
  line-height: 1.08;
  margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.slide-text {
  color: rgba(251, 250, 246, 0.92);
  font-size: var(--text-base);
  line-height: 1.55;
  margin: 0;
  max-width: 48ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0;
  list-style: none;
  padding: 0;
}

.slide-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fbfaf6;
  font-size: var(--text-xs);
  font-weight: 500;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: var(--space-2);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-accent-gold), #b87f00);
  color: #1d1500;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.slide-link:hover .slide-cta,
.slide-link:focus-visible .slide-cta {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.slide-link:focus-visible {
  outline: 3px solid var(--color-accent-gold);
  outline-offset: -4px;
}

/* ---- Controls ---- */

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.85rem;
  height: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(12, 30, 31, 0.45);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition-med), transform var(--transition-med);
}

.slideshow-arrow:hover {
  background: rgba(12, 30, 31, 0.78);
}

.slideshow-arrow:focus-visible {
  outline: 3px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.slideshow-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.slideshow-arrow.prev { left: clamp(0.5rem, 2vw, 1.25rem); }
.slideshow-arrow.next { right: clamp(0.5rem, 2vw, 1.25rem); }

.slideshow-controls {
  position: absolute;
  bottom: clamp(0.85rem, 2.5vh, 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(12, 30, 31, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.slideshow-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slideshow-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition-med), transform var(--transition-med),
    width var(--transition-med);
}

.slideshow-dot:hover { background: rgba(255, 255, 255, 0.5); }

.slideshow-dot.is-active {
  background: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  width: 1.4rem;
}

.slideshow-dot:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.slideshow-playpause {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-med);
}

.slideshow-playpause:hover { background: rgba(255, 255, 255, 0.18); }

.slideshow-playpause:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

.slideshow-playpause svg { width: 1.05rem; height: 1.05rem; }

/* Progress bar that fills over the auto-advance interval */
.slideshow-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  z-index: 4;
  background: rgba(255, 255, 255, 0.18);
}

.slideshow-progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-accent-gold);
  transform-origin: left center;
}

.slideshow.is-playing .slideshow-progress-bar.is-running {
  animation: slide-progress var(--slide-interval, 8000ms) linear forwards;
}

@keyframes slide-progress {
  from { width: 0; }
  to { width: 100%; }
}

/* ---- Mobile tuning ---- */
@media (max-width: 640px) {
  .slideshow-viewport { height: clamp(440px, 76vh, 560px); }
  .slide-scrim {
    background: linear-gradient(
      to top,
      rgba(8, 24, 25, 0.92) 0%,
      rgba(8, 24, 25, 0.6) 48%,
      rgba(8, 24, 25, 0.32) 100%
    );
  }
  .slide-content { justify-content: flex-end; padding-bottom: var(--space-12); }
  .slideshow-arrow { width: 2.4rem; height: 2.4rem; }
}

/* ---- Reduced motion: no auto-advance, instant transitions ---- */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .slideshow.is-playing .slideshow-progress-bar.is-running { animation: none; }
  .slide-cta { transition: none; }
}

/* ---- Flyer slides: the image already contains title/date text, so we
   show it cleanly and overlay only a small eyebrow + CTA ---- */
.slide--flyer .slide-media {
  object-fit: contain;
  background: #0a1430;
}
.slide--flyer .slide-scrim {
  background: linear-gradient(
    to top,
    rgba(8, 24, 25, 0.85) 0%,
    rgba(8, 24, 25, 0.35) 26%,
    rgba(8, 24, 25, 0) 50%
  );
}
.slide--flyer .slide-content {
  justify-content: flex-end;
  max-width: var(--max-width-main);
  padding-bottom: var(--space-10);
  gap: var(--space-3);
}
.slide--flyer .slide-title,
.slide--flyer .slide-text {
  /* Title/date already baked into the flyer image; hide the duplicate overlay copy */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Clear the arrows on mobile so overlaid copy never sits under them */
@media (max-width: 640px) {
  .slide-content {
    padding-inline: 3.25rem;
  }
  .slide--flyer .slide-media { object-position: top center; }
  .slide--flyer .slide-content { padding-bottom: var(--space-12); }
}

/* ===== Online Giving page ===== */
.give-dove {
  width: 112px;
  height: 112px;
  margin: 0 auto var(--space-5);
}
.give-dove img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(18, 52, 156, 0.2));
}
[data-theme="dark"] .give-dove img {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.7));
}
.give-hero { text-align: center; }
.give-hero .container { text-align: center; }
.give-verse {
  font-family: "DM Serif Display", serif;
  font-style: italic;
  color: var(--color-primary-strong);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  line-height: 1.4;
  margin: var(--space-4) 0 0;
}
[data-theme="dark"] .give-verse { color: #f4e3b0; }
.give-verse-ref {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--space-3);
  opacity: 0.75;
}
.give-cta {
  text-align: center;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: var(--space-8) var(--space-6);
  background:
    radial-gradient(circle at 50% -20%, rgba(209,153,0,0.10), transparent 60%),
    var(--color-surface-alt);
  box-shadow: var(--shadow-card);
}
.give-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: var(--space-5) 0 var(--space-6);
}
.give-amount {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 52, 156,0.25);
  color: var(--color-primary-strong);
  background: rgba(18, 52, 156,0.05);
}
[data-theme="dark"] .give-amount {
  color: #f4e3b0;
  border-color: rgba(244,227,176,0.3);
  background: rgba(244,227,176,0.06);
}
.give-secure {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  opacity: 0.7;
}

/* ===== Responsive video embed (latest recording) ===== */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-caption {
  margin: var(--space-4) 0 0;
  font-family: "DM Serif Display", serif;
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--color-text);
}
.video-caption-meta {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ===== Prayer Wall ===== */
.pw-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .pw-layout { grid-template-columns: 1fr; gap: var(--space-10); } }

.pw-form-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: var(--space-6);
}
@media (max-width: 900px) { .pw-form-card { position: static; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: var(--space-4); }
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field .hint { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(18, 52, 156, 0.15);
}
.field-check { flex-direction: row; align-items: center; gap: 0.6rem; }
.field-check input { width: auto; }
.field-check label { font-weight: 400; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pw-status { margin: 0 0 var(--space-4); padding: 0.85rem 1rem; border-radius: var(--radius-md); font-size: var(--text-sm); display: none; }
.pw-status.is-success { display: block; background: rgba(18, 52, 156,0.10); color: var(--color-primary-strong); border: 1px solid rgba(18, 52, 156,0.3); }
.pw-status.is-error { display: block; background: rgba(180, 60, 40, 0.10); color: #9a3b25; border: 1px solid rgba(180,60,40,0.3); }
[data-theme="dark"] .pw-status.is-success { color: #f4e3b0; }
[data-theme="dark"] .pw-status.is-error { color: #f3b8a6; }

.pw-wall { display: flex; flex-direction: column; gap: var(--space-5); }
.pw-card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: var(--space-6);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.pw-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); flex-wrap: wrap; }
.pw-card-name { font-family: "DM Serif Display", serif; font-size: var(--text-lg); color: var(--color-text); margin: 0; }
.pw-card-date { font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }
.pw-card-body { margin: 0 0 var(--space-5); color: var(--color-text); line-height: 1.6; white-space: pre-wrap; }
.pw-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.pw-count { font-size: var(--text-sm); color: var(--color-text-muted); }
.pw-count strong { color: var(--color-primary-strong); }
[data-theme="dark"] .pw-count strong { color: #f4e3b0; }

.pw-pray-btn {
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid var(--color-primary);
  color: var(--color-primary-strong);
  background: rgba(18, 52, 156,0.06);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}
.pw-pray-btn:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.pw-pray-btn:disabled { cursor: default; opacity: 0.7; transform: none; background: rgba(18, 52, 156,0.12); }
[data-theme="dark"] .pw-pray-btn { color: #f4e3b0; background: rgba(244,227,176,0.08); border-color: rgba(244,227,176,0.4); }
[data-theme="dark"] .pw-pray-btn:hover { background: var(--color-primary); color: #fff; }

.pw-empty, .pw-loading { color: var(--color-text-muted); font-size: var(--text-sm); padding: var(--space-6) 0; }

/* Homepage "Come visit" banner (above the slideshow) */
.visit-banner {
  background: #0a1f5c;
  line-height: 0;
}

.visit-banner-link {
  display: block;
}

/* Always show the whole banner edge to edge (no cropping, no side bars);
   height scales with the window width. */
.visit-banner-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3423 / 1301;
}

/* Slideshow sits in the same column as the content below it on tablets and
   desktops; it stays edge to edge on phones. Flyers (16:9) show in full with
   a navy strip underneath that holds the button and slide dots, so nothing
   covers the flyer's own text. */
@media (min-width: 641px) {
  .slideshow {
    width: calc(100% - 2 * var(--space-4));
    max-width: calc(var(--max-width-main) - 2 * var(--space-4));
    margin: var(--space-8) auto 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(10, 31, 92, 0.18);
    background: #0a1430;
    container-type: inline-size;
  }
  .slideshow-viewport {
    height: calc(100cqw * 9 / 16 + 4rem);
  }
  .slideshow-controls {
    bottom: 0.6rem;
  }
  /* Arrows live in the bottom strip (left side) so they never cover a flyer */
  .slideshow-arrow {
    top: auto;
    bottom: 0.75rem;
    transform: none;
    width: 2.4rem;
    height: 2.4rem;
  }
  .slideshow-arrow.prev { left: var(--space-4); }
  .slideshow-arrow.next { left: calc(var(--space-4) + 2.9rem); right: auto; }
  .slide .slide-content {
    margin-inline: 0;
    padding-inline: clamp(4.5rem, 7vw, 5.5rem);
  }
  .slide--flyer { background: #0a1430; }
  .slide--flyer .slide-media {
    height: calc(100% - 4rem);
    object-fit: contain;
    object-position: center top;
  }
  .slide--flyer .slide-scrim { background: none; }
  .slide--flyer .slide-content {
    max-width: none;
    padding: 0 var(--space-4) 0.6rem;
  }
  .slide--flyer .slide-cta {
    align-self: flex-end;
    margin-top: 0;
    padding: 0.6rem 1.2rem;
  }
  .slide--flyer .slide-eyebrow,
  .slide--flyer .slide-meta {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Phones: keep the slide button clear of the slide dots */
@media (max-width: 640px) {
  .slide-content,
  .slide--flyer .slide-content { padding-bottom: 5rem; }
}

/* Phones: header first, so it sits at the very top and Safari's see-through
   top bar shows the solid header instead of the scripture strip scrolling
   underneath it. */
@media (max-width: 768px) {
  .site-header { order: -1; }
}

/* Come Visit banner — phone layout: church-family photo on top, then a
   navy panel with the pastors (overlapping the photo) and their names. */
.visit-banner-mobile { display: none; }

@media (max-width: 640px) {
  .visit-banner-img { aspect-ratio: 2339 / 1301; }
  .visit-banner-link { color: #fff; text-decoration: none; }
  .visit-banner-mobile {
    display: flex;
    align-items: flex-end;
    gap: 3vw;
    padding-right: 4.5vw;
    background: linear-gradient(160deg, #0a1f5c 0%, #12349c 70%, #1d4fc4 100%);
    line-height: 1.2;
  }
  .vbm-pastors {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 60%;
    height: auto;
    margin-top: 4vw;
    filter: drop-shadow(8px 4px 14px rgba(0, 0, 25, 0.45));
  }
  .vbm-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 5vw 0 6vw;
  }
  .vbm-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
  }
  .vbm-name {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(1rem, 4.6vw, 1.3rem);
    color: #fff;
  }
  .vbm-amp {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1rem;
    color: var(--color-accent-gold);
  }
  .vbm-cta {
    margin-top: 0.6rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--color-accent-gold), #b87f00);
    color: #1d1500;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    max-width: 100%;
  }
}

/* iOS Safari 26+: the strip under the clock / address label is only painted
   a solid color when a full-width position:fixed element with a solid
   background-color touches the top of the viewport. This thin bar (same
   color as the header, so invisible) gives Safari that element. */
@media (max-width: 768px) {
  html { background-color: #f7f6f2; }
  [data-theme="dark"] { background-color: #151411; }
  .app-shell::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 31;
    background-color: #f7f6f2;
    pointer-events: none;
  }
  [data-theme="dark"] .app-shell::before { background-color: #151411; }
}

/* "Holiness Tabernacle Church" is longer: tighten desktop header spacing so
   the English menu still fits on one row, and on small phones drop the
   "Woodbridge, Virginia" line so the header stays compact. */
@media (min-width: 1180px) {
  .site-header .header-inner { gap: 0.6rem; }
  .site-header .brand { gap: 0.7rem; }
}
@media (max-width: 480px) {
  .site-header .brand-location { display: none; }
}

/* 404 page */
.nf-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--space-4)}
.nf-card{display:block;text-decoration:none;color:inherit;transition:transform .15s ease,box-shadow .15s ease}
.nf-card:hover,.nf-card:focus-visible{transform:translateY(-2px);box-shadow:0 8px 24px rgba(18,52,156,.12)}
.nf-card h2{font-family:'DM Serif Display',serif;font-size:1.5rem;margin:var(--space-2) 0}
.nf-card p:last-child{margin:0}
.nf-actions{margin-top:var(--space-8);justify-content:center}
