/* ==========================================================================
   Chaldean Catholic Eparchy of St. Peter the Apostle - site stylesheet
   Visual system after the Ishtar Gate of Babylon (glazed brick, c. 575 BC):
     • lapis glaze #1B3F8F (deep #102C63 / #0B1F45), yellow glaze #E0A93B, white glaze #F6EEDC
     • Cinzel, set large and light, for display; Alegreya Sans for text and labels (mixed case)
     • motifs: friezes of Chaldean crosses, stepped battlements, glazed-brick courses, round-arched openings
   ========================================================================== */

/* Self-hosted web fonts (SIL Open Font License 1.1, see assets/fonts/LICENSE.txt). */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/cinzel-var-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/cinzel-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-400-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-400-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/alegreya-sans-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/alegreya-sans-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/alegreya-sans-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/alegreya-sans-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/alegreya-sans-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Glazed brick of the Ishtar Gate: lapis blues, yellow glaze, white glaze */
  --lapis-950: #081733;
  --lapis-900: #0B1F45;
  --lapis-800: #102C63;
  --lapis: #1B3F8F;
  --lapis-600: #2453A8;
  --gold: #E0A93B;
  --gold-light: #F2CF7E;
  --gold-deep: #B98322;
  --ochre: #76500C;          /* gold-toned text on light grounds (6.7:1 on cream, 5.8:1 on sand) */
  --clay: #A9472A;           /* fired-brick accent (white text 5.8:1) */
  --ivory: #F6EEDC;
  --cream: #FBF7EE;
  --sand: #F1E7D2;
  --ink: #1A1F2E;
  --ink-2: #39404F;
  --muted: #525865;          /* quiet text on light grounds (6.7:1 on cream, 5.8:1 on sand) */
  --line: #E2D6BC;
  --display: 'Cinzel', 'Trajan Pro', 'Optima', Georgia, 'Times New Roman', serif;
  --sans: 'Alegreya Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 3px;
  --brick: url("../img/motif/brick.svg");
  --brick-light: url("../img/motif/brick-light.svg?v=2");   /* white glaze: faint courses of fine joints on sand panels. Ochre and
     muted text keep 5:1 over a joint: the upright joints stop short of the courses, so no pixel is darkened twice.
     Change ?v= whenever the tile changes, so browsers fetch the new one at once. */
  --cross-mark-gold: url("../img/motif/cross-mark-gold.svg");
  /* Frieze: whole gold crosses spaced evenly (`space`) over an unbroken band of gold rules on lapis */
  --frieze-h: 46px;
  --frieze: url("../img/motif/frieze-cross.svg") center / 64px 46px space no-repeat, url("../img/motif/frieze-band.svg") left top / 8px 46px repeat-x;
  --cross-mark: url("../img/motif/cross-mark.svg");
  --crenel: url("../img/motif/crenel.svg");
  /* Battlements drawn over a photograph: lapis merlons edged in gold (a background, not a mask) */
  --crown: url("../img/motif/crenel-gold.svg");
  --container: 1280px;
  --gutter: 20px;
  --header-h: 96px;
  /* Vertical rhythm: between page sections, and between blocks inside one */
  --space-section: clamp(64px, 8.5vw, 128px);
  --space-block: clamp(48px, 6vw, 88px);
  --shadow: 0 12px 30px rgba(11, 31, 69, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Anchor targets land below the sticky header: its full height (96px here and ≤1180px,
   76px ≤767px) plus breathing room, which still clears it after it shrinks once stuck. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 116px; }
body {
  margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--ink);
  background: var(--cream); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lapis); font-weight: 500; text-decoration: none; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--ochre); }
:is(h1, h2, h3, h4) a { font-weight: inherit; }
/* Links inside running text are underlined: lapis alone is too close to the ink (1.7:1). */
main :where(p, dd, .contact-info li) > a:not([class]) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(27, 63, 143, .45); }
main :where(p, dd, .contact-info li) > a:not([class]):hover { text-decoration-color: currentColor; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.12; }
h1, h2 { font-family: var(--display); font-weight: 700; }
h1, h2, h3, .page-banner__subtitle, .announce span, .site-footer__bottom p { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* Lapis ring on light grounds; the dark panels below switch it to gold. */
:focus-visible { outline: 3px solid var(--lapis); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--lapis-900); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }
.i { width: 1em; height: 1em; flex: none; }
.i--xs { width: .75em; height: .75em; opacity: .7; margin-left: .35em; }
[hidden] { display: none !important; }
/* Controls that only work with JavaScript are hidden when it is unavailable. */
html:not(.js) .hero__thumbs, html:not(.js) .hero__pause, html:not(.js) .chips,
html:not(.js) .flyout__toggle, html:not(.js) .clergy-card .btn[data-clergy-open], html:not(.js) .gallery__nav,
html:not(.js) .to-top, html:not(.js) .find-bar__form { display: none !important; }
/* …and their plain-HTML stand-ins are shown instead. */
.find-bar__nojs { display: none; }
/* align-items: flex-end keeps "All Mass Times" beside the end of the open list, where focus
   arrives after its last link (not hidden under the sticky header above). */
html:not(.js) .find-bar__nojs { display: flex; justify-content: center; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mailto-fallback { display: none; }
html:not(.js) form[data-mailto] { display: none !important; }
html:not(.js) .mailto-fallback { display: grid; justify-items: start; gap: 12px; margin: 0; }
html.js .clergy-card__media[data-clergy-open] { cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-section); }
.section--tight-top { padding-top: 40px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Ishtar Gate motifs ----------
   Battlements: stepped Babylonian merlons rising from the top edge of the dark lapis walls (the
   parish finder, the app band, "Explore the Eparchy", a church's photo strip and the footer). They are a
   CSS mask, so each takes its wall's own colour from --wall; over a photograph (banners, the home
   finder) they are gold-edged lapis (--crown). Friezes: a band of gold Chaldean crosses between gold rules from
   the Processional Way, along the foot of banners and the edges of lapis panels. Glazed brick
   (--brick) covers the lapis walls and panels; photographs sit in round-arched, gold-framed openings.
   Battlements repeat with `round`, so every wall shows whole merlons from edge to edge. */
.find-bar::before, .app-band::before, .explore::before, .site-footer::before, .gallery::before {
  content: ''; position: absolute; left: 0; right: 0; top: -27px; height: 28px; z-index: 1; pointer-events: none;
  background: var(--wall, var(--lapis-800));
  -webkit-mask: var(--crenel) left bottom / 60px 28px round no-repeat; mask: var(--crenel) left bottom / 60px 28px round no-repeat;
}
/* Over the hero photograph, lapis merlons alone vanish into the dark scrim: there they are edged in gold. */
.hero + .find-bar::before { -webkit-mask: none; mask: none; background: var(--crown) left bottom / 60px 28px round no-repeat; }

/* ---------- Buttons: glazed tiles (square corners, a darker lower edge like a brick's thickness) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: 1.8px; text-transform: uppercase;
  color: #fff; background: var(--lapis); border: 0; border-radius: var(--radius); padding: 15px 22px 14px;
  text-decoration: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22);
  transition: background-color .25s var(--ease), color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .i { width: 1.05em; height: 1.05em; }
.btn:hover, .btn:focus-visible { color: var(--lapis-900); background: var(--gold); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--lapis); }
.btn--gold { background: var(--gold); color: var(--lapis-900); }
.btn--gold:hover, .btn--gold:focus-visible { background: var(--lapis); color: #fff; }
/* On lapis walls and over photographs a lapis hover would vanish into the ground: lighten the glaze instead. */
:is(.find-bar, .app-band, .explore, .email-card, .clergy-card, .church-card, .app-panel, .site-footer, .flyout, .hero, .page-banner) .btn--gold:is(:hover, :focus-visible) { background: var(--gold-light); color: var(--lapis-900); }
.btn--clay { background: var(--clay); font-size: 14px; padding: 13px 20px 12px; }
.btn--dark { background: var(--lapis-900); }
.btn--outline { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
.btn--outline:hover { background: #fff; color: var(--lapis-900); }
.btn--outline-dark { background: transparent; color: var(--lapis-900); box-shadow: inset 0 0 0 2px var(--lapis-900); }
.btn--outline-dark:hover { background: var(--lapis-900); color: #fff; }
.btn--sm { font-size: 13px; padding: 12px 20px 11px; }
.btn--lg { font-size: 17px; padding: 15px 32px 14px; }
.btn--xl { font-size: 19px; padding: 15px 22px 14px; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
/* Secondary actions: the words, then a thin line that lengthens on hover */
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; color: var(--lapis-900); }
.link-arrow::after { content: ''; flex: none; width: 32px; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.link-arrow:hover { color: var(--lapis); }
.link-arrow:hover::after, a:hover > .link-arrow::after { width: 48px; }
.link-row { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 32px; }
.home-more { margin: 36px 0 0; }

/* ==========================================================================
   Header: cream, with a gold and lapis rule along its foot
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: var(--cream);
  border-bottom: 3px solid var(--gold); box-shadow: 0 3px 0 var(--lapis-800); transition: box-shadow .3s;
}
.site-header.is-stuck { box-shadow: 0 3px 0 var(--lapis-800), 0 10px 26px rgba(11, 31, 69, .16); }
.site-header__inner {
  display: flex; align-items: center; gap: 24px; min-height: var(--header-h);
  padding: 14px 30px; max-width: 1600px; margin: 0 auto; transition: min-height .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-stuck .site-header__inner { min-height: 76px; padding-block: 8px; }
.logo { flex: none; display: block; width: 340px; transition: width .35s var(--ease); }
.logo img { width: 100%; height: auto; }
.site-header.is-stuck .logo { width: 280px; }
.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; justify-content: center; column-gap: clamp(16px, 1.7vw, 30px); }
.main-nav a {
  display: block; padding: 10px 0; color: var(--lapis-900); font-weight: 700; font-size: 15.5px; letter-spacing: 1.6px; text-transform: uppercase; position: relative; white-space: nowrap;
}
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover { color: var(--lapis); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a[aria-current="page"], .main-nav a.is-active { color: var(--lapis); }
.header-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.header-donate { color: var(--lapis-900); font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 15px 4px; }
.header-donate:hover { color: var(--ochre); }
/* Menu: a glazed lapis tile */
.more-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--lapis); color: #fff; border: 0; border-radius: var(--radius); padding: 14px 14px 13px;
  font-weight: 700; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; line-height: 1; transition: background .25s, color .25s;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22);
}
.more-btn .i { width: 18px; height: 18px; stroke-width: 2.4; }
.more-btn:hover, .more-btn:focus-visible { background: var(--gold); color: var(--lapis-900); }

/* Announcement bar: a band of yellow glaze under the header's gold and lapis rule, ending in the arrow line */
.announce {
  display: block; background: var(--gold) var(--brick); color: var(--lapis-900); text-align: center; font-weight: 700; font-size: 19px; line-height: 1.4;
  letter-spacing: .01em; padding: 11px 16px; transition: background-color .25s;
}
.announce:hover { color: var(--lapis-900); background-color: var(--gold-light); }
.announce span { display: inline-block; }
.announce span::after { content: ''; display: inline-block; width: 28px; height: 1.5px; margin-left: 12px; vertical-align: middle; background: var(--lapis-900); transition: width .3s var(--ease); }
.announce:hover span::after { width: 40px; }
/* A course of yellow glazed brick always closes the header; the announcement, when there is one, is that course with words on it */
.site-header + main::before { content: ''; display: block; height: 20px; background: var(--gold) var(--brick); box-shadow: inset 0 -3px 0 var(--lapis-800); }

/* ==========================================================================
   Flyout menu ("Menu") - off-canvas lapis panel from the right
   ========================================================================== */
/* Closed: invisible and out of the tab order. Opens via .is-open (site.js) or :target (no JavaScript). */
.flyout { position: fixed; inset: 0; z-index: 1500; visibility: hidden; transition: visibility 0s linear .4s; }
.flyout.is-open, .flyout:target { visibility: visible; transition: none; }
.flyout__overlay { position: absolute; inset: 0; display: block; background: rgba(8, 23, 51, .6); opacity: 0; transition: opacity .35s; }
.flyout__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--lapis-900) var(--brick); color: #fff;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; border-left: 4px solid var(--gold);
  transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -20px 0 40px rgba(8, 23, 51, .35);
}
.flyout.is-open .flyout__overlay, .flyout:target .flyout__overlay { opacity: 1; }
.flyout.is-open .flyout__panel, .flyout:target .flyout__panel { transform: none; }
.flyout__head { display: flex; justify-content: flex-end; padding: 8px 10px; min-height: 50px; }
.flyout__close { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; }
.flyout__close .i { width: 28px; height: 28px; stroke-width: 2.5; }
.flyout__close:hover, .flyout__close:focus-visible { color: var(--gold); }
.flyout__list, .flyout__sub { list-style: none; margin: 0; padding: 0; }
.flyout__item { border-bottom: 1px solid rgba(242, 207, 126, .22); }
.flyout__item > a, .flyout__row > a { display: block; flex: 1; color: #fff; font-weight: 500; font-size: 18px; letter-spacing: .01em; padding: 12px 25px; }
.flyout__item > a:hover, .flyout__row > a:hover { color: var(--gold-light); background: rgba(255, 255, 255, .06); }
.flyout__item.is-current > a, .flyout__item.is-current > .flyout__row { background: var(--lapis); box-shadow: inset 4px 0 0 var(--gold); }
.flyout__row { display: flex; align-items: stretch; }
.flyout__toggle { background: none; border: 0; color: #fff; width: 56px; display: grid; place-items: center; }
.flyout__toggle .i { width: 22px; height: 22px; stroke-width: 2.5; transition: transform .3s var(--ease); }
.flyout__toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
.flyout__sub { background: rgba(0, 0, 0, .28); padding: 6px 0; }
.flyout__sub a { display: flex; align-items: center; color: rgba(255, 255, 255, .9); font-weight: 500; font-size: 16px; padding: 9px 25px 9px 40px; }
.flyout__sub a:hover { color: var(--gold-light); }
.flyout__foot { position: relative; margin-top: auto; padding: calc(var(--frieze-h) + 24px) 25px 30px; }
.flyout__foot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--frieze-h); background: var(--frieze); }
.flyout__contact { margin: 16px 0 0; display: grid; gap: 8px; }
.flyout__contact a { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .88); font-weight: 500; font-size: 15px; }
.flyout__contact .i { color: var(--gold); }
body.has-flyout { overflow: hidden; }

/* ==========================================================================
   Home - hero slider
   ========================================================================== */
.hero { position: relative; height: clamp(480px, 62vh, 600px); background: var(--lapis-900); overflow: hidden; color: #fff; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__img { transform: scale(1); }
.hero__slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 23, 51, .45) 0%, rgba(8, 23, 51, 0) 26%),
    linear-gradient(90deg, rgba(8, 23, 51, .86) 0%, rgba(11, 31, 69, .7) 45%, rgba(11, 31, 69, .25) 100%);
}
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-right: var(--gutter); padding-bottom: 28px; }
.hero__title { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 3.9vw, 56px); line-height: 1.07; letter-spacing: .01em; margin: 0 0 34px; max-width: 1040px; text-shadow: 0 2px 18px rgba(8, 23, 51, .45); }
/* Small captions over photographs get a dark halo as well as the scrim (≥4.5:1 under every glyph). */
.page-banner__subtitle { text-shadow: 0 1px 2px rgba(8, 23, 51, .95), 0 0 14px rgba(8, 23, 51, .75); }
.hero__slide.is-active .hero__title, .hero__slide.is-active .btn { animation: heroIn .9s var(--ease) both; }
.hero__slide.is-active .hero__title { animation-delay: .12s; }
.hero__slide.is-active .btn { animation-delay: .26s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
/* Slide dots (26px tap targets) and the pause button (WCAG 2.2.2: auto-advancing content can be paused).
   The battlements of the finder below rise 28px into the hero, so the controls sit above them.
   A dark halo edges each cross on any photograph (3:1 or more). It is drawn on the row: the mask on
   each cross would clip a shadow of its own. */
.hero__thumbs {
  position: absolute; z-index: 3; right: 64px; bottom: 40px; display: flex; gap: 2px;
  filter: drop-shadow(0 0 1px rgba(8, 23, 51, .95)) drop-shadow(0 0 2px rgba(8, 23, 51, .7));
}
.hero__thumb { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; }
.hero__thumb::before {
  content: ''; width: 12px; height: 16px; background: rgba(255, 255, 255, .92); transition: background .2s, transform .2s;
  -webkit-mask: var(--cross-mark) center / contain no-repeat; mask: var(--cross-mark) center / contain no-repeat;
}
.hero__thumb.is-active::before { background: var(--gold); transform: scale(1.3); }
.hero__pause { position: absolute; z-index: 3; right: 24px; bottom: 37px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(8, 23, 51, .35); display: grid; place-items: center; }
.hero__pause-icon { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero__pause.is-paused .hero__pause-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; margin-left: 3px; }

/* ---------- Find bar: a lapis wall with battlements, closed by a frieze of crosses ---------- */
.find-bar { position: relative; z-index: 4; background: var(--lapis-800) var(--brick); color: #fff; padding: 34px 0 calc(34px + var(--frieze-h)); text-align: center; }
.find-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--frieze-h); background: var(--frieze); }
.find-bar__title { font-family: var(--display); font-weight: 600; font-size: 36px; letter-spacing: 1.5px; line-height: 1.15; margin: 0 0 20px; }
.find-bar__form { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; }
.find-bar select {
  width: 420px; max-width: 100%; height: 49px; border: 0; border-radius: var(--radius); background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F45' stroke-width='2.5'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
  color: var(--ink); font-size: 19px; padding: 0 40px 0 15px; appearance: none; -webkit-appearance: none;
}
.find-bar select:invalid { color: var(--muted); }
.btn--find { font-size: 17px; padding: 16px 22px 15px; min-width: 160px; }
.find-bar--inline { margin: 40px 0 10px; }

/* ---------- Featured (an arched, gold-framed window in a sand wall + overlapping card) ---------- */
.featured { margin-top: var(--space-section); }
.featured__box { background: var(--sand) var(--brick-light); display: flex; align-items: center; padding: 0; min-height: 400px; border-radius: var(--radius); }
.featured__media { flex: 0 0 calc(50% - 26px); align-self: stretch; overflow: hidden; margin: 34px 0 34px 26px; border-radius: 50% 50% 2px 2px / 30% 30% 2px 2px; box-shadow: 0 0 0 3px var(--gold); }
.featured__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .8s var(--ease); }
.featured__box:hover .featured__media img { transform: scale(1.04); }
.featured__card { flex: 1; background: var(--cream); margin: 30px 30px 30px -30px; padding: 32px; position: relative; border-top: 4px solid var(--lapis); box-shadow: 0 6px 30px rgba(11, 31, 69, .08); }
.featured__title { font-family: var(--display); font-weight: 700; font-size: 31px; letter-spacing: .5px; line-height: 1.15; color: var(--lapis-900); margin: 0 0 28px; }
.featured__times { margin: 0 0 24px; display: grid; gap: 8px; }
.featured__times div { display: grid; grid-template-columns: 175px 1fr; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.featured__times div:last-child { border-bottom: 0; }
.featured__times dt { font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ochre); padding-top: 2px; }
.featured__times dd { margin: 0; font-size: 17px; }

/* ---------- Home news: three cards under one heading ---------- */
.news-home { margin-top: var(--space-section); }

/* ---------- Upcoming events (month groups, glazed-brick rows, an Ishtar Gate in yellow glaze) ---------- */
.upcoming { padding: var(--space-section) 0; }
.upcoming--page { padding: 40px 0 0; }
/* The gate stands on the right end of the heading's gold rule (a smaller one on the events page). */
@media (min-width: 768px) {
  .upcoming .display-heading::before, .upcoming--page .section-head::before {
    content: ''; position: absolute; right: 0; bottom: 2px; width: 150px; height: 120px; pointer-events: none;
    background: url("../img/motif/gate-watermark.svg") right bottom / contain no-repeat;
  }
  .upcoming--page .section-head::before { width: 112px; height: 90px; }
}
.event-month { margin-bottom: 28px; }
.event-month__label { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: .5px; margin: 0 0 10px; color: var(--ochre); }
.event-month__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.event-row__link {
  display: grid; grid-template-columns: 140px 64px 1fr 40px; align-items: start; gap: 0 10px;
  background: var(--lapis) var(--brick); color: #fff; border-radius: var(--radius); padding: 20px; border-left: 5px solid var(--gold);
  transition: background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.event-row__link:hover { color: #fff; background-color: var(--lapis-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 31, 69, .25); }
.event-row__thumb { width: 140px; height: 140px; border-radius: 50% 50% var(--radius) var(--radius) / 20% 20% var(--radius) var(--radius); overflow: hidden; display: block; background: var(--lapis-800); box-shadow: 0 0 0 2px var(--gold); }
.event-row__thumb img, .event-row__thumb .ph-art { width: 100%; height: 100%; object-fit: cover; }
.event-row__date { display: grid; justify-items: start; padding-left: 10px; color: var(--gold-light); }
.event-row__day { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; }
.event-row__mon { font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.event-row__text { display: grid; gap: 8px; padding-top: 2px; }
.event-row__title { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; }
.event-row__sub { font-weight: 500; font-size: 17px; opacity: .95; }
.event-row__loc { font-weight: 500; font-size: 16px; opacity: .88; margin-top: -4px; }
.event-row__go { align-self: center; justify-self: end; color: var(--gold-light); }
.event-row__go .i { width: 26px; height: 26px; }
.event-list__empty { margin: 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; font-weight: 700; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-2); }

/* ---------- App band (a lapis wall between two friezes of crosses; the words left, the badges right) ---------- */
.app-band {
  position: relative; color: #fff; padding: 80px 0;
  background: url("../img/motif/frieze-cross.svg") center top / 64px 46px space no-repeat, url("../img/motif/frieze-band.svg") left top / 8px 46px repeat-x, var(--brick) var(--lapis);
}
.app-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--frieze-h); background: var(--frieze); }
.app-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.app-band__title { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.15; letter-spacing: .01em; color: var(--gold-light); margin: 0 0 6px; }
.app-band__text { margin: 0; font-size: 19px; color: var(--ivory); }
.store-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.app-band .store-badges { justify-content: flex-start; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 10px; padding: 9px 18px 9px 14px;
  border: 1px solid rgba(255, 255, 255, .35); font-weight: 700; font-size: 19px; line-height: 1.05; transition: transform .25s var(--ease), background .25s;
}
.store-badge:hover { color: #fff; transform: translateY(-2px); background: #111; }
.store-badge .i { width: 28px; height: 28px; }
.store-badge span { display: grid; text-align: left; }
.store-badge small { font-size: 11px; font-weight: 500; letter-spacing: .3px; }

/* ---------- Explore the Eparchy (a battlemented lapis wall with six arched gateways) ---------- */
/* The battlements rise into a strip of cream, clear of the app band's frieze above; the bottom margin
   (it collapses with the footer's 28px) gives the footer's battlements the same strip of sky below. */
.explore { position: relative; background: var(--lapis-800) var(--brick); color: #fff; margin-top: 64px; margin-bottom: 64px; padding: 72px 0 80px; }
.explore .display-heading { color: #fff; }
.explore .display-heading::after { background-image: var(--cross-mark-gold); }
.explore__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.explore-tile {
  position: relative; display: block; aspect-ratio: 460 / 335; overflow: hidden; color: #fff; isolation: isolate; background: var(--lapis-900);
  border-radius: 50% 50% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); box-shadow: 0 0 0 2px var(--gold);
}
.explore-tile__img, .explore-tile__collage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.explore-tile__collage { display: grid; grid-template-columns: repeat(3, 1fr); }
.explore-tile__collage img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.explore-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 23, 51, 0) 25%, rgba(8, 23, 51, .5) 60%, rgba(8, 23, 51, .86) 100%); transition: background .4s; }
.explore-tile:hover { color: #fff; }
.explore-tile:hover .explore-tile__img, .explore-tile:hover .explore-tile__collage { transform: scale(1.07); }
.explore-tile:hover::before { background: linear-gradient(180deg, rgba(27, 63, 143, .2) 25%, rgba(8, 23, 51, .6) 60%, rgba(8, 23, 51, .9) 100%); }
.explore-tile__label {
  position: absolute; left: 18px; right: 18px; bottom: 22px; display: block; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.15; letter-spacing: .02em; color: #fff;
  text-shadow: 0 1px 2px rgba(8, 23, 51, .9), 0 0 14px rgba(8, 23, 51, .7); text-wrap: balance;
}

/* ==========================================================================
   Interior page building blocks
   ========================================================================== */
.page-banner { position: relative; min-height: 380px; display: flex; align-items: center; color: #fff; isolation: isolate; overflow: hidden; background: var(--lapis-900); padding-bottom: var(--frieze-h); }
.page-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: bannerZoom 9s ease-out both; }
@keyframes bannerZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
/* The scrim, and a row of gold-edged battlements standing on the frieze, so every page opens on the city wall */
.page-banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--banner-crown, var(--crown)) left bottom calc(var(--frieze-h) - 1px) / 60px 28px round no-repeat,
    linear-gradient(90deg, rgba(8, 23, 51, .86) 0%, rgba(11, 31, 69, .62) 55%, rgba(11, 31, 69, .35) 100%);
}
/* …except where the parish finder's own battlements rise just below the banner (Mass Times): one wall, not two in a row */
.page-banner:has(~ .find-bar) { --banner-crown: none; }
/* The frieze of crosses along the foot of every banner */
.page-banner::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--frieze-h); background: var(--frieze); }
.page-banner--church { min-height: 480px; }
.page-banner--church .page-banner__title { font-size: 56px; }
.page-banner--article { min-height: 330px; }
.page-banner__inner { padding-block: 56px; }
.page-banner__title { font-family: var(--display); font-weight: 700; font-size: 64px; line-height: 1.06; letter-spacing: .01em; margin: 0; max-width: 1040px; text-shadow: 0 2px 20px rgba(8, 23, 51, .4); animation: heroIn .9s var(--ease) both; }
.page-banner--article .page-banner__title { font-size: 46px; }
.page-banner__subtitle { font-family: var(--sans); font-weight: 500; font-size: 20px; letter-spacing: .02em; margin: 16px 0 0; color: var(--ivory); animation: heroIn .9s .1s var(--ease) both; }
.page-banner__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; animation: heroIn .9s .2s var(--ease) both; }

.breadcrumb { padding-block: 24px 4px; font-size: 15px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { display: inline-flex; gap: 6px; font-weight: 400; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; color: var(--gold-deep); font-weight: 400; }
.breadcrumb a { color: var(--lapis); font-weight: 500; }
.breadcrumb a:hover { color: var(--ochre); }

.h-xl { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1.1; letter-spacing: .3px; margin: 0 0 24px; color: var(--lapis-900); }
.h-md { font-family: var(--display); font-weight: 700; font-size: 29px; line-height: 1.2; margin: 0 0 12px; color: var(--lapis-900); }
.content-block { margin-bottom: 46px; }
.content-block > p { font-size: 19px; line-height: 1.6; }
.content-block .btn-row { margin-top: 18px; }
.lead { font-size: 21px; line-height: 1.55; color: var(--ink-2); }
.lead-center { text-align: center; font-size: 20px; line-height: 1.6; max-width: 62ch; margin: 0 auto 56px; color: var(--ink-2); }
/* A gold rule broken by a Chaldean cross at its centre: the rule stops short of the cross on each side
   and lines up with its arms, which cross 37.5% of the way down */
.gold-rule {
  border: 0; height: 36px; margin: var(--space-block) 0;
  background: var(--cross-mark) center / 27px 36px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left 0 top 12.5px / calc(50% - 34px) 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 0 top 12.5px / calc(50% - 34px) 2px no-repeat;
}
.note { position: relative; padding-left: 28px; margin-top: 30px; font-size: 17px; color: var(--ink-2); }
.note > .i { position: absolute; left: 0; top: 4px; color: var(--lapis); }
.notice { position: relative; background: #FBEFD0; border-left: 4px solid var(--gold); padding: 14px 18px 14px 46px; font-weight: 700; border-radius: 0 var(--radius) var(--radius) 0; }
.notice > .i { position: absolute; left: 18px; top: 18px; color: var(--ochre); }

/* Section heading: a Chaldean cross, then a gold rule along the heading's foot. The rule starts a clear
   gap after the cross and lines up with its arms (they cross 37.5% of the way down: 30 of its 80 units). */
.section-head {
  --mark-h: 36px; --mark-w: calc(var(--mark-h) * .75); --mark-gap: 16px;
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; margin: 0 0 44px;
  background: linear-gradient(var(--gold), var(--gold)) left calc(var(--mark-w) + var(--mark-gap)) bottom / calc(100% - var(--mark-w) - var(--mark-gap)) 2px no-repeat;
}
.section-head::after { content: ''; position: absolute; left: 0; bottom: calc(1px - var(--mark-h) * .625); width: var(--mark-w); height: var(--mark-h); background: var(--cross-mark) center / contain no-repeat; }
.section-head__title { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1.05; letter-spacing: .01em; margin: 0; color: var(--lapis-900); }
.section-head--spaced { margin-top: var(--space-block); }
/* The home page's large headings carry the same gold rule and hanging cross. */
.display-heading {
  --mark-h: 36px; --mark-w: calc(var(--mark-h) * .75); --mark-gap: 16px;
  position: relative; font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1.05; letter-spacing: .01em; color: var(--lapis-900);
  padding-bottom: 28px; margin: 0 0 44px;
  background: linear-gradient(var(--gold), var(--gold)) left calc(var(--mark-w) + var(--mark-gap)) bottom / calc(100% - var(--mark-w) - var(--mark-gap)) 2px no-repeat;
}
.display-heading::after { content: ''; position: absolute; left: 0; bottom: calc(1px - var(--mark-h) * .625); width: var(--mark-w); height: var(--mark-h); background: var(--cross-mark) center / contain no-repeat; }
/* Interior headings carry the same gold rule and hanging Chaldean cross; so do the section headings that a
   reading page's own Markdown text brings (the Privacy Policy, a news post), set like .h-md. The CMS text
   on the Seminary and Monastery pages already sits under crossed section heads, so it is left out. */
.h-xl, .h-md, .article.prose > h2, .article--post .prose > h2 {
  --mark-h: 36px; --mark-w: calc(var(--mark-h) * .75); --mark-gap: 16px;
  position: relative; padding-bottom: 28px; margin-bottom: 40px;
  background: linear-gradient(var(--gold), var(--gold)) left calc(var(--mark-w) + var(--mark-gap)) bottom / calc(100% - var(--mark-w) - var(--mark-gap)) 2px no-repeat;
}
/* The smaller cross hangs 18px below the rule; the margin leaves it 16px clear of what follows */
.h-md, .article.prose > h2, .article--post .prose > h2 { --mark-h: 30px; --mark-gap: 12px; padding-bottom: 22px; margin-bottom: 34px; }
.h-xl::after, .h-md::after, .article.prose > h2::after, .article--post .prose > h2::after { content: ''; position: absolute; left: 0; bottom: calc(1px - var(--mark-h) * .625); width: var(--mark-w); height: var(--mark-h); background: var(--cross-mark) center / contain no-repeat; }
.h-xl.center {
  background: linear-gradient(var(--gold), var(--gold)) left 0 bottom 0 / calc(50% - 34px) 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 0 bottom 0 / calc(50% - 34px) 2px no-repeat;
}
.h-xl.center::after { left: calc(50% - var(--mark-w) / 2); }
/* A crossed heading needs no crossed divider right above it: the divider collapses to one section gap */
.gold-rule:has(+ :is(.h-xl, .sac-group, .split, .report)) { height: 0; margin: 0 0 var(--space-section); background: none; }

.article { max-width: 760px; }
.article > p { font-size: 19px; line-height: 1.65; }
.prose p, .content-block > p, .faq__a p { max-width: 60ch; }
/* "Our Eparchy": set like the supplied text - even paragraphs with indented first lines */
.eparchy-text p { font-size: 19px; line-height: 1.7; text-indent: 1.75em; margin: 0 0 .5em; }
.prose { font-size: 19px; line-height: 1.65; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 30px; margin: 1.6em 0 .6em; color: var(--lapis-900); }
.prose p { margin: 0 0 1.1em; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose .lead { font-size: 22px; }
.article--post { position: relative; }
.article__emblem { float: right; width: 131px; margin: 0 0 20px 30px; }
.article__back a { display: inline-flex; align-items: center; gap: .4em; font-size: 18px; }

/* ---------- FAQ accordion ---------- */
.faq { border: 1px solid var(--line); margin-top: 18px; border-radius: var(--radius); background: var(--cream); }
.faq__item + .faq__item { border-top: 1px solid var(--line); }
.faq__q { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; color: var(--lapis); font-weight: 700; font-size: 19px; line-height: 1.35; transition: background .2s; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--sand); }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; margin-top: 5px; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--gold-deep); transition: transform .25s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item[open] .faq__q { border-bottom: 1px solid var(--line); }
.faq__a { padding: 18px 20px 6px; font-size: 19px; line-height: 1.6; }
.faq__a p { margin: 0 0 14px; }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 48px; }
.chip {
  border: 2px solid var(--lapis); background: var(--cream); color: var(--lapis); border-radius: var(--radius); padding: 9px 18px;
  font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; transition: all .2s;
}
.chip:hover { background: #E7EDF8; }
.chip.is-active { background: var(--lapis); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.filter-empty { text-align: center; color: var(--muted); }
.is-filtered-out { display: none !important; }

/* ---------- Church cards: a glazed lapis panel under an arched, gold-framed photo ---------- */
.church-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.church-card {
  background: var(--lapis) var(--brick); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: #fff; padding-bottom: 1.6em;
  box-shadow: inset 0 0 0 1px rgba(224, 169, 59, .35); transition: transform .35s var(--ease), box-shadow .35s;
}
.church-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(224, 169, 59, .6), 0 16px 34px rgba(11, 31, 69, .3); }
.church-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; margin: 14px 14px 1em; border-radius: 50% 50% 2px 2px / 38% 38% 2px 2px; background: var(--lapis-800); box-shadow: 0 0 0 2px var(--gold); }
.church-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .35s, transform .9s var(--ease); }
.church-card__media--logo { display: grid; place-items: center; background: #000; }
.church-card__media--logo img { width: 78%; height: auto; object-fit: contain; opacity: 1; }
.church-card:hover .church-card__media img { opacity: 1; transform: scale(1.04); }
.church-card__body { text-align: center; padding: 0 18px; display: flex; flex-direction: column; align-items: center; flex: 1; }
.church-card__title { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0 0 10px; }
.church-card__title a { color: #fff; }
.church-card__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.church-card__meta { font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 1.5px; line-height: 1.35; margin: 0; color: var(--gold-light); }

/* placeholder art (no photo yet): lapis glaze with the cross */
.ph-art { width: 100%; height: 100%; display: grid; place-items: center; background: var(--brick), radial-gradient(circle at 30% 20%, var(--lapis-600) 0%, var(--lapis-800) 75%); }
div.ph-art > img { width: 26%; max-width: 90px; height: auto; object-fit: contain; opacity: .9; }

/* ---------- Church detail ---------- */
.church-detail { padding-block: 40px; }
.church-detail__intro { font-size: 21px; max-width: 980px; color: var(--ink-2); margin: 0 0 30px; }
.church-events { max-width: 880px; margin: 0 0 var(--space-block); }
.church-events__box .event-row__link { grid-template-columns: 100px 56px 1fr 30px; padding: 14px; }
.church-events__box .event-row__thumb { width: 100px; height: 100px; }
.church-events__box .event-row__title { font-size: 20px; }
.no-events { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0; font-weight: 700; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-2); }
/* The schedules on a white-glaze panel with a lapis course along its top, like the Mass Times cards */
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; padding: 30px 34px 4px; background: var(--sand) var(--brick-light); border-top: 5px solid var(--lapis); border-radius: var(--radius); }
.schedule { margin-bottom: 30px; }
.schedule__title { font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: 2px; color: var(--lapis); margin: 0 0 8px; }
.schedule__list { margin: 0; display: grid; gap: 4px; font-size: 19px; }
.schedule__list div { display: block; }
.schedule__list dt { display: inline; font-weight: 700; }
.schedule__list dd { display: inline; margin: 0 0 0 .25em; }
.schedule-empty { position: relative; font-size: 19px; background: var(--sand) var(--brick-light); padding: 20px 20px 20px 52px; border-radius: var(--radius); border-left: 4px solid var(--lapis); }
.schedule-empty > .i { position: absolute; left: 20px; top: 25px; color: var(--lapis); }
/* The section after the schedule panel (a church's programs) stands a block apart from it */
.church-programs { margin-top: var(--space-block); }

/* A church's photos: a battlemented lapis wall pierced by arched, gold-framed openings. The strip lines
   up with the page's text (.container); a short strip stands at its centre, a full one from its start.
   The track's 8px padding (cancelled by its negative margin) keeps the gold focus ring inside the scroller;
   its scroll-padding makes the first photo snap to the text's edge, not the scroller's. */
.gallery { position: relative; margin: 64px 0 24px; padding: 34px 0; background: var(--lapis-800) var(--brick); }
.gallery__inner { position: relative; }
.gallery__track { list-style: none; margin: 0 -8px; padding: 8px; scroll-padding-inline: 8px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 50px) / 6); justify-content: safe center; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gallery__track::-webkit-scrollbar { display: none; }
/* Without JavaScript there are no arrows: show a scrollbar so every photo can be reached. */
html:not(.js) .gallery__track { scrollbar-width: thin; scrollbar-color: var(--gold) var(--lapis-900); padding-bottom: 12px; }
html:not(.js) .gallery__track::-webkit-scrollbar { display: block; height: 8px; }
html:not(.js) .gallery__track::-webkit-scrollbar-track { background: var(--lapis-900); border-radius: 4px; }
html:not(.js) .gallery__track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.gallery__item { scroll-snap-align: start; }
.gallery__item a { display: block; aspect-ratio: 228 / 280; border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); overflow: hidden; background: var(--lapis-900); box-shadow: 0 0 0 2px var(--gold); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item a:hover img { transform: scale(1.07); }
.gallery__nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 2px solid var(--gold); background: var(--cream); color: var(--lapis); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s, visibility 0s linear .25s; }
.gallery__nav .i { width: 26px; height: 26px; stroke-width: 3; }
.gallery__nav--prev { left: 18px; } .gallery__nav--next { right: 18px; }
.gallery.is-scrollable .gallery__nav { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-bottom: var(--space-block); }
.two-col--top { align-items: start; }
.contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 19px; }
.contact-info strong { font-weight: 700; }
/* Long email addresses and links wrap instead of widening the page on small phones. */
.contact-info li, .contact-info li > span { min-width: 0; overflow-wrap: anywhere; }
.contact-info--lg { gap: 14px; }
.contact-info--lg li { display: flex; gap: 12px; align-items: flex-start; }
.contact-info--lg .i { color: var(--ochre); width: 22px; height: 22px; margin-top: 3px; }

.email-card { position: relative; background: var(--lapis-800) var(--brick); color: #fff; border-radius: var(--radius); padding: 35px 34px 40px; border-top: 5px solid var(--gold); }
.email-card__title { font-family: var(--display); font-weight: 700; font-size: 28px; margin: 0 0 8px; line-height: 1.15; }
.email-card__lead { font-size: 19px; margin: 0 0 22px; }
.email-form { display: grid; gap: 16px; }
.email-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.email-form input, .email-form select, .email-form textarea, .signup-form input {
  width: 100%; border: 0; border-radius: var(--radius); background: var(--cream); color: var(--ink); padding: 12px 18px; font-size: 17px; outline-offset: 2px;
}
.email-form select { appearance: none; -webkit-appearance: none; padding: 14px 36px 14px 18px; text-overflow: ellipsis; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6472' stroke-width='2'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
/* Until a reason is chosen the select reads like its placeholders ("Name *", "Email *"); long options end in an ellipsis. */
.email-form select:invalid { color: var(--muted); }
.email-form select option { color: var(--ink); }
.email-form textarea { resize: vertical; min-height: 180px; }
.email-form .btn { justify-self: start; font-size: 17px; padding: 15px 22px 14px; }
.form-status { margin: 0; font-weight: 700; min-height: 1.2em; }
.form-status.is-error { color: var(--gold-light); }

.priest-list { list-style: none; margin: 0; padding: 0 15px; display: grid; gap: 30px; }
.priest-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 30px; }
.priest-row__photo { display: block; width: 150px; height: 150px; border-radius: 75px 75px var(--radius) var(--radius); overflow: hidden; background: var(--sand); box-shadow: 0 0 0 2px var(--gold); }
.priest-row__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.priest-row__photo:hover img { transform: scale(1.06); }
.priest-row__name { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: 1.5px; margin: 0 0 4px; line-height: 1.15; }
.priest-row__name a { color: var(--lapis-900); }
.priest-row__name a:hover { color: var(--lapis); }
.priest-row__role { font-size: 19px; margin: 0; }

.location { padding: 0 2px; }
.location__name { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 1.5px; line-height: 1.3; margin: 0 0 10px; color: var(--lapis-900); }
.location__addr { font-size: 19px; margin: 0 0 8px; }
.location__dir { display: inline-flex; align-items: center; gap: 8px; color: var(--lapis); font-size: 18px; }
.location__dir .i { color: var(--ochre); }
.location__dir:hover { color: var(--ochre); }

/* ---------- Mass times directory ---------- */
.mt-region { margin-bottom: var(--space-block); }
.mt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mt-card { background: var(--sand) var(--brick-light); border-radius: var(--radius); padding: 26px 28px 20px; display: flex; flex-direction: column; border-top: 5px solid var(--lapis); scroll-margin-top: 12px; }
/* :target only without JavaScript: site.js moves .is-highlighted, so one card is highlighted at a time.
   A gold top and a gold-deep ring (3.1:1 on cream), like the clergy :target card. */
html:not(.js) .mt-card:target, .mt-card.is-highlighted { border-top-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-deep); }
.mt-card__head { display: grid; gap: 4px; margin-bottom: 14px; }
.mt-card__name { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 0; line-height: 1.2; }
.mt-card__name a { color: var(--lapis-900); }
.mt-card__name a:hover { color: var(--lapis); }
.mt-card__city { font-family: var(--display); font-weight: 600; letter-spacing: 2.5px; font-size: 15px; margin: 0; color: var(--ochre); }
.mt-card__list { margin: 0 0 10px; display: grid; gap: 6px; }
.mt-card__list div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 17px; }
.mt-card__list dt { font-weight: 700; }
.mt-card__list dd { margin: 0; }
.mt-card__none { color: var(--muted); font-style: italic; }
.mt-card__extra { font-size: 16px; margin: 0 0 6px; }
/* A thin gold rule (the beige --line would read as one more brick course on the white-glaze panel) */
.mt-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--gold); display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }
.mt-card__foot a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Shepherds: the Pope, the Patriarch and the Eparchy's bishop, above the clergy list ---------- */
.shepherds { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 56px; margin: 0 0 12px; }
.shepherd { text-align: center; scroll-margin-top: 12px; }
.shepherd__media { aspect-ratio: 4 / 5; overflow: hidden; margin: 0 0 24px; border-radius: 50% 50% 2px 2px / 40% 40% 2px 2px; background: var(--lapis-800); box-shadow: 0 0 0 3px var(--gold); }
.shepherd__media > img { width: 100%; height: 100%; object-fit: cover; }
.shepherd__name { font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1.2; margin: 0 0 8px; color: var(--lapis-900); }
.shepherd__style { display: block; font-family: var(--sans); font-weight: 500; font-size: 17px; color: var(--ink-2); margin: 0 0 4px; }
.shepherd__role { font-size: 18px; line-height: 1.4; color: var(--ink-2); margin: 0 auto; max-width: 24ch; }
.shepherd__note { font-size: 17px; line-height: 1.45; color: var(--muted); margin: 10px auto 0; max-width: 26ch; }
.shepherds__credit { text-align: center; font-size: 14px; color: var(--muted); margin: 28px 0 0; }

/* ---------- Clergy: portraits under a round arch, like the gate's own opening ---------- */
.clergy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.clergy-card {
  background: var(--lapis) var(--brick); border-radius: var(--radius); overflow: hidden; color: #fff; display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(224, 169, 59, .35); transition: transform .35s var(--ease), box-shadow .35s; scroll-margin-top: 12px;
}
.clergy-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(224, 169, 59, .6), 0 16px 34px rgba(11, 31, 69, .3); }
/* A deep link to a priest: a gold-deep ring around the card (3.1:1 on cream) */
.clergy-card:target { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.clergy-card__media { display: block; aspect-ratio: 4 / 5; padding: 0; border: 0; overflow: hidden; margin: 12px 12px 0; border-radius: 50% 50% 2px 2px / 40% 40% 2px 2px; background: var(--lapis-800); box-shadow: 0 0 0 2px var(--gold); }
.clergy-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.clergy-card:hover .clergy-card__media img { transform: scale(1.04); }
.clergy-card__body { padding: 18px 16px 1.6em; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.clergy-card__name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; margin: 0 0 8px; }
.clergy-card__ordained { margin: 0 0 14px; font-size: 16px; color: var(--ivory); }
.clergy-card .btn { margin-top: auto; }

.clergy-dialog { border: 0; padding: 0; width: min(800px, 94vw); max-height: 92vh; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(8, 23, 51, .5); background: var(--cream); color: var(--ink); }
.clergy-dialog::backdrop { background: rgba(8, 23, 51, .72); }
.clergy-dialog[open] { animation: dialogIn .35s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.clergy-dialog__grid { display: grid; grid-template-columns: 5fr 6fr; }
.clergy-dialog__photo { background: var(--lapis) var(--brick); min-height: 100%; padding: 18px; }
.clergy-dialog__photo > img, .clergy-dialog__photo > .ph-art { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; border-radius: 50% 50% 2px 2px / 40% 40% 2px 2px; box-shadow: 0 0 0 2px var(--gold); }
.clergy-dialog__body { padding: 44px 40px; overflow-y: auto; max-height: 92vh; display: flex; flex-direction: column; justify-content: center; }
.clergy-dialog__name { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.1; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 2px solid var(--gold); color: var(--lapis-900); }
.clergy-dialog__facts { margin: 0 0 24px; display: grid; gap: 10px; }
.clergy-dialog__facts div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.clergy-dialog__facts dt { font-weight: 700; color: var(--ochre); text-transform: uppercase; font-size: 14px; letter-spacing: 1.2px; padding-top: 3px; }
.clergy-dialog__facts dd { margin: 0; font-size: 18px; }
.clergy-dialog__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--lapis-900); display: grid; place-items: center; box-shadow: var(--shadow); }
.clergy-dialog__close:hover { background: var(--lapis); color: #fff; }

/* ---------- About ---------- */
.vicariates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.vicariate { position: relative; background: var(--lapis) var(--brick); color: #fff; border-radius: var(--radius); padding: 30px 22px 28px; border-top: 5px solid var(--gold); text-align: center; }
.vicariate__mark { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 50%; color: var(--lapis-900); background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 207, 126, .35); }
.vicariate h3 { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 10px 0 4px; }
.vicariate p { margin: 0; font-size: 18px; }

/* ---------- News cards (listing) ---------- */
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 30px; }
.news-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 18px; background: var(--sand); border-radius: var(--radius); border-bottom: 4px solid var(--gold); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; margin: 0 0 6px; }
.news-card__title a { color: var(--lapis-900); }
.news-card__title a:hover { color: var(--lapis); }
.news-card__date { font-size: 14px; color: var(--ochre); font-weight: 700; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 1px; }
.news-card__excerpt { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.news-card__more { font-size: 16px; }

/* ---------- Events detail ---------- */
.event-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 50px; align-items: start; }
.event-flyer { margin: 26px 0; max-width: 640px; }
.event-flyer img { border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.event-card { position: sticky; top: 112px; background: var(--sand) var(--brick-light); border-top: 6px solid var(--lapis); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.event-card__title { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 1px; margin: 0 0 4px; color: var(--lapis-900); }
.event-card__facts { margin: 0 0 6px; display: grid; gap: 14px; }
.event-card__facts dt { display: flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1.4px; color: var(--ochre); }
.event-card__facts dt .i { color: var(--lapis); width: 18px; height: 18px; }
.event-card__facts dd { margin: 3px 0 0 26px; font-size: 18px; line-height: 1.45; }
.event-card__note { font-size: 15px; color: var(--ink-2); margin: 0; }
.reps { background: var(--sand) var(--brick-light); border-radius: var(--radius); padding: 26px 28px; margin: 26px 0; }
.reps__list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.reps__list li { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(185, 131, 34, .45); font-size: 17px; }
.reps__parish { font-weight: 700; }
.past-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.past-list a { display: flex; justify-content: space-between; gap: 16px; background: var(--sand) var(--brick-light); padding: 16px 20px; border-radius: var(--radius); color: var(--lapis-900); border-left: 4px solid var(--lapis); }
.past-list a:hover { color: var(--lapis); }
.past-list__date { color: var(--muted); font-weight: 700; }

/* ---------- Sacraments ---------- */
.sac-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 var(--space-block); }
.sac-quick__item { display: flex; align-items: center; gap: 14px; background: var(--lapis) var(--brick); color: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); transition: background-color .25s, transform .25s var(--ease); }
.sac-quick__item:nth-child(2) { background-color: var(--lapis-800); }
.sac-quick__item:nth-child(3) { background-color: var(--clay); }
.sac-quick__item:nth-child(4) { background-color: var(--lapis-900); }
.sac-quick__item:hover { color: var(--lapis-900); background-color: var(--gold); transform: translateY(-2px); }
.sac-quick__item .i { width: 36px; height: 36px; stroke-width: 1.6; }
.sac-quick__item span { display: grid; line-height: 1.2; }
.sac-quick__item strong { font-weight: 700; text-transform: uppercase; font-size: 16px; letter-spacing: .8px; }
.sac-quick__item small { font-size: 15px; opacity: .95; }
.sac-group { margin-bottom: 10px; }
.sac-group__intro { font-size: 19px; max-width: 64ch; color: var(--ink-2); }
.sac-grid { display: grid; gap: 20px; margin-top: 26px; }
.sac-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sac-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sac-card { position: relative; background: var(--sand) var(--brick-light); border-radius: var(--radius); padding: 34px 30px 28px; overflow: hidden; border-top: 4px solid var(--lapis); transition: transform .3s var(--ease), box-shadow .3s; }
.sac-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sac-card__icon { width: 74px; height: 74px; border-radius: 50%; background: var(--lapis) var(--brick); color: var(--gold-light); display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 0 0 3px var(--gold); }
.sac-card__icon .i { width: 40px; height: 40px; stroke-width: 1.5; }
.sac-card__name { font-family: var(--display); font-weight: 700; font-size: 26px; margin: 0 0 10px; color: var(--lapis-900); }
.sac-card p { font-size: 18px; }
.sac-card__cta { font-size: 17px; }

.num-list { padding-left: 1.3em; font-size: 19px; display: grid; gap: 8px; }
.num-list ::marker { color: var(--ochre); font-weight: 700; }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.policy { background: var(--sand) var(--brick-light); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--gold); }
.policy h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .5px; color: var(--lapis-900); }
.policy h3 .i { color: var(--lapis); width: 22px; height: 22px; }
.policy p { margin: 0; }

.fc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.fc-card { background: var(--sand) var(--brick-light); border-radius: var(--radius); overflow: hidden; border-bottom: 4px solid var(--lapis); }
.fc-card__body { padding: 22px 26px 28px; }
.fc-card__name { font-family: var(--display); font-weight: 700; font-size: 28px; margin: 0; color: var(--lapis-900); }
.yt-facade { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--lapis-900); }
.yt-facade .ph-art { position: absolute; inset: 0; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-facade__play { position: absolute; inset: 0; margin: auto; pointer-events: none; width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--gold); background: var(--lapis); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(8, 23, 51, .45); transition: transform .25s var(--ease), background .25s; }
.yt-facade:hover .yt-facade__play, .yt-facade:focus-visible .yt-facade__play { transform: scale(1.08); background: var(--gold); color: var(--lapis-900); }
.yt-facade__play .i { width: 34px; height: 34px; margin-left: 5px; }

/* ---------- Split sections (text + arched image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text p { font-size: 19px; line-height: 1.65; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); box-shadow: var(--shadow), 0 0 0 3px var(--gold); }
.scripture { margin: 24px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--gold); font-style: italic; font-size: 23px; line-height: 1.5; color: var(--lapis-900); }
.scripture cite { display: block; font-style: normal; font-family: var(--display); font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; font-size: 15px; margin-top: 8px; color: var(--ochre); }
.report { background: var(--sand) var(--brick-light); border-radius: var(--radius); padding: 40px; scroll-margin-top: 12px; border-top: 5px solid var(--clay); }
.report p { font-size: 19px; }
.report__actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.report__call { display: flex; align-items: center; gap: 14px; background: var(--clay); color: #fff; padding: 16px 24px; border-radius: var(--radius); font-size: 20px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.report__call:nth-child(2) { background: var(--lapis); font-size: 18px; }
.report__call:hover { color: #fff; background: var(--lapis-900); }
.report__call .i { width: 28px; height: 28px; }
.report__call span { display: grid; line-height: 1.2; }
.report__call small { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: .92; }
.report__emergency { position: relative; padding-left: 32px; font-weight: 700; margin: 0; }
.report__emergency > .i { position: absolute; left: 0; top: 1px; color: var(--clay); width: 22px; height: 22px; }

/* ---------- Giving tiles: arched, gold-framed gateways, each parish's name inscribed at the foot ---------- */
.give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.give-tile {
  position: relative; display: block; aspect-ratio: 460 / 335; overflow: hidden; isolation: isolate; color: #fff; background: var(--lapis-900);
  border-radius: 50% 50% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); box-shadow: 0 0 0 2px var(--gold);
}
.give-tile:hover { color: #fff; }
.give-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.give-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 23, 51, 0) 30%, rgba(8, 23, 51, .55) 62%, rgba(8, 23, 51, .9) 100%); }
.give-tile:hover img { transform: scale(1.06); }
.give-tile__label {
  position: absolute; left: 18px; right: 18px; bottom: 20px; text-align: center;
  font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(8, 23, 51, .9), 0 0 14px rgba(8, 23, 51, .7); text-wrap: balance;
}

/* ---------- Qurbana Media ---------- */
.qm-brand { display: flex; align-items: center; justify-content: center; background: #000; border-radius: var(--radius); padding: 44px 30px; margin: 0 0 34px; box-shadow: 0 0 0 3px var(--gold); }
.qm-brand img { width: min(520px, 100%); height: auto; }
.media-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.media-card { display: grid; gap: 8px; align-content: start; background: var(--sand) var(--brick-light); padding: 28px 24px; border-radius: var(--radius); color: var(--ink); border-top: 4px solid var(--lapis); transition: transform .3s var(--ease), box-shadow .3s; }
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.media-card__icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--lapis); }
.media-card__icon .i { width: 28px; height: 28px; }
.media-card__icon img { width: 40px; height: 40px; }
.media-card__icon--yt { background: #CD201F; } .media-card__icon--fb { background: #3B5998; } .media-card__icon--ig { background: #262626; } .media-card__icon--qm { background: #000; }
.media-card__title { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; margin-top: 8px; color: var(--lapis-900); }
.media-card__text { font-weight: 400; font-size: 16px; color: var(--ink-2); }
.media-card__go { color: var(--lapis); font-size: 16px; }
.app-panel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 50px; margin-bottom: var(--space-block); background: var(--lapis) var(--brick); color: #fff; border-radius: var(--radius); padding: 90px 50px; overflow: hidden; scroll-margin-top: 12px; }
.app-panel::before, .app-panel::after { content: ''; position: absolute; left: 0; right: 0; height: var(--frieze-h); background: var(--frieze); }
.app-panel::before { top: 0; }
.app-panel::after { bottom: 0; }
.app-panel__title { font-family: var(--display); font-weight: 700; font-size: 34px; margin: 0 0 10px; color: var(--gold-light); }
.app-panel p { font-size: 19px; }
.app-panel .store-badges { justify-content: flex-start; }
.app-panel__cross { width: 120px; opacity: .55; flex: none; }

.photo-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 260px; gap: 12px; margin-bottom: 60px; }
.photo-mosaic__item { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 2px var(--gold); }
.photo-mosaic__item:first-child { grid-row: span 2; border-radius: 50% 50% var(--radius) var(--radius) / 24% 24% var(--radius) var(--radius); }
.photo-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.photo-mosaic__item:hover img { transform: scale(1.05); }

/* ---------- Search ---------- */
.search-page { display: flex; align-items: center; gap: 12px; background: var(--sand); border-radius: var(--radius); padding: 10px 10px 10px 22px; max-width: 900px; margin: 0 auto 20px; border-bottom: 3px solid var(--lapis); }
.search-page > .i { color: var(--muted); width: 22px; height: 22px; }
.search-page input { flex: 1; border: 0; background: transparent; font-size: 21px; padding: 10px 0; min-width: 0; }
.search-page input:focus { outline: none; }
.search-page:focus-within { box-shadow: 0 0 0 3px var(--lapis); }
.search-count { max-width: 900px; margin: 0 auto 10px; color: var(--muted); font-weight: 700; overflow-wrap: anywhere; }
.search-results { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; gap: 14px; }
.search-results li { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.search-results a { font-size: 22px; }
.search-results .search-url { font-size: 14px; color: var(--ochre); margin: 2px 0 6px; }
.search-results p { margin: 0; color: var(--ink-2); }
.search-results mark { background: #F7E1A8; color: inherit; padding: 0 2px; }
.quick-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 30px auto 0; }
.quick-tiles a { display: grid; justify-items: center; gap: 10px; background: var(--lapis) var(--brick); color: #fff; padding: 26px 10px; border-radius: var(--radius); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-bottom: 4px solid var(--gold); }
.quick-tiles a:hover { background-color: var(--lapis-800); color: var(--gold-light); }
.quick-tiles .i { width: 34px; height: 34px; }

.map-embed { margin-top: 26px; aspect-ratio: 16 / 10; background: var(--sand) url("../img/motif/gate-watermark.svg") no-repeat center bottom / auto 86%; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-embed__load { display: inline-flex; align-items: center; gap: 8px; background: var(--cream); border: 2px solid var(--lapis); color: var(--lapis); border-radius: var(--radius); padding: 12px 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; }
.map-embed__load:hover, .map-embed__load:focus-visible { background: var(--lapis); color: #fff; }

/* ==========================================================================
   Footer: the city wall - battlements, a frieze of crosses, glazed lapis brick
   ========================================================================== */
.site-footer { --wall: var(--lapis-900); position: relative; margin-top: 28px; }
.site-footer__main { position: relative; background: var(--lapis-900) var(--brick); color: #fff; padding: 116px 0 110px; }
.site-footer__main::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--frieze-h); background: var(--frieze); }
.site-footer__main::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: var(--frieze-h); background: var(--frieze); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 40px; }
.footer-heading { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 2px; color: var(--gold-light); line-height: 1.2; margin: 0 0 18px; }
.footer-heading--spaced { margin-top: 40px; }
.footer-heading--search { margin: 36px 0 18px; }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.f-list a { display: flex; align-items: flex-start; gap: 12px; color: #fff; font-weight: 400; font-size: 17px; line-height: 1.5; }
/* Each link in the footer's lists opens with a small gold Chaldean cross */
.f-list:not(.f-list--contact) a { gap: 10px; }
.f-list:not(.f-list--contact) a::before {
  content: ''; flex: none; width: 9px; height: 12px; margin-top: .45em; background: var(--gold); transition: transform .25s var(--ease);
  -webkit-mask: var(--cross-mark) center / contain no-repeat; mask: var(--cross-mark) center / contain no-repeat;
}
.f-list:not(.f-list--contact) a:hover::before { transform: translateX(2px); }
.f-list a .i { color: var(--gold); width: 20px; height: 20px; margin-top: 4px; stroke-width: 2; }
.f-list a:hover { color: var(--gold-light); }
.social { display: flex; gap: 15px; margin-top: 26px; }
.social__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: transparent; transition: background .25s; box-shadow: inset 0 0 0 1px rgba(242, 207, 126, .45); }
.social__btn .i { width: 20px; height: 20px; }
.social__btn:hover { color: #fff; background: rgba(242, 207, 126, .12); }
.footer-text { font-size: 18px; line-height: 1.5; margin: 0 0 30px; }
.footer-text--spaced { margin: 40px 0 10px; }
.site-footer .link-arrow { color: #fff; }
.site-footer .link-arrow:hover { color: var(--gold-light); }
.signup-form { display: grid; gap: 16px; }
.signup-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.signup-form input { padding: 10px 12px; font-size: 16px; border: 1px solid transparent; }
.signup-form .btn { justify-self: start; min-width: 150px; margin-top: 6px; }
.footer-search { display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: var(--radius); padding: 0 14px; color: var(--muted); }
.footer-search .i { width: 18px; height: 18px; }
.footer-search input { flex: 1; border: 0; background: transparent; padding: 10px 0; font-size: 18px; color: var(--ink); min-width: 0; }
.footer-search input:focus { outline: none; }
.footer-search:focus-within { box-shadow: 0 0 0 3px var(--gold); }
/* On screen the frieze above closes the wall with its own gold rule; in print (no frieze) a gold border does. */
.site-footer__bottom { background: var(--lapis-950); color: rgba(246, 238, 220, .82); padding: 20px 0; }
.site-footer__bottom p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 1.2px; line-height: 1.3; }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); background: var(--lapis); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), background .25s, visibility 0s linear .3s; }
.to-top .i { transform: rotate(180deg); width: 24px; height: 24px; stroke-width: 2.6; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .3s, transform .3s var(--ease), background .25s, visibility 0s; }
.to-top:hover { background: var(--lapis-900); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 23, 51, .94); display: grid; place-items: center; padding: 60px 70px; }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 0 3px var(--gold); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: var(--gold); color: var(--lapis-900); }
.lightbox .i { width: 28px; height: 28px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 14px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 14px; top: 50%; margin-top: -26px; }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-weight: 700; letter-spacing: 1px; }

/* ---------- No-JavaScript parish finder (a menu of plain links) ---------- */
.parish-menu { width: 420px; max-width: 100%; text-align: left; }
.parish-menu__summary {
  list-style: none; display: flex; align-items: center; height: 49px; padding: 0 40px 0 15px; cursor: pointer; font-size: 19px; color: var(--muted); border-radius: var(--radius);
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1F45' stroke-width='2.5'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}
.parish-menu__summary::-webkit-details-marker { display: none; }
.parish-menu[open] .parish-menu__summary { color: var(--ink); }
/* In the page flow (not an overlay), so the open list never covers the parish it jumped to
   or the next control in the tab order. */
.parish-menu__list { margin-top: 4px; max-height: min(60vh, 440px); overflow-y: auto; background: var(--cream); color: var(--ink); box-shadow: var(--shadow); padding: 4px 0 10px; border-radius: var(--radius); }
.parish-menu__group { margin: 0; padding: 12px 16px 4px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ochre); }
.parish-menu__list ul { list-style: none; margin: 0; padding: 0; }
.parish-menu__list a { display: block; padding: 7px 16px; color: var(--ink); font-weight: 500; }
.parish-menu__list a:hover, .parish-menu__list a:focus-visible { background: var(--sand); color: var(--lapis); outline-offset: -3px; }

/* ---------- Mailer sign-up form ---------- */
.email-form__row--address { grid-template-columns: 1fr 110px 130px; }
/* Placeholders double as visible labels: dark enough for 4.5:1 on the light inputs. */
.email-form ::placeholder, .signup-form ::placeholder { color: var(--muted); opacity: 1; }
/* Search fields too: the browser's default placeholder grey is below 4.5:1 on cream and sand. */
.footer-search ::placeholder, .search-page ::placeholder { color: var(--muted); opacity: 1; }

/* ---------- Focus rings ----------
   The default lapis ring suits the cream page. Inside the dark lapis walls and panels (and over
   photographs and in the lightbox) the ring is gold (4.6:1 or more on lapis). Tiles that sit on
   cream keep the lapis ring, which is drawn outside them, on the cream. Controls that float over
   photos or mixed grounds draw their ring inside themselves, or as a two-tone ring. */
.email-card :focus-visible, .find-bar :focus-visible, .clergy-card :focus-visible, .app-panel :focus-visible, .church-card :focus-visible,
.app-band :focus-visible, .explore :focus-visible, .hero :focus-visible, .page-banner :focus-visible, .gallery :focus-visible,
.site-footer :focus-visible, .flyout :focus-visible, .lightbox :focus-visible { outline-color: var(--gold); }
/* …but the no-JS parish list is cream, so its links keep a dark ring. */
.find-bar .parish-menu__list a:focus-visible { outline-color: var(--lapis); }
/* Full-width bands and menu rows: the ring is drawn inside them (outside, it would be off-screen or covered). */
.announce:focus-visible { outline: 3px solid var(--lapis-900); outline-offset: -6px; }
.flyout__list a:focus-visible, .flyout__toggle:focus-visible { outline-offset: -4px; }
/* Round controls on cream discs: the ring sits inside the disc. */
.clergy-dialog__close:focus-visible, .gallery__nav:focus-visible { outline: 3px solid var(--lapis); outline-offset: -6px; }
.lightbox button:focus-visible { background: var(--gold); color: var(--lapis-900); }
/* Over photographs or the footer: a two-tone ring (dark outside, light inside) reads on any ground. */
.hero__thumb:focus-visible { outline: 3px solid var(--lapis-900); outline-offset: 2px; box-shadow: 0 0 0 5px var(--gold-light); }
.to-top:focus-visible { background: var(--gold); color: var(--lapis-900); outline: 3px solid var(--lapis-900); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
/* An inline link around a block image draws no outline: make it a box around the flyer. */
.event-flyer a { display: block; width: fit-content; }

/* ==========================================================================
   Responsive (breakpoints: 1380 / 1180 / 1024 / 899 / 767 / 499 / 479 / 359)
   ========================================================================== */
@media (max-width: 1380px) {
  .main-nav a { font-size: 14.5px; letter-spacing: 1.2px; }
  /* The menu still shows here: the logo gives way below about 1210px so Donate and More stay on screen. */
  .logo, .site-header.is-stuck .logo { width: clamp(255px, calc(100vw - 925px), 280px); }
  .header-actions { gap: 16px; }
  /* While the full navigation shows, the Menu tile is text only (it fits beside the capitals). */
  .more-btn .i { display: none; }
}
@media (max-width: 1180px) {
  html { scroll-padding-top: 104px; }
  .main-nav { display: none; }
  .logo, .site-header.is-stuck .logo { width: 290px; }
  .site-header__inner { justify-content: space-between; min-height: 96px; }
  .more-btn .i { display: inline-block; }
  .clergy-grid { grid-template-columns: repeat(3, 1fr); }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  /* The church schedule panel's two columns stay as wide as they were before the panel, so no time wraps
     onto an extra line (phones: the 767px block) */
  .schedule-grid { padding-inline: 24px; column-gap: 48px; }
}
@media (max-width: 1024px) {
  .hero { height: 440px; }
  .hero__title { font-size: 40px; }
  .find-bar__title { font-size: 31px; }
  .featured__box { flex-direction: column; }
  .featured__media { flex-basis: auto; width: calc(100% - 40px); margin: 20px 20px 0; aspect-ratio: 16 / 9; border-radius: 50% 50% 2px 2px / 34% 34% 2px 2px; }
  .featured__card { margin: -40px 14px 20px; width: calc(100% - 28px); }
  .display-heading { font-size: 44px; }
  .explore-tile__label { font-size: 24px; }
  .page-banner { min-height: 340px; }
  .page-banner--church { min-height: 420px; }
  .page-banner--article { min-height: 320px; }
  .page-banner__title { font-size: 50px; }
  .page-banner--church .page-banner__title { font-size: 46px; }
  .page-banner--article .page-banner__title { font-size: 40px; }
  .h-xl, .section-head__title { font-size: 36px; }
  .church-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__track { grid-auto-columns: calc((100% - 30px) / 4); }
  /* minmax(0, …): a long word can never make a column wider than the screen. */
  .two-col, .split, .event-detail { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .event-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .site-footer__main { padding: 96px 0 86px; }
  .sac-quick { grid-template-columns: repeat(2, 1fr); }
  .sac-grid--3, .policy-grid { grid-template-columns: 1fr 1fr; }
  .news-cards { grid-template-columns: repeat(2, 1fr); }
  .give-grid { grid-template-columns: repeat(2, 1fr); }
  .mt-grid { grid-template-columns: 1fr; }
  .vicariates { grid-template-columns: 1fr; }
}
/* Tablets: bigger Explore gateways (two across, until three are wide enough), and no card left alone in a row */
@media (min-width: 768px) and (max-width: 899px) {
  .explore__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .sac-grid--3 > .sac-card:last-child:nth-child(odd), .policy-grid > .policy:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* A lone church or institution card keeps its size, centred under the two above it */
  .church-grid > .church-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 28px) / 2); }
}
@media (max-width: 767px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 90px; }
  body { font-size: 17px; }
  .site-header__inner { min-height: 76px; padding: 10px 16px; gap: 12px; }
  .site-header.is-stuck .site-header__inner { min-height: 66px; }
  /* As large as the row allows beside Donate and the Menu tile (158px at 360px wide, 188px at 390, 200px from 402px).
     100% is the header row's content box, so a classic scrollbar cannot push the Menu tile off the edge. */
  .logo, .site-header.is-stuck .logo { width: clamp(150px, calc(100% - 170px), 200px); }
  .header-actions { gap: 10px; }
  .header-donate { font-size: 14px; padding: 8px 2px; }
  .more-btn { padding: 12px 10px 11px; gap: 6px; font-size: 15px; }
  .announce { font-size: 15px; line-height: 1.35; padding: 9px 14px; }
  .hero { height: 460px; }
  .hero__content { justify-content: flex-end; padding-bottom: 80px; }
  .hero__title { font-size: 30px; line-height: 1.1; margin-bottom: 24px; }
  .hero__slide::after { background: linear-gradient(180deg, rgba(11, 31, 69, .45) 0%, rgba(8, 23, 51, .88) 60%); }
  .hero__thumbs { right: 52px; bottom: 36px; }
  .hero__pause { right: 14px; bottom: 34px; width: 30px; height: 30px; }
  .btn--xl { font-size: 17px; }
  .btn { letter-spacing: 1.3px; text-wrap: balance; text-align: center; }
  .btn--lg { padding-inline: 26px; }
  .find-bar { padding: 28px 0 calc(28px + var(--frieze-h)); }
  .find-bar__title { font-size: 25px; letter-spacing: .5px; }
  .find-bar__form { flex-direction: column; gap: 12px; }
  .find-bar select { width: 100%; }
  html:not(.js) .find-bar__nojs { flex-direction: column; align-items: stretch; gap: 12px; }
  .parish-menu, .parish-menu__list { width: 100%; }
  .email-form__row--address { grid-template-columns: 1fr 1fr; }
  .email-form__row--address input:first-of-type { grid-column: 1 / -1; }
  .reps { padding: 20px 16px; }
  .reps .schedule__title { font-size: 20px; }
  .report__call { padding: 14px 16px; gap: 10px; }
  .report__call span { min-width: 0; overflow-wrap: anywhere; }
  .featured { padding: 0; }
  .featured__card { margin: -30px 12px 12px; width: calc(100% - 24px); padding: 24px 20px; }
  .featured__title { font-size: 24px; letter-spacing: 0; }
  .featured__times div { grid-template-columns: 1fr; gap: 2px; }
  .display-heading { font-size: 36px; --mark-h: 30px; --mark-gap: 12px; padding-bottom: 22px; margin-bottom: 34px; }
  /* The watermark moves beside "See All Events", clear of the full-width heading; the events page has no room for it. */
  .upcoming { background: url("../img/motif/gate-watermark.svg") no-repeat right 16px bottom calc(var(--space-section) - 34px) / auto 88px; }
  .upcoming--page { background-image: none; }
  .event-row__link, .church-events__box .event-row__link { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; gap: 10px 14px; padding: 14px; }
  .event-row__thumb, .church-events__box .event-row__thumb { display: none; }
  .event-row__date { grid-row: span 2; justify-items: center; background: rgba(8, 23, 51, .35); border-radius: var(--radius); padding: 10px 0; align-self: start; box-shadow: inset 0 0 0 1px rgba(242, 207, 126, .4); }
  .event-row__day { font-size: 32px; }
  .event-row__title, .church-events__box .event-row__title { font-size: 19px; }
  .event-row__sub { font-size: 15px; }
  .event-row__loc { font-size: 14px; }
  .event-row__go { display: none; }
  .app-band { padding: 72px 0; }
  .app-band__title { font-size: 28px; }
  .explore { margin-top: 56px; margin-bottom: 56px; padding: 56px 0 44px; }
  .explore__grid { grid-template-columns: 1fr; gap: 16px; }
  .explore-tile { aspect-ratio: 16 / 9; border-radius: 50% 50% var(--radius) var(--radius) / 24% 24% var(--radius) var(--radius); }
  .explore-tile__label { left: 16px; right: 16px; bottom: 16px; font-size: 24px; }
  .page-banner, .page-banner--church, .page-banner--article { min-height: 270px; }
  .page-banner::before { background: var(--banner-crown, var(--crown)) left bottom calc(var(--frieze-h) - 1px) / 60px 28px round no-repeat, linear-gradient(180deg, rgba(8, 23, 51, .45), rgba(8, 23, 51, .78)); }
  .page-banner__inner { padding-block: 40px; }
  .page-banner__title { font-size: 36px; }
  /* Long church names in capitals: a size that keeps them to three or four lines, not a word per line */
  .page-banner--church .page-banner__title { font-size: 31px; }
  .page-banner--article .page-banner__title { font-size: 30px; }
  .page-banner__subtitle { font-size: 17px; letter-spacing: .01em; }
  .breadcrumb { padding-block: 16px 0; font-size: 14px; }
  .h-xl, .section-head__title { font-size: 30px; }
  .section-head, .h-xl { --mark-h: 30px; --mark-gap: 12px; padding-bottom: 22px; margin-bottom: 34px; }
  .church-grid, .clergy-grid { grid-template-columns: 1fr; }
  .shepherds { grid-template-columns: minmax(0, 300px); gap: 44px; }
  .clergy-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .clergy-card__media { margin: 8px 8px 0; }
  .clergy-card__name { font-size: 16px; }
  .clergy-card__ordained { font-size: 14px; }
  .clergy-card__body { padding: 12px 10px 16px; }
  .chips { gap: 8px; }
  .chip { padding: 7px 12px; font-size: 13px; letter-spacing: 1px; }
  /* The white-glaze course runs edge to edge, so the times keep the full text column (inset, they wrapped
     more and split ranges such as "10am–4pm" at the dash) */
  .schedule-grid { grid-template-columns: 1fr; gap: 0; margin-inline: calc(var(--gutter) * -1); border-radius: 0; padding: 22px var(--gutter) 2px; }
  .gallery__track { grid-auto-columns: 62%; }
  .email-card { padding: 26px 20px 30px; }
  .email-card__title { font-size: 24px; }
  .email-form__row, .signup-form__row { grid-template-columns: 1fr; }
  .priest-list { padding: 0; }
  .priest-row { grid-template-columns: 96px 1fr; gap: 16px; }
  .priest-row__photo { width: 96px; height: 96px; }
  .priest-row__name, .location__name { font-size: 21px; letter-spacing: .2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 10px; }
  .footer-col + .footer-col { margin-top: 30px; }
  .social { margin-bottom: 10px; }
  .footer-heading { font-size: 18px; }
  .f-list:not(.f-list--contact) { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .f-list a { font-size: 16px; }
  .site-footer__bottom p { font-size: 13px; padding-right: 60px; }
  .mt-card { padding: 20px; }
  .mt-card__list div { grid-template-columns: 1fr; gap: 0; }
  .sac-quick, .sac-grid--3, .sac-grid--2, .policy-grid, .news-cards, .fc-grid, .media-grid { grid-template-columns: 1fr; }
  .give-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  /* Two narrow columns: the name sits on a glazed lapis strip under the photo (never over it, never cut off),
     inside the same arched gold frame. The arch's height follows the tile's width (half the row less
     the gutters and the 12px gap), so every tile has the same arch whatever the length of its name. */
  .give-tile {
    aspect-ratio: auto; display: flex; flex-direction: column; background: var(--lapis-900) var(--brick);
    border-radius: 50% 50% var(--radius) var(--radius) / calc((50vw - var(--gutter) - 6px) * .3) calc((50vw - var(--gutter) - 6px) * .3) var(--radius) var(--radius);
  }
  .give-tile::before { content: none; }
  .give-tile img { position: static; height: auto; aspect-ratio: 3 / 2; flex: none; }
  .give-tile__label { position: relative; inset: auto; z-index: 1; flex: 1; background: var(--lapis-900) var(--brick); padding: 9px 10px 11px; font-size: 14px; line-height: 1.25; letter-spacing: .02em; text-shadow: none; }
  .clergy-dialog__grid { grid-template-columns: 1fr; }
  .clergy-dialog__photo { padding: 14px 14px 0; }
  .clergy-dialog__photo > img, .clergy-dialog__photo > .ph-art { aspect-ratio: 1; object-position: center 25%; border-radius: 50% 50% 2px 2px / 50% 50% 2px 2px; }
  .clergy-dialog__body { padding: 26px 22px 30px; max-height: none; }
  .clergy-dialog { overflow-y: auto; }
  .clergy-dialog__name { font-size: 26px; }
  .clergy-dialog__facts div { grid-template-columns: 1fr; gap: 2px; }
  .reps__list li { grid-template-columns: 1fr; gap: 2px; }
  .app-panel { flex-direction: column; align-items: flex-start; padding: 72px 24px; }
  .app-panel__title { font-size: 26px; }
  .app-panel__cross { display: none; }
  .qm-brand { padding: 28px 18px; }
  .photo-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .photo-mosaic__item:first-child { grid-column: span 2; grid-row: span 1; border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius); }
  .quick-tiles { grid-template-columns: 1fr 1fr; }
  .article__emblem { width: 90px; margin-left: 16px; }
  .report { padding: 26px 20px; }
  .lightbox { padding: 60px 10px; }
}

/* The footer's lists of long names (Resources, Institutions, Programs) take one column on phones:
   in two, most of their links wrap. Quick Links keeps two. */
@media (max-width: 499px) {
  .f-list.f-list--long { grid-template-columns: 1fr; }
}
/* Recent events: the date under the title, so neither has to wrap beside the other */
@media (max-width: 479px) {
  .past-list a { flex-direction: column; gap: 2px; padding: 14px 16px; }
  .past-list__date { font-size: 15px; }
}
@media (max-width: 359px) {
  .site-header__inner { gap: 8px; padding-inline: 12px; }
  .logo, .site-header.is-stuck .logo { width: clamp(140px, calc(100% - 152px), 150px); }
  .header-actions { gap: 8px; }
  .more-btn .i { display: none; }
  h1, h2, h3 { overflow-wrap: anywhere; }
  .page-banner--church .page-banner__title { font-size: 28px; }
  .email-card__title { font-size: 22px; }
  .clergy-card .btn { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__img { transform: none !important; }
}

@media print {
  .site-header, .announce, .site-header + main::before, .flyout, .to-top, .site-footer__main, .hero__thumbs, .email-card, .gallery, .chips { display: none !important; }
  .find-bar::before, .explore::before, .site-footer::before, .page-banner::after, .find-bar::after, .app-band::before, .app-band::after, .app-panel::before, .app-panel::after, .site-footer__main::before, .site-footer__main::after { display: none !important; }
  body { background: #fff; }
  .page-banner { min-height: 0; color: #000; background: none; }
  .page-banner::before { display: none; }
  /* Lapis grounds do not print (background graphics are off by default), so their white and gold
     words would land on white paper: print them black, and leave out what only works on screen. */
  .hero__pause, .find-bar, .app-band, .app-panel, .explore, .gallery__nav, .clergy-card .btn, .map-embed, .page-banner__img { display: none !important; }
  .page-banner__inner { padding-block: 0 12px; }
  .hero { height: auto; background: none; color: #000; }
  .hero__slides, .hero__slide { position: static; }
  .hero__slide:not(.is-active), .hero__img, .hero__slide::after { display: none !important; }
  .hero__content { padding-block: 24px 0; }
  /* Every block whose words sit on lapis, clay or a photo prints black on the paper: cards, buttons,
     the Safe Environment report tiles (phone and email) and the footer's copyright line */
  :is(.hero, .page-banner, .event-row__link, .church-card, .clergy-card, .vicariate, .sac-quick__item, .quick-tiles a, .email-card, .btn, .report__call, .site-footer__bottom) { color: #000 !important; background: none !important; text-shadow: none !important; box-shadow: none !important; }
  :is(.hero, .page-banner, .event-row__link, .church-card, .clergy-card, .vicariate, .sac-quick__item, .quick-tiles a, .give-tile__label, .email-card, .btn, .report__call, .site-footer__bottom) * { color: inherit !important; text-shadow: none !important; }
  /* The giving tiles: names black on white (forced, so they never sit on the photo), and the photo out of
     its negative layer, which Chromium leaves out when background graphics are off */
  .give-tile__label { color: #000 !important; background: #fff !important; text-shadow: none !important; z-index: 1; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .give-tile img { z-index: 0; }
  :is(.event-row__link, .church-card, .clergy-card, .vicariate, .sac-quick__item, .btn, .report__call) { outline: 1px solid #999; outline-offset: -1px; }
  :is(.event-row__link, .church-card, .clergy-card, .mt-card, .give-tile, .sac-card, .vicariate) { break-inside: avoid; }
  .qm-brand { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-footer__bottom { border-top: 3px solid var(--gold); }
}
