:root {
  --ink: #1F2A33;
  --teal: #1F4E5F;
  --teal-dark: #173D4A;
  --brick: #A4461F;
  --brick-dark: #8A3A18;
  --sand: #EDE7DA;
  --mist: #DCE6E3;
  --paper: #F7F4EE;
  --white: #FFFFFF;
  --line: #E2DCCF;
  --muted: #3C4852;
  --on-dark-muted: #C9D1D6;
  --on-dark-accent: #E9B49B;
  --serif: Newsreader, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: 32px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--brick); }
a:focus-visible, button.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
button.btn:focus-visible { border-radius: 999px; }
/* Long email addresses wrap instead of running off narrow screens */
a[href^="mailto:"] { overflow-wrap: anywhere; }
.visit a:focus-visible, .site-footer a:focus-visible { outline-color: var(--on-dark-accent); }

/* ---------- Accessibility helpers ---------- */
/* Text for screen readers only */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* "Skip to main content": off-screen until it gets keyboard focus */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--white); }
.skip-link:focus-visible { outline-color: var(--on-dark-accent); }

/* <main tabindex="-1"> receives focus from the skip link; no outline needed on the whole region */
main:focus { outline: none; }

/* Current page: shown by underline, not color alone */
.main-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Windows High Contrast / forced colors: keep shapes that rely on backgrounds visible */
@media (forced-colors: active) {
  .btn, .main-nav a.nav-cta, .nav-toggle, .skip-link { border: 2px solid ButtonText; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { background: ButtonText; forced-color-adjust: none; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .announcement__list li::before { background: CanvasText; forced-color-adjust: none; }
  .card, .announcement, .faith-list, .announcement__aside { border: 1px solid CanvasText; }
}

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

h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; }
p { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid var(--teal);
  background: var(--teal);
  color: var(--white);
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--teal); }
.btn--outline:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn--brick { background: var(--brick); border-color: var(--brick); }
.btn--brick:hover { background: var(--brick-dark); border-color: var(--brick-dark); }

.text-link { font-weight: 600; text-decoration: underline; }

.label {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}
.site-header a:hover { color: var(--brick); }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a { color: var(--ink); padding: 10px 0; }
.main-nav a.nav-cta {
  padding: 10px 20px;
  background: var(--teal);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
}
.main-nav a.nav-cta:hover { background: var(--teal-dark); color: var(--white); }

/* Menu toggle: only shown at 1020px and below (where logo + nav no longer fit one row), and only once js/nav.js has run */
.nav-toggle { display: none; }
.nav-toggle {
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: 600 0.9375rem/1 var(--sans);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--teal); }
.nav-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { transition: none; }
}

@media (max-width: 1020px) {
  .has-nav-toggle .nav-toggle { display: inline-flex; }
  .has-nav-toggle .site-header .wrap { flex-wrap: wrap; row-gap: 0; column-gap: 16px; }
  .has-nav-toggle .brand { flex: 1 1 0; min-width: 0; }
  .has-nav-toggle .nav-toggle { flex-shrink: 0; }
  .has-nav-toggle .main-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 1.0625rem;
    white-space: normal;
  }
  .has-nav-toggle.nav-open .main-nav { display: flex; }
  .has-nav-toggle .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .has-nav-toggle .main-nav a.nav-cta {
    margin-top: 16px;
    padding: 14px 20px;
    border-bottom: 0;
    text-align: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 88px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero__text { flex: 1 1 460px; min-width: 0; }
.hero .label { color: var(--brick); margin-bottom: 20px; }
.hero h1 {
  font-size: 3.75rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero__lead { font-size: 1.1875rem; max-width: 520px; color: var(--muted); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__photo {
  flex: 1 1 380px;
  min-width: 0;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--mist);
}
/* <picture> wrappers (for AVIF/WebP) act as the layout box around each image */
.hero__photo picture { display: block; height: 100%; }
.bible picture { display: block; flex: 0 1 240px; }
.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}

/* ---------- Visit strip ---------- */
.visit { background: var(--ink); color: var(--paper); }
.visit .wrap {
  padding-top: 48px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.visit h2 { font-family: var(--sans); color: var(--on-dark-accent); margin-bottom: 10px; }
.visit a { color: var(--white); text-decoration: underline; }
.visit a:hover { color: var(--on-dark-accent); }
.visit__note { margin-top: 12px; font-size: 0.9375rem; color: var(--on-dark-muted); }
.visit__more { margin-top: 12px; }

/* ---------- Meetings + faith cards ---------- */
.cards {
  padding-top: 96px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
}
.card h2 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 16px; }
.card__verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 24px;
}
.card__verse cite { font-style: normal; font-family: var(--sans); font-size: 0.9375rem; }
.card__verse footer { margin-top: 8px; }

/* ---------- Welcome ---------- */
.welcome {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
}
.welcome__title { flex: 1 1 320px; min-width: 0; }
.welcome h2 { font-size: 2.75rem; line-height: 1.12; }
.welcome__body { flex: 2 1 460px; min-width: 0; max-width: 680px; }
.welcome__body p + p { margin-top: 20px; }

/* ---------- Announcements ---------- */
.announce { background: var(--sand); }
.announce .wrap {
  padding-top: 72px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}
.announce__text { flex: 1 1 420px; min-width: 0; }
.announce h2 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 10px; }
.announce p { color: var(--muted); }
.announce__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Free Bible ---------- */
.bible {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
}
.bible img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(31, 42, 51, 0.22);
}
.bible__text { flex: 1 1 420px; min-width: 0; max-width: 620px; }
.bible h2 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 16px; }
.bible p { margin-bottom: 28px; }

/* ---------- Subpage: intro + statement of faith ---------- */
.main-nav a[aria-current] { color: var(--brick); }
.main-nav a.nav-cta[aria-current] { color: var(--white); text-decoration-color: var(--white); }
.page-intro { padding-top: 80px; padding-bottom: 40px; }
.page-intro .label { color: var(--brick); margin-bottom: 20px; }
.page-intro h1 {
  font-size: 3.5rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.page-intro__lead { font-size: 1.1875rem; max-width: 680px; color: var(--muted); }
.ref { color: var(--muted); font-size: 0.9em; white-space: nowrap; }
.ref a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(31, 78, 95, 0.35); text-underline-offset: 2px; }
.ref a:hover { color: var(--brick); text-decoration-color: currentColor; }

.faith { padding-bottom: 96px; }
.faith-more { margin-top: 32px; }
.faith-list {
  list-style: none;
  counter-reset: faith;
  margin: 0;
  padding: 0;
  max-width: 820px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.faith-list li {
  counter-increment: faith;
  position: relative;
  padding: 24px 40px 24px 96px;
}
.faith-list li + li { border-top: 1px solid var(--line); }
.faith-list li::before {
  content: counter(faith);
  position: absolute;
  left: 40px;
  top: 18px;
  font-family: var(--serif);
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--teal);
}

/* ---------- Announcements page ---------- */
.announcements {
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.announcement {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 40px;
}
.announcement__title { font-size: 1.875rem; line-height: 1.2; margin-bottom: 16px; }
.announcement__list { margin: 0; padding: 0; list-style: none; }
.announcement__list li {
  position: relative;
  padding-left: 20px;
  overflow-wrap: anywhere;
}
.announcement__list li + li { margin-top: 6px; }
.announcement__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brick);
}
.announcement__list a { text-decoration: underline; }
.announcement__aside {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--paper);
  border-radius: 12px;
}
.announcement__aside .label { color: var(--teal); margin: 0 0 8px; }
.announcement__action { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.announcement__list li.announcement__sub { margin-left: 20px; } /* nested bullet in Slides */
.announcement__list + .announcement__copy,
.announcement__copy + .announcement__copy,
.announcement__copy + .announcement__list { margin-top: 10px; }
.announcement__copy a { text-decoration: underline; overflow-wrap: anywhere; }

/* ---------- Shared subpage content ---------- */
.page-quote {
  margin: 0;
  max-width: 760px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.45;
  color: var(--muted);
}
.page-quote footer { margin-top: 10px; }
.page-quote cite { font-style: normal; font-family: var(--sans); font-size: 0.9375rem; }

.prose { max-width: 720px; }
.prose p + p { margin-top: 18px; }
.prose a, .meeting a, .page-intro__lead a, .notice a, .contact-info a { text-decoration: underline; }

.section-title { font-size: 2.25rem; line-height: 1.15; margin-bottom: 24px; }

/* ---------- Our Meetings ---------- */
.prose-layout { padding-bottom: 96px; display: grid; gap: 48px; }
.meeting {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 36px;
}
.meeting h2 { font-size: 2.25rem; line-height: 1.15; margin-bottom: 16px; }
.meeting h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 1.625rem; line-height: 1.2; }
.meeting p + p { margin-top: 14px; }
.meeting__how { font-size: 0.9375rem; color: var(--muted); }
.meeting--feature { background: var(--mist); border-color: transparent; max-width: 920px; }
.meeting__details { margin: 24px 0 0; display: grid; gap: 12px; }
.meeting__details div { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.meeting__details dt { flex: 0 0 96px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); padding-top: 2px; }
.meeting__details dd { margin: 0; flex: 1 1 260px; font-weight: 500; }
.meeting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* ---------- Calendar ---------- */
.calendar { padding-bottom: 96px; }
.calendar__alt { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.calendar__alt a { text-decoration: underline; font-weight: 500; }
.calendar__frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.calendar__frame iframe { display: block; width: 100%; height: 680px; border: 0; }

/* ---------- Gospel meeting (hidden page) ---------- */
.gospel { padding-bottom: 96px; display: grid; gap: 48px; max-width: 820px; }
.gospel__when { margin-top: 16px; }
.gospel__video { border-radius: 20px; overflow: hidden; background: var(--sand); aspect-ratio: 16 / 9; }
.gospel__video iframe { display: block; width: 100%; height: 100%; border: 0; }
.gospel__crisis { font-size: 0.9375rem; color: var(--muted); }
.gospel__crisis a { text-decoration: underline; }
.gospel__topics { margin: 8px 0 16px 1.25em; list-style: disc; }
.gospel__past { list-style: none; display: grid; gap: 8px; }
.gospel__past a { text-decoration: underline; font-weight: 500; }
.gospel__form { display: grid; gap: 16px; }
.gospel__form iframe { display: block; width: 100%; height: 1050px; border: 0; border-radius: 20px; background: var(--sand); }
.gospel__form a { text-decoration: underline; }

/* ---------- Links ---------- */
.link-list {
  list-style: none;
  margin: 0 0 96px;
  padding: 0;
  max-width: 820px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.link-list li { padding: 20px 32px; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list__name { font-size: 1.125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-list__desc { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Prayer Burdens ---------- */
.burden-list {
  list-style: none;
  counter-reset: burden;
  margin: 0 0 96px;
  padding: 0;
  max-width: 820px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.burden-list li {
  counter-increment: burden;
  position: relative;
  padding: 28px 32px 28px 76px;
}
.burden-list li + li { border-top: 1px solid var(--line); }
.burden-list li::before {
  content: counter(burden);
  position: absolute;
  left: 32px;
  top: 28px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--brick);
}
.burden-list__title { font-size: 1.5rem; line-height: 1.2; margin-bottom: 10px; }
.burden-list p + p { margin-top: 10px; }
.burden-list a { text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .burden-list li { padding: 24px 20px 24px 52px; }
  .burden-list li::before { left: 20px; top: 24px; }
}

/* ---------- Offerings ---------- */
.give-grid {
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}
.give-grid p + p, .give-grid p + address, .give-grid address + p { margin-top: 16px; }
.give-address {
  font-style: normal;
  font-weight: 600;
  padding: 16px 20px;
  background: var(--paper);
  border-left: 4px solid var(--teal);
  border-radius: 4px;
}
.give-warning { color: var(--brick-dark); }
.give-action { margin-top: 28px !important; }

/* ---------- Forms ---------- */
/* Stays in the centered .wrap column (lined up with the page title); only its contents are narrowed */
.form-narrow { padding-bottom: 96px; }
.form-narrow > * { max-width: 680px; }
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 40px;
}
.form__hint { font-size: 0.9375rem; color: var(--muted); margin-bottom: 24px; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field__req { color: var(--brick); }
.field__hint { font-size: 0.9375rem; color: var(--muted); margin: -2px 0 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #8A949B; /* 3:1 against white so the field edge is visible */
  border-radius: 10px;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus-visible, .field textarea:focus-visible, .check input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-color: var(--teal);
}
.field [aria-invalid="true"] { border-color: var(--brick); border-width: 2px; }
.field__error { margin-top: 6px; color: var(--brick-dark); font-weight: 600; font-size: 0.9375rem; }
.field__error::before { content: "⚠ "; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 400 !important; margin: 10px 0 0 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); flex-shrink: 0; }
.check__hint { margin: 2px 0 0 30px; }
.form .btn { cursor: pointer; font-family: inherit; }
.form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: 24px; }
.form--inline .field { flex: 1 1 240px; margin: 0; }

.notice {
  margin-bottom: 24px;
  padding: 18px 22px;
  border-radius: 12px;
  border-left: 5px solid;
}
.notice:focus { outline: none; }
.notice--success { background: var(--mist); border-color: var(--teal); }
.notice--error { background: #F6E3DA; border-color: var(--brick); }
.notice ul { margin: 8px 0 0; padding-left: 20px; }

.contact-info {
  padding: 32px 36px;
  background: var(--sand);
  border-radius: 20px;
}
.contact-info .label { color: var(--teal); margin: 0 0 8px; }
.contact-info p + .label { margin-top: 28px; }
.contact-info p + p { margin-top: 8px; }
.contact-info__note { font-size: 0.9375rem; color: var(--muted); }

/* ---------- Two-column page: form left, content right (Truth Pursuit) ---------- */
.split {
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
}
/* Title spans both columns; the two columns below start at the same height */
.page-intro--compact { padding-bottom: 32px; }
.page-intro--compact h1 { margin-bottom: 0; }
.split__lead { font-size: 1.1875rem; color: var(--muted); margin-bottom: 24px; }
.study__title { margin-top: 0; }
/* Left column (heading + form) stays in view while scrolling the long list of questions,
   but only on screens tall enough to show all of it */
@media (min-height: 760px) {
  .split__form { position: sticky; top: 24px; }
}

.study__title { font-size: 1.75rem; line-height: 1.2; margin-bottom: 20px; }

.accordion {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__summary {
  display: flex;
  align-items: flex-start;
  gap: 4px 12px;
  flex-wrap: wrap;
  padding: 18px 56px 18px 24px;
  position: relative;
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
}
.accordion__summary::-webkit-details-marker { display: none; }
/* Chevron */
.accordion__summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.accordion__item[open] > .accordion__summary::after { transform: translateY(4px) rotate(-135deg); }
.accordion__summary:hover { background: var(--paper); }
.accordion__summary:hover .accordion__title { color: var(--brick); }
.accordion__summary:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.accordion__item[open] > .accordion__summary { background: var(--mist); }
.accordion__num {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  padding-top: 2px;
}
.accordion__title { flex: 1 1 200px; font-weight: 600; }
.accordion__body { margin: 0; padding: 16px 24px 22px 44px; }
.accordion__body li + li { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .accordion__summary::after { transition: none; } }

.study__past-title {
  margin: 36px 0 12px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.study__past {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}
.study__past a { text-decoration: underline; text-underline-offset: 3px; }

/* Finished-book page (truth-pursuit-book.php): questions left, other books right */
.book {
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.book__side {
  padding: 28px 32px 32px;
  background: var(--sand);
  border-radius: 20px;
}
.book__side .study__past-title { margin-top: 0; }
.book__list { grid-template-columns: 1fr; }
.book__list li { line-height: 1.4; }
/* Book list stays in view while scrolling long books, on screens tall enough to show all of it */
@media (min-height: 760px) {
  .book__side { position: sticky; top: 24px; }
}
.page-intro .label a { color: inherit; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.page-intro .label a:hover { color: var(--teal); }
.page-intro__lead a { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); }
.site-footer .wrap {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 0.9375rem;
}
.site-footer .brand { font-size: 1.25rem; font-weight: 400; color: var(--white); }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 56px; padding-bottom: 48px; gap: 40px; }
  .hero h1 { font-size: 2.875rem; }
  .hero__photo { height: 360px; order: -1; } /* stacked: show the photo above the text */
  .visit .wrap { grid-template-columns: 1fr; gap: 32px; }
  .cards { grid-template-columns: 1fr; padding-top: 64px; }
  .welcome { padding-top: 64px; padding-bottom: 64px; }
  .welcome h2 { font-size: 2.25rem; }
  .announce h2, .bible h2 { font-size: 2.125rem; }
  /* Stacked home sections: center the titles, the announcement buttons and the Bible cover */
  .welcome h2, .announce h2, .bible h2 { text-align: center; }
  .announce__actions { width: 100%; justify-content: center; }
  .bible { justify-content: center; }
  .bible .btn { display: table; margin-inline: auto; } /* centered; still full width on phones */
  .page-intro { padding-top: 56px; }
  .page-intro h1 { font-size: 2.875rem; }
  .announcements { grid-template-columns: 1fr; gap: 24px; }
  .meeting-grid, .give-grid, .split, .book { grid-template-columns: 1fr; }
  .split__form, .book__side { position: static; }
  .calendar__frame iframe { height: 560px; }
}

/* ---------- Phone ---------- */
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 1rem; }
  .brand { white-space: normal; font-size: 1.25rem; }
  .main-nav { white-space: normal; gap: 0 18px; }
  .hero h1 { font-size: 2.375rem; }
  .hero__lead { font-size: 1.0625rem; }
  .hero__photo { height: 280px; border-radius: 14px; }
  .btn { width: 100%; text-align: center; }
  .card { padding: 28px; border-radius: 16px; }
  .card h2 { font-size: 1.875rem; }
  .bible picture { flex-basis: 200px; }
  .page-intro { padding-top: 48px; }
  .page-intro h1 { font-size: 2.375rem; }
  .faith-list { border-radius: 16px; }
  .faith-list li { padding: 20px 20px 20px 60px; }
  .faith-list li::before { left: 20px; top: 15px; font-size: 1.625rem; }
  .ref { white-space: normal; }
  .announcement { padding: 28px; border-radius: 16px; }
  .announcement__title { font-size: 1.625rem; }
  .announcement__aside { padding: 16px 18px; }
  .meeting, .form, .contact-info, .book__side { padding: 24px; border-radius: 16px; }
  .meeting h2, .section-title { font-size: 1.875rem; }
  .page-quote { font-size: 1.1875rem; }
  .link-list li { padding: 18px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .accordion { border-radius: 16px; }
  .accordion__summary { padding: 16px 48px 16px 18px; }
  .accordion__summary::after { right: 20px; top: 22px; }
  .accordion__body { padding: 14px 18px 18px 38px; }
  .study__past { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
}
