/* ============================================================
   Omega Living Bride Tabernacle — style.css
   Warri / Effurun, Delta State, Nigeria

   Palette : parchment / warm ink / lampstand gold / oxblood
   Type    : Cormorant Garamond (display) + Source Sans 3 (body)
   Themes  : light (default) and dark, via [data-theme] on <html>
   ============================================================ */

/* ---------- 1. Raw palette (never used directly in rules) ---------- */

:root {
  --c-ink:          #12100E;
  --c-ink-2:        #1B1714;
  --c-ink-3:        #241F1A;
  --c-parchment:    #F7F3EA;
  --c-parchment-2:  #EDE6D6;
  --c-card-light:   #FFFDF8;
  --c-gold:         #C6A24A;
  --c-gold-deep:    #8E6E23;
  --c-gold-light:   #DFBE6E;
  --c-oxblood:      #6B1F2A;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --measure: 64ch;
  --pad-section: clamp(3.5rem, 8vw, 6.5rem);
  --pad-x: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 3px;
}

/* ---------- 2. Semantic tokens — light theme ---------- */

:root,
[data-theme="light"] {
  --bg:            var(--c-parchment);
  --bg-alt:        var(--c-parchment-2);
  --bg-anchor:     var(--c-ink);
  --bg-card:       var(--c-card-light);
  --bg-inset:      rgba(36, 31, 26, 0.045);

  --fg:            var(--c-ink-3);
  --fg-soft:       #5C534A;
  --fg-heading:    var(--c-ink);
  --fg-anchor:     var(--c-parchment);
  --fg-anchor-soft:#CFC8BC;

  --accent:        var(--c-gold);
  --accent-text:   var(--c-gold-deep);
  --accent-anchor: var(--c-gold);
  --oxblood:       var(--c-oxblood);

  --line:          rgba(36, 31, 26, 0.14);
  --line-strong:   rgba(36, 31, 26, 0.28);
  --line-anchor:   rgba(198, 162, 74, 0.32);

  --shadow-soft:   0 1px 2px rgba(36, 31, 26, 0.05);
  color-scheme: light;
}

/* ---------- 3. Semantic tokens — dark theme ---------- */

[data-theme="dark"] {
  --bg:            #15120F;
  --bg-alt:        #1E1A16;
  --bg-anchor:     #0B0A08;
  --bg-card:       #1D1915;
  --bg-inset:      rgba(247, 243, 234, 0.05);

  --fg:            #EDE7DB;
  --fg-soft:       #A99F90;
  --fg-heading:    #F7F3EA;
  --fg-anchor:     var(--c-parchment);
  --fg-anchor-soft:#B5AC9E;

  --accent:        var(--c-gold);
  --accent-text:   var(--c-gold-light);
  --accent-anchor: var(--c-gold);
  --oxblood:       #A8515D;

  --line:          rgba(247, 243, 234, 0.13);
  --line-strong:   rgba(247, 243, 234, 0.26);
  --line-anchor:   rgba(198, 162, 74, 0.28);

  --shadow-soft:   0 1px 2px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

/* ---------- 4. Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 200ms ease, color 200ms ease;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--oxblood); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--fg-heading);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 3vw, 1.7rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--c-ink);
  padding: 0.7rem 1.2rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- 5. Utilities ---------- */

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 1rem;
}

.on-dark .eyebrow,
.section-dark .eyebrow { color: var(--accent-anchor); }

.center { text-align: center; }
.center p { margin-inline: auto; }

/* ---------- 6. Omega divider (signature element) ---------- */

.omega-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(320px, 60%);
  margin: 0 auto;
  padding: var(--pad-section) 0 0;
  color: var(--accent-text);
}

.omega-divider::before,
.omega-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.omega-divider span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-2px);
}

.on-dark .omega-divider,
.section-dark .omega-divider { color: var(--accent-anchor); }

/* ---------- 7. Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-gold { background: var(--accent); color: var(--c-ink); }
.btn-gold:hover { background: var(--c-gold-deep); color: var(--c-parchment); }

.btn-outline {
  background: transparent;
  color: var(--fg-heading);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  background: var(--fg-heading);
  color: var(--bg);
  border-color: var(--fg-heading);
}

.on-dark .btn-outline,
.section-dark .btn-outline,
.hero .btn-outline {
  color: var(--c-parchment);
  border-color: var(--accent);
}
.on-dark .btn-outline:hover,
.section-dark .btn-outline:hover,
.hero .btn-outline:hover {
  background: var(--accent);
  color: var(--c-ink);
}

/* ---------- 8. Header & navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-anchor);
  border-bottom: 1px solid var(--line-anchor);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--pad-x);
  width: min(1200px, 100%);
  margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-parchment);
  line-height: 1.25;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-anchor);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li { position: relative; }

.nav-links a,
.nav-links .submenu-toggle {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fg-anchor-soft);
  text-decoration: none;
  padding: 0.4rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links .submenu-toggle:hover,
.nav-links a[aria-current="page"],
.nav-links .submenu-toggle[aria-expanded="true"] {
  color: var(--accent-anchor);
  border-bottom-color: var(--accent-anchor);
}

.nav-links .btn { padding: 0.55rem 1.2rem; border-bottom: 1px solid transparent; }
.nav-links .btn:hover { border-bottom-color: transparent; }

.submenu-toggle::after {
  content: "\25BE";
  font-size: 0.7em;
  margin-left: 0.35em;
  opacity: 0.8;
}

.submenu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: -0.9rem;
  min-width: 13.5rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  background: var(--bg-anchor);
  border: 1px solid var(--line-anchor);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: none;
}

.submenu.open { display: block; }

.submenu a {
  display: block;
  padding: 0.55rem 1.1rem;
  border-bottom: none;
  font-weight: 400;
}
.submenu a:hover { color: var(--accent-anchor); background: rgba(198, 162, 74, 0.09); }

.nav-extra { display: flex; align-items: center; gap: 0.55rem; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-anchor);
  border-radius: 50%;
  background: transparent;
  color: var(--accent-anchor);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 160ms ease;
}
.theme-toggle:hover { background: rgba(198, 162, 74, 0.13); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-anchor);
  border-radius: var(--radius);
  color: var(--accent-anchor);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-anchor);
    border-bottom: 1px solid var(--line-anchor);
    padding: 0.5rem 0 1rem;
    display: none;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.open { display: flex; }

  .nav-links a,
  .nav-links .submenu-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.85rem var(--pad-x);
    border-bottom: none;
  }

  .submenu {
    position: static;
    display: none;
    border: 0;
    box-shadow: none;
    background: var(--bg-inset);
    border-radius: 0;
    min-width: 0;
    padding: 0;
  }
  .submenu.open { display: block; }
  .submenu a { padding-left: calc(var(--pad-x) + 1.1rem); }

  .nav-links .btn { margin: 0.75rem var(--pad-x) 0; text-align: center; }
}

/* ---------- 9. Hero carousel ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-anchor);
  color: var(--c-parchment);
  min-height: min(76vh, 660px);
  display: flex;
  align-items: flex-end;
}

@media (max-width: 860px) {
  .hero { min-height: min(92vh, 780px); }
  .hero-inner { padding-bottom: 4.6rem; }
  .hero-brandline { letter-spacing: 0.14em; font-size: 0.72rem; }
  .hero-copy h1, .hero-copy .h1 { font-size: clamp(1.85rem, 7.4vw, 2.5rem); }
  .hero-lede { font-size: 1.02rem; line-height: 1.5; }
}

.hero-slides { position: absolute; inset: 0; z-index: -2; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; }

.hero-slide .slide-blur,
.hero-slide .slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide .slide-blur {
  object-fit: cover;
  filter: blur(26px) saturate(0.75) brightness(0.42);
  transform: scale(1.15);
}

.hero-slide .slide-img { object-fit: cover; object-position: center 45%; }

/* Portrait artwork (flyers) sit inside the frame instead of filling it */
.hero-slide[data-fit="contain"] .slide-img {
  object-fit: contain;
  object-position: 78% center;
}

@media (max-width: 860px) {
  .hero-slide[data-fit="contain"] .slide-img {
    top: 1.5%;
    bottom: auto;
    height: 42%;
    object-position: center top;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(11, 10, 8, 0.62) 0%,
      rgba(11, 10, 8, 0.20) 26%,
      rgba(11, 10, 8, 0.62) 62%,
      rgba(11, 10, 8, 0.94) 100%);
}

@media (min-width: 861px) {
  .hero::after {
    background:
      linear-gradient(to right,
        rgba(11, 10, 8, 0.90) 0%,
        rgba(11, 10, 8, 0.72) 42%,
        rgba(11, 10, 8, 0.28) 72%,
        rgba(11, 10, 8, 0.45) 100%),
      linear-gradient(to bottom,
        rgba(11, 10, 8, 0.45) 0%,
        rgba(11, 10, 8, 0.10) 35%,
        rgba(11, 10, 8, 0.72) 100%);
  }
}

.hero-inner {
  position: relative;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: clamp(4rem, 12vw, 7rem) var(--pad-x) clamp(3.5rem, 7vw, 4.5rem);
}

.hero-copy { max-width: 34rem; }

@media (max-width: 860px) {
  .hero-inner { text-align: center; }
  .hero-copy { max-width: none; margin-inline: auto; }
}

.hero-brandline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-anchor);
  margin: 0 0 0.9rem;
}

.hero-copy h1,
.hero-copy .h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  color: var(--c-parchment);
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 22px rgba(11, 10, 8, 0.6);
}

.hero-lede {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  font-style: italic;
  color: #E4DED2;
  margin: 0 0 1.6rem;
  max-width: 30rem;
  text-shadow: 0 1px 12px rgba(11, 10, 8, 0.75);
}

@media (max-width: 860px) { .hero-lede { margin-inline: auto; } }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
}
@media (max-width: 860px) { .hero-actions { justify-content: center; } }

/* Slide controls */

.hero-controls {
  position: absolute;
  z-index: 3;
  right: var(--pad-x);
  bottom: clamp(1.1rem, 3vw, 1.8rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 860px) {
  .hero-controls { left: 0; right: 0; justify-content: center; }
}

.hero-dots { display: flex; gap: 0.45rem; margin-right: 0.3rem; }

.hero-dot {
  width: 9px; height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(247, 243, 234, 0.75);
  background: transparent;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}
.hero-dot.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.25); }

.hero-arrow {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(247, 243, 234, 0.45);
  border-radius: 50%;
  background: rgba(11, 10, 8, 0.4);
  color: var(--c-parchment);
  font-size: 1rem; line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.hero-arrow:hover { background: var(--accent); color: var(--c-ink); border-color: var(--accent); }

/* ---------- 10. Service-times bar (always visible, never rotates) ---------- */

.times-bar {
  background: var(--bg-anchor);
  border-top: 1px solid var(--line-anchor);
  border-bottom: 1px solid var(--line-anchor);
  color: var(--fg-anchor-soft);
}

.times-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 2.4rem;
  padding-block: 1.1rem;
  text-align: center;
}

@media (max-width: 720px) {
  .times-bar .wrap { gap: 0.5rem 1.4rem; padding-block: 0.9rem; }
  .times-bar .tb-item { font-size: 0.88rem; }
}

.times-bar .tb-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.times-bar .tb-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-anchor);
}

.times-bar .tb-value { color: var(--c-parchment); }

.times-bar a { color: var(--fg-anchor-soft); text-decoration: none; border-bottom: 1px solid var(--line-anchor); }
.times-bar a:hover { color: var(--accent-anchor); }

/* ---------- 11. Sections ---------- */

.section { padding: var(--pad-section) 0; }

.section-dark {
  background: var(--bg-anchor);
  color: var(--fg-anchor-soft);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--c-parchment); }
.section-dark p { color: var(--fg-anchor-soft); }

.section-tint { background: var(--bg-alt); }

.page-hero {
  background: var(--bg-anchor);
  color: var(--fg-anchor-soft);
  padding: clamp(3rem, 7vw, 4.75rem) var(--pad-x);
  text-align: center;
}
.page-hero h1 { color: var(--c-parchment); margin-bottom: 0.35em; }
.page-hero p { color: var(--fg-anchor-soft); max-width: 52ch; margin: 0 auto; }

/* ---------- 12. Prose ---------- */

.prose { width: min(68ch, 100%); margin-inline: auto; }
.prose h2 { margin-top: 2.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.9em; }

.prose blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--fg);
}

.prose blockquote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---------- 13. Belief list ---------- */

.belief-list { list-style: none; margin: 2rem 0 0; padding: 0; }

.belief-list li {
  padding: 1.1rem 0 1.1rem 2.2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.belief-list li::before {
  content: "\03A9";
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-text);
}

.belief-list strong { display: block; font-size: 1.05rem; color: var(--fg-heading); }

/* ---------- 14. Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.card h3 { font-size: 1.3rem; margin-bottom: 0.45em; }
.card p { font-size: 0.97rem; flex: 1; }
.card a { font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.card a::after { content: " \2192"; }

/* ---------- 15. Item grid (sermons, teachings, audio, albums) ---------- */

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.item-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.item-body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }

.item-meta {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.5rem;
}

.item h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
.item p { font-size: 0.94rem; flex: 1; margin-bottom: 0.9rem; }
.item a.item-link { font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.item a.item-link::after { content: " \2192"; }

/* ---------- 16. Video ---------- */

.video-frame {
  position: relative;
  width: min(880px, 100%);
  margin: 2.25rem auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line-anchor);
}

.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-caption {
  margin: 1rem auto 0;
  width: min(880px, 100%);
  text-align: left;
  font-size: 0.95rem;
}
.video-caption .vc-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--c-parchment);
  margin: 0 0 0.2rem;
}
.video-caption .vc-date {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-anchor); margin: 0;
}

/* Horizontal "recent uploads" rail */

.rail-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 3rem auto 0.9rem; width: min(1120px, 100%);
  padding-inline: var(--pad-x); text-align: left;
}
.rail-head h3 { margin: 0; font-size: 1.3rem; }
.rail-head a { font-size: 0.86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem var(--pad-x) 1.25rem;
  width: min(1120px, 100%);
  margin-inline: auto;
  scrollbar-width: thin;
}

@media (min-width: 900px) { .rail { grid-auto-columns: minmax(250px, 1fr); } }

.rail::-webkit-scrollbar { height: 7px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-anchor); border-radius: 99px; }

.rail-card {
  scroll-snap-align: start;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: rgba(247, 243, 234, 0.05);
  border: 1px solid var(--line-anchor);
  transition: transform 180ms ease, border-color 180ms ease;
}
.rail-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.rail-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.rail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.rail-body { padding: 0.75rem 0.85rem 0.95rem; }
.rail-body .rc-date {
  font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent-anchor); margin: 0 0 0.3rem;
}
.rail-body .rc-title {
  font-family: var(--font-display);
  font-size: 1.02rem; line-height: 1.3;
  color: var(--c-parchment);
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--fg-anchor-soft);
  margin-top: 1.5rem;
}

/* Skeleton while the feed loads */
.rail-card.is-skeleton, .video-frame.is-skeleton {
  background: rgba(247, 243, 234, 0.07);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ---------- 17. From the pastor's desk ---------- */

.pastor-desk .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 800px) {
  .pastor-desk .wrap { grid-template-columns: minmax(0, 1fr); }
}

.pastor-photo {
  position: relative;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.pastor-photo img { width: 100%; height: auto; position: relative; z-index: 1; }
.pastor-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  transform: translate(12px, 12px);
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 800px) { .pastor-photo { max-width: 22rem; margin-inline: auto; } }

.pastor-desk blockquote {
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--fg);
}

.pastor-sig {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-top: 1.2rem;
}
.pastor-sig strong { display: block; font-size: 1rem; letter-spacing: 0.04em; text-transform: none; color: var(--fg-heading); }

/* ---------- 18. Audio player ---------- */

.audio-item { flex-direction: column; }
.audio-item .item-body { padding-bottom: 1rem; }

.audio-player {
  width: 100%;
  margin-top: 0.4rem;
  border-radius: var(--radius);
}

.audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin-top: 0.85rem;
  font-size: 0.88rem;
}
.audio-actions a { font-weight: 600; text-decoration: none; }

.archive-frame {
  width: 100%;
  aspect-ratio: 16 / 5;
  border: 1px solid var(--line);
  margin-top: 0.5rem;
}
.archive-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 19. Photo albums ---------- */

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
  margin-top: 2.25rem;
}

.album {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}

.album img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms ease;
}
.album:hover img { transform: scale(1.05); }

.album-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1rem 0.95rem;
  background: linear-gradient(to top, rgba(11,10,8,0.92), rgba(11,10,8,0));
  color: var(--c-parchment);
}
.album-label .al-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin: 0;
}
.album-label .al-meta {
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--accent-anchor); margin: 0.2rem 0 0;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 7, 6, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }

.lb-caption {
  position: absolute;
  left: 0; right: 0; bottom: 1.1rem;
  text-align: center;
  color: var(--fg-anchor-soft);
  font-size: 0.9rem;
  padding-inline: 1rem;
}

.lb-btn {
  position: absolute;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(247,243,234,0.4);
  border-radius: 50%;
  background: rgba(11,10,8,0.6);
  color: var(--c-parchment);
  font-size: 1.2rem;
  cursor: pointer;
}
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: clamp(0.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.lb-btn:hover { background: var(--accent); color: var(--c-ink); border-color: var(--accent); }

/* ---------- 20. Visit / tables / map ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

.times-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }

.times-table th, .times-table td {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.times-table th { font-weight: 600; color: var(--fg-heading); white-space: nowrap; }

.map-frame {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  background: var(--bg-alt);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.visit-list { list-style: none; margin: 0; padding: 0; }
.visit-list li { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.visit-list h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
.visit-list p { margin: 0; font-size: 0.98rem; }

/* ---------- 21. FAQ / details ---------- */

.faq { border-top: 1px solid var(--line); margin-top: 2rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }

.faq summary {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0.9rem 0 0; font-size: 0.98rem; }

/* ---------- 22. Photo bands & slots ---------- */

.photo-band { width: 100%; aspect-ratio: 21 / 9; overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .photo-band { aspect-ratio: 4 / 3; } }

.photo-slot {
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--fg-soft);
}

/* ---------- 23. Forms ---------- */

form label {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-heading);
  margin-bottom: 0.35rem;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select,
form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(198, 162, 74, 0.35);
  outline-offset: 1px;
}

form textarea { resize: vertical; min-height: 8rem; }
form button { cursor: pointer; font-family: var(--font-body); }

.form-hint { font-size: 0.85rem; color: var(--fg-soft); margin-top: -0.4rem; }

.form-error {
  display: none;
  font-size: 0.85rem;
  color: var(--oxblood);
  margin-top: 0.3rem;
  font-weight: 600;
}
.form-error.show { display: block; }

/* ---------- 24. Footer ---------- */

.site-footer {
  background: var(--bg-anchor);
  color: var(--fg-anchor-soft);
  padding: 3.5rem var(--pad-x) 2rem;
  margin-top: var(--pad-section);
}

.footer-grid {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.site-footer h4 {
  color: var(--accent-anchor);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.site-footer a { color: var(--fg-anchor-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent-anchor); }

.footer-bottom {
  width: min(1120px, 100%);
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-anchor);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ---------- 25. WhatsApp float ---------- */

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- 26. Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- 27. Print ---------- */

@media print {
  .site-header, .wa-float, .hero-controls, .theme-toggle, .rail { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 28. Click-to-play cards ---------- */

.rail-card { position: relative; }

.rail-card.is-playing,
.item-thumb.is-playing {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.rail-card.is-playing .rc-date::after,
.item-thumb.is-playing + .item-body .item-meta::after {
  content: " \00b7 now playing";
  color: var(--accent);
}

/* Play triangle over every clickable thumbnail */

.rail-thumb, .item-thumb { position: relative; }

.rail-card .rail-thumb::after,
a.item-thumb .play-badge {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(11, 10, 8, 0.62);
  border: 1px solid rgba(247, 243, 234, 0.8);
  transition: background-color 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.rail-card .rail-thumb::before,
a.item-thumb .play-badge::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  margin: -7px 0 0 -4px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--c-parchment);
  pointer-events: none;
}

a.item-thumb .play-badge::before { margin: -7px 0 0 -4px; }

.rail-card:hover .rail-thumb::after,
a.item-thumb:hover .play-badge {
  background: var(--accent);
  transform: scale(1.08);
}

.rail-card:hover .rail-thumb::before,
a.item-thumb:hover .play-badge::before {
  border-left-color: var(--c-ink);
}

a.item-thumb { display: block; cursor: pointer; }
a.item-thumb img { transition: transform 400ms ease; }
a.item-thumb:hover img { transform: scale(1.04); }

/* ---------- 29. Back to the latest sermon ---------- */

.video-caption .vc-flag {
  color: var(--accent-anchor);
  font-weight: 600;
}

.back-to-latest {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--c-parchment);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.back-to-latest:hover { background: var(--accent); color: var(--c-ink); }
