/*
Theme Name: Parish Theme
Author: Parish Theme
Description: Reusable parish website theme with drag-and-drop Parish blocks. Logo, colours, fonts, churches and Mass times are set in Appearance > Customize > Parish Theme; homepage sections are arranged in the block editor.
Version: 3.16.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: parish
*/

/* Colour and font values below are fallbacks; the Customizer writes the real ones into the page. */
:root {
	--primary: #034f75;
	--accent: #fcb040;
	--on-accent: #ffffff;
	--ink: #1d2433;
	--page: #ffffff;
	--logo-h: 88px;
	--serif: "Fraunces", Georgia, serif;
	--sans: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;

	--primary-deep: color-mix(in srgb, var(--primary) 72%, #000);
	--primary-soft: color-mix(in srgb, var(--primary) 82%, #fff);
	--on-primary: #ffffff;
	--on-primary-muted: color-mix(in srgb, #fff 78%, var(--primary));
	--accent-deep: color-mix(in srgb, var(--accent) 86%, #000);
	--accent-tint: color-mix(in srgb, var(--accent) 14%, #fff);
	--muted: color-mix(in srgb, var(--ink) 68%, #fff);
	--line: color-mix(in srgb, var(--ink) 14%, #fff);
	--wash: color-mix(in srgb, var(--ink) 4%, #fff);
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background-color: var(--page); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary-deep); outline-offset: 2px; }
.topbar :focus-visible, .hero :focus-visible, .mass :focus-visible, .side-primary :focus-visible, .page-banner :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--primary); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 12px; }

/* Top strip */
.topbar { background: var(--primary-deep); color: var(--on-primary-muted); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Header */
.site-header { background: #fff; border-bottom: 4px solid var(--accent); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: calc(var(--logo-h) + 16px); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 8px 0; }
.brand img { height: var(--logo-h); width: auto; max-width: 320px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--primary); line-height: 1.1; display: block; }
.brand-sub { font-size: .82rem; color: var(--muted); display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; color: var(--primary); font-weight: 600; text-decoration: none; border-radius: 4px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--primary-deep); background: var(--accent-tint); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,.12); flex-direction: column; padding: 6px; z-index: 60; }
.main-nav .sub-menu .sub-menu { position: static; display: flex; border: 0; box-shadow: none; padding: 0 0 0 12px; }
.pt-sub-toggle { display: none; }
.main-nav .sub-menu .current-menu-item > a { background: none; }
.menu-toggle { display: none; background: var(--primary); color: #fff; border: 0; padding: 10px 14px; border-radius: 4px; font: inherit; font-weight: 600; cursor: pointer; }

/* Desktop: dropdowns and mega menus open on hover, keyboard focus or tap */
@media (min-width: 961px) {
	.main-nav > ul > li > a { position: relative; }
	.main-nav > ul > li.menu-item-has-children > a { margin-right: 0; }
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu, .main-nav li.open > .sub-menu { display: flex; }
	/* An invisible bridge between the menu item and the panel, so the mouse never "falls off" on the way down. */
	.main-nav .pt-mega-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 14px; }
	.pt-sub-toggle { opacity: .55 !important; }
	.pt-sub-toggle:hover { opacity: 1 !important; }
	.main-nav li.pinned > .pt-sub-toggle { opacity: 1 !important; }
	.main-nav > ul > li.menu-item-has-children { display: flex; align-items: center; }
	.main-nav > ul > li.menu-item-has-children > a { padding-right: 4px; }
	.pt-sub-toggle { display: block; position: static; width: 22px; height: 30px; margin-right: 4px; background: none; border: 0; cursor: pointer; border-radius: 4px; padding: 0; }
	.pt-sub-toggle span { display: block; width: 6px; height: 6px; margin: 0 auto; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
	.main-nav li.open > .pt-sub-toggle span { transform: translateY(1px) rotate(-135deg); }
	.pt-sub-toggle:focus-visible { outline: 2px solid var(--primary); }

	/* Mega menu: a full-width panel under the header */
	.site-header .wrap { position: relative; }
	.main-nav li.pt-mega { position: static; }
	.main-nav .pt-mega-panel { left: 20px; right: 20px; top: calc(100% + 0px); padding: 28px 28px 30px; flex-direction: row; gap: 32px; border-radius: 0 0 8px 8px; border: 0; border-top: 3px solid var(--accent); box-shadow: 0 18px 40px rgba(0,0,0,.16); }
	.main-nav li.pt-mega:hover > .pt-mega-panel, .main-nav li.pt-mega:focus-within > .pt-mega-panel, .main-nav li.pt-mega.open > .pt-mega-panel { display: flex; }
	.pt-mega-col { flex: 1 1 0; min-width: 0; }
	.pt-mega-feature { flex: 0 0 300px; }
	.pt-mega-col > a { font-family: var(--serif); font-size: 1.12rem; color: var(--primary); padding: 0 0 4px; background: none !important; }
	.pt-mega-col > a:hover { text-decoration: underline; }
	.pt-mega-desc { display: block; font-size: .85rem; color: var(--muted); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 2px solid var(--accent-tint); }
	.main-nav .pt-mega-links { position: static; display: flex !important; flex-direction: column; border: 0; box-shadow: none; padding: 0; margin-top: 6px; min-width: 0; }
	.pt-mega-links a { font-weight: 400; color: var(--ink); padding: 7px 0; border-radius: 0; }
	.pt-mega-links a:hover { background: none; color: var(--primary); text-decoration: underline; }
	.pt-mega-card { background: var(--primary); color: var(--on-primary-muted); border-radius: 8px; padding: 22px; height: 100%; box-sizing: border-box; }
	.pt-mega-card-title { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin: 0 0 8px; }
	.pt-mega-church { font-size: .85rem; margin: 0 0 4px; }
	.pt-mega-card .pt-mega-times { display: block !important; position: static; border: 0; box-shadow: none; background: none; padding: 0; margin: 0 0 14px; }
	.pt-mega-times li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: .92rem; color: #fff; }
	.pt-mega-times strong { font-weight: 600; }
	.pt-mega-card p { margin: 0 0 12px; }
	.pt-mega-card .btn { display: inline-block; padding: 9px 16px; color: var(--on-accent); }
	.pt-mega-card .btn:hover { color: var(--on-accent); background: var(--accent-deep); }
}

/* Picture-card mega menu (e.g. Sacraments) */
.main-nav .pt-mcard { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--ink); font-weight: 400; border-radius: 8px; }
.pt-mcard-icon { flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent-tint); color: var(--primary); transition: background .15s, color .15s; }
.pt-mcard-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pt-mcard-title { font-family: var(--serif); font-weight: 600; color: var(--primary); line-height: 1.25; }
.pt-mcard-text { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.pt-mcard-more { color: var(--primary); font-weight: 700; font-size: .86rem; margin-top: 4px; }
@media (min-width: 961px) {
	.main-nav li.pt-mega:hover > .pt-mega-cards, .main-nav li.pt-mega:focus-within > .pt-mega-cards, .main-nav li.pt-mega.open > .pt-mega-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
	.main-nav .pt-mcard { height: 100%; box-sizing: border-box; padding: 18px; border: 1px solid var(--line); background: #fff; }
	.main-nav .pt-mcard:hover, .main-nav .pt-mcard:focus-visible { border-color: var(--accent); background: var(--accent-tint); }
	.pt-mcard-icon { width: 56px; height: 56px; }
	.pt-mcard:hover .pt-mcard-icon, .pt-mcard:focus-visible .pt-mcard-icon { background: var(--primary); color: #fff; }
	.pt-mcard-title { font-size: 1.1rem; }
	.pt-mcard:hover .pt-mcard-more { text-decoration: underline; }
	.pt-mcard-item.is-current .pt-mcard { border-color: var(--primary); }
}

/* Phones and tablets: tap the arrow to open each section */
@media (max-width: 960px) {
	.menu-toggle { display: block; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 4px solid var(--accent); padding: 10px 20px 16px; max-height: calc(100vh - 120px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; flex-wrap: nowrap; }
	.main-nav > ul > li { border-bottom: 1px solid var(--line); }
	.main-nav .sub-menu { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 10px 14px; }
	.main-nav li.open > .sub-menu { display: flex; }
	.main-nav .sub-menu .sub-menu { display: flex; padding-bottom: 4px; }
	.pt-mega-col > a { font-weight: 700; }
	.pt-mega-desc, .pt-mega-feature { display: none; }
	.pt-mega-links a { font-weight: 400; padding: 7px 12px; }
	.pt-sub-toggle { display: block; position: absolute; right: 0; top: 2px; width: 44px; height: 40px; background: none; border: 0; cursor: pointer; }
	.pt-sub-toggle span { display: block; width: 9px; height: 9px; margin: 0 auto; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .2s; }
	.main-nav li.open > .pt-sub-toggle span { transform: rotate(-135deg); }
	.main-nav > ul > li.menu-item-has-children > a { margin-right: 44px; }
	.main-nav .pt-mega-cards { gap: 2px; padding-left: 0; }
	.main-nav .pt-mcard { padding: 10px 8px; }
	.pt-mcard-icon { width: 40px; height: 40px; }
	.pt-mcard-icon svg { width: 24px; height: 24px; }
	.pt-mcard-title { font-size: 1rem; }
	.pt-mcard-text { font-size: .85rem; }
	.pt-mcard-more { display: none; }
}
@media (max-width: 600px) { .brand img { height: calc(var(--logo-h) * .8); } }

/* Notice */
.notice-bar { background: var(--accent-tint); border-bottom: 1px solid var(--accent); color: var(--ink); font-size: .95rem; }
.notice-bar .wrap { padding-top: 10px; padding-bottom: 10px; }

/* Hero */
.hero { position: relative; min-height: var(--hero-h, 480px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--primary); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center var(--hero-y, 40%); opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--primary-deep) var(--hero-shade, 88%), transparent) 100%); }
.hero-inner { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 48px; width: 100%; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { font-size: 1.15rem; max-width: 58ch; color: #f2f5f8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-inner.has-bible { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 40px; align-items: end; }
.hero-bible { --pb-primary: var(--primary); --pb-accent: var(--accent); --pb-on-accent: var(--on-accent); --pb-ink: var(--ink); --pb-line: var(--line); background: rgba(255,255,255,.96); color: var(--ink); border-top: 4px solid var(--accent); border-radius: 8px; padding: 22px 22px 18px; box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.hero .hero-bible-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--primary); margin: 0 0 12px; }
.hero-bible .pb-form { margin: 0 0 10px; }
.hero-bible .pb-form input { background: #fff; }
.hero p.hero-bible-try { font-size: .9rem; color: var(--muted); margin: 0 0 14px; max-width: none; }
.hero-bible-try a { color: var(--primary); }
.hero-bible-link { display: inline-block; font-weight: 700; color: var(--primary); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.hero-bible-link:hover { color: var(--primary-deep); border-bottom-color: var(--primary); }
@media (max-width: 900px) { .hero-inner.has-bible { grid-template-columns: 1fr; gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

.btn { display: inline-block; padding: 12px 22px; border-radius: 4px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-deep); color: var(--on-accent); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--accent-tint); color: var(--primary); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Quick links band */
.quick-band { background: var(--accent); }
.quick-band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--quick-cols, 4), 1fr); }
.quick-band a { display: block; height: 100%; padding: 18px 20px; color: var(--on-accent); text-decoration: none; font-weight: 700; border-right: 1px solid color-mix(in srgb, var(--on-accent) 22%, transparent); }
.quick-band li:last-child a { border-right: 0; }
.quick-band a span { display: block; font-weight: 400; font-size: .88rem; opacity: .9; }
.quick-band a:hover { background: var(--accent-deep); color: var(--on-accent); }
.on-accent-light .quick-band a, .on-accent-light .btn-accent, .on-accent-light .side-accent { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
@media (max-width: 760px) { .quick-band ul { grid-template-columns: 1fr 1fr; } .quick-band a { border-bottom: 1px solid color-mix(in srgb, var(--on-accent) 22%, transparent); } }

/* Sections */
.section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }

/* Mass times */
.mass { background: var(--primary); color: var(--on-primary-muted); }
.mass h2 { color: #fff; }
.mass .section-head a, .mass-foot a { color: #fff; }
.mass-grid { display: grid; grid-template-columns: repeat(var(--mass-cols, 4), minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .mass-grid { grid-template-columns: repeat(min(var(--mass-cols, 4), 2), minmax(0, 1fr)); } }
@media (max-width: 600px) { .mass-grid { grid-template-columns: 1fr; } }
.church { background: var(--primary-deep); border-top: 4px solid var(--accent); border-radius: 6px; padding: 20px; min-width: 0; }
.church.is-home { border-top-color: #fff; }
.church h3 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.church .where { font-size: .85rem; margin-bottom: 14px; }
.church ul { list-style: none; margin: 0; padding: 0; }
.church li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .95rem; }
.church li strong { color: #fff; font-weight: 600; flex: none; }
.church li span { text-align: right; }
.mass-foot { margin-top: 24px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: .95rem; }
.mass-foot .live { display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0453a; }

/* Main + sidebar */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.welcome { font-family: var(--serif); font-size: 1.2rem; line-height: 1.7; border-left: 4px solid var(--accent); padding-left: 20px; margin-bottom: 40px; max-width: 70ch; }

.news-list { display: grid; gap: 22px; }
.news-item { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-thumb { aspect-ratio: 4/3; background: var(--accent-tint); border-radius: 4px; overflow: hidden; display: grid; place-items: center; color: var(--primary); font-family: var(--serif); font-size: 2rem; text-decoration: none; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { margin-bottom: 6px; }
.news-item h3 a { color: var(--primary); text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-date { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; } }

.side-card { border-radius: 6px; padding: 24px; margin-bottom: 22px; }
.side-card h3 { margin-bottom: 8px; }
.side-card h2, .side-card .wp-block-heading { font-size: 1.2rem; margin: 0 0 10px; }
.side-card .wp-block-search__label { font-weight: 600; }
.side-accent { background: var(--accent); color: var(--on-accent); }
.side-accent h3 { color: var(--on-accent); }
.side-accent a.btn { background: var(--primary); color: #fff; text-shadow: none; }
.side-accent a.btn:hover { background: var(--primary-deep); }
.side-primary { background: var(--primary); color: var(--on-primary-muted); }
.side-primary h3, .side-primary a { color: #fff; }
.side-plain { background: var(--wash); border: 1px solid var(--line); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 6px 0; border-top: 1px solid rgba(255,255,255,.12); color: #fff; }
.contact-list li:first-child { border-top: 0; }
.contact-list span { display: block; font-size: .8rem; color: var(--on-primary-muted); }

/* Sacrament cards */
.life { background: var(--accent-tint); }
.life-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.life-card { background: #fff; border-radius: 6px; padding: 24px; text-decoration: none; color: var(--ink); border-bottom: 4px solid var(--accent); display: block; }
.life-card:hover { border-bottom-color: var(--primary); color: var(--ink); }
.life-card .letter { width: 44px; height: 44px; border-radius: 6px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; }
.life-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.life-card p { font-size: .93rem; color: var(--muted); margin: 0; }

/* Pages / posts */
.page-banner { background: var(--primary); color: #fff; padding: 48px 0 40px; border-bottom: 4px solid var(--accent); background-size: cover; background-position: center; position: relative; }
.page-banner.has-photo::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--primary-deep) 75%, transparent); }
.page-banner .wrap { position: relative; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { color: var(--on-primary-muted); margin: 8px 0 0; }
.page-banner .pt-author { color: #fff; font-weight: 600; }
.news-date .pt-author { color: var(--primary); font-weight: 600; text-decoration: none; }
.news-date .pt-author:hover { text-decoration: underline; }
.entry { max-width: 75ch; }
.entry img { border-radius: 4px; }
.entry h2, .entry h3 { margin-top: 1.4em; }
.pagination { margin-top: 30px; display: flex; gap: 8px; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.pagination .current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Footer */
.site-footer { background: var(--primary-deep); color: var(--on-primary-muted); padding: 56px 0 0; border-top: 6px solid var(--accent); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 72px; width: auto; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 1.1rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.footer-base { margin-top: 44px; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Call to action band */
.cta-primary { background: var(--primary); color: var(--on-primary-muted); }
.cta-primary h2 { color: #fff; }
.cta-accent { background: var(--accent); color: var(--on-accent); }
.cta-accent h2 { color: var(--on-accent); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: 6px; }
.cta-inner p { margin: 0; max-width: 60ch; }
.cta { padding: 48px 0; }

/* Builder pages: Parish blocks run edge to edge; ordinary blocks sit in the page width */
.builder-content > *:not(.parish-section):not(.alignfull) { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.builder-content > *:not(.parish-section) { margin-top: 32px; margin-bottom: 32px; }
.builder-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.builder-content > .alignfull > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.builder-content .wp-block-column > .side-card { margin-bottom: 0; }
.builder-content > .side-card { max-width: 400px; }
.builder-content > :is(p, h2, h3, ul, ol, blockquote):not(.alignfull):not(.alignwide) { max-width: 840px; box-sizing: border-box; }
.builder-content > h2 { margin-top: 44px; margin-bottom: 12px; }
.builder-content > ul:not(.alignfull) { padding-left: 44px; }
.builder-content > ul li { margin-bottom: 8px; }
.builder-content > p { font-size: 1.06rem; line-height: 1.75; }
.builder-content > .hero + p { margin-top: 48px; }
.builder-content > .cta { margin-top: 56px; }
.wp-block-group.has-background { padding: 48px 20px; }
.wp-block-button__link { border-radius: 4px; font-weight: 700; }


/* ---------- Steps timeline ---------- */
.pt-steps-intro { max-width: 70ch; color: var(--muted); margin: -12px 0 28px; font-size: 1.05rem; }
.pt-timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.pt-timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 3px; background: var(--accent-tint); border-radius: 2px; }
.pt-steps.life .pt-timeline::before { background: #fff; }
.pt-timeline li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 0 0 26px; }
.pt-timeline li:last-child { padding-bottom: 0; }
.pt-step-num { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; box-shadow: 0 0 0 5px var(--page, #fff); }
.pt-steps.life .pt-step-num { box-shadow: 0 0 0 5px var(--accent-tint); }
.pt-step-body { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px 18px; }
.pt-step-when { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); background: var(--accent-tint); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.pt-step-body h3 { margin: 0 0 6px; font-size: 1.2rem; }
.pt-step-body p { margin: 0; color: var(--ink); }

/* ---------- Checklist ---------- */
.pt-check-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; padding: 28px 30px; }
.pt-check-card h2 { margin: 0 0 8px; }
.pt-check-intro { color: var(--muted); margin: 0 0 18px; }
.pt-check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.pt-check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pt-tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; margin-top: 1px; }
.pt-check-list strong { display: block; }
.pt-check-list small { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.pt-check-note { margin: 18px 0 0; padding: 12px 16px; background: var(--accent-tint); border-radius: 6px; font-size: .95rem; }
@media (max-width: 700px) { .pt-check-list { grid-template-columns: 1fr; } .pt-check-card { padding: 22px 18px; } }

/* ---------- Questions & answers ---------- */
.pt-faq-list { max-width: 860px; display: grid; gap: 10px; }
.pt-faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.pt-faq-list details[open] { border-color: var(--accent); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.pt-faq-list summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; color: var(--primary); position: relative; }
.pt-faq-list summary::-webkit-details-marker { display: none; }
.pt-faq-list summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); color: var(--primary); display: grid; place-items: center; font-size: 1.2rem; line-height: 1; }
.pt-faq-list details[open] summary::after { content: "−"; background: var(--accent); color: var(--on-accent); }
.pt-faq-a { padding: 0 20px 6px; }
.pt-faq-a p { margin: 0 0 12px; }

/* ---------- Intro row with a Bible passage ---------- */
.builder-content > .wp-block-columns.pt-intro-row { max-width: var(--wrap); gap: 40px; align-items: center; margin-top: 52px; margin-bottom: 20px; }
.pt-intro-row p { font-size: 1.12rem; line-height: 1.8; }
.pt-intro-row .pb-box { border-top-color: var(--accent); background: var(--accent-tint); border-color: transparent; }
/* Six cards sit neatly in two rows of three; cards on white get an outline. */
@media (min-width: 900px) { .life-grid:has(> :nth-child(6):last-child), .life-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.section:not(.life) .life-card { border: 1px solid var(--line); border-bottom: 4px solid var(--accent); }
/* Keep banner headings readable over bright skies. */
.hero h1 { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hero p { text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--primary-deep) 30%, transparent) 0%, transparent 35%, color-mix(in srgb, var(--primary-deep) var(--hero-shade, 88%), transparent) 100%); }
@media (max-width: 700px) { .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--primary-deep) 55%, transparent) 0%, color-mix(in srgb, var(--primary-deep) var(--hero-shade, 88%), transparent) 75%); } }

/* Photo banners on ordinary pages: taller, with the title near the bottom. */
.page-banner.has-photo { padding: clamp(110px, 16vw, 190px) 0 40px; background-position: center 40%; }
.page-banner.has-photo h1 { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.page-banner.has-photo::before { background: linear-gradient(180deg, color-mix(in srgb, var(--primary-deep) 25%, transparent) 0%, color-mix(in srgb, var(--primary-deep) 85%, transparent) 100%); }
