/*
Theme Name: MyRevival
Theme URI: https://revivalfellowship.asia
Author: Revival Fellowship (TellMe @MyRevival)
Description: Warm, seeker-focused block theme for revivalfellowship.asia. Cream-and-green design system, protected content-only editing, accessible native WordPress. Companion plugin: myrevival-core.
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.0
 Version: 0.9.25
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myrevival
Tags: block-patterns, full-site-editing, church, accessible-ready
*/
@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@400;500;600;700&display=swap");


/* Additional structural styles that are awkward to express in theme.json.
   Design tokens live in theme.json; nothing here may widen the content-only editing contract. */

/* Placeholders for unapproved photography must be visibly labelled, never silent. */
.wp-block-image img[alt=""] {
	background-color: var(--wp--preset--color--sage);
}

/* Focus visibility: strong, consistent ring. */
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--deep-green);
	outline-offset: 2px;
}

/* Chinese text uses CJK typefaces with local fallbacks when Google Fonts are unavailable. */
html[lang="zh-Hans"],
body.mr-language-zh-hans {
	font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
	line-height: 1.85;
}
html[lang="zh-Hans"] :is(h1, h2, h3, h4, h5, h6),
body.mr-language-zh-hans :is(h1, h2, h3, h4, h5, h6) {
	font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
	letter-spacing: 0;
	line-height: 1.4;
}
html[lang="zh-Hans"] p,
body.mr-language-zh-hans p,
html[lang="zh-Hans"] li,
body.mr-language-zh-hans li {
	line-height: 1.9;
	word-break: normal;
	overflow-wrap: anywhere;
}

.mr-language-switch {
	flex: 0 0 auto;
	margin-inline-start: 0.75rem;
}
.mr-language-switch a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--wp--preset--color--deep-green);
	border-radius: 999px;
	color: var(--wp--preset--color--deep-green);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.mr-language-switch a:hover,
.mr-language-switch a:focus-visible {
	color: #fff;
	background: var(--wp--preset--color--deep-green);
}
@media (max-width: 781px) {
	.mr-language-switch { margin: 0.5rem 0 0 auto; }
	.mr-site-header > .wp-block-group > .wp-block-group { flex: 1 1 100%; }
}

/* Restrained card presentation for story/article cards rendered by myrevival-core.
   Warm off-white tint and soft shadow so cards read as "paper on a table". */
.mr-card {
	border: 1px solid var(--wp--preset--color--sage);
	border-radius: 12px;
	overflow: hidden;
	background: #fffdf8;
	box-shadow: 0 2px 12px rgba(30, 70, 52, 0.08);
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.mr-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(30, 70, 52, 0.14);
}
.mr-card__image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}
.mr-card__body {
	padding: 1.25rem 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}
.mr-card__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	line-height: 1.35;
	margin: 0;
}
.mr-card__title a {
	color: var(--wp--preset--color--charcoal);
	text-decoration: none;
}
.mr-card__title a:hover,
.mr-card__title a:focus-visible {
	text-decoration: underline;
	color: var(--wp--preset--color--deep-green);
}
.mr-card__excerpt {
	margin: 0;
	color: var(--wp--preset--color--charcoal);
}
.mr-card__meta {
	margin-top: auto;
	padding-top: 0.5rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.mr-pill {
	display: inline-block;
	font-size: 0.8125rem;
	line-height: 1;
	padding: 0.4em 0.8em;
	border-radius: 999px;
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--deep-green);
	text-decoration: none;
}
.mr-pill:hover,
.mr-pill:focus-visible {
	text-decoration: underline;
}

/* Card grid. */
.mr-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 1.5rem;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Archive filter toolbar (no-JS GET controls). */
.mr-filterbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	padding: 1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--sage);
	border-radius: 12px;
	background: #fff;
	margin-bottom: 2rem;
}
.mr-filterbar label {
	font-weight: 600;
}
.mr-filterbar select {
	font-size: 1rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--wp--preset--color--sage);
	border-radius: 8px;
	background: #fff;
}
.mr-filterbar button {
	font-size: 1rem;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--wp--preset--color--deep-green);
	border-radius: 8px;
	background: var(--wp--preset--color--deep-green);
	color: #fff;
	cursor: pointer;
}
.mr-filterbar button:hover {
	background: var(--wp--preset--color--charcoal);
}

/* Homepage hero: portrait image beside the copy, with the hook overlaid on
   the open sunrise sky. The crop keeps the person and the path visible. */
.mr-home-hero {
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	padding-block: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 4rem);
}
.mr-home-hero__visual {
	position: relative;
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	height: clamp(31rem, 48vw, 40rem);
	margin: 0;
	overflow: hidden;
	border-radius: 20px;
	background: var(--wp--preset--color--sage);
	isolation: isolate;
}
.mr-home-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: inherit;
	overflow: hidden;
}
.mr-home-hero__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 46%;
	border-radius: inherit;
}
.mr-home-hero__visual::after {
	position: absolute;
	z-index: 0;
	inset: 0;
	background: linear-gradient(180deg, rgb(20 30 25 / 8%) 0%, transparent 38%, rgb(20 30 25 / 12%) 100%);
	content: "";
	pointer-events: none;
}
.mr-home-hero__title-overlay {
	position: absolute;
	z-index: 1;
	top: clamp(1rem, 3vw, 2rem);
	left: clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
	width: min(23rem, calc(100% - 2rem));
	margin: 0;
	padding: clamp(1rem, 2.4vw, 1.75rem);
	border: 1px solid rgb(255 255 255 / 76%);
	border-left: 4px solid var(--wp--preset--color--deep-green);
	border-radius: 4px 14px 14px 4px;
	background: rgb(247 244 237 / 74%);
	-webkit-backdrop-filter: blur(16px) saturate(125%);
	backdrop-filter: blur(16px) saturate(125%);
	box-shadow: 0 12px 34px rgb(22 34 28 / 20%);
	color: var(--wp--preset--color--deep-green);
	font-family: "Segoe Print", "Segoe Script", "Bradley Hand", cursive;
	font-size: clamp(2rem, 4vw, 3.4rem);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.14;
	text-wrap: balance;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.mr-home-hero__title-overlay {
		background: rgb(247 244 237 / 94%);
	}
}
.mr-home-hero__copy {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}
.mr-home-hero__copy > p.has-large-font-size {
	margin: 0 0 1.5rem;
	font-size: clamp(1.1rem, 1.4vw, 1.3rem);
	line-height: 1.65;
}
.mr-home-hero__actions {
	display: block;
	margin: 0;
}
.mr-home-hero__cta,
.mr-home-hero__cta .wp-block-button__link {
	width: 100%;
}
.mr-home-hero__cta .wp-block-button__link {
	box-sizing: border-box;
	display: block;
	padding: 1rem 1.5rem;
	border-radius: 12px;
	text-align: center;
	font-size: 1.2rem;
	font-weight: 600;
}
.mr-home-hero__tagline {
	margin: 1.2rem 0 0;
	color: var(--wp--preset--color--deep-green);
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	line-height: 1.5;
}
@media (max-width: 780px) {
	.mr-home-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.4rem;
	}
	.mr-home-hero__visual {
		grid-column: 1;
		grid-row: 1;
		height: clamp(26rem, 110vw, 34rem);
		border-radius: 16px;
	}
	.mr-home-hero__copy {
		grid-column: 1;
		grid-row: 2;
	}
	.mr-home-hero__title-overlay {
		width: min(21rem, calc(100% - 2rem));
		font-size: clamp(2rem, 8vw, 2.75rem);
	}
}

/* Hero media frame used for other image-led content. */
.mr-hero-media img {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	border-radius: 16px;
}
.mr-placeholder {
	border: 2px dashed var(--wp--preset--color--deep-green);
	border-radius: 16px;
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--deep-green);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
	min-height: 280px;
	font-size: 0.9375rem;
}
.mr-placeholder--small {
	min-height: 200px;
}

/* Utility line under hero. */
.mr-utility {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	align-items: baseline;
	padding: 0.9rem 1.25rem;
	background: var(--wp--preset--color--sage);
	border-radius: 12px;
	font-size: 1rem;
}
.mr-utility strong {
	color: var(--wp--preset--color--deep-green);
}

/* Pathway cards (choose a path). */
.mr-path-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 1.25rem;
}
.mr-path {
	border: 1px solid var(--wp--preset--color--sage);
	border-radius: 12px;
	padding: 1.5rem;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
}
.mr-path h3 {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.1875rem;
	line-height: 1.4;
}
.mr-path p {
	margin: 0;
	flex: 1;
}

/* FAQs with native details elements. */
.mr-faq details {
	border: 1px solid var(--wp--preset--color--sage);
	border-radius: 12px;
	background: #fff;
	margin-bottom: 0.75rem;
}
.mr-faq summary {
	cursor: pointer;
	padding: 1rem 1.25rem;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--heading);
	border-radius: 12px;
}
.mr-faq details[open] summary {
	border-bottom: 1px solid var(--wp--preset--color--sage);
}
.mr-faq .wp-block-details__content {
	padding: 0.25rem 1.25rem 1rem;
}

/* Legacy Chinese template: readable CJK line-height and larger interlinear spacing. */
.mr-legacy-body {
	line-height: 2;
}
.mr-legacy-notice {
	background: var(--wp--preset--color--sage);
	border-radius: 12px;
	padding: 0.9rem 1.25rem;
	font-size: 0.9375rem;
}

/* Mobile menu overlay: keep items inside the viewport and left-aligned
   even though the bar layout justifies links to the right. */
@media (max-width: 782px) {
	.wp-block-navigation__responsive-container.is-menu-open {
		box-sizing: border-box;
		padding: 0;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		box-sizing: border-box;
		width: 100%;
		padding: 4.5rem clamp(1.25rem, 6vw, 2rem) 2rem;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
	.wp-block-navigation__responsive-container.is-menu-open .mr-main-nav {
		box-sizing: border-box;
		align-items: stretch !important;
		justify-content: flex-start !important;
		width: 100%;
		gap: 0.5rem;
		padding: 0;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		margin-left: 0;
		width: 100%;
		align-items: stretch !important;
		box-sizing: border-box;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a {
		display: flex;
		align-items: center;
		box-sizing: border-box;
		width: 100%;
		min-height: 3.25rem;
		padding: 0.75rem 1rem;
		text-align: left;
	}
	.wp-block-navigation__responsive-container.is-menu-open .mr-nav-cta {
		align-self: stretch;
		justify-content: center;
		margin-top: 0.5rem;
	}
	.wp-block-navigation__responsive-container.is-menu-open .mr-nav-cta > a {
		width: min(100%, 18rem);
		min-height: 3.5rem;
		margin-inline: auto;
		justify-content: center;
		padding: 0.85rem 1.5rem;
		text-align: center;
		white-space: nowrap;
	}
}

/* Footer: compact, one text size throughout, three symmetrical columns
   (identical label + underline + content structure) that stack on mobile. */
.mr-site-footer.mr-site-footer {
	padding-top: 2.5rem;
	padding-bottom: 1rem;
	margin-top: 3.5rem;
}
.mr-footer-grid {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 1.75rem;
	align-items: start;
}
.mr-footer-grid > * {
	margin: 0 !important;
}
.mr-footer-col > * {
	margin: 0 !important;
	font-size: 0.875rem;
	line-height: 1.55;
}
.mr-footer-col > * + * {
	margin-top: 0.6rem !important;
}
.mr-footer-label {
	font-size: 0.875rem !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #D8E2DB;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.mr-footer-links > * {
	margin: 0 !important;
}
.mr-footer-links p {
	line-height: 1.55;
}
.mr-footer-links p + p {
	margin-top: 0.35rem !important;
}
.mr-footer-links a {
	text-decoration: none;
	color: #fff;
}
/* Every link inside the deep-green footer must stay light, whatever the
   theme's default link colour is. */
.mr-site-footer a {
	color: #fff;
}
.mr-site-footer .mr-footer-label {
	color: #D8E2DB;
}
.mr-footer-links a:hover,
.mr-footer-links a:focus-visible {
	text-decoration: underline;
}
.mr-footer-details p {
	margin: 0 0 0.3rem;
	line-height: 1.55;
}
.mr-footer-rule {
	margin: 1.5rem 0 0.85rem;
	border-color: rgba(255, 255, 255, 0.25);
}
.mr-footer-legal > p {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 0 !important;
	font-size: 0.875rem;
}
/* Inner paragraphs of the church-info block and the legal line sit below
   the direct-child scope; keep every footer string at the same size. */
.mr-footer-col .mr-footer-details p,
.mr-footer-legal .mr-footer-text {
	font-size: 0.875rem;
}
@media (min-width: 720px) {
	.mr-footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 2.5rem;
	}
}

/* Pathway / question cards: one even row per row count, equal gaps,
   equal heights, no WordPress flow-margin stagger. */
.mr-path-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: stretch;
}
.mr-path-grid > * {
	margin: 0 !important;
	align-self: stretch;
}
.mr-path {
	text-align: left;
	align-items: stretch;
}
.mr-path h3,
.mr-path p {
	margin: 0;
	text-align: left;
	width: 100%;
}
.mr-path p:last-child {
	margin-top: auto !important;
	padding-top: 0.75rem;
}
@media (min-width: 640px) {
	.mr-path-grid {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	}
	/* Exactly three cards (Start Here questions): three equal columns. */
	.mr-path-grid:has(> .mr-path:nth-child(3)):not(:has(> .mr-path:nth-child(4))) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Text wrapping: long URLs from migrated content must never push the
   layout wider than the viewport. overflow-wrap inherits to all content. */
main,
.mr-site-footer,
.mr-card__excerpt {
	overflow-wrap: break-word;
	word-break: normal;
}
main .mr-migration-note,
main .mr-migration-note em {
	overflow-wrap: anywhere;
	font-size: 0.875rem;
	color: #5f6f66;
}
main .mr-migration-note a {
	color: var(--wp--preset--color--deep-green);
}

/* Warm off-white tint for the other card-like surfaces (paths, FAQs, filter bar). */
.mr-path,
.mr-faq details,
.mr-filterbar,
.mr-sunday-summary {
	background: #fffdf8;
}

/* Terracotta accent reserved for private-enquiry calls to action only. */
.wp-block-button.mr-cta-warm .wp-block-button__link,
a.mr-cta-warm {
	background: #d97b4f;
	color: #fff;
	transition: background 0.2s ease-out, transform 0.2s ease-out;
}
.wp-block-button.mr-cta-warm .wp-block-button__link:hover,
.wp-block-button.mr-cta-warm .wp-block-button__link:focus-visible,
a.mr-cta-warm:hover,
a.mr-cta-warm:focus-visible {
	background: #c2683f;
	color: #fff;
}
/* Hero's low-pressure enquiry link: terracotta underline, no button weight. */
.mr-hero-ask a {
	color: inherit;
	text-decoration-color: #d97b4f;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: color 0.2s ease-out;
}
.mr-hero-ask a:hover,
.mr-hero-ask a:focus-visible {
	color: #c2683f;
}
.mr-utility {
	transition: box-shadow 0.2s ease-out;
}
.mr-utility:hover {
	box-shadow: 0 2px 12px rgba(30, 70, 52, 0.12);
}

/* Gentle scroll-reveal: top-level sections and cards fade-up once.
   JS adds .mr-reveal then .is-visible on intersection; without JS or with
   prefers-reduced-motion, everything stays fully visible. */
@media (prefers-reduced-motion: no-preference) {
	.js .mr-reveal {
		opacity: 0;
		transform: translateY(12px);
		transition: opacity 0.45s ease-out, transform 0.45s ease-out;
	}
	.js .mr-reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* Stories carousel: up to six cards, three visible per row, scroll-snap
   paging. Without JS the viewport still swipes; controls are JS-only. */
.mr-carousel-viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.mr-carousel-viewport::-webkit-scrollbar {
	display: none;
}
.mr-card-grid.mr-carousel-track {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3rem) / 3);
	align-items: start;
}
.mr-card-grid.mr-carousel-track > li {
	scroll-snap-align: start;
}
/* Cap excerpt height so off-screen cards can't stretch the carousel row. */
.mr-carousel-track .mr-card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mr-carousel-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.25rem;
}
.mr-carousel-btn {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--wp--preset--color--deep-green);
	border-radius: 999px;
	background: #fffdf8;
	color: var(--wp--preset--color--deep-green);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease-out, color 0.2s ease-out;
}
.mr-carousel-btn:hover:not(:disabled),
.mr-carousel-btn:focus-visible {
	background: var(--wp--preset--color--deep-green);
	color: #fff;
}
.mr-carousel-btn:disabled {
	opacity: 0.35;
	cursor: default;
}
.mr-carousel-dots {
	display: flex;
	gap: 0.5rem;
}
.mr-carousel-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--wp--preset--color--sage);
	transition: background 0.2s ease-out, width 0.2s ease-out;
}
.mr-carousel-dot.is-active {
	background: var(--wp--preset--color--deep-green);
	width: 1.25rem;
}
@media (max-width: 782px) {
	.mr-card-grid.mr-carousel-track {
		grid-auto-columns: 86%;
	}
}

/* Reduced motion: honour the user preference globally. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Keep header/footer chrome reading-width friendly. */
.mr-site-header,
.mr-site-footer {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}
.mr-site-footer {
	margin-top: 4rem;
}

/* "Plan a Visit" navigation item presented as a pill button. */
.mr-main-nav .mr-nav-cta a,
.mr-main-nav .wp-block-navigation-item.mr-nav-cta > a {
	background: var(--wp--preset--color--deep-green);
	color: #fff;
	border-radius: 999px;
	padding: 0.55em 1.2em;
	text-decoration: none;
}
.mr-main-nav .mr-nav-cta a:hover,
.mr-main-nav .mr-nav-cta a:focus-visible {
	background: var(--wp--preset--color--charcoal);
	color: #fff;
}

/* Arrow links used in pathway cards. */
.mr-arrow-link {
	font-weight: 600;
	text-decoration: none;
}
.mr-arrow-link:hover,
.mr-arrow-link:focus-visible {
	text-decoration: underline;
}

/* Contemporary, photo-led polish inspired by Life.Church's clear hierarchy
   and next-step cues, while retaining Revival Fellowship's own colours and
   the existing page/content structure. */
:root {
	--mr-brand-teal: #087d87;
	--mr-brand-teal-deep: #06656d;
	--mr-shadow-soft: 0 12px 30px rgb(28 51 41 / 9%);
	--mr-shadow-hover: 0 18px 38px rgb(28 51 41 / 15%);
}

main h1,
main h2,
main h3,
.mr-site-header .wp-block-site-title {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 750;
	letter-spacing: -0.035em;
}

main h2 {
	color: var(--wp--preset--color--deep-green);
}

.mr-site-header {
	background: rgb(255 255 255 / 68%);
	border-bottom: 1px solid rgb(36 75 60 / 12%);
}
.mr-logo {
	gap: 0.85rem;
}
.mr-logo .wp-block-site-logo img {
	display: block;
	width: 76px !important;
	height: 76px !important;
	max-width: none;
	object-fit: contain;
	border: 1px solid #e2e7e2;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 5px 16px rgb(28 51 41 / 9%);
}
.mr-site-header .wp-block-site-title a {
	color: var(--wp--preset--color--deep-green);
	text-decoration: none;
}
.mr-main-nav .wp-block-navigation-item:not(.mr-nav-cta) > a {
	border-radius: 9px;
	font-weight: 650;
	text-decoration: none;
	transition: background-color 0.18s ease-out, color 0.18s ease-out;
}
.mr-main-nav .wp-block-navigation-item:not(.mr-nav-cta) > a:hover,
.mr-main-nav .wp-block-navigation-item:not(.mr-nav-cta) > a:focus-visible {
	background: var(--wp--preset--color--sage);
	color: var(--wp--preset--color--deep-green);
}

.mr-home-hero {
	gap: clamp(2rem, 5vw, 4.5rem);
}
.mr-home-hero__visual {
	border-radius: 26px;
	box-shadow: var(--mr-shadow-soft);
}
.mr-home-hero__title-overlay {
	color: var(--wp--preset--color--deep-green);
	box-shadow: 0 16px 40px rgb(22 34 28 / 24%);
}
.mr-home-hero__cta .wp-block-button__link {
	min-height: 3.4rem;
	border: 1px solid var(--wp--preset--color--deep-green);
	box-shadow: 0 8px 18px rgb(36 75 60 / 17%);
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.18s ease-out;
}
.mr-home-hero__cta .wp-block-button__link:hover,
.mr-home-hero__cta .wp-block-button__link:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgb(36 75 60 / 24%);
}

.mr-card {
	border-color: rgb(36 75 60 / 14%);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--mr-shadow-soft);
}
.mr-card:hover,
.mr-card:focus-within {
	box-shadow: var(--mr-shadow-hover);
}
.mr-card__image img {
	height: 232px;
	object-position: center 35%;
}
.mr-card__body {
	padding: 1.35rem 1.4rem 1.6rem;
}
.mr-card__title {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 750;
	letter-spacing: -0.025em;
}
.mr-card__title a {
	color: var(--wp--preset--color--deep-green);
}
.mr-card__title a:hover,
.mr-card__title a:focus-visible {
	color: var(--mr-brand-teal-deep);
}

.mr-path {
	position: relative;
	box-sizing: border-box;
	padding: clamp(1.25rem, 2vw, 1.75rem);
	border: 1px solid rgb(36 75 60 / 14%);
	border-top: 4px solid var(--mr-brand-teal);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--mr-shadow-soft);
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}
.mr-path:hover,
.mr-path:focus-within {
	transform: translateY(-3px);
	border-color: rgb(8 125 135 / 38%);
	box-shadow: var(--mr-shadow-hover);
}
.mr-path h3 {
	color: var(--wp--preset--color--deep-green);
	font-size: clamp(1.2rem, 1.5vw, 1.45rem);
}
.mr-arrow-link {
	color: var(--mr-brand-teal-deep);
	font-weight: 750;
}

.wp-block-button__link,
.mr-filterbar button {
	font-weight: 700;
	transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.18s ease-out;
}
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.mr-filterbar button:hover,
.mr-filterbar button:focus-visible {
	box-shadow: 0 8px 18px rgb(28 51 41 / 17%);
}

body.single-mr_story .wp-block-post-featured-image {
	margin-block: 1.5rem 2rem;
}
body.single-mr_story .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	max-height: 520px;
	border-radius: 24px;
	object-fit: cover;
	object-position: center 35%;
	box-shadow: var(--mr-shadow-soft);
}

@media (max-width: 781px) {
	.mr-logo .wp-block-site-logo img {
		width: 60px !important;
		height: 60px !important;
		border-radius: 12px;
	}
	.mr-card__image img {
		height: 220px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mr-card,
	.mr-path,
	.mr-home-hero__cta .wp-block-button__link,
	.wp-block-button__link,
	.mr-main-nav .wp-block-navigation-item > a {
		transition: none !important;
	}
}

/* Church info renderings. */
.mr-utility .mr-utility__item {
	margin: 0;
}
.mr-sunday-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--sage);
	border-radius: 12px;
	margin-bottom: 1.5rem;
}
.mr-sunday-summary div {
	margin: 0;
}
.mr-sunday-summary strong {
	display: block;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--deep-green);
}
.mr-footer-details a {
	color: #fff;
}
.mr-pending-notice {
	display: inline-block;
	background: #fff;
	color: var(--wp--preset--color--charcoal);
	border: 1px dashed var(--wp--preset--color--deep-green);
	border-radius: 8px;
	padding: 0.5rem 0.9rem;
	font-size: 0.875rem;
}

/* Google Maps visitor route: keep it responsive and clearly separated. */
.mr-visit-map {
	margin-block: 1.5rem 2.5rem;
}
.mr-visit-map iframe {
	display: block;
	width: 100%;
	min-height: 22rem;
	border: 0;
	border-radius: 12px;
}
.mr-visit-map p {
	margin-block: 0.9rem 0;
}
.mr-visit-map__directions {
	display: inline-block;
	padding: 0.7rem 1.1rem;
	background: var(--wp--preset--color--deep-green);
	color: #fff;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}
.mr-visit-map__directions:hover,
.mr-visit-map__directions:focus-visible {
	background: var(--wp--preset--color--charcoal);
	color: #fff;
}

/* Start Here: a calm, text-led set of optional next steps. */
.mr-journey {
	margin-block-start: 3rem;
	padding-block-start: 2rem;
	border-top: 1px solid var(--wp--preset--color--sage);
}
.mr-journey > h2 {
	margin: 0 0 1.25rem;
	color: var(--wp--preset--color--deep-green);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
}
.mr-journey-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}
.mr-journey-list > * {
	margin: 0 !important;
}
.mr-journey-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem 1.5rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--wp--preset--color--sage);
	border-radius: 14px;
	background: #fffdf8;
	transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}
.mr-journey-item:hover {
	border-color: var(--wp--preset--color--deep-green);
	box-shadow: 0 5px 18px rgb(36 75 60 / 8%);
}
.mr-journey-copy > * {
	margin: 0;
}
.mr-journey-copy h3 {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.2rem;
	line-height: 1.35;
}
.mr-journey-copy p {
	margin-block-start: 0.35rem;
	color: var(--wp--preset--color--charcoal);
}
.mr-journey-action {
	margin: 0;
	white-space: nowrap;
}
.mr-journey-action a {
	color: var(--wp--preset--color--deep-green);
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
.mr-journey-action a:hover,
.mr-journey-action a:focus-visible {
	text-decoration-thickness: 2px;
}
@media (max-width: 600px) {
	.mr-journey-item {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
		padding: 1.1rem 1.15rem;
	}
	.mr-journey-action {
		white-space: normal;
	}
}

/* Sanctuary palette refinement: a confident warm transition under the header,
   paired with forest green, soft sage and restrained copper details. */
:root {
	--mr-sanctuary-ivory: #FFFAF3;
	--mr-sanctuary-sand: #F0DECE;
	--mr-sanctuary-sand-light: #F6EAE0;
	--mr-sanctuary-copper: #B97958;
}
.mr-site-header {
	background: var(--mr-sanctuary-ivory);
	border-bottom: 3px solid #D7B69B;
	box-shadow: 0 5px 18px rgb(66 45 31 / 7%);
}
.mr-logo .wp-block-site-logo img {
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	mix-blend-mode: multiply;
	clip-path: inset(5%);
}
.mr-home-hero {
	position: relative;
	z-index: 0;
	isolation: isolate;
}
.mr-home-hero::before {
	position: absolute;
	z-index: -1;
	inset-block: 0;
	inset-inline: calc(50% - 50vw);
	border-top: 4px solid var(--mr-sanctuary-copper);
	border-bottom: 1px solid #D9BBA4;
	background: linear-gradient(115deg, var(--mr-sanctuary-sand) 0%, var(--mr-sanctuary-sand-light) 52%, #EBD4C1 100%);
	box-shadow: 0 10px 26px rgb(71 48 33 / 8%);
	content: "";
	pointer-events: none;
}
.mr-home-hero__tagline {
	color: var(--wp--preset--color--deep-green);
}
@media (max-width: 781px) {
	.mr-home-hero::before {
		background: linear-gradient(145deg, var(--mr-sanctuary-sand-light), #EBD4C1);
	}
}
body.home {
	 overflow-x: clip;
}


/* PRIORITY 1 — Typography system
   Paste this complete file into WordPress Customizer > Additional CSS, or
   place it in a child theme stylesheet. Google Fonts are loaded on demand. */

/* PRIORITY 2 — Warm, high-contrast palette */
:root {
	--mr-navy: #1a2947;
	--mr-navy-light: #263a5b;
	--mr-gold: #d4a574;
	--mr-coral: #e86f5f;
	--mr-charcoal: #2d3748;
	--mr-cream: #faf8f5;
	--mr-divider: #e7e5e1;
	--mr-blue-grey: #64748b;
	--mr-secondary-text: #5f6f83;

	--wp--preset--color--cream: #faf8f5;
	--wp--preset--color--charcoal: #2d3748;
	--wp--preset--color--deep-green: #1a2947;
	--wp--preset--color--sage: #e7e5e1;
	--wp--preset--color--white: #fffdfa;
	--wp--preset--font-family--heading: "Crimson Pro", Georgia, "Noto Serif SC", serif;
	--wp--preset--font-family--body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
	--mr-brand-teal: #e86f5f;
	--mr-brand-teal-deep: #1a2947;
	--mr-shadow-soft: 0 10px 28px rgb(26 41 71 / 8%);
	--mr-shadow-hover: 0 16px 36px rgb(26 41 71 / 14%);
}

/* Typography scale: 48–56px H1, 36–42px H2, 28–32px H3 on desktop. */
html {
	font-size: 100%;
}
body,
button,
input,
select,
textarea {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
body {
	background: var(--mr-cream, #faf8f5);
	color: var(--mr-charcoal, #2d3748);
	font-size: clamp(1.125rem, 1.1vw + 0.35rem, 1.25rem);
	font-weight: 400;
	line-height: 1.7;
}
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-post-title,
.mr-site-header .wp-block-site-title,
.mr-card__title,
.mr-path h3,
.mr-journey-copy h3 {
	font-family: "Crimson Pro", Georgia, "Noto Serif SC", serif;
	font-weight: 600;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
main h1,
main .wp-block-post-title {
	color: var(--mr-navy, #1a2947);
	font-size: clamp(3rem, 4.2vw, 3.5rem);
	line-height: 1.2;
}
main h2 {
	color: var(--mr-navy, #1a2947);
	font-size: clamp(2.25rem, 3.1vw, 2.625rem);
	line-height: 1.3;
}
main h3 {
	color: var(--mr-navy, #1a2947);
	font-size: clamp(1.75rem, 2.35vw, 2rem);
	line-height: 1.3;
}
main p,
main li,
main .wp-block-post-content {
	font-size: clamp(1.125rem, 1.1vw + 0.35rem, 1.25rem);
	line-height: 1.7;
}
main .wp-block-post-content > p,
main .wp-block-post-content > ul,
main .wp-block-post-content > ol {
	max-width: 45rem;
}
main .wp-block-post-content > p + p {
	margin-block-start: 1.5rem;
}
:where(.mr-card__meta, .mr-pill, .mr-footer-col > *, .mr-footer-legal > p,
	.mr-filterbar label, .mr-main-nav .wp-block-navigation-item > a,
	figcaption, .wp-block-image figcaption) {
	font-size: clamp(0.875rem, 0.35vw + 0.8rem, 1rem);
	line-height: 1.6;
}

/* PRIORITY 3 — Section rhythm, readable measure, and warm surfaces */
main.wp-block-group {
	box-sizing: border-box;
	padding-inline: clamp(1.5rem, 5vw, 5rem);
}
main .wp-block-post-content > .wp-block-group:not(.mr-home-hero) {
	padding-block: clamp(5rem, 8vw, 7.5rem);
}
main .wp-block-post-content > .wp-block-group + .wp-block-group {
	margin-block-start: 0;
}
.mr-card,
.mr-path,
.mr-faq details,
.mr-filterbar,
.mr-sunday-summary,
.mr-journey-item {
	border-color: var(--mr-divider);
	background-color: #fffdfa;
	box-shadow: var(--mr-shadow-soft);
}
.mr-card,
.mr-path,
.mr-journey-item {
	border-radius: 1.125rem;
}
.mr-card-grid,
.mr-path-grid {
	gap: 2.5rem;
}
.mr-card__title a,
.mr-path h3,
.mr-arrow-link,
.mr-journey-action a {
	color: var(--mr-navy, #1a2947);
}
.mr-card__excerpt,
.mr-card__meta,
.mr-journey-copy p,
.mr-utility {
	color: var(--mr-secondary-text);
}
.mr-path {
	border-top: 4px solid var(--mr-coral);
	padding: clamp(1.5rem, 2.5vw, 2rem);
}
.mr-path:hover,
.mr-path:focus-within,
.mr-card:hover,
.mr-card:focus-within {
	border-color: var(--mr-gold);
	box-shadow: var(--mr-shadow-hover);
}
.mr-pill,
.mr-utility {
	background-color: #f0ece6;
	color: var(--mr-navy, #1a2947);
}

/* Hero: preserve the existing photo and markup; use midnight blue as its band. */
.mr-site-header {
	background-color: var(--mr-cream, #faf8f5);
	border-bottom: 1px solid var(--mr-divider);
	box-shadow: none;
}
.mr-site-header .wp-block-site-title a,
.mr-main-nav .wp-block-navigation-item:not(.mr-nav-cta) > a {
	color: var(--mr-navy, #1a2947);
}
.mr-main-nav .wp-block-navigation-item:not(.mr-nav-cta) > a:hover,
.mr-main-nav .wp-block-navigation-item:not(.mr-nav-cta) > a:focus-visible {
	background-color: #f0ece6;
	color: var(--mr-navy, #1a2947);
}
.mr-home-hero::before {
	border-top: 4px solid var(--mr-gold);
	border-bottom: 1px solid var(--mr-navy-light);
	background: linear-gradient(135deg, var(--mr-navy, #1a2947), var(--mr-navy-light));
	box-shadow: none;
}
.mr-home-hero__copy,
.mr-home-hero__copy p {
	color: #fffdfa;
}
.mr-home-hero__tagline {
	color: var(--mr-gold);
}
.mr-home-hero__title-overlay {
	border-left-color: var(--mr-gold);
	background: rgb(250 248 245 / 90%);
	color: var(--mr-navy, #1a2947);
	font-family: "Crimson Pro", Georgia, "Noto Serif SC", serif;
	font-size: clamp(2.5rem, 4.2vw, 3.5rem);
	font-weight: 600;
	line-height: 1.1;
}

/* Screenshot-matched homepage hero: original copy, one primary action, and
   the welcoming line beneath it. */
.mr-home-hero__copy > p.has-large-font-size {
	max-width: 34rem;
	margin-bottom: 1.5rem;
	font-size: clamp(1.2rem, 1.8vw, 1.5rem);
	line-height: 1.65;
}
.mr-home-hero__actions {
	display: block;
	margin: 0;
}
.mr-home-hero .mr-home-hero__cta .wp-block-button__link {
	width: 100%;
	min-height: 3.5rem;
	padding: 1rem 1.5rem;
	font-size: 1.15rem;
	text-align: center;
}
.mr-home-hero__tagline {
	max-width: 34rem;
	margin-top: 1.1rem;
	color: #fffdfa;
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	font-weight: 400;
}

/* PRIORITY 4 — Primary actions and keyboard-visible interaction states.
   Navy labels on the requested coral have 4.7:1 contrast; white labels on this
   coral do not meet the normal-text contrast target. */
.wp-block-button .wp-block-button__link,
.mr-main-nav .mr-nav-cta > a,
.mr-filterbar button,
.mr-carousel-btn,
.ff-btn-submit,
.frm_button_submit,
.wp-block-search__button {
	min-height: 3.25rem;
	border: 1px solid var(--mr-coral);
	border-radius: 999px;
	background: var(--mr-coral);
	box-shadow: 0 5px 14px rgb(26 41 71 / 12%);
	color: var(--mr-navy, #1a2947);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
	font-size: 1.125rem;
	font-weight: 650;
	line-height: 1.25;
	padding: 0.85rem 1.5rem;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
/* Keep the visit CTA on one line and vertically aligned with the text links. */
.mr-main-nav .mr-nav-cta > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 3.25rem;
	white-space: nowrap;
	text-align: center;
}
.wp-block-button .wp-block-button__link:hover,
.mr-main-nav .mr-nav-cta > a:hover,
.mr-filterbar button:hover,
.mr-carousel-btn:hover,
.ff-btn-submit:hover,
.frm_button_submit:hover,
.wp-block-search__button:hover {
	transform: translateY(-1px);
	border-color: var(--mr-navy, #1a2947);
	background: var(--mr-navy, #1a2947);
	color: #fffdfa;
}
.wp-block-button .wp-block-button__link:focus-visible,
.mr-main-nav .mr-nav-cta > a:focus-visible,
.mr-filterbar button:focus-visible,
.mr-carousel-btn:focus-visible,
.ff-btn-submit:focus-visible,
.frm_button_submit:focus-visible,
.wp-block-search__button:focus-visible,
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--mr-navy, #1a2947);
	outline-offset: 3px;
}
.mr-home-hero :where(a, button, input, select, textarea, summary):focus-visible,
.mr-site-footer :where(a, button, input, select, textarea, summary):focus-visible {
	outline-color: var(--mr-gold);
}
.mr-site-footer {
	background-color: var(--mr-navy, #1a2947);
	color: #fffdfa;
}
.mr-site-footer a {
	color: #fffdfa;
}
.mr-site-footer .mr-footer-label {
	color: #f1d3ad;
}

/* Forms use the same readable type scale and visible focus treatment. */
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
	box-sizing: border-box;
	max-width: 100%;
	border: 1px solid #b9c1cb;
	border-radius: 0.625rem;
	background: #fffdfa;
	color: var(--mr-charcoal, #2d3748);
	font: 400 1.125rem/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
	padding: 0.75rem 0.875rem;
}
:where(input, select, textarea):focus-visible {
	border-color: var(--mr-navy, #1a2947);
	box-shadow: 0 0 0 3px rgb(26 41 71 / 14%);
}

@media (max-width: 781px) {
	main.wp-block-group {
		padding-inline: 1.5rem;
	}
	main .wp-block-post-content > .wp-block-group:not(.mr-home-hero) {
		padding-block: clamp(3.75rem, 12vw, 5rem);
	}
	main h1,
	main .wp-block-post-title {
		font-size: clamp(2.25rem, 8vw, 2.5rem);
	}
	main h2 {
		font-size: clamp(1.75rem, 6vw, 2rem);
	}
	main h3 {
		font-size: clamp(1.375rem, 5vw, 1.5rem);
	}
	.mr-card-grid,
	.mr-path-grid {
		gap: 2rem;
	}
	.mr-home-hero::before {
		background: linear-gradient(145deg, var(--mr-navy, #1a2947), var(--mr-navy-light));
	}
}

@media (prefers-reduced-motion: reduce) {
	:where(*, *::before, *::after) {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

