/* Mass Times v2 (CR's "A · Interlocking panels", 2026-11-11). Loads after mass-times.css, only on a page with [stjhc_mass_times layout="v2"].
   The 62/38 (golden) split repeats in the hero, the Daily/Confession row (mirrored), the Day Chapel band and the bottom row.
   CR's change from the mockup: the crucifix photo sits ON TOP of the Weekend card. */
.stj-mt2 { --m2-golden: minmax(0, 1.618fr) minmax(0, 1fr); --m2-edge: clamp(22px, 3.4vw, 46px); --m2-space: clamp(34px, 4vw, 58px); --m2-border: #DCE1D6; }
.stj-mt2 .stj-mt-place { font-size: 13px; letter-spacing: .14em; }
.stj-mt2 .stj-mt-rows small { display: inline; margin-left: 8px; color: #56665A; font-size: 13px; }
.stj-m2-lines > span { display: block; }

/* Title band and hero: title top left, photo right, Weekend card under the title sliding under the photo's left edge */
.stj-m2-hero { position: relative; isolation: isolate; background: linear-gradient(180deg, #F3F1E7 0, #F7F7F3 235px); }
.stj-m2-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 240px; z-index: -1; opacity: .12; background: url("home/pattern-01-chapel-980.webp") center top / 490px auto; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); }
.stj-m2-hero-grid { display: grid; grid-template-columns: var(--m2-golden); grid-template-rows: auto 1fr; padding: 42px 0 52px; align-items: start; }
.stj-m2-intro { grid-area: 1 / 1; padding: 0 38px 22px 0; }
.stj-mt2 h1 { font-size: clamp(53px, 5.6vw, 83px) !important; letter-spacing: -.043em !important; line-height: .98 !important; }
.stj-mt2 h1 span { display: block; }
.stj-m2-photo { grid-area: 1 / 2 / 3 / 3; position: relative; z-index: 2; margin: 0 !important; align-self: start; }
.stj-m2-photo img, .stj-mt2 .stj-mt-placeholder { width: 100%; height: auto; aspect-ratio: .732; object-fit: cover; object-position: center 75%; display: block; }
.stj-m2-photo::after { content: ""; display: block; width: 77px; height: 1px; margin: 15px 0 0 auto; background: var(--mt-gold); }
.stj-m2-weekend { grid-area: 2 / 1; align-self: center; position: relative; z-index: 1; margin: 0 -28px 0 0; padding: 26px 60px 25px 32px; background: var(--mt-paper); border: 1px solid #E2E3D9; box-shadow: 0 16px 34px -26px rgba(35, 62, 45, .32); }
.stj-m2-weekend .stj-mt-weekend-head { margin-bottom: 16px; }
.stj-m2-weekend h2 { font-size: 38px !important; letter-spacing: -.035em !important; }

/* The slim holy-day notice at the top of the Weekend card */
.stj-mt .stj-m2-notice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin: 0 0 20px; padding: 10px 14px; background: #F6F2E8; border-left: 2px solid #AE8E50; color: var(--mt-deep); text-decoration: none; line-height: 1.35; }
.stj-m2-notice strong { font: 500 21px/1.15 var(--stj-font-serif, Georgia, serif); color: var(--mt-ink); }
.stj-m2-notice-date { margin-left: 8px; font-size: 14px; }
.stj-m2-notice-date::before { content: "· "; }
.stj-m2-notice-arrow { font-size: 18px; color: var(--mt-ink); }
.stj-mt .stj-m2-notice:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Daily Mass (forest green, pattern) joined to Confession (ivory) */
.stj-m2-week { padding: 12px 0 var(--m2-space); }
.stj-m2-week-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); background: var(--mt-paper); border: 1px solid var(--m2-border); }
.stj-m2-week-grid > article { padding: var(--m2-edge); min-width: 0; }
.stj-m2-week h2 { font-size: clamp(34px, 3.1vw, 48px) !important; letter-spacing: -.035em !important; line-height: 1.02 !important; }
.stj-m2-week .stj-mt-place { margin-top: 10px; }
.stj-m2-week .stj-mt-rows { margin-top: 24px; font-size: 16px; }
.stj-m2-week .stj-mt-rows > div { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; padding: 11px 0; }
.stj-m2-confession .stj-mt-rows > div { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.stj-m2-confession .stj-m2-lines > span { display: inline; }
.stj-m2-daily { position: relative; isolation: isolate; background: #254633; color: #F8F4E9; }
/* The chapel wallpaper in faint ivory (~7%): the pattern is used as a mask over an ivory fill, so its own colours don't matter. */
.stj-m2-daily::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; background: #F8F4E9; -webkit-mask: url("home/pattern-01-chapel-980.webp") center / 470px auto repeat; mask: url("home/pattern-01-chapel-980.webp") center / 470px auto repeat; }
.stj-mt .stj-m2-daily h2, .stj-m2-daily .stj-mt-rows dt, .stj-m2-daily .stj-mt-rows dd { color: #FFFEFA !important; }
.stj-m2-daily .stj-mt-place { color: #E7D5A1; }
.stj-m2-daily .stj-mt-rows > div { border-top-color: rgba(255, 255, 255, .22); }
.stj-m2-daily .stj-mt-note, .stj-m2-daily .stj-mt-esp { color: #EAD9AC; }

/* Day Chapel: sage band, photo left, text on the band (no card) */
.stj-m2-chapel { padding: var(--m2-space) 0; background: #EBEEE5; } /* CR, 2026-11-11 */
.stj-m2-chapel-grid { display: grid; grid-template-columns: var(--m2-golden); gap: var(--m2-edge); align-items: center; }
.stj-m2-chapel-photo { margin: 0 !important; }
.stj-m2-chapel-photo img { width: 100%; height: auto; display: block; } /* the whole photo, never cropped (CR, 2026-11-11: the 1.47 crop cut the steeple and the steps) */
/* ?stj_chapel=tight, for comparing: a gentle crop. The image is 102% wide in a 1.32 box, so about 1% goes off each side and about
   6.5% of the height: ~0.5% of sky (still ~7% above the cross) and ~6% of foreground pavement; the porch steps and ground line stay. */
.stj-m2-chapel--tight .stj-m2-chapel-photo { aspect-ratio: 1.32; overflow: hidden; }
.stj-m2-chapel--tight .stj-m2-chapel-photo img { width: 102%; max-width: none; height: 100%; margin-left: -1%; object-fit: cover; object-position: 50% 8%; }
.stj-m2-chapel-text h2 { font-size: clamp(41px, 4.5vw, 61px) !important; letter-spacing: -.04em !important; margin-bottom: 24px !important; }
.stj-m2-chapel-text h3 { font-size: 27px !important; margin-bottom: 10px !important; }
.stj-m2-chapel-text .stj-mt-rows { font-size: 16px; }
.stj-m2-chapel-text .stj-mt-rows > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top-color: #CDD6CA; }
.stj-m2-adoration { margin-top: 26px; }

/* Bottom row: sage Holy Days (62) joined to ivory Parish Office (38); full schedules on their own row between them on phones */
.stj-m2-resources { padding: var(--m2-space) 0; }
.stj-m2-resource-grid { display: grid; grid-template-columns: var(--m2-golden); }
.stj-m2-resource-grid > article { padding: var(--m2-edge); min-width: 0; }
.stj-m2-holy { grid-column: 1; grid-row: 1; background: #E9EDE2; border: 1px solid var(--m2-border); border-right: 0; scroll-margin-top: 90px; }
.stj-m2-office { grid-column: 2; grid-row: 1; background: var(--mt-paper); border: 1px solid var(--m2-border); }
.stj-m2-full { grid-column: 1 / -1; padding-top: 22px; }
.stj-m2-resources h2 { font-size: clamp(31px, 3.1vw, 48px) !important; letter-spacing: -.035em !important; line-height: 1.02 !important; margin-bottom: 20px !important; }
.stj-m2-resources .stj-mt-rows { font-size: 16px; }
.stj-m2-resources .stj-mt-rows > div { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top-color: #CDD6CA; }
.stj-m2-office-contact { margin-top: 12px; font-size: 15px; }
.stj-m2-office .stj-mt-contact { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 4px !important; }
.stj-m2-office .stj-mt-contact a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; }
.stj-mt a.stj-m2-link { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 700; }

/* A posted schedule in the Holy Days panel */
.stj-m2-sum { border-top: 1px solid #C2CBB9; padding-top: 14px; scroll-margin-top: 90px; }
.stj-m2-sum + .stj-m2-sum { margin-top: 22px; }
.stj-mt .stj-m2-sum h3 { font-size: clamp(27px, 2.55vw, 36px) !important; letter-spacing: -.025em !important; }
.stj-m2-sum-date { margin: 7px 0 10px !important; font-size: 15px; }
.stj-m2-sum-date span { font-size: 13px; color: #555E54; }
.stj-m2-sum-times { max-width: 470px; margin: 0; font-variant-numeric: lining-nums tabular-nums; }
.stj-m2-sum-times > div { display: grid; grid-template-columns: minmax(76px, .55fr) minmax(0, 2fr); gap: 10px; padding: 7px 0; border-top: 1px solid #CDD6CA; font-size: 16px; }
.stj-m2-sum-times dt { font-weight: 700; color: var(--mt-deep); }
.stj-m2-sum-times dd { margin: 0; }
.stj-m2-sum-note { margin-top: 10px !important; padding: 8px 12px; background: #F3EFE2; border-left: 2px solid #AE8E50; font-size: 14px; color: var(--mt-deep); }

/* The full schedule (green band, day groups) under both panels */
.stj-m2-program { scroll-margin-top: 90px; }
.stj-m2-full .stj-mt-program + .stj-mt-program, .stj-m2-full .stj-mt-addendum + .stj-mt-program { margin-top: 22px; }
.stj-m2-dplace { display: block; margin-top: 6px; font-size: 13px; color: #526257; }
.stj-m2-program .stj-mt-levents li { grid-template-columns: 100px minmax(0, 1fr) minmax(118px, .38fr); }
.stj-m2-program .stj-mt-ltime { grid-column: 1; grid-row: 1; }
.stj-m2-program .stj-mt-lname { grid-column: 2; grid-row: 1; }
.stj-m2-program .stj-mt-ldetail { grid-column: 2; grid-row: 2; font-size: 13px; margin-top: -2px; }
.stj-m2-program .stj-mt-lplace { grid-column: 3; grid-row: 1; font-size: 13px; }
.stj-m2-full > .stj-m2-link { margin-top: 8px; }
.stj-mt .stj-m2-program .stj-mt-lnote { max-width: none; }

/* Nothing posted (CR, 2026-11-11): the same two joined panels, compact. Under the Holy Days heading and rule, an ivory bulletin tile
   (one link) fills the panel down to the foot of the Parish Office, so the two read as a balanced pair. Kept quiet (CR: "nothing too
   distracting"): 22–24px main line, no icons, hover only turns the border gold. Office spacing tightened. */
.is-empty .stj-m2-resource-grid > article { padding-block: 48px; }
.is-empty .stj-m2-holy { display: flex; flex-direction: column; }
.is-empty .stj-m2-empty { flex: 1; display: flex; flex-direction: column; padding-top: 20px; }
.stj-mt a.stj-m2-bulletin { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 28px 30px; background: var(--mt-paper); border: 1px solid var(--mt-line); color: var(--mt-ink); text-decoration: none; transition: border-color .15s; }
.stj-mt a.stj-m2-bulletin:hover, .stj-mt a.stj-m2-bulletin:focus-visible { border-color: var(--mt-gold); }
.stj-m2-bulletin-kicker { font-size: 13px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: #8A6B2B; }
.stj-m2-bulletin-main { font: 500 clamp(22px, 1.7vw, 24px)/1.15 var(--stj-font-serif, Georgia, serif); letter-spacing: -.01em; color: var(--mt-ink); }
.stj-m2-bulletin-arrow { display: inline-block; margin-left: .35em; color: var(--mt-gold); font-family: var(--stj-font-sans, sans-serif); font-size: .8em; }
.stj-m2-bulletin-sub { font-size: 15px; color: #5A685E; }
.stj-mt .stj-m2-empty p { margin: 0 0 14px; font-size: 17px; }
.is-empty .stj-m2-office .stj-mt-rows > div { padding: 7px 0; }
.is-empty .stj-m2-office-contact { margin-top: 8px; }
.is-empty .stj-m2-office .stj-mt-contact { margin-top: 0 !important; }
.is-empty .stj-m2-office .stj-mt-contact a { min-height: 34px; }

@media (max-width: 1080px) {
	.stj-m2-weekend { padding: 24px 48px 22px 24px; }
	.stj-m2-weekend .stj-mt-weekend-rows > div { grid-template-columns: 84px 1fr; }
	.stj-m2-chapel-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

/* Phones: everything stacks in reading order */
@media (max-width: 760px) {
	.stj-m2-hero { background: linear-gradient(180deg, #F3F1E7 0, #F7F7F3 200px); }
	.stj-m2-hero::before { height: 200px; background-size: 380px auto; }
	.stj-m2-hero-grid { grid-template-columns: minmax(0, 1fr) clamp(96px, 27vw, 150px); grid-template-rows: auto auto; gap: 18px 14px; padding: 24px 0 28px; }
	.stj-m2-intro { padding: 0; align-self: center; }
	.stj-mt2 h1 { font-size: clamp(38px, 10.4vw, 58px) !important; line-height: .95 !important; }
	.stj-m2-photo { grid-area: 1 / 2; align-self: center; }
	.stj-m2-photo img, .stj-mt2 .stj-mt-placeholder { aspect-ratio: 2 / 3; }
	.stj-m2-photo::after { width: 36px; margin-top: 6px; }
	.stj-m2-weekend { grid-area: 2 / 1 / 3 / 3; margin: 0; padding: 19px 16px 16px; }
	.stj-m2-weekend h2 { font-size: 32px !important; }
	.stj-mt2 .stj-mt-place { font-size: 12px; letter-spacing: .1em; }
	.stj-m2-weekend .stj-mt-weekend-rows > div { grid-template-columns: 74px 1fr; gap: 8px; padding: 9px 0; }
	.stj-m2-weekend .stj-mt-weekend-rows dt, .stj-m2-weekend .stj-mt-weekend-rows dd { font-size: 16px; }
	.stj-mt .stj-m2-notice { margin-bottom: 14px; padding: 9px 11px; }
	.stj-m2-notice strong { display: block; font-size: 19px; }
	.stj-m2-notice-date { display: block; margin: 3px 0 0; font-size: 13px; }
	.stj-m2-notice-date::before { content: none; }
	.stj-mt2 .stj-mt-roster { grid-template-columns: 1fr; gap: 10px; }
	.stj-mt2 .stj-mt-links { gap: 10px 16px; }
	.stj-m2-week { padding: 0 0 30px; }
	.stj-m2-week-grid { grid-template-columns: minmax(0, 1fr); }
	.stj-m2-week-grid > article { padding: 22px 17px 18px; }
	.stj-m2-week h2 { font-size: 33px !important; }
	.stj-m2-week .stj-mt-rows { margin-top: 16px; font-size: 15px; }
	.stj-m2-week .stj-mt-rows > div, .stj-m2-confession .stj-mt-rows > div { grid-template-columns: minmax(118px, 1fr) minmax(0, 1fr); gap: 8px; padding: 9px 0; }
	.stj-m2-confession .stj-mt-rows small { display: block; margin-left: 0; }
	.stj-m2-chapel { padding: 28px 0 32px; }
	.stj-m2-chapel-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.stj-m2-chapel-text h2 { font-size: 43px !important; margin-bottom: 18px !important; }
	.stj-m2-chapel-text .stj-mt-rows { font-size: 15px; }
	.stj-m2-chapel-text .stj-mt-rows > div { grid-template-columns: minmax(118px, 1fr) minmax(0, 1fr); gap: 8px; }
	.stj-m2-resources { padding: 28px 0 34px; }
	.stj-m2-resource-grid { grid-template-columns: minmax(0, 1fr); }
	.stj-m2-resource-grid > article { padding: 22px 17px 18px; }
	.stj-m2-holy, .stj-m2-office, .stj-m2-full { grid-column: 1; grid-row: auto; }
	.stj-m2-holy { border-right: 1px solid var(--m2-border); }
	.stj-m2-office { margin-top: 14px; }
	.stj-m2-full { padding-top: 14px; }
	.stj-m2-resources h2 { font-size: 30px !important; margin-bottom: 14px !important; }
	.stj-m2-resources .stj-mt-rows { font-size: 15px; }
	.is-empty .stj-m2-resource-grid > article { padding-block: 22px 18px; }
	.is-empty .stj-m2-empty { padding-top: 14px; }
	.stj-mt a.stj-m2-bulletin { padding: 22px 20px; }
	.stj-m2-program .stj-mt-levents li { grid-template-columns: 76px minmax(0, 1fr); }
	.stj-m2-program .stj-mt-ltime { grid-row: 1 / span 3; }
	.stj-m2-program .stj-mt-lname, .stj-m2-program .stj-mt-ldetail, .stj-m2-program .stj-mt-lplace { grid-column: 2; grid-row: auto; margin: 0; }
}

/* Type pass (CR, 2026-11-19; backup _migration/backup-home-polish-2026-11-19/): the times read as comfortably as
   the headings. Desktop: weekend 17→19px with 17px day names, daily/chapel/office rows 16→17–18px. */
.stj-m2-weekend .stj-mt-weekend-rows dt { font-size: 17px; }
.stj-m2-weekend .stj-mt-weekend-rows dd { font-size: 19px; }
.stj-m2-week .stj-mt-rows { font-size: 18px; }
.stj-m2-chapel-text .stj-mt-rows, .stj-m2-resources .stj-mt-rows { font-size: 17px; }
.stj-m2-office-contact, .stj-mt a.stj-m2-link, .stj-m2-sum-date { font-size: 16px; }
.stj-m2-sum-times > div { font-size: 17px; }
@media (max-width: 760px) {
	.stj-m2-weekend .stj-mt-weekend-rows dt, .stj-m2-weekend .stj-mt-weekend-rows dd { font-size: 17px; }
	.stj-m2-week .stj-mt-rows { font-size: 17px; }
	.stj-m2-chapel-text .stj-mt-rows, .stj-m2-resources .stj-mt-rows { font-size: 16px; }
}

/* Heading pass (CR, 2026-11-19, from the outside design review): sizes by role, same as the Parish Life / Faith Formation / Sacraments hubs. Before: _migration/backup-heading-pass-2026-11-19/. */
.stj-mt2 h1 { font-size: clamp(44px, 4.5vw, 64px) !important; line-height: 1.02 !important; }
@media (max-width: 760px) { .stj-mt2 h1 { font-size: clamp(38px, 10.4vw, 52px) !important; } }
