/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
  --navy:        #1B2D5B;
  --navy-dark:   #0F1E3D;
  --navy-light:  #2A3F73;
  --gold:        #C9A84C;
  --gold-light:  #E8D5A0;
  --gold-dark:   #A88830;
  --cream:       #FAF8F4;
  --cream-dark:  #F0EBE3;
  /* Used by the Parental Counselling card's image panel and its matching CTA */
  --forest:       #2D6A4F;
  --forest-dark:  #235340;
  --forest-light: #52B788;
  /* Decorative-only extras for the Resources page's book covers and gallery
     placeholders — named so that palette variety there stays token-driven
     instead of one-off hex, same as every other color in the theme. */
  --plum:         #6B3FA0;
  --plum-light:   #9B72CF;
  --rust:         #B45309;
  --rust-light:   #D97706;
  --white:       #FFFFFF;
  --text:        #1A1A2E;
  --text-muted:  #6B7280;
  /* Darkened from the original #9CA3AF, which read at only ~2.5:1 and failed
     WCAG AA's 4.5:1 for text this size. Clears 4.5:1 on --white (4.57:1) while
     staying lighter than --text-muted, keeping the two-tier hierarchy.
     NOTE: this is a white-background token — it lands at 4.31:1 on --cream,
     which does NOT pass, so use --text-muted for small text on cream. */
  --text-light:  #6E7686;
  --border:      #E5E0D8;

  /* Heading = bold geometric sans (matches the original site).
     Falls back to Ghost custom-font selection (Design settings) when set. */
  --font-heading: var(--gh-font-heading, 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  --font-body:    var(--gh-font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);

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

  --max-w:      1200px;
  --max-w-text: 720px;
  --frame-max-w: 1600px;
  /* Tall enough for the enlarged 84px .site-logo crest (see below) with
     headroom to spare — every page's top offset is calc(var(--header-h) + ...),
     so this one change carries through hero/page-hero/post-header/etc. too. */
  --header-h:   110px;

  --radius:    8px;
  --radius-sm: 4px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);

  --transition:      0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ==========================================
   RESET
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--text);
  overflow-x: hidden;
  /* Deep-navy wash instead of a flat neutral — echoes the header/footer navy
     instead of reading as an unrelated gray backdrop. Only visible in the
     margins outside .site-frame. Mirrored around the center (navy at both
     outer edges, fading to cream behind the frame) so the left and right
     margins match instead of one side differing from the other. */
  background: linear-gradient(90deg, var(--navy-dark) 0%, var(--cream) 50%, var(--navy-dark) 100%);
}

/* Keeps the site itself from stretching edge-to-edge on very wide screens —
   the site-header (fixed), mobile nav, and lightbox are all confined to this
   box via the transform below, which gives fixed-position descendants a new
   containing block instead of the viewport. */
.site-frame {
  max-width: var(--frame-max-w); margin: 0 auto;
  background: var(--white);
  transform: translateZ(0);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p  { max-width: 70ch; color: var(--text-muted); }

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--sp-6);
  margin: var(--sp-8) 0;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (min-width: 768px) { .container { padding: 0 var(--sp-8); } }

.section    { padding: var(--sp-20) 0; }
.section-sm { padding: var(--sp-12) 0; }
.section-lg { padding: var(--sp-24) 0; }

/* The section right under a page-hero heading only needs a small gap, not the
   full section rhythm — applies to every page-hero page so the value stays
   the same everywhere instead of drifting per page. */
.page-hero + section { padding-top: var(--sp-6); }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--sp-3);
}

.section-header { margin-bottom: var(--sp-12); }
.section-header h2 { margin-bottom: var(--sp-4); }
.section-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.divider { width: 56px; height: 3px; background: var(--gold); margin: var(--sp-4) auto; border-radius: 2px; }
.divider-left { margin-left: 0; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-lg { padding: 0.9rem 2.1rem; font-size: 0.95rem; }

.btn-gold        { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-gold:hover  { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,168,76,0.4); }

.btn-navy        { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover  { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,45,91,0.3); }

.btn-outline     { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-outline-navy     { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* Matches the green image panel on the Parental Counselling card, the way
   .btn-navy / .btn-gold match the navy and gold panels on the other two. */
.btn-forest        { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn-forest:hover  { background: var(--forest-dark); border-color: var(--forest-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(45,106,79,0.35); }

.w-full { width: 100%; }

/* ==========================================
   HEADER & NAV
   ========================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.transparent { background: transparent; }
.site-header.scrolled    { background: var(--navy); box-shadow: 0 2px 20px rgba(0,0,0,0.18); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--sp-6);
}

/* Header crest is the doubled 84px (from 42px); the wordmark beside it is only
   +50% (1.8rem from 1.2rem) rather than doubled — at 2.4rem the lockup was wide
   enough to squeeze the nav into wrapping. Crest steps down below 1024px so the
   lockup still fits beside the button and menu toggle. */
.site-logo { flex-shrink: 0; display: flex; align-items: center; gap: var(--sp-3); }
.site-logo img { height: 64px; width: auto; }

.footer-logo-lockup { display: flex; align-items: center; gap: var(--sp-3); }
.footer-logo-lockup img { height: 40px; width: auto; }

/* Base size — also what the footer lockup uses, since its crest stayed 40px.
   The header scales its own copy up via the .site-logo rules below. */
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name    { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--white); }
.logo-tagline { font-size: 0.62rem; color: var(--gold-light); letter-spacing: 0.06em; text-transform: uppercase; }

.site-logo .logo-name    { font-size: 1.45rem; }
.site-logo .logo-tagline { font-size: 0.75rem; }

/* 1024–1199 is the tight band: the nav has just appeared but there isn't room
   for the full-size lockup beside it and the button. Hold an intermediate size
   there (the nav's own padding is tightened to match, after .nav-link is
   defined below), then go full size from 1200 up. */
@media (min-width: 1024px) {
  .header-inner { gap: var(--sp-4); }
  .site-logo img { height: 50px; }
  .site-logo .logo-name    { font-size: 1.3rem; }
  .site-logo .logo-tagline { font-size: 0.7rem; }
}
@media (min-width: 1200px) {
  .header-inner { gap: var(--sp-6); }
  .site-logo img { height: 84px; }
  .site-logo .logo-name    { font-size: 1.8rem; }
  .site-logo .logo-tagline { font-size: 0.93rem; }
}

/* flex-shrink:0 + nowrap: without these the nav is the only flex item that can
   shrink, so the wider logo lockup squeezed it until "Spiritual Practices" and
   "About Us" wrapped onto two lines. */
.site-nav { display: none; flex-shrink: 0; }
@media (min-width: 1024px) { .site-nav { display: block; } }

.nav-list { display: flex; align-items: center; gap: var(--sp-1); }
.nav-link {
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255,255,255,0.82);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-link.active { color: var(--gold-light); }

/* Must come after the .nav-link base rule above, not up with the logo media
   queries — same specificity, so source order decides. Buys back the width the
   enlarged logo takes in the 1024–1199 band. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-link { padding: var(--sp-2); font-size: 0.8rem; }
}

.header-actions { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }
.header-actions .btn { display: none; }
@media (min-width: 768px) { .header-actions .btn { display: inline-flex; } }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 4px; cursor: pointer;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); transform-origin: center; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--navy-dark);
  padding: var(--sp-6);
  transform: translateY(-100%);
  opacity: 0; visibility: hidden;
  transition: all var(--transition-slow);
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.mobile-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.mobile-nav li a { display: block; padding: var(--sp-3) var(--sp-4); color: rgba(255,255,255,0.82); font-size: 1rem; font-weight: 500; border-radius: var(--radius-sm); transition: all var(--transition); }
.mobile-nav li a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.mobile-nav li:last-child a { margin-top: var(--sp-4); background: var(--gold); color: var(--navy-dark); text-align: center; font-weight: 600; }

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative; min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--navy-dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05); transition: transform 8s ease;
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  /* deep navy (not purple) — tuned so the hero photo still reads through it
     while the white headline and gold eyebrow keep their contrast */
  background: linear-gradient(180deg, rgba(11,21,46,0.70) 0%, rgba(9,18,40,0.84) 100%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  /* Bottom padding still reserves the band .hero-scroll sits in, just less of one
     now that there's no button row between the description and that cue. */
  padding: calc(var(--header-h) + var(--sp-6)) var(--sp-6) var(--sp-12); max-width: 820px;
}
.hero-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: var(--sp-4);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero h1 {
  color: var(--white); margin-bottom: var(--sp-6);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.hero-description {
  font-size: 1.2rem; line-height: 1.8; color: rgba(255,255,255,0.85);
  max-width: 580px; margin: 0 auto var(--sp-10);
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.6s forwards;
}
.hero-scroll {
  position: absolute; bottom: var(--sp-4); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
  color: rgba(255,255,255,0.5); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  animation: heroFloat 3s ease-in-out infinite;
}
.hero-scroll::after { content: ''; width: 1px; height: 24px; background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent); }

@keyframes fadeUp   { to { opacity: 1; transform: translateY(0); } }
@keyframes heroFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}

/* ==========================================
   FEATURE BAND (navy strip of 5 quick links under the hero)
   ========================================== */
.feature-band { background: var(--navy); padding: var(--sp-4) 0; }
.feature-band-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
.feature-pill {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-2); text-align: center;
  border-radius: var(--radius); transition: background var(--transition);
}
.feature-pill:hover { background: rgba(255,255,255,0.06); }
.feature-pill-icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,0.14); transition: background var(--transition);
}
.feature-pill:hover .feature-pill-icon { background: var(--gold); }
.feature-pill-icon svg { width: 34px; height: 34px; color: var(--gold-light); stroke: currentColor; transition: color var(--transition); }
.feature-pill:hover .feature-pill-icon svg { color: var(--navy-dark); }
.feature-pill-label { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: 0.01em; }

@media (max-width: 768px) {
  .feature-band-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
}
@media (max-width: 420px) {
  .feature-band-grid { grid-template-columns: repeat(2, 1fr); }
  /* 5 pills into 2 columns leaves the last one alone on its own row, hugging
     the left edge. Span it across both columns so it centres instead. */
  .feature-band-grid > .feature-pill:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ==========================================
   FEATURE GRID (supporting devotional cards under "Grace for Today")
   ========================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-6); margin-top: var(--sp-12); }

/* ==========================================
   ABOUT TEASER
   ========================================== */
.about-teaser { padding: var(--sp-12) 0; background: var(--white); }
.about-teaser-inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-12); align-items: center; }
@media (min-width: 768px) { .about-teaser-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-16); } }

.about-image-wrap { position: relative; }
.about-image-wrap img { width: 100%; height: 500px; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* Neutral placeholder shown until a real image is uploaded */
.image-placeholder {
  width: 100%; height: 500px; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-4); color: rgba(255,255,255,0.55); box-shadow: var(--shadow-lg);
}
.image-placeholder svg { width: 64px; height: 64px; stroke: currentColor; }
.image-placeholder span { font-size: 0.8rem; letter-spacing: 0.03em; }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); color: var(--navy-dark);
  border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-5);
  text-align: center; font-weight: 700; box-shadow: var(--shadow);
}
.about-badge .years       { display: block; font-family: var(--font-heading); font-size: 2.5rem; line-height: 1; }
.about-badge .years-label { font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }

.about-content { padding: var(--sp-4) 0; }
.about-content h2 { margin-bottom: var(--sp-5); }
.about-content p  { margin-bottom: var(--sp-6); }
@media (min-width: 768px) { .about-story-inner { align-items: start; } }
.story-more summary { display: inline-block; cursor: pointer; list-style: none; color: var(--gold-dark); font-weight: 600; padding: var(--sp-3) 0; min-height: 44px; }
.story-more summary::-webkit-details-marker { display: none; }
.story-more summary span::after { content: " \2192"; }
.story-more .story-more-close, .story-more[open] .story-more-open { display: none; }
.story-more[open] .story-more-close { display: inline; }
.story-more[open] { display: flex; flex-direction: column; }
.story-more[open] summary { order: 2; align-self: flex-start; }
.story-more[open] summary span::after { content: " \2191"; }

/* ==========================================
   PRAYER SECTION
   ========================================== */
.prayer-section {
  position: relative; padding: var(--sp-24) 0;
  background: var(--navy); overflow: hidden;
  background-size: cover; background-position: center;
}
/* Homepage's "Grace for Today" instance only — page-counselling.hbs uses the
   same .prayer-section class at the base padding, so the reduction below is
   scoped to this modifier rather than changed on .prayer-section itself. */
.prayer-section.prayer-section-home { padding: var(--sp-12) 0; }
/* When a background photo is set, darken it for legible text */
.prayer-section.has-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,21,46,0.82), rgba(9,18,40,0.88));
  z-index: 0;
}
/* Lets .section-header sit inside the navy .prayer-section (used when the
   featured devotional quote and the "Grace for Today" heading share one
   section) — .section-header's default colors assume a light background. */
.prayer-section .section-header .section-label { color: var(--gold-light); }
.prayer-section .section-header h2 { color: var(--white); }

.prayer-content { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.prayer-label { display: inline-block; font-size: 0.73rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--sp-5); }
/* The homepage devotional excerpt. Not a pull-quote: upright rather than
   italic, and held to a single line — anything longer ellipsises, since the
   full post is one click away on the card grid below. */
.prayer-excerpt {
  font-family: var(--font-heading); font-style: normal;
  font-size: clamp(1rem, 2vw, 1.4rem); line-height: 1.6;
  color: rgba(255,255,255,0.92); margin: 0 auto var(--sp-6);
  border: none; padding: 0; max-width: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Wide enough that the input and the CTA button sit on one line — the button's
   label is long, so at the previous 440px the form wrapped onto two rows. */
.prayer-subscribe { max-width: 620px; margin: var(--sp-16) auto 0; text-align: center; position: relative; z-index: 1; }
.prayer-subscribe-note { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-bottom: var(--sp-4); max-width: none; }
.prayer-subscribe .newsletter-form { justify-content: center; flex-wrap: nowrap; }
.prayer-subscribe .newsletter-form input[type="email"] { min-width: 0; }
.prayer-subscribe .newsletter-form .btn { white-space: nowrap; flex-shrink: 0; }
/* Dark-background variant of .newsletter-form's input, since that form is
   normally used on the light "Sounds of Grace" section further down. */
.prayer-section .newsletter-form input[type="email"] {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.25); color: var(--white);
}
.prayer-section .newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.prayer-section .newsletter-form input[type="email"]:focus { border-color: var(--gold); }

/* ==========================================
   NEWSLETTER
   ========================================== */
.newsletter { background: var(--cream); padding: var(--sp-20) 0; }
/* Homepage only — .newsletter (the "Sounds of Grace" partial) is also included
   on the Spiritual Practices page, which wasn't part of this spacing request. */
body.home-template .newsletter { padding: var(--sp-10) 0; }
.newsletter-inner { max-width: 540px; margin: 0 auto; text-align: center; }
.newsletter h2 { margin-bottom: var(--sp-3); }
.newsletter p  { margin-bottom: var(--sp-8); max-width: none; }

.newsletter-form { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px; padding: 0.72rem 1.2rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.875rem; transition: border-color var(--transition); background: var(--white);
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--gold); }
/* --text-muted, not --text-light: this sits on the section's cream background,
   where --text-light only reaches 4.31:1. --text-muted clears 4.5:1 there. */
.newsletter-note { font-size: 0.78rem; color: var(--text-muted); margin-top: var(--sp-3); max-width: none; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.72); padding: var(--sp-16) 0 var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); margin-bottom: var(--sp-12); }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-heading { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--sp-5); }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }

.social-links { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); }
.social-link {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: rgba(255,255,255,0.65);
}
.social-link:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-2px); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }

.footer-brand p { font-size: 0.85rem; line-height: 1.75; max-width: 280px; color: rgba(255,255,255,0.55); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--sp-6);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4);
  font-size: 0.78rem; color: rgba(255,255,255,0.38);
}

/* ==========================================
   POST / DEVOTIONAL CARDS
   ========================================== */
.post-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
  text-decoration: none; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.post-card-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: var(--sp-2); }
/* Title and excerpt are both pinned to exactly 2 lines (min-height reserves the
   second line when the text is short, line-clamp ellipsises anything longer) so
   cards in a row stay aligned instead of the body text jumping up and down
   depending on how long each title happens to be. */
.post-card-title {
  font-size: 1.1rem; margin-bottom: var(--sp-3); color: var(--navy); line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; min-height: 2.8em; /* 2 lines at line-height 1.4 */
}
.post-card-excerpt {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; flex: 1; max-width: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; min-height: 3.4em; /* 2 lines at line-height 1.7 */
}
.post-card-meta { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-light); display: flex; align-items: center; gap: var(--sp-3); }

/* ==========================================
   SINGLE POST
   ========================================== */
.post-header { padding-top: calc(var(--header-h) + var(--sp-16)); padding-bottom: var(--sp-12); background: var(--cream); text-align: center; }
.post-header .post-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); background: var(--gold-light); padding: var(--sp-1) var(--sp-3); border-radius: 100px; margin-bottom: var(--sp-4); }
.post-header h1 { max-width: 720px; margin: 0 auto var(--sp-5); }
.post-header .post-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: var(--sp-4); }
.post-featured-image { width: 100%; max-height: 500px; object-fit: cover; }
.post-content { max-width: var(--max-w-text); margin: 0 auto; padding: var(--sp-12) var(--sp-6); }
.post-content p { margin-bottom: var(--sp-6); font-size: 1.05rem; line-height: 1.85; color: var(--text); max-width: none; }
.post-content h2, .post-content h3 { margin-top: var(--sp-10); margin-bottom: var(--sp-4); }
.post-content blockquote { margin: var(--sp-8) 0; padding: var(--sp-5) var(--sp-6); background: var(--cream); border-radius: var(--radius); }

/* Ghost card styles */
.gh-content figure { margin: var(--sp-8) 0; }
.gh-content figure img { border-radius: var(--radius); }
.gh-content figcaption { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: var(--sp-2); }

/* ==========================================
   PAGE HERO (inner pages)
   ========================================== */
.page-hero {
  padding-top: calc(var(--header-h) + var(--sp-16)); padding-bottom: var(--sp-20);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center; color: var(--white); position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 56px; background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-4); }
.page-hero p  { font-size: 1.1rem; color: rgba(255,255,255,0.78); max-width: 540px; margin: 0 auto; }

.breadcrumb { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-bottom: var(--sp-4); }
.breadcrumb a     { color: var(--gold-light); }
.breadcrumb span  { color: rgba(255,255,255,0.38); }

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-section { padding: var(--sp-20) 0; }
/* nth-of-type (not nth-child): page-about.hbs has a <div class="page-hero">
   before these <section>s, so nth-child counted it as sibling #1 and threw the
   alternation off by one — the first .about-section (right after .page-hero's
   white curve) landed on "even" and got cream, creating a visible seam right
   at the curve. nth-of-type counts only among <section> siblings. */
.about-section:nth-of-type(even) { background: var(--cream); }

/* Mission & Vision opts out of the cream/white alternation above for a navy
   field instead — the gold crest reads far better against it than against
   white. Must be qualified with .about-section: `:nth-of-type()` counts as a
   class, so the rule above is (0,2,0) and a lone .about-section-mission at
   (0,1,0) would lose to it no matter the source order. Doubling up matches
   its specificity, and coming later in the file breaks the tie. */
.about-section.about-section-mission { background: var(--navy); }
.about-section-mission .section-header .section-label { color: var(--gold-light); }
.about-section-mission .section-header h2 { color: var(--white); }

.mission-crest { margin-bottom: var(--sp-8); }
.mission-crest img { width: 160px; height: auto; margin: 0 auto; }
@media (min-width: 640px) { .mission-crest img { width: 190px; } }

.founders-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); margin-top: var(--sp-12); }
@media (min-width: 640px) { .founders-grid { grid-template-columns: repeat(2, 1fr); } }

.founder-card { text-align: center; }
.founder-card img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: center top; margin: 0 auto var(--sp-5); border: 4px solid var(--gold-light); box-shadow: var(--shadow); }
.founder-card h3 { margin-bottom: var(--sp-2); }
.founder-card .role { font-size: 0.82rem; color: var(--gold-dark); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--sp-4); display: block; }
.founder-card p { font-size: 0.9rem; margin: 0 auto; }
.founder-card p:not(.role) { text-align: left; }

.story-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); }
@media (min-width: 768px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
.story-item { padding: var(--sp-8); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.story-item-number {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-light); color: var(--navy-dark);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
  margin-bottom: var(--sp-4);
}
.story-item h3 { margin-bottom: var(--sp-3); }
.story-item p  { max-width: none; }

/* ==========================================
   SPIRITUAL PRACTICES PAGE
   ========================================== */
.devotionals-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); margin-top: var(--sp-12); }
@media (min-width: 640px)  { .devotionals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .devotionals-grid { grid-template-columns: repeat(3, 1fr); } }

.morning-prayer { background: var(--cream); padding: var(--sp-20) 0; text-align: center; }
/* First section under the page-hero: its curve is white, so this one has to
   be white too (cream left a visible seam). The next section picks up cream. */
.page-hero + .morning-prayer { background: var(--white); padding-top: var(--sp-4); }
.page-hero + .morning-prayer .prayer-details { background: var(--cream); box-shadow: none; }
.morning-prayer + .section { background: var(--cream); }
.morning-prayer h2 { margin-bottom: var(--sp-5); }
.morning-prayer p  { margin: 0 auto var(--sp-8); font-size: 1.05rem; }
.prayer-details { margin: 0 auto var(--sp-8); padding: var(--sp-6); max-width: 520px; text-align: left; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.prayer-details > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--sp-3); padding: var(--sp-3) 0; }
.prayer-details > div + div { border-top: 1px solid var(--cream-dark); }
.prayer-details dt { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-dark); }
.prayer-details dd { margin: 0; overflow-wrap: anywhere; }
.prayer-details a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.prayer-status { display: inline-block; margin: 0 auto var(--sp-6); padding: var(--sp-2) var(--sp-5); border-radius: 999px; background: var(--cream-dark); color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.prayer-status[hidden] { display: none; }
.prayer-status.is-live { background: var(--navy); color: var(--white); }
.prayer-status.is-live::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; margin-right: 0.6rem; border-radius: 50%; background: var(--gold); animation: prayer-pulse 1.6s ease-in-out infinite; }
@keyframes prayer-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .prayer-status.is-live::before { animation: none; } }
.prayer-newsletter { max-width: 520px; margin: var(--sp-10) auto 0; padding-top: var(--sp-8); border-top: 1px solid var(--cream-dark); }
.prayer-newsletter h3 { margin-bottom: var(--sp-2); }
.morning-prayer .prayer-newsletter p { margin: 0 auto var(--sp-4); font-size: 0.95rem; }
.prayer-newsletter .newsletter-form { justify-content: center; }
.prayer-times { margin: var(--sp-2) 0 0; }
.prayer-times li { display: grid; grid-template-columns: 5rem 1fr; gap: var(--sp-3); padding: 2px 0; }
.prayer-times li[hidden] { display: none; }
.prayer-times li span { color: var(--text-muted); font-size: 0.9rem; }
.prayer-times li b { font-weight: 600; }
.prayer-actions [hidden] { display: none; }
.prayer-actions .btn { gap: 0.55rem; }
.btn-ico { width: 1.15em; height: 1.15em; flex: none; }
.prayer-actions { display: flex; flex-direction: column; align-items: center; gap: var(--sp-6); }
.prayer-join-row, .prayer-calendar-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); }
.prayer-join-row:not(:has(> :not([hidden]))) { display: none; }
.prayer-calendar { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.prayer-calendar-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }


.prayer-request { background: var(--navy); padding: var(--sp-20) 0; }
.prayer-request-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.prayer-request-inner h2 { color: var(--white); margin-bottom: var(--sp-4); }
.prayer-request-inner > .divider { background: var(--gold); }

.prayer-form { text-align: left; display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6); }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-group label { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.78); }
.form-group input, .form-group textarea {
  padding: 0.72rem 1rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm); color: var(--white); font-size: 0.875rem;
  transition: border-color var(--transition), background var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.38); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.14); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* ==========================================
   RESOURCES PAGE
   ========================================== */
.resources-tabs { display: flex; gap: var(--sp-1); flex-wrap: wrap; border-bottom: 2px solid var(--border); margin-bottom: var(--sp-10); }
.tab-btn {
  padding: var(--sp-3) var(--sp-5); font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all var(--transition); cursor: pointer; position: relative; margin-bottom: -2px;
}
.tab-btn:hover  { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom: 2px solid var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--sp-8); margin-top: var(--sp-8); }
.book-card { text-align: center; }
.book-cover { aspect-ratio: 2/3; background: var(--cream-dark); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--sp-4); box-shadow: var(--shadow); transition: transform var(--transition); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card:hover .book-cover { transform: translateY(-4px) rotate(-1deg); }
.book-card h4 { margin-bottom: var(--sp-2); font-size: 1rem; }
.book-author { font-size: 0.78rem; color: var(--text-light); margin-bottom: var(--sp-4); display: block; }

.downloads-list { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-8); }
.download-item { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-5) var(--sp-6); background: var(--cream); border-radius: var(--radius); border: 1px solid var(--border); transition: all var(--transition); gap: var(--sp-4); flex-wrap: wrap; }
.download-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.download-info { display: flex; align-items: center; gap: var(--sp-4); }
.download-icon { width: 44px; height: 44px; background: var(--navy); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.download-icon svg { width: 20px; height: 20px; color: var(--white); stroke: currentColor; }
.download-info h4 { font-size: 1rem; margin-bottom: var(--sp-1); }
.download-info span { font-size: 0.78rem; color: var(--text-muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-8); }
.gallery-item { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius); cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(27,45,91,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { width: 40px; height: 40px; color: var(--white); stroke: currentColor; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.93); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--sp-6); opacity: 0; visibility: hidden; transition: all var(--transition); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 85vh; max-width: 90vw; border-radius: var(--radius-sm); object-fit: contain; }
.lightbox-close { position: absolute; top: var(--sp-6); right: var(--sp-6); width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); cursor: pointer; transition: background var(--transition); }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close svg { width: 20px; height: 20px; stroke: currentColor; }

/* ==========================================
   COUNSELLING PAGE
   ========================================== */
.services-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-8); margin-top: var(--sp-12); }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
/* Cards are flex columns so that, however long each blurb is, the headings line
   up, the copy starts at the same y, and every "Book a … Session" button sits
   on the same baseline at the bottom of the card rather than floating up under
   a short paragraph. The grid stretches all cards to equal height; .service-card-body
   fills that height and .service-card p takes the slack. */
.service-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-image { height: 220px; overflow: hidden; flex-shrink: 0; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.service-card:hover .service-card-image img { transform: scale(1.05); }
.service-card-body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
/* Two-line heading box keeps the copy below it aligned across cards even when
   one title wraps and the others don't. */
.service-card h3 {
  margin-bottom: var(--sp-3); line-height: 1.3;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  /* em (not rem) so the reserved 2 lines track this element's own font-size,
     which comes from the responsive global h3 scale rather than a fixed value. */
  overflow: hidden; min-height: 2.6em;
}
.service-card p  { font-size: 0.875rem; line-height: 1.7; margin-bottom: var(--sp-6); max-width: none; flex: 1; }
.service-card .btn { margin-top: auto; }

.counselling-info { background: var(--cream); padding: var(--sp-12) 0; }
.info-strip { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 640px) { .info-strip { grid-template-columns: repeat(3, 1fr); } }
.info-item { text-align: center; padding: var(--sp-6); }
.info-icon { width: 56px; height: 56px; background: var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-4); }
.info-icon svg { width: 24px; height: 24px; color: var(--gold); stroke: currentColor; }
.info-item h4 { margin-bottom: var(--sp-2); }
.info-item p  { font-size: 0.875rem; margin: 0 auto; }

/* ==========================================
   ERROR PAGE
   ========================================== */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--sp-20) var(--sp-6); padding-top: calc(var(--header-h) + var(--sp-20)); }
.error-code { font-family: var(--font-heading); font-size: 8rem; line-height: 1; color: var(--gold-light); margin-bottom: var(--sp-4); }
.error-page h1 { margin-bottom: var(--sp-4); font-size: 2rem; }
.error-page p  { margin: 0 auto var(--sp-8); }

/* ==========================================
   SCROLL REVEAL  (progressive enhancement)
   Content is visible by default. Only when JS adds .js-reveal to <html>
   do elements start hidden and animate in. This keeps content visible for
   no-JS, crawlers, and if the observer fails — never a blank page.
   ========================================== */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  /* The hero's own entrance/idle motion isn't part of .reveal, so it needs
     covering separately: text fade-up, the floating scroll cue, and the slow
     Ken Burns zoom on the background image. */
  .hero-eyebrow, .hero h1, .hero-description { opacity: 1; transform: none; animation: none; }
  .hero-scroll { animation: none; }
  .hero-bg, .hero.loaded .hero-bg { transform: none; transition: none; }
  .post-card:hover, .service-card:hover { transform: none; }
}

/* ==========================================
   GHOST CARD STYLES (required by GScan)
   ========================================== */

/* Card widths */
.kg-width-wide {
  width: 85vw;
  max-width: 1200px;
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
}

.kg-width-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Image card */
.kg-image-card { margin: var(--sp-8) 0; }
.kg-image-card img { border-radius: var(--radius); width: 100%; }
.kg-image-card figcaption { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: var(--sp-2); }

/* Gallery card */
.kg-gallery-card { margin: var(--sp-8) 0; }
.kg-gallery-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp-2); }
.kg-gallery-image img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }

/* Bookmark card */
.kg-bookmark-card { margin: var(--sp-8) 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.kg-bookmark-container { display: flex; text-decoration: none; color: inherit; }
.kg-bookmark-content { padding: var(--sp-5); flex: 1; }
.kg-bookmark-title { font-weight: 600; color: var(--navy); margin-bottom: var(--sp-2); }
.kg-bookmark-description { font-size: 0.875rem; color: var(--text-muted); }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-bookmark-metadata { font-size: 0.75rem; color: var(--text-light); margin-top: var(--sp-3); }

/* Callout card */
.kg-callout-card { display: flex; gap: var(--sp-4); padding: var(--sp-5); border-radius: var(--radius); background: var(--cream); border: 1px solid var(--gold-light); margin: var(--sp-8) 0; }
.kg-callout-emoji { font-size: 1.5rem; }
.kg-callout-text { color: var(--text); }

/* Toggle card */
.kg-toggle-card { margin: var(--sp-8) 0; border: 1px solid var(--border); border-radius: var(--radius); }
.kg-toggle-heading { padding: var(--sp-4) var(--sp-5); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.kg-toggle-content { padding: 0 var(--sp-5) var(--sp-4); }

/* Button card */
.kg-button-card { text-align: center; margin: var(--sp-8) 0; }
.kg-button-card .kg-btn { display: inline-block; padding: 0.75rem 1.75rem; background: var(--navy); color: var(--white); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.kg-button-card .kg-btn-accent { background: var(--gold); color: var(--navy-dark); }

/* Divider */
.kg-divider { border: none; border-top: 1px solid var(--border); margin: var(--sp-8) 0; }

/* Audio/Video/File cards */
.kg-audio-card, .kg-video-card, .kg-file-card { margin: var(--sp-8) 0; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); }

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.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; }
/* gold-dark, not gold: plain gold measures ~2.3:1 against white/cream, below
   WCAG 1.4.11's 3:1 non-text-contrast minimum for a focus indicator. gold-dark
   clears 3:1 against white, cream, AND navy, so one color works everywhere
   this ring appears instead of needing a light/dark-section override. */
:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -48px; left: var(--sp-4); z-index: 200;
  background: var(--navy-dark); color: var(--white);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--sp-4); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 480px) {
  .about-badge { bottom: -10px; right: -10px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { min-width: unset; }
  .newsletter-form button { width: 100%; justify-content: center; }
}

@media (max-width: 767px) {
  .about-image-wrap img { height: 340px; }
  .page-hero { padding-bottom: var(--sp-24); }
  /* Hero actions stack on narrow screens and run into the scroll cue's band,
     so drop the cue — it's decorative, and mobile users already know to scroll. */
  .hero-scroll { display: none; }
}

/* Prayer calendar planner (days + times -> calendar links) */
.prayer-planner { width: 100%; max-width: 520px; margin: 0 auto; padding: var(--sp-6); text-align: center; background: var(--cream); border-radius: var(--radius-lg); }
.prayer-planner[hidden], .prayer-planner [hidden] { display: none; }
.prayer-planner h3 { margin-bottom: var(--sp-4); }
.prayer-planner fieldset { border: 0; margin: 0 0 var(--sp-5); padding: 0; min-width: 0; }
.prayer-planner legend { display: block; width: 100%; margin-bottom: var(--sp-2); padding: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.planner-options { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.5rem 0.95rem; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.9rem; transition: background 0.15s, color 0.15s; }
.chip span small { font-weight: 500; font-size: 0.78rem; opacity: 0.75; }
.chip input:checked + span { background: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.chip-wide span { padding: 0.6rem 1.2rem; }
.planner-presets { display: flex; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-3); }
.planner-presets button { background: none; border: 0; padding: 0.25rem; color: var(--navy); font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.planner-summary { margin: 0 auto var(--sp-4); font-weight: 600; color: var(--navy); max-width: none; }

/* Two prayer sections stack: the 120-hours season (white) then the daily early morning prayer (cream). */
.morning-prayer + .morning-prayer { background: var(--cream); }
.morning-prayer + .morning-prayer .prayer-details { background: var(--white); box-shadow: none; }
.morning-prayer + .morning-prayer + .section { background: var(--white); }
.morning-prayer[hidden] { display: none; }

/* 120 Hours: details + planner share one card; join buttons sit below it. */
.prayer-panel { max-width: 520px; margin: 0 auto var(--sp-8); padding: var(--sp-6); background: var(--cream); border-radius: var(--radius-lg); }
.prayer-panel .prayer-details { margin: 0; padding: 0; max-width: none; background: none; box-shadow: none; }
.prayer-panel .prayer-planner { margin: var(--sp-5) 0 0; padding: var(--sp-6) 0 0; max-width: none; background: none; border-top: 1px solid var(--cream-dark); border-radius: 0; }

.prayer-actions-top { margin-bottom: var(--sp-8); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#prayer-planner { scroll-margin-top: 6rem; }
/* Expandable date picker */
.planner-dates { margin: var(--sp-3) 0 0; text-align: center; }
.planner-dates summary { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.7rem 1.6rem; border: 2px solid var(--gold); border-radius: var(--radius-md, 8px); background: var(--gold); color: var(--navy-dark); font-weight: 700; font-size: 0.95rem; list-style: none; box-shadow: 0 2px 8px rgba(201,168,76,0.35); transition: background 0.2s, transform 0.2s, box-shadow 0.2s; }
.planner-dates summary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,168,76,0.45); }
.planner-dates summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.planner-dates summary::-webkit-details-marker { display: none; }
.planner-dates summary::after { content: "\25BE"; }
.planner-dates[open] summary::after { content: "\25B4"; }
.planner-dates-hint { margin: var(--sp-3) auto; font-size: 0.85rem; color: var(--text-muted); max-width: none; }
.planner-month { margin: 0 auto var(--sp-4); max-width: 21rem; }
.planner-month h4 { margin: 0 0 var(--sp-2); font-size: 0.95rem; color: var(--navy); }
.planner-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.planner-dow { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); padding-bottom: 2px; }
.planner-date { aspect-ratio: 1; min-height: 2.4rem; border: 2px solid var(--cream-dark); border-radius: 50%; background: var(--white); color: var(--text-muted); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; padding: 0; }
.planner-date[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.planner-date:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 520px) { .prayer-actions-top .btn { width: 100%; justify-content: center; } }

.planner-hint { margin: var(--sp-3) auto 0; font-size: 0.82rem; color: var(--text-muted); max-width: 26rem; }

.planner-summary[hidden] { display: none; }

/* Section colours when one of the two prayer sections is hidden (by date). */
.morning-prayer[hidden] + .section { background: var(--cream); }
.morning-prayer[hidden] + .morning-prayer { background: var(--white); padding-top: var(--sp-4); }
.morning-prayer[hidden] + .morning-prayer .prayer-details { background: var(--cream); }
.morning-prayer[hidden] + .morning-prayer + .section { background: var(--cream); }

/* Homepage founders photo is a tall portrait of both pastors: show it at the
   photo's own proportions instead of cropping it to a landscape box. */
.about-teaser .about-image-wrap img { height: auto; aspect-ratio: 4 / 5; max-height: 620px; object-position: center 25%; }
@media (max-width: 768px) { .about-teaser .about-image-wrap img { max-height: 460px; } }

/* Gallery photos added in Ghost (Gallery / Image cards on the About page) */
.gallery-content { max-width: 1100px; margin: var(--sp-8) auto 0; }
.gallery-content .kg-card { margin: 0 0 var(--sp-3); }
.gallery-content .kg-gallery-container { display: flex; flex-direction: column; gap: var(--sp-3); }
.gallery-content .kg-gallery-row { display: flex; gap: var(--sp-3); }
.gallery-content .kg-gallery-image { flex: 1 1 0; min-width: 0; }
.gallery-content img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); cursor: zoom-in; transition: transform var(--transition-slow); }
.gallery-content .kg-gallery-image img { height: 100%; }
.gallery-content img:hover { transform: scale(1.02); }
.gallery-content img:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery-content figcaption { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: var(--sp-2); }
@media (max-width: 600px) { .gallery-content .kg-gallery-row { flex-direction: column; } }
