/* ==========================================================================
   First Baptist Church of Silver City — site styles
   One stylesheet for the whole site. Colors and fonts are set once in
   :root below; change them there and every page follows.
   ========================================================================== */

:root {
  /* Brand colors (from the logo pack) */
  --green-900: #023220;   /* deep green: header text, footer, dark sections */
  --green-700: #2B5B4A;   /* mid green: panes, dividers */
  --gold:      #B5850D;   /* brand gold: lines and large text only */
  --gold-dark: #8A6508;   /* gold that is readable as small text on light backgrounds */
  --gold-light:#E0B54A;   /* gold that is readable as text on deep green */
  --cream:     #FFF3DE;
  --wheat:     #F6DFB3;   /* light gold-cream: small text on photos and deep green */
  --white:     #FFFFFF;
  --ink:       #1C2A24;   /* body text */
  --ink-soft:  #45574F;   /* secondary text */
  --line:      #E3DCCB;   /* hairlines on light backgrounds */

  /* Fonts */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --wrap: 1120px;
  --gutter: 20px;
  --radius: 10px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-900); text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--green-900);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
li, dd { text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--green-900); color: var(--white); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { left: 8px; }

/* Small spaced capitals used above headings */
.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-900);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-dark  { background: var(--green-900); color: var(--white); }
.btn-dark:hover  { background: var(--green-700); color: var(--white); }
.btn-cream { background: var(--cream); color: var(--green-900); }
.btn-cream:hover { background: var(--white); color: var(--green-900); }
.btn-ghost { border-color: rgba(255,243,222,.8); color: var(--cream); }
.btn-ghost:hover { background: rgba(255,243,222,.12); color: var(--white); }

.text-link {
  font-weight: 700; text-decoration: none; color: var(--green-900);
  border-bottom: 2px solid var(--gold); padding-bottom: 1px;
}
.text-link:hover { color: var(--green-700); border-bottom-color: var(--green-700); }

/* ---------- Stained-glass line (the signature element) ---------- */
/* Uneven green panes with a few gold ones, echoing the logo window.
   Add class "glass-top" or "glass-bottom" to any section. */
.glass-top, .glass-bottom { position: relative; }
.glass-top::before, .glass-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right,
    var(--green-700) 0 8.6%,  transparent 8.6% 9%,
    var(--gold)      9% 12.6%, transparent 12.6% 13%,
    var(--green-700) 13% 25.6%, transparent 25.6% 26%,
    var(--green-700) 26% 31.6%, transparent 31.6% 32%,
    var(--green-700) 32% 42.6%, transparent 42.6% 43%,
    var(--gold)      43% 47.6%, transparent 47.6% 48%,
    var(--green-700) 48% 61.6%, transparent 61.6% 62%,
    var(--green-700) 62% 68.6%, transparent 68.6% 69%,
    var(--green-700) 69% 78.6%, transparent 78.6% 79%,
    var(--gold)      79% 82.6%, transparent 82.6% 83%,
    var(--green-700) 83% 94.6%, transparent 94.6% 95%,
    var(--green-700) 95% 100%);
}
.glass-top::before { top: 0; }
.glass-bottom::after { bottom: 0; }
@media (max-width: 767px) {
  /* Fixed-size panes on phones so the gaps stay visible */
  .glass-top::before, .glass-bottom::after {
    height: 10px;
    background: linear-gradient(to right,
      var(--green-700) 0 52px,    transparent 52px 56px,
      var(--gold)      56px 80px, transparent 80px 84px,
      var(--green-700) 84px 160px, transparent 160px 164px,
      var(--green-700) 164px 200px, transparent 200px 204px,
      var(--green-700) 204px 264px, transparent 264px 268px,
      var(--gold)      268px 292px, transparent 292px 296px,
      var(--green-700) 296px 372px, transparent 372px 376px,
      var(--green-700) 376px 416px, transparent 416px 420px);
    background-size: 420px 100%;
    background-repeat: repeat-x;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none; color: var(--green-900);
}
.main-nav a:hover { background: var(--cream); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.main-nav .nav-give { margin-left: 10px; }
.main-nav .nav-give a { background: var(--green-900); color: var(--white); border-radius: 999px; padding: 10px 22px; }
.main-nav .nav-give a:hover { background: var(--green-700); }

.menu-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  background: none; border: 2px solid var(--green-900); border-radius: 999px;
  font: 700 0.95rem var(--font-body); color: var(--green-900); cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 1099px) {
  :root { --header-h: 66px; }
  .brand img { height: 40px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(2,50,32,.08);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .main-nav .nav-give { margin: 16px 0 0; }
  .main-nav .nav-give a { text-align: center; border-bottom: 0; }
}
@media (min-width: 1300px) {
  /* Wide screens: logo left, menu links centered on the page, Give at the right edge.
     The two outer columns are always equal, so the links sit on the page's center line. */
  .site-header .wrap { max-width: 1400px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; position: relative; }
  .brand { justify-self: start; }
  .main-nav { grid-column: 2; }
  .main-nav .nav-give { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); margin: 0; }
}
/* Without JavaScript, show the menu on phones instead of hiding it */
.no-js .menu-toggle { display: none; }
.no-js .main-nav { display: block; position: static; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(78vh, 720px);
  display: flex; align-items: flex-end;
  color: var(--cream);
  background: var(--green-900);
}
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
}
.hero picture img { object-fit: cover; object-position: 68% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(2,50,32,.88) 0%, rgba(2,50,32,.72) 45%, rgba(2,50,32,.42) 100%);
}
.hero-content { padding-top: 96px; padding-bottom: 88px; max-width: 760px; }
.hero .label { color: var(--wheat); }
.hero h1 { color: var(--white); margin-bottom: 18px; }
/* Service times in the hero, grouped by day */
.service-times { margin: 0 0 32px; font-size: 1.1rem; color: var(--cream); }
.st-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px;
  padding: 10px 0; border-top: 1px solid rgba(255,243,222,.22);
}
.st-row:last-child { border-bottom: 1px solid rgba(255,243,222,.22); }
.st-row dt {
  flex: 0 0 128px;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wheat);
}
.st-row dd { margin: 0; }
.st-row dd + dd::before { content: "·"; color: var(--gold-light); font-weight: 700; margin-right: 22px; }
.st-row strong { color: var(--white); font-weight: 700; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 767px) {
  .hero { min-height: 560px; }
  .hero::after { background: linear-gradient(180deg, rgba(2,50,32,.55) 0%, rgba(2,50,32,.85) 70%); }
  .hero-content { padding-top: 120px; padding-bottom: 56px; }
  .service-times { font-size: 1.05rem; }
  .st-row { flex-direction: column; gap: 4px; }
  .st-row dt { flex: none; }
  .st-row dd + dd::before { content: none; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-dark  { background: var(--green-900); color: var(--cream); }
.section-dark h2 { color: var(--white); }
.section-dark .label { color: var(--gold-light); }
@media (max-width: 767px) { .section { padding: 64px 0; } }

/* Mission band */
.mission { text-align: center; padding: 104px 0 96px; }
.mission h2 { max-width: 820px; margin: 0 auto; font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.25; }
.rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 32px auto; }
/* Mission band: solid deep green behind the pathway panes */
.mosaic { background-color: var(--green-900); }
/* Pathway words as glass panes; each lights up gold on hover */
.pathway {
  list-style: none; margin: 0 auto; padding: 0; max-width: 960px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
}
.pathway li {
  padding: 22px 8px; background: var(--green-700); color: var(--cream);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background-color .3s, color .3s;
}
.pathway li:hover { background: var(--gold-light); color: var(--green-900); }
@media (prefers-reduced-motion: reduce) { .pathway li { transition: none; } }
@media (max-width: 899px) { .pathway { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 600px; } }
@media (max-width: 767px) { .mission { padding: 80px 0 72px; } }
@media (max-width: 479px) {
  .pathway { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .pathway li { padding: 18px 6px; letter-spacing: 0.14em; }
}

/* Plan a Visit preview */
.visit-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.visit-grid .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 28px; }
.visit-map {
  border-radius: var(--radius); overflow: hidden; background: #e8e2d2;
  aspect-ratio: 16 / 10; border: 1px solid var(--line);
}
.visit-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.visit-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 24px 40px; margin-top: 28px; }
.visit-facts h3 {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px;
}
.visit-facts ul { list-style: none; padding: 0; margin: 0; }
.visit-facts li { margin-bottom: 4px; }
.nowrap { white-space: nowrap; }
.visit-facts address { font-style: normal; margin-bottom: 10px; }
@media (max-width: 899px) {
  .visit-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 479px) {
  .visit-facts { grid-template-columns: 1fr; }
}

/* Who we are: a list of links, each under a rule */
.section-head { max-width: 640px; margin-bottom: 48px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.link-list li { position: relative; padding-top: 22px; border-top: 2px solid var(--green-700); transition: border-color .2s; }
.link-list li:hover, .link-list li:focus-within { border-top-color: var(--gold); }
.link-list h3 { margin-bottom: 8px; }
.link-list a { text-decoration: none; color: var(--green-900); display: inline-flex; align-items: baseline; gap: 10px; }
.link-list a::after { content: ""; position: absolute; inset: 0; } /* whole item is clickable */
.link-list .arrow { color: var(--gold-dark); font-family: var(--font-body); font-size: 1.1rem; transition: transform .2s; }
.link-list li:hover .arrow { transform: translateX(4px); }
.link-list p { margin: 0; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .link-list li, .link-list .arrow { transition: none; } .link-list li:hover .arrow { transform: none; } }
@media (max-width: 999px) { .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .link-list { grid-template-columns: 1fr; gap: 28px; } }

/* Heritage */
.heritage { text-align: center; padding: 96px 0 108px; }
.heritage-icon { width: 64px; margin: 0 auto 22px; }
.heritage h2 { max-width: 640px; margin: 0 auto; }
.heritage p { max-width: 600px; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Inner page header ---------- */
.page-hero {
  position: relative; isolation: isolate;
  padding: 120px 0 72px; color: var(--cream); background: var(--green-900);
}
.page-hero picture, .page-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.page-hero picture img { object-fit: cover; object-position: 68% 55%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(2,50,32,.45) 0%, rgba(2,50,32,0) 55%),
    linear-gradient(100deg, rgba(2,50,32,.9) 0%, rgba(2,50,32,.75) 55%, rgba(2,50,32,.5) 100%);
}
.page-hero .label { color: var(--wheat); }
.page-hero h1 { color: var(--white); max-width: 720px; }
.page-lead { font-size: 1.2rem; max-width: 34em; margin: 0; color: var(--cream); }
@media (max-width: 767px) {
  .page-hero { padding: 88px 0 56px; }
  .page-hero::after { background: linear-gradient(180deg, rgba(2,50,32,.82) 0%, rgba(2,50,32,.9) 100%); }
}

.section-intro { color: var(--ink-soft); font-size: 1.1rem; margin: 0; }

/* Sunday timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.timeline li {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
}
.timeline .time {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: var(--green-900);
  padding-right: 22px; border-right: 3px solid var(--gold); line-height: 1.2; white-space: nowrap;
}
.timeline h3 { margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--ink-soft); }
@media (max-width: 767px) {
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .timeline .time { border-right: 0; padding: 0 0 8px; border-bottom: 3px solid var(--gold); justify-self: start; }
}

/* Question-and-answer blocks */
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; }
.qa { padding-top: 20px; border-top: 2px solid var(--green-700); }
.qa h3 { margin-bottom: 8px; }
.qa p { margin: 0; color: var(--ink-soft); }
@media (max-width: 767px) { .qa-grid { grid-template-columns: 1fr; } }

/* Kids and students: one row per ministry, logo beside its activities */
.ministry-rows { display: grid; }
.ministry-row {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 32px 0; border-top: 2px solid var(--green-700);
}
.ministry-mark { margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ministry-mark img { max-height: 112px; width: auto; }
.ministry-text h3 { margin-bottom: 4px; }
.ministry-text .who { font-weight: 700; color: var(--green-700); margin-bottom: 10px; }
.ministry-text p:last-child { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.ministry-mark .mark-window { width: 64px; height: auto; }
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.activity-list li:first-child { padding-top: 0; }
.activity-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-list h4 { margin: 0; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.2; color: var(--green-900); }
.activity-list .who { font-weight: 700; color: var(--green-700); }
.activity-list .when { color: var(--ink-soft); }
@media (max-width: 767px) {
  .ministry-row { grid-template-columns: 1fr; gap: 24px; }
  .ministry-mark { aspect-ratio: auto; justify-self: start; width: 100%; max-width: 280px; padding: 20px; }
  .ministry-mark img { max-height: 96px; }
  .activity-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (min-width: 768px) and (max-width: 899px) {
  /* Tablets: name on its own line so "Wednesdays · 6:00pm" has room to stay on one line */
  .activity-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .activity-list h4 { grid-column: 1 / -1; }
}

/* Arrival steps */
.steps { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 52px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-900); color: var(--white); font-weight: 700; font-size: 0.95rem;
}
.arrive-address { font-style: normal; margin: 0 0 20px; color: var(--ink-soft); }

/* Questions band */
.questions { text-align: center; padding-bottom: 108px; }
.questions h2 { max-width: 640px; margin: 0 auto 14px; }
.questions p { max-width: 34em; margin: 0 auto 28px; color: var(--cream); }
.questions .btn-row { justify-content: center; }

/* ---------- Shared page pieces ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.page-hero-plain { padding: 96px 0 80px; }
.page-hero-plain .page-lead { margin: 0 auto; }
.page-hero-plain::after { display: none; }
.page-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.page-jump a {
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid rgba(255,243,222,.6);
  color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.page-jump a:hover { background: rgba(255,243,222,.12); color: var(--white); }
.statement { font-weight: 500; line-height: 1.25; max-width: 760px; margin: 0 auto; }
.prose p { color: var(--ink); max-width: 62ch; }
.prose .btn-row { margin-top: 28px; }
.prose-large p { font-size: 1.2rem; line-height: 1.7; }
.btn-outline { border-color: var(--green-900); color: var(--green-900); }
.btn-outline:hover { background: var(--green-900); color: var(--white); }
.btn-large { min-height: 56px; padding: 14px 40px; font-size: 1.1rem; }
.fine { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; }

/* Staff */
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.staff {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
}
.staff img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.staff h3 { margin-bottom: 2px; }
.role { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700); margin-bottom: 12px; }
.staff details { margin-bottom: 10px; }
.staff summary {
  cursor: pointer; font-weight: 700; color: var(--green-900); list-style: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
}
.staff summary::-webkit-details-marker { display: none; }
.staff summary::after { content: "+"; font-size: 1.2rem; color: var(--gold-dark); }
.staff details[open] summary::after { content: "–"; }
.staff details p { color: var(--ink-soft); font-size: 1rem; margin-top: 10px; }
.contact-link { font-size: 0.95rem; word-break: break-word; }
@media (max-width: 899px) { .staff-grid { grid-template-columns: 1fr; } }
@media (max-width: 479px) {
  .staff { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
  .staff img { width: 96px; height: 96px; }
}

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; margin-top: 32px; border-radius: var(--radius); overflow: hidden; background: var(--green-900); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Ministries */
.when, .when-large { font-weight: 700; color: var(--green-700); margin-bottom: 10px; }
.when-large { font-size: 1.15rem; }
@media (max-width: 599px) {
  /* Phones: day and time on separate lines, no separator dot */
  .when-large .when-sep { display: none; }
  .when-large .when-part { display: block; }
}
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.feature-logo img { width: 100%; border-radius: var(--radius); background: var(--white); padding: 16px; }
@media (max-width: 767px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature-logo img { max-width: 240px; } }
/* Church calendar (Ministries) */
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cal-title { margin: 0; font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; color: var(--green-900); }
.cal-nav {
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  background: var(--white); color: var(--green-900); border: 1.5px solid var(--green-900); border-radius: 50%;
  font: 700 1.2rem var(--font-body); transition: background-color .2s, color .2s;
}
.cal-nav:hover:not(:disabled) { background: var(--green-900); color: var(--white); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal:not(.is-ready) .cal-bar, .cal:not(.is-ready) .cal-stage, .cal:not(.is-ready) .cal-hint, .cal:not(.is-ready) .cal-week { display: none; }
.cal-stage { position: relative; }
.cal-zoom, .cal-hint { display: none; }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid thead th {
  padding: 10px 6px; background: var(--green-700); color: var(--white);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.cal-grid td { vertical-align: top; height: 132px; padding: 8px 10px 10px; border: 1px solid var(--line); }
.cal-grid td.cal-empty { background: var(--cream); }
.cal-date { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cal-dow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal-num { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--green-900); line-height: 1; }
.cal-today { box-shadow: inset 0 0 0 2px var(--gold); background: #FFFBF2; }
.cal-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); }
.cal-events { list-style: none; margin: 0; padding: 0; font-size: 0.82rem; line-height: 1.35; color: var(--ink); }
.cal-events li { margin-bottom: 4px; text-wrap: pretty; }
.cal-events .cal-time { font-weight: 700; color: var(--green-700); }
.cal-events .strong { font-weight: 700; color: var(--green-900); }
.cal-events .note { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-900); }
.cal-fallback { margin: 0; padding-left: 1.2em; }
/* Coming up this week: the next seven days in words */
.cal-week { margin-top: 56px; max-width: 48rem; }
.cal-week h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.7rem); }
.cal-week-range { margin: 6px 0 18px; font-weight: 600; color: var(--ink-soft); }
.cal-week-list { list-style: none; margin: 0; padding: 0; }
.cal-week-day { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.cal-week-day:last-child { border-bottom: 1px solid var(--line); }
.cal-week-day.is-today { border-top: 2px solid var(--gold); }
.cal-week-dow { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-700); }
.cal-week-dow .cal-badge { margin-left: 6px; }
.cal-week-date { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--green-900); }
.cal-week-events { list-style: none; margin: 0; padding: 0; }
.cal-week-events li { padding: 3px 0; line-height: 1.4; }
.cal-week-events li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--green-700); vertical-align: 0.1em; }
.cal-week-time { display: inline-block; min-width: 6.75rem; font-weight: 700; color: var(--green-700); }
.cal-week-events .strong { font-weight: 700; color: var(--green-900); }
.cal-week-events .strong::before { background: var(--gold); }
.cal-week-events .wide { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-900); }
.cal-week-events .off { color: var(--ink-soft); }
.cal-week-events .off::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
@media (max-width: 599px) {
  .cal-week { margin-top: 44px; }
  .cal-week-day { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 899px) {
  /* Phones and small tablets: a compact month with dots; tap a day to zoom in */
  .cal-bar { min-height: 56px; }
  .cal-title { font-size: 1.4rem; line-height: 1.15; text-align: center; }
  .cal-title-kicker { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-700); }
  .cal-stage { display: grid; overflow: hidden; border-radius: var(--radius); }
  .cal-stage > * { grid-area: 1 / 1; }
  .cal-grid, .cal-zoom { transform-origin: var(--ox, 50%) var(--oy, 50%); transition: transform .38s cubic-bezier(.2, .75, .25, 1), opacity .28s ease, visibility 0s; }
  .cal-grid thead th { padding: 8px 0; font-size: 0.7rem; letter-spacing: 0.08em; }
  .cal-grid td { height: auto; padding: 0; }
  .cal-grid td .cal-events { display: none; }
  .cal-grid td.cal-today { box-shadow: none; background: transparent; }
  .cal-day {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    width: 100%; min-height: 60px; padding: 7px 2px 8px; margin: 0;
    background: none; border: 0; border-radius: 0; font: inherit; color: inherit; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  button.cal-day:active { background: var(--cream); }
  button.cal-day:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: -3px; }
  .cal-day .cal-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 1rem; }
  .cal-day.is-quiet .cal-num { color: var(--ink-soft); font-weight: 500; }
  .cal-today .cal-day .cal-num { background: var(--green-900); color: var(--cream); }
  .cal-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 36px; min-height: 6px; }
  .cal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-700); }
  .cal-dot.special { background: var(--gold); }
  .cal-dot.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
  .cal-hint { display: block; margin: 12px 0 0; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }

  /* The zoomed-in day */
  .cal-zoom {
    display: block; visibility: hidden; opacity: 0; transform: scale(.25); pointer-events: none;
    padding: 18px 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .38s cubic-bezier(.2, .75, .25, 1), opacity .22s ease, visibility 0s linear .38s;
  }
  .cal.is-zoomed .cal-zoom { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: transform .38s cubic-bezier(.2, .75, .25, 1), opacity .28s ease .06s, visibility 0s; }
  .cal.is-zoomed .cal-grid { visibility: hidden; opacity: 0; transform: scale(2.4); pointer-events: none; transition: transform .38s cubic-bezier(.2, .75, .25, 1), opacity .22s ease, visibility 0s linear .38s; }
  .cal.is-zoomed .cal-hint { visibility: hidden; }
  .cal-back {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; margin: 0 0 6px;
    background: none; border: 0; font: 700 1rem var(--font-body); color: var(--green-700); cursor: pointer;
  }
  .cal-back:hover { color: var(--green-900); text-decoration: underline; text-underline-offset: 3px; }
  .cal-zoom-events { list-style: none; margin: 0; padding: 0; }
  .cal-zoom-events li { display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.05rem; line-height: 1.35; }
  .cal-zoom-time { font-weight: 700; color: var(--green-700); font-size: 0.95rem; }
  .cal-zoom-what { color: var(--ink); }
  .cal-zoom-what::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--green-700); vertical-align: 0.12em; }
  .cal-zoom-events .strong .cal-zoom-what { font-weight: 700; color: var(--green-900); }
  .cal-zoom-events .strong .cal-zoom-what::before { background: var(--gold); }
  .cal-zoom-events li.wide { grid-template-columns: 1fr; }
  .cal-zoom-events li.wide .cal-zoom-what { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-900); }
  .cal-zoom-events li.off .cal-zoom-what { color: var(--ink-soft); }
  .cal-zoom-events li.off .cal-zoom-what::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .cal-grid, .cal-zoom, .cal.is-zoomed .cal-grid, .cal.is-zoomed .cal-zoom { transform: none; transition-duration: 0s; transition-delay: 0s; }
}

/* Give */
.give-main { max-width: 760px; }
.give-main > div > p { font-size: 1.15rem; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.way { padding-top: 22px; border-top: 2px solid var(--green-700); }
.way h3 { margin-bottom: 8px; }
.way p { margin: 0; color: var(--ink-soft); }
@media (max-width: 899px) { .ways { grid-template-columns: 1fr; gap: 16px; } }

/* Baptist Faith & Message page */
.bfm-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.bfm-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.bfm-toc ol { list-style: none; margin: 0; padding: 0; }
.bfm-toc a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; border-left: 2px solid var(--line); padding-left: 14px; }
.bfm-toc a:hover { color: var(--green-900); border-left-color: var(--gold); }
.bfm-article { padding: 8px 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.bfm-article h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.bfm-text { max-width: 36rem; }
.bfm-text p { font-size: 1.08rem; line-height: 1.75; }
.bfm-text h3 { font-size: 1.2rem; margin-top: 24px; }
.bfm-text .refs { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }
.bfm-text .refs { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.bfm-note { font-size: 0.95rem; font-style: italic; color: var(--ink-soft); }
.bfm-article:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.to-top { font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--gold-dark); }
@media (max-width: 899px) {
  .bfm-layout { grid-template-columns: 1fr; gap: 32px; }
  .bfm-toc { position: static; max-height: none; padding: 20px; background: var(--cream); border-radius: var(--radius); }
  .bfm-toc ol { columns: 2; column-gap: 20px; }
  .bfm-toc a { font-size: 0.9rem; border-left: 0; padding-left: 0; }
}
@media (max-width: 479px) { .bfm-toc ol { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: var(--cream); padding: 72px 0 32px; font-size: 1rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) max-content minmax(0, 1.2fr); gap: 40px; }
.times li { white-space: nowrap; }
.footer-brand img { width: 280px; max-width: 100%; display: block; }
.site-footer h2 {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer address { font-style: normal; margin-bottom: 8px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-top: 6px; margin-left: -10px;
  border-radius: 50%; color: var(--cream);
  transition: background-color .2s, color .2s;
}
.social-link:hover { background: rgba(255,243,222,.12); color: var(--white); }
.social-link svg { width: 26px; height: 26px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,243,222,.18);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.9rem; color: rgba(255,243,222,.75);
}
@media (max-width: 1099px) { .footer-grid { grid-template-columns: minmax(0, 1fr) max-content; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 399px) { .header-inner { gap: 12px; } .brand img { height: 32px; } }

/* ---------- Simple inner pages (404 etc.) ---------- */
.page-plain { padding: 120px 0; text-align: center; }
.page-plain p { color: var(--ink-soft); max-width: 34em; margin: 0 auto 28px; }
