/* ==========================================================================
   Maranatha Fellowship Texas: shared site styles
   Used by every page (index.html, about.html, mission.html, etc.)
   Palette: navy/black top bar and footer, light gray page, white cards,
   orange/red/yellow accents. System fonts only (no external font requests).
   ========================================================================== */

:root {
  --navy: #0c1220;
  --navy-2: #1a2744;
  --ink: #1a1f2e;
  --text: #2a3142;
  --muted: #4a5568;
  --muted-2: #5a6478;
  --page: #f4f5f7;
  --white: #ffffff;
  --line: #dde1ea;
  --orange: #e85a2a;
  --orange-dark: #b8441a;   /* link color, passes WCAG AA on white */
  --gold: #c9a227;
  --nav-text: #c5d0e6;
  --footer-text: #a9b8cf;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  background: var(--page);
  color: var(--ink);
  overflow-wrap: break-word;
}
h1, h2, h3, p, ul, blockquote { margin: 0; }
img, iframe { max-width: 100%; }
img { display: block; height: auto; }

a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #ffcc66;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--white); color: var(--navy);
  padding: 10px 16px; font-family: var(--sans); font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ---------- Top bar ---------- */
.top-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--orange);
  padding: 0 24px;
  position: relative;
  z-index: 10;
}
.top-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  min-height: 64px;
}
.brand {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
  padding: 10px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.brand:hover { color: var(--white); text-decoration: none; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--nav-text);
  padding: 8px 10px;
  border-radius: 3px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--navy-2);
  text-decoration: none;
}
.nav-links a.active { border-bottom-color: var(--orange); }

/* Menu button (shown on small screens only, and only once menu.js runs) */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  background: transparent;
  color: var(--white);
  border: 1px solid #3a4a6a;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--navy-2); }
.menu-icon, .menu-icon span, .menu-icon span::before, .menu-icon span::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px;
}
.menu-icon { background: none; height: 16px; position: relative; }
.menu-icon span { position: absolute; top: 7px; transition: background 0.15s; }
.menu-icon span::before, .menu-icon span::after {
  content: ""; position: absolute; left: 0; transition: transform 0.2s;
}
.menu-icon span::before { top: -7px; }
.menu-icon span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon span { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Header banner image ---------- */
.banner {
  max-width: calc(var(--max) + 48px);
  margin: 24px auto 0;
  padding: 0 24px;
}
.banner img {
  width: 100%;
  aspect-ratio: 2400 / 560;
  object-fit: cover;
  background: var(--navy);
  box-shadow: 0 1px 4px rgba(12, 18, 32, 0.12);
}

/* ---------- Main layout ---------- */
.wrap {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 36px 24px 48px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  margin-bottom: 48px;
  align-items: start;
}

/* Page heading block (reuse on inner pages) */
.welcome h1, .page-title {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.25;
}
.tagline {
  font-style: italic;
  color: var(--orange-dark);
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.welcome p, .prose p {
  color: var(--text);
  margin-bottom: 16px;
}
.verse {
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  color: var(--text);
}
.welcome .verse p, .verse p { margin: 0; font-size: 1rem; }
.verse cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 0.875rem;
}

/* ---------- Video card ---------- */
.video-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(12, 18, 32, 0.06);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-meta { padding: 16px 20px 22px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-dark);
  margin-bottom: 6px;
}
.video-meta h2 {
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-bottom: 3px solid var(--orange);
  text-decoration: none;
}
.btn:hover { background: var(--navy-2); color: var(--white); text-decoration: none; }

/* ---------- Explore cards ---------- */
.section-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  padding: 22px 22px 14px;
  box-shadow: 0 1px 3px rgba(12, 18, 32, 0.05);
}
.card h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.card p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 6px;
  flex: 1;
}
.card a.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--orange);
  padding: 24px 24px 28px;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--footer-text);
}
.site-footer .fb { margin-bottom: 6px; }
.site-footer a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover { color: #ffcc66; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Mid-size: nav moves under the brand */
@media (max-width: 1180px) {
  .top-nav-inner { padding: 6px 0; }
  .site-nav { width: 100%; }
  .nav-links { margin: 0 -10px; }
}

/* Tablet: stack welcome and video */
@media (max-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .video-card { max-width: 720px; }
}

/* Phones: hamburger menu, stacked cards, edge-to-edge banner */
@media (max-width: 760px) {
  .top-nav { padding: 0 16px; }
  .top-nav-inner { padding: 6px 0; gap: 0 10px; }
  .brand { font-size: 0.95rem; letter-spacing: 0.02em; flex: 0 1 auto; min-width: 0; }
  .menu-toggle { padding: 8px 12px; }

  /* Only collapse the nav when menu.js is running; without JS it stays visible */
  .has-menu-js .menu-toggle { display: inline-flex; }
  .has-menu-js .site-nav { display: none; }
  .has-menu-js .site-nav.is-open { display: block; }

  .nav-links {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 4px 0 12px;
    font-size: 1rem;
  }
  .nav-links li + li { border-top: 1px solid #1e2b45; }
  .nav-links a {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 0;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }
  .nav-links a.active { border-left-color: var(--orange); border-bottom: 0; }

  .banner { margin-top: 0; padding: 0; }
  .banner img { box-shadow: none; }

  .wrap { padding: 28px 16px 40px; }
  .welcome h1, .page-title { font-size: 1.75rem; }
  .tagline { font-size: 1.05rem; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .video-meta h2 { font-size: 1.1rem; }
  .btn { width: 100%; }
  .site-footer { padding: 20px 16px 24px; }
}

/* Very narrow phones: icon-only menu button (label stays for screen readers) */
@media (max-width: 400px) {
  .menu-toggle { padding: 8px 11px; }
  .menu-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ==========================================================================
   Inner pages (About Us and later pages)
   ========================================================================== */

/* Page heading */
.page-head {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--orange);
}
.page-head .page-title { margin-bottom: 0; }

/* Row of large button links (About Us: Mission / Faith / Leaders) */
.link-tiles { margin-bottom: 40px; }
.link-tiles ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tile {
  --accent: var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  min-height: 96px;
  padding: 20px 22px;
  background: var(--navy);
  color: var(--white);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(12, 18, 32, 0.15);
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.tile:hover, .tile:focus-visible {
  background: var(--navy-2);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}
.tile-arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy);
  font-size: 1.1rem;
}
.tile-orange { --accent: #f07a3a; }
.tile-blue   { --accent: #4a9eff; }
.tile-red    { --accent: #e5484d; }

/* White reading card */
.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(12, 18, 32, 0.06);
  padding: 32px 40px 18px;
}
/* Comfortable reading width (about 75 characters per line), centered */
.prose { max-width: 820px; }
.content-card.prose { margin-left: auto; margin-right: auto; }
.section-title {
  font-family: var(--sans);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 4px solid var(--orange);
}

@media (max-width: 900px) {
  .link-tiles ul { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { min-height: 64px; padding: 14px 18px; font-size: 1.1rem; }
}
@media (max-width: 760px) {
  .content-card { padding: 22px 18px 8px; }
  .section-title { font-size: 1.3rem; }
  .link-tiles { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile:hover, .tile:focus-visible { transform: none; }
}

/* ==========================================================================
   Mission page (reusable: reading column, lead card, numbered sections,
   Scripture references)
   ========================================================================== */
.reading { max-width: 820px; margin: 0 auto; }

.lead-card {
  background: #fff6ef;
  border: 1px solid #f3d9c8;
  border-left: 5px solid var(--orange);
  padding: 24px 30px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(12, 18, 32, 0.05);
}
.lead-card p {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--navy);
}

.purposes {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  gap: 22px;
}
.purpose.content-card { padding: 26px 36px 12px; }
.purpose p { color: var(--text); margin-bottom: 16px; }
.purpose-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.purpose-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Scripture references: stay inline, just easier to spot */
.ref {
  font-family: var(--sans);
  font-size: 0.88em;
  font-weight: 600;
  color: #2f4f8a;
  white-space: normal;
}

/* Two-across version of the big button links */
.link-tiles-2 ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related .section-label { font-size: 0.8rem; }

@media (max-width: 900px) {
  .link-tiles-2 ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lead-card { padding: 18px 18px; margin-bottom: 20px; }
  .lead-card p { font-size: 1.1rem; }
  .purpose.content-card { padding: 20px 18px 6px; }
  .purpose-title { font-size: 1.2rem; gap: 12px; }
  .purpose-num { width: 36px; height: 36px; font-size: 1rem; }
  .purposes { gap: 16px; margin-bottom: 32px; }
}

/* ==========================================================================
   Statement of Faith page (beliefs.html)
   ========================================================================== */
.faith { max-width: 860px; }

/* Jump list of sections */
.jump-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 14px 18px 16px;
  margin-bottom: 24px;
}
.jump-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.jump-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jump-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--page);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: 3px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.jump-list a:hover { background: #fff6ef; color: var(--navy); text-decoration: none; }

.statement { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 40px; }
.faith-list p, .video-links { overflow-wrap: anywhere; }
.faith-section { scroll-margin-top: 12px; padding: 28px 36px 10px; }

.faith-list { list-style: none; margin: 0; padding: 0; }
.faith-list > li {
  position: relative;
  padding: 0 0 18px 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid #eceef3;
}
.faith-list > li:last-child { border-bottom: 0; margin-bottom: 0; }
.faith-list p { color: var(--text); margin: 0; }
.star {
  display: inline-block;
  width: 18px;            /* star + following space = the 22px hanging indent */
  margin-left: -22px;
  color: var(--orange);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1;
  vertical-align: -0.12em;
}
.star.star-tight { width: 22px; }   /* item with no space after the star */

/* Scripture links inside references */
.ref-link { color: inherit; text-decoration: none; white-space: nowrap; }
.ref-link.ref-multi { white-space: normal; }
.ref-link:hover { color: var(--orange-dark); text-decoration: underline; }

/* "Click Here" teaching video links under an item */
.video-links {
  list-style: none;
  margin: 10px 0 0;
  padding: 8px 0 0 14px;
  border-left: 2px solid #f3d9c8;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
}
.video-links li { padding: 3px 0; }
.video-links a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.back-top { text-align: right; margin: 4px 0 8px; }
.back-top a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .faith-section { padding: 20px 16px 4px; }
  .jump-list { padding: 12px 14px 14px; }
  .jump-list ul { flex-direction: column; gap: 6px; }
  .jump-list a { width: 100%; }
  .video-links { padding-left: 10px; }
  .statement { gap: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Statement of Faith: collapsible sections ---------- */
.jump-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 8px;
}
.jump-head .jump-label { margin-bottom: 0; }
.expand-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-bottom: 3px solid var(--orange);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.expand-toggle[hidden] { display: none; }
.expand-toggle:hover { background: var(--navy-2); }

details.faith-section { padding: 0; overflow: hidden; }
.faith-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 22px;
  border-left: 5px solid var(--orange);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faith-summary::-webkit-details-marker { display: none; }
.faith-summary::marker { content: ""; }
.faith-summary:hover { background: #fff6ef; }
.faith-summary:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
details[open] > .faith-summary { border-bottom: 1px solid var(--line); background: #fffaf6; }
.faith-title {
  font-family: var(--sans);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0;
}
.faith-icon {
  flex: none;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--orange);
  transition: transform 0.2s ease;
}
.faith-icon::before {          /* chevron */
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 9px;
  height: 9px;
  border-right: 2.5px solid var(--white);
  border-bottom: 2.5px solid var(--white);
  transform: translate(-50%, -50%) rotate(45deg);
}
details[open] > .faith-summary .faith-icon { transform: rotate(180deg); }
.faith-body { padding: 22px 36px 6px; }

@media (max-width: 760px) {
  .faith-summary { padding: 12px 14px 12px 16px; min-height: 56px; }
  .faith-title { font-size: 1.15rem; }
  .faith-icon { width: 32px; height: 32px; }
  .faith-body { padding: 18px 16px 4px; }
  .expand-toggle { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .faith-icon { transition: none; }
}

/* ==========================================================================
   Leadership page (leadership.html)
   ========================================================================== */
.leaders {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.chief-card {
  background: #fff6ef;
  border: 1px solid #f3d9c8;
  border-top: 4px solid var(--orange);
  box-shadow: 0 1px 3px rgba(12, 18, 32, 0.06);
  padding: 22px 24px;
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}
.chief-card .ref { font-size: 0.9em; }
.nowrap { white-space: nowrap; }
.chief-card .ref-link { display: inline-block; padding: 12px 0; line-height: 1.2; }
.leaders-names {
  font-family: var(--sans);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 18px;
}
.leaders-photo {
  display: block;
  max-width: 520px;
  margin: 0 auto;
}
.leaders-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(12, 18, 32, 0.14);
  background: var(--line);
}
.leaders-related { max-width: 860px; margin-left: auto; margin-right: auto; }

@media (max-width: 760px) {
  .chief-card { font-size: 1.25rem; padding: 18px 16px; margin-bottom: 22px; }
  .leaders-names { font-size: 1.2rem; }
  .leaders-photo { max-width: none; }
  .leaders { margin-bottom: 32px; }
}

/* ==========================================================================
   Teachings page (teachings.html)
   ========================================================================== */
.teaching-intro {
  max-width: 720px;
  margin: 0 0 40px;
  color: var(--text);
}
.teaching-intro p { margin: 0 0 20px; }
.teaching-cta {
  margin: 0 0 8px;
  text-align: left;
}
.btn-youtube {
  background: var(--navy);
  border-bottom-color: var(--orange);
  gap: 10px;
}
.btn-youtube:hover {
  background: var(--navy-2);
  color: var(--white);
  text-decoration: none;
}
.teaching-series {
  margin: 0 0 3.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.teaching-series:last-of-type {
  margin-bottom: 1rem;
  border-bottom: 0;
  padding-bottom: 0;
}
.series-title {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 0 0 10px;
}
.series-desc {
  color: var(--text);
  margin: 0 0 16px;
  max-width: 820px;
}
.teaching-series .video-frame {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(12, 18, 32, 0.06);
  background: var(--navy);
}
.series-link {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
}
.series-link a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 760px) {
  .teaching-intro { margin-bottom: 32px; }
  .teaching-cta .btn { width: 100%; }
  .teaching-series { margin-bottom: 3rem; }
  .series-title { font-size: 1.2rem; }
}

/* ==========================================================================
   End Times page (end-times.html): reuses the beliefs.html collapsible
   section (details.faith-section) and .teaching-series (teachings);
   only spacing added here
   ========================================================================== */
.et-beliefs { margin: 0 0 40px; }   /* collapsible beliefs bar (closed by default) */
.et-teaching > .section-title { margin-bottom: 28px; }
.video-stack .video-frame + .video-frame { margin-top: 32px; }

@media (max-width: 760px) {
  .et-beliefs { margin-bottom: 32px; }
  .et-teaching > .section-title { margin-bottom: 22px; }
  .video-stack .video-frame + .video-frame { margin-top: 24px; }
}

/* ==========================================================================
   Links page (links.html): centered single column of linked banner images
   ========================================================================== */
.link-list {
  list-style: none;
  margin: 8px auto 24px;
  padding: 0;
  max-width: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  justify-items: center;
  text-align: center;
}
.link-list a { display: inline-block; max-width: 100%; line-height: 0; }
.link-list img {
  display: block;
  max-width: 100%;
  height: auto;
  box-shadow: 0 2px 8px rgba(12, 18, 32, 0.16);
  transition: transform 0.15s, box-shadow 0.15s;
}
.link-list a:hover img, .link-list a:focus-visible img {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(12, 18, 32, 0.22);
}
.link-list a:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

@media (max-width: 760px) {
  .link-list { gap: 28px; margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .link-list img { transition: none; }
  .link-list a:hover img, .link-list a:focus-visible img { transform: none; }
}
