/* ============================================================
   St. Patrick's Parish, Hamilton — redesign
   Register: traditional editorial (St. Michael's Abbey / Word on Fire),
   not SaaS-card. Serif display, ruled lists, arch frames, ordo card.
   Tokens → base → components → sections → responsive.
   ============================================================ */

:root {
  /* Brand — St. Patrick's Canva brand kit: green #BCC63F, grey #58595B, grey #818285.
     Darker shades of the brand grey are derived for headings and dark backgrounds.
     The green is too light for small text on light backgrounds (1.8:1), so it is used
     for fills, rules and text on dark backgrounds; --accent-ink carries accent text on light. */
  --brand:       #58595b;
  --brand-dark:  #4a4b4d;
  --brand-deep:  #3d3e40;
  --brand-mid:   #818285;
  --accent:      #bcc63f;
  --accent-line: #bcc63f;
  --accent-ink:  #58595b;

  /* Ink & paper — neutral off-white, hairline rules */
  --ink:        #2f3032;
  --ink-soft:   #58595b;
  --slate:      #6a6b6e;
  --paper:      #f8f8f6;
  --paper-deep: #efefeb;
  --white:      #ffffff;
  --line:       #e3e3df;
  --line-strong:#818285;

  /* Type */
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm */
  --section-y: clamp(72px, 10vw, 136px);
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:target, [id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0 0 20px;
  overflow-wrap: break-word;
}
h2 { font-size: clamp(32px, 4.4vw, 46px); color: var(--brand-dark); }
h3 { font-size: 24px; }
p  { overflow-wrap: break-word; }

/* ---- Layout ---- */
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.narrow    { width: min(720px, calc(100% - 48px)); margin-inline: auto; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--brand); color: var(--white);
  padding: 12px 18px; border-radius: var(--radius); z-index: 200;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }

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

/* ============================================================
   Shared components
   ============================================================ */
.eyebrow {
  margin: 0 0 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow-gold { color: var(--accent); }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-lead { font-size: 18px; color: var(--ink-soft); margin: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 36px; }
.cta-center { justify-content: center; }

/* Buttons — rectangular, quiet; traditional sites don't do pills */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px;
  background: var(--brand); color: var(--white);
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--brand); border-radius: var(--radius);
  transition: background .15s ease, border-color .15s ease;
}
.button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button-lg { padding: 14px 34px; font-size: 15.5px; }
.button-gold {
  background: var(--accent); border-color: var(--accent); color: var(--brand-deep);
}
.button-gold:hover { background: var(--accent); border-color: var(--accent); }
.button-give {
  background: transparent; color: var(--brand);
  border-color: var(--accent-ink); min-height: 42px; padding: 8px 22px;
}
.button-give:hover { background: var(--accent); border-color: var(--accent); color: var(--brand-deep); }
.button-slim {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px; white-space: nowrap;
  border: 1px solid var(--brand); border-radius: var(--radius);
  color: var(--brand); font-size: 14.5px; font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.button-slim:hover { background: var(--brand); color: var(--white); }

/* Text links with arrow — green underline on hover */
.button-text {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  font-size: 15px; font-weight: 600; color: var(--brand);
  border-bottom: 1px solid transparent;
}
.button-text:hover { border-bottom-color: var(--accent); }
.button-text-light { color: var(--accent); }
.button-text-light:hover { border-bottom-color: var(--accent); }

.text-link { color: var(--brand); font-weight: 600; border-bottom: 2px solid var(--accent); }

/* Ruled bullet list */
.rule-list { list-style: none; margin: 28px 0 0; padding: 0; }
.rule-list li {
  padding: 12px 0 12px 26px; position: relative;
  border-top: 1px solid var(--line);
}
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list li::before {
  content: "✦"; position: absolute; left: 2px; top: 12px;
  color: var(--accent); font-size: 11px;
}

/* ============================================================
   Announcement rail + header
   ============================================================ */
.rail { background: var(--brand-deep); color: rgba(255,255,255,.85); font-size: 13.5px; }
.rail-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.rail p { margin: 0; }
.rail-day { color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; margin-right: 8px; }
.rail a { color: var(--accent); font-weight: 600; white-space: nowrap; padding: 8px 0; }
.rail a:hover { text-decoration: underline; }
.rail-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 248, 246, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name .b1 { font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--brand-dark); }
.brand-name .b2 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.button) {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  padding: 10px 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.button):hover { color: var(--brand); border-bottom-color: var(--accent); }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(188,198,63,.14), transparent 60%),
    linear-gradient(180deg, var(--brand-dark), var(--brand-deep));
  color: var(--white);
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 128px);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6.2vw, 72px);
  font-weight: 500; color: var(--white); margin-bottom: 10px;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-attr { margin: 0 0 28px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hero-lead { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.82); max-width: 54ch; margin: 0; }
.hero-story-link { border-bottom: 1px solid var(--accent); }
.hero-story-link:hover { color: var(--accent); }
.hero .button { background: var(--accent); border-color: var(--accent); color: var(--brand-deep); }
.hero .button:hover { background: var(--accent); border-color: var(--accent); }
.hero .button-text { color: rgba(255,255,255,.85); }
.hero .button-text:hover { border-bottom-color: var(--accent); }

/* Ordo card — printed Mass schedule, not a SaaS widget */
.ordo {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--accent-line);
  outline: 1px solid var(--accent-line);
  outline-offset: 5px;
  padding: 36px 34px 28px;
}
.ordo-title {
  font-family: var(--display); font-size: 26px; font-weight: 600;
  text-align: center; margin: 0; color: var(--brand-dark);
}
.ordo-rule { text-align: center; color: var(--accent); font-size: 13px; margin: 10px 0 18px; }
.ordo-list { margin: 0; }
.ordo-group { margin: 20px 0 0; font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.ordo-group:first-of-type { margin-top: 0; }
.ordo-list-extra { margin-top: 20px; }
.ordo-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.ordo-row dt { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--brand-dark); }
.ordo-row dt span { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-top: 2px; }
.ordo-row dd { margin: 0; font-size: 16px; font-weight: 600; text-align: right; white-space: nowrap; color: var(--ink); }
.ordo-row dd small { font-size: 12px; font-weight: 500; color: var(--slate); }
.ordo-live {
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-soft);
}
.ordo-live a { color: var(--brand); font-weight: 600; border-bottom: 2px solid var(--accent); }
.ordo-dev { margin: 10px 0 0; font-size: 12.5px; color: var(--slate); }
.ordo-bulletin { margin: 4px 0 0; font-size: 14.5px; }
.ordo-bulletin a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ordo-dev a { color: var(--slate); border-bottom: 1px dashed var(--line-strong); }
.ordo-dev a:hover { color: var(--brand); border-bottom-color: var(--accent-ink); }
.dev-chip {
  display: inline-block; padding: 1px 8px; margin-right: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); border: 1px solid var(--accent-line); border-radius: 999px;
}
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #b23b3b; margin-right: 6px; vertical-align: 1px;
}
.ordo-intention {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 18px; padding: 14px 16px; min-height: 48px;
  background: var(--brand); color: var(--white);
  font-size: 14.5px; font-weight: 600; border-radius: var(--radius);
}
.ordo-intention:hover { background: var(--brand-dark); }
.ordo-note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.ordo-note a { color: var(--brand); font-weight: 600; border-bottom: 2px solid var(--accent); white-space: nowrap; }

/* ============================================================
   This week's bulletin band (home)
   ============================================================ */
.bulletin-band { padding: 72px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.bulletin-band-inner { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 56px; align-items: center; }
.bulletin-band-inner:not(:has(.bulletin-band-cover:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.bulletin-band-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 16px 40px rgba(0,0,0,.12); transform: rotate(-1.5deg); transition: transform .2s ease; }
.bulletin-band-cover:hover img { transform: rotate(0); }
.bulletin-band-copy h2 { margin-bottom: 4px; }
.bulletin-band-date { margin: 0 0 12px; font-size: 18px; color: var(--brand-dark); font-weight: 600; }
.bulletin-band-date:empty { display: none; }
.bulletin-band-recent { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.bulletin-band-recent-h { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.bulletin-band-recent ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 24px; }
.bulletin-band-recent a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--brand); font-weight: 500; font-size: 15px; }
.bulletin-band-recent a:hover span { text-decoration: underline; }
.bulletin-band-recent img { width: 48px; height: auto; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (max-width: 720px) {
  .bulletin-band { padding: 48px 0; }
  .bulletin-band-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bulletin-band-cover { max-width: 200px; margin-inline: auto; }
  .bulletin-band-recent ul { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .bulletin-band-cover img { transform: none; transition: none; } }

/* ============================================================
   Mission & values (home band + mission.html)
   ============================================================ */
.mission-band { background: var(--white); border-block: 1px solid var(--line); }
.mission-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: clamp(40px, 6vw, 88px); align-items: start; }
.mission-copy { max-width: 62ch; }
.mission-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 17px; margin: 0 0 14px; }
.mission-motto { margin: 28px 0 0; padding: 20px 0 0 20px; border-left: 3px solid var(--accent); }
.mission-motto p { font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; color: var(--brand-dark); margin: 0 0 4px; }
.mission-motto p[lang="la"] { color: var(--accent-ink); }
.mission-motto cite { font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.mission-values { padding: 28px; background: var(--paper); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05); }
.mission-values h3 { margin: 0 0 8px; font-size: 22px; color: var(--brand-dark); }
.mission-values ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mission-values li + li { border-top: 1px solid var(--line); }
.mission-values li a { display: flex; align-items: center; min-height: 48px; color: var(--brand); font-weight: 600; }
.mission-values li a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.prose.mission h3 { font-size: clamp(20px, 2.2vw, 24px); color: var(--brand-dark); margin: 32px 0 10px; scroll-margin-top: 110px; }
.prose.mission h2 { scroll-margin-top: 110px; }
.prose.mission .mission-motto { margin-bottom: 8px; }
@media (max-width: 1000px) { .mission-grid { grid-template-columns: minmax(0, 1fr); } .mission-values { max-width: 480px; } }
@media (max-width: 720px) { .mission-values { padding: 20px; } .mission-motto { padding-left: 16px; } }

/* ============================================================
   Index strip
   ============================================================ */
.index-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.index-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.index-list li + li { border-left: 1px solid var(--line); }
.index-list a { display: block; padding: 22px 20px; transition: background .15s ease; }
.index-list a:hover { background: var(--paper-deep); }
.ix-n { display: block; font-family: var(--display); font-size: 15px; color: var(--accent-ink); }
.ix-t { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--brand-dark); margin: 2px 0; }
.ix-d { display: block; font-size: 12.5px; color: var(--slate); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: var(--section-y) 0; }

/* Split layouts with arch frames */
.split {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 96px); align-items: center;
}
.split-rev { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }

.arch-frame {
  margin: 0; position: relative;
  border: 1px solid var(--accent-line);
  border-radius: 320px 320px 0 0;   /* chapel-window arch */
  padding: 12px;
}
.arch-frame img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: contain;
  background: var(--paper-deep);
  border-radius: 308px 308px 0 0;
  padding: 40px;
}
.arch-frame figcaption {
  margin-top: 12px; text-align: center;
  font-size: 12px; font-style: italic; color: var(--slate);
}
.arch-frame-sm img { aspect-ratio: 4 / 5; }
.arch-frame-photo img { display: block; height: auto; aspect-ratio: auto; object-fit: cover; padding: 0; }

/* Sacraments — ruled rows */
.sacraments { background: var(--white); border-block: 1px solid var(--line); }
.sac-rows { list-style: none; margin: 0; padding: 0; }
.sac-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px 24px; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.sac-row:last-child { border-bottom: 1px solid var(--line); }
.sac-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.sac-act-call { font-weight: 500; color: var(--ink-soft); }
.sac-n { font-family: var(--display); font-size: 22px; font-style: italic; color: var(--accent-ink); }
.sac-body h3 { margin-bottom: 6px; color: var(--brand-dark); }
.sac-body p { margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }
.sac-body h3 a { border-bottom: 1px solid transparent; }
.sac-body h3 a:hover { border-bottom-color: var(--accent); }
.sac-more { margin-bottom: -10px; }

/* Outreach — dark, scripture-led */
.outreach {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(188,198,63,.12), transparent 60%),
    var(--brand-deep);
  color: rgba(255,255,255,.85); text-align: center;
}
.scripture { margin: 0 0 28px; }
.scripture p {
  font-family: var(--display); font-size: clamp(28px, 4vw, 42px);
  font-weight: 500; font-style: italic; line-height: 1.25;
  color: var(--white); margin: 0 0 14px;
}
.scripture cite { font-style: normal; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.outreach-lead { font-size: 18px; line-height: 1.7; margin: 0 auto; max-width: 58ch; }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.14); border-block: 1px solid rgba(255,255,255,.14);
  margin: 44px 0 0;
}
.stat { background: var(--brand-deep); padding: 24px 18px; }
.stat dt { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--accent); }
.stat dd { margin: 6px 0 0; font-size: 14px; color: rgba(255,255,255,.7); }
.foot-note { margin: 26px 0 0; font-size: 12.5px; color: rgba(255,255,255,.45); }

/* Serve */
.min-list { list-style: none; margin: 24px 0 0; padding: 0; }
.min-list li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--ink-soft); }
.min-list li:last-child { border-bottom: 1px solid var(--line); }
.min-list strong { color: var(--brand-dark); font-weight: 600; }

/* Portal — Communio rows */
.portal { background: var(--white); border-block: 1px solid var(--line); }
.portal-rows { border-top: 1px solid var(--line-strong); }
.portal-row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 8px; border-bottom: 1px solid var(--line);
  transition: background .15s ease, padding .15s ease;
}
.portal-row:hover { background: var(--paper); }
.portal-row h3 { margin-bottom: 4px; color: var(--brand-dark); }
.portal-row p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.portal-go {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--accent-line); color: var(--accent-ink);
  font-size: 18px; transition: background .15s ease, color .15s ease;
}
.portal-row:hover .portal-go { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* Final CTA */
.final-cta {
  background: linear-gradient(180deg, var(--brand-dark), var(--brand-deep));
  color: rgba(255,255,255,.85); text-align: center;
}
.section.final-cta .narrow h2 { color: var(--white); }  /* beats .section .narrow h2 */
.final-cta .sec-lead { color: rgba(255,255,255,.75); max-width: 56ch; margin-inline: auto; }

/* ============================================================
   History page ("Our Story")
   ============================================================ */
.page-hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(188,198,63,.14), transparent 60%),
    linear-gradient(180deg, var(--brand-dark), var(--brand-deep));
  color: var(--white);
  padding: clamp(64px, 8vw, 110px) 0;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 500; color: var(--white); margin-bottom: 18px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero-lead { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.82); margin: 0 auto; max-width: 62ch; }

.history-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(48px, 6vw, 88px); align-items: start;
}
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin: 52px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16.5px; }
.prose-open::first-letter {
  font-family: var(--display); font-size: 3.4em; font-weight: 600;
  float: left; line-height: .82; padding: 6px 10px 0 0; color: var(--accent-ink);
}
.prose .rule-list { margin-bottom: 26px; }
.prose .rule-list li { color: var(--ink-soft); }
.prose .rule-list strong { color: var(--brand-dark); }
.prose-close { margin: 44px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line-strong); }
.prose-close p {
  font-family: var(--display); font-size: clamp(22px, 2.6vw, 28px);
  font-style: italic; line-height: 1.35; color: var(--brand-dark); margin: 0;
}

.timeline { position: sticky; top: 110px; }
.timeline-title {
  font-size: 13px; font-family: var(--sans); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 14px;
}
.tl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.tl li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tl-y { display: block; font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--brand-dark); }
.tl-e { display: block; font-size: 13px; color: var(--slate); line-height: 1.5; margin-top: 2px; }

/* ============================================================
   Sub-page components: people, homilies, sacrament details
   ============================================================ */
.people-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.person { text-align: center; }
.person-photo {
  aspect-ratio: 4 / 5; margin: 0 auto 18px; max-width: 280px;
  border: 1px solid var(--accent-line); border-radius: 999px 999px 0 0;
  background: var(--paper-deep);
  display: grid; place-items: center;
  font-size: 12px; font-style: italic; color: var(--slate); text-align: center;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }
.person h3 { margin-bottom: 4px; color: var(--brand-dark); }
.person-title {
  margin: 0 0 8px; font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink);
}
.person-mail { display: inline-block; padding: 8px 0; font-size: 14px; color: var(--ink-soft); border-bottom: 1px solid transparent; }
.person-mail:hover { color: var(--brand); border-bottom-color: var(--accent); }
.foot-note-light { margin: 40px 0 0; font-size: 12.5px; font-style: italic; color: var(--slate); text-align: center; }
.foot-note-quiet { margin: 28px 0 0; font-size: 14px; }
.bulletin-back { margin: 0 0 8px; font-size: 15px; }
.bulletin-date { margin: -8px 0 16px; font-size: 17px; color: var(--ink-soft); }
.bulletin-date:empty { display: none; }
.bulletin-year { border-top: 1px solid var(--line); }
.bulletin-year:last-child { border-bottom: 1px solid var(--line); }
.bulletin-year summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-family: var(--display); font-size: 22px; color: var(--brand-dark); }
.bulletin-year summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bulletin-list { list-style: none; margin: 4px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px 16px; }
.bulletin-card { display: flex; flex-direction: column; gap: 8px; color: var(--brand); font-weight: 500; font-size: 15px; }
.bulletin-card img { display: block; width: 100%; height: auto; aspect-ratio: 360 / 466; object-fit: cover; object-position: top; background: var(--paper) linear-gradient(var(--line), var(--line)) center 38% / 40% 2px no-repeat; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06); transition: transform .15s ease, box-shadow .15s ease; }
.bulletin-card:hover img { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(0,0,0,.1), 0 10px 24px rgba(0,0,0,.1); }
.bulletin-card:hover .bulletin-card-date { text-decoration: underline; }
.bulletin-card:focus-visible { outline: none; }
.bulletin-card:focus-visible img { outline: 3px solid var(--accent); outline-offset: 3px; }
.bulletin-card-date { min-height: 24px; overflow-wrap: break-word; }
.bulletin-card[aria-current] img { outline: 3px solid var(--accent); outline-offset: 3px; }
.bulletin-card[aria-current] .bulletin-card-date { font-weight: 700; color: var(--brand-dark); }
.bulletin-card[aria-current] .bulletin-card-date::after { content: " · showing"; font-weight: 400; color: var(--ink-soft); }
/* No cover available: a plain paper card with the date */
.bulletin-card.no-thumb::before { content: ""; display: block; aspect-ratio: 360 / 466; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) { .bulletin-card img { transition: none; } .bulletin-card:hover img { transform: none; } }
.bulletin-drive { margin: 16px 0 0; font-size: 14px; }
.bulletin-viewer { margin: 0 0 8px; }
.bulletin-status { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.bulletin-viewer:not(.is-ready):not(.is-error) .bulletin-status { padding: 48px 16px; text-align: center; background: var(--paper); border-radius: var(--radius); }
.bulletin-pages { display: grid; gap: 16px; }
.bulletin-page { display: block; width: 100%; height: auto; background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06); }

.media-frame-video { border: 1px solid var(--accent-line); padding: 10px; margin-bottom: 22px; }
.media-frame-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.media-placeholder {
  aspect-ratio: 16 / 9; background: var(--brand-deep);
  display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.55); font-size: 15px; font-style: italic;
}
.media-placeholder small { font-size: 12px; opacity: .7; }
.media-title { margin: 0 0 6px; font-size: 26px; }
.media-meta { margin: 0; font-size: 13.5px; letter-spacing: .04em; color: var(--slate); }

.homily-list { list-style: none; margin: 0; padding: 0; }
.homily-row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 8px 24px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.homily-row:last-child { border-bottom: 1px solid var(--line); }
.homily-date { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--accent-ink); }
.homily-body h3 { font-size: 20px; margin: 0 0 2px; color: var(--brand-dark); }
.homily-body p { margin: 0; font-size: 13.5px; color: var(--slate); }
.homily-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 14px; white-space: nowrap;
}

.step-list { list-style: none; margin: 0 0 44px; padding: 0; counter-reset: step; }
.step-list li {
  position: relative; padding: 22px 0 22px 64px;
  border-top: 1px solid var(--line); counter-increment: step;
}
.step-list li:last-child { border-bottom: 1px solid var(--line); }
.step-list li::before {
  content: counter(step, lower-roman) ".";
  position: absolute; left: 6px; top: 20px;
  font-family: var(--display); font-size: 24px; font-style: italic; color: var(--accent-ink);
}
.step-list h3 { margin: 0 0 6px; font-size: 21px; color: var(--brand-dark); }
.step-list p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.detail-para { color: var(--ink-soft); margin: 0 0 24px; }
.prose h2, .container.narrow > h2, .section .narrow h2 { color: var(--brand-dark); }
.section .narrow > h2 { font-size: clamp(26px, 3vw, 32px); margin: 44px 0 20px; }
.section .narrow > h2:first-child { margin-top: 0; }
.rule-list em, .step-list em { color: var(--slate); font-size: .92em; }

/* ============================================================
   Live-Mass floating banner (injected by live-banner.js)
   ============================================================ */
.live-banner {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 300;
  display: flex; align-items: center;
  background: var(--brand-deep); color: var(--white);
  border: 1px solid var(--accent-ink); border-radius: 999px;
  box-shadow: 0 12px 40px rgba(16, 26, 46, .45);
  max-width: min(480px, calc(100vw - 32px));
}
.live-banner-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 6px 12px 20px; min-height: 48px;
}
.live-banner-dot {
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: #e04b4b;
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 75, 75, .55); }
  50%      { box-shadow: 0 0 0 7px rgba(224, 75, 75, 0); }
}
.live-banner-text { display: flex; flex-direction: column; line-height: 1.3; }
.live-banner-text strong { font-size: 14.5px; font-weight: 600; }
.live-banner-sub { font-size: 12.5px; color: var(--accent); }
.live-banner-go { font-size: 18px; color: var(--accent); padding-right: 6px; }
.live-banner-link:hover .live-banner-sub { text-decoration: underline; }
.live-banner-close {
  flex: none; width: 44px; height: 44px; margin-right: 4px;
  background: none; border: 0; border-radius: 50%;
  color: rgba(255,255,255,.6); font-size: 20px; cursor: pointer;
}
.live-banner-close:hover { color: var(--white); background: rgba(255,255,255,.08); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--brand-deep); color: rgba(255,255,255,.72);
  padding: 64px 0 0; font-size: 14.5px;
  border-top: 3px solid var(--accent);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-brand .b1 { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--white); }
.footer-brand .b2 { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 2px; }
.footer-brand p { max-width: 34ch; }
.footer-col h4 {
  margin: 0 0 14px; font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 5px 0; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px; color: rgba(255,255,255,.45);
}
.footer-base a { color: rgba(255,255,255,.65); }
.footer-base a:hover { text-decoration: underline; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ordo { max-width: 560px; }
  .index-list { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
  .index-list li { border-left: none !important; border-bottom: 1px solid var(--line); }
  .split, .split-rev { grid-template-columns: 1fr; gap: 44px; }
  .split .split-media { order: -1; }
  .history-layout { grid-template-columns: 1fr; }
  .timeline { position: static; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-frame { max-width: 420px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* The full menu (8 links + Give) needs ~1000px; below that it collapses to the menu button */
@media (max-width: 1000px) {
  .nav-toggle {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle-box { display: grid; gap: 5px; }
  .nav-toggle-bar { width: 20px; height: 2px; background: var(--brand); transition: transform .2s ease, opacity .2s ease; }
  .nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a:not(.button) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav .button { margin-top: 16px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container, .narrow { width: calc(100% - 40px); }

  .rail-inner { flex-direction: column; gap: 2px; padding: 10px 0; text-align: center; }


  .ordo { padding: 28px 22px 22px; }
  .ordo-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ordo-row dd { text-align: left; }

  .index-list { grid-template-columns: 1fr; }
  .ix-d { display: none; }
  .index-list a { display: flex; align-items: baseline; gap: 14px; padding: 16px 20px; }

  .sac-row { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
  .sac-n { display: none; }
  .sac-act { justify-self: start; }

  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; text-align: center; }
  .people-grid { grid-template-columns: 1fr; }
  .homily-row { grid-template-columns: minmax(0, 1fr); }
  .homily-badge { justify-self: start; }
  .step-list li { padding-left: 48px; }
}

/* Social links (footer) */
.social-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.social-links svg { flex: none; }
