/*
Theme Name: MF Wels Modern
Theme URI: https://www.mfwels.at/
Author: Codex
Description: Modernes, wartbares WordPress-Theme für die Mennonitische Freikirche Wels mit Kleingruppen- und Predigtarchiv.
Version: 1.6.82
Requires at least: 6.0
Requires PHP: 8.4
Text Domain: mfwels
*/

:root {
	--color-ink: #213027;
	--color-muted: #637168;
	--color-soft: #fff3f5;
	--color-paper: #fffefa;
	--color-line: #e5e1d7;
	--color-forest: #b3283a;
	--color-moss: #dc6472;
	--color-accent-deep: #8e1f2d;
	--color-accent-soft: rgba(179, 40, 58, 0.08);
	--color-accent-border: rgba(179, 40, 58, 0.18);
	--color-accent-surface: #fbeaed;
	--color-accent-surface-strong: #f7dde2;
	--color-clay: #bb8a27;
	--color-sun: #e6b64b;
	--color-sky: #f8ecef;
	--shadow-soft: 0 18px 42px rgba(142, 31, 45, 0.12);
	--shadow-card: 0 10px 24px rgba(142, 31, 45, 0.09);
	--radius: 8px;
	--wrap: 1180px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--color-clay);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.7rem;
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: 0;
}

h1 {
	font-size: 4.8rem;
	max-width: 920px;
}

h2 {
	font-size: 3.15rem;
}

h3 {
	font-size: 1.6rem;
}

p {
	margin: 0 0 1rem;
}

.wrap {
	width: min(var(--wrap), calc(100% - 40px));
	margin-inline: auto;
}

.skip-link {
	position: fixed;
	z-index: 999;
	top: 12px;
	left: 12px;
	padding: 0.7rem 1rem;
	background: var(--color-ink);
	color: #fff;
	border-radius: var(--radius);
	transform: translateY(-140%);
	transition: transform 0.2s ease;
}

.skip-link:focus {
	transform: translateY(0);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-header {
	position: sticky;
	z-index: 100;
	top: 0;
	background: rgba(255, 254, 250, 0.95);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(229, 225, 215, 0.9);
}

.header-top {
	background: var(--color-accent-soft);
	color: var(--color-forest);
	font-size: 0.9rem;
	border-bottom: 1px solid var(--color-accent-border);
}

.header-top__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.42rem;
}

.header-top__inner > span:first-child {
	min-width: 0;
}

.header-top a {
	color: var(--color-forest);
	font-weight: 800;
	text-decoration: none;
}

.header-top__links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: flex-end;
}

.header-top__icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--color-accent-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.46);
	color: var(--color-forest);
	text-decoration: none;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.header-top__icon-link:hover,
.header-top__icon-link:focus-visible {
	transform: translateY(-1px);
	background: var(--color-forest);
	border-color: var(--color-forest);
	color: #fff;
}

.header-top__icon {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

.header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem;
	padding-block: 1rem;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	min-width: 0;
	color: var(--color-ink);
	text-decoration: none;
}

.site-brand > span {
	min-width: 0;
}

.site-brand__logo {
	display: block;
	width: 164px;
	height: auto;
}

.site-header .site-brand > span {
	display: none;
}

.site-brand__mark {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	color: #fff;
	background: linear-gradient(135deg, var(--color-forest), var(--color-moss));
	border-radius: var(--radius);
	box-shadow: 0 10px 22px rgba(179, 40, 58, 0.18);
}

.site-brand__name {
	display: block;
	font-weight: 800;
	line-height: 1.12;
}

.site-brand__logo + span .site-brand__name {
	font-size: 0.98rem;
	max-width: 180px;
}

.site-brand__sub {
	display: block;
	color: var(--color-muted);
	font-size: 0.88rem;
	font-weight: 600;
}

.primary-navigation {
	display: flex;
	align-items: center;
}

.primary-menu,
.primary-navigation ul {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a,
.primary-navigation a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0.6rem 0.85rem;
	border-radius: var(--radius);
	color: var(--color-ink);
	font-weight: 700;
	text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.current-menu-item > a {
	background: var(--color-soft);
	color: var(--color-forest);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--color-ink);
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 5px auto;
	background: currentColor;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	align-items: center;
}

.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.78rem 1rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	background: var(--color-forest);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(179, 40, 58, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	transform: translateY(-1px);
	background: var(--color-accent-deep);
	color: #fff;
	box-shadow: 0 14px 26px rgba(179, 40, 58, 0.24);
}

.button--secondary {
	background: #fff;
	color: var(--color-ink);
	border-color: var(--color-line);
	box-shadow: none;
}

.button--secondary:hover,
.button--secondary:focus-visible {
	background: var(--color-soft);
	color: var(--color-ink);
}

.button--outline {
	background: transparent;
	color: var(--color-forest);
	border-color: var(--color-forest);
	box-shadow: none;
}

.button--outline:hover,
.button--outline:focus-visible {
	background: var(--color-forest);
	color: #fff;
}

.eyebrow {
	margin-bottom: 0.7rem;
	color: var(--color-clay);
	font-size: 0.8rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.lead {
	max-width: 740px;
	color: var(--color-muted);
	font-size: 1.2rem;
}

.hero {
	position: relative;
	display: grid;
	min-height: 76vh;
	overflow: hidden;
	color: var(--color-ink);
	background: var(--color-soft);
}

.hero::before {
	position: absolute;
	inset: 0;
	content: "";
	background:
		linear-gradient(90deg, rgba(255, 254, 250, 0.98), rgba(255, 254, 250, 0.88) 47%, rgba(255, 254, 250, 0.24)),
		var(--hero-image, none) center / cover no-repeat;
}

.hero__content {
	position: relative;
	display: grid;
	align-content: center;
	min-height: 76vh;
	padding-block: clamp(5rem, 11vw, 9rem);
}

.hero .eyebrow {
	color: var(--color-clay);
}

.hero .lead {
	color: var(--color-muted);
}

.hero__meta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: clamp(2rem, 5vw, 4rem);
}

.hero__meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	max-width: 100%;
	min-height: 38px;
	padding: 0.46rem 0.72rem;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(229, 225, 215, 0.95);
	border-radius: var(--radius);
	font-weight: 800;
	box-shadow: 0 8px 18px rgba(142, 31, 45, 0.08);
}

.annual-verse {
	display: grid;
	gap: 0.35rem;
	max-width: 620px;
	margin-top: 1.2rem;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(229, 225, 215, 0.95);
	border-radius: var(--radius);
	box-shadow: 0 12px 28px rgba(142, 31, 45, 0.11);
}

.annual-verse span,
.annual-verse small {
	color: var(--color-muted);
	font-weight: 800;
}

.annual-verse strong {
	color: var(--color-forest);
	font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
	font-size: 1.55rem;
	line-height: 1.2;
}

.section {
	padding-block: clamp(4rem, 8vw, 7rem);
}

@supports (content-visibility: auto) {
	.section {
		content-visibility: auto;
		contain-intrinsic-size: 1px 900px;
	}
}

.section--soft {
	background: var(--color-soft);
}

.section--ink {
	background: linear-gradient(180deg, #7c1c2b, #5e1622);
	color: #fff;
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2rem;
}

.section__head p {
	max-width: 640px;
	color: var(--color-muted);
}

.section--ink .section__head p,
.section--ink .lead {
	color: rgba(255, 255, 255, 0.75);
}

.grid {
	display: grid;
	gap: 1rem;
}

.grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(229, 225, 215, 0.92);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
	transform: translateY(-2px);
	border-color: rgba(179, 40, 58, 0.26);
	box-shadow: var(--shadow-soft);
}

.card__media {
	aspect-ratio: 16 / 10;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(248, 242, 234, 0.92), rgba(235, 246, 244, 0.92));
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.35rem;
}

.card__body p {
	color: var(--color-muted);
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.card__meta li,
.pill {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0.35rem 0.55rem;
	background: var(--color-accent-surface);
	border-radius: var(--radius);
	color: var(--color-forest);
	font-size: 0.86rem;
	font-weight: 800;
}

.card__link {
	margin-top: auto;
	color: var(--color-forest);
	font-weight: 900;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.card__link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-top: auto;
}

.card__link-row .card__link {
	margin-top: 0;
}

.card__link--secondary {
	color: var(--color-muted);
}

.event-date {
	display: inline-flex;
	align-self: flex-start;
	padding: 0.42rem 0.65rem;
	background: var(--color-accent-surface-strong);
	border: 1px solid var(--color-accent-border);
	border-radius: var(--radius);
	color: var(--color-forest);
	font-weight: 900;
}

.section--ink .event-date {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.feature-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.feature-panel__media {
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid rgba(229, 225, 215, 0.92);
	box-shadow: var(--shadow-soft);
}

.feature-panel__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.facts {
	display: grid;
	gap: 0.8rem;
	margin: 1.6rem 0;
	padding: 0;
	list-style: none;
}

.facts li {
	display: grid;
	grid-template-columns: minmax(5.25rem, max-content) minmax(0, 1fr);
	gap: 0.75rem;
	min-width: 0;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--color-line);
}

.facts strong {
	min-width: 0;
	color: var(--color-forest);
}

.facts span,
.facts a {
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: normal;
	hyphens: auto;
}

.steps {
	counter-reset: steps;
}

.step-card {
	position: relative;
	padding: 1.35rem;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
	height: 100%;
}

.step-card::before {
	display: grid;
	width: 40px;
	height: 40px;
	margin-bottom: 1.2rem;
	place-items: center;
	background: var(--color-forest);
	border-radius: var(--radius);
	color: #fff;
	counter-increment: steps;
	content: counter(steps);
	font-weight: 900;
}

.media-callout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
	gap: 2rem;
	align-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.link-grid,
.donation-grid,
.timeline-grid,
.mini-grid {
	display: grid;
	gap: 1rem;
}

.link-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline-grid {
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.mini-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-top: 1.4rem;
}

.donation-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	margin-top: 1.4rem;
}

.donation-card__qr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 220px;
	margin: 0.2rem 0 1rem;
	padding: 0.75rem;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 1px rgba(33, 48, 39, 0.04);
}

.donation-card__qr img {
	width: min(100%, 180px);
	height: auto;
	image-rendering: crisp-edges;
}

.group-social {
	display: grid;
	gap: 0.75rem;
}

.group-social__logo {
	width: 86px;
	height: 86px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 1px rgba(33, 48, 39, 0.04);
}

.group-social p {
	margin: 0;
	color: var(--color-muted);
}

.group-instagram-inline {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin: 1rem 0 0;
	padding: 0.8rem;
	background: var(--color-accent-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
}

.group-instagram-inline img {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: 10px;
}

.group-instagram-inline strong,
.group-instagram-inline a {
	display: block;
}

.link-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 100%;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.link-card h3 {
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.mini-grid .contact-box,
.donation-grid .contact-box,
.grid--3 > .card,
.grid--3 > .step-card {
	height: 100%;
}

.link-card:hover,
.link-card:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(179, 40, 58, 0.26);
	box-shadow: var(--shadow-soft);
	color: inherit;
}

.faq-layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
	gap: 2rem;
	align-items: start;
}

.faq-list {
	display: grid;
	gap: 0.9rem;
}

.faq-item {
	overflow: hidden;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
}

.faq-item summary {
	padding: 1rem 1.2rem;
	cursor: pointer;
	font-weight: 800;
	list-style: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item p {
	margin: 0;
	padding: 0 1.2rem 1.1rem;
	color: rgba(255, 255, 255, 0.78);
}

.creed-card {
	max-width: 900px;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.creed-card p {
	line-height: 1.8;
}

.creed-card p:last-child {
	margin-bottom: 0;
}

.has-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.45s ease, transform 0.45s ease;
}

.has-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	.has-reveal {
		opacity: 1;
		transform: none;
	}
}

.video-frame {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #111;
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.video-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.consent-embed,
.consent-embed__placeholder,
.consent-embed__content {
	width: 100%;
	height: 100%;
}

.consent-embed__content[hidden] {
	display: none;
}

.consent-embed__content iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.consent-embed.is-active .consent-embed__placeholder {
	display: none;
}

.consent-embed.is-active .consent-embed__content {
	display: block;
}

.consent-embed__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1.25rem, 3vw, 2rem);
	background:
		linear-gradient(135deg, rgba(179, 40, 58, 0.14), rgba(142, 31, 45, 0.08)),
		linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 234, 237, 0.96));
}

.consent-embed__copy {
	display: grid;
	gap: 0.9rem;
	max-width: 34rem;
	text-align: left;
}

.consent-embed__copy h3 {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.consent-embed__description {
	color: var(--color-muted);
	margin-bottom: 0;
}

.consent-embed__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1rem;
	color: var(--color-muted);
	font-size: 0.94rem;
}

.consent-embed__meta a {
	color: var(--color-forest);
	font-weight: 800;
}

.consent-embed__actions {
	margin-top: 0.2rem;
}

.video-frame .consent-embed__placeholder {
	aspect-ratio: 16 / 9;
}

.map-frame .consent-embed__placeholder {
	min-height: 360px;
}

.audio-player {
	display: grid;
	gap: 0.8rem;
	margin-bottom: 1.4rem;
	padding: 1rem;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.audio-player audio {
	width: 100%;
}

.audio-player__caption {
	margin: 0;
	font-size: 0.95rem;
	color: var(--color-muted);
}

.filter-bar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.8rem;
	align-items: end;
	margin-bottom: 2rem;
	padding: 1rem;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.filter-bar label {
	display: grid;
	gap: 0.35rem;
	font-weight: 800;
}

.filter-bar input,
.filter-bar select {
	width: 100%;
	min-height: 44px;
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--color-ink);
	font: inherit;
}

.filter-bar__actions {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.filter-summary {
	margin: 1rem 0 1.35rem;
	color: var(--color-muted);
	font-weight: 700;
}

.page-hero {
	padding-block: clamp(4rem, 7vw, 7rem);
	background: linear-gradient(180deg, #fff1f3, #fffefa);
	border-bottom: 1px solid var(--color-line);
}

.page-hero--image {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: var(--color-accent-deep);
}

.page-hero--image::before {
	position: absolute;
	inset: 0;
	content: "";
	background:
		linear-gradient(90deg, rgba(110, 25, 41, 0.84), rgba(110, 25, 41, 0.48)),
		var(--page-image, none) center / cover no-repeat;
}

.page-hero--image .wrap {
	position: relative;
}

.entry-content {
	max-width: 860px;
	margin-inline: auto;
}

.entry-content > * + * {
	margin-top: 1rem;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2rem;
}

.entry-content a {
	color: var(--color-forest);
	font-weight: 800;
}

.event-detail-image {
	padding: clamp(0.75rem, 2vw, 1rem);
	margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.event-detail-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	background: var(--color-soft);
	border-radius: calc(var(--radius) - 6px);
}

.event-flyer-page {
	padding: clamp(0.75rem, 2vw, 1rem);
	margin: clamp(1.5rem, 4vw, 2.5rem) 0;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.event-flyer-page img {
	display: block;
	width: 100%;
	max-width: 760px;
	height: auto;
	margin-inline: auto;
	object-fit: contain;
	background: var(--color-soft);
	border-radius: calc(var(--radius) - 6px);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.2rem;
}

.entry-content .legal-note {
	padding: 1rem 1.1rem;
	background: var(--color-accent-surface);
	border-left: 4px solid var(--color-forest);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.sidebar-box {
	padding: 1.2rem;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.sidebar-box + .sidebar-box {
	margin-top: 1rem;
}

.sidebar-box h3 {
	font-size: 1.2rem;
}

.sidebar-box .facts {
	gap: 0.55rem;
	margin: 1.1rem 0;
}

.sidebar-box .facts li {
	grid-template-columns: minmax(4.5rem, 0.38fr) minmax(0, 1fr);
	gap: 0.6rem;
	padding: 0.72rem 0;
}

.sidebar-box .facts strong,
.sidebar-box .facts span {
	line-height: 1.45;
}

.sidebar-box .button-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
	gap: 0.7rem;
}

.sidebar-box .button-row .button,
.sidebar-box .button-row .wp-block-button__link {
	width: 100%;
	min-width: 0;
}

.archive-empty {
	padding: 2rem;
	background: #fff;
	border: 1px dashed var(--color-line);
	border-radius: var(--radius);
	text-align: center;
}

.document-layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
	gap: 1.5rem;
	align-items: start;
}

.document-summary {
	display: grid;
	gap: 1rem;
}

.document-summary h2,
.document-summary h3 {
	margin-bottom: 0;
}

.document-period {
	display: inline-flex;
	width: fit-content;
	padding: 0.4rem 0.7rem;
	border-radius: 999px;
	background: var(--color-accent-soft);
	color: var(--color-accent-deep);
	font-weight: 800;
}

.document-frame {
	min-height: 540px;
	overflow: hidden;
	border-radius: var(--radius);
	background: #fff;
	border: 1px solid var(--color-line);
	box-shadow: var(--shadow-card);
}

.document-frame iframe {
	width: 100%;
	height: 100%;
	min-height: 540px;
	border: 0;
	background: #fff;
}

.document-frame iframe[hidden] {
	display: none;
}

.document-frame__placeholder,
.document-frame__empty {
	height: 100%;
	min-height: 540px;
	display: grid;
	place-items: center;
	padding: clamp(1.2rem, 3vw, 2rem);
	text-align: center;
}

.document-frame__placeholder p {
	max-width: 38rem;
	margin-inline: auto;
	color: var(--color-muted);
}

.document-frame__placeholder .button-row {
	justify-content: center;
	margin-top: 1rem;
}

.document-frame__placeholder[hidden],
.document-frame.is-loaded .document-frame__placeholder {
	display: none;
}

.document-archive {
	margin-top: 1.5rem;
	padding: 1.4rem;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.document-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.85rem;
}

.document-list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--color-line);
}

.document-list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.document-list strong,
.document-list span,
.document-list a {
	display: block;
}

.document-list span {
	color: var(--color-muted);
	font-size: 0.95rem;
	margin-top: 0.25rem;
}

.document-list a {
	font-weight: 800;
	color: var(--color-forest);
	text-decoration: none;
	white-space: nowrap;
}

.contact-band {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
	gap: 2rem;
	align-items: stretch;
}

.contact-box {
	padding: 1.4rem;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.map-frame {
	min-height: 360px;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--color-sky);
	border: 1px solid var(--color-line);
	box-shadow: var(--shadow-card);
}

.map-frame iframe {
	width: 100%;
	height: 100%;
	min-height: 360px;
	border: 0;
}

.site-footer {
	background: linear-gradient(180deg, #5f1723, #47111a);
	color: rgba(255, 255, 255, 0.78);
}

.footer-intro {
	max-width: 28rem;
}

.footer-main {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap: 2rem;
	padding-block: clamp(3rem, 6vw, 5rem);
}

.site-footer .site-brand {
	margin-bottom: 1rem;
	color: #fff;
}

.site-footer .site-brand__sub {
	color: rgba(255, 255, 255, 0.7);
}

.site-footer .site-brand__logo {
	width: 172px;
}

.site-footer h2,
.site-footer h3 {
	color: #fff;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer .button--secondary {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.78);
	box-shadow: none;
}

.site-footer .button--secondary:hover,
.site-footer .button--secondary:focus-visible {
	background: #fff;
	color: var(--color-bordeaux);
	border-color: #fff;
}

.footer-list {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-bottom {
	padding-block: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.9rem;
}

.footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.8rem 1rem;
}

.footer-legal a,
.footer-legal button {
	color: rgba(255, 255, 255, 0.88);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.footer-legal a:hover,
.footer-legal a:focus-visible,
.footer-legal button:hover,
.footer-legal button:focus-visible {
	color: #fff;
}

.button[hidden],
.pwa-install-link[hidden],
[data-pwa-install-trigger][hidden],
.pwa-dialog[hidden] {
	display: none !important;
}

.pwa-dialog {
	position: fixed;
	inset: 0;
	z-index: 95;
	display: grid;
	place-items: center;
	padding: 1.2rem;
}

.pwa-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(33, 48, 39, 0.46);
	backdrop-filter: blur(6px);
}

.pwa-dialog__surface {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 0.85rem;
	width: min(480px, 100%);
	padding: 1.35rem;
	background: rgba(255, 254, 250, 0.98);
	border: 1px solid var(--color-accent-border);
	border-radius: var(--radius);
	box-shadow: 0 24px 52px rgba(142, 31, 45, 0.2);
}

.pwa-dialog__text {
	margin-bottom: 0;
	color: var(--color-muted);
}

.pwa-dialog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.pwa-dialog__actions .button {
	flex: 1 1 220px;
}

body.has-pwa-dialog {
	overflow: hidden;
}

.consent-banner[hidden] {
	display: none !important;
}

.consent-banner {
	position: fixed;
	z-index: 80;
	right: 20px;
	bottom: 20px;
	left: 20px;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.consent-banner__surface {
	width: min(760px, 100%);
	max-height: calc(100svh - 40px);
	padding: 1.15rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: rgba(255, 254, 250, 0.98);
	border: 1px solid var(--color-accent-border);
	border-radius: var(--radius);
	box-shadow: 0 22px 48px rgba(142, 31, 45, 0.18);
	backdrop-filter: blur(12px);
	pointer-events: auto;
}

.consent-banner__summary {
	display: grid;
	gap: 0.55rem;
}

.consent-banner__summary h3 {
	font-size: 1.5rem;
	color: var(--color-forest);
}

.consent-banner__summary p {
	margin-bottom: 0;
}

.consent-banner__summary p:not(.eyebrow) {
	color: var(--color-muted);
}

.consent-banner__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.consent-banner__links a {
	color: var(--color-forest);
	font-weight: 800;
}

.consent-banner__actions,
.consent-banner__panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1rem;
}

.consent-banner__actions .button,
.consent-banner__panel-actions .button {
	flex: 1 1 200px;
	justify-content: center;
}

.consent-banner__panel {
	display: grid;
	gap: 0.9rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-line);
}

.consent-banner__panel[hidden] {
	display: none !important;
}

.consent-setting {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
}

.consent-setting p {
	margin-bottom: 0;
	color: var(--color-muted);
}

.consent-switch {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 700;
}

.alignwide {
	max-width: var(--wrap);
	margin-inline: auto;
}

.wp-caption,
.wp-block-image {
	max-width: 100%;
}

@media (max-width: 1120px) {
	h1 {
		font-size: 3.65rem;
	}

	h2 {
		font-size: 2.55rem;
	}

	.nav-toggle {
		display: inline-grid;
		place-items: center;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		right: 20px;
		left: 20px;
		display: none;
		padding: 0.7rem;
		background: #fff;
		border: 1px solid var(--color-line);
		border-radius: var(--radius);
		box-shadow: var(--shadow-soft);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-menu,
	.primary-navigation ul {
		display: grid;
		gap: 0.2rem;
	}

	.primary-menu a,
	.primary-navigation a {
		width: 100%;
	}

	.grid--3,
	.grid--2,
	.link-grid,
	.timeline-grid,
	.mini-grid,
	.donation-grid,
	.feature-panel,
	.document-layout,
	.faq-layout,
	.media-callout,
	.single-layout,
	.contact-band,
	.footer-main,
	.filter-bar {
		grid-template-columns: 1fr;
	}

	.section__head {
		display: grid;
	}
}

@media (max-width: 860px) {
	h1 {
		font-size: 3.05rem;
	}

	h2 {
		font-size: 2.2rem;
	}

	.section {
		padding-block: clamp(3.25rem, 8vw, 4.75rem);
	}

	.site-header {
		background: rgba(255, 254, 250, 0.98);
		backdrop-filter: none;
	}

	.has-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.card,
	.link-card,
	.button,
	.wp-block-button__link,
	.header-top__icon-link {
		transition: none;
	}

	.card:hover,
	.link-card:hover,
	.link-card:focus-visible,
	.button:hover,
	.button:focus-visible,
	.wp-block-button__link:hover,
	.wp-block-button__link:focus-visible,
	.header-top__icon-link:hover,
	.header-top__icon-link:focus-visible {
		transform: none;
	}

	.pwa-dialog__backdrop,
	.consent-banner__surface {
		backdrop-filter: none;
	}

	.header-top__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.header-top__links {
		justify-content: flex-start;
	}

	.footer-main {
		gap: 1.5rem;
	}

	.header-main {
		align-items: flex-start;
		gap: 0.9rem;
		padding-block: 0.85rem;
	}

	.site-brand {
		max-width: calc(100% - 56px);
	}

	.primary-navigation {
		right: 14px;
		left: 14px;
	}

	.hero,
	.hero__content {
		min-height: 64vh;
	}

	.hero__content {
		align-content: end;
		padding-block: 4.5rem 3.25rem;
	}

	.hero__meta {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.55rem;
		margin-top: 1.5rem;
	}

	.hero__meta span,
	.annual-verse {
		width: 100%;
	}

	.annual-verse {
		max-width: none;
	}

	.button-row {
		width: 100%;
		gap: 0.65rem;
	}

	.button-row .button,
	.button-row .wp-block-button__link {
		flex: 1 1 220px;
		min-width: 0;
	}

	.donation-card__qr {
		display: flex;
		max-width: none;
		width: 100%;
	}

	.section__head {
		gap: 1rem;
		margin-bottom: 1.4rem;
	}

	.card__body,
	.contact-box,
	.sidebar-box,
	.filter-bar,
	.audio-player,
	.archive-empty,
	.creed-card,
	.document-archive {
		padding: 1.1rem;
	}

	.filter-bar__actions {
		flex-direction: column;
	}

	.filter-bar__actions > * {
		width: 100%;
	}

	.map-frame,
	.map-frame iframe,
	.document-frame,
	.document-frame iframe,
	.document-frame__placeholder,
	.document-frame__empty {
		min-height: 300px;
	}

	.footer-main {
		gap: 1.5rem;
	}

	.footer-intro {
		max-width: none;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 15px;
	}

	h1 {
		font-size: 2.35rem;
		max-width: 12ch;
	}

	h2 {
		font-size: 1.85rem;
	}

	h3 {
		font-size: 1.2rem;
	}

	.lead {
		font-size: 1.02rem;
	}

	.annual-verse strong {
		font-size: 1.15rem;
	}

	.wrap {
		width: min(var(--wrap), calc(100% - 24px));
	}

	.header-top__inner,
	.footer-bottom__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.footer-legal {
		justify-content: flex-start;
	}

	.header-top {
		font-size: 0.82rem;
	}

	.header-top__links {
		gap: 0.4rem;
	}

	.header-top__icon-link {
		width: 32px;
		height: 32px;
	}

	.header-top__icon {
		width: 16px;
		height: 16px;
	}

	.header-main {
		gap: 0.8rem;
	}

	.site-brand {
		align-items: flex-start;
		gap: 0.65rem;
		max-width: calc(100% - 52px);
	}

	.site-brand__sub {
		display: none;
	}

	.site-brand__logo {
		width: 118px;
	}

	.site-brand__logo + span .site-brand__name {
		font-size: 0.9rem;
		max-width: 150px;
	}

	.document-list li {
		display: grid;
		gap: 0.6rem;
	}

	.primary-navigation {
		right: 12px;
		left: 12px;
		padding: 0.55rem;
	}

	.primary-menu a,
	.primary-navigation a {
		min-height: 44px;
		padding: 0.7rem 0.8rem;
	}

	.button-row {
		display: grid;
		grid-template-columns: 1fr;
		align-items: stretch;
	}

	.hero,
	.hero__content {
		min-height: auto;
	}

	.hero__content {
		padding-block: 4rem 2.7rem;
	}

	.hero::before {
		background:
			linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(255, 254, 250, 0.92) 55%, rgba(255, 254, 250, 0.42)),
			var(--hero-image, none) center / cover no-repeat;
	}

	.annual-verse {
		padding: 0.9rem;
	}

	.section {
		padding-block: 3rem;
	}

	.card__body {
		padding: 1rem;
	}

	.step-card {
		padding: 1.1rem;
	}

	.feature-panel__media img {
		aspect-ratio: 16 / 11;
	}

	.filter-bar {
		padding: 0.9rem;
		gap: 0.7rem;
	}

	.facts li {
		grid-template-columns: 1fr;
		gap: 0.25rem;
		padding: 0.7rem 0;
	}

	.facts {
		gap: 0.5rem;
		margin: 1.25rem 0;
	}

	.map-frame,
	.map-frame iframe {
		min-height: 260px;
	}

	.footer-main {
		padding-block: 2.4rem;
	}

	.footer-bottom {
		font-size: 0.82rem;
	}

	.footer-bottom__inner {
		gap: 0.35rem;
	}

	.consent-banner {
		right: 12px;
		bottom: 12px;
		left: 12px;
	}

	.consent-banner__surface {
		max-height: min(72svh, calc(100svh - 96px));
		padding: 0.9rem;
	}

	.consent-banner__summary {
		gap: 0.4rem;
	}

	.consent-banner__summary h3 {
		font-size: 1.25rem;
	}

	.consent-banner__actions,
	.consent-banner__panel-actions {
		gap: 0.5rem;
		margin-top: 0.75rem;
	}

	.consent-banner__actions .button,
	.consent-banner__panel-actions .button {
		flex-basis: 100%;
		min-height: 44px;
	}

	.consent-setting {
		flex-direction: column;
	}

	.pwa-dialog {
		padding: 0.9rem;
	}

	.pwa-dialog__surface {
		padding: 1.1rem;
	}
}

@media (max-width: 420px) {
	h1 {
		font-size: 2.05rem;
	}

	.wrap {
		width: min(var(--wrap), calc(100% - 22px));
	}

	.hero__content {
		padding-block: 3.6rem 2.4rem;
	}
}

@media (display-mode: standalone) {
	.site-header {
		padding-top: env(safe-area-inset-top);
	}

	.footer-bottom {
		padding-bottom: calc(1rem + env(safe-area-inset-bottom));
	}
}
