/* Modlitwa24 — "pasy flagi" (B3). */

:root {
	--m24-red: #c8102e;
	--m24-red-dark: #8f0b21;
	--m24-ink: #16181d;
	--m24-muted: #5b5f6a;
	--m24-line: #e8e8ea;
	--m24-soft: #f6f6f6;
	--m24-white: #fff;
	--m24-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--m24-gutter: 28px;
	--m24-header-h: 68px;
	/* Read by the React calendar's sticky month bar so it stops under the site header. */
	--m24-sticky-top: var(--m24-header-h);
	--m24-radius: 8px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: var(--m24-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--m24-ink);
	background: var(--m24-white);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--m24-red);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--m24-red-dark);
}

:focus-visible {
	outline: 3px solid var(--m24-red);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
}

.wrap {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: var(--m24-gutter);
}

.wrap--narrow {
	max-width: calc(760px + 2 * var(--m24-gutter));
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--m24-ink);
	color: #fff;
	padding: 10px 16px;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

[id] {
	scroll-margin-top: calc(var(--m24-header-h) + 8px);
}

/* Buttons */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 11px 20px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
	background: var(--m24-red);
	color: #fff;
}

.btn--primary:hover {
	background: var(--m24-red-dark);
	color: #fff;
}

.btn--outline {
	border-color: var(--m24-ink);
	color: var(--m24-ink);
}

.btn--outline:hover {
	background: var(--m24-ink);
	color: #fff;
}

.btn--white {
	background: #fff;
	color: var(--m24-red);
}

.btn--white:hover {
	background: #fff;
	color: var(--m24-red-dark);
	text-decoration: underline;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--m24-line);
}

.admin-bar .site-header {
	top: 32px;
}

.admin-bar {
	--m24-sticky-top: calc(var(--m24-header-h) + 32px);
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.admin-bar {
		--m24-sticky-top: calc(var(--m24-header-h) + 46px);
	}
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: var(--m24-header-h);
}

.logo {
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -0.02em;
	color: var(--m24-ink);
	text-decoration: none;
	white-space: nowrap;
}

.logo span {
	color: var(--m24-red);
}

.logo:hover {
	color: var(--m24-ink);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 22px;
}

.site-nav ul {
	display: flex;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav ul a {
	color: var(--m24-muted);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}

.site-nav ul a:hover,
.site-nav ul a.is-active {
	color: var(--m24-ink);
	border-bottom-color: var(--m24-red);
}

.site-nav .btn {
	padding: 9px 16px;
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	background: none;
	border: 1.5px solid var(--m24-ink);
	border-radius: 6px;
	padding: 8px 12px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--m24-ink);
	cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 16px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__bars::before {
	top: -5px;
}

.menu-toggle__bars::after {
	top: 5px;
}

@media (max-width: 900px) {
	.menu-toggle {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--m24-gutter) 20px;
		background: #fff;
		border-bottom: 1px solid var(--m24-line);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
	}

	.site-nav.is-open {
		display: flex;
	}

	.site-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.site-nav ul a {
		display: block;
		padding: 12px 0;
		font-size: 17px;
		border-bottom: 1px solid var(--m24-line);
	}

	.site-nav ul a.is-active {
		border-bottom-color: var(--m24-line);
		color: var(--m24-red);
	}

	.site-nav .btn {
		margin-top: 16px;
		justify-content: center;
	}
}

/* The theme has its own mobile menu; hide the "mobile-menu" plugin's output. */
.mob-menu-header-holder,
.mobmenu,
.mobmenur-container,
.mobmenul-container,
.mob-menu-left-panel,
.mob-menu-right-panel,
.mobmenu-overlay {
	display: none !important;
}

body.mob-menu-slideout,
body.mob-menu-slideout-over,
body.mob-menu-overlay,
body.mob-menu-slideout-top {
	padding-top: 0 !important;
}

/* Generic pages */

.page-main {
	padding-bottom: 72px;
}

.page-header {
	padding-top: 56px;
	padding-bottom: 24px;
}

.eyebrow {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--m24-red);
}

.eyebrow a {
	text-decoration: none;
}

.page-title {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0;
}

.entry-hero {
	margin: 8px auto 32px;
}

.entry-hero img {
	width: 100%;
	border-radius: var(--m24-radius);
}

.entry-content > * {
	margin-block: 0 1.1em;
}

.entry-content h2 {
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	font-weight: 800;
	margin-top: 1.6em;
}

.entry-content h3 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-top: 1.4em;
}

.entry-content > .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.entry-content > .alignwide {
	width: min(1120px, 100vw - 2 * var(--m24-gutter));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-cta {
	margin-top: 48px;
}

.entry-cta > * {
	margin: 0;
}

.entry-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 24px;
	border-top: 3px solid var(--m24-red);
	border-bottom: 1px solid var(--m24-line);
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 24px;
	font-size: 15px;
}

.post-nav a {
	text-decoration: none;
	font-weight: 600;
}

.post-nav__next {
	margin-left: auto;
	text-align: right;
}

.notfound {
	padding-top: 80px;
}

.empty {
	color: var(--m24-muted);
}

.search-form {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid var(--m24-line);
	border-radius: 6px;
	font: inherit;
}

.search-submit {
	padding: 10px 18px;
	border: 0;
	border-radius: 6px;
	background: var(--m24-red);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Cards */

.cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 900px) {
	.cards {
		grid-template-columns: 1fr;
	}
}

.card {
	background: #fff;
	border: 1px solid var(--m24-line);
	border-radius: var(--m24-radius);
	overflow: hidden;
	transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
	border-color: var(--m24-red);
	transform: translateY(-2px);
}

.card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.card__link:hover {
	color: inherit;
}

.card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--m24-soft);
}

.card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.card__date {
	font-size: 13px;
	font-weight: 600;
	color: var(--m24-red);
}

.card__title {
	font-size: 19px;
	font-weight: 700;
	margin: 6px 0 8px;
}

.card__excerpt {
	margin: 0 0 14px;
	font-size: 15px;
	color: var(--m24-muted);
}

.card__more {
	margin-top: auto;
	font-size: 14px;
	font-weight: 600;
	color: var(--m24-red);
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
}

.pagination .page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--m24-line);
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}

.pagination .current {
	background: var(--m24-red);
	border-color: var(--m24-red);
	color: #fff;
}

/* Footer */

.site-footer {
	background: var(--m24-ink);
	color: #e9e9ec;
	padding: 56px 0 28px;
}

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

.footer-quote {
	margin: 0 0 40px;
	max-width: 760px;
}

.footer-quote p {
	margin: 0;
	font-size: clamp(1.25rem, 2.6vw, 1.625rem);
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: #fff;
}

.footer-quote cite {
	display: block;
	margin-top: 12px;
	font-style: normal;
	font-size: 14px;
	color: #b9bbc2;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 14px;
}

.footer-bottom p {
	margin: 0;
}

.logo--small {
	font-size: 16px;
	color: #fff;
}

.logo--small:hover {
	color: #fff;
}

@media (max-width: 600px) {
	:root {
		--m24-gutter: 16px;
		--m24-header-h: 60px;
	}

	body {
		font-size: 16px;
	}
}

/* ---------- Home page ---------- */

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

.hero {
	padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
}

.hero__title {
	font-size: clamp(2.5rem, 7.2vw, 5rem);
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.035em;
	margin: 0;
	max-width: 14ch;
}

.hero__title span {
	color: var(--m24-red);
}

.hero__sub {
	margin: 20px 0 0;
	max-width: 480px;
	font-size: 18px;
	color: var(--m24-muted);
}

.band {
	background: var(--m24-red);
	color: #fff;
	padding: 26px 0 30px;
}

.band__strip {
	min-height: 220px;
}

.band__fallback {
	margin: 0;
	padding-top: 12px;
	font-size: 17px;
}

.band__fallback a {
	color: #fff;
	font-weight: 600;
}

.m24-fallback {
	padding: 18px 20px;
	border-left: 4px solid var(--m24-red);
	background: var(--m24-soft);
}

.section {
	padding: clamp(56px, 8vw, 96px) 0;
}

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

.section--red {
	background: var(--m24-red);
	color: #fff;
}

.section--ink {
	background: #fff;
	border-top: 1px solid var(--m24-line);
}

.section__head {
	margin-bottom: 36px;
	max-width: 640px;
}

.section__head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	max-width: none;
}

.section__title {
	font-size: clamp(2rem, 4.4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0;
}

.eyebrow--light {
	color: rgba(255, 255, 255, 0.85);
}

.section--ink .eyebrow--light {
	color: var(--m24-red);
}

.muted {
	color: var(--m24-muted);
}

.lead {
	font-size: clamp(1.25rem, 2.4vw, 1.5rem);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: -0.01em;
	margin: 0 0 28px;
}

.lead--dark {
	font-size: clamp(1.125rem, 2vw, 1.3rem);
	font-weight: 500;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px 64px;
	align-items: start;
}

.split--media {
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	align-items: center;
}

@media (max-width: 860px) {
	.split,
	.split--media {
		grid-template-columns: 1fr;
	}
}

/* Steps */
.steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	counter-reset: step;
}

@media (max-width: 860px) {
	.steps {
		grid-template-columns: 1fr;
	}
}

.step {
	padding: 26px 24px 24px;
	border-top: 4px solid var(--m24-red);
	background: var(--m24-soft);
	border-radius: 0 0 var(--m24-radius) var(--m24-radius);
}

.step__num {
	display: block;
	font-size: 44px;
	font-weight: 800;
	line-height: 1;
	color: var(--m24-red);
	margin-bottom: 14px;
}

.step__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
}

.step p {
	margin: 0;
	color: var(--m24-muted);
	font-size: 16px;
}

/* Intentions facts */
.facts {
	margin: 0 0 32px;
	display: grid;
	gap: 18px;
}

.facts div {
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.facts dt {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.85;
	margin-bottom: 4px;
}

.facts dd {
	margin: 0;
}

/* Prayers */
.prayer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--m24-line);
}

.prayer-list a {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 4px;
	border-bottom: 1px solid var(--m24-line);
	color: var(--m24-ink);
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s, padding 0.15s;
}

.prayer-list a:hover {
	color: var(--m24-red);
	padding-left: 10px;
}

.prayer-list a span:last-child {
	color: var(--m24-red);
}

.split .btn--outline {
	margin-top: 8px;
}

/* Chips */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.chips a {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--m24-line);
	border-radius: 999px;
	background: #fff;
	color: var(--m24-ink);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.chips a:hover {
	border-color: var(--m24-red);
	color: var(--m24-red);
}

/* About */
.about__media {
	display: flex;
	justify-content: center;
}

.about__img {
	width: min(260px, 70vw);
	height: auto;
	max-height: 320px;
	object-fit: contain;
}

.verse {
	margin: 0 0 28px;
	padding-left: 18px;
	border-left: 4px solid var(--m24-red);
}

.verse p {
	margin: 0;
	font-size: 18px;
	font-style: italic;
}

.verse cite {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	font-style: normal;
	color: var(--m24-muted);
}

/* Downloads */
.downloads {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

@media (max-width: 700px) {
	.downloads {
		grid-template-columns: 1fr;
	}
}

.download {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--m24-line);
	border-radius: var(--m24-radius);
}

.download__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 56px;
	border-radius: 6px;
	background: var(--m24-red);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.download__title {
	flex: 1;
	font-weight: 700;
	font-size: 17px;
}

/* Contact */
.contact__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.contact__logo {
	/* Wide wordmark (horn + JERYCHO): scale, never crop. */
	width: auto;
	height: auto;
	max-width: 180px;
	max-height: 96px;
	object-fit: contain;
	flex: none;
}

.contact__links {
	align-self: center;
}

.contact__email {
	display: inline-block;
	font-size: clamp(1.375rem, 3.4vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--m24-ink);
	text-decoration-color: var(--m24-red);
	text-decoration-thickness: 3px;
	word-break: break-word;
}

.contact__email:hover {
	color: var(--m24-red);
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}

.social a {
	display: inline-block;
	padding: 9px 16px;
	border: 1.5px solid var(--m24-ink);
	border-radius: 6px;
	color: var(--m24-ink);
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}

.social a:hover {
	background: var(--m24-ink);
	color: #fff;
}

.muted--light {
	margin: 4px 0 0;
}
