/*!
 * Pijarzy Smart Navigation 1.8.0
 * Modern Piarist Education – Tradition Meets Innovation
 */

:root {
	--psn-navy: #182d45;
	--psn-navy-2: #22405f;
	--psn-gold: #c3a465;
	--psn-gold-ink: #7d6230;      /* złoto do tekstu na jasnym tle (kontrast 5.4:1) */
	--psn-paper: #fafaf8;
	--psn-sky: #edf3f8;
	--psn-ink: #354052;
	--psn-muted: #5b6676;
	--psn-line: #e3e8ee;
	--psn-card: #ffffff;
	--psn-radius: 14px;
	--psn-radius-sm: 10px;
	--psn-shadow: 0 1px 2px rgba(24, 45, 69, .05), 0 6px 20px -12px rgba(24, 45, 69, .18);
	--psn-focus: 0 0 0 3px #fff, 0 0 0 5px var(--psn-navy);
	--psn-ease: cubic-bezier(.2, .7, .2, 1);
	--psn-font-display: inherit;
	--psn-top-offset: 0px;
}

/* ---------- Kontener ---------- */
.psn {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--psn-ink);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-align: left; /* Divi justuje tekst w modułach */
}
.psn p { text-align: left !important; hyphens: manual; }
.psn *, .psn *::before, .psn *::after { box-sizing: border-box; }
.psn ul { list-style: none; margin: 0; padding: 0; }
.psn li { margin: 0; padding: 0; }
.psn li::before { content: none !important; } /* neutralizuje style listy Divi */
.psn h2, .psn h3, .psn p { margin: 0; padding: 0; }
.psn a { text-decoration: none; color: inherit; }
.psn svg.psn-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.psn .screen-reader-text, .psn-dock .screen-reader-text, h1.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.psn :focus-visible, .psn-dock :focus-visible { outline: none; box-shadow: var(--psn-focus); border-radius: var(--psn-radius-sm); }

.psn-card {
	background: var(--psn-card);
	border: 1px solid var(--psn-line);
	border-radius: var(--psn-radius);
	box-shadow: var(--psn-shadow);
	padding: 16px;
}
.psn-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.psn-eyebrow {
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--psn-muted) !important;
	line-height: 1.3 !important;
	margin-bottom: 12px !important;
}
.psn-card__head .psn-eyebrow { margin-bottom: 0 !important; }
.psn-more { font-size: 13px; font-weight: 600; color: var(--psn-navy) !important; border-bottom: 1px solid var(--psn-gold); }
.psn-more:hover { color: var(--psn-gold-ink) !important; }
.psn-notice { font-size: 14px; background: var(--psn-sky); }
.psn__drawer-head { display: none; }

/* ---------- Na skróty ---------- */
.psn-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 340px) { .psn-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.psn-tile {
	position: relative;
	display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
	min-height: 76px; height: 100%;
	padding: 12px;
	border-radius: var(--psn-radius-sm);
	background: var(--psn-sky);
	color: var(--psn-navy) !important;
	font-size: 13px; font-weight: 600; line-height: 1.25;
	transition: background-color .2s var(--psn-ease), transform .2s var(--psn-ease), box-shadow .2s var(--psn-ease);
}
.psn-tile__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #fff; color: var(--psn-navy); box-shadow: inset 0 0 0 1px var(--psn-line); transition: background-color .2s, color .2s; }
.psn-tile__ico .psn-ico { width: 18px; height: 18px; }
.psn-tile .psn-ico--ext { position: absolute; top: 10px; right: 10px; width: 13px; height: 13px; opacity: .55; }
.psn-tile:hover { background: #e2ebf3; transform: translateY(-1px); box-shadow: 0 6px 14px -10px rgba(24, 45, 69, .45); }
.psn-tile:hover .psn-tile__ico { background: var(--psn-navy); color: var(--psn-gold); box-shadow: none; }

/* ---------- Wyszukiwarka w menu ---------- */
.psn-search { position: relative; margin-bottom: 10px; }
.psn-search__ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px !important; height: 17px !important; color: var(--psn-muted); pointer-events: none; }
.psn .psn-search__input {
	width: 100%; height: 40px; margin: 0;
	padding: 0 12px 0 36px !important;
	font: inherit; font-size: 14px !important; color: var(--psn-ink) !important;
	background: var(--psn-paper) !important;
	border: 1px solid var(--psn-line) !important; border-radius: var(--psn-radius-sm) !important;
	transition: border-color .2s, background-color .2s;
	-webkit-appearance: none; appearance: none;
}
.psn .psn-search__input::placeholder { color: var(--psn-muted); opacity: 1; }
.psn .psn-search__input:focus { border-color: var(--psn-navy) !important; background: #fff !important; outline: none; box-shadow: 0 0 0 3px rgba(24, 45, 69, .12); }
.psn-empty { font-size: 14px; color: var(--psn-muted); padding: 8px 4px 2px; }
.psn-empty a { color: var(--psn-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Akordeon ---------- */
.psn-groups { display: flex; flex-direction: column; gap: 4px; }
.psn-group { border-radius: var(--psn-radius-sm); transition: background-color .2s var(--psn-ease); }
.psn-group.is-open { background: var(--psn-paper); box-shadow: inset 0 0 0 1px var(--psn-line); }
.psn-group__h { font-size: inherit !important; line-height: inherit !important; padding: 0 !important; }
.psn-group__btn, .psn-group__direct {
	display: flex; align-items: center; gap: 10px;
	width: 100%; min-height: 48px;
	padding: 6px 10px 6px 6px;
	margin: 0;
	font: inherit; font-size: 15px; font-weight: 600; text-align: left; line-height: 1.3;
	color: var(--psn-navy) !important;
	background: transparent; border: 0; border-radius: var(--psn-radius-sm);
	cursor: pointer;
	transition: background-color .2s var(--psn-ease);
}
.psn-group__btn:hover, .psn-group__direct:hover { background: var(--psn-sky); }
.psn-group__ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--psn-sky); color: var(--psn-navy); transition: background-color .2s, color .2s; }
.psn-group__ico .psn-ico { width: 18px; height: 18px; }
.psn-group.is-open .psn-group__ico, .psn-group.is-active .psn-group__ico { background: var(--psn-navy); color: var(--psn-gold); }
.psn-group__label { flex: 1; min-width: 0; }
.psn-group__count { font-size: 12px; font-weight: 600; color: var(--psn-muted); min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--psn-line); }
.psn-group__chev { width: 18px !important; height: 18px !important; color: var(--psn-muted); transition: transform .28s var(--psn-ease); }
.psn-group__btn[aria-expanded="true"] .psn-group__chev { transform: rotate(180deg); color: var(--psn-navy); }

.psn-group__panel { display: grid; grid-template-rows: 1fr; }
.psn-group__inner { overflow: hidden; min-height: 0; }
.psn--js .psn-group__panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s var(--psn-ease), visibility 0s linear .28s; }
.psn--js .psn-group.is-open > .psn-group__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .28s var(--psn-ease), visibility 0s linear 0s; }

.psn-links { padding: 2px 6px 8px 50px !important; position: relative; }
.psn-links::before { content: ""; position: absolute; left: 22px; top: 2px; bottom: 12px; width: 1px; background: var(--psn-line); }
.psn-links--sub { padding: 0 0 4px 12px !important; }
.psn-links--sub::before { display: none; }
.psn-link {
	position: relative;
	display: flex; align-items: center; gap: 8px;
	min-height: 36px; padding: 6px 10px;
	border-radius: 8px;
	font-size: 14px; line-height: 1.35;
	color: var(--psn-ink) !important;
	transition: background-color .18s, color .18s;
}
.psn-link__label { flex: 1; min-width: 0; }
.psn-link:hover { background: #fff; color: var(--psn-navy) !important; box-shadow: inset 0 0 0 1px var(--psn-line); }
.psn-link.is-current, .psn-group__direct.is-current { background: #fff; color: var(--psn-navy) !important; font-weight: 700; box-shadow: inset 0 0 0 1px var(--psn-line), 0 2px 8px -6px rgba(24, 45, 69, .5); }
.psn-link.is-current::before { content: ""; position: absolute; left: -29px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--psn-gold); box-shadow: 0 0 0 3px var(--psn-paper); }
.psn-link--overview { font-weight: 600; color: var(--psn-navy) !important; }
.psn-link .psn-ico--ext { width: 14px; height: 14px; opacity: .55; }
.psn-badge { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: var(--psn-sky); color: var(--psn-navy); }
.psn-group.is-filtered-out, .psn-links li.is-filtered-out { display: none; }
.psn mark.psn-hit { background: rgba(195, 164, 101, .35); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Rekrutacja ---------- */
.psn-rec {
	position: relative; overflow: hidden;
	background: var(--psn-navy); border-color: var(--psn-navy);
	color: #fff;
	padding: 18px;
}
.psn-rec::after { /* subtelny motyw łuku – nawiązanie do architektury sakralnej */
	content: ""; position: absolute; right: -60px; top: -60px; width: 170px; height: 170px;
	border-radius: 50%; border: 1px solid rgba(195, 164, 101, .35);
	box-shadow: 0 0 0 18px rgba(195, 164, 101, .06), 0 0 0 36px rgba(195, 164, 101, .04);
	pointer-events: none;
}
.psn-rec__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.psn-eyebrow--gold { color: var(--psn-gold) !important; margin-bottom: 0 !important; }
.psn-rec__title { font-family: var(--psn-font-display); font-size: 21px !important; font-weight: 700 !important; line-height: 1.2 !important; color: #fff !important; padding: 0 !important; margin-bottom: 6px !important; }
.psn-rec__msg { font-size: 14px; color: #d5dde7; margin-bottom: 12px !important; }
.psn-pill { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.psn-pill--info { background: rgba(255, 255, 255, .12); color: #fff; }
.psn-pill--open { background: #e7f6ec; color: #13532c; }
.psn-pill--closed { background: rgba(255, 255, 255, .12); color: #d5dde7; }
.psn-rec__links { display: grid; gap: 2px; margin-bottom: 14px !important; position: relative; z-index: 1; }
.psn-rec__links a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px; border-radius: 8px; font-size: 14px; color: #fff !important; transition: background-color .18s; }
.psn-rec__links a .psn-ico { width: 18px; height: 18px; color: var(--psn-gold); }
.psn-rec__links a:hover { background: rgba(255, 255, 255, .08); }
.psn-rec :focus-visible { box-shadow: 0 0 0 2px var(--psn-navy), 0 0 0 4px var(--psn-gold); }

/* ---------- Przyciski ---------- */
.psn-btn {
	position: relative; z-index: 1;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 16px;
	border-radius: var(--psn-radius-sm);
	font-size: 14px; font-weight: 700; line-height: 1.2;
	transition: background-color .2s, color .2s, transform .2s var(--psn-ease), box-shadow .2s;
}
.psn-btn .psn-ico { width: 18px; height: 18px; }
.psn-btn--gold { width: 100%; background: var(--psn-gold); color: var(--psn-navy) !important; }
.psn-btn--gold:hover { background: #d3b77c; }
.psn-btn--gold:hover .psn-ico { transform: translateX(3px); }
.psn-btn--gold .psn-ico { transition: transform .2s var(--psn-ease); }
.psn-btn--navy { background: var(--psn-navy); color: #fff !important; }
.psn-btn--navy:hover { background: var(--psn-navy-2); }
.psn-btn--ghost { background: #fff; color: var(--psn-navy) !important; box-shadow: inset 0 0 0 1px var(--psn-line); }
.psn-btn--ghost:hover { background: var(--psn-sky); }

/* ---------- Aktualności ---------- */
.psn-news__list { display: grid; gap: 4px; }
.psn-news__item { display: flex; gap: 12px; align-items: flex-start; padding: 8px; margin: 0 -8px !important; border-radius: var(--psn-radius-sm); position: relative; transition: background-color .18s; }
.psn-news__item:hover { background: var(--psn-paper); }
.psn-news__img { width: 56px !important; height: 56px !important; flex: none; object-fit: cover; border-radius: 9px; background: var(--psn-sky); }
.psn-news__img--ph { display: grid; place-items: center; color: var(--psn-navy); }
.psn-news__img--ph .psn-ico { width: 22px; height: 22px; opacity: .6; }
.psn-news__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.psn-news__title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--psn-navy) !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.psn-news__title::after { content: ""; position: absolute; inset: 0; border-radius: var(--psn-radius-sm); } /* cała karta klikalna */
.psn-news__item:hover .psn-news__title { text-decoration: underline; text-decoration-color: var(--psn-gold); text-underline-offset: 3px; }
.psn-news__date { font-size: 12.5px; color: var(--psn-muted); }

/* ---------- Sekretariat ---------- */
.psn-contact__list { display: grid; gap: 10px; margin: 0 0 14px !important; }
.psn-contact__list > div { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; align-items: start; }
.psn-contact__list .psn-ico { grid-row: span 2; width: 18px; height: 18px; margin-top: 2px; color: var(--psn-gold-ink); }
.psn-contact__list dt { font-size: 12px; color: var(--psn-muted); line-height: 1.3; font-weight: 400; }
.psn-contact__list dd { margin: 0 !important; font-size: 14.5px; font-weight: 600; color: var(--psn-navy); line-height: 1.4; }
.psn-contact__list dd a { color: var(--psn-navy) !important; overflow-wrap: anywhere; }
.psn-contact__list dd a:hover { text-decoration: underline; text-decoration-color: var(--psn-gold); text-underline-offset: 3px; }
.psn-contact__list address { font-style: normal; }
.psn-contact__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.psn-btn--wide { grid-column: 1 / -1; }
.psn-contact__actions .psn-btn { min-width: 0; padding-left: 10px; padding-right: 10px; }
/* Wąska kolumna (np. prawa kolumna 250 px): przyciski jeden pod drugim, pełna szerokość */
@container (max-width: 300px) {
	.psn-contact__actions { grid-template-columns: minmax(0, 1fr); }
	.psn-contact__list dd { font-size: 14px; }
}

/* ---------- Lista aktualności [pijarzy_aktualnosci] ---------- */
.psn-feed { gap: 18px; font-size: 15.5px; }
.psn-post {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
	background: var(--psn-card); border: 1px solid var(--psn-line); border-radius: var(--psn-radius);
	box-shadow: var(--psn-shadow); overflow: hidden;
	transition: transform .2s var(--psn-ease), box-shadow .2s var(--psn-ease);
}
.psn-post:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(24, 45, 69, .05), 0 14px 30px -18px rgba(24, 45, 69, .35); }
.psn-post__media { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--psn-sky); overflow: hidden; }
.psn .psn-card-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: 50% 35%; transition: transform .5s var(--psn-ease); }
.psn-post:hover .psn-card-img { transform: scale(1.03); }
.psn-card-img--ph { display: grid; place-items: center; color: var(--psn-navy); }
.psn .psn-card-img--ph svg.psn-ico { width: 40px; height: 40px; opacity: .4; }
/* Karty w wierszu: zdjęcie wypełnia całą wysokość karty, bez pustych pasów. */
.psn-post:not(.psn-post--featured) .psn-post__media { aspect-ratio: auto; min-height: 180px; height: 100%; }
.psn-post__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; min-width: 0; }
.psn-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--psn-muted); }
.psn-chip { position: relative; z-index: 2; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--psn-sky); color: var(--psn-navy) !important; }
.psn-chip:hover { background: var(--psn-navy); color: #fff !important; }
.psn-post__title { font-family: var(--psn-font-display); font-size: 19px !important; font-weight: 700 !important; line-height: 1.3 !important; padding: 0 !important; color: var(--psn-navy); text-wrap: balance; }
.psn-post__title a { color: var(--psn-navy) !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.psn-post__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* cała karta klikalna */
.psn-post:hover .psn-post__title a { text-decoration: underline; text-decoration-color: var(--psn-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.psn-post__title a:focus-visible { box-shadow: none; outline: none; }
.psn-post:focus-within { box-shadow: var(--psn-focus); }
.psn-post__excerpt { font-size: 14.5px; line-height: 1.55; color: var(--psn-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.psn-post__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--psn-gold-ink) !important; }
.psn-post__more .psn-ico { width: 16px; height: 16px; transition: transform .2s var(--psn-ease); }
.psn-post:hover .psn-post__more .psn-ico { transform: translateX(3px); }

/* Wyróżniony (najnowszy) */
.psn-post--featured { grid-template-columns: minmax(0, 1fr); }
.psn-post--featured .psn-post__media { aspect-ratio: 16 / 9; }
.psn-post--featured .psn-post__body { padding: 18px 22px 22px; }
.psn-post--featured .psn-post__title { font-size: 25px !important; }
.psn-post--featured .psn-post__excerpt { -webkit-line-clamp: 4; font-size: 15.5px; }

/* Wąska kolumna lub telefon: zdjęcie nad tekstem */
@container (max-width: 520px) {
	.psn-post { grid-template-columns: minmax(0, 1fr); }
	.psn-post .psn-post__media, .psn-post:not(.psn-post--featured) .psn-post__media { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
	.psn-post--featured .psn-post__title { font-size: 21px !important; }
}

/* Stronicowanie */
.psn-pager { margin-top: 22px; }
.psn-pager ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.psn-pager .page-numbers { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--psn-navy) !important; background: #fff; box-shadow: inset 0 0 0 1px var(--psn-line); }
.psn-pager a:hover { background: var(--psn-sky); }
.psn-pager .current { background: var(--psn-navy); color: #fff !important; box-shadow: none; }
.psn-pager .dots { background: transparent; box-shadow: none; }

/* ---------- Darowizna (karta w prawej kolumnie) ---------- */
.psn-don { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 18px; background: linear-gradient(180deg, #fbf8f1 0%, #fff 70%); border-color: #eadfc6; }
.psn-don::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(195, 164, 101, .35); box-shadow: 0 0 0 14px rgba(195, 164, 101, .07); pointer-events: none; }
.psn-don__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--psn-navy); color: var(--psn-gold); }
.psn-don__ico .psn-ico { width: 22px; height: 22px; }
.psn-don__title { font-family: var(--psn-font-display); font-size: 19px !important; font-weight: 700 !important; line-height: 1.25 !important; color: var(--psn-navy) !important; padding: 0 !important; }
.psn-don__text { font-size: 14px; color: var(--psn-ink); line-height: 1.5; }
.psn-btn--block { width: 100%; margin-top: 4px; }
.psn-btn--block .psn-ico { transition: transform .2s var(--psn-ease); }
.psn-btn--block:hover .psn-ico { transform: translateX(3px); }

/* ---------- Polecane strony [pijarzy_polecane] ---------- */
.psn-links-card .psn-eyebrow { margin-bottom: 8px !important; }
.psn-ext { display: grid; gap: 2px; }
.psn-ext a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; margin: 0 -10px; border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--psn-navy) !important; transition: background-color .18s; }
.psn-ext a:hover { background: var(--psn-sky); }
.psn-ext__ico { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--psn-sky); color: var(--psn-navy); }
.psn-ext__ico .psn-ico { width: 16px !important; height: 16px !important; }
.psn-ext span.psn-ext__label { flex: 1; min-width: 0; }
.psn-ext .psn-ico--ext { width: 14px; height: 14px; opacity: .5; }

/* ---------- Odznaczenia / grafiki prawej kolumny [pijarzy_odznaczenia] ---------- */
.psn-badges { gap: 18px; align-items: center; }
.psn-badges__item { margin: 0 auto; width: 100%; max-width: 190px; aspect-ratio: 1 / 1; overflow: hidden; display: grid; place-items: center; }
.psn .psn-badges__item .psn-badge-img { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.psn .psn-badges__item--trim .psn-badge-img { transform: scale(1.4); }
.psn .psn-badge-img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto; }
.psn-badges__link { display: block; border-radius: var(--psn-radius-sm); transition: transform .2s var(--psn-ease); }
.psn-badges__link:hover { transform: translateY(-2px); }
.psn-badges__link .psn-badge-img { max-width: 240px; }

/* ---------- Podgląd układu [pijarzy_podglad_ukladu] ---------- */
.psn-preview { padding: 0 16px; box-sizing: border-box; }
.psn-preview__note { max-width: 1200px; margin: 0 auto 16px !important; padding: 10px 14px !important; border-radius: 10px; background: #fdf3dc; color: #6b4a00; font-size: 14px; }
.psn-preview__grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr) 250px; gap: 28px; align-items: start; }
.psn-preview__right { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1100px) { .psn-preview__grid { grid-template-columns: 260px minmax(0, 1fr); } .psn-preview__right { grid-column: 2; } }
@media (max-width: 980px) { .psn-preview__grid { grid-template-columns: minmax(0, 1fr); } .psn-preview__right { grid-column: auto; } }

/* ---------- Obserwuj nas [pijarzy_social] ---------- */
.psn-social .psn-eyebrow { margin-bottom: 8px !important; }
.psn-social__link { display: flex; align-items: center; gap: 12px; padding: 10px; margin: 0 -6px; border-radius: 12px; color: var(--psn-navy) !important; transition: background-color .18s; }
.psn-social__link:hover { background: var(--psn-sky); }
.psn-social__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--psn-navy); color: var(--psn-gold); }
.psn-social__ico .psn-ico { width: 20px; height: 20px; }
.psn-social__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.psn-social__text strong { font-size: 15px; }
.psn-social__text span { font-size: 12.5px; color: var(--psn-muted); }
.psn-social .psn-ico--ext { width: 14px; height: 14px; opacity: .5; margin-left: auto; }

/* ---------- Informacje prawne, cookies, osadzenia po kliknięciu ---------- */
.psn-legal { background: var(--psn-navy); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.psn-legal ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.psn-legal li { margin: 0; padding: 0; }
.psn-legal a { color: #e6ecf2 !important; font-size: 13.5px; text-decoration: underline; text-decoration-color: rgba(195, 164, 101, .7); text-underline-offset: 3px; }
.psn-legal a:hover { color: #fff !important; }
.psn-cookie { position: fixed; z-index: 99998; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--psn-navy); color: #e6ecf2; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); font-size: 14px; line-height: 1.45; }
.psn-cookie[hidden] { display: none !important; }
.psn-cookie p { margin: 0 !important; padding: 0 !important; color: inherit; flex: 1; }
.psn-cookie a { color: var(--psn-gold) !important; text-decoration: underline; }
.psn-cookie__ok { flex: none; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--psn-gold); color: var(--psn-navy); font: inherit; font-weight: 700; cursor: pointer; }
.psn-cookie :focus-visible, .psn-legal :focus-visible { outline: 2px solid var(--psn-gold); outline-offset: 2px; }
@media (max-width: 980px) { body.psn-has-dock .psn-cookie { bottom: calc(78px + env(safe-area-inset-bottom)); } }
@media (max-width: 480px) { .psn-cookie { flex-direction: column; align-items: stretch; } }
.psn-consent-embed { margin: 1.4em 0; padding: 18px; border-radius: 12px; background: var(--psn-sky); color: var(--psn-ink); }
.psn-consent-embed p { margin: 0 0 12px !important; }
.psn-consent-embed__btn { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--psn-navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Szuflada mobilna (aktywowana przez JS, gdy istnieje pasek) ---------- */
.psn-dock, .psn-backdrop { display: none; }

@media (max-width: 980px) {
	.psn.psn--drawer {
		position: fixed; z-index: 100001;
		top: 0; bottom: 0; left: 0;
		width: min(92vw, 420px);
		padding: 0 14px 24px;
		overflow-y: auto; overscroll-behavior: contain;
		background: var(--psn-paper);
		box-shadow: 0 0 60px rgba(24, 45, 69, .35);
		transform: translateX(-102%);
		visibility: hidden;
		transition: transform .32s var(--psn-ease), visibility 0s linear .32s;
	}
	/* Pasek administratora WordPress (tylko zalogowani). */
	.admin-bar .psn.psn--drawer { top: 32px; }
	.psn.psn--drawer.is-drawer-open { transform: none; visibility: visible; transition: transform .32s var(--psn-ease), visibility 0s; }
	.psn--drawer .psn__drawer-head {
		display: flex; align-items: center; justify-content: space-between;
		position: sticky; top: 0; z-index: 2;
		margin: 0 -14px; padding: 14px 14px 12px;
		background: rgba(250, 250, 248, .94);
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
		border-bottom: 1px solid var(--psn-line);
	}
	.psn__drawer-title { font-weight: 700; font-size: 17px; color: var(--psn-navy); }
	.psn__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--psn-sky); color: var(--psn-navy); cursor: pointer; }
	.psn-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 100000; background: rgba(15, 28, 44, .45); opacity: 0; transition: opacity .3s; }
	.psn-backdrop.is-visible { opacity: 1; }

	.psn-dock {
		display: block;
		position: fixed; z-index: 99999; left: 0; right: 0; bottom: 0;
		padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
		border-top: 1px solid var(--psn-line);
		box-shadow: 0 -8px 24px -18px rgba(24, 45, 69, .5);
	}
	.psn-dock ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; list-style: none; margin: 0 auto; padding: 0; max-width: 560px; }
	.psn-dock li { margin: 0; padding: 0; }
	.psn-dock li::before { content: none !important; }
	.psn-dock__item {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		width: 100%; min-height: 54px; padding: 4px;
		font: inherit; font-size: 11.5px; font-weight: 600; line-height: 1.1; text-decoration: none;
		color: var(--psn-navy) !important; background: transparent; border: 0; border-radius: 12px; cursor: pointer;
	}
	.psn-dock__item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
	.psn-dock__item:active { background: var(--psn-sky); }
	.psn-dock__menu { background: var(--psn-navy); color: #fff !important; }
	.psn-dock__menu svg { color: var(--psn-gold); }
	body.psn-has-dock { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	body.psn-lock { overflow: hidden; }
}

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

@media (prefers-reduced-motion: reduce) {
	.psn *, .psn, .psn-backdrop { transition-duration: 0s !important; transition-delay: 0s !important; }
}
@media (forced-colors: active) {
	.psn-card, .psn-tile, .psn-group__btn, .psn-link.is-current { border: 1px solid CanvasText; }
}
@media print {
	.psn, .psn-dock, .psn-backdrop { display: none !important; }
}

.psn-ade { font-weight: 400 !important; font-size: 13px; line-height: 1.5; }
.psn-ade__nr { display: block; font-weight: 600; font-size: 12.5px; word-break: normal; overflow-wrap: break-word; margin-bottom: 4px; }

/* Mobile: długie linki (np. nazwy plików PDF) i miniatury galerii nie mogą rozpychać strony */
.et_pb_post_content a, .et_pb_text_inner a, .entry-content a { overflow-wrap: anywhere; }
.bwg-container .bwg-item1, .bwg-container .bwg-item0 { overflow: hidden; }

/* Strony (nie wpisy) na tablecie i telefonie: marginesy boczne treści, tytułu i okruszków */
@media (max-width: 980px) {
	body:not(.psn-article) .et-l--body .et_pb_row {
		width: auto !important;
		max-width: 720px !important;
		padding-left: max(18px, env(safe-area-inset-left)) !important;
		padding-right: max(18px, env(safe-area-inset-right)) !important;
		box-sizing: border-box;
	}
	body:not(.psn-article) .et-l--body .et_pb_post_title h1,
	body:not(.psn-article) .et-l--body .et_pb_post_title .entry-title { font-size: clamp(22px, 6vw, 28px) !important; line-height: 1.25 !important; }
	body:not(.psn-article) .et-l--body .et_pb_code_0_tb_body,
	body:not(.psn-article) .et-l--body .et_pb_code_0_tb_body * { text-align: left !important; font-size: 13px !important; line-height: 1.5 !important; }
	body:not(.psn-article) .et-l--body .et_pb_post_content { padding-top: 8px; }
	body:not(.psn-article) .et-l--body .et_pb_post_content p,
	body:not(.psn-article) .et-l--body .et_pb_post_content li { text-align: left !important; }
}

/* Telefon i tablet: we wpisach i na podstronach bez prawej kolumny (odznaki, rekrutacja, polecane strony).
   Kontakt, Librus i menu są w dolnym pasku. Strona główna bez zmian. */
@media (max-width: 980px) {
	body.single .et-l--body .et_pb_column:has(> .psn-preview__right),
	body.page:not(.home) .et-l--body .et_pb_column:has(> .psn-preview__right),
	body.single .et-l--body .psn-preview__right,
	body.page:not(.home) .et-l--body .psn-preview__right { display: none !important; }
}

/* Panel „Kontakt” wysuwany od dołu (telefon) */
.psn-sheet, .psn-sheet-backdrop { display: none; }
@media (max-width: 980px) {
	.psn-sheet-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 100001; background: rgba(15, 28, 44, .5); opacity: 0; transition: opacity .25s; }
	.psn-sheet-backdrop.is-visible { opacity: 1; }
	.psn-sheet:not([hidden]) { display: block; position: fixed; z-index: 100002; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
		background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 40px -20px rgba(15, 28, 44, .6);
		padding: 0 14px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .3s var(--psn-ease, ease); }
	.psn-sheet.is-open { transform: none; }
	.psn-sheet__head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; align-items: center; padding: 10px 0 6px; background: #fff; }
	.psn-sheet__grip { width: 44px; height: 5px; border-radius: 3px; background: #d5dbe3; }
	.psn-sheet__close { position: absolute; right: 0; top: 6px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--psn-sky, #eef3f8); color: var(--psn-navy, #182d45); cursor: pointer; }
	.psn-sheet__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
	.psn-sheet__body .psn-card, .psn-sheet__body .psn { box-shadow: none !important; border: 0 !important; margin: 0 !important; padding-left: 4px !important; padding-right: 4px !important; }
	.psn-sheet__more { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 4px 0; padding: 12px; border-radius: 12px; color: var(--psn-navy, #182d45) !important; font-weight: 600; text-decoration: none; }
	.psn-sheet__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
}

/* ---------- Strona Kontakt [pijarzy_kontakt] ---------- */
.psn-kontakt { max-width: 760px; margin: 0 auto; text-align: left; }
.psn-kontakt__hero { position: relative; overflow: hidden; padding: 32px 32px 28px; border-radius: 18px; background: var(--psn-navy); color: #c9d3de; box-shadow: var(--psn-shadow); }
.psn-kontakt__hero::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, transparent 0 55%, rgba(195,164,101,.25) 55.5% 56.5%, transparent 57% 72%, rgba(195,164,101,.15) 72.5% 73.3%, transparent 74%); }
.psn-kontakt__eyebrow { display: inline-block; margin: 0 0 12px !important; padding: 4px 12px !important; border-radius: 999px; background: rgba(195,164,101,.16); color: #e3c98f; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.psn-kontakt__name { margin: 0 0 10px !important; padding: 0 !important; color: #fff !important; font-size: clamp(20px, 2.4vw, 26px) !important; line-height: 1.3 !important; font-weight: 700; }
.psn-kontakt__name span { display: block; margin-top: 4px; font-size: .72em; font-weight: 500; color: #c9d3de; }
.psn-kontakt__addr { display: flex; align-items: center; gap: 8px; margin: 0 0 20px !important; padding: 0 !important; color: #e3c98f; font-weight: 600; }
.psn-kontakt__addr svg { width: 18px; height: 18px; flex: none; }
.psn-kontakt__cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.psn-kontakt__cta .psn-btn { width: auto; flex: 0 1 auto; }
.psn-kontakt__cta .psn-btn--navy { background: var(--psn-gold) !important; color: var(--psn-navy) !important; }
.psn-kontakt__cta .psn-btn--ghost { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.35) !important; }
.psn-kontakt__cta .psn-btn--ghost:hover { border-color: #e3c98f !important; color: #e3c98f !important; }
.psn-kontakt__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.psn-kontakt__card { padding: 22px 22px 18px; border: 1px solid var(--psn-line); border-radius: 16px; background: #fff; box-shadow: var(--psn-shadow); }
.psn-kontakt__card--ade { grid-column: 1 / -1; background: var(--psn-paper); }
.psn-kontakt__card h3 { margin: 0 0 14px !important; padding: 0 !important; font-size: 12px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--psn-gold-ink) !important; }
.psn-kontakt__card ul { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 14px; }
.psn-kontakt__card--ade ul { grid-template-columns: 1fr 1fr; }
.psn-kontakt__card li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 0 !important; }
.psn-kontakt__card li::before { content: none !important; }
.psn-kontakt__card li > svg { flex: none; box-sizing: content-box !important; width: 20px; height: 20px; padding: 8px; border-radius: 10px; background: var(--psn-sky); color: var(--psn-navy); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.psn-kontakt__card li > span { display: flex; flex-direction: column; color: var(--psn-navy); font-size: 16px; line-height: 1.4; font-weight: 600; min-width: 0; }
.psn-kontakt__card small { font-size: 12.5px; font-weight: 400; color: var(--psn-muted); margin-bottom: 2px; }
.psn-kontakt__card a { color: var(--psn-navy) !important; text-decoration: none; overflow-wrap: anywhere; }
.psn-kontakt__card a:hover { color: var(--psn-gold-ink) !important; text-decoration: underline; }
.psn-kontakt__card code { font-family: inherit; font-size: 14px; font-weight: 700; color: var(--psn-navy); background: none; padding: 0; overflow-wrap: anywhere; letter-spacing: .02em; }
.psn-kontakt__note { margin: -6px 0 14px !important; padding: 0 !important; font-size: 13.5px; color: var(--psn-muted); }
@media (max-width: 640px) {
	.psn-kontakt__hero { padding: 24px 20px; }
	.psn-kontakt__grid, .psn-kontakt__card--ade ul { grid-template-columns: 1fr; }
	.psn-kontakt__cta .psn-btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Podstrony: treść jako czytelna karta (bez zmian w treści stron) ---------- */
body.page:not(.home) .et-l--body .et_pb_post_content:not(:has(.psn-kontakt)):not(:empty) {
	background: #fff; border: 1px solid var(--psn-line); border-radius: 18px; box-shadow: var(--psn-shadow);
	padding: 32px 36px; color: var(--psn-ink); font-size: 16px; line-height: 1.7;
}
body.page:not(.home) .et-l--body .et_pb_post_content:not(:has(.psn-kontakt)) p,
body.page:not(.home) .et-l--body .et_pb_post_content:not(:has(.psn-kontakt)) li { text-align: left !important; color: var(--psn-ink); }
body.page:not(.home) .et-l--body .et_pb_post_content p { margin: 0 0 14px; padding: 0; }
/* Akapit tuż przed listą = nagłówek sekcji */
body.page:not(.home) .et-l--body .et_pb_post_content p:has(+ ol, + ul) { font-size: 18px; font-weight: 700; color: var(--psn-navy); margin-bottom: 12px; }
body.page:not(.home) .et-l--body .et_pb_post_content h2,
body.page:not(.home) .et-l--body .et_pb_post_content h3,
body.page:not(.home) .et-l--body .et_pb_post_content h4 { color: var(--psn-navy); font-weight: 700; line-height: 1.3; margin: 1.4em 0 .6em; padding: 0; }
body.page:not(.home) .et-l--body .et_pb_post_content strong { color: var(--psn-navy); }
body.page:not(.home) .et-l--body .et_pb_post_content a:not(.psn-btn) { color: var(--psn-navy); text-decoration: underline; text-decoration-color: var(--psn-gold); text-underline-offset: 3px; }
body.page:not(.home) .et-l--body .et_pb_post_content a:not(.psn-btn):hover { color: var(--psn-gold-ink); }
/* Listy numerowane: numery w kółkach, każda pozycja jako wiersz */
body.page:not(.home) .et-l--body .et_pb_post_content ol { list-style: none; counter-reset: psn-ol; margin: 0 0 24px; padding: 0 !important; display: grid; gap: 8px; }
body.page:not(.home) .et-l--body .et_pb_post_content ol > li { counter-increment: psn-ol; position: relative; margin: 0; padding: 10px 14px 10px 54px !important; background: var(--psn-paper); border: 1px solid var(--psn-line); border-radius: 12px; }
body.page:not(.home) .et-l--body .et_pb_post_content ol > li::before { content: counter(psn-ol); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--psn-navy); color: #e3c98f; font-size: 13px; font-weight: 700; }
/* Listy punktowane: złote kropki */
body.page:not(.home) .et-l--body .et_pb_post_content ul:not([class*="psn"]) { list-style: none; margin: 0 0 20px; padding: 0 !important; }
body.page:not(.home) .et-l--body .et_pb_post_content ul:not([class*="psn"]) > li { position: relative; margin: 0 0 8px; padding: 0 0 0 22px !important; }
body.page:not(.home) .et-l--body .et_pb_post_content ul:not([class*="psn"]) > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--psn-gold); }
body.page:not(.home) .et-l--body .et_pb_post_content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
body.page:not(.home) .et-l--body .et_pb_post_content th, body.page:not(.home) .et-l--body .et_pb_post_content td { border: 1px solid var(--psn-line); padding: 8px 10px; text-align: left; }
body.page:not(.home) .et-l--body .et_pb_post_content th { background: var(--psn-sky); color: var(--psn-navy); }
body.page:not(.home) .et-l--body .et_pb_post_content img { border-radius: 12px; max-width: 100%; height: auto; }
@media (max-width: 640px) {
	body.page:not(.home) .et-l--body .et_pb_post_content:not(:has(.psn-kontakt)):not(:empty) { padding: 20px 18px; border-radius: 14px; }
}
/* Strony zbudowane kreatorem Divi wewnątrz karty – bez podwójnych odstępów */
body.page:not(.home) .et-l--body .et_pb_post_content .et_pb_section { padding: 0 !important; background: none !important; }
body.page:not(.home) .et-l--body .et_pb_post_content .et_pb_row { padding: 0 !important; width: 100% !important; max-width: none !important; }
body.page:not(.home) .et-l--body .et_pb_post_content .et_pb_module:last-child { margin-bottom: 0 !important; }

/* Telefon i tablet: mniej pustego miejsca nad treścią (tytuł, okruszki, pusta kolumna po przeniesieniu menu do szuflady) */
@media (max-width: 980px) {
	.et-l--body .et_pb_section:has(.et_pb_post_title) { padding: 0 !important; }
	.et-l--body .et_pb_section:has(.et_pb_post_title) .et_pb_row { padding-top: 20px !important; padding-bottom: 16px !important; }
	.et-l--body .et_pb_section:has(.et_pb_code_0_tb_body):not(:has(.et_pb_post_content)) .et_pb_row { padding-top: 8px !important; padding-bottom: 8px !important; }
	.et-l--body .et_pb_section:has(.et_pb_post_content) { padding-top: 16px !important; }
	.et-l--body .et_pb_section:has(.et_pb_post_content) > .et_pb_row { padding-top: 0 !important; }
	.et-l--body .et_pb_column:not(:has(*)) { display: none !important; }
}
