/*
Theme Name: Parafia Skolwin
Theme URI: https://parafiaskolwin.pl/
Author: Media Internetowe Jakub Siusta
Author URI: https://jakubsiusta.pl/
Description: Motyw strony Parafii Rzymskokatolickiej pw. Chrystusa Króla w Szczecinie-Skolwinie. Strona główna „na skróty”, godziny Mszy i kancelarii edytowane w Customizerze (z wersją wakacyjną), osobne działy Ogłoszeń duszpasterskich i Intencji mszalnych, pasek standardów ochrony małoletnich.
Version: 1.4.0
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: skolwin
*/

/* ==========================================================================
   1. Zmienne
   ========================================================================== */

:root {
	--c-accent: #8A1C2B;
	--c-accent-dark: #6E1522;
	--c-navy: #1E2430;
	--c-navy-2: #2B3240;
	--c-navy-3: #353D4D;
	--c-bg: #FBF8F3;
	--c-bg-2: #F1EADF;
	--c-sand: #DDD4C6;
	--c-highlight: #F4ECDF;
	--c-ochre: #8C6420;
	--c-text: #1F2228;
	--c-muted: #5D6270;
	--c-line: #E7E1D7;
	--c-white: #FFFFFF;

	--f-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--f-sans: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--container: 1180px;
	--gutter: 24px;
	--radius: 8px;
	--shadow: 0 1px 2px rgba(30, 36, 48, .04), 0 6px 20px rgba(30, 36, 48, .06);
}

/* Warianty akcentu (Wygląd → Dostosuj → Kolory) */
body.accent-granat { --c-accent: #1F4E79; --c-accent-dark: #173B5C; }
body.accent-fiolet { --c-accent: #5C3D6E; --c-accent-dark: #472F55; }
body.accent-zielen { --c-accent: #2F5D50; --c-accent-dark: #23463C; }

/* ==========================================================================
   2. Podstawy
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: var(--c-accent-dark); }

h1, h2, h3, h4 {
	font-family: var(--f-serif);
	font-weight: 600;
	line-height: 1.15;
	color: var(--c-text);
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none; height: auto; width: auto;
	display: block; left: 8px; top: 8px; z-index: 100000;
	background: var(--c-white); color: var(--c-text); padding: 12px 18px;
	border-radius: var(--radius); box-shadow: var(--shadow);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.eyebrow {
	display: block;
	font-family: var(--f-sans);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--c-ochre);
	margin-bottom: .9rem;
}

.link-arrow {
	font-weight: 700;
	color: var(--c-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}
.link-muted { color: var(--c-muted); font-size: .9rem; }

/* Przyciski */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .7em 1.2em;
	border-radius: 6px;
	border: 1px solid transparent;
	font-family: var(--f-sans);
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--accent { background: var(--c-accent); color: var(--c-white); }
.btn--accent:hover { background: var(--c-accent-dark); color: var(--c-white); }
.btn--light { background: var(--c-white); color: var(--c-text); }
.btn--light:hover { background: var(--c-bg-2); color: var(--c-text); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--c-white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--c-white); }
.btn--outline { border-color: var(--c-accent); color: var(--c-accent); background: var(--c-white); }
.btn--outline:hover { background: var(--c-accent); color: var(--c-white); }
.btn--chip {
	background: var(--c-white); border-color: var(--c-line); color: var(--c-text);
	font-size: .85rem; padding: .6em 1em;
}
.btn--chip:hover { border-color: var(--c-accent); color: var(--c-accent); }

.card {
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

/* ==========================================================================
   3. Pasek górny i nagłówek
   ========================================================================== */

.topbar {
	background: var(--c-navy);
	color: rgba(255, 255, 255, .85);
	font-size: .8rem;
}
.topbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 38px;
}
.topbar__links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--c-white); }
.topbar a.topbar__trusted { color: #E7C98F; font-weight: 600; }

.site-header {
	background: var(--c-white);
	border-bottom: 1px solid var(--c-line);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 104px;
}

.brand {
	display: flex;
	align-items: center;
	gap: .75rem;
	text-decoration: none;
	color: var(--c-text);
	flex-shrink: 0;
}
.brand:hover { color: var(--c-text); }
.brand__logo { width: auto; height: 84px; color: var(--c-accent); flex-shrink: 0; }
.brand__logo img, .custom-logo { width: auto; max-height: 84px; }
.brand__name {
	display: block;
	font-family: var(--f-serif);
	font-weight: 700;
	font-size: 2.15rem;
	line-height: 1;
	color: var(--c-navy);
}
.brand__pre { display: block; font-size: .7em; font-weight: 700; margin-bottom: 1px; }
.brand__place {
	display: block;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--c-navy);
	margin-top: 4px;
}

/* Menu główne */
.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; align-items: center; gap: .15rem; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block;
	padding: .55rem .55rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--c-text);
	text-decoration: none;
	border-radius: 4px;
}
.main-nav .menu a:hover,
.main-nav .menu .current-menu-item > a,
.main-nav .menu .current-menu-ancestor > a,
.main-nav .menu .current_page_item > a { color: var(--c-accent); }

.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	padding: .5rem;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
	z-index: 60;
}
.main-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { font-weight: 500; padding: .5rem .75rem; }
.main-nav .sub-menu a:hover { background: var(--c-bg); }
.submenu-toggle { display: none; }

.nav-toggle {
	display: none;
	align-items: center;
	gap: .5rem;
	background: none;
	border: 1px solid var(--c-line);
	border-radius: 6px;
	padding: .55rem .8rem;
	font: 600 .9rem var(--f-sans);
	color: var(--c-text);
	cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: currentColor;
	border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   4. Sekcja startowa (hero)
   ========================================================================== */

.hero {
	background: var(--c-navy-2);
	padding: 56px 0;
}
.hero .container {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: stretch;
}
.hero__media {
	position: relative;
	min-height: 440px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-navy-3);
	display: flex;
	align-items: flex-end;
}
.hero__media img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(30, 36, 48, .82) 0%, rgba(30, 36, 48, .45) 55%, rgba(30, 36, 48, .1) 100%),
		linear-gradient(0deg, rgba(30, 36, 48, .55) 0%, rgba(30, 36, 48, 0) 50%);
}
.hero__media--empty::after { background: none; }
.hero__content {
	position: relative;
	z-index: 1;
	padding: 40px;
	max-width: 560px;
	color: var(--c-white);
}
.hero__title {
	color: var(--c-white);
	font-size: clamp(2.3rem, 4.2vw, 3.4rem);
	font-weight: 500;
	margin-bottom: .45em;
}
.hero__lead { font-size: 1.05rem; color: rgba(255, 255, 255, .9); margin-bottom: 1.5rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Karta godzin */
.hours-card {
	background: var(--c-white);
	border-radius: var(--radius);
	padding: 28px 24px;
	box-shadow: var(--shadow);
	font-size: .9rem;
}
.hours-card h2 {
	font-size: 1.6rem;
	color: var(--c-accent);
	margin-bottom: .8rem;
}
.hours-card h2.hours-card__office { color: var(--c-text); }
.hours-card dl {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: .55rem .75rem;
	margin: 0 0 .75rem;
}
.hours-card dt { font-weight: 700; }
.hours-card dd { margin: 0; }
.hours-card__note { font-size: .78rem; color: var(--c-muted); line-height: 1.5; margin: 0; }
.hours-card hr { border: 0; border-top: 1px solid var(--c-line); margin: 1.2rem 0; }
.hours-card__season {
	margin-top: 1.25rem;
	background: var(--c-highlight);
	border-radius: 6px;
	padding: .85rem 1rem;
	font-size: .85rem;
	line-height: 1.5;
}
.hours-card__season p:last-child { margin: 0; }
.hours-card__badge {
	display: inline-block;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-ochre);
	background: var(--c-highlight);
	border-radius: 4px;
	padding: .15rem .45rem;
	margin-bottom: .6rem;
}

/* ==========================================================================
   5. Na skróty
   ========================================================================== */

.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section--sand { background: var(--c-bg-2); }

.shortcuts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	padding-top: 40px;
}
.shortcut {
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	padding: 1.1rem 1.25rem;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--c-text);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.shortcut:hover { border-color: var(--c-accent); color: var(--c-text); box-shadow: var(--shadow); transform: translateY(-1px); }
.shortcut__icon { width: 30px; height: 30px; color: var(--c-accent); flex-shrink: 0; margin-top: 2px; }
.shortcut__title { display: block; font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.shortcut__desc { display: block; font-size: .88rem; color: var(--c-muted); margin-top: 2px; }
.shortcut--mobile { display: none; }

/* ==========================================================================
   6. Ogłoszenia i intencje
   ========================================================================== */

.notices-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.panel { padding: 32px; }
.panel__title { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 500; }
.panel__footer { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.panel__empty { color: var(--c-muted); }

.notice-list { margin: 0 0 0 1.3em; padding: 0; font-size: 1.1rem; line-height: 1.55; }
.notice-list li { margin-bottom: .8em; padding-left: .3em; }

.entry-content ol.ogloszenia,
.notice-content ol { padding-left: 1.4em; }
.notice-content { font-size: 1.15rem; }
.notice-content li { margin-bottom: .9em; }

.intentions { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.intentions th, .intentions td {
	text-align: left;
	vertical-align: top;
	padding: .7rem .5rem;
	border-bottom: 1px solid var(--c-line);
}
.intentions th { font-weight: 700; white-space: nowrap; width: 96px; }
.intentions td.intentions__time { white-space: nowrap; width: 62px; }
.intentions tr:last-child th, .intentions tr:last-child td { border-bottom: 0; }
.intentions tr.is-today th, .intentions tr.is-today td { background: var(--c-highlight); border-bottom-color: transparent; }
.intentions__today { color: var(--c-ochre); font-weight: 600; white-space: nowrap; }
.intentions__day-sep th, .intentions__day-sep td { border-top: 1px solid var(--c-line); }

/* Pełna tabela intencji (podstrona) */
.intentions--full { font-size: 1.1rem; }
.intentions--full th { width: 140px; }
.intentions--full td.intentions__time { width: 80px; }

/* ==========================================================================
   7. Aktualności
   ========================================================================== */

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.section-head h2 { margin: 0; font-weight: 500; }

.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.news-card {
	display: flex;
	flex-direction: column;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	overflow: hidden;
}
.news-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--c-sand);
	overflow: hidden;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card:hover .news-card__media img { transform: scale(1.03); }
.news-card__play {
	position: absolute; left: 50%; top: 50%; width: 60px; height: 60px;
	transform: translate(-50%, -50%); border-radius: 50%;
	background: rgba(30, 36, 48, .75); color: var(--c-white);
	display: grid; place-items: center;
}
.news-card__play svg { width: 24px; height: 24px; margin-left: 3px; }
.news-card__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-accent); opacity: .35;
}
.news-card__placeholder svg { width: 56px; height: 56px; }
.news-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: .78rem; color: var(--c-muted); margin-bottom: .4rem; }
.news-card__title {
	font-family: var(--f-sans);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 .6rem;
}
.news-card__title a { color: var(--c-text); text-decoration: none; }
.news-card__title a:hover { color: var(--c-accent); }
.news-card__excerpt { font-size: .9rem; color: var(--c-muted); margin-bottom: .6rem; }
.news-card__more { margin-top: auto; font-size: .85rem; font-weight: 700; }

/* ==========================================================================
   8. Historia („Ocalić od zapomnienia”)
   ========================================================================== */

.history {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 40px;
	align-items: center;
}
.history__media {
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-sand);
}
.history__media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.15); }
.history h2 { font-weight: 500; }
.history__lead { color: var(--c-text); margin-bottom: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }

/* ==========================================================================
   9. Ochrona małoletnich
   ========================================================================== */

.protection {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.4rem 1.6rem;
}
.protection__icon { width: 34px; height: 34px; color: var(--c-accent); flex-shrink: 0; }
.protection__text { flex: 1; }
.protection__title { display: block; font-weight: 700; font-size: 1.05rem; }
.protection__desc { display: block; font-size: .85rem; color: var(--c-muted); }

/* ==========================================================================
   10. Stopka
   ========================================================================== */

.site-footer {
	background: var(--c-navy);
	color: rgba(255, 255, 255, .88);
	font-size: .92rem;
	padding: 48px 0 28px;
}
.site-footer a { color: rgba(255, 255, 255, .88); }
.site-footer a:hover { color: var(--c-white); }
.footer-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1.1fr;
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-col p { margin: 0 0 .5em; }
.footer-col__title {
	display: block;
	font-family: var(--f-serif);
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--c-white);
	margin-bottom: .6rem;
	line-height: 1.2;
}
.footer-col__label { display: block; font-weight: 700; color: var(--c-white); margin-bottom: .6rem; }
.footer-col__small { font-size: .78rem; color: rgba(255, 255, 255, .65); }
.footer-account { font-variant-numeric: tabular-nums; letter-spacing: .02em; word-break: break-word; }
.footer-map {
	position: relative;
	min-height: 150px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-navy-2);
	border: 1px solid rgba(255, 255, 255, .1);
}
.footer-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.footer-map__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
	color: rgba(255, 255, 255, .7); font-size: .85rem; text-decoration: none;
}
.footer-route { display: none; margin-top: 1rem; }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	padding-top: 22px;
	font-size: .78rem;
	color: rgba(255, 255, 255, .7);
}
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .8); }

/* ==========================================================================
   11. Podstrony i wpisy
   ========================================================================== */

.page-hero {
	background: var(--c-navy-2);
	color: var(--c-white);
	padding: 48px 0 44px;
}
.page-hero h1 { color: var(--c-white); font-weight: 500; margin: 0; }
.page-hero .eyebrow { color: #D9B77A; }
.page-hero__meta { margin-top: .6rem; color: rgba(255, 255, 255, .75); font-size: .95rem; }

.breadcrumbs { font-size: .82rem; color: rgba(255, 255, 255, .7); margin-bottom: .8rem; }
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs span[aria-hidden] { margin: 0 .4em; }

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
	padding-top: 48px;
	padding-bottom: 64px;
}
.content-layout--single { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin: 0 auto; }
.content-main.card { padding: 40px; }

.entry-content { font-size: 1.05rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote {
	margin: 1.5em 0; padding: .5em 0 .5em 1.25em;
	border-left: 3px solid var(--c-accent);
	font-family: var(--f-serif); font-size: 1.35rem; font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--c-line); padding: .6em .5em; text-align: left; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption, .wp-element-caption { font-size: .85rem; color: var(--c-muted); margin-top: .5em; }
.entry-content img { border-radius: 6px; }
.entry-content .wp-block-gallery img { border-radius: 4px; }
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="youtu.be"] { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; }
.entry-content .wp-block-file { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 6px; padding: 1rem; }
.entry-content .wp-block-button__link { background: var(--c-accent); border-radius: 6px; font-weight: 700; }
.entry-content hr { border: 0; border-top: 1px solid var(--c-line); margin: 2em 0; }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-featured { margin: 0 0 1.75rem; border-radius: var(--radius); overflow: hidden; }

.entry-footer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); font-size: .9rem; color: var(--c-muted); }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: .92rem; }
.post-nav a { text-decoration: none; font-weight: 600; }

/* Pasek boczny */
.sidebar { display: grid; gap: 24px; }
.sidebar .hours-card { box-shadow: none; border: 1px solid var(--c-line); }
.widget { background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; font-size: .95rem; }
.widget-title { font-size: 1.35rem; margin-bottom: .6rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .35rem 0; border-bottom: 1px solid var(--c-line); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.subnav li.current_page_item > a { font-weight: 700; }
.subnav .children { padding-left: 1rem; margin-top: .35rem; }

/* Listy archiwów */
.archive-list { display: grid; gap: 16px; }
.archive-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; }
.archive-item__title { font-family: var(--f-serif); font-size: 1.35rem; font-weight: 600; margin: 0; }
.archive-item__title a { color: var(--c-text); text-decoration: none; }
.archive-item__title a:hover { color: var(--c-accent); }
.archive-item__meta { font-size: .85rem; color: var(--c-muted); }
.archive-item.is-current { border-color: var(--c-accent); }

.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .6rem;
	border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-white);
	text-decoration: none; color: var(--c-text); font-weight: 600;
}
.pagination .page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-white); }

/* Wyszukiwarka */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; padding: .65rem .9rem; border: 1px solid var(--c-line); border-radius: 6px;
	font: inherit; background: var(--c-white);
}

/* Formularze (np. Contact Form 7) */
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content textarea {
	width: 100%; padding: .7rem .9rem; border: 1px solid var(--c-sand); border-radius: 6px; font: inherit; background: var(--c-white);
}
.entry-content input[type="submit"] {
	background: var(--c-accent); color: var(--c-white); border: 0; border-radius: 6px; padding: .8em 1.4em; font: 700 1rem var(--f-sans); cursor: pointer;
}

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 2rem; }
.contact-box { padding: 1.25rem 1.4rem; }
.contact-box .footer-col__label { color: var(--c-text); }
.contact-map { position: relative; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; background: var(--c-sand); margin-bottom: 2rem; }
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   12. Responsywność
   ========================================================================== */

@media (max-width: 1280px) {
	.main-nav .menu a { padding: .5rem .4rem; font-size: .93rem; }
	.brand__logo { height: 72px; }
	.brand__name { font-size: 1.8rem; }
}

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.main-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(360px, 88vw);
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 90px 20px 24px;
		background: var(--c-white);
		box-shadow: -10px 0 30px rgba(30, 36, 48, .15);
		transform: translateX(100%);
		transition: transform .25s ease;
		overflow-y: auto;
		z-index: 70;
	}
	.nav-open .main-nav { transform: none; }
	.nav-open .nav-toggle { position: relative; z-index: 80; }
	.nav-backdrop {
		position: fixed; inset: 0; background: rgba(30, 36, 48, .45); z-index: 65;
		opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
	}
	.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
	.nav-open { overflow: hidden; }

	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav .menu > li { border-bottom: 1px solid var(--c-line); }
	.main-nav .menu a { padding: .85rem .25rem; font-size: 1.05rem; }
	.main-nav .menu-item-has-children,
	.main-nav .page_item_has_children { display: flex; flex-wrap: wrap; align-items: center; }
	.main-nav .menu-item-has-children > a,
	.main-nav .page_item_has_children > a { flex: 1; }
	.submenu-toggle {
		display: grid; place-items: center; width: 44px; height: 44px;
		background: none; border: 0; color: var(--c-text); cursor: pointer;
	}
	.submenu-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
	.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.main-nav .sub-menu,
	.main-nav .children {
		position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .5rem 1rem;
		border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none;
	}
	.main-nav .is-open > .sub-menu,
	.main-nav .is-open > .children { display: block; }
	.main-nav .btn { width: 100%; padding: .9em; }

	.hero .container { grid-template-columns: 1fr; }
	.hero__media { min-height: 360px; }
	.shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.notices-grid { grid-template-columns: 1fr; }
	.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.news-grid > :nth-child(3) { display: none; }
	.history { grid-template-columns: 1fr; gap: 24px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.content-layout { grid-template-columns: 1fr; }
}

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

	.topbar__name { display: none; }
	.topbar .container { justify-content: center; }
	.topbar__links { gap: .9rem; justify-content: center; }

	.site-header .container { min-height: 78px; }
	.brand__logo { height: 58px; }
	.brand__name { font-size: 1.5rem; }
	.brand__place { font-size: .66rem; }

	.hero { padding: 0 0 24px; }
	.hero .container { padding: 0; gap: 0; }
	.hero__media { min-height: 340px; border-radius: 0; }
	.hero__content { padding: 28px 20px; }
	.hero__actions .btn { flex: 1 1 auto; }
	.hours-card { margin: -16px var(--gutter) 0; position: relative; z-index: 2; padding: 22px 20px; }

	/* 2×2: Ogłoszenia, Intencje, Sakramenty, Kontakt */
	.shortcuts { gap: 12px; padding-top: 28px; }
	.shortcut { flex-direction: column; align-items: center; text-align: center; padding: 1.1rem .75rem; gap: .5rem; }
	.shortcut__icon { width: 30px; height: 30px; margin: 0; }
	.shortcut__desc { display: none; }
	.shortcut--desktop { display: none; }
	.shortcut--mobile { display: flex; }

	.section { padding: 36px 0; }
	.panel { padding: 22px 20px; }
	.content-main.card { padding: 22px 20px; }

	/* Skrót ogłoszeń i intencja na dziś */
	.notice-list li:nth-child(n+3) { display: none; }
	.intentions--home tr:not(.is-today) { display: none; }
	.intentions--home.has-no-today tr { display: table-row; }
	.intentions--home.has-no-today tr:nth-child(n+3) { display: none; }

	.news-grid { grid-template-columns: 1fr; }
	.news-grid > :nth-child(3) { display: flex; }
	.section-head { flex-direction: column; gap: .25rem; }

	.protection { flex-wrap: wrap; padding: 1.2rem; }
	.protection .btn { width: 100%; }

	.footer-grid { grid-template-columns: 1fr; gap: 24px; }
	.footer-route { display: inline-flex; width: 100%; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }

	.archive-item { flex-direction: column; align-items: flex-start; gap: .25rem; }
	.intentions--full th { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .site-header, .site-footer, .sidebar, .hero__actions, .protection, .shortcuts { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	.page-hero { background: none; color: #000; padding: 0 0 1rem; }
	.page-hero h1 { color: #000; }
	.content-main.card { border: 0; padding: 0; }
}
.site-footer .btn--light, .site-footer .btn--light:hover { color: var(--c-text); }
.footer-route svg { width: 18px; height: 18px; margin: 0; }
.contact-map .footer-map__placeholder { color: var(--c-text); }
.footer-logo { display: block; width: auto; height: 72px; color: var(--c-white); margin-bottom: .9rem; }
