/*
Theme Name: NSZZP Małopolska
Theme URI: https://nszzp-malopolska.pl/
Author: Onfocus
Author URI: https://onfocus.pl/
Description: Samodzielny, lekki motyw dla serwisu NSZZP Małopolska. Bez motywu nadrzędnego i zewnętrznych bibliotek interfejsu.
Version: 1.3.8
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: nszzp
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/*
 * Oswald i Roboto są osadzone lokalnie. Każdy krój ma osobne, małe
 * podzbiory Latin oraz Latin Extended, więc polskie znaki nie wymagają
 * połączenia z Google Fonts.
 */
@font-face {
	font-display: swap;
	font-family: "Oswald";
	font-style: normal;
	font-weight: 300 700;
	src: url("assets/fonts/oswald-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-display: swap;
	font-family: "Oswald";
	font-style: normal;
	font-weight: 300 700;
	src: url("assets/fonts/oswald-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-display: swap;
	font-family: "Roboto";
	font-style: normal;
	font-weight: 300 700;
	src: url("assets/fonts/roboto-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-display: swap;
	font-family: "Roboto";
	font-style: normal;
	font-weight: 300 700;
	src: url("assets/fonts/roboto-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-display: swap;
	font-family: "Roboto";
	font-style: italic;
	font-weight: 400;
	src: url("assets/fonts/roboto-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-display: swap;
	font-family: "Roboto";
	font-style: italic;
	font-weight: 400;
	src: url("assets/fonts/roboto-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--nszzp-blue: #1e73be;
	--nszzp-blue-dark: #0e4f88;
	--nszzp-red: red;
	--nszzp-ink: #181c21;
	--nszzp-text: #34393e;
	--nszzp-muted: #6b737a;
	--nszzp-line: #dde2e5;
	--nszzp-mist: #f3f5f6;
	--nszzp-paper: #fff;
	--nszzp-tools: 52px;
	--nszzp-rail: 282px;
	--nszzp-content: 1220px;
	--nszzp-font: "Roboto", Arial, sans-serif;
	--nszzp-condensed: "Oswald", "Arial Narrow", Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--nszzp-paper);
	color: var(--nszzp-text);
	font-family: var(--nszzp-font);
	font-size: 17px;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

body.nav-open,
body.has-modal-open {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--nszzp-blue);
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}

a:hover {
	color: var(--nszzp-blue-dark);
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
[type="button"],
[type="submit"] {
	-webkit-user-select: none;
	user-select: none;
}

:focus-visible {
	outline: 3px solid #50a4d2;
	outline-offset: 3px;
}

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

.screen-reader-text:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: #fff;
	color: #111;
	font-weight: 700;
}

.site-header {
	position: fixed;
	z-index: 100;
	inset: 0 auto 0 0;
	width: var(--nszzp-rail);
	height: 100vh;
	height: 100dvh;
	border: 0;
	background: transparent;
}

.admin-bar .site-header {
	top: 32px;
	height: calc(100dvh - 32px);
}

.site-header__inner {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--nszzp-tools);
	display: flex;
	flex-direction: column;
	width: calc(var(--nszzp-rail) - var(--nszzp-tools));
	margin-left: 0;
	min-height: 0;
	border-right: 1px solid var(--nszzp-line);
	background: #f5f6f7;
	transition: left .22s ease;
}

.mobile-header {
	display: none;
}

.site-brand {
	flex: 0 0 auto;
	padding: 25px 28px 15px;
}

.site-brand__logo {
	display: block;
	max-width: 187px;
	margin: 0 0 5px;
	text-align: left;
}

.site-brand__logo img {
	display: block;
	width: auto;
	max-height: 180px;
	object-fit: contain;
}

.site-brand__title {
	margin: 0;
	color: var(--nszzp-ink);
	font-family: var(--nszzp-condensed);
	font-size: 19px;
	font-stretch: condensed;
	font-weight: 600;
	letter-spacing: .05em;
	line-height: 1.05;
	text-transform: uppercase;
}

.site-brand__title a {
	color: inherit;
	text-decoration: none;
}

.site-brand__tagline {
	margin: 8px auto 0;
	color: #555d63;
	font-family: var(--nszzp-condensed);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .075em;
	line-height: 1.35;
	text-transform: uppercase;
}

.primary-navigation {
	min-height: 0;
	padding: 6px 0 10px 14px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-gutter: stable;
}

.primary-menu,
.primary-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	display: block;
	padding: 9px 2px 9px 7px;
	color: #15191d;
	font-family: var(--nszzp-condensed);
	font-size: 15px;
	font-stretch: condensed;
	font-weight: 400;
	letter-spacing: .055em;
	line-height: 1.25;
	text-decoration: none;
	text-transform: uppercase;
	transition: color .18s ease;
}

.menu-item-has-children a {
	padding-right: 22px;
}

.primary-menu a:hover,
.primary-menu .current-menu-item>a,
.primary-menu .current-menu-ancestor>a {
	color: #1e73be;
}

.primary-menu .menu-highlight>a {
	color: var(--nszzp-red);
}

@media (prefers-reduced-motion: no-preference) {
	.primary-menu .menu-highlight>a {
		animation: nszzp-menu-highlight 3s step-end infinite;
	}
}

@keyframes nszzp-menu-highlight {

	0%,
	49.999% {
		color: #000;
	}

	50%,
	100% {
		color: var(--nszzp-red);
	}
}

@media (prefers-reduced-motion: reduce) {
	.primary-menu .menu-highlight>a {
		animation: none;
		color: var(--nszzp-red);
	}
}

.submenu-toggle {
	position: absolute;
	top: 4px;
	right: 0;
	display: grid;
	place-items: center;
	width: 20px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #70787e;
	cursor: pointer;
}

.submenu-toggle::before,
.submenu-toggle::after {
	position: absolute;
	width: 10px;
	height: 1px;
	background: currentColor;
	content: "";
}

.submenu-toggle::after {
	transform: rotate(90deg);
	transition: transform .18s ease;
}

.menu-item-has-children.is-submenu-open>.submenu-toggle::after {
	transform: rotate(0);
}

.primary-menu .sub-menu {
	display: none;
	padding: 1px 0 9px 11px;
}

.primary-menu .is-submenu-open>.sub-menu,
.primary-menu .current-menu-ancestor>.sub-menu {
	display: block;
}

.primary-menu .sub-menu a {
	padding: 6px 28px 6px 7px;
	font-size: 13px;
	letter-spacing: .055em;
}

.header-tools {
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: var(--nszzp-tools);
	border-right: 1px solid var(--nszzp-line);
	background: #fff;
}

.header-tool {
	display: grid;
	place-items: center;
	flex: 0 0 var(--nszzp-tools);
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: #747c82;
	cursor: pointer;
}

.header-tools__spacer {
	flex: 1 1 auto;
}

.header-tool:hover {
	background: #fff;
	color: var(--nszzp-blue);
}

.header-tool svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

.header-tool svg path:first-child:last-child {
	fill: currentColor;
	stroke: none;
}

.rail-menu-toggle {
	color: #22272b;
}

.rail-menu-toggle__lines {
	display: grid;
	gap: 6px;
	width: 28px;
}

.rail-menu-toggle__lines span {
	display: block;
	width: 100%;
	height: 1px;
	background: currentColor;
}

.rail-nav-collapsed .site-header {
	width: var(--nszzp-tools);
}

.rail-nav-collapsed .site-header__inner {
	left: calc(var(--nszzp-tools) + var(--nszzp-tools) - var(--nszzp-rail));
	pointer-events: none;
}

.rail-nav-collapsed .site-canvas {
	margin-left: var(--nszzp-tools);
}

.site-canvas {
	min-height: 100vh;
	margin-left: var(--nszzp-rail);
	transition: margin-left .22s ease;
}

.site-main {
	min-height: calc(100vh - 72px);
}

.home-feed {
	padding-top: 30px;
	padding-bottom: 30px;
	padding-left: clamp(16px, 5vw, 46px);
	padding-right: clamp(16px, 5vw, 46px);
}

.post-grid {
	--nszzp-masonry-row: 1px;
	--nszzp-masonry-gap: 52px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: clamp(26px, 3.2vw, 54px) clamp(18px, 2.4vw, 38px);
}

.post-grid.is-masonry-ready {
	grid-auto-rows: var(--nszzp-masonry-row);
	row-gap: 0;
}

.post-card {
	min-width: 0;
	margin: 0;
	background: #fff;
}

.post-card__media {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	background: var(--nszzp-mist);
}

.post-card__image {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .35s ease, filter .35s ease;
}

.post-card__media:hover .post-card__image {
	filter: saturate(1.03) contrast(1.02);
	transform: scale(1.018);
}

.post-card__body {
	padding-top: 18px;
}

.entry-category,
.archive-kicker {
	display: inline-block;
	color: #505050;
	color: #505050;
	padding: 2px 0;
	margin-right: 10px;
	letter-spacing: 1px;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
}

.entry-category {
	border-bottom: 1px solid #cacaca;
}

.post-card__title {
	margin: 15px 0 8px;
	color: #1e73be;
	font-family: var(--nszzp-condensed);
	font-size: clamp(24px, 2.5vw, 34px);
	font-stretch: condensed;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.33333;
	text-transform: uppercase;
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

.post-card__title a:hover {
	color: #1563a8;
}

.entry-date,
.entry-meta {
	color: #111;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
}

.post-card__excerpt {
	margin-top: 17px;
	color: #454545;
	font-family: var(--nszzp-font);
	font-size: 15px;
	line-height: 1.6;
}

.post-card__excerpt p {
	margin: 0;
}

.page-frame {
	width: min(100%, calc(var(--nszzp-content) + 64px));
	margin-inline: auto;
	padding: clamp(24px, 4vw, 62px) clamp(20px, 4vw, 58px) 72px;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: clamp(32px, 5vw, 70px);
	color: #8a9094;
	font-size: 12px;
	line-height: 1.4;
}

.breadcrumbs a {
	color: var(--nszzp-blue);
	text-decoration: none;
}

.breadcrumbs span:last-child {
	max-width: 52ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/*
 * Okruszki zwykłych stron pozostają w drzewie dostępności, ale nie zajmują
 * miejsca w układzie zgodnym z poprzednim motywem.
 */
.page-frame--page>.breadcrumbs,
.page-frame--map>.breadcrumbs {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.archive-header {
	max-width: 900px;
	margin-bottom: 44px;
}

.archive-kicker {
	margin: 0 0 12px;
}

.archive-title,
.entry-title {
	margin: 0;
	color: #1e73be;
	font-family: var(--nszzp-condensed);
	font-stretch: condensed;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.33333;
	text-transform: uppercase;
}

.archive-title {
	font-size: clamp(48px, 6.4vw, 88px);
}

.entry-title {
	margin-top: 18px;
	font-size: clamp(30px, 4vw, 46px);
}

.archive-description {
	max-width: 65ch;
	margin-top: 20px;
	color: var(--nszzp-muted);
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
	align-items: start;
	gap: clamp(20px, 2vw, 40px);
}

.content-primary {
	min-width: 0;
}

.entry-header {
	margin-bottom: 34px;
}

.entry-header--single {
	margin-bottom: clamp(28px, 3vw, 42px);
	padding-bottom: clamp(22px, 2.4vw, 34px);
	border-bottom: 1px solid var(--nszzp-line);
}

.entry-header--page {
	margin-bottom: clamp(28px, 3vw, 42px);
	padding-bottom: clamp(22px, 2.4vw, 34px);
	border-bottom: 1px solid var(--nszzp-line);
}

.entry-header--page .entry-title {
	margin-top: 0;
}

.entry-header--single .entry-title {
	margin-top: 0;
}

.entry-meta {
	margin-top: 20px;
}

.entry-header--single .entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 15px;
	margin-top: 24px;
}

.entry-header--single .entry-meta a {
	color: inherit;
	text-decoration: none;
}

.entry-header--single .entry-meta a:hover {
	color: var(--nszzp-blue);
}

.entry-hero {
	margin: 0 0 clamp(30px, 5vw, 54px);
}

.entry-hero__image {
	display: block;
	width: 100%;
	height: auto;
}

.entry-content {
	color: #30363a;
	font-family: var(--nszzp-font);
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.6;
}

.entry-content>* {
	max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: 1em 0 .65em;
	font-family: var(--nszzp-condensed);
	font-weight: 500;
	line-height: 1.16;
}

.entry-content * h2,
.entry-content * h3,
.entry-content * h4 {
	color: inherit;
}

.entry-content h2 {
	font-size: clamp(28px, 2vw, 36px);
}

.entry-content h3 {
	font-size: clamp(25px, 1.8vw, 34px);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
	margin-block: 0 1.5em;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--nszzp-blue);
	color: #50585e;
	font-style: italic;
}

.entry-content img {
	height: auto;
}

/*
 * WordPress dodaje te klasy również do starszych obrazkowych emoji zapisanych
 * w treści. Zachowujemy ich rozmiar mimo wyłączenia globalnych zasobów emoji.
 */
img.wp-smiley,
img.emoji {
	display: inline !important;
	width: 1em !important;
	height: 1em !important;
	padding: 0 !important;
	margin: 0 .07em !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	vertical-align: -.1em !important;
}

/* Strona „Filmy”: style dokumentu usunięte z treści redakcyjnej. */
.page-id-929 .video-container {
	position: relative;
	max-width: 680px;
	margin: 0 0 22px;
	padding: 15px;
	border-radius: 10px;
	background: #add8e6;
}

.page-id-929 .video-container iframe {
	display: block;
	width: 100%;
	height: auto;
	border: 0;
	aspect-ratio: 16 / 9;
}

.page-id-929 .video-container img {
	position: absolute;
	z-index: 1;
	top: 25px;
	left: 25px;
	width: 100px;
	height: auto;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content figcaption {
	margin-top: 8px;
	color: var(--nszzp-muted);
	font-family: var(--nszzp-font);
	font-size: 13px;
	line-height: 1.45;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--nszzp-font);
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--nszzp-line);
	text-align: left;
}

.entry-content .alignwide {
	width: min(1080px, calc(100vw - var(--nszzp-rail) - 5rem));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: calc(100vw - var(--nszzp-rail));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid var(--nszzp-line);
	color: #171b1f;
	font-family: var(--nszzp-condensed);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .035em;
	text-transform: uppercase;
}

.entry-footer svg {
	width: 17px;
	height: 17px;
	margin-right: 3px;
	fill: none;
	stroke: currentColor;
	stroke-linejoin: round;
	stroke-width: 1.25;
}

.entry-footer a {
	color: inherit;
	text-decoration: none;
}

.entry-footer a:hover {
	color: var(--nszzp-blue);
}

.related-posts {
	margin-top: clamp(34px, 5vw, 60px);
}

.related-posts>h2 {
	margin: 0;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--nszzp-line);
	color: #34383c;
	font-family: var(--nszzp-condensed);
	font-size: clamp(24px, 2.3vw, 30px);
	font-weight: 600;
	line-height: 1.1;
	text-transform: uppercase;
}

.related-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
	margin-top: 28px;
}

.related-card a {
	display: block;
	color: #111;
	text-decoration: none;
}

.related-card a h2,
.related-card a h3,
.related-card a h4 {
	color: #000;
}

.related-card a:hover h2,
.related-card a:hover h3,
.related-card a:hover h4 {
	color: var(--nszzp-blue);
}

.related-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 1.38;
	object-fit: contain;
}

.related-card h3 {
	margin: 12px 0 0;
	font-family: var(--nszzp-font);
	font-size: clamp(16px, 1.45vw, 21px);
	font-weight: 700;
	line-height: 1.18;
}

.related-card a:hover h3 {
	color: var(--nszzp-blue);
}

.post-navigation {
	display: grid;
	gap: 18px;
	margin-top: clamp(34px, 5vw, 58px);
}

.post-navigation__item {
	position: relative;
	display: grid;
	min-height: clamp(150px, 18vw, 230px);
	overflow: hidden;
	background: #252b30;
	color: #fff;
	text-decoration: none;
}

.post-navigation__image,
.post-navigation__shade,
.post-navigation__text {
	grid-area: 1 / 1;
}

.post-navigation__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.post-navigation__shade {
	z-index: 1;
	background: linear-gradient(90deg, rgba(12, 16, 19, .78), rgba(12, 16, 19, .24));
}

.post-navigation__text {
	z-index: 2;
	align-self: center;
	max-width: 80%;
	padding: clamp(22px, 4vw, 42px);
}

.post-navigation__label {
	display: block;
	margin-bottom: 4px;
	font-size: clamp(17px, 1.7vw, 24px);
}

.post-navigation__text strong {
	display: block;
	font-family: var(--nszzp-condensed);
	font-size: clamp(25px, 3.1vw, 42px);
	font-weight: 400;
	line-height: 1.12;
	text-transform: uppercase;
}

.post-navigation__item:hover {
	color: #fff;
}

.post-navigation__item:hover .post-navigation__image {
	transform: scale(1.02);
}

.content-sidebar {
	align-self: stretch;
	min-width: 0;
}

.content-sidebar__inner {
	position: sticky;
	top: min(38px, calc(100dvh - var(--nszzp-sidebar-height, 0px)));
}

.admin-bar .content-sidebar__inner {
	top: min(70px, calc(100dvh - var(--nszzp-sidebar-height, 0px)));
}

.widget {
	margin: 0 0 32px;
	padding: 24px;
	background: var(--nszzp-mist);
	color: #545c62;
	font-size: 14px;
	line-height: 1.55;
	text-align: center;
}

.widget__title,
.widget-title {
	margin: 0 0 18px;
	color: var(--nszzp-ink);
	font-family: var(--nszzp-condensed);
	font-size: 23px;
	font-weight: 500;
	letter-spacing: .025em;
	line-height: 1.1;
	text-transform: uppercase;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li+li {
	margin-top: 8px;
}

.widget img {
	display: block;
	margin: 0 auto;
}

.widget a {
	text-decoration: none;
}

.search-form {
	display: flex;
	width: 100%;
}

.search-form label {
	flex: 1 1 auto;
	min-width: 0;
}

.search-field {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #cbd1d4;
	border-radius: 0;
	background: #fff;
	color: var(--nszzp-ink);
}

.search-submit {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 0 18px;
	border: 0;
	background: var(--nszzp-blue);
	color: #fff;
	font-family: var(--nszzp-condensed);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	cursor: pointer;
}

.search-submit:hover {
	background: var(--nszzp-blue-dark);
}

.navigation.pagination {
	margin-top: 56px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 12px;
	border: 1px solid var(--nszzp-line);
	color: var(--nszzp-text);
	font-family: var(--nszzp-condensed);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--nszzp-blue);
	background: var(--nszzp-blue);
	color: #fff;
}

.empty-state {
	max-width: 760px;
	margin: 8vh auto;
	padding: clamp(30px, 6vw, 72px);
	background: var(--nszzp-mist);
	text-align: center;
}

.empty-state h1 {
	margin: 0 0 16px;
	font-family: var(--nszzp-condensed);
	font-size: clamp(40px, 6vw, 76px);
	line-height: 1;
	text-transform: uppercase;
}

.empty-state .search-form {
	max-width: 570px;
	margin: 30px auto 0;
}

.empty-state__code {
	margin: 0;
	color: var(--nszzp-blue);
	font-family: var(--nszzp-condensed);
	font-size: clamp(80px, 18vw, 190px);
	font-weight: 700;
	line-height: .8;
}

.text-link {
	display: inline-block;
	margin-top: 25px;
	font-weight: 700;
}

.site-footer {
	padding: 28px clamp(20px, 4vw, 58px);
	border-top: 1px solid var(--nszzp-line);
	color: #747c82;
	font-size: 12px;
	text-align: center;
}

.site-footer p {
	margin: 0;
}

.site-search {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(22, 26, 30, .97);
	color: #fff;
}

.site-search[open] {
	display: grid;
	place-items: center;
}

.site-search::backdrop {
	background: rgba(0, 0, 0, .78);
}

.site-search__inner {
	width: min(820px, calc(100vw - 40px));
	padding: 30px;
}

.site-search__eyebrow {
	margin: 0 0 12px;
	color: #a9cce0;
	font-family: var(--nszzp-condensed);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.site-search h2 {
	margin: 0 0 34px;
	color: #fff;
	font-family: var(--nszzp-condensed);
	font-size: clamp(46px, 9vw, 108px);
	line-height: .95;
	text-transform: uppercase;
}

.site-search .search-field {
	height: 60px;
	border: 0;
	font-size: 18px;
}

.site-search .search-submit {
	height: 60px;
	padding-inline: 28px;
}

.site-search__close {
	position: fixed;
	top: 16px;
	right: 18px;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 48px;
	font-weight: 200;
	line-height: 1;
	cursor: pointer;
}

/* Własny lightbox dla zwykłych galerii WordPressa. Onfocus ma osobny komponent. */
.nszzp-lightbox {
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(10, 12, 14, .97);
	color: #fff;
	overflow: hidden;
}

.nszzp-lightbox[open] {
	display: block;
}

.nszzp-lightbox::backdrop {
	background: rgba(0, 0, 0, .9);
}

.nszzp-lightbox__stage {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 68px 84px;
	touch-action: none;
}

.nszzp-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: zoom-in;
	transform-origin: center;
	-webkit-user-drag: none;
	user-select: none;
	will-change: transform;
}

.nszzp-lightbox.is-zoomed .nszzp-lightbox__image {
	cursor: grab;
}

.nszzp-lightbox.is-panning .nszzp-lightbox__image {
	cursor: grabbing;
}

.nszzp-lightbox__status {
	position: fixed;
	z-index: 2;
	top: 15px;
	left: 18px;
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 3px #000;
}

.nszzp-lightbox__button {
	position: fixed;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .36);
	color: #fff;
	cursor: pointer;
}

.nszzp-lightbox__button:hover {
	background: rgba(0, 0, 0, .78);
}

.nszzp-lightbox__button[hidden] {
	display: none;
}

.nszzp-lightbox__button svg {
	display: block;
	width: 64px;
	height: 64px;
	pointer-events: none;
}

.nszzp-lightbox__close {
	top: 0;
	right: 0;
	font-size: 48px;
	font-weight: 200;
	line-height: 1;
}

.nszzp-lightbox__prev {
	top: 50%;
	left: 0;
	transform: translateY(-50%);
}

.nszzp-lightbox__next {
	top: 50%;
	right: 0;
	transform: translateY(-50%);
}

.nszzp-lightbox__caption {
	position: fixed;
	z-index: 2;
	right: 82px;
	bottom: 16px;
	left: 82px;
	color: #e5e8ea;
	font-size: 13px;
	text-align: center;
	text-shadow: 0 1px 3px #000;
}

@media (min-width: 1800px) {
	.post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1180px) {
	:root {
		--nszzp-tools: 48px;
		--nszzp-rail: 282px;
	}

	.site-brand {
		padding-inline: 22px;
	}


	.primary-navigation {
		padding-inline: 14px;
	}

	.content-layout {
		grid-template-columns: 1fr;
	}

	.content-sidebar {
		margin-top: 30px;
	}

	.content-sidebar__inner {
		position: static;
	}
}

@media (max-width: 992px) {
	:root {
		--nszzp-rail: 0px;
		--nszzp-mobile-drawer: min(82vw, 410px);
	}

	.admin-bar .site-header {
		top: auto;
		height: 80px;
	}

	.site-header {
		position: relative;
		inset: auto;
		width: 100%;
		height: 80px;
		border: 0;
		background: var(--nszzp-ink);
	}

	.mobile-header {
		position: relative;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		left: 0;
		height: 80px;
		padding: 0 clamp(22px, 5.4vw, 32px);
		background: var(--nszzp-ink);
		transition: left .25s ease;
	}

	.mobile-brand {
		display: none;
	}

	.nav-toggle {
		display: grid;
		align-content: center;
		gap: 10px;
		width: 58px;
		height: 58px;
		padding: 8px 0;
		border: 0;
		background: transparent;
		color: #fff;
		cursor: pointer;
	}

	.nav-toggle span[aria-hidden="true"] {
		display: block;
		width: 35px;
		height: 1px;
		background: currentColor;
	}

	.site-header__inner {
		position: fixed;
		z-index: 4;
		top: 0;
		right: auto;
		bottom: 0;
		left: calc(-1 * var(--nszzp-mobile-drawer));
		display: block;
		width: var(--nszzp-mobile-drawer);
		margin-left: 0;
		padding-bottom: 48px;
		overflow-y: auto;
		border-right: 1px solid var(--nszzp-line);
		background: #f5f6f7;
		visibility: hidden;
		pointer-events: none;
		transition: left .25s ease, visibility 0s linear .25s;
	}

	.admin-bar .site-header__inner {
		top: 46px;
	}

	.nav-open .site-header__inner {
		left: 0;
		visibility: visible;
		pointer-events: auto;
		transition-delay: 0s;
	}

	.nav-open .mobile-header {
		left: var(--nszzp-mobile-drawer);
	}

	.site-brand {
		padding: clamp(36px, 8vw, 52px) clamp(28px, 7vw, 42px) clamp(44px, 9vw, 64px);
	}

	.site-brand__logo {
		max-width: min(64vw, 285px);
		margin-bottom: clamp(20px, 5vw, 30px);
	}

	.site-brand__logo img {
		max-height: none;
	}

	.site-brand__title {
		font-size: clamp(23px, 5vw, 30px);
		line-height: 1.12;
	}

	.site-brand__tagline {
		margin-top: 18px;
		font-size: clamp(16px, 3.5vw, 20px);
		line-height: 1.55;
	}

	.primary-navigation {
		padding: 0 clamp(28px, 7vw, 42px) 64px;
		overflow: visible;
	}

	.primary-menu a {
		padding: clamp(13px, 2.8vw, 18px) 44px clamp(13px, 2.8vw, 18px) 0;
		font-size: clamp(18px, 4.2vw, 25px);
		line-height: 1.25;
	}

	.primary-menu .sub-menu {
		padding-left: 14px;
	}

	.primary-menu .sub-menu a {
		font-size: clamp(16px, 3.7vw, 21px);
	}

	.submenu-toggle {
		top: clamp(11px, 2.4vw, 16px);
		width: 36px;
		height: 36px;
		color: #26333f;
	}

	.submenu-toggle::before,
	.submenu-toggle::after {
		width: 20px;
	}

	.header-tools {
		position: absolute;
		z-index: 3;
		top: 0;
		right: clamp(20px, 4vw, 24px);
		bottom: auto;
		left: auto;
		display: flex;
		flex-direction: row;
		width: 144px;
		height: 80px;
		border-top: 0;
		border-right: 0;
		background: transparent;
		transition: right .25s ease;
	}

	.header-tools__spacer,
	.rail-menu-toggle,
	.header-tool--contact {
		display: none;
	}

	.header-tool {
		flex: 0 0 72px;
		width: 72px;
		height: 80px;
		border-right: 0;
		color: #fff;
	}

	.header-tool:hover {
		background: transparent;
		color: #fff;
	}

	.header-tool svg {
		width: 34px;
		height: 34px;
		stroke-width: 1.25;
	}

	.search-toggle {
		order: 1;
	}

	.header-tool--home {
		order: 2;
	}

	.nav-open .header-tools {
		right: calc(clamp(20px, 4vw, 24px) - var(--nszzp-mobile-drawer));
	}

	.site-canvas {
		position: relative;
		left: 0;
		margin-left: 0;
		padding-top: 0;
		transition: left .25s ease;
	}

	.nav-open .site-canvas {
		left: var(--nszzp-mobile-drawer);
	}

	.rail-nav-collapsed .site-canvas {
		margin-left: 0;
	}

	.admin-bar .site-canvas {
		padding-top: 0;
	}
}

@media (max-width: 782px) {

	.home-feed {
		padding: 18px;
	}

	.content-layout {
		grid-template-columns: 1fr;
	}

	.related-posts__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}


	.content-sidebar {
		margin-top: 30px;
	}

	.content-sidebar__inner {
		position: static;
	}

	.page-frame {
		padding: 26px 18px 54px;
	}

	.breadcrumbs {
		margin-bottom: 34px;
	}

	.entry-title {
		font-size: clamp(38px, 10.8vw, 52px);
	}

	.entry-content .alignwide,
	.entry-content .alignfull {
		width: calc(100vw - 36px);
	}

	.site-search__inner {
		padding-inline: 0;
	}

	.site-search .search-form {
		flex-direction: column;
		gap: 8px;
	}

	.site-search .search-submit {
		width: 100%;
	}

	.nszzp-lightbox__stage {
		padding: 62px 4px;
	}

	.nszzp-lightbox__button {
		width: 54px;
		height: 54px;
	}

	.nszzp-lightbox__button svg {
		width: 54px;
		height: 54px;
	}

	.nszzp-lightbox__caption {
		right: 14px;
		left: 14px;
	}
}

@media (max-width: 680px) {

	.post-grid,
	.post-grid--archive {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		gap: 44px;
	}

	.post-card__body {
		padding: 17px 6px 0;
	}

	.post-card__title {
		font-size: clamp(26px, 6vw, 34px);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

/* Strona 506: Ośrodek Szkolenia. Prezentacja jest poza treścią edytora. */
.page-id-506 .entry-content .nszzp-training {
	display: grid;
	gap: 20px;
	max-width: 920px;
	margin-inline: auto;
	padding: clamp(12px, 2vw, 22px);
	border-radius: 12px;
	background: #f4f4f4;
	color: #111;
}

.page-id-506 .nszzp-training__hero,
.page-id-506 .nszzp-training__intro,
.page-id-506 .nszzp-training__section,
.page-id-506 .nszzp-training__bank {
	margin: 0;
	border-radius: 10px;
	background: #fff;
}

.page-id-506 .nszzp-training__hero {
	padding: clamp(18px, 3vw, 30px);
	background: #87ceeb;
	text-align: center;
}

.page-id-506 .entry-content .nszzp-training__image {
	display: block;
	width: min(100%, 480px);
	margin: 0 auto 20px;
	border-radius: 8px;
}

.page-id-506 .nszzp-training__gallery-action,
.page-id-506 .nszzp-training__gallery-note,
.page-id-506 .nszzp-training__year,
.page-id-506 .nszzp-training__bank p {
	margin: 0;
}

.page-id-506 .nszzp-training__gallery-action a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 20px;
	border-radius: 6px;
	background: #002b5e;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.page-id-506 .nszzp-training__gallery-action a:hover {
	background: #1e73be;
	color: #fff;
}

.page-id-506 .nszzp-training__gallery-note {
	margin-top: 12px;
	font-size: 16px;
}

.page-id-506 .nszzp-training__intro,
.page-id-506 .nszzp-training__section {
	padding: 0 clamp(18px, 3vw, 30px) clamp(18px, 3vw, 30px);
}

.page-id-506 .entry-content .nszzp-training h2 {
	margin: 0 clamp(-30px, -3vw, -18px) 22px;
	padding: 15px clamp(18px, 3vw, 30px);
	border-radius: 10px 10px 0 0;
	background: #87ceeb;
	color: #07131c;
	font-size: clamp(20px, 2vw, 30px);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
}

.page-id-506 .nszzp-training__year {
	margin-bottom: 18px;
	text-align: center;
}

.page-id-506 .nszzp-training__accreditation {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 8px;
	background: #f0f8ff;
	font-size: 18px;
	text-align: center;
}

.page-id-506 .nszzp-training__intro>p:last-child,
.page-id-506 .nszzp-training__section>p:last-child,
.page-id-506 .nszzp-training__section>ul:last-child {
	margin-bottom: 0;
}

.page-id-506 .nszzp-training__section ul {
	padding-left: 1.35em;
}

.page-id-506 .nszzp-training__section li+li {
	margin-top: 9px;
}

.page-id-506 .nszzp-training__contact {
	text-align: center;
}

.page-id-506 .nszzp-training__contact a {
	overflow-wrap: anywhere;
}

.page-id-506 .nszzp-training__bank {
	padding: clamp(20px, 3vw, 30px);
	background: #002b5e;
	color: #fff;
	text-align: center;
}

.page-id-506 .entry-content .nszzp-training__bank h2 {
	margin: 0 0 16px;
	padding: 0 0 12px;
	border-bottom: 2px solid rgba(255, 255, 255, .72);
	border-radius: 0;
	background: transparent;
	color: #fff;
}

.page-id-506 .nszzp-training__bank p {
	font-size: clamp(18px, 1.5vw, 20px);
	font-weight: 700;
	letter-spacing: .04em;
}

@media (max-width: 782px) {
	.page-id-506 .entry-content .nszzp-training {
		gap: 14px;
		padding: 8px;
	}

	.page-id-506 .nszzp-training__hero,
	.page-id-506 .nszzp-training__intro,
	.page-id-506 .nszzp-training__section,
	.page-id-506 .nszzp-training__bank {
		border-radius: 8px;
	}

	.page-id-506 .entry-content .nszzp-training h2 {
		font-size: 22px;
	}

	.page-id-506 .nszzp-training__accreditation {
		font-size: 16px;
	}
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}