:root {
  --bg: #faf7f3;
  --surface: #ffffff;
  --ink: #1f1a19;
  --muted: #6b625d;
  --rose: #9b2f3e;
  --rose-deep: #2a0f14;
  --rose-soft: #f7ebe8;
  --gold: #a9853a;
  --gold-light: #ecd3a0;
  --line: #ebe3da;
  --shadow: 0 1px 2px rgba(30,15,10,.04), 0 12px 32px rgba(30,15,10,.08);
  --shadow-lg: 0 30px 70px rgba(30,10,15,.22);
  --radius: 20px;
  --max: 1200px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --surface: #1e1a19;
    --ink: #f2ece6;
    --muted: #b3a8a1;
    --rose: #e4919c;
    --rose-soft: #2f2224;
    --gold: #d6b46c;
    --line: #342d2a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0 0 .45em; letter-spacing: -.01em; }
h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h3 { font-size: 1.55rem; }
h2 em, h1 em { font-style: italic; font-weight: 500; color: var(--rose); }
a { color: var(--rose); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 14px;
}
.on-dark .tag, .tag.light { color: var(--gold-light); }
.lead { color: var(--muted); font-size: 1.1rem; margin: 0; max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* Header */
header.site {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent; color: #fff;
}
header.site.solid { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); color: var(--ink); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.emblem { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 4px 10px rgba(40,10,15,.35)); transition: transform .4s ease; }
.brand:hover .emblem { transform: rotate(-8deg) scale(1.05); }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark .name { font-family: var(--serif); font-size: 1.62rem; font-weight: 600; letter-spacing: .01em; }
.wordmark small { display: block; font-family: var(--serif); font-style: italic; font-size: .98rem; font-weight: 500; letter-spacing: .02em; color: var(--gold-light); margin-top: 4px; }
.wordmark small i { font-style: normal; opacity: .7; padding: 0 2px; }
header.site.solid .wordmark small { color: var(--gold); }
nav { display: flex; align-items: center; gap: 28px; }
nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
nav ul a { display: block; color: inherit; text-decoration: none; font-weight: 500; font-size: .93rem; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
nav ul a:hover { background: rgba(255,255,255,.12); }
header.site.solid nav ul a:hover { background: var(--rose-soft); color: var(--rose); }
nav ul a[aria-current="page"] { background: rgba(255,255,255,.16); }
header.site.solid nav ul a[aria-current="page"] { background: var(--rose-soft); color: var(--rose); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--rose); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(155,47,62,.35); }
.nav-extra { display: none; }
.menu-btn { display: none; background: none; border: 1px solid currentColor; border-radius: 999px; padding: 8px 16px; color: inherit; font: inherit; font-weight: 600; font-size: .9rem; position: relative; z-index: 2; cursor: pointer; }

/* Accessibility */
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--rose); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Inner page banner */
.page-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #120708; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 12s ease-out forwards; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,6,9,.85), rgba(18,6,9,.35)), linear-gradient(0deg, rgba(18,6,9,.8), transparent 55%); }
.page-hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: 72px; }
.page-hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); margin: 0 0 .15em; }
.page-hero h1 em { color: var(--gold-light); }
.page-hero p { font-size: 1.15rem; max-width: 600px; margin: 0; color: rgba(255,255,255,.88); }
.page-hero .credit { position: absolute; z-index: 2; right: 24px; bottom: 22px; font-size: .75rem; color: rgba(255,255,255,.6); }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(236,211,160,.35); backdrop-filter: blur(10px);
  color: #fff; text-decoration: none; font-size: .88rem; font-weight: 500; transition: background .2s, color .2s, border-color .2s;
}
.hero-links a::after { content: "↓"; font-size: .8rem; color: var(--gold-light); transition: transform .2s; }
.hero-links a:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--rose-deep); }
.hero-links a:hover::after { color: var(--rose-deep); transform: translateY(2px); }
[id] { scroll-margin-top: 96px; }
.foot-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.foot-brand .emblem { width: 64px; height: 64px; }
.foot-brand .name { margin-bottom: 0; }

/* Home: this week at St Therese */
.week { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.week a { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.week a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--rose) 40%, var(--line)); }
.week .label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.week .label i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--rose)); }
.week .val strong { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; font-weight: 600; }
.week .val span { display: block; color: var(--muted); font-size: .88rem; margin-top: 6px; line-height: 1.5; }
.week .go { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--rose); }

/* Home: explore cards */
.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.explore a { position: relative; display: block; aspect-ratio: 3 / 4.2; border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow-lg); background: #1a0c0e; }
.explore img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.explore a:hover img { transform: scale(1.06); }
.explore a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(15,5,8,.9)); }
.explore .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px; }
.explore h3 { font-size: 1.9rem; margin: 0 0 6px; }
.explore p { margin: 0 0 14px; font-size: .92rem; color: rgba(255,255,255,.82); }
.explore .arrow { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--gold-light); }
.explore a:hover .arrow { gap: 12px; }

/* Mobile quick-action bar */
.action-bar { display: none; }

/* Hero slideshow */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #120708; }
.slides { position: absolute; inset: 0; }
.slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.slides figure.active { opacity: 1; }
.slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.slides figure.active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(18,6,9,.88) 0%, rgba(18,6,9,.55) 45%, rgba(18,6,9,.15) 100%), linear-gradient(0deg, rgba(18,6,9,.85) 0%, transparent 45%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 120px; padding-top: 140px; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 6.6rem); margin: 0 0 .15em; max-width: 12ch; }
.hero h1 em { color: var(--gold-light); }
.hero p.lede { font-size: 1.15rem; max-width: 520px; margin: 0 0 28px; color: rgba(255,255,255,.88); }
.next-mass { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 16px; font-size: .9rem; margin-bottom: 26px; }
.next-mass .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(236,211,160,.6); } 70% { box-shadow: 0 0 0 10px rgba(236,211,160,0); } }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.22); }
.btn.primary { background: #fff; color: var(--rose-deep); }
.btn.ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(6px); }
.btn.rose { background: var(--rose); color: #fff; }
.slide-meta { position: absolute; z-index: 2; right: 24px; bottom: 40px; display: flex; align-items: center; gap: 16px; font-size: .8rem; color: rgba(255,255,255,.75); }
.dots { display: flex; gap: 8px; }
.dots button { width: 26px; height: 3px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.35); cursor: pointer; }
.dots button[aria-current="true"] { background: #fff; }

section { padding: 120px 0; position: relative; }
section.alt { background: var(--surface); }
.section-head { margin-bottom: 52px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
section.alt .card { background: var(--bg); }

/* Framed art */
.art-frame { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #1a0c0e; }
.art-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.art-frame:hover img { transform: scale(1.04); }
.art-frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 18px; color: #fff; background: linear-gradient(transparent, rgba(15,5,8,.85)); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.art-frame figcaption small { display: block; font-family: var(--sans); font-size: .76rem; font-weight: 400; opacity: .78; margin-top: 4px; }

/* Quick info */
.quick { position: relative; z-index: 5; margin-top: -48px; }
.quick .tiles { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.quick a { display: flex; gap: 14px; align-items: center; padding: 24px 28px; text-decoration: none; color: var(--ink); transition: background .2s; }
.quick a + a { border-left: 1px solid var(--line); }
.quick a:hover { background: var(--rose-soft); }
.quick .ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); }
.quick small { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.quick strong { font-weight: 600; }

/* Mass times */
.mass { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: stretch; }
.mass .art-frame { min-height: 520px; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.times .card.feature { background: linear-gradient(165deg, #9b2f3e, #4a1520); color: #fff; border: 0; }
.times .card.feature h3 { color: var(--gold-light); }
.times .card.feature li { border-color: rgba(255,255,255,.18); }
.times .card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.card li:last-child { border-bottom: 0; }
.card li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.card li.today { color: var(--rose); font-weight: 600; }
.times .card.feature li.today { color: var(--gold-light); }
.note { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }

/* Full-bleed art band */
.band { position: relative; color: #fff; text-align: center; padding: 170px 0; overflow: hidden; background: #120708; }
.band > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(18,6,9,.35), rgba(18,6,9,.78)); }
.band blockquote { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.band .wrap { position: relative; z-index: 2; max-width: 860px; }
.band blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.25; }
.band cite { display: block; margin-top: 20px; font-style: normal; letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; color: var(--gold-light); }

/* Welcome */
.welcome { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.welcome .art-frame { aspect-ratio: 4 / 5; }
.steps { display: grid; gap: 22px; margin-top: 32px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.step .num { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.step h3 { font-size: 1.35rem; margin-bottom: .15em; }
.step p { margin: 0; color: var(--muted); }

/* Readings */
.readings-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.readings-aside { position: sticky; top: 104px; }
.readings-aside .art-frame { aspect-ratio: 4 / 5; margin-top: 24px; }
.tabs { display: inline-flex; background: var(--rose-soft); border-radius: 999px; padding: 5px; gap: 4px; margin-bottom: 22px; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .92rem; color: var(--rose); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--rose); color: #fff; }
.day-banner { border-radius: var(--radius); padding: 26px 28px; margin-bottom: 16px; color: #fff; background: linear-gradient(120deg, rgba(42,15,20,.88), rgba(155,47,62,.75)), url("../images/stock/stained-glass.jpg") center / cover; }
.day-banner .date { opacity: .8; font-size: .9rem; }
.day-banner .day { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.2; }
.reading-list { display: grid; gap: 12px; }
details.reading { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .2s; }
details.reading:hover, details[open].reading { box-shadow: var(--shadow); }
section.alt details.reading { background: var(--bg); }
details.reading summary { list-style: none; cursor: pointer; padding: 18px 22px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
details.reading summary::-webkit-details-marker { display: none; }
.reading .label { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.reading .src { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.reading .heading { display: block; font-size: .92rem; color: var(--muted); font-style: italic; }
.reading .chev { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); transition: transform .2s; }
details[open].reading .chev { transform: rotate(180deg); }
.reading .text { padding: 0 22px 22px; max-width: 70ch; }
.reading .text p { margin: 0 0 .8em; }
.reading.gospel .label { color: var(--rose); }
.readings-foot { color: var(--muted); font-size: .82rem; margin-top: 20px; }
.readings-status { padding: 30px; text-align: center; color: var(--muted); }
.skeleton { height: 72px; border-radius: 16px; background: linear-gradient(90deg, var(--line), var(--surface), var(--line)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Trinity */
.trinity { background: radial-gradient(ellipse at 50% 0%, #4a1a22 0%, #1b090c 60%); color: #fff; }
.trinity .lead { color: rgba(255,255,255,.75); }
.trinity h2 em { color: var(--gold-light); }
.triptych { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 22px; align-items: end; margin-top: 56px; }
.triptych .art-frame { aspect-ratio: 3 / 4.2; border: 1px solid rgba(236,211,160,.25); }
.triptych .art-frame.mid { aspect-ratio: 3 / 4.6; }
.glory { max-width: 720px; margin: 56px auto 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.5; color: rgba(255,255,255,.9); }
.glory strong { display: block; font-style: normal; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; font-weight: 600; }

/* Rosary */
.rosary { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.rosary .art-frame { aspect-ratio: 4 / 3.4; }
.mystery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.mystery-tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 500; font-size: .88rem; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.mystery-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.mystery-tabs .today-tag { font-size: .68rem; opacity: .75; margin-left: 6px; }
ol.mysteries { list-style: none; margin: 0; padding: 0; counter-reset: m; display: grid; gap: 8px; }
ol.mysteries li { counter-increment: m; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
ol.mysteries li:last-child { border-bottom: 0; }
ol.mysteries li::before { content: counter(m, upper-roman); color: var(--rose); font-size: 1rem; font-weight: 700; align-self: start; padding-top: 4px; }
ol.mysteries li small { display: block; font-family: var(--sans); font-size: .82rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
ol.mysteries li small b { font-weight: 600; color: var(--ink); }

/* Pray along */
.pray-along {
  margin-top: 72px; border-radius: 28px; padding: 40px 44px 0; color: #fff; overflow: hidden; outline: none;
  background: linear-gradient(140deg, rgba(42,15,20,.94), rgba(110,30,44,.9)), url("../images/stock/stained-glass-2.jpg") center / cover;
  box-shadow: var(--shadow-lg);
}
.pray-along:focus-visible { box-shadow: var(--shadow-lg), 0 0 0 3px var(--gold-light); }
.pa-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.pa-set { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-top: -6px; }
.pa-segs { display: flex; gap: 6px; flex-wrap: wrap; }
.pa-segs span { font-size: .72rem; font-weight: 600; letter-spacing: .06em; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.pa-segs span.done { background: rgba(236,211,160,.18); color: var(--gold-light); }
.pa-segs span.on { background: var(--gold-light); color: var(--rose-deep); }
.pa-beads { display: flex; align-items: center; gap: 10px; margin: 30px 0 10px; min-height: 30px; flex-wrap: wrap; }
.pa-beads i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.18); transition: background .25s, transform .25s, box-shadow .25s; }
.pa-beads i.big { width: 22px; height: 22px; }
.pa-beads i.cross { width: 16px; height: 22px; border-radius: 3px; clip-path: polygon(38% 0, 62% 0, 62% 28%, 100% 28%, 100% 48%, 62% 48%, 62% 100%, 38% 100%, 38% 48%, 0 48%, 0 28%, 38% 28%); }
.pa-beads i.medal { width: 22px; height: 26px; border-radius: 50% 50% 46% 46%; }
.pa-beads i.done { background: rgba(236,211,160,.55); }
.pa-beads i.on { background: var(--gold-light); transform: scale(1.25); box-shadow: 0 0 0 6px rgba(236,211,160,.18), 0 0 22px rgba(236,211,160,.6); }
.pa-body { min-height: 300px; padding: 10px 0 20px; max-width: 820px; }
.pa-body h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 .2em; }
.pa-note { color: var(--gold-light); font-size: .92rem; margin: 0 0 18px; }
.pa-text { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.5; color: rgba(255,255,255,.94); }
.pa-text p { margin: 0 0 .6em; }
.pa-text .vr { font-family: var(--sans); font-size: .95rem; color: rgba(255,255,255,.8); }
.pa-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.7); }
.pa-btn { font: inherit; font-weight: 600; font-size: .95rem; padding: 12px 22px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; }
.pa-btn.primary { background: #fff; color: var(--rose-deep); border-color: #fff; }
.pa-btn:disabled { opacity: .35; cursor: default; }
.pa-progress { height: 4px; margin: 0 -44px; background: rgba(255,255,255,.1); }
.pa-progress i { display: block; height: 100%; width: 0; background: var(--gold-light); transition: width .3s; }

.howto { margin-top: 72px; }
.howto > h3 { font-size: 2rem; margin-bottom: 24px; }
.howto-steps { list-style: none; margin: 0; padding: 0; counter-reset: h; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.howto-steps li { counter-increment: h; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--muted); font-size: .95rem; }
.howto-steps li::before { content: counter(h); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--rose-soft); color: var(--rose); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.howto-steps strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; margin-bottom: 4px; }

/* Learn the faith */
.learn-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.learn-tabs button { font: inherit; font-weight: 500; font-size: .92rem; padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: background .2s, color .2s; }
.learn-tabs button:hover { border-color: var(--rose); }
.learn-tabs button[aria-selected="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.learn-panel { animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.panel-intro { max-width: 760px; margin: 0 auto 36px; text-align: center; color: var(--muted); font-size: 1.08rem; }
.muted { color: var(--muted); }
ul.dots { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; font-size: .94rem; }
ul.dots li { position: relative; padding-left: 18px; }
ul.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.mass-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mass-parts .card { position: relative; }
.mass-parts .card > p { color: var(--muted); margin: 0; }
.part-num { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--rose); opacity: .35; margin-bottom: 8px; }
.tips { margin-top: 24px; padding: 28px 32px; border-radius: var(--radius); background: var(--rose-soft); }
.tips h3 { margin-bottom: 4px; }
.season-now { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; max-width: 820px; margin: 0 auto 36px; padding: 26px 30px; border-radius: var(--radius); color: #fff; }
.season-now .swatch { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.season-now small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: .85; }
.season-now strong { display: block; font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; }
.season-now p { margin: 4px 0 0; opacity: .9; font-size: .95rem; }
.seasons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.seasons .s { border-radius: 16px; padding: 18px; background: var(--bg); border: 1px solid var(--line); border-top: 6px solid var(--c); }
.seasons .s.on { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.seasons .s h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.3rem; }
.seasons .s .when { font-size: .78rem; font-weight: 600; color: var(--rose); margin-bottom: 8px; display: block; }
.seasons .s p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.colours { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 16px; }
.colours div { font-size: .88rem; color: var(--muted); }
.colours i { display: block; width: 100%; height: 10px; border-radius: 6px; margin-bottom: 12px; }
.colours strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.prayer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.prayer-list details { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.prayer-list summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.prayer-list summary::-webkit-details-marker { display: none; }
.prayer-list summary::after { content: "+"; font-family: var(--sans); font-size: 1.3rem; color: var(--rose); transition: transform .2s; }
.prayer-list details[open] summary::after { transform: rotate(45deg); }
.prayer-list .pt { padding: 0 22px 22px; font-family: var(--sans); font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.prayer-list .pt p { margin: 0 0 .6em; }
.prayer-list .pt .vr { font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
ol.numbered { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 10px; }
ol.numbered li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
ol.numbered li::before { content: counter(n); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--rose); }
blockquote.great { margin: 28px 0 0; padding: 24px 26px; border-radius: 16px; background: var(--rose-soft); font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--rose); }
blockquote.great cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: .82rem; color: var(--muted); }
ul.mercy { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
ul.mercy li { padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.church-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.church-items .card p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Parish */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.gallery .art-frame:first-child { grid-row: span 2; }
.facts { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.facts strong { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--rose); }
.facts span { font-size: .85rem; color: var(--muted); }

/* Patron */
.patron-banner { position: relative; border-radius: 28px; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); margin-bottom: 72px; }
.patron-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.patron-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(20,6,10,.88)); }
.patron-banner .txt { position: relative; z-index: 1; color: #fff; padding: 44px; max-width: 760px; }
.patron-banner h2 em { color: var(--gold-light); }
.patron-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; margin-bottom: 64px; }
.quote-card { padding: 36px; border-radius: var(--radius); background: var(--rose-soft); }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.75rem; line-height: 1.32; color: var(--rose); }
.quote-card cite { display: block; margin-top: 14px; font-style: normal; font-size: .85rem; color: var(--muted); }
.life { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.life figure { margin: 0; }
.life .img { aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.life img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: sepia(.25) contrast(1.02); transition: transform .6s, filter .6s; }
.life figure:hover img { transform: scale(1.05); filter: sepia(0); }
.life figcaption { margin-top: 12px; }
.life figcaption strong { display: block; font-family: var(--serif); font-size: 1.3rem; }
.life figcaption span { font-size: .85rem; color: var(--muted); }

/* Prayer */
.prayer { color: #fff; text-align: center; padding: 150px 0; background: radial-gradient(ellipse at center, rgba(70,18,28,.8), rgba(20,5,9,.94) 75%), url("../images/stock/rose-hymnal.jpg") center / cover; }
.prayer .wrap { max-width: 800px; }
.prayer h2 { color: #fff; }
.prayer p.text { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 1.85rem); line-height: 1.5; font-style: italic; color: rgba(255,255,255,.93); margin: 0 0 22px; }
.prayer .amen { font-family: var(--serif); font-style: italic; color: var(--gold-light); font-size: 1.8rem; }

/* Sacred art gallery */
.art { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }
.art .art-frame { cursor: zoom-in; box-shadow: var(--shadow); }
.art .tall { grid-row: span 2; }
.art .wide { grid-column: span 2; }
.art .big { grid-column: span 2; grid-row: span 2; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,4,6,.94); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox p { color: #fff; text-align: center; font-family: var(--serif); font-size: 1.3rem; margin: 16px 0 0; }
.lightbox p small { display: block; font-family: var(--sans); font-size: .8rem; opacity: .7; }
.lightbox button { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* Sacraments */
.sacraments { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: stretch; }
.sacraments .art-frame { min-height: 560px; }
.sacraments .art-frame img { object-position: center 30%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 .card { padding: 24px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.grid2 .card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--rose) 50%, var(--line)); box-shadow: var(--shadow-lg); }
.grid2 .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--rose-soft); color: var(--rose); margin-bottom: 14px; }
.grid2 h3 { font-size: 1.35rem; }
.grid2 .card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact dl { margin: 0; }
.contact dt { font-weight: 600; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; margin-top: 22px; }
.contact dt:first-child { margin-top: 0; }
.contact dd { margin: 4px 0 0; font-size: 1.05rem; }
.map { border: 0; width: 100%; height: 100%; min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
footer { position: relative; color: rgba(255,255,255,.72); padding: 88px 0 30px; font-size: .9rem; background: linear-gradient(rgba(20,6,10,.9), rgba(14,4,7,.97)), url("../images/stock/church-light.jpg") center / cover; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
footer h4 { margin: 0 0 14px; color: var(--gold-light); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer .name { font-family: var(--serif); font-size: 2.2rem; color: #fff; line-height: 1.05; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,.85); text-decoration: none; }
footer a:hover { color: var(--gold-light); }
footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .78rem; color: rgba(255,255,255,.5); }
footer .bottom a { color: rgba(255,255,255,.7); text-decoration: underline; }

/* Reveal */
.reveals .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveals .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .slides figure.active img, .page-hero > img { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
  .mass, .welcome, .readings-layout, .rosary, .two, .patron-intro, .contact, .sacraments { grid-template-columns: 1fr; gap: 40px; }
  .mass .art-frame, .sacraments .art-frame { min-height: 0; aspect-ratio: 16 / 10; }
  .readings-aside { position: static; }
  .readings-aside .art-frame, .welcome .art-frame { aspect-ratio: 16 / 10; }
  .quick .tiles { grid-template-columns: 1fr; }
  .quick a + a { border-left: 0; border-top: 1px solid var(--line); }
  .life { grid-template-columns: 1fr 1fr; }
  .art { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .triptych { grid-template-columns: 1fr 1fr; }
  .howto-steps, .mass-parts, .church-items { grid-template-columns: 1fr 1fr; }
  .seasons { grid-template-columns: repeat(3, 1fr); }
  .colours { grid-template-columns: repeat(3, 1fr); }
  .prayer-list, .two-col { grid-template-columns: 1fr; }
  .learn-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -24px 32px; padding: 0 24px 6px; scrollbar-width: none; }
  .learn-tabs button { flex: none; }
  .triptych .art-frame.mid { grid-column: span 2; grid-row: 1; aspect-ratio: 4 / 3; }
  footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .week, .explore { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) and (min-width: 881px) {
  nav { gap: 14px; }
  nav ul a { padding: 8px 10px; font-size: .88rem; }
}
@media (max-width: 880px) {
  .menu-btn { display: block; }
  nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 28px;
    padding: 96px 28px 40px; color: #fff; overflow-y: auto;
    background: linear-gradient(160deg, rgba(42,15,20,.97), rgba(20,6,10,.98)), url("../images/stock/church-light.jpg") center / cover;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu-open nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .menu-open header.site { color: #fff; background: transparent; border-color: transparent; backdrop-filter: none; }
  nav ul { flex-direction: column; gap: 4px; }
  nav ul a { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; padding: 6px 0; border-radius: 0; background: none !important; color: #fff !important; opacity: .85; }
  nav ul a[aria-current="page"] { opacity: 1; color: var(--gold-light) !important; }
  .nav-cta { align-self: flex-start; padding: 14px 24px; font-size: 1rem; }
  .nav-extra { display: block; font-size: .92rem; color: rgba(255,255,255,.7); line-height: 1.8; }
  .nav-extra a { color: var(--gold-light); }
  .action-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 35;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line);
    border-radius: 18px; box-shadow: 0 12px 34px rgba(30,10,15,.25); overflow: hidden;
  }
  .action-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; color: var(--ink); text-decoration: none; font-size: .72rem; font-weight: 600; }
  .action-bar a + a { border-left: 1px solid var(--line); }
  .action-bar svg { color: var(--rose); }
  .menu-open .action-bar { display: none; }
  body { padding-bottom: 84px; }
  .jump { top: 76px; }
  section { padding: 80px 0; }
  .page-hero { min-height: 52vh; }
  .page-hero .wrap { padding-bottom: 48px; }
  .page-hero .credit { display: none; }
  .band, .prayer { padding: 110px 0; }
  .slide-meta { left: 24px; right: auto; bottom: 28px; }
  .slide-meta span { display: none; }
  .hero .wrap { padding-bottom: 96px; }
}
@media (max-width: 600px) {
  .times, .grid2, .howto-steps, .mass-parts, .church-items, .seasons { grid-template-columns: 1fr; }
  .colours { grid-template-columns: 1fr 1fr; }
  .pray-along { padding: 28px 22px 0; margin-left: -8px; margin-right: -8px; }
  .pa-progress { margin: 0 -22px; }
  .pa-body { min-height: 360px; }
  .pa-btn { padding: 10px 16px; font-size: .88rem; white-space: nowrap; }
  .pa-controls { gap: 8px; font-size: .78rem; text-align: center; }
  .pa-beads { gap: 7px; }
  .pa-beads i { width: 11px; height: 11px; }
  .pa-beads i.big { width: 17px; height: 17px; }
  .season-now { grid-template-columns: 1fr; gap: 14px; }
  .times .card.wide { grid-column: auto; grid-template-columns: 1fr; gap: 6px; }
  .gallery { grid-template-rows: 170px 170px; }
  .patron-banner { min-height: 360px; }
  .patron-banner .txt { padding: 26px; }
  .week { grid-template-columns: 1fr; }
  .explore { grid-template-columns: 1fr; }
  .explore a { aspect-ratio: 16 / 11; }
}

/* Trinity: the three Persons */
.trinity-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.trinity-facts div { padding: 22px 24px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(236,211,160,.2); }
.trinity-facts strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-light); margin-bottom: 4px; }
.trinity-facts span { color: rgba(255,255,255,.78); font-size: .95rem; }
.life figure { cursor: zoom-in; }
@media (max-width: 760px) { .trinity-facts { grid-template-columns: 1fr; } }

.learn-tabs { scroll-margin-top: 150px; }
.brand { position: relative; z-index: 2; }
@media (max-width: 600px) { .hero-links { gap: 7px; margin-top: 22px; } .hero-links a { padding: 6px 12px; font-size: .8rem; } }

/* Learn: picture-led topics */
.pic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pic-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.pic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pic-card .img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1a0c0e; }
.pic-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.pic-card:hover .img img { transform: scale(1.06); }
.pic-card .num { position: absolute; left: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f8e4b0, #c99a45); color: #3a2508; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.pic-card .body { padding: 18px 20px 20px; }
.pic-card h3 { font-size: 1.4rem; margin-bottom: .2em; }
.pic-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.pic-card details { margin-top: 12px; }
.pic-card summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--rose); list-style: none; }
.pic-card summary::-webkit-details-marker { display: none; }
.pic-card summary::after { content: " +"; }
.pic-card details[open] summary::after { content: " –"; }
.pic-card ul.dots { margin-top: 10px; font-size: .88rem; }
.good-to-know { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.good-to-know > div { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--rose-soft); }
.gk-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--rose); }
.good-to-know strong { font-family: var(--serif); font-size: 1.2rem; line-height: 1.1; }
.good-to-know span:last-child { font-size: .85rem; color: var(--muted); }
#lp-year .colours { margin-top: 28px; }
#lp-year .colours span { display: block; }
.split-art { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: stretch; }
.split-art + .split-art { margin-top: 56px; }
.split-art.flip { grid-template-columns: 1.2fr .8fr; }
.split-art.flip > figure { order: 2; }
.split-art .art-frame { min-height: 420px; }
.split-art h3 { font-size: 2rem; }
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.tile:hover { border-color: color-mix(in srgb, var(--rose) 45%, var(--line)); transform: translateX(3px); }
.tile b { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--rose); text-align: center; }
.tile span { font-weight: 500; font-size: .95rem; }
.tile-grid.two .tile { grid-template-columns: 1fr; gap: 2px; }
.tile-grid.two .tile b { text-align: left; font-size: 1.15rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.tile-grid.two .tile span { color: var(--rose); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }
.mercy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mercy-card { border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mercy-card .img { position: relative; aspect-ratio: 16 / 8; }
.mercy-card .img img { width: 100%; height: 100%; object-fit: cover; }
.mercy-card .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(20,6,10,.85)); }
.mercy-card h3 { position: absolute; left: 24px; bottom: 18px; z-index: 1; color: #fff; font-size: 2rem; margin: 0; }
.mercy-card h3 small { display: block; font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--gold-light); margin-top: 4px; }
.chips { list-style: none; margin: 0; padding: 22px 24px 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--rose-soft); color: var(--rose); font-weight: 500; font-size: .92rem; }
@media (max-width: 980px) {
  .pic-grid, .good-to-know { grid-template-columns: 1fr 1fr; }
  .split-art, .split-art.flip, .mercy-cards { grid-template-columns: 1fr; }
  .split-art.flip > figure { order: 0; }
  .split-art .art-frame { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .good-to-know, .tile-grid { grid-template-columns: 1fr; }
  .pic-grid { gap: 12px; }
  .pic-card .body { padding: 14px; }
  .pic-card h3 { font-size: 1.2rem; }
  .pic-card p { font-size: .85rem; }
}

@media (max-width: 880px) { .hero::before { background: linear-gradient(0deg, rgba(18,6,9,.94) 0%, rgba(18,6,9,.72) 55%, rgba(18,6,9,.45) 100%); } }

/* Footer: a rounded panel floating just clear of the section above */
footer { margin: 16px; border-radius: 32px; background: #1d0a0f; border-top: 0; border-image: none; overflow: hidden; }
@media (max-width: 600px) { footer { margin: 10px; border-radius: 24px; } }

/* Welcome steps: a photo instead of a number */
.step { grid-template-columns: 68px 1fr; gap: 18px; align-items: center; }
.step-img { width: 68px; height: 68px; border-radius: 18px; object-fit: cover; box-shadow: var(--shadow); }

/* Commandment tiles: a small gold diamond instead of a numeral */
.tile { grid-template-columns: 10px 1fr; gap: 14px; }
.tile::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: linear-gradient(135deg, #f0d08b, #a9853a); }
.tile-grid.two .tile::before { display: none; }
.howto-steps li::before { display: none; }
.pa-segs { gap: 5px; align-items: center; }
.pa-segs span { width: 30px; height: 4px; padding: 0; border-radius: 2px; background: rgba(255,255,255,.18); }
.pa-segs span.done { background: rgba(236,211,160,.55); }
.pa-segs span.on { background: var(--gold-light); width: 46px; }
/* Emblem: a slender gold cross */
.emblem { width: 30px; height: 42px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.brand:hover .emblem { transform: none; }
.foot-brand .emblem { width: 40px; height: 56px; }
/* Emblem: a photograph of a gilded crucifix */
.emblem { width: auto; height: 48px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.foot-brand .emblem { width: auto; height: 72px; }
@media (max-width: 600px) { .emblem { height: 42px; } }

/* Pray along: the painting of the current mystery behind the prayer */
.pray-along { position: relative; background: #1a0a0d; isolation: isolate; }
.pa-art { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center 30%; transition: background-image .8s ease; }
.pa-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,6,10,.94) 0%, rgba(20,6,10,.82) 45%, rgba(20,6,10,.45) 100%); }
.pa-credit { position: absolute; right: 22px; bottom: 16px; font-size: .74rem; color: rgba(255,255,255,.6); font-style: italic; font-family: var(--serif); z-index: 1; }

/* Mysteries: a painting beside each one */
ol.mysteries li { grid-template-columns: 64px 1fr; align-items: center; }
ol.mysteries li::before { display: none; }
ol.mysteries li img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; object-position: center 25%; box-shadow: var(--shadow); }
ol.mysteries li em { display: block; font-family: var(--sans); font-style: italic; font-size: .76rem; font-weight: 400; color: var(--gold); margin-top: 2px; }

/* Painting caption on picture cards */
.pic-card .art-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-family: var(--serif); font-style: italic; font-size: .9rem; color: rgba(255,255,255,.9); background: linear-gradient(transparent, rgba(15,5,8,.8)); }
.sacrament-cards .pic-card .img { aspect-ratio: 4 / 4.4; }
@media (max-width: 600px) { .pa-credit { display: none; } .sacrament-cards .pic-card .img { aspect-ratio: 4 / 3.4; } }

/* Learn: the Mass explained, step by step */
.mass-intro { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: center; margin-bottom: 36px; }
.mass-intro h3 { font-size: 2.1rem; }
.mass-intro p { color: var(--muted); margin: 0 0 12px; font-size: 1.04rem; }
.posture-key { display: grid; gap: 10px; padding: 24px 26px; border-radius: var(--radius); background: var(--rose-soft); font-size: .95rem; }
.posture-key div { display: flex; align-items: center; gap: 12px; }
.pk-title { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.posture { display: inline-block; flex: none; min-width: 64px; text-align: center; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.posture.stand { background: #f4e7c8; color: #6b4c12; }
.posture.sit { background: #e7e2dc; color: #4d4540; }
.posture.kneel { background: #f3d6db; color: #7d2230; }
.posture.walk { background: #dfe7d6; color: #3b5a28; }
.mass-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 48px; }
.mo-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.mo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.mo-card:hover img { transform: scale(1.06); }
.mo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(15,5,8,.88)); }
.mo-card span { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; font-size: .82rem; color: rgba(255,255,255,.82); }
.mo-card strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff; line-height: 1.15; }
.mass-part { margin-top: 40px; scroll-margin-top: 100px; }
.mp-head { position: relative; height: 200px; border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); }
.mp-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mp-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,6,9,.88), rgba(18,6,9,.35)); }
.mp-head div { position: relative; z-index: 1; padding: 26px 30px; color: #fff; }
.mp-head h3 { font-size: 2.2rem; margin: 0 0 4px; }
.mp-head p { margin: 0; color: rgba(255,255,255,.85); }
.mp-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-steps li { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.ms-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ms-top h4 { margin: 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.mp-steps p { margin: 0; color: var(--muted); font-size: .95rem; }
.say { margin-top: auto; padding: 12px 16px; border-radius: 12px; background: var(--rose-soft); border-left: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; color: var(--ink); display: grid; gap: 4px; }
.say .line b { font-family: var(--sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--rose); margin-right: 6px; }
@media (max-width: 980px) { .mass-intro { grid-template-columns: 1fr; } .mass-overview { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .mp-steps { grid-template-columns: 1fr; } .mp-head { height: 160px; } .mp-head h3 { font-size: 1.8rem; } }

/* Mass explained: one timeline, read top to bottom */
.mass-overview, .mp-head { display: none; }
.mass-parts-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 8px; }
.mass-parts-nav a { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9rem; }
.mass-parts-nav a:hover { border-color: var(--rose); color: var(--rose); }
.mass-parts-nav a + a::before { content: "→"; color: var(--gold); margin: 0 12px 0 -4px; display: none; }
.mass-parts-nav a:not(:last-child)::after { content: "→"; color: var(--gold); margin-left: 12px; }
.mass-part { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: start; margin-top: 64px; }
.mp-art { position: sticky; top: 100px; margin: 0; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: #1a0c0e; }
.mp-art img { width: 100%; height: 100%; object-fit: cover; }
.mp-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(15,5,8,.9)); }
.mp-art figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; color: #fff; }
.mp-art h3 { font-size: 2rem; margin: 0 0 6px; }
.mp-art p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.85); }
.mp-steps { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; grid-template-columns: 1fr; gap: 14px; }
.mp-steps::before { content: ""; position: absolute; left: 8px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 25%, transparent)); }
.mp-steps li { position: relative; }
.mp-steps li::before { content: ""; position: absolute; left: -28px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); }
.mp-steps .say { margin-top: 4px; }
.mp-steps li.ms-sub { background: none; border: 0; padding: 26px 0 2px; }
.mp-steps li.ms-sub::before { top: 36px; width: 18px; height: 18px; left: -30px; background: var(--gold); border-color: var(--gold); }
.ms-sub h4 { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--rose); margin: 0 0 2px; }
.ms-sub p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .mass-part { grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
  .mp-art { position: relative; top: 0; aspect-ratio: 16 / 9; }
}

/* Resources page */
.res-section { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.res-art { position: sticky; top: 100px; aspect-ratio: 3 / 4; }
.res-art img { object-position: center 30%; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.res-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
section.alt .res-card { background: var(--bg); }
.res-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--rose) 45%, var(--line)); }
.res-card h3 { margin: 0; font-size: 1.45rem; }
.res-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.res-type { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; }
.res-type.yt { background: #fbe1e1; color: #b3261e; }
.res-type.web { background: var(--rose-soft); color: var(--rose); }
.res-type.app { background: #e4e9f5; color: #34497a; }
.res-type.pod { background: #ece3f4; color: #5b3b8c; }
.res-type.book { background: #f4e7c8; color: #6b4c12; }
.res-go { margin-top: auto; padding-top: 6px; font-size: .84rem; font-weight: 600; color: var(--rose); }
.res-note { margin: 0; text-align: center; color: var(--muted); font-size: .92rem; }
@media (max-width: 980px) {
  .res-section { grid-template-columns: 1fr; gap: 24px; }
  .res-art { position: relative; top: 0; aspect-ratio: 16 / 8; }
}
@media (max-width: 640px) { .res-grid { grid-template-columns: 1fr; } }
@media (max-width: 1180px) and (min-width: 881px) { nav ul a { padding: 8px 9px; font-size: .86rem; } nav { gap: 12px; } }
.res-type.series { background: #e3eee9; color: #2f5d4a; }

/* Inner page banners fill the screen, like the Home banner */
.page-hero { min-height: 100vh; min-height: 100svh; }
.page-hero .wrap { padding-bottom: 120px; }
.page-hero h1 { font-size: clamp(3.2rem, 8vw, 6.6rem); }
@media (max-width: 880px) { .page-hero { min-height: 100svh; } .page-hero .wrap { padding-bottom: 96px; } }

/* Pray along v2: one fixed size, the whole painting framed beside the prayer */
.pray-along { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; height: 660px; padding: 40px 44px 46px; background: #140709; }
.pa-art { display: none; }
.pa-bg { position: absolute; inset: -60px; z-index: -1; background-size: cover; background-position: center; filter: blur(30px) brightness(.3) saturate(1.15); transform: scale(1.1); transition: background-image .8s ease; }
.pa-main { display: flex; flex-direction: column; min-height: 0; }
.pa-beads { margin: 24px 0 8px; }
.pa-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 6px 12px 0; scrollbar-width: thin; scrollbar-color: rgba(236,211,160,.35) transparent; }
.pa-text { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }
.pa-text.medium { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; }
.pa-text.long { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.5; }
.pa-controls { padding: 20px 0 0; }
.pa-figure { margin: 0; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.pa-frame { flex: 1; min-height: 0; display: grid; place-items: center; padding: 14px; border-radius: 18px; background: rgba(0,0,0,.28); border: 1px solid rgba(236,211,160,.22); }
.pa-frame img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 28px rgba(0,0,0,.55)); }
.pa-figure figcaption, .pa-credit { position: static; display: block; text-align: center; font-family: var(--serif); font-style: italic; font-size: .98rem; color: rgba(255,255,255,.72); }
.pa-figure figcaption strong { display: block; font-style: normal; font-weight: 600; font-size: 1.15rem; color: #fff; }
.pa-progress { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
@media (max-width: 900px) {
  .pray-along { grid-template-columns: minmax(0, 1fr); grid-template-rows: 210px minmax(0, 1fr); gap: 20px; height: 860px; padding: 24px 22px 30px; }
  .pa-figure { order: -1; flex-direction: row; align-items: stretch; gap: 16px; }
  .pa-frame { flex: 0 0 46%; padding: 8px; }
  .pa-figure figcaption { align-self: center; text-align: left; font-size: .9rem; }
  .pa-progress { margin: 0; }
}
@media (max-width: 600px) {
  .pray-along { height: 820px; margin-left: -8px; margin-right: -8px; }
  .pa-text { font-size: 1.2rem; }
  .pa-text.medium { font-size: 1.05rem; }
  .pa-text.long { font-size: .95rem; }
  .pa-figure figcaption, .pa-credit { display: block; }
}
.pray-along { height: 690px; }
.pa-text.long .vr { font-size: .82rem; }
@media (max-width: 900px) { .pray-along { height: 880px; } }
@media (max-width: 600px) { .pray-along { height: 860px; } }
@media (max-width: 600px) {
  .pray-along { grid-template-rows: 150px minmax(0, 1fr); }
  .pa-head { flex-direction: column; gap: 10px; }
  .pa-head .tag { display: none; }
  .pa-set { font-size: 1.05rem; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .pa-segs span { width: 22px; }
  .pa-segs span.on { width: 34px; }
  .pa-beads { margin: 14px 0 6px; }
  .pa-body h3 { font-size: 1.8rem; }
}
/* Paintings always fit inside the frame, whatever their shape */
.pa-frame { position: relative; display: block; padding: 0; overflow: hidden; }
.pa-frame img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.pa-figure figcaption { flex: none; }
@media (max-width: 900px) { .pa-frame img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); } }

/* ---------- Modern finishing touches ---------- */

/* Smooth cross-fade between pages (supported browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* Typography: balanced headings, tidy paragraphs */
h1, h2, h3, h4 { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }
h2 { letter-spacing: -.015em; }
.lead { line-height: 1.65; }
::selection { background: #ecd3a0; color: #2a0f14; }
html { scrollbar-color: color-mix(in srgb, var(--rose) 45%, transparent) transparent; scrollbar-width: thin; }

/* Images fade in as they arrive */
img.fade { opacity: 0; transition: opacity .7s ease; }
img.fade.loaded { opacity: 1; }

/* Menu bar slims down once you scroll */
header.site .wrap { transition: min-height .3s ease; }
header.site.solid .wrap { min-height: 64px; }
header.site.solid { box-shadow: 0 6px 24px rgba(30,10,15,.06); }
.emblem { transition: height .3s ease; }
header.site.solid .emblem { height: 40px; }
header.site.solid .wordmark .name { font-size: 1.45rem; }
.wordmark .name { transition: font-size .3s ease; }
@media (max-width: 880px) { nav { padding-top: 96px; } }

/* Reading progress line */
.progress-line { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #a9853a, #ecd3a0); pointer-events: none; }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 34; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); color: var(--rose);
  box-shadow: 0 10px 28px rgba(30,10,15,.16); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
@media (max-width: 880px) { .to-top { right: 16px; bottom: 96px; width: 42px; height: 42px; } }

/* Consistent, gentle card motion */
.card, .pic-card, .res-card, .art-frame, .mo-card, .explore a { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease; }
.btn, .pa-btn, .nav-cta { transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.pa-btn:not(:disabled):hover { transform: translateY(-1px); }
.pa-btn:not(.primary):not(:disabled):hover { background: rgba(255,255,255,.08); }

/* Section headings: a little more air beneath, consistent width */
.section-head { max-width: 760px; }
.section-head.center { max-width: 760px; }
.section-head h2 { margin-bottom: .3em; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  img.fade { opacity: 1; transition: none; }
  .to-top, header.site .wrap, .emblem { transition: none; }
}
/* Emblem: a round portrait of St Thérèse in a fine gold ring */
.emblem.portrait { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: none; box-shadow: 0 0 0 1.5px #c9a24f, 0 0 0 4px rgba(201,162,79,.22), 0 6px 14px rgba(0,0,0,.3); transition: width .3s ease, height .3s ease; }
header.site.solid .emblem.portrait { width: 40px; height: 40px; }
.foot-brand .emblem.portrait { width: 68px; height: 68px; }
@media (max-width: 600px) { .emblem.portrait { width: 42px; height: 42px; } }
/* Emblem: a cameo-style portrait in a gilt ring */
.emblem.portrait {
  width: 54px; height: 54px; padding: 2.5px; border-radius: 50%; object-fit: cover; box-sizing: border-box;
  background: conic-gradient(from 210deg, #8f6a26, #f6e2b0, #c99a45, #fbecc4, #9c7529, #e9c886, #8f6a26);
  box-shadow: inset 0 0 0 3.5px #f7e8c6, 0 0 0 1px rgba(110,80,30,.35), 0 6px 16px rgba(20,8,10,.35);
}
header.site.solid .emblem.portrait { width: 44px; height: 44px; padding: 2px; }
.foot-brand .emblem.portrait { width: 74px; height: 74px; padding: 3px; }
@media (max-width: 600px) { .emblem.portrait { width: 46px; height: 46px; } }
/* Cameo emblem: St Thérèse framed in polished gold */
.cameo {
  position: relative; flex: none; width: 60px; height: 60px; padding: 4px; border-radius: 50%;
  background: conic-gradient(from 200deg, #7d5a1c, #f8e7b6 12%, #c99a45 28%, #fdf0cc 42%, #9c7529 58%, #ecd08f 74%, #7d5a1c);
  box-shadow: 0 0 0 1px rgba(80,55,15,.45), 0 8px 20px rgba(20,8,10,.38);
  transition: width .3s ease, height .3s ease;
}
.cameo::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #fbf0d4, inset 0 0 10px rgba(30,12,6,.45); pointer-events: none; }
.cameo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
header.site.solid .cameo { width: 48px; height: 48px; padding: 3px; }
header.site.solid .cameo::after { inset: 3px; }
.foot-brand .cameo { width: 80px; height: 80px; padding: 5px; }
.foot-brand .cameo::after { inset: 5px; }
@media (max-width: 600px) { .cameo { width: 50px; height: 50px; padding: 3px; } .cameo::after { inset: 3px; } }

/* ---------- Cards: warm parchment with a fine gold edge ---------- */
:root {
  --card-bg: linear-gradient(180deg, #fffdf9 0%, #fbf5ec 100%);
  --card-edge: rgba(169,133,58,.24);
  --card-edge-hover: rgba(169,133,58,.55);
  --card-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 22px 44px -28px rgba(70,30,22,.38), 0 2px 6px -2px rgba(70,30,22,.08);
  --card-shadow-hover: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 56px -26px rgba(70,30,22,.45), 0 4px 10px -4px rgba(70,30,22,.1);
  --pill: #f3e7cc;
  --pill-ink: #6b4c12;
}
@media (prefers-color-scheme: dark) {
  :root {
    --card-bg: linear-gradient(180deg, #241e1c 0%, #1f1a18 100%);
    --card-edge: rgba(214,180,108,.18);
    --card-edge-hover: rgba(214,180,108,.45);
    --card-shadow: 0 22px 44px -28px rgba(0,0,0,.7);
    --card-shadow-hover: 0 30px 56px -26px rgba(0,0,0,.8);
    --pill: #3a3020;
    --pill-ink: #ecd3a0;
  }
}
.card, section.alt .card,
.res-card, section.alt .res-card,
.week a, .mp-steps li:not(.ms-sub), .tile, details.reading, section.alt details.reading,
.prayer-list details, .howto-steps li, .good-to-know > div, .posture-key, ul.mercy li {
  background: var(--card-bg);
  border: 1px solid var(--card-edge);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
}
.res-card:hover, .week a:hover, .grid2 .card:hover, details.reading:hover, .prayer-list details:hover, .mp-steps li:not(.ms-sub):hover, .tile:hover, .howto-steps li:hover {
  border-color: var(--card-edge-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}
.tile:hover { transform: translateY(-2px); }
.card { padding: 30px; }
.card h3, .res-card h3, .week .val strong { letter-spacing: -.005em; }
.good-to-know > div { border-radius: 18px; }
.gk-ico { background: var(--pill); color: var(--rose); }
ul.mercy li { border-radius: 14px; box-shadow: none; }
.tile { border-radius: 16px; }
.howto-steps li { padding: 26px; }

/* The weekend card keeps its rich rose, with a softer finish */
.times .card.feature { background: linear-gradient(160deg, #a6394a 0%, #6e1f2c 55%, #3e1219 100%); border: 0; box-shadow: 0 30px 60px -30px rgba(90,20,30,.7); }

/* ---------- Mass times: no ruled lines, times in gold pills ---------- */
.times .card ul { display: grid; gap: 6px; }
.times .card li { border: 0; padding: 9px 12px; margin: 0 -12px; border-radius: 12px; align-items: center; transition: background .2s; }
.times .card li:hover { background: rgba(169,133,58,.08); }
.times .card li span:last-child { padding: 4px 12px; border-radius: 999px; background: var(--pill); color: var(--pill-ink); font-size: .9rem; }
.times .card li.today { background: var(--rose-soft); color: var(--rose); }
.times .card li.today span:first-child::after { content: "Today"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--rose); color: #fff; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.times .card.feature li:hover { background: rgba(255,255,255,.08); }
.times .card.feature li span:last-child { background: rgba(255,255,255,.14); color: #fff; }
.times .card.feature li.today { background: rgba(255,255,255,.12); color: #fff; }
.times .card.feature li.today span:first-child::after { background: var(--gold-light); color: var(--rose-deep); }
.times .card h3 { margin-bottom: .55em; }

/* ---------- This week cards: icon in a tinted circle ---------- */
.week a { padding: 26px; gap: 14px; }
.week .label { gap: 12px; }
.week .label .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--rose)) 14%, transparent); color: var(--c, var(--rose)); flex: none; }
.week .go { display: inline-flex; align-items: center; gap: 6px; }
.week a:hover .go { gap: 10px; }

/* Preview note shown while the parish reviews the site */
.preview-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 28px; display: flex; align-items: center; justify-content: center; padding: 0 16px; background: #1d0a0f; color: #ecd3a0; font-size: .74rem; letter-spacing: .04em; text-align: center; }
body:has(.preview-bar) header.site { top: 28px; }
body:has(.preview-bar) .progress-line { top: 28px; }

/* ---------- v38: new type, menu icon, St Thérèse section, mobile fixes ---------- */
body { font-size: 17px; }
h1, h2, h3 { letter-spacing: -.005em; line-height: 1.12; }
.hero h1, .page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.04; }
.wordmark .name { font-size: 1.4rem; }
.wordmark small { font-size: .86rem; }

/* Menu icon instead of the word "Menu" */
.menu-btn { width: 46px; height: 46px; padding: 0; display: none; place-items: center; border-radius: 50%; border-color: currentColor; }
@media (max-width: 880px) { .menu-btn { display: grid; } }
.menu-btn .bars { position: relative; width: 20px; height: 14px; display: block; }
.menu-btn .bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .2s, top .3s; }
.menu-btn .bars i:nth-child(1) { top: 0; }
.menu-btn .bars i:nth-child(2) { top: 6px; }
.menu-btn .bars i:nth-child(3) { top: 12px; }
.menu-open .menu-btn .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-open .menu-btn .bars i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Who was St Thérèse? (home page) */
.saint-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.saint-photo { position: sticky; top: 110px; aspect-ratio: 4 / 5; margin: 0; }
.saint-photo img { width: 100%; height: 100%; object-fit: cover; }
.saint p { color: var(--muted); }
.saint p.lead { color: var(--ink); }
.saint-quote { margin: 28px 0; padding: 22px 26px; border-left: 3px solid var(--gold, #b8893b); background: var(--rose-soft); border-radius: 0 16px 16px 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--rose); }
.saint-quote cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.saint-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 20px; }
.saint-facts div { padding: 16px 14px; border-radius: 16px; background: var(--card-bg, #fff); border: 1px solid var(--line); box-shadow: var(--card-shadow, none); }
.saint-facts strong { display: block; font-family: var(--serif); font-size: 1.15rem; line-height: 1.15; color: var(--rose); }
.saint-facts span { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }
.saint-note { font-size: .95rem; }
@media (max-width: 900px) {
  .saint-grid { grid-template-columns: 1fr; gap: 36px; }
  .saint-photo { position: relative; top: 0; aspect-ratio: 4 / 4.6; }
  .saint-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Parish contact: long email address no longer pushes the card off screen */
.contact { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.contact dd { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .contact { grid-template-columns: minmax(0, 1fr); } }

/* Learn topics: wrap onto rows on phones instead of hiding off the edge */
@media (max-width: 900px) {
  .learn-tabs { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0 0 32px; padding: 0; }
  .learn-tabs button { flex: 1 1 auto; padding: 9px 14px; font-size: .88rem; }
}

/* Phones: hero photo runs edge to edge under the header in a 4:3 frame (only a light crop),
   then fades into the dark panel that holds the heading. No blur, no floating box. */
.hero-blur { display: none !important; }
@media (max-width: 700px) {
  .hero, .page-hero { display: block; min-height: 0; padding-top: 77px !important; background: #140809; }
  body:has(.preview-bar) .hero, body:has(.preview-bar) .page-hero { padding-top: 105px !important; }
  .hero::before, .page-hero::before { display: none; }
  .slides { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3; }
  .slides figure > img, .page-hero > img {
    position: relative; inset: auto; display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3;
    object-fit: cover; transform: none; animation: none !important; filter: none;
  }
  .slides figure > img { position: absolute; inset: 0; }
  .slides, .page-hero > img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .hero .wrap, .page-hero .wrap { padding-top: 0; margin-top: -28px; padding-bottom: 40px; }
  .hero .wrap { padding-bottom: 72px; }
  .slide-meta { bottom: 34px; }
  .hero h1 { font-size: 2.7rem; max-width: none; }
  .page-hero h1 { font-size: 2.5rem; }
  .hero p.lede, .page-hero p { font-size: 1.02rem; }
  .hero .tag { font-size: .68rem; }
}

/* Pray-along on phones: caption wraps beside the painting; text sized for the new typeface */
@media (max-width: 900px) { .pa-figure figcaption { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; } }
@media (max-width: 600px) {
  .pa-text { font-size: 1.12rem; }
  .pa-text.medium { font-size: .98rem; }
  .pa-text.long { font-size: .88rem; }
}

/* Home prayer band: Velázquez's Christ Crucified beside the prayer, on the painting's own dark ground */
.band-cross { background: radial-gradient(ellipse at 30% 50%, #2a2a24 0%, #1a1a16 55%, #12120f 100%); padding: 100px 0; text-align: left; }
.band-cross::before { display: none; }
.band-cross .wrap { max-width: 1120px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: center; }
.cross-art { margin: 0; display: flex; justify-content: center; }
.cross-art img { display: block; width: auto; max-width: 100%; height: min(640px, 72vh); object-fit: contain;
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 45%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 45%, #000 70%, transparent 100%); }
.band-cross blockquote { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.3; }
.band-cross cite { margin-top: 24px; }
.cross-credit { display: block; margin-top: 36px; font-size: .78rem; color: rgba(255,255,255,.5); font-style: italic; }
@media (max-width: 800px) {
  .band-cross { padding: 64px 0 72px; text-align: center; }
  .band-cross .wrap { grid-template-columns: 1fr; gap: 8px; }
  .cross-art img { height: min(440px, 62vh); }
  .band-cross blockquote { font-size: 1.75rem; }
  .cross-credit { margin-top: 22px; }
}

/* Sacraments on phones: one card per row, painting on the left, full text on the right */
@media (max-width: 600px) {
  .sacrament-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sacrament-cards .pic-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: stretch; }
  .sacrament-cards .pic-card .img { aspect-ratio: auto; height: 100%; min-height: 136px; }
  .sacrament-cards .pic-card .img img { position: absolute; inset: 0; }
  .sacrament-cards .art-cap { display: none; }
  .sacrament-cards .pic-card .body { padding: 14px 16px; align-self: center; }
  .sacrament-cards .pic-card h3 { font-size: 1.25rem; }
  .sacrament-cards .pic-card p { font-size: .9rem; }
}

/* v41 type: DM Serif Display (one weight, so never fake-bold it) + Jost */
html { font-synthesis: none; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -.01em; line-height: 1.1; }
body { font-size: 17px; line-height: 1.7; }
.wordmark .name { font-size: 1.45rem; font-weight: 400; }
.wordmark small { font-family: var(--sans); font-style: normal; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.tag, .eyebrow { letter-spacing: .18em; }
.wordmark small { white-space: nowrap; }
@media (max-width: 430px) { .wordmark small { font-size: .6rem; letter-spacing: .09em; } .wordmark .name { font-size: 1.32rem; } }

/* v42: clean round portrait (no gold band) */
.cameo, header.site.solid .cameo, .foot-brand .cameo { padding: 0; background: none; box-shadow: 0 4px 14px rgba(20,8,10,.28); }
.cameo::after, header.site.solid .cameo::after, .foot-brand .cameo::after { inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
header.site.solid .cameo::after { box-shadow: inset 0 0 0 1px rgba(60,30,20,.12); }
.cameo { width: 52px; height: 52px; }
header.site.solid .cameo { width: 44px; height: 44px; }
.foot-brand .cameo { width: 72px; height: 72px; }
@media (max-width: 600px) { .cameo, header.site.solid .cameo { width: 44px; height: 44px; } }

/* v42: menu icon is just three clean lines, no circle */
.menu-btn { flex: none; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 10px; background: none; margin-right: -8px; }
.menu-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.menu-btn .bars { width: 24px; height: 16px; }
.menu-btn .bars i { height: 2px; }
.menu-btn .bars i:nth-child(2) { top: 7px; width: 70%; left: auto; right: 0; }
.menu-btn .bars i:nth-child(3) { top: 14px; }
.menu-open .menu-btn .bars i:nth-child(1), .menu-open .menu-btn .bars i:nth-child(3) { top: 7px; }
.brand { min-width: 0; }

/* Header over the hero: dark frosted glass as soon as you start scrolling */
header.site { transition: background-color .3s ease, box-shadow .3s ease, color .3s ease, backdrop-filter .3s ease; }
header.site.scrolled:not(.solid) { background: rgba(20, 8, 10, .78); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .06); }
.menu-open header.site.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }

/* Pray-along on phones: never scroll or clip a prayer inside the box.
   Most steps share one height; only the few long prayers (Creed, Hail Holy Queen) make it taller. */
.pa-text { font-family: var(--sans); font-weight: 400; line-height: 1.65; }
.pa-text .vr { font-size: .92em; }
@media (max-width: 600px) {
  .pray-along { height: auto; grid-template-rows: 150px auto; padding-bottom: 6px; }
  .pa-main { min-height: 0; }
  .pa-body { flex: none; overflow: visible; min-height: 330px; padding-right: 0; }
  .pa-text { font-size: 1.08rem; }
  .pa-text.medium { font-size: 1.02rem; }
  .pa-text.long { font-size: .98rem; line-height: 1.6; }
  .pa-controls { padding: 16px 0 22px; }
}
/* The blurred backdrop is larger than the box; clip it so the box can never be scrolled sideways */
.pray-along { overflow: clip; }
@media (max-width: 380px) { .pa-body { min-height: 344px; } }

/* Home: Our patron, St Thérèse (editorial layout, real photographs) */
.patron-home { background: var(--bg); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; max-width: 1140px; }
.ph-photos { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.ph-photos figure { margin: 0; }
.ph-photos img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; filter: sepia(.12) contrast(1.02); cursor: zoom-in; }
.ph-photos figure:not(.ph-main) img { aspect-ratio: 4 / 4.6; }
.ph-main { grid-row: span 2; display: flex; flex-direction: column; }
.ph-main img { flex: 1; min-height: 0; aspect-ratio: 3 / 4.25; }
.ph-photos figcaption { margin-top: 8px; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.ph-text h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: .55em; }
.ph-text p { color: var(--ink); opacity: .86; margin: 0 0 1.05em; max-width: 34rem; }
.ph-text .ph-first { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; opacity: 1; color: var(--rose); }
.ph-quote { margin: 30px 0 30px; padding: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.3; color: var(--ink); }
.ph-quote cite { display: block; margin-top: 10px; font-family: var(--sans); font-style: normal; font-size: .8rem; color: var(--muted); }
.ph-link { font-weight: 500; color: var(--rose); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ph-link span { transition: margin .2s; }
.ph-link:hover span { margin-left: 4px; }
@media (max-width: 900px) {
  .ph-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ph-photos { max-width: 520px; }
}
@media (max-width: 600px) {
  .ph-photos { gap: 10px; }
  .ph-photos figcaption { font-size: .72rem; }
  .ph-text .ph-first { font-size: 1.3rem; }
}
.ph-photos figure:not(.ph-main) img { height: auto; }

/* ---------- v49: pray-along redesigned for phones ----------
   Painting full width at the top, title beneath it on one line,
   and Back / Next pinned to the bottom of the screen while you pray. */
@media (max-width: 600px) {
  .pray-along { grid-template-rows: auto auto; gap: 18px; padding: 16px 16px 0; border-radius: 22px; }
  .pa-figure { order: -1; flex-direction: column; gap: 10px; }
  .pa-frame { flex: none; width: 100%; aspect-ratio: 16 / 11; border-radius: 14px; border: 0; background: rgba(0,0,0,.35); }
  .pa-frame img { inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: contain; }
  .pa-figure figcaption { flex: none; text-align: center; font-family: var(--sans); font-style: normal; font-size: .8rem; color: rgba(255,255,255,.6); }
  .pa-figure figcaption strong { display: inline; font-family: var(--sans); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.85); }
  .pa-figure figcaption strong::after { content: " · "; font-weight: 400; color: rgba(255,255,255,.45); }
  .pa-head { gap: 10px; }
  .pa-set { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin: 0; }
  .pa-beads { margin: 16px 0 6px; gap: 8px; }
  .pa-body { min-height: 300px; padding: 4px 4px 8px; }
  .pa-body h3 { font-size: 1.75rem; }
  .pa-controls {
    position: sticky; bottom: 82px; z-index: 3; margin: 0 -16px; padding: 26px 16px 14px;
    border-top: 0; background: linear-gradient(180deg, rgba(20,7,9,0), rgba(20,7,9,.94) 34%, #140709);
  }
  .pa-btn { padding: 11px 18px; }
  .pa-btn.primary { padding: 11px 26px; }
}
@media (max-width: 380px) { .pa-body { min-height: 314px; } }
.pa-in-view .to-top { opacity: 0 !important; pointer-events: none !important; }
@media (max-width: 600px) {
  .pa-head, .pa-head > div { min-width: 0; max-width: 100%; }
  .pa-set { white-space: normal; letter-spacing: .1em; line-height: 1.5; }
  .pa-body { min-height: 344px; }
}
@media (max-width: 380px) { .pa-body { min-height: 368px; } .pa-set { font-size: .68rem; } }
@media (max-width: 600px) { .pa-set { min-height: 3em; display: flex; align-items: flex-end; } }
@media (max-width: 600px) { .pa-figure figcaption { min-height: 2.9em; line-height: 1.45; display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; } }

/* =====================================================================
   Parish notices: bulletin & Catholic Link, events, photo gallery
   (content comes from the parish database; see assets/parish-data.js)
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Loading shimmer and friendly notes */
.pd-skel { border-radius: 22px; min-height: 220px; background: linear-gradient(100deg, var(--rose-soft) 30%, color-mix(in srgb, var(--rose-soft) 55%, var(--surface)) 50%, var(--rose-soft) 70%); background-size: 300% 100%; animation: pd-shimmer 1.6s ease-in-out infinite; }
@keyframes pd-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .pd-skel { animation: none; } }
.pd-note { grid-column: 1 / -1; display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; border-radius: 22px; background: var(--card-bg); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow); }
.pd-note-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--pill); color: var(--rose); }
.pd-note strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.2; margin-bottom: 4px; }
.pd-note p { margin: 0; color: var(--muted); }
.pd-note.soon .pd-note-ico { color: var(--gold); }

/* This week: bulletin and Catholic Link */
.notices { padding-bottom: 72px; }
.tw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.issue { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; border-radius: 22px; background: var(--card-bg); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow); }
.issue-cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #efe6da; border-radius: 10px; overflow: hidden; aspect-ratio: 210 / 297; cursor: pointer; box-shadow: 0 14px 30px -14px rgba(60,25,20,.5), 0 0 0 1px rgba(0,0,0,.05); transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.issue-cover:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 22px 40px -16px rgba(60,25,20,.55), 0 0 0 1px rgba(0,0,0,.05); }
.issue-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.issue-cover .no-cover { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); }
.issue-kind { align-self: flex-start; display: inline-flex; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; background: var(--rose-soft); color: var(--rose); }
.issue-kind.cl { background: var(--pill); color: var(--pill-ink); }
.issue-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.issue-body h3 { margin: 4px 0 0; font-size: 1.5rem; line-height: 1.15; font-weight: 400; }
.issue-date { margin: 0; color: var(--muted); font-size: .93rem; }
.issue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 10px; }
.issue-actions .btn { padding: 11px 22px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem; }
.issue-dl { font-size: .88rem; font-weight: 500; color: var(--rose); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--rose) 35%, transparent); }
.issue-dl:hover { border-color: currentColor; }
.issue.empty { grid-template-columns: 1fr; align-content: center; min-height: 230px; }
.issue.empty p { margin: 0; color: var(--muted); }

/* Archive of earlier issues */
.archive { margin-top: 64px; }
.archive-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.archive-head h3 { margin: 0; font-size: 1.9rem; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: inherit; font-size: .85rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 18px; }
.arch { display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.arch .issue-cover { pointer-events: none; }
.arch:hover .issue-cover { transform: translateY(-3px); }
.arch strong { font-weight: 500; font-size: .92rem; line-height: 1.35; }
.arch small { color: var(--muted); font-size: .78rem; }
.more-wrap { text-align: center; margin-top: 30px; }
.btn-quiet { font: inherit; font-weight: 600; font-size: .9rem; padding: 12px 24px; border-radius: 999px; cursor: pointer; border: 1px solid var(--card-edge-hover); background: transparent; color: var(--rose); }
.btn-quiet:hover { background: var(--rose-soft); }
@media (max-width: 900px) { .tw-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .issue { grid-template-columns: 108px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .issue-body h3 { font-size: 1.2rem; }
  .issue-actions { gap: 8px 14px; }
  .issue-actions .btn { padding: 10px 18px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
}

/* Reader: the PDF shown inside our own page */
body.reading { overflow: hidden; }
.reader { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: #17090c; color: #fff; }
.reader[hidden] { display: none; }
.reader-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 22px; background: rgba(20,8,10,.92); border-bottom: 1px solid rgba(236,211,160,.16); }
.reader-title { min-width: 0; }
.reader-title small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.reader-title strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-tools { flex: none; display: flex; align-items: center; gap: 6px; }
.reader-tools button, .reader-tools a { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font: inherit; font-size: .9rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.reader-tools button:hover, .reader-tools a:hover { background: rgba(255,255,255,.1); }
.reader-tools .zoom-val { min-width: 48px; text-align: center; font-size: .82rem; color: rgba(255,255,255,.7); }
.reader-tools .reader-close { background: #fff; color: var(--rose-deep); border-color: #fff; font-size: 1.3rem; }
.reader-pages { flex: 1; overflow: auto; padding: 24px 16px 60px; display: flex; flex-direction: column; align-items: center; gap: 30px; -webkit-overflow-scrolling: touch; }
.reader-page { position: relative; flex: none; background: #fff; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.reader-page canvas { display: block; width: 100%; height: 100%; border-radius: 4px; }
.reader-page .pg-no { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); font-size: .72rem; color: rgba(255,255,255,.5); }
.reader-msg { margin: auto; max-width: 420px; text-align: center; color: rgba(255,255,255,.85); }
.reader-msg a { color: var(--gold-light); }
.reader-spin { width: 36px; height: 36px; margin: 40px auto; border-radius: 50%; border: 3px solid rgba(236,211,160,.2); border-top-color: var(--gold-light); animation: pd-spin 1s linear infinite; }
@keyframes pd-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .reader-bar { padding: 10px 10px 10px 16px; }
  .reader-title strong { font-size: 1.02rem; }
  .reader-tools .zoom-val, .reader-tools .z-btn { display: none; }
  .reader-tools a { padding: 0 14px; }
  .reader-pages { padding: 14px 8px 50px; gap: 26px; }
}

/* Events */
.events-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 900px; }
.events-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.event { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px; border-radius: 22px; background: var(--card-bg); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 6px 14px; border-radius: 16px; background: linear-gradient(160deg, #a6394a 0%, #6e1f2c 60%, #3e1219 100%); color: #fff; text-align: center; box-shadow: 0 14px 28px -16px rgba(90,20,30,.7); }
.event-date .m { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.event-date .d { font-family: var(--serif); font-size: 2.5rem; line-height: 1; margin: 4px 0 2px; }
.event-date .w { font-size: .78rem; color: rgba(255,255,255,.8); }
.event-body { min-width: 0; }
.event-body h3 { margin: 2px 0 8px; font-size: 1.5rem; line-height: 1.15; font-weight: 400; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.event-meta span { display: inline-flex; align-items: center; gap: 7px; }
.event-meta svg { color: var(--rose); flex: none; }
.event-desc { margin: 0; color: var(--ink); opacity: .85; font-size: .96rem; overflow-wrap: anywhere; }
.event-desc + .event-desc { margin-top: .7em; }
.events-grid.three .event { grid-template-columns: 1fr; gap: 16px; }
.events-grid.three .event-date { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 10px 16px; justify-self: start; }
.events-grid.three .event-date .d { font-size: 1.7rem; margin: 0; }
.events-grid.three .event-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Events: programme timetable, side by side on wide screens; date on top on phones */
.event-info { min-width: 0; }
.event-sched { min-width: 0; padding: 18px 20px; border-radius: 16px; background: rgba(155,47,62,.045); border: 1px solid var(--card-edge); }
.event-sched-h { margin: 0 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.event-sched ol { list-style: none; margin: 0; padding: 0; }
.event-sched li { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--card-edge); font-size: .95rem; line-height: 1.4; }
.event-sched li:first-child { border-top: 0; }
.event-sched time { font-weight: 600; color: var(--rose); font-variant-numeric: tabular-nums; }
.events-grid:has(.has-sched) { max-width: 1100px; }
@media (min-width: 900px) {
  .event.has-sched .event-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
}
@media (max-width: 899px) { .event.has-sched .event-sched { margin-top: 18px; } }
@media (max-width: 600px) {
  .events-grid:not(.three) .event { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .events-grid:not(.three) .event-date { flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; padding: 9px 16px; justify-self: start; }
  .events-grid:not(.three) .event-date .d { font-size: 1.6rem; margin: 0; }
  .event-sched { padding: 14px 16px; }
}
.event-series { margin: 2px 0 14px; }
.event-series-h { margin: 0 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); }
.event-dates { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.event-dates li { padding: 4px 11px; border-radius: 999px; background: rgba(155,47,62,.07); border: 1px solid rgba(155,47,62,.16); color: var(--rose); font-size: .84rem; font-weight: 500; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.event { align-content: start; }
.events-grid.three .event { grid-template-rows: auto 1fr; }
.events-grid.three .event-body { align-self: stretch; display: flex; flex-direction: column; }
.events-grid.three .event-info { flex: 1; display: flex; flex-direction: column; }
.events-grid.three .event-cal { margin-top: auto; align-self: flex-start; }
.events-grid.three .event-info > .event-desc { margin-bottom: 16px; }
.event-soon { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--rose); color: #fff; font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; vertical-align: 4px; }
.home-events { padding-top: 40px; }
.see-all { margin: 28px 0 0; }
@media (max-width: 980px) { .events-grid.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .event { grid-template-columns: 70px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .event-date { padding: 10px 4px 12px; border-radius: 14px; }
  .event-date .d { font-size: 2rem; }
  .event-body h3 { font-size: 1.28rem; }
}

/* Gallery: albums */
.albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.album-card { position: relative; display: block; aspect-ratio: 4 / 3.3; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: #1a0c0e; box-shadow: var(--card-shadow); }
.album-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.album-card:hover img { transform: scale(1.05); }
.album-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(15,5,8,.88)); }
.album-card .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 24px; }
.album-card h3 { margin: 0 0 4px; font-size: 1.6rem; line-height: 1.15; font-weight: 400; }
.album-card small { font-size: .84rem; color: rgba(255,255,255,.82); }
.album-card .count { position: absolute; top: 14px; right: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(20,8,10,.6); backdrop-filter: blur(8px); font-size: .75rem; font-weight: 600; }
@media (max-width: 980px) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .albums { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* Gallery: one album */
.album-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-weight: 500; color: var(--rose); text-decoration: none; transition: gap .2s; }
.album-back:hover { gap: 12px; }
.album-head { margin-bottom: 34px; max-width: 760px; }
.album-head h2 { margin-bottom: .2em; }
.album-head .meta { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.album-head p.desc { margin: 0; }
.photos { columns: 3 260px; column-gap: 14px; }
.photo { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--rose-soft); cursor: zoom-in; break-inside: avoid; }
.photo img { width: 100%; height: auto; transition: transform .6s ease; }
.photo:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .photos { columns: 2; column-gap: 8px; } .photo { margin-bottom: 8px; border-radius: 10px; } }

/* Photo viewer */
body.viewing { overflow: hidden; }
.pv { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(10,4,6,.97); color: #fff; }
.pv[hidden] { display: none; }
.pv-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px 22px; font-size: .85rem; color: rgba(255,255,255,.7); }
.pv-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 8px 76px; touch-action: pan-y pinch-zoom; }
.pv-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); user-select: none; -webkit-user-drag: none; }
.pv-cap { min-height: 64px; padding: 12px 24px 22px; text-align: center; font-family: var(--serif); font-size: 1.15rem; color: rgba(255,255,255,.9); }
.pv button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(20,8,10,.5); color: #fff; font-size: 1.3rem; cursor: pointer; }
.pv button:hover { background: rgba(255,255,255,.12); }
.pv .pv-prev, .pv .pv-next { position: absolute; top: 50%; transform: translateY(-50%); }
.pv .pv-prev { left: 14px; }
.pv .pv-next { right: 14px; }
.pv .pv-close { background: #fff; color: var(--rose-deep); border-color: #fff; }
@media (max-width: 600px) {
  .pv-stage { padding: 4px 0; }
  .pv .pv-prev, .pv .pv-next { top: auto; bottom: -62px; transform: none; width: 46px; height: 46px; }
  .pv .pv-prev { left: 14px; }
  .pv .pv-next { right: 14px; }
  .pv-cap { padding: 14px 72px 24px; font-size: 1rem; }
}

/* Eight menu items: keep each on one line on mid-size laptops */
nav ul a { white-space: nowrap; }
@media (max-width: 1080px) and (min-width: 881px) { nav { gap: 10px; } nav ul { gap: 2px; } nav ul a { padding: 8px 8px; font-size: .84rem; } .nav-cta { padding: 9px 14px; font-size: .84rem; } }
@media (max-width: 960px) and (min-width: 881px) { .wordmark small { display: none; } nav ul a { padding: 8px 7px; } }
.pv button[hidden], .reader-tools [hidden] { display: none; }

/* Red "Our Parish" button (replaces "Plan a visit"); a gold ring when you are on that page */
.nav-cta[aria-current="page"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-light) 70%, transparent); }

/* Rosary: the Scripture verse for each mystery */
.pa-text .verse { margin: .2em 0 .8em; padding: .1em 0 .1em 1em; border-left: 2px solid var(--gold-light); }
.pa-text .verse p { margin: 0 0 .3em; font-family: var(--serif); font-style: italic; color: #fff; }
.pa-text .verse cite { display: block; font-family: var(--sans); font-style: normal; font-size: .72em; letter-spacing: .04em; color: var(--gold-light); }
.pa-text .verse-more { white-space: nowrap; color: rgba(255,255,255,.6); }

/* Centred section titles sit in the middle of the page, not just centred within a left-hand box */
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- v69: small UX polish ---------- */
/* Events: add to my calendar */
.event-cal { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; margin: 12px 0 0; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--card-edge); background: transparent; color: var(--rose); font: 500 .88rem var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.event-cal:hover { background: var(--rose-soft, rgba(155,47,62,.06)); border-color: var(--rose); }
.event-cal:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.events-grid.three .event-cal { margin-top: 14px; }
/* Rosary: welcome back */
.pa-resume { display: block; margin: 0 0 14px; padding: 12px 18px; border-radius: 16px; background: var(--rose-soft); border: 1px solid var(--card-edge); font-size: .92rem; line-height: 1.5; color: var(--ink); }
.pa-resume[hidden] { display: none; }
.pa-resume { margin: 56px 0 0; }
.pa-resume:not([hidden]) + .pray-along { margin-top: 14px; }
.pa-resume { transition: opacity .3s; }
.pa-resume.gone { opacity: 0; visibility: hidden; }
.pa-resume button { margin-left: 6px; padding: 8px 2px; border: 0; background: none; color: var(--rose); font: 500 .92rem/1.4 var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* Bigger tap areas for small controls (the visible size stays the same) */
.dots button { position: relative; }
.dots button::after { content: ""; position: absolute; inset: -20px -4px; }
.mystery-tabs button { min-height: 44px; }
dd a[href^="tel:"], dd a[href*="facebook"] { display: inline-block; padding: 8px 0; margin: -8px 0; }
footer .bottom a { display: inline-block; padding: 12px 2px; margin: -12px 0; }

/* Sacraments page: each painting fills the height of its text, so tall paintings don't leave empty space beside it */
@media (min-width: 981px) { .sac-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.sac-row .art-frame { min-height: 400px; }
@media (max-width: 980px) { .sac-row .art-frame { min-height: 0; } }
.sac-row .art-frame img { position: absolute; inset: 0; }
