/* The parish record. One sheet for 201,367 pages, cached once.
   Until 2026-09-04 every parish page carried 30 KB of inline CSS and linked
   record.css, the Los Angeles library's sheet, which opened with an @import
   of Google Fonts: a third-party handshake before first paint on every page
   of the register. Neither ships here. The tokens are the site's Marian
   palette (see functions/_lib/cathedrals-css.ts); the old names the shared
   widgets still use (--oxblood, --parchment, --text) resolve to them. */
:root {
  color-scheme: light dark;
  --bg: #faf9f5; --card: #ffffff; --card-warm: #f3f2ec;
  --rule: #e2e1d8; --rule-strong: #c6c5b6;
  --ink: #232a3d; --ink-muted: #46506a; --ink-subtle: #6a718a; --ink-ghost: #6b7085;
  --gold: #a8862f; --gold-deep: #7d6420;
  --marian: #27447e; --marian-deep: #1b3160;
  --field-focus: rgba(39, 68, 126, 0.28);
  --oxblood: var(--marian); --parchment: var(--bg); --parchment-warm: var(--card-warm);
  --text: var(--ink); --text-muted: var(--ink-muted); --text-subtle: var(--ink-subtle);
  --goldDeep: var(--gold-deep); --gold-bright: var(--gold);
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1420; --card: #141a2a; --card-warm: #192134;
    --rule: #26304a; --rule-strong: #394668;
    --ink: #e7e4d8; --ink-muted: #b6b8c8; --ink-subtle: #9298b0; --ink-ghost: #7d8299;
    --gold: #d8ba6a; --gold-deep: #b39440;
    --marian: #8fb0e8; --marian-deep: #a9c2ee;
    --field-focus: rgba(143, 176, 232, 0.35);
  }
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1420; --card: #141a2a; --card-warm: #192134;
  --rule: #26304a; --rule-strong: #394668;
  --ink: #e7e4d8; --ink-muted: #b6b8c8; --ink-subtle: #9298b0; --ink-ghost: #7d8299;
  --gold: #d8ba6a; --gold-deep: #b39440;
  --marian: #8fb0e8; --marian-deep: #a9c2ee;
  --field-focus: rgba(143, 176, 232, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "EB Garamond", Georgia, "Times New Roman", serif; line-height: 1.55; font-feature-settings: "liga" 1, "kern" 1, "onum" 1; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--marian); text-underline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

.p-wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.5rem 4rem; }

/* ---- the nameplate ------------------------------------------------------ */
.p-head { padding: clamp(1.4rem, 4vw, 2.6rem) 0 1.4rem; }
.p-eyebrow { margin: 0 0 0.9rem; font-family: "Cinzel", Georgia, serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); }
.p-eyebrow .p-rite-glyph { margin-right: 0.3em; }
.p-eyebrow .rite-eastern { color: var(--marian); }
.p-head h1 { margin: 0; font-family: "EB Garamond", Georgia, serif; font-weight: 500; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.p-place { margin: 0.55rem 0 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-style: italic; color: var(--marian); }
.p-lede { max-width: 44rem; margin: 1rem 0 0; font-size: 1.1rem; line-height: 1.55; color: var(--ink-muted); text-wrap: pretty; }
.p-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.35rem 0 0; }
.p-action { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; padding: 0.5rem 1.15rem; font-family: "Cinzel", Georgia, serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--marian); background: transparent; border: 1px solid var(--marian); border-radius: 999px; text-decoration: none; }
.p-action--primary { color: var(--bg); background: var(--marian); }
.p-action:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.p-action--primary:hover { background: var(--marian-deep); border-color: var(--marian-deep); color: var(--bg); }
.p-action:focus-visible, .p-wrap a:focus-visible, .p-wrap button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ---- two columns: the record and its card ------------------------------- */
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 0.5rem; }
@media (min-width: 960px) {
  .p-grid { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3.5rem; align-items: start; }
  .p-rail { position: sticky; top: 5rem; }
}
.p-card { border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: var(--radius); background: var(--card); padding: 0 1.15rem 0.5rem; }
.p-card .ci-sat { margin: 1rem 0 0.25rem; aspect-ratio: 4 / 3; min-height: 11rem; box-shadow: none; font-size: 0.8rem; }
.p-card .ci-sat-meta { white-space: normal; }
.p-card .ci-sat-strip { font-size: 0.74rem; }
.p-card-h { margin: 1rem 0 0.35rem; font-family: "Cinzel", Georgia, serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-subtle); }
.p-row { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); gap: 0.65rem; align-items: start; padding: 0.6rem 0; border-top: 1px solid var(--rule); font-size: 0.98rem; line-height: 1.45; }
.p-row:first-of-type { border-top: 0; }
.p-row-ico { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; color: var(--gold-deep); }
.p-row a { color: var(--ink); text-decoration: none; }
.p-row a:hover { color: var(--marian); text-decoration: underline; }
.p-row .p-directions { display: block; margin-top: 0.25rem; font-size: 0.86rem; font-weight: 600; color: var(--marian); }
.p-row-note { display: block; font-size: 0.8rem; color: var(--ink-subtle); }
.p-links { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 0 0.4rem; border-top: 1px solid var(--rule); }
.p-links a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.3rem 0.75rem; font-size: 0.86rem; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--marian); background: var(--bg); }
.p-links a:hover { border-color: var(--gold); background: var(--card-warm); }
.p-link-icon { width: 1rem; height: 1rem; flex: none; }
.p-card-diocese { margin: 0.5rem 0 0.6rem; font-size: 0.9rem; color: var(--ink-muted); }
.p-card-diocese a { color: var(--marian); }

/* ---- sections ---------------------------------------------------------- */
.p-section { margin-top: 2.6rem; }
.p-section:first-child { margin-top: 0.4rem; }
.p-section h2 { margin: 0; font-family: "Cinzel", Georgia, serif; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--marian); padding-bottom: 0.45rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.p-section h3 { margin: 0 0 0.6rem; font-family: "Cinzel", Georgia, serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.p-hours-block { margin-top: 1.5rem; }
.p-hours-block + .p-hours-block { margin-top: 2.1rem; }
.p-hours-prose { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.p-empty { margin: 0; padding: 0.9rem 1.1rem; border: 1px dashed var(--rule-strong); border-radius: var(--radius); font-style: italic; color: var(--ink-muted); line-height: 1.5; }
.p-empty strong { font-style: normal; color: var(--ink); }

/* The week: seven cells, Sunday first, a day the source did not list drawn
   in its place as unlisted. On a phone the week is a list. */
.p-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.p-day { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.7rem 0.55rem 0.85rem; border-right: 1px solid var(--rule); min-width: 0; }
.p-day:nth-child(7n) { border-right: 0; }
.p-day--sun { background: var(--card-warm); }
.p-day--loose { grid-column: 1 / -1; border-top: 1px solid var(--rule); border-right: 0; flex-direction: row; gap: 1rem; align-items: baseline; }
.p-day-h { font-family: "Cinzel", Georgia, serif; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--marian); }
.p-day--none .p-day-h { color: var(--ink-ghost); }
.p-day-t { display: flex; flex-direction: column; gap: 0.28rem; }
.p-day-unlisted { font-size: 0.78rem; font-style: italic; color: var(--ink-ghost); }
.p-mtime { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.p-mtime time { font-weight: 600; font-size: 0.95rem; color: var(--ink); white-space: nowrap; }
.p-lang { font-style: italic; font-size: 0.7rem; color: var(--ink-subtle); }
.p-vigil { font-style: italic; font-size: 0.7rem; color: var(--marian); }
@media (max-width: 719px) {
  .p-week { grid-template-columns: 1fr; }
  .p-day { flex-direction: row; align-items: baseline; gap: 0.8rem; padding: 0.6rem 0.8rem; border-right: 0; border-top: 1px solid var(--rule); }
  .p-day:first-child { border-top: 0; }
  .p-day-h { flex: 0 0 4.2rem; }
  .p-day-t { flex-direction: row; flex-wrap: wrap; gap: 0.3rem 0.9rem; }
  .p-day--none { padding-top: 0.4rem; padding-bottom: 0.4rem; }
}
.p-schedule-card { margin-top: 0.2rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.p-schedule-days { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.p-schedule-days span { font-family: "Cinzel", Georgia, serif; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.5rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--marian); }
.p-schedule-time { margin: 0.7rem 0 0; font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.p-schedule-time time { font-weight: 600; }
.p-schedule-time span { font-size: 0.85rem; color: var(--ink-muted); font-style: italic; }
.p-schedule-exception { display: grid; gap: 0.2rem; margin-top: 0.9rem; padding: 0.7rem 0.9rem; border-left: 3px solid var(--marian); background: var(--bg); }
.p-schedule-exception strong { font-family: "Cinzel", Georgia, serif; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--marian); }
.p-citation { margin: 0.65rem 0 0; font-size: 0.8rem; color: var(--ink-muted); line-height: 1.45; }
.p-citation--none { font-style: italic; }
.p-schedule-note { margin: 0.7rem 0 0; font-size: 0.8rem; color: var(--ink-muted); font-style: italic; line-height: 1.45; }

/* The record: label over value, three across on a desk, one on a phone. */
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.9rem 2rem; margin: 1.1rem 0 0; }
.kv { margin: 0; }
.kv dt { font-family: "Cinzel", Georgia, serif; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-subtle); }
.kv dd { margin: 0.2rem 0 0; color: var(--ink); overflow-wrap: anywhere; font-size: 1.02rem; }
.kv dd a { color: var(--marian); text-decoration: none; }
.kv dd a:hover { text-decoration: underline; }
.rite-inline { display: inline-flex; align-items: center; gap: 0.3rem; }
.rite-inline.rite-roman { color: var(--gold-deep); font-weight: 600; }
.rite-inline.rite-eastern { color: var(--marian); font-weight: 600; }

.p-history-body { max-width: 44rem; margin-top: 1.1rem; }
.p-history-body p { margin: 0 0 1rem; line-height: 1.75; }
.p-history-body p:first-child::first-letter { font-family: "Cinzel", Georgia, serif; font-size: 2.9rem; line-height: 0.8; float: left; margin: 0.15rem 0.5rem 0 0; color: var(--marian); }
.p-min-lede { margin: 0.6rem 0 0; font-size: 0.92rem; font-style: italic; color: var(--ink-muted); }
.p-min-group { margin: 1.1rem 0 0; }
.p-min-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.15rem 2rem; }
.p-min { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.p-min-name { display: block; font-weight: 600; }
.p-min-detail { display: block; margin-top: 0.15rem; font-size: 0.84rem; color: var(--ink-muted); }
.p-min-detail span { display: block; }
.p-min-label { font-family: "Cinzel", Georgia, serif; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.p-gallery { margin-top: 1.1rem; }

/* ---- sources and provenance -------------------------------------------- */
.p-sources { margin-top: 3rem; padding-top: 1.6rem; border-top: 3px double var(--gold); }
.p-sources h2 { margin: 0; font-family: "Cinzel", Georgia, serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--marian); }
.p-source-list { margin: 0.9rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; font-size: 0.9rem; color: var(--ink-muted); }
.p-source-fields { color: var(--ink); }
.p-source-list a { color: var(--marian); }
.p-source-checked { font-size: 0.82rem; color: var(--ink-subtle); }
.p-source-checked::before { content: "\00b7"; margin: 0 0.4rem; }
.p-prov { margin: 1rem 0 0; font-size: 0.9rem; font-style: italic; color: var(--ink-muted); max-width: 48rem; }
.p-prov-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0.8rem 0 0; font-size: 0.9rem; }
.p-prov-actions a { color: var(--marian); font-weight: 600; text-decoration: none; }
.p-prov-actions a:hover { text-decoration: underline; }

/* ---- reader testimony, under each schedule ----------------------------- */
.p-testimony-block { margin: 1.1rem 0 0; padding: 0.9rem 1rem; background: var(--card-warm); border: 1px solid var(--rule); border-radius: var(--radius); }
.p-testimony { margin: 0; }
.p-testimony-ask { margin: 0; font-size: 0.98rem; font-weight: 600; line-height: 1.35; color: var(--ink); text-wrap: pretty; }
.p-testimony-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.7rem 0 0; }
.p-testimony-btn { flex: 1 1 9rem; display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 0.45rem 1rem; font-family: inherit; font-size: 0.92rem; font-weight: 600; line-height: 1.25; color: var(--marian); background: var(--bg); border: 1px solid var(--marian); border-radius: 999px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.p-testimony-btn:hover { border-color: var(--gold-deep); background: var(--card-warm); }
.p-testimony-btn:active { background: var(--marian); color: var(--bg); }
.p-testimony-btn[disabled] { opacity: 0.6; cursor: default; }
.p-testimony-counts { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--ink-muted); }
.p-testimony-last { display: block; font-size: 0.8rem; color: var(--ink-subtle); }
.p-testimony-rule { margin: 0.6rem 0 0; font-size: 0.8rem; font-style: italic; color: var(--ink-muted); line-height: 1.45; }
.p-testimony-rule a { color: var(--marian); }
.p-testimony-note { margin: 0.7rem 0 0; }
.p-testimony-note-ask { display: block; font-size: 0.92rem; font-weight: 600; }
.p-testimony-note-hint { display: block; font-size: 0.8rem; font-weight: 400; color: var(--ink-subtle); }
.p-testimony-note-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.p-testimony-note-input { flex: 1 1 14rem; min-height: 44px; padding: 0.45rem 0.7rem; font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--card); border: 1px solid var(--rule-strong); border-radius: 4px; }
.p-testimony-note-input:focus-visible { outline: 3px solid var(--field-focus); border-color: var(--marian); }
.p-testimony-btn--send { flex: 0 0 auto; }
.p-testimony-status { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--ink-muted); }
.p-testimony-caution { margin: 0.6rem 0 0.9rem; padding: 0.7rem 0.9rem; border-left: 3px solid var(--gold-deep); background: var(--card-warm); font-size: 0.92rem; line-height: 1.45; }
.p-testimony-caution strong { display: block; font-family: "Cinzel", Georgia, serif; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.2rem; }

/* ---- the closing band and the foot -------------------------------------- */
.p-wrap .cilf { max-width: none; margin: 3rem 0 0; }
.p-wrap .cilf-sub { max-width: 64ch; }
.p-wrap .cilf-title { max-width: 40ch; }
.p-wrap .cilf-form input { flex: 1 1 16rem; max-width: 26rem; }
.site-foot { max-width: 66rem; margin: 2.5rem auto 1.5rem; padding: 1.25rem 1.5rem; text-align: center; color: var(--ink-muted); font-size: 0.85rem; font-style: italic; border-top: 1px solid var(--rule); }
.site-foot p { margin: 0.35rem 0; }
.site-foot a { color: var(--marian); }
.site-foot-disclaimer { margin: 0 auto 1rem; font-size: 0.78rem; line-height: 1.5; color: var(--ink-subtle); max-width: 36rem; }

@media (max-width: 640px) {
  .p-wrap { padding: 0 1.1rem 3rem; }
  .p-head { padding-top: 1.2rem; }
  .kv-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.p-mass-location{display:block;flex-basis:100%;font-size:.7rem;font-weight:400;line-height:1.5;color:var(--ink-subtle);overflow-wrap:anywhere}
