/* ── Brand tokens: change these to re-theme the whole site ── */
:root {
  --navy: #13284b;
  --navy-deep: #0b1a33;
  --blue: #2f5aa8;
  --gold: #c9a24a;
  --gold-soft: #e8d39c;
  --cream: #f7f3ea;
  --stone: #e9e2d3;
  --ink: #1b2233;
  --muted: #5d6577;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(19 40 75 / 0.06), 0 8px 24px rgb(19 40 75 / 0.08);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4vw, 3rem); color: var(--navy); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.narrow { max-width: 620px; }
.on-dark { color: rgb(255 255 255 / .78); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .8em;
}
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--gold { color: var(--gold); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .55em 1.2em; font-size: .88rem; }
.btn--lg { padding: 1em 1.8em; font-size: 1rem; }
.btn--outline { background: transparent; color: var(--navy); border-color: rgb(19 40 75 / .25); }
.btn--outline:hover { border-color: var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: #d8b45d; box-shadow: 0 6px 18px rgb(201 162 74 / .35); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgb(255 255 255 / .4); }
.btn--ghost-light:hover { border-color: var(--white); }
/* Shown in place of a register button until a registration link is added */
.btn.is-disabled { background: var(--stone); color: var(--muted); cursor: default; }
.btn.is-disabled:hover { transform: none; box-shadow: none; }

.link-arrow {
  background: none; border: 5px; padding: 3px; color: var(--blue); font-weight: 700; font-size: .99rem;
  text-decoration: none; cursor: pointer;
}
.link-arrow:hover { text-decoration: underline; }

/* ── Mockup notice ── */
.notice {
  background: var(--gold-soft); color: var(--navy-deep); text-align: center;
  font-size: .82rem; font-weight: 600; padding: 6px 16px;
}

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0); transition: background .25s, box-shadow .25s; margin-bottom: -84px; }
.nav.is-scrolled, .nav.is-open { background: rgb(255 255 255 / .96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgb(19 40 75 / .08); }
.nav__inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); transition: color .25s; }
.nav.is-scrolled .brand, .nav.is-open .brand { color: var(--navy); }
.brand__mark { width: 40px; height: 40px; border-radius: 10px; background: var(--gold); display: grid; place-items: center; }
.brand__mark svg { width: 22px; fill: var(--navy-deep); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.brand__text small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 1.12rem; color: rgb(255 255 255 / .9); transition: color .2s; }
.nav.is-scrolled .nav__links a:not(.btn) { color: var(--ink); }
.nav__links a:not(.btn):hover, .nav__links a[aria-current] { color: var(--gold); }
.nav.is-scrolled .nav__links a[aria-current] { color: var(--blue); }
.brand__logo { height: 56px; width: auto; padding: 5px 7px; background: var(--white); border-radius: 12px; box-shadow: 0 1px 3px rgb(11 26 51 / .18); }
.nav__give { padding: .72em 1.75em; font-size: 1.1rem; }
.nav__social { display: flex; align-items: center; gap: 2px; margin-left: -18px; }
.nav__links .nav__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: color .2s, background .2s; }
.nav__links .nav__social a:hover { background: rgb(255 255 255 / .12); }
.nav.is-scrolled .nav__social a:hover, .nav.is-open .nav__social a:hover { background: rgb(19 40 75 / .07); }
.nav__social svg { width: 22px; height: 22px; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--white); transition: transform .2s, top .2s; }
.nav__toggle span:first-child { top: 15px; } .nav__toggle span:last-child { top: 23px; }
.nav.is-scrolled .nav__toggle span, .nav.is-open .nav__toggle span { background: var(--navy); }
.nav.is-open .nav__toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ── Hero ── */
.hero { position: relative; min-height: min(76vh, 720px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero__media {
  position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  transform: scale(1.04); animation: heroIn 1.6s ease-out forwards;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(11 26 51 / .55) 0%, rgb(11 26 51 / .1) 30%, rgb(11 26 51 / .55) 60%, rgb(11 26 51 / .92) 100%);
}
@keyframes heroIn { to { transform: scale(1); } }
.hero__content { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; padding: 140px 24px 72px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); font-weight: 600; margin-bottom: .3em; }
.hero h1 em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero__lede { font-size: 1.2rem; max-width: 640px; color: rgb(255 255 255 / .88); margin: 0; }

.next-mass {
  background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px; min-width: 220px;
}
.next-mass:empty { display: none; }
.next-mass__label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.next-mass strong { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }
.next-mass a { font-size: .85rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3aa86b; box-shadow: 0 0 0 0 rgb(58 168 107 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(58 168 107 / 0); } 100% { box-shadow: 0 0 0 0 rgb(58 168 107 / 0); } }

/* ── Sections ── */
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-deep); color: var(--white); }
.section--navy h2 { color: var(--white); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section__head--stack { display: block; }

/* ── Mass & Confession week ── */
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(4, auto); gap: 8px; }
.week__day {
  background: var(--cream); border-radius: 12px; padding: 12px 8px 14px; text-align: center;
  grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 7px; align-items: start;
  border: 1.5px solid transparent;
}
.week__day.is-today { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.week__day.is-empty { opacity: .5; }
.week__name { font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.week__name em { font-style: normal; font-size: .62rem; background: var(--gold); color: var(--navy-deep); border-radius: 99px; padding: 1px 7px; letter-spacing: .08em; }
.week__times { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.week__times span { display: block; }
/* Confession and Adoration rows under each day's Masses */
.week__extra { display: flex; flex-direction: column; align-items: center; gap: 0; font-size: .88rem; font-weight: 600; line-height: 1.4; color: var(--navy); }
.week__extra:not(:empty) { border-top: 1px solid rgb(19 40 75 / .12); padding-top: 7px; }
.week__extra small { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.week__extra .tag--sample { display: block; width: fit-content; margin: 3px auto 2px; font-style: normal; }
.week__day.is-today .week__extra { color: var(--white); border-color: rgb(255 255 255 / .2); }
.week__day.is-today .week__extra small { color: var(--gold-soft); }

/* ── Events ── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid rgb(19 40 75 / .15); background: var(--white); color: var(--ink); border-radius: 999px;
  padding: .45em 1.1em; font-weight: 600; font-size: .88rem; transition: all .15s;
}
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.feature {
  display: grid; grid-template-columns: 160px 1fr; border-radius: 20px; overflow: hidden; margin-bottom: 28px;
  background:
    linear-gradient(90deg, rgb(11 26 51 / .95) 0%, rgb(11 26 51 / .7) 60%, rgb(11 26 51 / .35) 100%),
    var(--feature-img, radial-gradient(120% 140% at 100% 0%, #24427a 0%, var(--navy-deep) 60%)) center / cover;
  color: var(--white); box-shadow: var(--shadow);
}
.feature__date {
  background: var(--gold); color: var(--navy-deep); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; gap: 6px;
}
.feature__date strong { font-family: var(--serif); font-size: 4rem; line-height: .9; letter-spacing: 0; }
.feature__body { padding: 36px 40px; }
.feature__body h3 { font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--white); }
.feature__body > p { color: rgb(255 255 255 / .8); max-width: 640px; }
.feature__meta { font-weight: 600; color: var(--gold-soft) !important; font-size: .95rem; }
.feature__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.event {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: var(--white); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--cat, var(--blue));
  transition: transform .2s; animation: fadeUp .35s ease both;
}
.event:hover { transform: translateY(-3px); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.cat-worship { --cat: #8a5a9e; } .cat-community { --cat: var(--gold); } .cat-formation { --cat: var(--blue); }
.cat-service { --cat: #3aa86b; } .cat-donors { --cat: var(--navy); }
.event__date { text-align: center; text-transform: uppercase; font-weight: 700; font-size: .75rem; letter-spacing: .12em; color: var(--muted); }
.event__date strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--navy); line-height: 1; letter-spacing: 0; }
.event__tags { display: flex; gap: 6px; margin-bottom: 6px; }
.tag { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cat); }
.tag--sample { color: var(--muted); background: var(--stone); padding: 0 6px; border-radius: 4px; }
.event h3 { font-size: 1.45rem; margin-bottom: .2em; color: var(--navy); }
.event__meta { font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: .6em; }
.event__desc { font-size: .95rem; margin-bottom: .8em; }
.empty { color: var(--muted); grid-column: 1 / -1; }
.event__actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── Gallery ── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; grid-auto-flow: dense; gap: 12px; }
.gallery__item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--stone); }
.gallery__item.is-wide { grid-column: span 2; }
.gallery__item.is-full { grid-column: 1 / -1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; text-align: left; color: var(--white); font-weight: 600; font-size: .92rem;
  background: linear-gradient(transparent, rgb(11 26 51 / .75)); opacity: 0; transform: translateY(6px); transition: all .3s;
}
.gallery__item:hover span, .gallery__item:focus-visible span { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(11 26 51 / .92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; }
.lightbox img { max-height: 80vh; border-radius: 10px; margin: 0 auto; }
.lightbox figcaption { color: var(--white); text-align: center; margin-top: 12px; font-weight: 600; }
.lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: var(--white); font-size: 2.4rem; line-height: 1; }

/* ── Stat bar ── */
.statbar { background: var(--navy-deep); color: var(--white); }
.stats { display: grid; grid-template-columns: var(--stats-cols, 1.4fr 1fr 1fr 1fr); border-top: 1px solid rgb(255 255 255 / .1); }
.stat { padding: 40px 28px; display: flex; flex-direction: column; gap: 10px; border-left: 1px solid rgb(255 255 255 / .08); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--gold); font-weight: 600; }
.stat span { color: rgb(255 255 255 / .75); font-size: .92rem; line-height: 1.5; }

/* ── Impact tiers ── */
/* Card rows size themselves to the number of cards (--cols is set by app.js). */
.tiers, .staff { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tiers > *, .staff > * { flex: 0 1 calc((100% - (var(--cols, 3) - 1) * 20px) / var(--cols, 3)); min-width: 0; }
.tiers > * { max-width: 420px; }
.staff > * { max-width: 300px; }
.tier { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.tier:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(19 40 75 / .06), 0 14px 32px rgb(19 40 75 / .14); }
/* The "Give $X monthly" link stretches over the whole card, so clicking anywhere on it opens the giving form. */
.tier { position: relative; cursor: pointer; }
.tier .link-arrow::after { content: ""; position: absolute; inset: 0; }
.tier:hover .link-arrow { text-decoration: underline; }
.tier:has(.link-arrow:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.tier__photo { aspect-ratio: 4 / 3; background: var(--stone); overflow: hidden; }
.tier__photo img { width: 100%; height: 100%; object-fit: cover; }
.tier__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tier__body p:not(.tier__amount) { color: var(--muted); font-size: .94rem; flex: 1; }
.tier__amount { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: .3em; }
.tier__amount small { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.tier h3 { font-size: 1.4rem; color: var(--navy); }

/* ── Testimony ── */
.testimony { background: var(--stone); padding: 88px 0; }
.testimony__inner { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.testimony img { width: 260px; height: 300px; object-fit: cover; object-position: center 25%; border-radius: 20px; box-shadow: var(--shadow); }
.testimony blockquote { margin: 0; }
.testimony p { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--navy); }
.testimony cite { font-style: normal; color: var(--muted); font-size: .95rem; }
.testimony cite strong { color: var(--navy); }

/* ── Gala ── */
.gala {
  position: relative; color: var(--white); padding: 120px 0; text-align: center;
  background: linear-gradient(rgb(11 26 51 / .55), rgb(11 26 51 / .8)), var(--gala-img, var(--navy-deep)) center / cover;
}
.gala__inner { max-width: 760px; }
.gala__title { font-size: clamp(3rem, 7vw, 5.2rem); font-style: italic; color: var(--gold-soft); font-weight: 500; }
.gala__when { font-size: 1.25rem; font-weight: 700; margin-bottom: .2em; }
.gala__venue { color: rgb(255 255 255 / .75); }
.gala__desc { color: rgb(255 255 255 / .85); font-size: 1.08rem; margin: 1.6em auto 2em; max-width: 620px; }
.gala__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gala__buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.gala__details { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .65); }

/* ── Instagram ── */
.ig-grid { display: grid; grid-template-columns: repeat(var(--ig-cols, 6), 1fr); gap: 10px; }
.ig-grid--large { --ig-cols: 3; }
.ig-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--stone); display: block; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ig-tile:hover img { transform: scale(1.06); }
.ig-tile__cap {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; color: var(--white); font-size: .82rem; font-weight: 600;
  background: linear-gradient(transparent 40%, rgb(11 26 51 / .8)); opacity: 0; transition: opacity .25s;
}
.ig-tile:hover .ig-tile__cap { opacity: 1; }
.ig-tile__sample { position: absolute; top: 8px; left: 8px; }

/* ── Events page header ── */
.page-head { background: radial-gradient(120% 160% at 100% 0%, #24427a 0%, var(--navy-deep) 55%); color: var(--white); padding: 150px 0 64px; }
.page-head__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); }
.page-head--center { text-align: center; min-height: 72vh; display: flex; align-items: center; }
.page-head--center .narrow { margin: 0 auto 2em; }
.thanks__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cal-actions { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-top: 12px; }
.cal-actions .link-arrow { margin-left: 6px; }
.cal-actions:empty { display: none; }

/* ── Students page ── */
.page-head__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--cream); border-radius: 18px; padding: 26px 24px; display: flex; flex-direction: column; counter-increment: step; }
.step::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold-soft);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 16px;
}
.step h3 { color: var(--navy); }
.step p { color: var(--muted); font-size: .95rem; flex: 1; }
.studies { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.study { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; border-left: 4px solid var(--gold); }
.study__when { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .5em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.study h3 { color: var(--navy); margin-bottom: .25em; }
.study__summary { color: var(--muted); font-size: .95rem; flex: 1; }
.study__meta { font-size: .88rem; font-weight: 600; color: var(--ink); }
.study__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--stone); padding-top: 14px; font-size: .88rem; color: var(--muted); }

/* ── Fundraising page ── */
.fund-overview { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 16px; max-width: 860px; margin-top: 36px; }
.fund-card {
  display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: 16px; text-decoration: none; color: var(--white);
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .16); transition: background .2s, border-color .2s;
}
.fund-card:hover { background: rgb(255 255 255 / .13); border-color: rgb(255 255 255 / .3); }
.fund-card__kind { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.fund-card strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.fund-card span:not(.fund-card__kind):not(.tag) { color: rgb(255 255 255 / .8); font-size: .95rem; }
.fund-card em { font-style: normal; font-weight: 700; font-size: .88rem; color: var(--gold-soft); margin-top: 8px; }
.fund__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.fund__inner--flip .fund__media { order: 2; }
.fund__media {
  aspect-ratio: 4 / 3; border-radius: 20px; box-shadow: var(--shadow); display: grid; place-items: center; text-align: center;
  background: var(--fund-img, linear-gradient(135deg, #2e6b4f 0%, var(--navy) 100%)) center / cover;
}
.fund__placeholder { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4vw, 3rem); color: var(--gold-soft); display: flex; flex-direction: column; gap: 6px; }
.fund__placeholder small { font-family: var(--sans); font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.fund__body .eyebrow { display: flex; align-items: center; gap: 8px; }
.fund__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 20px; padding: 16px 0; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.fund__facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fund__facts dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); line-height: 1.4; }
.fund__highlights { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; }
.fund__highlights li { display: flex; gap: 12px; }
.fund__highlights li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: .65em; }
.fund__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fund__details { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ── Registration form ── */
.register { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.register__intro { position: sticky; top: 110px; }
.form { background: var(--white); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.field em, .form__group legend em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .82rem; margin-left: 4px; }
.field input, .field select {
  font: inherit; font-weight: 500; color: var(--ink); background: var(--white); border: 1.5px solid rgb(19 40 75 / .18);
  border-radius: 12px; padding: .75em .9em; transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(47 90 168 / .14); }
.form .touched:invalid, .form.show-errors :invalid { border-color: #c2412d; }
.form__group { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.form__group legend { font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; padding: 0; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.check { position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: .65em .9em; border-radius: 12px; border: 1.5px solid rgb(19 40 75 / .14);
  font-size: .92rem; font-weight: 600; color: var(--ink); background: var(--white); transition: all .15s;
}
.check span::before {
  content: ""; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgb(19 40 75 / .3); flex-shrink: 0;
  display: grid; place-items: center; font-size: .75rem; color: var(--white); transition: all .15s;
}
.check:hover span { border-color: var(--navy); }
.check input:checked + span { border-color: var(--navy); background: rgb(19 40 75 / .05); }
.check input:checked + span::before { content: "✓"; background: var(--navy); border-color: var(--navy); }
.check input:focus-visible + span { box-shadow: 0 0 0 4px rgb(47 90 168 / .2); }
.form__trap { position: absolute; left: -9999px; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__foot .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form__status { margin: 0; font-size: .92rem; font-weight: 600; color: var(--muted); }
.form__status.is-error { color: #c2412d; }
.form__status a { color: inherit; }
.form--done { text-align: center; justify-items: center; padding: 56px 36px; gap: 10px; }
.form--done h3 { font-size: 2rem; color: var(--navy); margin: 6px 0 0; }
.form--done p { max-width: 420px; margin: 0 0 8px; }
.form__check { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }

/* ── CTA band ── */
.cta-band { background: var(--navy); color: var(--white); padding: 64px 0; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band p { margin: 0; }
.cta-band a:not(.btn) { color: var(--gold-soft); font-weight: 700; text-decoration: none; }

.events--compact .event__desc { display: none; }

/* ── About / Staff ── */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; margin-bottom: 80px; }
.about__story p:not(.eyebrow) { color: var(--muted); }
/* Vision, Values, Priorities from the parish poster */
.about__creed { display: grid; gap: 28px; padding-left: 40px; border-left: 3px solid var(--gold); }
.about__creed h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: .3em; }
.about__creed p { margin: 0; }
.about__creed ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.about__creed li { display: flex; gap: 12px; }
.about__creed li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: .65em; }
.staff__title { font-size: 2rem; color: var(--navy); text-align: center; margin-bottom: 28px; }
.person {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  background: var(--cream); border-radius: 18px; padding: 28px 18px 24px;
}
/* Headshots show the whole photo, centered, so close-up shots aren't cropped too tightly. */
.person img { width: 136px; height: 136px; border-radius: 50%; object-fit: contain; object-position: center; background: var(--stone); margin-bottom: 14px; }
.person strong { font-size: 1.1rem; color: var(--navy); }
.person small { color: var(--muted); font-size: .9rem; }
.person a { margin-top: 10px; color: var(--blue); font-weight: 600; font-size: .88rem; text-decoration: none; overflow-wrap: anywhere; }
.person a:hover { text-decoration: underline; }

/* ── Visit / map ── */
.visit { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.visit__address { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--navy); line-height: 1.25; }
.visit .btn { margin-top: 8px; }
.visit__map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 18px; box-shadow: var(--shadow); background: var(--stone); }

/* ── Footer ── */
.footer { background: var(--navy-deep); color: rgb(255 255 255 / .75); padding: 64px 0 28px; font-size: .95rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__inner > div:first-child { max-width: 440px; }
.footer__name { font-family: var(--serif); font-size: 1.6rem; color: var(--white); display: block; margin-bottom: .4em; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer__links { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.footer__base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .82rem; }

/* ── Monthly calendar ── */
.month__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.month__bar h2 { margin: 0; }
.month__nav { display: flex; align-items: center; gap: 8px; }
.month__arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgb(19 40 75 / .15); background: var(--white);
  color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
}
.month__arrow:hover:not(:disabled) { border-color: var(--navy); }
.month__arrow:disabled { opacity: .35; cursor: default; }
.month__filters { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.month__toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgb(19 40 75 / .15); background: var(--white);
  border-radius: 999px; padding: 7px 14px 7px 11px; font-size: .85rem; font-weight: 600; color: var(--ink); cursor: pointer; user-select: none;
}
.toggle[hidden] { display: none; }
.toggle:hover { border-color: var(--navy); }
.toggle:has(input:checked) { border-color: var(--cat); }
.toggle input {
  appearance: none; flex: none; margin: 0; width: 17px; height: 17px; border-radius: 5px; border: 2px solid var(--cat);
  display: grid; place-items: center; cursor: pointer;
}
.toggle input:checked { background: var(--cat); }
.toggle input:checked::after { content: ""; width: 4px; height: 8px; border: solid var(--white); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.toggle input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cat-schedule { --cat: #a8423a; } .cat-study { --cat: #1f8a85; }
.month__legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .8rem; font-weight: 600; color: var(--muted); }
.month__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--cat); margin-right: 6px; vertical-align: -1px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.month > .empty { padding: 24px; margin: 0; }
.month__head { padding: 10px 6px; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--stone); }
.month__day { min-height: 116px; min-width: 0; padding: 6px 6px 8px; border-right: 1px solid var(--stone); border-bottom: 1px solid var(--stone); display: flex; flex-direction: column; gap: 3px; }
.month__day:nth-child(7n) { border-right: 0; }
.month__day:nth-last-child(-n + 7) { border-bottom: 0; }
.month__day.is-out { background: #fbf9f4; }
.month__num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: .85rem; font-weight: 700; color: var(--navy); }
.month__day.is-out .month__num { color: rgb(93 101 119 / .45); }
.month__day.is-today .month__num { background: var(--navy); color: var(--white); }
.month__events { display: flex; flex-direction: column; gap: 3px; }
.month__event {
  display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--cat); border-radius: 5px;
  background: color-mix(in srgb, var(--cat) 13%, white); color: var(--ink); padding: 3px 6px;
  font: 600 .76rem/1.35 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.month__event b { font-weight: 700; color: var(--navy); }
.month__event:hover { background: color-mix(in srgb, var(--cat) 24%, white); }
.month__day.is-past .month__event { opacity: .55; }
.month__more { border: 0; background: none; padding: 1px 6px; text-align: left; font: 700 .74rem var(--sans); color: var(--blue); cursor: pointer; }
.month__note { margin: 16px 0 0; font-size: .92rem; color: var(--muted); }
.month__note a { color: var(--blue); font-weight: 700; text-decoration: none; }
.month-agenda { display: none; }
.month-agenda h3 { font-size: 1.6rem; color: var(--navy); margin: 36px 0 14px; }

.cal-dialog {
  border: 0; padding: 0; border-radius: var(--radius); width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px);
  background: var(--cream); color: var(--ink); box-shadow: 0 20px 60px rgb(11 26 51 / .35);
}
.cal-dialog::backdrop { background: rgb(11 26 51 / .55); }
.cal-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px 0; }
.cal-dialog__head h3 { margin: 0; font-size: 1.55rem; color: var(--navy); }
.cal-dialog__close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.cal-dialog__body { padding: 16px 20px 20px; display: grid; gap: 14px; }
.cal-dialog .event:hover { transform: none; }
.cal-dialog .study { border-left-color: var(--cat); --cat: #1f8a85; }
.day-schedule { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid #a8423a; padding: 18px 22px; }
.day-schedule p { margin: 0 0 .35em; font-size: .95rem; }
.day-schedule strong { display: inline-block; min-width: 96px; color: var(--navy); }
.day-schedule .link-arrow { display: inline-block; margin-top: 8px; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 8px 24px 20px; box-shadow: 0 12px 24px rgb(19 40 75 / .12); display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { color: var(--ink) !important; padding: 14px 4px; border-bottom: 1px solid var(--stone); }
  .nav__links .btn { margin-top: 14px; }
  .nav__social { margin: 14px 0 0; gap: 10px; }
  .nav__links .nav__social a { padding: 0; width: 44px; height: 44px; border: 1px solid var(--stone); }
}
@media (max-width: 960px) {
  .visit { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .register { grid-template-columns: 1fr; gap: 28px; }
  .fund__inner { grid-template-columns: 1fr; gap: 32px; }
  .fund__inner--flip .fund__media { order: 0; }
  .register__intro { position: static; }
  .about { grid-template-columns: 1fr; gap: 36px; margin-bottom: 56px; }
  .about__creed { padding-left: 24px; }
  .staff > * { flex-basis: calc((100% - 20px) / 2); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding: 28px 20px; }
  .tiers > * { flex-basis: calc((100% - 20px) / 2); }
  .ig-grid { --ig-cols: 3; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .container, .nav__inner, .hero__content { padding-left: 16px; padding-right: 16px; }
  .next-mass { width: 100%; }
  .page-head { padding: 120px 0 44px; }
  .testimony__inner { grid-template-columns: 1fr; gap: 28px; }
  .testimony img { width: 140px; height: 160px; }
  .gala { padding: 88px 0; }
  .tiers > * { flex-basis: 100%; }
  .ig-grid, .ig-grid--large { --ig-cols: 2; }
  .week { grid-template-columns: 1fr; grid-template-rows: none; gap: 6px; }
  .week__day { grid-row: auto; grid-template-rows: none; grid-template-columns: 64px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 9px 16px; text-align: left; }
  .week__name { grid-row: span 3; align-self: start; padding-top: 3px; flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .week__times { display: flex; flex-wrap: wrap; column-gap: 14px; }
  .week__extra { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
  .week__extra:empty { display: none; }
  .week__extra:not(:empty) { border-top: 0; padding-top: 0; }
  .week__extra small { min-width: 84px; }
  .week__extra .tag--sample { margin: 0 0 0 6px; display: inline-block; }
  .person { padding: 22px 12px 20px; }
  .person img { width: 104px; height: 104px; }
  .feature { grid-template-columns: 1fr; }
  .feature__date { flex-direction: row; align-items: baseline; gap: 10px; padding: 14px; }
  .feature__date strong { font-size: 2rem; }
  .feature__body { padding: 26px 22px; }
  .events, .studies, .steps { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .fund-overview { grid-template-columns: 1fr; }
  .fund__facts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery__item.is-wide { grid-column: span 2; }
  .gallery__item span { opacity: 1; transform: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:first-child { grid-column: 1 / -1; }
  .stat:nth-child(even) { border-left: 0; padding-left: 0; }
  .stat:nth-child(odd):not(:first-child) { border-left: 1px solid rgb(255 255 255 / .08); }
  .month__head { padding: 8px 2px; font-size: .62rem; letter-spacing: .06em; }
  .month__day { min-height: 56px; padding: 4px 2px 6px; align-items: center; gap: 2px; }
  .month__day[data-day] { cursor: pointer; }
  .month__num { width: 26px; height: 26px; font-size: .8rem; }
  .month__events { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px; }
  .month__event { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--cat); font-size: 0; }
  .month__more { display: none; }
  .month-agenda { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
