/*
Theme Name: Błonie
Theme URI: https://przemysl-blonie.pl/
Author: Stecu Solutions
Author URI: https://stecu.pl/
Description: Elegancki, czytelny motyw dla Parafii pw. NMP Nieustającej Pomocy w Przemyślu–Błoniu. Porządek Mszy z podpowiedzią „najbliższa Msza”, ogłoszenia duszpasterskie, galeria albumów, konta z przyciskiem „Kopiuj”, lokalne fonty (bez Google Fonts), pełna obsługa telefonów.
Version: 1.2.2
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blonie
Tags: one-column, two-columns, custom-menu, custom-logo, featured-images, accessibility-ready, translation-ready
*/

/*
 * VOICE   spokojny, godny, bardzo czytelny – także dla starszych parafian
 * IDEA    neogotycki kościół z cegły: ostrołuk okien i zielony miedziany hełm wieży
 * PICTURE zdjęcie kościoła w ostrołukowej ramie na tle barwy patyny
 * COLOUR  patyna (zieleń miedzi) dominuje, biel i jasny kamień, cegła jako akcent
 * TYPE    Cormorant Garamond (tytuły) + Source Sans 3 (tekst, 18 px)
 */

/* ---------- Tokeny ---------- */
:root {
	--green: #1f4b44;
	--green-2: #2c6358;
	--patina: #9ccbbd;
	--brick: #9c3b2b;
	--brick-2: #b5503d;
	--ink: #1b2321;
	--muted: #56625e;
	--line: #dde1dd;
	--paper: #f3f4f1;
	--glow: #2f6c60;
	--on-dark: #e4efeb;
	--on-dark-2: #d0e1db;
	--on-dark-3: #b3c9c2;
	--foot: #1b2321;
	--foot-text: #c4cecb;
	--foot-muted: #9fb0ab;
	--white: #fff;
	--serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
	--sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1200px;
	--r: 14px;
	--shadow: 0 1px 2px rgba(20, 40, 36, .06), 0 8px 24px rgba(20, 40, 36, .08);
	--arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V38C0 16 50 0 50 0s50 16 50 38v62z'/%3E%3C/svg%3E");
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 400 18px/1.65 var(--sans);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green-2); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brick); }
:focus-visible { outline: 3px solid var(--brick-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.85rem, 1.5rem + 1.3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
.wrap { width: min(100% - 2 * max(5vw, 18px), var(--wrap)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Przyciski ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .55em;
	min-height: 48px; padding: .6em 1.25em;
	border-radius: 999px; border: 1.5px solid transparent;
	font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--light { background: var(--white); color: var(--green); }
.btn--light:hover { background: var(--patina); color: var(--ink); }
.btn--outline { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); color: var(--white); }
.btn--ghost { border-color: var(--line); color: var(--green); background: var(--white); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- Pasek górny ---------- */
.topbar { background: var(--foot); color: var(--on-dark-2); font-size: .9rem; }
.topbar__in { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: flex-end; padding-block: 7px; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; color: inherit; text-decoration: none; white-space: nowrap; }
.topbar a:hover { color: var(--white); }
.topbar .ico { color: var(--patina); }
@media (max-width: 720px) { .topbar__item:first-child { display: none; } .topbar__in { justify-content: center; } }

/* ---------- Nagłówek i menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); margin-right: auto; }
.brand .emblem, .brand__logo { width: 40px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font: 600 1.28rem/1.1 var(--serif); color: var(--ink); }
.brand__place { font-size: .84rem; color: var(--muted); letter-spacing: .02em; }
.brand:hover .brand__name { color: var(--green); }

.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav .menu > li { position: relative; }
.nav a { display: block; padding: 10px 13px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a, .nav .current_page_item > a, .nav .current_page_ancestor > a, .nav a[aria-current] { color: var(--green); background: var(--paper); }
.nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-.2em) rotate(45deg); opacity: .6; }
.nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { font-weight: 400; white-space: normal; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 1rem var(--sans); cursor: pointer; }
	.nav-toggle .ico--close, .nav-open .nav-toggle .ico--open { display: none; }
	.nav-open .nav-toggle .ico--close { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 40, 36, .12); max-height: calc(100vh - 80px); overflow-y: auto; }
	.nav-open .nav { display: block; }
	.nav .menu { flex-direction: column; align-items: stretch; padding: 10px max(5vw, 18px) 22px; gap: 0; }
	.nav a { padding: 13px 8px; border-bottom: 1px solid var(--paper); border-radius: 0; font-size: 1.08rem; }
	.nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.nav .menu-item-has-children > a::after { display: none; }
}
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 1080px) { html:not(.js) .nav { display: block; position: static; box-shadow: none; } }
@media (max-width: 420px) { .brand__name { font-size: 1.08rem; } .brand .emblem { width: 34px; } .nav-toggle span { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--green) radial-gradient(120% 90% at 85% 10%, var(--glow) 0%, transparent 60%); color: var(--on-dark); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 84px); }
.hero__place { margin: 0 0 .6em; color: var(--patina); font-weight: 600; font-size: 1.05rem; }
.hero__title { color: var(--white); font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.9rem); line-height: 1.04; margin-bottom: .45em; }
.hero__lead { font-size: 1.15rem; max-width: 36em; color: var(--on-dark-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.next-mass { display: inline-block; padding: 16px 22px 16px 20px; border-left: 3px solid var(--patina); background: rgba(255, 255, 255, .07); border-radius: 0 var(--r) var(--r) 0; max-width: 100%; }
.next-mass__label { margin: 0 0 2px; font-size: .92rem; color: var(--patina); font-weight: 600; }
.next-mass__when { margin: 0; font-size: 1.05rem; }
.next-mass__when strong { font: 600 1.9rem/1.15 var(--serif); color: var(--white); }
.next-mass__when small { display: inline-block; margin-left: .6em; padding: 2px 10px; background: var(--brick); color: #fff; border-radius: 999px; font-size: .85rem; font-weight: 600; vertical-align: .35em; }
.next-mass__hint { display: block; margin-top: 4px; font-size: .88rem; color: var(--on-dark-3); }

.hero__pic { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); }
.hero__frame { position: relative; display: block; }
.hero__frame::before { content: ""; position: absolute; inset: 0; transform: translate(16px, 16px); background: var(--patina); opacity: .35; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.hero__frame img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.hero__pic figcaption { position: relative; margin-top: 26px; text-align: center; font: italic 500 1.1rem var(--serif); color: var(--patina); }
@media (max-width: 860px) {
	.hero__in { grid-template-columns: 1fr; }
	.hero__pic { order: -1; width: min(70%, 320px); }
	.hero__pic figcaption { display: none; }
}

/* ---------- Pasma sekcji ---------- */
.band { padding-block: clamp(48px, 6vw, 88px); }
.band--paper { background: var(--paper); }
.band--deep { background: var(--green); color: var(--on-dark); }
.band--deep h2 { color: var(--white); }
.band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.band__head h2 { margin: 0; }
.band__head--spaced { margin-top: clamp(48px, 6vw, 72px); }
.more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--green-2); }
.more:hover .ico { transform: translateX(3px); }
.more .ico { transition: transform .2s; }

/* ---------- Porządek Mszy ---------- */
.schedule { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.mass { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mass__col, .schedule__office { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.mass h3, .schedule__office h3 { font-size: 1.55rem; margin-bottom: .6em; }
.times { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.times li { display: inline-flex; align-items: flex-start; padding: 6px 13px; border-radius: 10px; background: var(--paper); font: 600 1.3rem/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--green); white-space: nowrap; }
.times li.is-kids { background: #fbeee9; color: var(--brick); }
.times sup { font-size: .7em; margin-left: 1px; color: var(--brick); }
.season { padding: 10px 0 2px; border-top: 1px solid var(--line); opacity: .62; }
.season.is-now { opacity: 1; }
.season__label { margin: 0 0 8px; font-weight: 600; font-size: .95rem; color: var(--muted); }
.badge { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--green); color: #fff; font-size: .78rem; vertical-align: .1em; }
.note { font-size: .95rem; color: var(--muted); margin: 0; }
.office__days { margin-bottom: 10px; }
.office dl { margin: 0; display: grid; gap: 8px; }
.office dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--paper); border-radius: 10px; opacity: .62; }
.office dl div.is-now { opacity: 1; box-shadow: inset 3px 0 0 var(--green); }
.office dt { color: var(--muted); font-weight: 600; }
.office dd { margin: 0; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule__confession { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .98rem; }
@media (max-width: 980px) { .schedule { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .mass { grid-template-columns: 1fr; } .mass__col, .schedule__office { padding: 20px; } }

/* ---------- Ogłoszenia (strona główna) ---------- */
.ann { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ann__latest { background: var(--white); border-radius: var(--r); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); border-top: 4px solid var(--brick); }
.ann__date { margin: 0 0 4px; color: var(--brick); font-weight: 600; font-size: .95rem; }
.ann__latest h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.ann__latest h3 a { color: inherit; text-decoration: none; }
.ann__latest h3 a:hover { color: var(--green); }
.ann__list-title { font-size: 1.3rem; }
.ann__list ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ann__list a { display: grid; gap: 2px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ann__list a:hover span { color: var(--green); text-decoration: underline; }
.ann__list time { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .ann { grid-template-columns: 1fr; } }

/* Zwijanie */
.js [data-collapse].is-collapsed { max-height: 30rem; overflow: hidden; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.collapse-btn { margin-top: 14px; }

/* ---------- Słowo Proboszcza ---------- */
.letter { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.letter--text { grid-template-columns: minmax(0, 1fr); }
.letter__portrait { margin: 0; position: sticky; top: 110px; }
.letter__portrait img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.letter__text { max-width: 46em; }
.letter__text .prose { font-size: 1.08rem; }
.letter__sign { margin-top: 18px; font: italic 500 1.3rem var(--serif); color: var(--green); }
@media (max-width: 760px) { .letter { grid-template-columns: 1fr; } .letter__portrait { position: static; width: 160px; } }

/* ---------- Kafle „Życie parafii” ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.tile a { display: grid; align-content: start; gap: 6px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tile a:hover { border-color: var(--green-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.tile__ico { width: 34px; height: 34px; color: var(--green-2); margin-bottom: 6px; }
.tile__title { font: 600 1.4rem/1.15 var(--serif); }
.tile__text { color: var(--muted); font-size: .98rem; line-height: 1.5; }

/* ---------- Karty (aktualności) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.card__link { display: flex; flex-direction: column; height: 100%; background: var(--white); border-radius: var(--r); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; }
.card__link:hover { transform: translateY(-3px); }
.card__media { aspect-ratio: 3 / 2; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--empty { background: var(--green); color: var(--patina); }
.card__media--empty .emblem { width: 56px; }
.card__body { display: grid; gap: 6px; padding: 20px 22px 24px; }
.card__date { font-size: .9rem; color: var(--brick); font-weight: 600; }
.card__title { font: 600 1.4rem/1.2 var(--serif); }
.card__link:hover .card__title { color: var(--green); }
.card__text { color: var(--muted); font-size: .98rem; line-height: 1.5; }

/* ---------- Albumy (galeria) ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.albums--home { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.album { display: block; border-radius: var(--r); overflow: hidden; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.album__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--green); color: var(--patina); overflow: hidden; }
.album__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album:hover img { transform: scale(1.04); }
.album__media--empty .ico { width: 48px; height: 48px; opacity: .8; }
.album__cap { display: grid; gap: 2px; padding: 14px 18px 18px; }
.album__date { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.album__title { font-weight: 600; line-height: 1.35; }
.album:hover .album__title { color: var(--green); }

/* ---------- Wsparcie ---------- */
.support { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.support p { color: var(--on-dark-2); }
.support__note { font-size: .98rem; }
.accounts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.accounts__holder { font-size: .95rem; }
.accounts li { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r); background: rgba(255, 255, 255, .05); }
.accounts__label { font-size: .92rem; color: var(--patina); font-weight: 600; }
.accounts__nr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.accounts code { font: 600 1.12rem/1.3 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--white); overflow-wrap: anywhere; }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: transparent; color: var(--white); font: 600 .92rem var(--sans); cursor: pointer; }
.copy:hover, .copy.is-done { background: var(--white); color: var(--green); }
.prose .accounts li, .page-body .accounts li { border-color: var(--line); background: var(--paper); }
.page-body .accounts code { color: var(--ink); }
.page-body .accounts__label { color: var(--green-2); }
.page-body .copy { color: var(--green); border-color: var(--line); }
.page-body .copy:hover, .page-body .copy.is-done { background: var(--green); color: #fff; }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ico { margin-top: .25em; color: var(--patina); }
.contact-list a { color: inherit; }
.band--deep .contact-list a:hover { color: var(--white); }
@media (max-width: 860px) { .support { grid-template-columns: 1fr; } }

/* ---------- Podstrony ---------- */
.page-head { background: var(--green) radial-gradient(90% 140% at 100% 0, var(--glow) 0, transparent 60%); color: var(--on-dark); padding-block: clamp(28px, 4vw, 52px); }
.page-head__title { color: var(--white); margin: 0; }
.page-head__sub { margin: .5em 0 0; color: var(--patina); font-weight: 600; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 14px; padding: 0; font-size: .92rem; }
.crumbs li:not(:last-child)::after { content: "›"; margin: 0 .6em; opacity: .6; }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.page-body { padding-block: clamp(32px, 5vw, 64px); }
.page-body--side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.page-side { position: sticky; top: 104px; display: grid; gap: 18px; }
.side-box { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.side-box__title { font-size: 1.35rem; margin-bottom: .5em; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.side-nav a:hover { background: var(--paper); color: var(--green); }
.side-nav a[aria-current] { background: var(--green); color: var(--white); font-weight: 600; }
.entry { max-width: 50em; }
.entry__thumb { border-radius: var(--r); margin-bottom: 28px; width: 100%; }
.intro { margin-bottom: 28px; max-width: 50em; }
.callout { background: var(--paper); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); margin-bottom: 32px; }
.callout .mass__col { border: 0; }
.callout--contact { margin-top: 28px; }
.callout--contact .contact-list .ico { color: var(--green-2); }
@media (max-width: 960px) { .page-body--side { grid-template-columns: 1fr; } .page-side { position: static; order: -1; } }

/* Lista ogłoszeń */
.bulletins { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 920px; }
.bulletin a { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 20px 16px 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.bulletin a:hover { border-color: var(--green-2); box-shadow: var(--shadow); }
.bulletin__date { display: grid; place-items: center; padding: 10px 4px; background: var(--paper); border-radius: 10px; text-align: center; line-height: 1.1; }
.bulletin__day { font: 600 2rem/1 var(--serif); color: var(--green); }
.bulletin__month { font-size: .82rem; color: var(--muted); }
.bulletin__main { display: grid; gap: 4px; }
.bulletin__title { font: 600 1.3rem/1.2 var(--serif); }
.bulletin a:hover .bulletin__title { color: var(--green); }
.bulletin__text { font-size: .96rem; color: var(--muted); line-height: 1.5; }
.bulletin__arrow { color: var(--green-2); }
@media (max-width: 600px) { .bulletin a { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; align-items: start; } .bulletin__arrow { display: none; } .bulletin__day { font-size: 1.6rem; } }

/* Paginacja i sąsiednie wpisy */
.pagination ul, .nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 36px 0 0; }
.page-numbers { display: inline-grid; place-items: center; min-width: 46px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }
a.page-numbers:hover { border-color: var(--green); color: var(--green); }
.pager, .post-navigation .nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 44px; }
.pager a, .post-navigation a { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager span, .post-navigation span { font-size: .85rem; color: var(--muted); font-weight: 400; }
.pager__next, .post-navigation .nav-next a { text-align: right; }
.pager a:hover, .post-navigation a:hover { border-color: var(--green-2); color: var(--green); }

/* ---------- Treść (edytor) ---------- */
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--patina); font: italic 500 1.3rem/1.45 var(--serif); color: var(--green); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose hr.sep { width: 64px; border-top: 2px solid var(--patina); margin: 1.6em 0; }
.prose img { border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--paper); font-weight: 600; }
.prose p:empty { display: none; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { margin-inline: min(-4vw, -40px); max-width: none; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 0 0 1em; } }
.prose::after { content: ""; display: table; clear: both; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* Klasyczne galerie [gallery] – nadpisanie stylów inline */
.gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; margin: 1.4em 0 !important; }
.gallery br { display: none; }
.gallery .gallery-item { width: auto !important; margin: 0 !important; float: none !important; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 0 !important; border-radius: 10px; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
.wp-block-gallery img { border-radius: 10px; }

/* Wyszukiwarka */
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 0 0 24px; }
.search-form input { flex: 1; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font: 1rem var(--sans); }
.search-form input:focus { border-color: var(--green); outline: none; }
.search-form button { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: 600 1rem var(--sans); cursor: pointer; }

/* Formularze (np. Contact Form 7, komentarze) */
.prose input[type=text], .prose input[type=email], .prose input[type=tel], .prose textarea, .comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: 1rem var(--sans); }
.prose input[type=submit], .comment-form input[type=submit], .wpcf7-submit { min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: 600 1rem var(--sans); cursor: pointer; }
.map-link { margin-top: 1.4em; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--foot); color: var(--on-dark-2); font-size: .98rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-block: 56px 40px; }
.site-footer h2 { font-size: 1.4rem; color: var(--white); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--patina); }
.brand--light { margin-bottom: 16px; color: var(--patina); }
.brand--light .brand__name { color: var(--white); }
.brand--light .brand__place { color: var(--on-dark-3); }
.site-footer .office dl div { background: rgba(255, 255, 255, .06); }
.site-footer .office dt { color: var(--on-dark-3); }
.site-footer .office dl div.is-now { box-shadow: inset 3px 0 0 var(--patina); }
.site-footer__pastor { font-size: .92rem; color: var(--on-dark-3); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: var(--on-dark-3); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .stc-link { color: var(--on-dark); }
.site-footer__bottom a { color: inherit; text-decoration: none; }
.site-footer__bottom a:hover { color: var(--patina); text-decoration: underline; }
.site-footer__bottom .stc-link:hover { color: var(--patina); }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Druk (np. ogłoszenia na tablicę) ---------- */
@media print {
	.topbar, .site-header, .site-footer, .page-side, .pager, .pagination, .collapse-btn, .hero__actions, .copy { display: none !important; }
	body { font-size: 12pt; color: #000; }
	.page-head, .hero, .band--deep { background: none !important; color: #000; }
	.page-head__title, .hero__title, .band--deep h2 { color: #000; }
	[data-collapse].is-collapsed { max-height: none !important; mask: none !important; -webkit-mask: none !important; }
	a { color: #000; text-decoration: none; }
}

/* Kompaktowe kafle na telefonach */
@media (max-width: 600px) {
	.tile a { grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
	.tile__ico { grid-row: span 2; margin: 2px 0 0; width: 30px; height: 30px; }
}

/* Widżety w panelu bocznym */
.page-side h2, .page-side .wp-block-heading { font-size: 1.35rem; margin-bottom: .5em; }
.page-side ul { list-style: none; margin: 0; padding: 0; }
.page-side li { padding: 5px 0; }
.wp-block-search__label { font-weight: 600; display: block; margin-bottom: 6px; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input { flex: 1; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; font: 1rem var(--sans); }
.wp-block-search__button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font: 600 .95rem var(--sans); cursor: pointer; }

/* ---------- Kolorystyka maryjna (Wygląd → Dostosuj → Dane parafii → Kolorystyka) ----------
 * Barwy ikony Matki Bożej Nieustającej Pomocy: granat płaszcza, złoto tła, czerwień sukni. */
.scheme-maryjna {
	--green: #1c2c52;
	--green-2: #2b4580;
	--glow: #2d4378;
	--patina: #d9b968;
	--brick: #a1262e;
	--brick-2: #c03a3f;
	--ink: #1a1f2c;
	--muted: #555c6b;
	--line: #dfe0e6;
	--paper: #f5f3ee;
	--on-dark: #eef0f6;
	--on-dark-2: #d5dae6;
	--on-dark-3: #aeb6c9;
	--foot: #141a2b;
	--foot-text: #c7ccd8;
	--foot-muted: #9aa3b7;
}
.scheme-maryjna .times li.is-kids { background: #f8ebe9; }
.scheme-maryjna .hero__frame::before { opacity: .5; }
.scheme-maryjna .next-mass { border-left-color: var(--patina); }

/* ---------- Listy wpisów (Ogłoszenia, Aktualności) ---------- */
.ann__latest--page { max-width: 920px; margin-bottom: 48px; }
.ann__latest--page h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
.list-title { margin: 8px 0 18px; }
.acc { max-width: 920px; display: grid; gap: 10px; margin-bottom: 56px; }
.acc__year { margin: 18px 0 2px; font: 600 1.6rem/1 var(--serif); color: var(--green); }
.acc__item { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.acc__item > summary { display: flex; align-items: baseline; gap: 16px; padding: 15px 20px; cursor: pointer; list-style: none; font-weight: 600; }
.acc__item > summary::-webkit-details-marker { display: none; }
.acc__item > summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; line-height: 1; color: var(--green-2); }
.acc__item[open] > summary::after { content: "–"; }
.acc__item > summary:hover span { color: var(--green); }
.acc__item time { flex: none; min-width: 6.2em; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.acc__item > .prose { padding: 4px 22px 22px; border-top: 1px solid var(--line); }
.acc__item:target, .news-entry:target { box-shadow: 0 0 0 3px var(--patina); }
@media (max-width: 600px) { .acc__item > summary { flex-wrap: wrap; gap: 2px 12px; } }
.toc { max-width: 920px; margin-bottom: 40px; padding: 18px 22px; background: var(--paper); border-radius: var(--r); }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 32px; }
.toc li { break-inside: avoid; padding: 4px 0; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--green); text-decoration: underline; }
.toc span { color: var(--muted); font-size: .9rem; margin-left: .4em; white-space: nowrap; }
.news-entry { max-width: 920px; padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); border-radius: 2px; }
.news-entry h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.news-entry .wp-video { max-width: 100% !important; }
