:root {
  --sea: #0e6274;
  --sea-deep: #083844;
  --sea-soft: #e7f3f5;
  --ink: #142328;
  --muted: #5c6b70;
  --red: #d0122d;
  --red-deep: #a50e24;
  --gold: #c6a15b;
  --cream: #f4efe6;
  --paper: #fbf8f3;
  --line: rgba(20, 35, 40, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(8, 56, 68, 0.12);
  --header: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0 0 0.8rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.9rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.section { padding: clamp(3.2rem, 6vw, 5.6rem) 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 42rem; }
.center-head { max-width: 40rem; margin-bottom: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }

.btn, .text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 620;
  letter-spacing: 0.01em;
}
.btn-red { background: var(--red); color: white; }
.btn-red:hover { background: var(--red-deep); }
.btn-sea { background: var(--sea); color: white; }
.btn-sea:hover { background: var(--sea-deep); }
.btn-ghost { background: transparent; color: white; border: 1px solid rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--sea); color: var(--sea); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.92rem; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--cream); }

.utility { background: var(--sea-deep); color: rgba(255,255,255,.86); font-size: 0.86rem; }
.utility-inner, .header-inner, .footer-base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.utility-inner { min-height: 38px; }
.utility a { color: white; text-decoration: none; }
.utility-meta { display: flex; align-items: center; gap: 1rem; }
.utility-theme { margin: 0; letter-spacing: 0.02em; }
.utility-give { background: var(--red); padding: 0.15rem 0.55rem; border-radius: 999px; font-weight: 650; }
#lagos-clock { font-variant-numeric: tabular-nums; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: var(--header); }
.brand { display: flex; gap: 0.75rem; align-items: center; text-decoration: none; }
.crest { width: 46px; height: 46px; color: var(--sea); display: grid; }
.crest svg { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 620; }
.brand-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; }
.primary-nav { display: flex; align-items: center; gap: 0.2rem; }
.primary-nav > a, .nav-drop > a {
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 520;
}
.primary-nav a[aria-current="page"], .primary-nav a:hover, .nav-drop > a:hover { background: var(--sea-soft); color: var(--sea-deep); }
.nav-drop { position: relative; }
.nav-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 210px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.4rem;
  box-shadow: var(--shadow);
  display: none;
}
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel { display: grid; }
.nav-panel a { text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 10px; }
.nav-panel a:hover { background: var(--cream); }
.header-tools { display: flex; align-items: center; gap: 0.25rem; }
.menu-toggle { display: none; }

.mobile-nav {
  position: fixed;
  inset: calc(38px + var(--header)) 0 0 0;
  background: var(--paper);
  z-index: 29;
  padding: 1rem 1.25rem 2rem;
  overflow: auto;
}
.mobile-nav nav { display: grid; gap: 0.25rem; }
.mobile-nav a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 2rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: min(78vh, 760px);
  background: var(--sea-deep);
  color: white;
}
.hero-media { position: relative; min-height: 320px; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center center; position: absolute; inset: 0; }
.hero-media img.face { object-fit: cover; object-position: center 28%; }
.media-frame img.face,
.card img.face,
.hero-photo img.face { object-position: center 22%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,56,68,.15), rgba(8,56,68,0) 30%);
}
.hero-copy {
  padding: clamp(1.8rem, 4vw, 4.2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.9rem;
}
.hero-kicker span {
  background: var(--red);
  display: inline-block;
  padding: 0.28rem 0.55rem 0.18rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.3rem);
  font-weight: 560;
  letter-spacing: -0.035em;
}
.hero-copy p { margin: 0; max-width: 38rem; color: rgba(255,255,255,.88); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.hero-ui { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.6rem; }
.dots { display: flex; gap: 0.4rem; }
.dots button, .round-nav {
  width: 11px; height: 11px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.35); cursor: pointer;
}
.dots button[aria-current="true"] { background: white; transform: scale(1.15); }
.round-nav {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35);
  color: white; background: transparent; display: grid; place-items: center; border-radius: 50%;
}
.round-nav svg { width: 18px; height: 18px; }

.verse-band { background: var(--cream); border-bottom: 1px solid var(--line); }
.verse-band blockquote { margin: 0; padding: 1.4rem 0; }
.verse-band p { font-family: var(--serif); font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.35; margin: 0; }
.verse-band cite { display: block; margin-top: 0.45rem; font-style: normal; color: var(--red); font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 650; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.6rem; }
.stat { padding-top: 0.8rem; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 2.5rem; font-weight: 560; color: var(--sea); line-height: 1; }
.stat span { color: var(--muted); font-size: 0.92rem; }

.pillar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.2rem 1.4rem;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}
a.pillar { display: block; cursor: pointer; }
a.pillar:hover { border-color: var(--sea); box-shadow: var(--shadow); }
.pillar em { font-family: var(--serif); font-style: normal; color: var(--gold); font-size: 1.7rem; display: block; }
.pillar h3 { margin: 0.3rem 0 0.45rem; font-size: 2rem; }
.pillar p { color: var(--muted); margin: 0; }

.sea-section { background: var(--sea); color: white; }
.sea-section .lede, .sea-section p { color: rgba(255,255,255,.86); }
.track-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 0.8rem; }
.track {
  position: relative;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.track::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,40,48,.05), rgba(8,40,48,.82)); }
.track div { padding: 1.1rem; }
.track strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 560; line-height: 1; }
.track span { display: block; margin-top: 0.35rem; color: rgba(255,255,255,.86); font-size: 0.92rem; }
.track-grid .track:first-child { min-height: 100%; }
.track-grid .track:first-child strong { font-size: 2.6rem; }

.finder {
  background: white;
  border-radius: 22px;
  padding: 0.45rem;
  display: flex;
  gap: 0.4rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.finder input, .field input, .field select, .field textarea, .footer-row input, .search-dialog input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.85rem 1rem;
  outline: none;
}
.field input, .field select, .field textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.field textarea { min-height: 140px; resize: vertical; }
.live-results { margin-top: 1rem; display: grid; gap: 0.45rem; }
.live-results a, .parish-row, .event-row, .result-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  text-decoration: none;
  padding: 0.85rem 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.live-results a:hover, .parish-row:hover, .event-row:hover, .result-link:hover { border-color: var(--sea); }
.meta { color: var(--muted); font-size: 0.9rem; }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  background: var(--sea-soft);
  color: var(--sea-deep);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.film { background: #14110e; border-radius: 22px; overflow: hidden; }
.film video { width: 100%; height: auto; display: block; max-height: 72vh; background: #14110e; }
.page-banner {
  position: relative;
  height: clamp(240px, 42vw, 460px);
  overflow: hidden;
  background: var(--sea-deep);
}
.page-banner img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  position: absolute;
  inset: -10% 0;
}
.banner-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.6rem 1.2rem 0.7rem;
  color: white;
  font-size: 0.86rem;
  background: linear-gradient(transparent, rgba(8, 30, 36, 0.72));
}
.photo-band { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.8rem; }
.photo-band figure { margin: 0; }
.photo-band .thumb { border-radius: 18px; overflow: hidden; aspect-ratio: 4/3; }
.photo-band .thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption { color: var(--muted); font-size: 0.86rem; margin-top: 0.4rem; }
.pillar .thumb { margin: -1.3rem -1.2rem 0.9rem; border-radius: 18px 18px 0 0; overflow: hidden; aspect-ratio: 16/9; }
.pillar .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl { grid-template-columns: 8.5rem 9.5rem 1fr; }
.tl-shot { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--cream); }
.tl-shot img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .hero-media img,
  .page-banner img,
  .media-frame img,
  .hero-photo img {
    animation: drift 36s ease-in-out infinite alternate;
  }
  .hero-media img.swap {
    animation: settle 1.5s ease, drift 36s ease-in-out 1.5s infinite alternate;
  }
  .reveal {
    opacity: 0;
    transform: translateY(28px);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 1.35s ease, transform 1.45s cubic-bezier(.16, .84, .28, 1);
  }
  .card,
  .pillar,
  .track,
  .btn,
  .thumb img,
  .media-frame img {
    transition: transform 1.1s ease, box-shadow 1.1s ease, background 0.7s ease, border-color 0.7s ease, color 0.7s ease;
  }
  .card:hover,
  a.pillar:hover {
    transform: translateY(-8px);
  }
  .card:hover .thumb img,
  a.pillar:hover .thumb img,
  .track:hover > img {
    transform: scale(1.06);
  }
  .page-banner.portrait img,
  .media-frame.portrait img,
  .thumb.portrait img,
  img.portrait,
  .card:hover .thumb.portrait img {
    animation: none;
    transform: none;
  }
}
@keyframes drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(0, -1.5%, 0); }
}
@keyframes settle {
  from { opacity: 0; }
  to { opacity: 1; }
}

.media-frame { border-radius: 22px; overflow: hidden; min-height: 320px; position: relative; background: var(--sea); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.quote-card { background: var(--sea-deep); color: white; border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.4rem); }
.quote-card p { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.2; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.8rem 0 1rem; }
.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--sea); color: white; border-color: var(--sea); }

.news-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.card .thumb { aspect-ratio: 16/10; background: var(--sea-soft); position: relative; }
.card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.card .pad { padding: 1rem 1rem 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.55rem; }
.card p { color: var(--muted); margin: 0; }

.event-list { display: grid; gap: 0.6rem; }
.event-date {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--red);
  min-width: 4.5rem;
}
.event-row { grid-template-columns: auto 1fr auto; align-items: center; }

.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; }
.calendar .dow, .calendar button, .calendar .blank {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
}
.calendar .dow { aspect-ratio: auto; text-align: center; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 0.3rem; }
.calendar button { background: white; border: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.calendar button.has { box-shadow: inset 0 -3px 0 var(--gold); }
.calendar button[aria-pressed="true"] { background: var(--sea); color: white; border-color: var(--sea); }
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.8rem; }
.cal-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.2rem; }

.page-hero { padding: 2.4rem 0 0.4rem; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.2rem); margin: 0.2rem 0 0.6rem; }
.article { width: min(760px, 100%); }
.article p { font-size: 1.12rem; }
.hero-photo { border-radius: 22px; overflow: hidden; margin: 1rem 0 1.4rem; aspect-ratio: 16/8; position: relative; background: var(--sea); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.parish-tools { display: grid; grid-template-columns: 1.4fr 0.8fr auto; gap: 0.6rem; margin-bottom: 0.6rem; }
.count-line { color: var(--muted); margin: 0.2rem 0 0.8rem; }
.unit-block { margin: 0 0 1.1rem; }
.unit-block h2 { font-size: 1.8rem; margin: 0 0 0.15rem; }
.accordion { width: 100%; text-align: left; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.accordion + .unit-body { display: none; padding: 0.7rem 0 0.2rem; }
.accordion[aria-expanded="true"] + .unit-body { display: grid; gap: 0.45rem; }

.prayer-today { background: white; border-radius: 22px; padding: 1.4rem; border: 1px solid var(--line); }
.prayer-list { display: grid; gap: 0.5rem; margin-top: 1rem; }
.prayer-list article { display: grid; grid-template-columns: auto 1fr auto; gap: 0.8rem; align-items: center; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.prayed { opacity: 0.55; }

.fund { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 1rem; text-align: left; cursor: pointer; width: 100%; }
.fund[aria-pressed="true"] { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(14,98,116,.15); }
.bar { height: 8px; background: var(--cream); border-radius: 99px; overflow: hidden; margin: 0.55rem 0; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--sea), var(--gold)); }
.amounts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.form-grid { display: grid; gap: 0.75rem; }
.form-card { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem; }

.site-footer { background: var(--sea-deep); color: rgba(255,255,255,.84); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr 1.2fr; gap: 1.5rem; }
.footer-mark { font-family: var(--serif); color: white; font-size: 2rem; margin: 0 0 0.4rem; }
.site-footer h2 { color: white; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.7rem; }
.site-footer a { display: block; color: white; text-decoration: none; margin: 0.25rem 0; }
.footer-address a { display: inline; }
.footer-row { display: flex; gap: 0.4rem; background: rgba(255,255,255,.08); border-radius: 999px; padding: 0.25rem; }
.footer-row input { color: white; }
.footer-row input::placeholder { color: rgba(255,255,255,.6); }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding: 0.9rem 0 1.1rem; font-size: 0.88rem; }
.footer-base p { margin: 0; }

.search-dialog {
  width: min(720px, calc(100% - 1.5rem));
  border: 0;
  border-radius: 20px;
  padding: 0.6rem;
  box-shadow: var(--shadow);
}
.search-dialog::backdrop { background: rgba(8, 40, 48, 0.46); }
.search-dialog form { display: flex; gap: 0.4rem; align-items: center; }
.search-dialog input { font-size: 1.15rem; }
.search-results { display: grid; gap: 0.4rem; max-height: 50vh; overflow: auto; padding: 0.2rem; }
.search-results h3 { margin: 0.6rem 0.3rem 0.2rem; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--ink);
  color: white;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  max-width: min(360px, calc(100% - 2rem));
  z-index: 50;
  box-shadow: var(--shadow);
}

.belief { padding: 1rem 0; border-top: 1px solid var(--line); }
.belief h3 { margin: 0 0 0.3rem; font-size: 1.8rem; }
.map-link { font-weight: 620; color: var(--sea-deep); }

.empty { padding: 1.2rem; background: white; border-radius: 16px; border: 1px dashed var(--line); color: var(--muted); }

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}
.counter {
  background: white;
  border-radius: 18px;
  padding: 1rem 1.05rem 0.9rem;
  border: 1px solid var(--line);
  min-height: 9.5rem;
}
.counter b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  color: var(--sea-deep);
}
.counter span {
  display: block;
  margin-top: 0.45rem;
  font-weight: 620;
}
.counter .meta { margin: 0.35rem 0 0; }

.guide-dialog form { display: grid; grid-template-columns: 1fr auto auto; gap: 0.45rem; align-items: center; }
.guide-dialog form > div { grid-column: 1 / -1; }
.guide-dialog h2 { margin: 0.2rem 0.2rem 0; font-size: 1.8rem; }
.guide-answer { padding: 0.2rem 0.45rem 0.6rem; }
.guide-answer p { margin: 0.45rem 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 980px) {
  .counters { grid-template-columns: 1fr; }
  .guide-dialog form { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .primary-nav, .header-give { display: none; }
  .menu-toggle { display: grid; }
  .hero, .grid-2, .split, .track-grid, .news-grid, .card-grid, .cal-layout, .footer-grid, .stats, .grid-3, .photo-band, .profile-sheet, .profile-layout { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 0.35rem; }
  .parish-tools { grid-template-columns: 1fr; }
  .utility-theme { display: none; }
  .track { min-height: 210px; }
  .hero-copy h1 { font-size: 3.3rem; }
  .event-row { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 0.25rem; }
}

.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.tl {
  display: grid;
  grid-template-columns: 8.5rem 9.5rem 1fr;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  padding: 0 0 1.2rem;
}
.tl-year {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--red);
  padding-top: 0.85rem;
}
@media (max-width: 980px) {
  .tl { grid-template-columns: 1fr; }
}
.card:hover { border-color: var(--sea); box-shadow: var(--shadow); }
.thumb .person-mark { position: absolute; inset: 0; min-height: 0; }
.person-mark {
  min-height: 160px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(198, 161, 91, 0.45), transparent 42%),
    linear-gradient(160deg, var(--sea), var(--sea-deep));
  color: white;
  font-family: var(--serif);
  font-size: 3rem;
  letter-spacing: 0.04em;
}
.person-mark span {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, #f7f1e4, transparent 36%),
    linear-gradient(160deg, #1f4d45, #0e2c28);
  color: white;
  border: 3px solid rgba(198, 161, 91, 0.85);
  box-shadow: 0 12px 28px rgba(14, 44, 40, 0.16);
  font-size: 2rem;
}
.card .thumb.portrait,
.card .thumb.avatar {
  aspect-ratio: 4 / 5;
  background: #f3eee6;
}
.page-banner.portrait {
  height: auto;
  padding: 1.25rem 1rem 1.5rem;
  background: #f3eee6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-banner.portrait .banner-credit {
  position: static;
  color: var(--muted);
  background: none;
  padding: 0.55rem 0 0;
  text-align: center;
}
.page-banner.portrait img,
.media-frame.portrait img,
.card .thumb.portrait img {
  object-fit: cover;
  object-position: center center;
  background: #f3eee6;
}
.page-banner.portrait img {
  position: relative;
  inset: auto;
  width: min(380px, 100%);
  height: auto;
  aspect-ratio: 4 / 5;
}
.card .thumb.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.media-frame.portrait,
.media-frame.avatar {
  width: min(380px, 100%);
  aspect-ratio: 4 / 5;
  min-height: 0;
  background: #f3eee6;
}
.media-frame.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.profile-mast { background: var(--paper); }
.profile-cover {
  position: relative;
  height: clamp(320px, 48vw, 540px);
  overflow: hidden;
  background: var(--sea-deep);
}
.profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.profile-cover .banner-credit {
  left: auto;
  right: 0;
  max-width: min(34rem, 78%);
  text-align: right;
}
.profile-cover-empty {
  background:
    radial-gradient(circle at 20% 20%, rgba(198, 161, 91, 0.35), transparent 42%),
    linear-gradient(160deg, var(--sea), var(--sea-deep));
}
.profile-sheet {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.4rem 2rem;
  align-items: start;
  margin-top: -118px;
  position: relative;
  z-index: 1;
}
.profile-id { padding-top: 132px; }
.profile-face {
  width: 240px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  background: #f3eee6;
  border: 4px solid var(--paper);
  box-shadow: 0 16px 40px rgba(8, 56, 68, 0.22);
}
.profile-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.profile-face .person-mark { min-height: 0; height: 100%; }
.profile-id h1 {
  margin: 0.1rem 0 0.35rem;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}
.profile-role {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--sea-deep);
}
.profile-section { padding-top: 1.6rem; }
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
}
.profile-side {
  position: sticky;
  top: calc(var(--header) + 1rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.15rem 1.25rem;
}
.profile-side h2,
.profile-main h2 { font-size: 1.7rem; margin: 0 0 0.7rem; }
.profile-quote {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.profile-quote p:first-child {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.profile-more .thumb.portrait,
.profile-more .thumb.avatar { aspect-ratio: 4 / 5; }
@media (max-width: 980px) {
  .profile-sheet,
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sheet { margin-top: -72px; }
  .profile-face { width: min(220px, 68vw); }
  .profile-id { padding-top: 0.2rem; }
  .profile-side { position: static; }
  .profile-cover .banner-credit {
    top: 0.4rem;
    bottom: auto;
    left: 0;
    right: 0;
    max-width: none;
    text-align: left;
    background: linear-gradient(rgba(8, 30, 36, 0.72), transparent);
    padding: 0.45rem 0.9rem 1.6rem;
  }
}
.journey {
  list-style: none;
  margin: 1.2rem 0 1.4rem;
  padding: 0;
}
.journey li {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(14, 44, 40, 0.12);
}
.journey span {
  font-family: var(--serif);
  color: var(--red);
}
@media (max-width: 640px) {
  .journey li { grid-template-columns: 1fr; gap: 0.15rem; }
}
.thumb.avatar .person-mark,
.media-frame.avatar .person-mark {
  background: transparent;
  min-height: 0;
}
.thumb.avatar .person-mark span,
.media-frame.avatar .person-mark span {
  width: min(11rem, 72%);
  height: min(11rem, 72%);
}
.figure { margin: 0; }
.figure figcaption, .credit {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.35rem;
}
.achieve { margin: 0.2rem 0 0; padding-left: 1.1rem; }
.achieve li { margin: 0.25rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
