/*
Theme Name: Parafia Sława
Theme URI: https://parafiaslawa.pl
Author: NETMARK
Author URI: https://www.netmark.pc.pl
Description: Lekki, szybki i w pełni responsywny motyw dla Parafii pw. św. Michała Archanioła w Sławie. Bez page buildera i jQuery. Współpracuje z wtyczką „Parafia – treści” (ogłoszenia, intencje, porządek Mszy).
Version: 1.3.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parafia-slawa
*/

/* ==========================================================================
   Tokeny
   ========================================================================== */
:root {
	--navy: #13203D;
	--navy-d: #0E172D;
	--navy-2: #1E2D52;
	--navy-line: #22305A;
	--gold: #E3A43A;
	--gold-d: #C98A1F;
	--ink: #121826;
	--muted: #4B5563;
	--soft: #C9D1E2;
	--bg: #F2F3F5;
	--white: #FFFFFF;
	--line: #DFE2E8;
	--line-2: #ECEEF2;
	--f-body: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-head: "Bricolage Grotesque", Figtree, ui-sans-serif, system-ui, sans-serif;
	--r-sm: 10px;
	--r: 14px;
	--r-lg: 20px;
	--gutter: clamp(16px, 4vw, 24px);
	--card-pad: clamp(20px, 3vw, 32px);
}

/* ==========================================================================
   Podstawy
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.125rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 .5em; color: inherit; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; }
address { font-style: normal; }

.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; margin: 0;
	background: var(--white); color: var(--ink); padding: 12px 16px; z-index: 100000;
}
.ps-skip {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--gold); color: var(--navy); font-weight: 700;
	padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none;
}
.ps-skip:focus { top: 12px; }

.ps-wrap { width: 100%; max-width: 1288px; margin-inline: auto; padding-inline: var(--gutter); }
.ps-icon { flex: none; vertical-align: middle; }

/* ==========================================================================
   Typografia pomocnicza
   ========================================================================== */
.ps-h1 { font-size: clamp(32px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.ps-h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.ps-h2--light { color: var(--white); }
.ps-h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin: 0 0 12px; }
.ps-h4 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.ps-label { font-family: var(--f-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 6px; }
.ps-meta { font-size: 15px; color: var(--muted); margin: 0; }
.ps-small { font-size: 15px; color: var(--muted); margin: 10px 0 0; }
.ps-muted { color: var(--muted); }
.ps-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ps-badge {
	display: inline-block; vertical-align: middle; margin-left: 8px;
	font-family: var(--f-body); font-size: 14px; font-weight: 700; letter-spacing: 0;
	background: var(--gold); color: var(--navy); border-radius: 999px; padding: 2px 10px;
}

/* ==========================================================================
   Przyciski
   ========================================================================== */
.ps-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
	font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ps-btn--navy { background: var(--navy); color: var(--white); }
.ps-btn--navy:hover { background: var(--navy-2); color: var(--white); }
.ps-btn--gold { background: var(--gold); color: var(--navy); }
.ps-btn--gold:hover { background: #EDB65A; color: var(--navy); }
.ps-btn--gold.is-done { background: #CDE8D3; color: #12422A; }
.ps-btn--light { background: var(--white); color: var(--navy); border-color: var(--line); }
.ps-btn--light:hover { border-color: var(--navy); color: var(--navy); }
.ps-btn--block { width: 100%; }

/* ==========================================================================
   Nagłówek
   ========================================================================== */
.ps-header { background: var(--navy); color: var(--white); position: relative; z-index: 50; }
.ps-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 18px; }
.ps-brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; min-height: 44px; }
.ps-brand:hover { color: var(--white); }
.ps-brand__mark {
	width: 42px; height: 42px; border-radius: 12px; background: var(--gold); color: var(--navy);
	display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.ps-brand__mark .ps-icon { stroke-width: 2.6; }
.ps-brand__logo { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; }
.ps-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.ps-brand__name { font-family: var(--f-head); font-weight: 700; font-size: 20px; }
.ps-brand__sub { font-size: 14px; font-weight: 500; color: #B9C3D8; }

.ps-nav { display: flex; align-items: center; gap: 6px; }
.ps-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; font-size: 16px; font-weight: 600; }
.ps-menu > li { position: relative; }
.ps-menu a {
	display: block; padding: 10px 12px; border-radius: 10px;
	color: #E6EAF3; text-decoration: none; white-space: nowrap;
}
.ps-menu a:hover, .ps-menu .current-menu-item > a, .ps-menu .current-menu-ancestor > a, .ps-menu .current_page_item > a { color: var(--gold); }
/* Linki do kotwic na stronie głównej (#msze, #kontakt) nie są „bieżącą stroną”. */
.ps-menu .current-menu-item > a[href*="#"]:not(:hover) { color: #E6EAF3; }
.ps-menu .sub-menu .current-menu-item > a[href*="#"]:not(:hover) { color: var(--ink); }
.ps-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--white); border-radius: var(--r); box-shadow: 0 12px 32px rgba(14, 23, 45, .18);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.ps-menu .sub-menu a { color: var(--ink); font-weight: 600; white-space: normal; }
.ps-menu .sub-menu a:hover { background: var(--bg); color: var(--navy); }
.ps-menu li:hover > .sub-menu, .ps-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ps-menu .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; vertical-align: 3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}

.ps-live {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; margin-left: 4px;
	background: var(--gold); color: var(--navy); border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.ps-live:hover { background: #EDB65A; color: var(--navy); }
.ps-live__dot { width: 8px; height: 8px; border-radius: 50%; background: #B3261E; }

.ps-navtoggle {
	display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
	background: transparent; color: var(--white); border: 1px solid var(--navy-line); border-radius: 12px; cursor: pointer; font-weight: 700;
}
.ps-navtoggle__close { display: none; }
.ps-nav-open .ps-navtoggle__open { display: none; }
.ps-nav-open .ps-navtoggle__close { display: inline-flex; }

@media (max-width: 1040px) {
	.ps-navtoggle { display: inline-flex; }
	.ps-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding: 4px 0 8px; }
	.ps-nav-open .ps-nav { display: flex; }
	.ps-menu { flex-direction: column; font-size: 18px; }
	.ps-menu a { padding: 12px 8px; border-bottom: 1px solid var(--navy-line); border-radius: 0; }
	.ps-menu .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		background: transparent; padding: 0 0 0 16px; min-width: 0;
	}
	.ps-menu .sub-menu a { color: #C9D1E2; font-size: 16px; }
	.ps-menu .sub-menu a:hover { background: transparent; color: var(--gold); }
	.ps-menu .menu-item-has-children > a::after { display: none; }
	.ps-live { align-self: flex-start; margin: 4px 0 0; }
}

/* ==========================================================================
   Strona główna – hero
   ========================================================================== */
.ps-hero { background: var(--navy); color: var(--white); position: relative; isolation: isolate; overflow: hidden; }
.ps-hero__photo {
	position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none;
	object-fit: cover; object-position: center 35%;
}
.ps-hero.has-photo::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(90deg, rgba(19, 32, 61, .9) 0%, rgba(19, 32, 61, .7) 50%, rgba(19, 32, 61, .35) 100%);
}
.ps-hero.has-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; background: linear-gradient(0deg, rgba(19, 32, 61, .9), transparent); }
@media (max-width: 760px) {
	.ps-hero.has-photo::before { background: rgba(19, 32, 61, .78); }
}
.ps-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 32px 104px; }
.ps-hero__text { flex: 3 1 460px; display: flex; flex-direction: column; gap: 18px; }
.ps-hero__title { font-size: clamp(42px, 6vw, 76px); font-weight: 800; line-height: .98; letter-spacing: -.02em; margin: 0; }
.ps-hero__accent { display: block; color: var(--gold); }
.ps-hero__lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--soft); max-width: 38ch; margin: 0; }

.ps-next {
	flex: 2 1 320px; background: var(--white); color: var(--ink); border-radius: var(--r-lg);
	padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.ps-next__label { font-family: var(--f-body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0; }
.ps-next__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; }
.ps-next__time { font-family: var(--f-head); font-size: clamp(44px, 5vw, 56px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ps-next__day { font-weight: 600; }
.ps-next__place { font-size: 16px; color: var(--muted); margin: 0; }
.ps-next__int { background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 16px; }

/* Kafle na skróty */
.ps-tiles {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 16px;
	margin-top: -52px; position: relative;
}
.ps-tile {
	background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
	display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none;
	transition: border-color .15s, transform .15s;
}
.ps-tile .ps-icon { color: var(--navy); margin-bottom: 4px; }
.ps-tile:hover { border-color: var(--navy); color: var(--ink); transform: translateY(-2px); }
.ps-tile__title { font-weight: 700; font-size: 19px; }
.ps-tile__sub { font-size: 15px; color: var(--muted); }

/* ==========================================================================
   Karty i układy
   ========================================================================== */
.ps-card { background: var(--white); border-radius: var(--r-lg); padding: 28px; }
.ps-card--lg { padding: var(--card-pad); }
.ps-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }

.ps-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; padding-block: 56px; }
.ps-split__main { flex: 999 1 520px; min-width: 0; }
.ps-split__side { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.ps-section { padding-block: 0 56px; }
.ps-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }

.ps-grid { display: grid; gap: 20px; }
.ps-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.ps-grid--chips { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.ps-chip {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
	background: var(--white); border: 1px solid transparent; border-radius: var(--r); padding: 14px 18px;
	color: var(--ink); text-decoration: none; font-weight: 600;
}
.ps-chip .ps-icon { color: var(--muted); }
.ps-chip:hover { border-color: var(--navy); color: var(--navy); }

/* Godziny jako pigułki */
.ps-season { display: inline-block; font-size: 14px; font-weight: 600; color: var(--navy); background: #FDF1DC; border-radius: 999px; padding: 4px 12px; margin: 0 0 4px; }
.ps-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-pills li { padding: 6px 12px; border-radius: var(--r-sm); background: var(--navy); color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Wiersze nazwa – wartość */
.ps-rows { margin: 0; }
.ps-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.ps-rows dt { margin: 0; }
.ps-rows dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Ogłoszenia – numerowane punkty */
.ps-ogloszenia > ol, .ps-ogloszenia > .wp-block-list:is(ol) { list-style: none; margin: 0 0 18px; padding: 0; counter-reset: ogl; }
.ps-ogloszenia > ol > li {
	counter-increment: ogl; position: relative; padding: 14px 0 14px 50px; border-top: 1px solid var(--line-2); font-size: 17px;
}
.ps-ogloszenia > ol > li::before {
	content: counter(ogl); position: absolute; left: 0; top: 12px;
	width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--bg); color: var(--navy);
	font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.ps-ogloszenia > ol > li ul, .ps-ogloszenia > ol > li ol { margin: 6px 0 0; padding-left: 20px; }
.ps-ogloszenia > ol > li li { margin: 4px 0; }

/* Transmisja */
.ps-livebox {
	background: var(--navy); color: var(--white); border-radius: 24px; padding: clamp(20px, 3vw, 36px);
	display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
}
.ps-livebox__player { flex: 2 1 380px; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--navy-2); overflow: hidden; display: flex; }
.ps-livebox__player iframe { width: 100%; height: 100%; border: 0; }
.ps-livebox__start {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	background: transparent; border: 0; color: var(--soft); font-weight: 600; font-size: 16px; cursor: pointer;
}
.ps-livebox__play { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; padding-left: 4px; transition: transform .15s; }
.ps-livebox__start:hover .ps-livebox__play { transform: scale(1.06); }
.ps-livebox__text { flex: 1 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ps-livebox__text p { color: var(--soft); margin: 0; }
#transmisja { margin-bottom: 56px; }

/* Modlitwa do św. Michała Archanioła */
.ps-prayer-wrap { margin-bottom: 56px; }
.ps-prayer {
	position: relative; overflow: hidden; border-radius: 24px; background: var(--white);
	border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px);
	display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center;
}
.ps-prayer::before {
	content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--gold);
}
.ps-prayer__head { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ps-prayer__mark {
	width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--gold);
	display: inline-flex; align-items: center; justify-content: center;
}
.ps-prayer__mark .ps-icon { stroke-width: 2.4; }
.ps-prayer__title { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.01em; margin: 0; color: var(--navy); }
.ps-prayer__motto { margin: 0; font-family: var(--f-head); font-weight: 700; color: var(--gold-d); font-size: 18px; }
.ps-prayer__text { flex: 2 1 420px; margin: 0; }
.ps-prayer__text p { margin: 0; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.75; color: var(--ink); }
@media (max-width: 600px) {
	.ps-prayer-wrap { margin-bottom: 40px; }
	.ps-prayer { border-radius: var(--r-lg); }
}
@media print { .ps-prayer::before { display: none; } }

/* Wsparcie */
.ps-support { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; padding-block: 0 56px; }
.ps-support__text { flex: 1 1 380px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ps-support__text .ps-h1 { margin: 0; }
.ps-account { flex: 1 1 420px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.ps-account__data { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ps-account__data .ps-small { margin: 0; }
.ps-account__nr { font-family: var(--f-head); font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0; word-break: break-word; }
.ps-account__data .ps-btn { margin-top: 8px; }
.ps-account__qr { margin: 0; width: 132px; }
.ps-account__qr img { display: block; width: 100%; border-radius: var(--r-sm); }

/* Karty wpisów */
.ps-postcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.ps-postcard__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ps-postcard__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ps-postcard__title { font-size: 22px; margin: 0; }
.ps-postcard__title a { color: var(--ink); text-decoration: none; }
.ps-postcard__title a:hover { color: var(--navy); text-decoration: underline; }
.ps-postcard__excerpt { margin: 0; color: var(--muted); font-size: 16px; }

/* ==========================================================================
   Podstrony
   ========================================================================== */
.ps-pagehero { background: var(--navy); color: var(--white); padding-block: 12px 64px; }
.ps-pagehero__back { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); text-decoration: none; font-weight: 600; font-size: 16px; margin-bottom: 10px; min-height: 32px; }
.ps-pagehero__back:hover { color: var(--gold); }
.ps-pagehero__title { font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; letter-spacing: -.02em; line-height: 1; margin: 0; }
.ps-pagehero__sub { color: var(--soft); margin: 10px 0 0; font-size: 18px; }

.ps-pagebody { padding-block: 0 72px; margin-top: -28px; position: relative; display: flex; flex-direction: column; gap: 22px; }
.ps-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ps-actions > a:not(.ps-btn) {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px;
	background: var(--white); border: 1px solid var(--line); color: var(--navy); font-weight: 700; text-decoration: none;
}

.ps-list { list-style: none; margin: 0; padding: 0; }
.ps-list li { border-top: 1px solid var(--line); }
.ps-list a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; }
.ps-list a:hover { color: var(--navy); text-decoration: underline; }
.ps-list__date { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; margin-right: 8px; }

/* Tydzień intencji */
.ps-week { display: grid; gap: 16px; }
.ps-week__tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin-top: -2px; scrollbar-width: thin; }
.ps-week__tab {
	flex: 0 0 auto; min-width: 76px; min-height: 64px; padding: 8px 12px; border-radius: var(--r);
	border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer;
	display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative;
}
.ps-week__tab:hover { border-color: var(--navy); }
.ps-week__tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); }
.ps-week__tab.is-today::after { content: ""; position: absolute; bottom: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.ps-week__dn { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ps-week__dd { font-family: var(--f-head); font-size: 22px; font-weight: 700; line-height: 1.1; }
.ps-week__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 8px; }
.ps-week__day.is-sunday .ps-week__head .ps-h2::first-letter { color: inherit; }
.ps-week.is-tabbed .ps-week__day[hidden] { display: none; }

.ps-intentions { list-style: none; margin: 0; padding: 0; }
.ps-intentions li { display: flex; gap: clamp(12px, 2vw, 22px); align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line-2); }
.ps-intentions__time {
	flex: none; min-width: 72px; padding: 6px 0; text-align: center; border-radius: var(--r-sm);
	background: var(--navy); color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums;
}
.ps-intentions__text { font-size: clamp(17px, 1.6vw, 19px); padding-top: 4px; }
.ps-intentions__text.is-empty { color: var(--muted); }

/* Treść stron (z edytora) */
.ps-prose > * { max-width: 760px; }
.ps-prose > .alignwide, .ps-prose > .alignfull, .ps-prose > .wp-block-table, .ps-prose > table,
.ps-prose > .wp-block-gallery, .ps-prose > .wp-block-columns, .ps-prose > .wp-block-embed, .ps-prose__hero { max-width: none; }
.ps-prose > :last-child { margin-bottom: 0; }
.ps-prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 1.4em; }
.ps-prose h3 { font-size: 22px; margin-top: 1.3em; }
.ps-prose h2:first-child, .ps-prose h3:first-child { margin-top: 0; }
.ps-prose ul, .ps-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.ps-prose li { margin: .3em 0; }
.ps-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font-size: 1.1em; }
.ps-prose figure { margin: 1.4em 0; }
.ps-prose img { border-radius: var(--r-sm); }
.ps-prose figcaption, .wp-caption-text { font-size: 15px; color: var(--muted); margin-top: 6px; }
.ps-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.ps-prose td, .ps-prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.ps-prose th { background: var(--bg); }
.ps-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.ps-prose__hero { margin: 0 0 24px; }
.ps-prose__hero img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--r); }
.ps-prose .wp-block-button__link { background: var(--navy); color: var(--white); border-radius: 12px; padding: 12px 20px; font-weight: 700; text-decoration: none; }
.ps-prose details { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; padding: 0 18px; background: var(--white); }
.ps-prose details > summary {
	cursor: pointer; list-style: none; font-weight: 700; padding: 14px 28px 14px 0; position: relative; min-height: 48px;
}
.ps-prose details > summary::-webkit-details-marker { display: none; }
.ps-prose details > summary::after {
	content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
	border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .15s;
}
.ps-prose details[open] > summary { border-bottom: 1px solid var(--line-2); margin-bottom: 12px; }
.ps-prose details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ps-prose details > :last-child { margin-bottom: 16px; }
.ps-embed { margin: 1.4em 0; }
.ps-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r); background: var(--navy-2); }
.ps-prose .wp-block-image img { display: block; }
/* Galerie (blokowa i klasyczna) */
.ps-prose > .gallery { max-width: none; }
.ps-prose .wp-block-gallery { gap: 8px; }
.ps-prose .wp-block-gallery img, .ps-prose .gallery img { border-radius: var(--r-sm); }
.ps-prose .gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(160px, 45%), 1fr)); gap: 8px; margin: 1.4em 0 !important; }
.ps-prose .gallery .gallery-item { width: auto !important; margin: 0 !important; max-width: none !important; }
.ps-prose .gallery .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 0 !important; display: block; }
.ps-prose .gallery br { display: none; }
.ps-prose .gallery-caption { font-size: 14px; color: var(--muted); padding-top: 4px; }

/* Powiększanie zdjęć */
.ps-zoom { display: block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; width: 100%; border-radius: var(--r-sm); }
.ps-prose a[href$=".jpg"], .ps-prose a[href$=".jpeg"], .ps-prose a[href$=".png"], .ps-prose a[href$=".webp"] { cursor: zoom-in; }
.ps-lb {
	width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(9, 14, 28, .96); color: var(--white); overflow: hidden;
}
.ps-lb::backdrop { background: rgba(9, 14, 28, .9); }
.ps-lb[open] { display: flex; align-items: center; justify-content: center; }
.ps-lb__fig { margin: 0; max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ps-lb__img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.ps-lb__cap { font-size: 16px; color: var(--soft); text-align: center; }
.ps-lb__count { position: absolute; top: 18px; left: 22px; margin: 0; font-size: 15px; font-weight: 600; color: var(--soft); font-variant-numeric: tabular-nums; }
.ps-lb__btn {
	position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .12); color: var(--white); display: flex; align-items: center; justify-content: center;
}
.ps-lb__btn:hover { background: rgba(255, 255, 255, .24); }
.ps-lb__close { top: 12px; right: 12px; }
.ps-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ps-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.ps-lb.is-single .ps-lb__prev, .ps-lb.is-single .ps-lb__next { display: none; }
.ps-lb-open { overflow: hidden; }
@media (max-width: 600px) {
	.ps-lb__fig { max-width: 100vw; }
	.ps-lb__prev, .ps-lb__next { top: auto; bottom: 18px; transform: none; }
	.ps-lb__prev { left: calc(50% - 64px); }
	.ps-lb__next { right: calc(50% - 64px); }
	.ps-lb__img { max-height: calc(100vh - 170px); }
}

.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-block-embed iframe { width: 100%; }

/* Wyszukiwarka i stronicowanie */
.ps-searchbox form { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-searchbox input[type="search"] { flex: 1 1 240px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.ps-searchbox input[type="submit"], .ps-searchbox button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--navy); color: var(--white); font-weight: 700; cursor: pointer; }
.ps-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 12px; background: var(--white); color: var(--navy); text-decoration: none; font-weight: 700; }
.ps-pagination .page-numbers.current { background: var(--navy); color: var(--white); }

/* ==========================================================================
   Stopka
   ========================================================================== */
.ps-footer { background: var(--navy-d); color: var(--soft); font-size: 16px; }
.ps-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; padding-block: 48px 28px; }
.ps-footer__title { color: var(--white); font-size: 22px; margin: 0 0 12px; }
.ps-footer__list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ps-footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; min-height: 32px; }
.ps-footer__contact a:hover { color: var(--gold); }
.ps-footer__more { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; text-decoration: none; min-height: 32px; }
.ps-footer__more:hover { color: #F0BE68; text-decoration: underline; }
.ps-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 18px 28px; border-top: 1px solid var(--navy-line); font-size: 14px; color: #9AA6C0; }
.ps-footer__bottom a { color: #C9D1E2; }
.ps-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ==========================================================================
   Telefony
   ========================================================================== */
@media (max-width: 600px) {
	body { font-size: 1.0625rem; }
	.ps-header__inner { padding-block: 12px; }
	.ps-brand__name { font-size: 18px; }
	.ps-hero__inner { padding-block: 16px 88px; gap: 28px; }
	.ps-next { padding: 20px; }
	.ps-split { padding-block: 32px; gap: 20px; }
	.ps-card { padding: 20px; }
	.ps-ogloszenia > ol > li { padding-left: 44px; font-size: 16px; }
	.ps-section, .ps-support { padding-block: 0 40px; }
	#transmisja { margin-bottom: 40px; }
	.ps-pagehero { padding-block: 4px 56px; }
	.ps-tiles { gap: 10px; }
	.ps-tile { padding: 14px 16px; border-radius: var(--r); }
	.ps-tile__title { font-size: 17px; }
	.ps-tile__sub { font-size: 14px; }
	.ps-intentions li { gap: 12px; padding: 14px 0; }
	.ps-intentions__time { min-width: 58px; padding: 4px 0; font-size: 16px; }
	.ps-intentions__text { padding-top: 3px; }
	.ps-week__tab { min-width: 64px; min-height: 58px; }
	.ps-actions .ps-btn, .ps-actions > a { flex: 1 1 100%; }
}

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

/* ==========================================================================
   Druk
   ========================================================================== */
@media print {
	body { background: #fff; color: #000; font-size: 12pt; }
	.ps-header, .ps-footer, .ps-actions, .ps-tiles, .ps-week__tabs, .ps-noprint, .ps-skip, .ps-livebox, #transmisja { display: none !important; }
	.ps-pagehero { background: none; color: #000; padding: 0 0 12pt; }
	.ps-pagehero__back { display: none; }
	.ps-pagehero__sub { color: #333; }
	.ps-pagebody { margin: 0; }
	.ps-card { padding: 0; border-radius: 0; }
	.ps-week__day[hidden] { display: block !important; }
	.ps-week__day { break-inside: avoid; margin-bottom: 12pt; }
	.ps-intentions li { padding: 4pt 0; }
	.ps-intentions__time { background: none; color: #000; border: 1px solid #000; }
	a { color: #000; text-decoration: none; }
}
