/* Zion Baptist Church — Welcome, Maryland
   Direction: Land & Light — editorial, cinematic, place-first */

:root {
  --navy: #001a6e;
  --navy-deep: #00082e;
  --bay: #0c6b6b;
  --bay-soft: #d7efef;
  --land: #2f4a28;
  --land-soft: #e4ebdc;
  --ink: #0a0d14;
  --ink-soft: #4a5160;
  --paper: #f7f6f2;
  --chalk: #ffffff;
  --line: rgba(10, 13, 20, 0.1);
  --gold: #b8892d;
  --danger: #9b2c2c;
  --success: #1a6b4a;
  --max: 1180px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Syne", "Arial Narrow", sans-serif;
  --font-serif: "Instrument Serif", "Georgia", serif;
  --font-body: "Literata", "Georgia", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--bay);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--navy-deep);
  margin: 0 0 0.55em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 1.5rem, 1400px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header.is-scrolled .brand-name,
.site-header.is-scrolled .brand-place,
.site-header.is-scrolled .site-nav a,
.site-header.is-scrolled .nav-toggle {
  color: var(--navy-deep);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a[aria-current="page"] {
  color: var(--bay);
}

.site-header.is-scrolled .site-nav .nav-cta {
  background: var(--navy);
  color: white !important;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: white;
  border-radius: 2px;
  padding: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  transition: color 0.3s;
}

.brand-place {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  transition: color 0.3s;
}

body:not(.page-home) .brand-name,
body:not(.page-home) .brand-place,
body:not(.page-home) .site-nav a,
body:not(.page-home) .nav-toggle {
  color: var(--navy-deep);
}

body:not(.page-home) .brand-place {
  color: var(--ink-soft);
}

body:not(.page-home) .site-nav .nav-cta {
  background: var(--navy);
  color: white !important;
}

body:not(.page-home) .site-header {
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: white;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.55rem;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: white;
}

.site-nav .nav-cta {
  background: white;
  color: var(--navy-deep) !important;
  margin-left: 0.4rem;
  padding: 0.55rem 0.95rem;
}

.site-nav .nav-cta:hover {
  background: var(--bay-soft);
}

@media (max-width: 980px) {
  .site-header {
    padding-top: env(safe-area-inset-top, 0);
    height: calc(var(--header-h) + env(safe-area-inset-top, 0));
  }

  .header-inner {
    height: var(--header-h);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-deep);
    padding: 0.75rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0));
    gap: 0.15rem;
    max-height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 8, 46, 0.28);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.85rem 0.75rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 0.35rem;
    justify-content: center;
  }

  body:not(.page-home) .site-nav {
    background: var(--paper);
    border-bottom-color: var(--line);
    box-shadow: 0 18px 36px rgba(10, 13, 20, 0.12);
  }

  body:not(.page-home) .site-nav a {
    color: var(--navy-deep);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    background: rgba(247, 246, 242, 0.97);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
  }

  body.nav-open .brand-name,
  body.nav-open .brand-place,
  body.nav-open .nav-toggle {
    color: var(--navy-deep);
  }

  body.nav-open .brand-place {
    color: var(--ink-soft);
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.45rem;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--navy);
  color: white;
}

.btn-primary:hover {
  background: var(--bay);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

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

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Cinematic home hero ——— */
.hero-cinema {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: white;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 0 3.5rem;
}

.hero-cinema-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(160deg, rgba(0, 8, 46, 0.45) 0%, rgba(0, 26, 110, 0.25) 45%, rgba(0, 8, 46, 0.55) 100%),
    url("../images/church-exterior.jpg") center 35% / cover no-repeat,
    linear-gradient(145deg, #00082e, #001a6e 50%, #0c6b6b);
  transform: scale(1.08);
  will-change: transform;
}

.hero-cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 8, 46, 0.72) 0%, rgba(0, 8, 46, 0.25) 55%, rgba(0, 8, 46, 0.45) 100%),
    linear-gradient(to top, rgba(0, 8, 46, 0.9) 0%, transparent 48%);
  pointer-events: none;
}

.hero-cinema-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.hero-lockup {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  animation: hero-fade 0.9s var(--ease) both;
}

@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lockup img {
  width: clamp(64px, 10vw, 96px);
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
  flex-shrink: 0;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  margin: 0;
  text-transform: uppercase;
  max-width: 11ch;
  color: #ffffff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}

.hero-place {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 650;
  opacity: 0.85;
}

.hero-cinema h1 {
  color: white;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.15rem, 5.5vw, 3.75rem);
  letter-spacing: -0.02em;
  max-width: 14ch;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 34rem;
  opacity: 0.92;
  margin-bottom: 1.75rem;
  font-family: var(--font-body);
}

/* Legacy hero (inner pages may still reference) */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: white;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("../images/hero-church.svg") center / cover no-repeat,
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 4.5rem;
}

/* ——— Marquee ——— */
.marquee {
  overflow: hidden;
  background: var(--navy-deep);
  color: white;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span {
  padding: 0 1.75rem;
  opacity: 0.85;
}

.marquee-track span::after {
  content: "·";
  margin-left: 1.75rem;
  opacity: 0.4;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ——— Service ribbon (below hero) ——— */
.service-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--chalk);
  border-bottom: 1px solid var(--line);
}

.service-ribbon a {
  text-decoration: none;
  color: inherit;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.service-ribbon a:last-child {
  border-right: 0;
}

.service-ribbon a:hover {
  background: var(--bay-soft);
}

.service-ribbon strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.service-ribbon span {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .service-ribbon {
    grid-template-columns: 1fr;
  }

  .service-ribbon a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ——— Sections ——— */
.section {
  padding: 5.5rem 0;
}

.section-mist {
  background: #efece4;
}

.section-navy {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.9);
}

.section-navy h2,
.section-navy h3 {
  color: white;
}

.section-land {
  background: var(--land);
  color: rgba(255, 255, 255, 0.9);
}

.section-land h2,
.section-land h3 {
  color: white;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.section-navy .section-head p,
.section-land .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

.kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bay);
  margin-bottom: 0.85rem;
}

.section-navy .kicker,
.section-land .kicker {
  color: #9fd6d6;
}

/* ——— Manifesto ——— */
.manifesto {
  padding: 6rem 0;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.manifesto-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy-deep);
  max-width: 14ch;
  margin: 0 0 1.5rem;
}

.manifesto-aside {
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: end;
}

@media (max-width: 800px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Full-bleed image chapters ——— */
.chapter {
  position: relative;
  min-height: min(92svh, 820px);
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
  isolation: isolate;
}

.chapter-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
  will-change: transform;
}

.chapter.is-visible .chapter-media {
  transform: scale(1);
}

.chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 8, 46, 0.88) 0%, rgba(0, 8, 46, 0.2) 55%, rgba(0, 8, 46, 0.35) 100%);
}

.chapter-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
  max-width: 36rem;
}

.chapter-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.chapter h2 {
  color: white;
  margin-bottom: 0.75rem;
}

.chapter p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.chapter-a .chapter-media {
  background-image:
    linear-gradient(145deg, rgba(12, 107, 107, 0.45), rgba(0, 26, 110, 0.55)),
    url("../images/church-exterior.jpg");
  background-position: center 30%;
}

.chapter-b .chapter-media {
  background-image:
    linear-gradient(160deg, rgba(47, 74, 40, 0.55), rgba(10, 31, 18, 0.65)),
    url("../images/panel-cemetery.svg");
  background-position: center;
  background-size: cover;
}

.chapter-c .chapter-media {
  background-image:
    linear-gradient(135deg, rgba(0, 26, 110, 0.55), rgba(0, 8, 46, 0.4)),
    url("../images/multipurpose-building.png");
  background-position: center;
}

/* ——— Horizontal campus rail ——— */
.rail-section {
  padding: 5rem 0 4rem;
  background: var(--navy-deep);
  color: white;
  overflow: hidden;
}

.rail-section .section-head {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.rail-section .kicker {
  color: #9fd6d6;
}

.rail-section h2 {
  color: white;
}

.rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.5rem;
  width: min(100% - 0rem, 100%);
  padding-inline: max(1.25rem, calc((100% - var(--max)) / 2));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.rail-card {
  flex: 0 0 min(78vw, 340px);
  scroll-snap-align: start;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  text-decoration: none;
  color: white;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.45s var(--ease);
}

.rail-card:hover {
  transform: translateY(-8px);
}

.rail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s var(--ease);
}

.rail-card:hover::before {
  transform: scale(1.06);
}

.rail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
}

.rail-card h3 {
  color: white;
  margin-bottom: 0.35rem;
}

.rail-card p {
  opacity: 0.85;
  font-size: 0.98rem;
  margin: 0;
}

.rail-1::before {
  background-image:
    linear-gradient(160deg, rgba(12, 107, 107, 0.5), rgba(0, 26, 110, 0.65)),
    url("../images/church-exterior.jpg");
  background-position: center 28%;
}
.rail-2::before {
  background-image:
    linear-gradient(160deg, rgba(47, 74, 40, 0.55), rgba(12, 32, 16, 0.7)),
    url("../images/panel-cemetery.svg");
  background-position: center;
  background-size: cover;
}
.rail-3::before {
  background-image:
    linear-gradient(160deg, rgba(0, 26, 110, 0.55), rgba(18, 58, 138, 0.55)),
    url("../images/multipurpose-building.png");
  background-position: center;
}
.rail-4::before {
  background-image:
    linear-gradient(160deg, rgba(74, 56, 24, 0.55), rgba(26, 18, 8, 0.55)),
    url("../images/gallery/campus-07.jpg");
  background-position: center;
}

/* ——— Split / media ——— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-reverse > :first-child {
  order: 2;
}

@media (max-width: 860px) {
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }

  .split-reverse > :first-child {
    order: 0;
  }
}

.media-frame {
  position: relative;
  min-height: 360px;
  background: linear-gradient(160deg, var(--bay-soft), #b8c4e8);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.media-caption {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ——— Map immersion ——— */
.map-immersion {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.map-immersion-copy {
  background: var(--navy-deep);
  color: white;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-immersion-copy h2 {
  color: white;
}

.map-immersion-copy p,
.map-immersion-copy .text-soft {
  color: rgba(255, 255, 255, 0.75);
}

.map-immersion-frame {
  position: relative;
  min-height: 420px;
  background: var(--bay-soft);
}

.map-immersion-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

@media (max-width: 860px) {
  .map-immersion {
    grid-template-columns: 1fr;
  }
}

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bay-soft);
  overflow: hidden;
}

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

/* ——— Info list ——— */
.info-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.info-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
}

.info-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.info-list .label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-immersion .info-list {
  border-color: rgba(255, 255, 255, 0.15);
}

.map-immersion .info-list li {
  border-color: rgba(255, 255, 255, 0.15);
}

.map-immersion .info-list .label {
  color: #9fd6d6;
}

.map-immersion .info-list a {
  color: white;
}

@media (max-width: 520px) {
  .info-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ——— Page hero ——— */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background:
    linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 50%, var(--bay) 130%);
  color: white;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.12), transparent 35%),
    linear-gradient(90deg, rgba(0, 8, 46, 0.55), rgba(0, 8, 46, 0.25)),
    url("../images/church-exterior.jpg") right center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  color: white;
  margin-bottom: 0.5rem;
  max-width: 12ch;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  font-size: 1.15rem;
}

.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ——— Timeline (year clear of line + dot) ——— */
.timeline {
  position: relative;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(7.5rem, 11rem) 2rem minmax(0, 1fr);
  column-gap: 1.5rem;
  align-items: start;
  padding: 0 0 3.5rem;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .timeline-item {
  opacity: 0;
}

.js .timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:last-child {
  padding-bottom: 0.5rem;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.2;
  text-align: right;
  padding-top: 0.15rem;
  padding-right: 0.25rem;
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 11rem;
}

.timeline-marker {
  position: relative;
  width: 1.75rem;
  min-height: 100%;
  display: flex;
  justify-content: center;
  padding-top: 0.45rem;
}

.timeline-marker::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  bottom: -3.5rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--navy), var(--bay), var(--land));
}

.timeline-item:last-child .timeline-marker::before {
  bottom: auto;
  height: 0;
}

.timeline-marker::after {
  content: "";
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--navy);
  flex-shrink: 0;
}

.timeline-body {
  min-width: 0;
  padding-top: 0.05rem;
}

.timeline-item h3 {
  margin-bottom: 0.4rem;
}

.timeline-item p {
  color: var(--ink-soft);
  max-width: 38rem;
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 1.25rem minmax(0, 1fr);
    column-gap: 1.35rem;
  }

  .timeline-year {
    grid-column: 2;
    text-align: left;
    font-size: 1.35rem;
    margin-bottom: 0.45rem;
    white-space: normal;
    padding-left: 0.15rem;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-body {
    grid-column: 2;
    padding-left: 0.15rem;
  }
}

/* ——— Nav submenu (Events) ——— */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item > .nav-parent {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.35rem 0.45rem 0.55rem;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
}

.nav-caret::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s var(--ease);
}

.nav-item.is-open .nav-caret::before {
  transform: rotate(180deg);
}

.site-header.is-scrolled .nav-item > .nav-parent,
.site-header.is-scrolled .nav-caret,
body:not(.page-home) .nav-item > .nav-parent,
body:not(.page-home) .nav-caret {
  color: var(--navy-deep);
}

.site-header.is-scrolled .nav-item > .nav-parent[aria-current="page"],
body:not(.page-home) .nav-item > .nav-parent[aria-current="page"] {
  color: var(--bay);
}

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.4rem;
  z-index: 120;
  /* Invisible bridge so the cursor can reach the menu without dropping hover */
  padding-top: 0.65rem;
  margin-top: 0;
  border-top: none;
  box-shadow: 0 0 0 1px var(--line), 0 10px 28px rgba(0, 8, 46, 0.12);
}

.nav-sub::before {
  content: "";
  position: absolute;
  top: -0.55rem;
  left: 0;
  right: 0;
  height: 0.65rem;
}

.nav-item.is-open .nav-sub,
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub {
  display: block;
}

.nav-sub a {
  display: block;
  color: var(--navy-deep) !important;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.85rem;
  padding: 0.65rem 0.75rem !important;
}

.nav-sub a:hover,
.nav-sub a[aria-current="page"] {
  background: var(--bay-soft);
  color: var(--navy) !important;
}

@media (max-width: 980px) {
  .nav-item {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  .nav-item > .nav-parent {
    width: auto;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.85rem 0.75rem;
    text-align: left;
  }

  .nav-caret {
    color: rgba(255, 255, 255, 0.85);
    width: 2.75rem;
    height: 2.75rem;
  }

  body:not(.page-home) .nav-item > .nav-parent,
  body:not(.page-home) .nav-caret {
    color: var(--navy-deep);
  }

  .nav-sub {
    position: static;
    display: none;
    grid-column: 1 / -1;
    border: none;
    background: transparent;
    padding: 0 0 0.5rem 0.75rem;
    min-width: 0;
  }

  .nav-item.is-open .nav-sub {
    display: block;
  }

  .nav-item:hover .nav-sub {
    display: none;
  }

  .nav-item.is-open:hover .nav-sub {
    display: block;
  }

  .nav-sub a {
    color: rgba(255, 255, 255, 0.75) !important;
  }

  body:not(.page-home) .nav-sub a {
    color: var(--navy-deep) !important;
  }
}

/* ——— People ——— */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem 1.75rem;
}

@media (max-width: 860px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

.person {
  text-align: left;
}

.person-photo {
  aspect-ratio: 3 / 4;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.person:hover .person-photo img {
  transform: scale(1.05);
}

.person-role {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bay);
  margin-bottom: 0.3rem;
}

.person h3 {
  margin-bottom: 0.45rem;
}

.person p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ——— Events / Calendar ——— */
.calendar-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }
}

.calendar-panel {
  background: var(--chalk);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.cal-nav button {
  background: #efece4;
  border: none;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
}

.cal-nav button:hover {
  background: var(--bay-soft);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  text-align: center;
}

.cal-dow {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.35rem 0;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  position: relative;
  font-family: inherit;
}

.cal-day:hover:not(:disabled) {
  background: var(--bay-soft);
}

.cal-day:disabled {
  opacity: 0.25;
  cursor: default;
}

.cal-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
}

.cal-day.is-selected {
  background: var(--navy);
  color: white;
}

.cal-day.is-selected.has-event::after {
  background: white;
}

.cal-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.event-list li:first-child {
  padding-top: 0;
}

.event-date {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bay);
  margin-bottom: 0.3rem;
}

.event-list h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.event-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ——— Amenity ——— */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
}

@media (max-width: 640px) {
  .amenity-grid {
    grid-template-columns: 1fr;
  }
}

.amenity {
  padding-top: 1.35rem;
  border-top: 3px solid var(--navy);
}

.amenity h3 {
  margin-bottom: 0.4rem;
}

.amenity p {
  color: var(--ink-soft);
  margin: 0;
}

/* ——— Cemetery ——— */
.cemetery-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .cemetery-layout {
    grid-template-columns: 1fr;
  }
}

.cemetery-map {
  background: linear-gradient(180deg, #e8efdc 0%, #d2dcb8 100%);
  border: 1px solid var(--line);
  padding: 1.25rem;
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.cemetery-map::before {
  content: none;
}

.cemetery-map svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
}

.plot {
  cursor: pointer;
  transition: fill 0.2s;
}

.plot:hover,
.plot.is-active {
  fill: #b8892d !important;
}

.plot-occupied {
  fill: #7a8499;
}

.plot-available {
  fill: #a8bc88;
}

.plot-family {
  fill: #5f8a9e;
}

.plot-road {
  fill: #c8cdd6;
}

.cemetery-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.plot-detail {
  background: var(--chalk);
  border: 1px solid var(--line);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.plot-detail h3 {
  margin-bottom: 0.5rem;
}

.plot-detail p {
  color: var(--ink-soft);
}

.plot-detail[hidden] {
  display: none;
}

/* ——— Forms ——— */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  min-height: 48px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

.alert {
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--navy);
  background: var(--bay-soft);
}

.alert-success {
  border-color: var(--success);
  background: #e8f5ef;
}

.alert-error {
  border-color: var(--danger);
  background: #fceeee;
}

/* ——— Pricing ——— */
.rate-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
}

.rate-table th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #efece4;
}

.rate-table td:last-child {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* ——— CTA ——— */
.cta-band {
  padding: 5.5rem 0;
  background:
    linear-gradient(115deg, var(--navy-deep) 0%, var(--navy) 45%, var(--bay) 120%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "WELCOME";
  position: absolute;
  right: -4%;
  bottom: -12%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 16rem);
  letter-spacing: -0.06em;
  line-height: 0.8;
  opacity: 0.07;
  pointer-events: none;
}

.cta-band h2 {
  color: white;
  margin-bottom: 0.65rem;
  max-width: 14ch;
}

.cta-band p {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  opacity: 0.9;
}

.cta-phone {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.cta-phone:hover {
  color: #9fd6d6;
}

/* ——— Footer ——— */
.site-footer {
  background: #05070d;
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 2rem;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: white;
  padding: 4px;
}

.footer-brand strong {
  display: block;
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.site-footer h4 {
  color: white;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ——— Utility ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-soft {
  color: var(--ink-soft);
}

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.stat-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.stat-inline div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1.1;
}

.stat-inline div span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
}

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  color: var(--bay);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--bay);
}

/* Legacy service-strip support */
.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-item {
  background: white;
  padding: 1.5rem 1.35rem;
}

.service-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.service-item span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .service-strip {
    grid-template-columns: 1fr;
  }
}

/* ——— Mobile polish (primary audience) ——— */
@media (max-width: 768px) {
  :root {
    --header-h: 3.75rem;
  }

  body {
    font-size: 1.0625rem;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .container-wide {
    width: min(100% - 1.25rem, 1400px);
  }

  .hero-cinema-inner,
  .chapter-inner {
    width: min(100% - 1.5rem, var(--max));
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .brand-place {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .hero-cinema {
    min-height: 100svh;
    min-height: 100dvh;
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0) + 1.25rem) 0 max(2.5rem, env(safe-area-inset-bottom, 0) + 1.5rem);
    align-items: flex-end;
  }

  .hero-cinema-media {
    background-image:
      linear-gradient(180deg, rgba(0, 8, 46, 0.35) 0%, rgba(0, 8, 46, 0.2) 40%, rgba(0, 8, 46, 0.82) 100%),
      url("../images/church-exterior-portrait.jpg");
    background-position: center 20%;
    background-size: cover;
  }

  .hero-lockup {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .hero-lockup img {
    width: 56px;
  }

  .hero-wordmark {
    font-size: clamp(1.85rem, 11vw, 2.65rem);
    max-width: 9.5ch;
    line-height: 0.9;
  }

  .hero-place {
    letter-spacing: 0.16em;
    font-size: 0.72rem;
  }

  .hero-cinema h1 {
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    max-width: 12ch;
  }

  .hero-lead {
    font-size: 1.02rem;
    margin-bottom: 1.35rem;
  }

  .btn-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .btn {
    min-height: 48px;
  }

  .service-ribbon a {
    padding: 1.15rem 1.15rem;
    min-height: 72px;
  }

  .service-ribbon strong {
    font-size: 1.15rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .manifesto {
    padding: 3.5rem 0;
  }

  .manifesto-quote {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .chapter {
    min-height: min(78svh, 620px);
  }

  .chapter-inner {
    padding: 3rem 0 2.75rem;
  }

  .chapter h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .chapter p {
    font-size: 1.02rem;
  }

  .rail-section {
    padding: 3.5rem 0 3rem;
  }

  .rail-section .section-head {
    width: min(100% - 1.5rem, var(--max));
  }

  .rail {
    padding-inline: 1rem;
    gap: 0.85rem;
    scroll-padding-inline: 1rem;
    scrollbar-width: none;
  }

  .rail::-webkit-scrollbar {
    display: none;
  }

  .rail-card {
    flex: 0 0 min(82vw, 300px);
    min-height: 360px;
    padding: 1.35rem;
  }

  .map-immersion-copy {
    padding: 2.25rem 1.25rem;
  }

  .map-immersion-frame {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .map-embed {
    aspect-ratio: 4 / 3;
  }

  .page-hero {
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0) + 2.5rem) 0 2.75rem;
  }

  .page-hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .page-hero p {
    font-size: 1.05rem;
  }

  .cta-band {
    padding: 3.5rem 1.25rem;
  }

  .cta-phone {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    word-break: break-word;
  }

  .people-grid {
    gap: 1.75rem;
  }

  .calendar-panel {
    padding: 0.85rem;
  }

  .cal-header {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .cal-header h3 {
    font-size: 1.1rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  .cal-grid {
    gap: 0.2rem;
  }

  .cal-dow {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    padding: 0.25rem 0;
  }

  .cal-day {
    aspect-ratio: auto;
    min-height: 44px;
    font-size: 0.85rem;
    padding: 0.35rem 0;
  }

  .cal-day.has-event::after {
    bottom: 3px;
    width: 4px;
    height: 4px;
  }

  .event-list h3 {
    font-size: 1.1rem;
    overflow-wrap: anywhere;
  }

  .event-meta {
    overflow-wrap: anywhere;
  }

  .cemetery-map {
    padding: 0.65rem;
    max-height: min(70vh, 520px);
  }

  .cemetery-map::before {
    content: "Swipe sideways to explore the map";
    display: block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 0.65rem;
  }

  .cemetery-map svg {
    min-width: 34rem;
    width: 34rem;
  }

  .cemetery-legend {
    gap: 0.65rem 1rem;
    font-size: 0.8rem;
    position: sticky;
    left: 0;
  }

  .plot-detail {
    position: static;
  }

  .site-footer {
    padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom, 0));
  }

  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.65rem;
  }

  .rate-table {
    min-width: 28rem;
  }

  .rate-table th,
  .rate-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.92rem;
  }

  [data-selected-day],
  .plot-detail {
    scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0) + 0.75rem);
  }

  .media-frame {
    min-height: 240px;
  }

  .media-frame img {
    min-height: 240px;
  }

  .stat-inline {
    gap: 1.25rem 1.75rem;
  }

  .stat-inline div strong {
    font-size: 1.65rem;
  }

  /* Prevent iOS zoom on focus */
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .cal-day {
    min-height: 40px;
    font-size: 0.8rem;
  }

  .cemetery-map svg {
    min-width: 30rem;
    width: 30rem;
  }

  .marquee-track {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
}

@media (max-width: 380px) {
  .brand-text {
    max-width: 9.5rem;
  }

  .hero-wordmark {
    font-size: 1.7rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }

  .rail-card:hover {
    transform: none;
  }

  a,
  button {
    -webkit-tap-highlight-color: rgba(0, 26, 110, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lockup,
  .marquee-track,
  .reveal,
  .timeline-item,
  .chapter-media,
  .hero-cinema-media {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .timeline-item {
    opacity: 1;
    transform: none;
  }

  .hero-cinema-media,
  .chapter.is-visible .chapter-media {
    transform: none;
  }
}

/* ——— Hero place line (no logo lockup) ——— */
.hero-place-line {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* ——— Ministry chip scroller ——— */
.ministry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 0.5rem;
}

.ministry-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(0, 26, 110, 0.18);
  background: var(--paper, #fff);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.ministry-chips a:hover,
.ministry-chips a:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@media (max-width: 768px) {
  .ministry-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    scrollbar-width: thin;
  }

  .ministry-chips a {
    scroll-snap-align: start;
    flex: 0 0 auto;
  }
}

/* ——— Contact success panel ——— */
.contact-success {
  padding: 1.5rem 1.35rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(160deg, rgba(12, 107, 107, 0.08), rgba(0, 26, 110, 0.06));
  border: 1px solid rgba(12, 107, 107, 0.28);
}

.contact-success .info-list {
  margin-top: 1.15rem;
}

.phone-link {
  font-weight: 700;
  font-size: 1.1em;
}

/* ——— Calendar archive / weekly badges ——— */
.event-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.event-badge-weekly {
  background: rgba(0, 26, 110, 0.1);
  color: var(--navy);
}

.event-badge-archive {
  background: rgba(74, 56, 24, 0.12);
  color: #5c4520;
}

.cal-day.is-archive.has-event::after {
  background: #8a7048;
}

.cal-mode-note {
  margin: 0 0 0.75rem;
}

/* ——— Sticky “This Sunday” bar (mobile) ——— */
.sunday-bar {
  display: none;
}

@media (max-width: 768px) {
  .sunday-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: rgba(0, 8, 46, 0.96);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -8px 24px rgba(0, 8, 46, 0.25);
  }

  body.nav-open .sunday-bar {
    display: none;
  }

  .sunday-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    max-width: var(--max);
    margin: 0 auto;
  }

  .sunday-bar-label {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
    flex-shrink: 0;
  }

  .sunday-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.2;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.35rem;
  }

  .sunday-bar a strong {
    font-family: var(--font-display);
    margin-right: 0.25rem;
  }

  .sunday-bar-call {
    margin-left: auto;
    background: #fff;
    color: var(--navy-deep) !important;
    font-family: var(--font-display);
    font-weight: 800;
    padding: 0.45rem 0.85rem !important;
  }

  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0));
  }

  .site-footer {
    padding-bottom: 1rem;
  }
}

/* ——— Event connect: tel + copy chips ——— */
.event-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.55rem;
}

.event-connect-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  width: 100%;
}

.event-tel {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--navy);
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(0, 26, 110, 0.2);
  background: rgba(0, 26, 110, 0.05);
  color: var(--navy-deep);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
}

.copy-chip:hover,
.copy-chip:focus-visible {
  border-color: var(--navy);
  background: rgba(0, 26, 110, 0.1);
}

.copy-chip.is-copied {
  border-color: var(--bay, #0c6b6b);
  background: rgba(12, 107, 107, 0.12);
}

.copy-chip-hint {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.65;
}

.connect-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.connect-list > li {
  margin: 0 0 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 26, 110, 0.1);
}

.connect-list > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ——— 2026-10 review fixes ——— */
.home-gallery {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .home-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .rail-card {
    flex: none;
  }
}

/* The phone "This Sunday" bar waits until the visitor scrolls past the hero buttons */
@media (max-width: 768px) {
  .sunday-bar {
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
  }

  .sunday-bar.is-shown {
    transform: none;
  }
}

/* ——— Cemetery map (cemetery.php + assets/js/cemetery.js) ——— */
.cem {
  --cem-ground: #eef2e8;
  --cem-stone: #c9cec4;
  --cem-stone-edge: #a3aa9b;
  --cem-stone-ink: #2c3329;
  --cem-glow: rgba(184, 137, 45, 0.55);
}

.cem-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(239, 236, 228, 0.94);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--line);
}

.cem-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding-block: 0.75rem;
}

.cem-search {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
}

.cem-search input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chalk);
  color: var(--ink);
}

.cem-search input:focus-visible {
  outline: 2px solid var(--bay);
  outline-offset: 1px;
}

.cem-search svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--ink-soft);
  stroke-width: 2.2;
  fill: none;
}

.cem-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: 320px;
  overflow: auto;
}

.cem-suggest[hidden] {
  display: none;
}

.cem-suggest button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
}

.cem-suggest button:hover,
.cem-suggest button[aria-selected="true"] {
  background: var(--land-soft);
}

.cem-nm {
  font-weight: 500;
}

.cem-aka-s,
.cem-where,
.cem-none {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.cem-where {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cem-none {
  padding: 0.6rem 0.75rem;
}

.cem-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--chalk);
}

.cem-seg button {
  font: 700 0.78rem var(--font-display);
  letter-spacing: 0.04em;
  border: 0;
  background: none;
  color: var(--ink-soft);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.cem-seg button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.cem-zoom {
  display: inline-flex;
  gap: 4px;
}

.cem-zoom[hidden] {
  display: none;
}

.cem-zoom button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--chalk);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

.cem button:focus-visible {
  outline: 2px solid var(--bay);
  outline-offset: 2px;
}

.cem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  padding-top: 1.25rem;
  align-items: start;
}

.cem-main {
  min-width: 0;
}

.cem-grounds {
  border-radius: 18px;
  background: var(--cem-ground);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cem-grounds[hidden],
.cem-names[hidden] {
  display: none;
}

.cem-landmark {
  font: 700 0.7rem var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding-block: 0.6rem;
}

.cem-church {
  background: var(--navy);
  color: #fff;
}

.cem-road {
  color: var(--ink-soft);
  border-top: 2px dashed var(--cem-stone-edge);
}

.cem-side {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0.6rem 0.45rem;
  background: #dfe4d6;
  color: var(--ink);
}

.cem-mid {
  display: flex;
  min-width: 0;
}

.cem-field {
  flex: 1;
  min-width: 0;
  overflow: auto;
  max-height: 70vh;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.cem-grid {
  --cem-cell: 38px;
  display: grid;
  grid-template-columns: 30px repeat(var(--cem-cols), var(--cem-cell));
  grid-auto-rows: calc(var(--cem-cell) * 1.15);
  gap: 6px;
  padding: 14px 18px 18px 6px;
  width: max-content;
}

.cem-axis {
  font: 700 0.62rem var(--font-display);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.cem-plot {
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 45% 45% 4px 4px / 32% 32% 4px 4px;
  position: relative;
  font: 700 0.6rem var(--font-display);
  color: var(--cem-stone-ink);
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.3s, opacity 0.2s;
}

.cem-occupied {
  background: var(--cem-stone);
  box-shadow: inset 0 -3px 0 var(--cem-stone-edge);
}

.cem-has-bio::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.cem-unmarked {
  background: #dce1d5;
}

.cem-reserved {
  background: transparent;
  border: 1.5px solid var(--cem-stone-edge);
}

.cem-open {
  background: transparent;
  border: 1px dashed rgba(163, 170, 155, 0.55);
  cursor: default;
}

.cem-plot:not(.cem-open):hover {
  transform: translateY(-2px);
}

.cem-plot.is-dim {
  opacity: 0.3;
}

.cem-plot.is-active {
  box-shadow: 0 0 0 3px var(--gold), 0 0 22px 6px var(--cem-glow);
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .cem-plot.is-found {
    animation: cem-glow 2.4s ease-out 1;
  }
}

@keyframes cem-glow {
  0% { box-shadow: 0 0 0 3px var(--gold), 0 0 0 0 var(--cem-glow); }
  40% { box-shadow: 0 0 0 3px var(--gold), 0 0 34px 14px var(--cem-glow); }
  100% { box-shadow: 0 0 0 3px var(--gold), 0 0 22px 6px var(--cem-glow); }
}

@media (prefers-reduced-motion: reduce) {
  .cem-field {
    scroll-behavior: auto;
  }
}

.cem-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.cem-key {
  display: inline-block;
  width: 12px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 6px;
  border-radius: 45% 45% 2px 2px / 32% 32% 2px 2px;
}

.cem-key-stone { background: var(--cem-stone); box-shadow: inset 0 -2px 0 var(--cem-stone-edge); }
.cem-key-unmarked { background: #dce1d5; }
.cem-key-reserved { border: 1.5px solid var(--cem-stone-edge); }
.cem-key-open { border: 1px dashed var(--cem-stone-edge); }

.cem-names {
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  columns: 3 220px;
  column-gap: 2rem;
}

.cem-names h3 {
  font-size: 1.1rem;
  color: var(--bay);
  break-after: avoid;
  margin: 0.75rem 0 0.25rem;
}

.cem-names button {
  all: unset;
  display: block;
  cursor: pointer;
  padding: 0.15rem 0;
  break-inside: avoid;
}

.cem-names button:hover .cem-nm {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cem-names button:focus-visible {
  outline: 2px solid var(--bay);
}

.cem-yr {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  margin-left: 0.35rem;
}

.cem-card {
  position: sticky;
  top: calc(var(--header-h) + 84px);
  background: var(--chalk);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.cem-card h3 {
  font-size: 1.6rem;
  margin: 0;
}

.cem-loc,
.cem-label {
  font: 700 0.7rem var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bay);
}

.cem-label {
  color: var(--ink-soft);
}

.cem-aka {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: -0.5rem;
}

.cem-dates {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.cem-photo {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cem-bio,
.cem-muted {
  margin: 0;
}

.cem-muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cem-dir {
  background: var(--cem-ground);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
}

.cem-dir b {
  display: block;
  font: 700 0.68rem var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--land);
}

.cem-fam {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.cem-fam button {
  font: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}

.cem-fam button:hover {
  border-color: var(--bay);
}

.cem-close {
  display: none;
}

.cem-toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--navy-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 200;
  max-width: calc(100% - 32px);
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .cem-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cem-card {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    border-radius: 22px 22px 0 0;
    max-height: 50vh;
    overflow: auto;
    padding: 1.1rem 18px calc(1.4rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(105%);
    transition: transform 0.35s var(--ease);
  }

  .cem-card.is-open {
    transform: none;
  }

  .cem-card.cem-intro {
    display: none;
  }

  .cem-close {
    display: block;
    justify-self: end;
    border: 0;
    background: var(--cem-ground);
    color: var(--ink);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: -2.4rem;
  }

  .cem-field {
    max-height: 58vh;
  }
}

/* Cemetery map on its own page: start right under the header, no page hero */
.cem-page {
  padding-top: calc(var(--header-h) + 2rem);
}

.cem-page .section-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: 0.4em;
}

.cem-page .breadcrumb a,
.cem-page .breadcrumb {
  color: var(--ink-soft);
}

.cem-after {
  max-width: 60ch;
}

.cem-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.cem-cta > div {
  max-width: 52ch;
}
