:root {
	--ink: #18212f;
	--muted: #596271;
	--paper: #ffffff;
	--soft: #f4f0ea;
	--line: #ded7cd;
	--nav: #0f2d46;
	--nav-2: #214d70;
	--accent: #b7373e;
	--accent-2: #d49b35;
	--wrap: 1160px;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--soft);
	color: var(--ink);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	line-height: 1.58;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
}

img,
iframe {
	max-width: 100%;
}

a {
	color: #9f2f36;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: #6d1f25;
}

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

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 20;
	background: var(--accent);
	color: #fff;
	padding: 10px 14px;
}

.skip-link:focus {
	top: 12px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.parish-strip {
	background: var(--nav);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.parish-strip-inner {
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	font-size: 0.95rem;
	color: #dbe5ee;
}

.parish-strip p {
	margin: 0;
}

.parish-strip .map,
.parish-strip .church {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: 24px;
	vertical-align: middle;
}

.parish-strip img {
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.parish-strip big {
	font-size: 1rem;
	line-height: 1.25;
	color: #fff;
}

.parish-strip a,
.parish-strip strong {
	color: #f2d39b;
}

.brand-hero {
	position: relative;
	min-height: clamp(260px, 36vw, 430px);
	overflow: hidden;
	background: #2e241d;
}

.brand-carousel {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #2e241d;
}

.brand-carousel::after {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(90deg, rgba(9, 19, 32, 0.78), rgba(9, 19, 32, 0.42) 46%, rgba(9, 19, 32, 0.18));
	content: "";
	pointer-events: none;
}

.brand-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 700ms ease;
}

.brand-slide.is-active {
	opacity: 1;
}

.brand-slide img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: top center;
}

.brand-carousel-controls {
	position: absolute;
	left: max(16px, calc((100vw - var(--wrap)) / 2));
	right: max(16px, calc((100vw - var(--wrap)) / 2));
	bottom: 18px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	pointer-events: none;
}

.brand-carousel-button,
.brand-carousel-dots button {
	pointer-events: auto;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: rgba(15, 45, 70, 0.72);
	color: #fff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.brand-carousel-button {
	width: 40px;
	height: 40px;
	font-size: 2rem;
	line-height: 1;
}

.brand-carousel-button:hover,
.brand-carousel-dots button:hover,
.brand-carousel-dots button.is-active {
	background: var(--accent);
	border-color: rgba(255, 255, 255, 0.82);
}

.brand-carousel-dots {
	display: flex;
	align-items: center;
	gap: 7px;
}

.brand-carousel-dots button {
	width: 11px;
	height: 11px;
	padding: 0;
	border-radius: 50%;
	font-size: 0;
}

.brand-hero-inner {
	position: relative;
	z-index: 3;
	min-height: inherit;
	display: flex;
	align-items: center;
}

.brand {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
	max-width: 760px;
}

.brand-kicker,
.brand-place {
	font-size: clamp(0.95rem, 1.5vw, 1.18rem);
	font-weight: 700;
	color: #f2d39b;
}

.brand-name {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.4rem, 6vw, 5rem);
	line-height: 1.02;
	font-weight: 700;
}

.nav-shell {
	background: var(--nav);
	box-shadow: 0 8px 24px rgba(15, 45, 70, 0.18);
}

.nav-inner {
	display: flex;
	align-items: stretch;
	min-height: 58px;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
	border: 1px solid rgba(255, 255, 255, 0.36);
	background: transparent;
	color: #fff;
	padding: 9px 12px;
	font: inherit;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	content: "";
}

.menu-toggle-lines::before {
	transform: translateY(-6px);
}

.menu-toggle-lines::after {
	transform: translateY(4px);
}

.primary-menu {
	width: 100%;
}

.primary-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu > nav > ul,
.primary-menu > ul,
.primary-menu .mod-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.primary-menu li {
	position: relative;
}

.primary-menu > nav > ul > li,
.primary-menu > ul > li,
.primary-menu .mod-menu > li {
	display: flex;
	align-items: stretch;
}

.primary-menu li ul li {
	display: block;
}

.primary-menu a,
.primary-menu .separator {
	display: flex;
	align-items: center;
	min-height: 58px;
	padding: 0 15px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.primary-menu .mod-menu__toggle-sub {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	width: 32px;
	margin: 0;
	border: 0;
	background: transparent;
	color: #fff;
	padding: 0;
	vertical-align: top;
}

.primary-menu .mod-menu__toggle-sub::before {
	content: "⌄";
	font-size: 1rem;
	line-height: 1;
}

.primary-menu li.active > a,
.primary-menu a:hover,
.primary-menu li:hover > .mod-menu__toggle-sub {
	background: var(--nav-2);
}

.primary-menu li ul {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 10;
	display: none;
	min-width: 230px;
	background: #173b5a;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
	display: block;
}

.primary-menu li ul a {
	min-height: 42px;
	padding: 10px 15px;
	font-weight: 600;
}

.primary-menu li ul ul {
	left: 100%;
	top: 0;
}

.quote-band {
	background: var(--accent);
	color: #fff;
}

.quote-band blockquote {
	margin: 0;
	padding: 26px 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	line-height: 1.28;
}

.quote-band a {
	color: #ffe4ac;
}

.breadcrumbs {
	padding-top: 24px;
	color: var(--muted);
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding: 40px 0 56px;
}

.home-view .content-layout {
	display: none;
}

.content-layout.has-right {
	grid-template-columns: minmax(0, 1fr) 300px;
}

.content-layout.has-left {
	grid-template-columns: 260px minmax(0, 1fr);
}

.content-layout.has-left.has-right {
	grid-template-columns: 240px minmax(0, 1fr) 300px;
}

.main-content {
	min-width: 0;
}

.main-content h1,
.main-content h2,
.main-content h3,
.bottom-band h1,
.bottom-band h2,
.bottom-band h3,
.sidebar h1,
.sidebar h2,
.sidebar h3 {
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.18;
	color: var(--ink);
}

.main-content h1 {
	margin: 0 0 22px;
	font-size: clamp(2rem, 4vw, 3.2rem);
}

.main-content h2 {
	font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.blog-items,
.items-leading,
.com-content-category-blog__items {
	display: grid;
	gap: 22px;
}

.blog-item,
.com-content-article,
.item-page {
	border-bottom: 1px solid var(--line);
	padding-bottom: 22px;
}

.blog-item:last-child,
.com-content-article:last-child,
.item-page:last-child {
	border-bottom: 0;
}

.item-image,
figure.left,
figure.right {
	margin: 0 0 16px;
}

.item-image img,
figure img {
	border-radius: 6px;
}

.readmore .btn,
.btn,
button {
	border-radius: 4px;
}

.com-content-category-blog__navigation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	margin-top: 30px;
}

.com-content-category-blog__counter {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem;
}

.pagination__wrapper {
	display: flex;
	justify-content: flex-end;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.page-item {
	display: block;
	margin: 0;
	padding: 0;
}

.page-link {
	display: inline-flex;
	min-width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: #fff;
	color: var(--red);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-link:hover,
.page-link:focus-visible {
	border-color: var(--red);
	background: #f8eeee;
	color: var(--red-dark);
}

.page-item.active .page-link {
	border-color: var(--red);
	background: var(--red);
	color: #fff;
}

.page-item.disabled .page-link {
	border-color: #eadfce;
	background: #f7f2ea;
	color: #b5a994;
	cursor: default;
}

.sidebar {
	border-left: 1px solid var(--line);
	padding-left: 24px;
}

.sidebar-left {
	border-left: 0;
	border-right: 1px solid var(--line);
	padding-left: 0;
	padding-right: 24px;
}

.sidebar .moduletable,
.sidebar .mod-custom {
	margin-bottom: 24px;
}

.sidebar h3 {
	margin: 0 0 10px;
	font-size: 1.25rem;
}

.bottom-band {
	background: #f7f2ea;
	border-top: 1px solid var(--line);
}

.bottom-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding: 42px 0;
}

.bottom-column-main {
	max-width: 900px;
}

.bottom-band p {
	color: #343b46;
}

.site-footer {
	background: #101820;
	color: #dce4ec;
}

.footer-inner {
	padding: 28px 0;
	text-align: center;
	font-size: 0.95rem;
}

.footer-inner p {
	margin: 0;
	color: inherit !important;
}

.k2-migrated-attachments,
.k2-migrated-extra-fields,
.k2-migrated-video,
.k2-migrated-gallery {
	margin-top: 28px;
	padding: 18px;
	border: 1px solid var(--line);
	background: #faf8f4;
}

.k2-migrated-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px;
	margin: 28px 0;
}

.k2-migrated-gallery-grid a {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	background: #efe6d8;
}

.k2-migrated-gallery-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.18s ease;
}

.k2-migrated-gallery-grid a:hover img,
.k2-migrated-gallery-grid a:focus-visible img {
	transform: scale(1.04);
}

.legacy-section-index {
	display: grid;
	gap: 28px;
}

.section-kicker {
	margin: 0;
	color: var(--muted);
	font-weight: 700;
	text-transform: uppercase;
}

.legacy-section-card {
	padding-bottom: 26px;
	border-bottom: 1px solid var(--line);
}

.legacy-section-card h2 {
	margin-top: 0;
}

.legacy-section-card img {
	max-width: 100%;
	height: auto;
}

.legacy-section-more {
	margin-top: 16px;
	font-weight: 700;
}

@media (max-width: 900px) {
	.parish-strip-inner {
		display: block;
		padding: 14px 0;
	}

	.brand-hero {
		min-height: 300px;
	}

	.brand-carousel-controls {
		bottom: 14px;
		justify-content: flex-start;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.nav-inner {
		display: block;
		min-height: 0;
		padding: 1px 0;
	}

	.primary-menu {
		display: none;
		padding-bottom: 10px;
	}

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

	.primary-menu > nav > ul,
	.primary-menu > ul,
	.primary-menu .mod-menu {
		display: block;
	}

	.primary-menu li ul {
		position: static;
		display: block;
		min-width: 0;
		box-shadow: none;
		background: rgba(255, 255, 255, 0.08);
	}

	.primary-menu a,
	.primary-menu .separator,
	.primary-menu .mod-menu__toggle-sub {
		min-height: 44px;
		padding: 9px 12px;
	}

	.primary-menu .mod-menu__toggle-sub {
		display: none;
	}

	.primary-menu li ul a {
		padding-left: 28px;
	}

	.primary-menu li ul ul a {
		padding-left: 42px;
	}

	.content-layout,
	.content-layout.has-left,
	.content-layout.has-right,
	.content-layout.has-left.has-right {
		grid-template-columns: 1fr;
	}

	.sidebar,
	.sidebar-left {
		border: 0;
		padding: 0;
	}
}

@media (max-width: 560px) {
	.wrap {
		width: min(100% - 22px, var(--wrap));
	}

	.parish-strip .map,
	.parish-strip .church {
		display: flex;
		margin: 8px 0;
	}

	.brand-hero {
		min-height: 260px;
	}

	.brand-carousel-controls {
		gap: 8px;
	}

	.brand-carousel-button {
		width: 36px;
		height: 36px;
		font-size: 1.8rem;
	}

	.quote-band blockquote {
		padding: 20px 0;
	}

	.content-layout {
		padding: 30px 0 42px;
	}

	.com-content-category-blog__navigation,
	.pagination__wrapper {
		justify-content: center;
	}

	.com-content-category-blog__counter {
		width: 100%;
		text-align: center;
	}

	.pagination {
		justify-content: center;
	}

	.page-link {
		min-width: 34px;
		height: 34px;
	}
}
