/*
 * zb-redesign — widok wpisu (body.single-post). Nadpisuje Expertly 1.8.6 + Powerkit 3.1.1.
 * Ładowany po csco-styles, przed wp-custom-css i kirki-inline-styles — wygrywa specyficznością.
 */

/* Onest v11 (SIL OFL 1.1, fonts/OFL.txt) — variable 400–700, latin + latin-ext jak w Google Fonts */
@font-face {
	font-family: Onest;
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(fonts/onest-v11-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Onest;
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(fonts/onest-v11-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;
}

body:is(.single-post, .zb-redesign) {
	--zb-tusz: #16212c;
	--zb-tekst: #2c3a47;
	--zb-slaby: #5b6673;
	--zb-slaby-hero: #4b5563; /* ≥ 4.5:1 także na najjaśniejszych plamach hero (verify.js B1/H3) */
	--zb-tlo: #fff;
	--zb-tlo-2: #f2f4f7;
	--zb-akcent: #021d3a;
	--zb-akcent-hover: #0b3566;
	--zb-linia: rgba(22, 33, 44, .12);
	--zb-linia-mocna: rgba(22, 33, 44, .18);
	--zb-szer: 1180px;
	--zb-tekst-szer: 760px;
	--zb-sidebar: 300px;
	--zb-znacznik: #f0b429;
	/* ziarno jak na filmie — szum SVG, ~0.5 kB, bez requestu */
	--zb-ziarno: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--zb-font: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
	--zb-font-head: var(--zb-font);
	--zb-nav-h: 64px;

	background: var(--zb-tlo);
	color: var(--zb-tekst);
	font-family: var(--zb-font);
}

body:is(.single-post, .zb-redesign) :is(h1, h2, h3, h4, h5, h6, p, li, a, input, textarea, button, select, label, blockquote, td, th, .pk-font-primary, .pk-font-secondary, .pk-font-heading, .pk-font-block) {
	font-family: var(--zb-font);
}

/* Krój nagłówków osobno — dziś ten sam co treść (Onest), zmienna zostaje na wypadek pary krojów */
body.single-post .entry-single-header .entry-title,
body.single-post .entry-content > :is(h2, h3, h4),
body.single-post .post-contact-form h2:not(.marketing-subtitle),
body.single-post .archive-related .archive-wrap .title-block,
body.single-post .archive-related .entry-title {
	font-family: var(--zb-font-head);
}

/* Pasek postępu czytania — sam CSS, tylko w przeglądarkach z animation-timeline */
@supports (animation-timeline: scroll()) {
	body.single-post::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 10000;
		height: 3px;
		background: var(--zb-znacznik);
		transform-origin: 0 50%;
		transform: scaleX(0);
		animation: zb-postep linear both;
		animation-timeline: scroll(root block);
		pointer-events: none;
	}

	@keyframes zb-postep {
		to {
			transform: scaleX(1);
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-post::before {
		display: none;
	}
}

/* ---------- Nagłówek strony: biała „pigułka” ---------- */

body:is(.single-post, .zb-redesign) .site-header {
	background: transparent;
	padding-top: 14px;
}

body:is(.single-post, .zb-redesign) .navbar-primary,
body:is(.single-post, .zb-redesign) .navbar-primary .navbar-wrap {
	background: transparent;
	box-shadow: none;
}

/* Przyklejona nawigacja: pigułka odsunięta od krawędzi, bez pełnej belki */
body:is(.single-post, .zb-redesign) .navbar-primary.sticky-nav {
	padding-top: 10px;
}

body:is(.single-post, .zb-redesign) .navbar-primary.sticky-nav .navbar-container {
	box-shadow: 0 6px 24px rgba(22, 33, 44, .08);
}

body:is(.single-post, .zb-redesign) .navbar-primary .navbar-container {
	max-width: min(var(--zb-szer), calc(100% - 24px)); /* 1020–1204px: pigułka nie dotyka krawędzi */
	height: var(--zb-nav-h);
	margin: 0 auto;
	padding: 0 12px 0 20px;
	background: var(--zb-tlo);
	border: 1px solid var(--zb-linia-mocna);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(22, 33, 44, .04);
}

body:is(.single-post, .zb-redesign) .navbar-primary .navbar-brand img {
	filter: brightness(0) saturate(100%);
	opacity: .88;
}

body:is(.single-post, .zb-redesign) .navbar-primary .navbar-nav > li > a,
body:is(.single-post, .zb-redesign) .navbar-primary .toggle-search,
body:is(.single-post, .zb-redesign) .navbar-primary .toggle-offcanvas {
	color: var(--zb-tusz);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0;
}

/* Ikony szukaj / menu: cel dotyku 44×44. Bez `display` — motyw sam chowa hamburger na desktopie */
body:is(.single-post, .zb-redesign) .navbar-primary :is(.toggle-search, .toggle-offcanvas) {
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
}

body:is(.single-post, .zb-redesign) .navbar-primary .navbar-nav > li > a:hover {
	color: var(--zb-akcent-hover);
}

/* ---------- Okruszki + hero: jasny pas na całą szerokość ---------- */

/* Tło pasa (nagłówek + okruszki + hero) rysuje ::before hero: tło + siatka kreślarska wygaszana ku dołowi */
body.single-post .site-content {
	overflow-x: clip; /* clip, nie hidden — nie psuje sticky */
}

body.single-post #masthead {
	position: relative;
	z-index: 20;
}

body.single-post .cs-breadcrumbs {
	position: relative;
	z-index: 2;
	background: none;
	margin: 0;
	padding: 40px 0 0; /* 40px od menu */
	font-size: 14px;
	line-height: 18px; /* = wysokość tekstu: odstępy bez półpikseli interlinii */
	color: var(--zb-slaby-hero);
}

/* Separator to ikona z fontu ikon — bez tego podnosi linię o 1px tylko tam, gdzie jest widoczny */
body.single-post .cs-breadcrumbs .cs-separator {
	display: inline-block;
	height: 18px;
	line-height: 18px;
	vertical-align: top;
}

body.single-post .cs-breadcrumbs a {
	color: var(--zb-slaby-hero);
}

body.single-post .cs-breadcrumbs a:hover {
	color: var(--zb-tusz);
}

body.single-post .cs-breadcrumbs .breadcrumb_last {
	color: var(--zb-tekst);
}

body.single-post .site-content > .cs-container {
	max-width: calc(var(--zb-szer) + 40px);
	padding-left: 20px;
	padding-right: 20px;
}

body.single-post .site-content,
body.single-post #content {
	padding-top: 0;
	margin-top: 0;
}

body.single-post .entry-single-header.cs-overlay {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	width: auto; /* motyw: .entry-header.cs-overlay {width: calc(100% + 160px)} */
	min-height: 0;
	height: auto;
	margin: 0 0 16px;
	padding: 32px 0 48px; /* 32px od okruszków */
	color: var(--zb-tusz);
	border-bottom: 0;
	overflow: visible;
}

body.single-post .entry-single-header .cs-overlay-background,
body.single-post .entry-single-header .cs-overlay-content {
	position: static !important; /* motyw: .cs-overlay-ratio .cs-overlay-background {position:absolute!important} */
	min-width: 0;
	inset: auto;
	height: auto;
	padding: 0;
	background: none;
	transform: none;
}

/* Zdjęcie jako odbitka z etykietą kategorii w kroju mono (kolaż) */
body.single-post .entry-single-header .cs-overlay-background {
	position: relative !important;
}

body.single-post .entry-single-header .cs-overlay-background::after {
	content: var(--zb-kategoria, "Blog"); /* --zb-kategoria: inline z loadera PHP */
	text-transform: uppercase;
	position: absolute;
	inset: auto auto 18px 18px; /* motyw rozciąga ten pseudo-element na całe zdjęcie */
	z-index: 2;
	width: auto;
	height: auto;
	padding: 5px 8px;
	background: #fff;
	border-radius: 4px;
	color: var(--zb-tusz);
	font-family: var(--zb-font);
	font-variant-numeric: tabular-nums;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	line-height: 1;
	opacity: 1;
}

/* Warstwy hero: plamy (-1) < zdjęcie (1) < etykieta kategorii (2) */
body.single-post .entry-single-header .cs-overlay-background::before {
	display: none;
}

body.single-post .entry-single-header.cs-overlay {
	position: relative;
	isolation: isolate;
}

/*
 * Tło pasa: dwie warstwy plam w barwach marki, każda dryfuje w swoim tempie (tylko transform — kompozytor GPU,
 * bez przemalowań). Warstwy są szersze od ekranu (120vw), żeby ruch nie odsłaniał krawędzi; nadmiar ucina
 * .site-content { overflow-x: clip }. Po lewej jasno pod tytułem, kolor po prawej pod zdjęciem.
 */
body.single-post .entry-single-header::before,
body.single-post .entry-single-header::after {
	content: "";
	display: block;
	position: absolute;
	z-index: -1;
	top: -240px;
	bottom: 0;
	left: calc(50% - 60vw);
	width: 120vw;
	height: auto;
	padding: 0;
	-webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
	will-change: transform;
	pointer-events: none;
}

body.single-post .entry-single-header::before {
	background:
		radial-gradient(30% 58% at 80% 24%, rgba(255, 184, 28, .8), rgba(255, 184, 28, 0) 70%),
		radial-gradient(20% 40% at 90% 98%, rgba(255, 120, 72, .5), rgba(255, 120, 72, 0) 70%),
		radial-gradient(40% 70% at 16% 4%, rgba(196, 214, 255, .75), rgba(196, 214, 255, 0) 72%),
		#f5f4f9;
	animation: zb-plamy-a 26s ease-in-out infinite;
}

body.single-post .entry-single-header::after {
	background:
		var(--zb-ziarno),
		radial-gradient(26% 62% at 62% 88%, rgba(150, 128, 255, .62), rgba(150, 128, 255, 0) 70%),
		radial-gradient(22% 54% at 94% 66%, rgba(40, 92, 235, .5), rgba(40, 92, 235, 0) 70%);
	animation: zb-plamy-b 34s ease-in-out infinite alternate;
}

@keyframes zb-plamy-a {
	50% {
		transform: translate3d(-4%, 3%, 0) rotate(3deg) scale(1.06);
	}
}

@keyframes zb-plamy-b {
	to {
		transform: translate3d(5%, -4%, 0) rotate(-4deg) scale(1.1);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-post .entry-single-header::before,
	body.single-post .entry-single-header::after {
		animation: none;
	}
}

body.single-post .entry-single-header .cs-overlay-background {
	order: 2;
}

body.single-post .entry-single-header .cs-overlay-background img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border: 6px solid #fff;
	border-radius: 14px;
	opacity: 1;
	filter: none;
	box-shadow: 0 28px 60px -24px rgba(2, 29, 58, .45);
}

body.single-post .entry-single-header .cs-overlay-content {
	order: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	color: var(--zb-tusz);
	text-align: left;
}

body.single-post .entry-single-header .entry-inline-meta {
	margin: 0 0 20px;
}

/* Lista kategorii motywu ma własne marginesy i wysokość linii — badge odjeżdżał od tytułu */
body.single-post .entry-single-header .entry-inline-meta :is(.meta-category, .post-categories, .post-categories li) {
	display: flex;
	margin: 0;
	padding: 0;
	line-height: 1;
}

body.single-post .entry-single-header .post-categories a {
	display: inline-block;
	padding: 4px 10px;
	background: var(--zb-akcent);
	border: 0;
	border-radius: 6px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.4;
}

body.single-post .entry-single-header .entry-title {
	max-width: 15em;
	margin: 0 0 24px; /* 24px do wiersza meta + udostępnianie */
	color: var(--zb-tusz);
	font-size: clamp(32px, 4.2vw, 50px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -.025em;
	text-shadow: none;
	text-wrap: balance;
}

body.single-post .entry-single-header .post-header,
body.single-post .entry-single-header .post-header-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin: 0;
	padding: 0;
	color: var(--zb-slaby-hero);
}

body.single-post .entry-single-header .post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0;
	color: var(--zb-slaby-hero);
	font-size: 14.5px;
}

body.single-post .entry-single-header .post-meta li,
body.single-post .entry-single-header .post-meta li::before {
	color: var(--zb-slaby-hero);
}

/* Bez daty publikacji w redesignie (decyzja PO) — znika razem z separatorem „·” z jej ::after */
body.single-post .entry-single-header .post-meta .meta-date {
	display: none;
}

/* Wpis sponsorowany: klasa z loadera, gdy treść zawiera „Artykuł sponsorowany” */
/* Ten sam styl co „4 minuty” (kolor, rozmiar, grubość) — delikatnie, z kropką jak separator meta */
body.single-post.zb-sponsorowany .entry-single-header .post-meta::after {
	content: "·   Artykuł sponsorowany"; /* białe znaki zachowuje white-space: pre — bez escape'ów */
	margin-left: -7px; /* kropka na środku odstępu między „4 minuty” a etykietą */
	color: var(--zb-slaby-hero);
	font-size: inherit;
	font-weight: 400;
	white-space: pre;
}

/* Akapit „Artykuł sponsorowany” w treści (klasę dodaje toc.js) */
body.single-post .entry-content p.zb-sponsor-note {
	display: inline-flex;
	align-items: center;
	margin: 8px 0 18px;
	padding: 5px 14px 5px 26px;
	background: radial-gradient(circle at 14px 50%, var(--zb-znacznik) 3px, transparent 3.5px), var(--zb-tlo-2);
	border-radius: 999px;
	color: var(--zb-tusz);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

body.single-post .entry-content p.zb-sponsor-note :is(em, strong) {
	font-style: normal;
	font-weight: inherit;
}

body.single-post .entry-content p.zb-sponsor-note br {
	display: none;
}

/* Udostępnianie w hero: małe, obrysowane, bez licznika „Total” */

body.single-post .entry-single-header .pk-share-buttons-total {
	display: none;
}

body.single-post .entry-single-header .pk-share-buttons-wrap {
	margin: 0;
}

body.single-post .entry-single-header .pk-share-buttons-items {
	gap: 8px;
}

body.single-post .entry-single-header .pk-share-buttons-item {
	margin: 0;
}

body.single-post .entry-single-header .pk-share-buttons-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	background: var(--zb-tlo);
	border: 1px solid var(--zb-linia-mocna);
	border-radius: 10px;
	color: var(--zb-tusz);
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

/* Hover: odwrócenie (Powerkit „bold-bg” dawał ciemne tło pod ciemnym tekstem) */
body.single-post .entry-single-header .pk-share-buttons-link:is(:hover, :focus-visible) {
	background: var(--zb-tusz);
	border-color: var(--zb-tusz);
}

body.single-post .entry-single-header .pk-share-buttons-link:is(:hover, :focus-visible) :is(.pk-share-buttons-icon, .pk-share-buttons-label) {
	color: #fff;
}

body.single-post .entry-single-header .pk-share-buttons-link .pk-share-buttons-icon,
body.single-post .entry-single-header .pk-share-buttons-link .pk-share-buttons-label {
	color: var(--zb-tusz);
}

body.single-post .entry-single-header .pk-share-buttons-count {
	display: none;
}

@media (min-width: 1020px) {
	body.single-post .entry-single-header.cs-overlay {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
		gap: 56px;
		align-items: start;
	}

	body.single-post .entry-single-header .cs-overlay-background {
		order: 2;
	}
}

/* ---------- Układ: hero na całą szerokość, pod nim treść + sidebar ---------- */

@media (min-width: 1020px) {
	body.single-post #content.main-content {
		margin-left: 0;
		margin-right: 0;
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--zb-sidebar);
		column-gap: 72px;
		align-items: start;
	}

	body.single-post #primary,
	body.single-post #main,
	body.single-post #main > article.entry {
		display: contents;
	}

	body.single-post #main > article.entry > .entry-header {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	body.single-post #main > article.entry > .entry-container {
		grid-column: 1;
		grid-row: 2;
	}

	body.single-post #main > .archive-related,
	body.single-post #main > article.entry ~ * {
		grid-column: 1;
		grid-row: 3;
	}

	body.single-post #secondary {
		grid-column: 2;
		grid-row: 2 / span 2;
		align-self: stretch;
		width: auto;
		max-width: none;
		flex: none;
		padding: 0;
		margin: 0;
	}
}

/* Pionowe share po lewej treści — zbędne przy share w hero */
body.single-post .entry-sidebar-wrap {
	display: none;
}

body.single-post .entry-container,
body.single-post .entry-content-wrap {
	display: block;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	flex: none;
}

/* ---------- Treść ---------- */

body.single-post .entry-content {
	max-width: var(--zb-tekst-szer);
	color: var(--zb-tekst);
	font-size: 17.5px;
	line-height: 1.7;
}

body.single-post .entry-content > p,
body.single-post .entry-content > ul,
body.single-post .entry-content > ol {
	margin: 0 0 18px;
	color: var(--zb-tekst);
	font-size: 17.5px;
	line-height: 1.7;
}

body.single-post .entry-content > p:first-of-type {
	font-size: 19px;
	line-height: 1.65;
	color: var(--zb-tusz);
}

body.single-post .entry-content > p:first-of-type strong {
	font-weight: 500;
}

body.single-post .entry-content strong,
body.single-post .entry-content b {
	font-weight: 600;
	color: var(--zb-tusz);
}

body.single-post .entry-content > :is(h2, h3, h4) {
	color: var(--zb-tusz);
	letter-spacing: -.005em;
	text-wrap: balance;
	scroll-margin-top: calc(var(--zb-nav-h) + 40px);
}

/* Sekcje numerowane jak w projekcie: znacznik + numer w kroju mono nad H2 */
body.single-post .entry-content {
	counter-reset: zb-sekcja;
}

body.single-post .entry-content > h2 {
	counter-increment: zb-sekcja;
	counter-reset: zb-pod; /* numeracja H3 od .1 w każdej sekcji */
	margin: 56px 0 14px;
	padding-top: 22px;
	border-top: 1px solid var(--zb-linia);
	background: linear-gradient(var(--zb-znacznik), var(--zb-znacznik)) 0 -1px / 48px 3px no-repeat;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -.02em;
}

body.single-post .entry-content > h2::before {
	content: counter(zb-sekcja, decimal-leading-zero);
	display: block;
	margin-bottom: 10px;
	color: var(--zb-slaby);
	font-family: var(--zb-font);
	font-variant-numeric: tabular-nums;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1;
}

body.single-post .entry-content > h3 {
	counter-increment: zb-pod;
	margin: 32px 0 10px;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
}

/* Numer H3 = numer w spisie treści (06.1, 06.2…) */
body.single-post .entry-content > h3::before {
	content: counter(zb-sekcja, decimal-leading-zero) "." counter(zb-pod);
	margin-right: 10px;
	color: var(--zb-slaby);
	font-family: var(--zb-font);
	font-variant-numeric: tabular-nums;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	vertical-align: .15em;
}

body.single-post .entry-content > h4 {
	margin: 24px 0 8px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

body.single-post .entry-content a:not(.button):not(.wp-block-button__link) {
	color: var(--zb-tusz);
	text-decoration: underline;
	text-decoration-color: rgba(22, 33, 44, .4);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.single-post .entry-content a:not(.button):not(.wp-block-button__link):hover {
	color: var(--zb-akcent-hover);
	text-decoration-color: currentColor;
}

body.single-post .entry-content > :is(ul, ol) {
	padding-left: 1.4em;
}

body.single-post .entry-content > :is(ul, ol) li {
	margin: 0 0 8px;
	padding-left: 4px;
}

body.single-post .entry-content > :is(ul, ol) li::marker {
	color: var(--zb-slaby);
}

body.single-post .entry-content blockquote,
body.single-post .entry-content .wp-block-quote {
	margin: 24px 0;
	padding: 4px 0 4px 20px;
	border: 0;
	border-left: 3px solid var(--zb-znacznik);
	background: none;
	color: var(--zb-tekst);
	font-size: 17.5px;
	font-style: normal;
	line-height: 1.7;
}

body.single-post .entry-content blockquote::before {
	display: none;
}

body.single-post .entry-content :is(figure, .wp-block-image) img,
body.single-post .entry-content > p img {
	border: 1px solid var(--zb-linia);
	border-radius: 14px;
}

body.single-post .entry-content figure {
	margin: 28px 0;
}

body.single-post .entry-content figcaption {
	margin-top: 8px;
	color: var(--zb-slaby);
	font-size: 14px;
	text-align: left;
}

body.single-post .entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15.5px;
	line-height: 1.5;
}

body.single-post .entry-content :is(th, td) {
	padding: 10px 12px;
	border: 1px solid var(--zb-linia);
	text-align: left;
	vertical-align: top;
}

body.single-post .entry-content th,
body.single-post .entry-content thead td {
	background: var(--zb-tlo-2);
	color: var(--zb-tusz);
	font-weight: 600;
}

/* ---------- Spis treści w treści (mobile / bez widgetu) ---------- */

body.single-post .entry-content .pk-toc {
	margin: 0 0 36px;
	padding: 20px 24px;
	background: var(--zb-tlo-2);
	border: 1px solid var(--zb-linia);
	border-radius: 12px;
}

body.single-post .pk-toc .pk-toc-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 10px;
	color: var(--zb-tusz);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

body.single-post .pk-toc .pk-toc-btn-hide {
	padding: 8px 0 8px 12px; /* cel dotyku ≥ 24px */
	color: var(--zb-slaby);
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

body.single-post .pk-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: zb-spis;
}

body.single-post .pk-toc > ol > li {
	counter-increment: zb-spis;
}

body.single-post .pk-toc > ol > li > a {
	display: grid !important;
	grid-template-columns: 28px 1fr;
	gap: 0 6px;
}

/* Spis tylko z H2 — podpunkty H3 schowane (decyzja PO 2026-11-23: w długich artykułach spis był za długi).
   Nagłówki H3 w treści zostają, z numerami 06.1… */
body.single-post .pk-toc ol ol {
	display: none;
}

/* Aktywna pozycja bez pogrubienia: Powerkit daje font-weight aktywnej i jej rodzicowi,
   szerszy tekst przeskakiwał do kolejnej linii. Pogrubienie optyczne nie zmienia szerokości. */
body.single-post .pk-toc ol li:is(.active, .active-child) > a {
	font-weight: inherit;
}

body.single-post .pk-toc ol li:is(.active, .active-child) > a { /* active-child: czytelnik jest w schowanym podpunkcie H3 */
	color: var(--zb-tusz);
	text-shadow: 0 0 .4px currentColor, 0 0 .4px currentColor;
}

body.single-post .pk-toc > ol > li > a::before {
	content: counter(zb-spis, decimal-leading-zero);
	padding-top: .2em;
	color: var(--zb-slaby);
	font-family: var(--zb-font);
	font-variant-numeric: tabular-nums;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .04em;
}

body.single-post .pk-toc ol li {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.4;
}

body.single-post .pk-toc ol li::before {
	display: none;
}

body.single-post .pk-toc ol li a {
	display: block;
	padding: 6px 0;
	color: var(--zb-tekst);
	text-decoration: none;
}

body.single-post .pk-toc ol li a:hover {
	color: var(--zb-tusz);
}

/* ---------- Sidebar ---------- */

/* Widżety usuwane przez toc.js — schowane od pierwszego renderu, bez skoku układu (review P2) */
body.single-post #secondary :is(.widget.media_image-4, .widget.powerkit_widget_posts-1) {
	display: none;
}

body.single-post #secondary .widget {
	margin: 0 0 32px;
	padding: 0;
}

body.single-post #secondary .title-block,
body.single-post .entry-container .title-block,
body.single-post .archive-related .title-block {
	color: var(--zb-tusz);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

body.single-post #secondary .title-block::before,
body.single-post #secondary .title-block::after {
	display: none;
}

body.single-post #secondary .widget_media_image .title-block {
	color: var(--zb-slaby);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}

body.single-post #secondary .widget_media_image img {
	border-radius: 12px;
}

/* Widget spisu treści (toc.js klonuje spis jako ostatni widget → sticky z motywu; ADR 0002) */
body.single-post #secondary .powerkit_toc_widget {
	top: calc(var(--zb-nav-h) + 40px);
	max-height: calc(100vh - var(--zb-nav-h) - 64px);
	overflow: auto;
	padding-top: 24px;
	border-top: 1px solid var(--zb-linia);
}

body.single-post #secondary .powerkit_toc_widget .pk-toc {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

body.single-post #secondary .powerkit_toc_widget .pk-toc-title {
	margin-bottom: 12px;
	font-size: 14px;
}

body.single-post #secondary .powerkit_toc_widget .pk-toc-btn-hide {
	display: none;
}

body.single-post #secondary .powerkit_toc_widget ol {
	border-left: 1px solid var(--zb-linia-mocna);
}

body.single-post #secondary .powerkit_toc_widget ol li a {
	margin-left: -1px;
	padding: 6px 0 6px 14px;
	border-left: 2px solid transparent;
	font-size: 14.5px;
	line-height: 1.45;
}

/* Customizer: .pk-toc a:hover {text-decoration:underline!important} — w sidebarze wystarcza znacznik */
body.single-post #secondary .powerkit_toc_widget ol li a:hover {
	text-decoration: none !important;
}

body.single-post #secondary .powerkit_toc_widget ol li a:hover,
body.single-post #secondary .powerkit_toc_widget ol li:is(.active, .active-child) > a,
body.single-post #secondary .powerkit_toc_widget ol li a.active {
	border-left-color: var(--zb-znacznik);
	color: var(--zb-tusz);
}

/* html.zb-js: klasa z <head> (loader) — spis w treści znika przed pierwszym malowaniem, toc.js przenosi go do sidebara */
@media (min-width: 1020px) {
	html.zb-js body.single-post .entry-content .pk-toc {
		display: none;
	}
}

/* Poniżej 1020 px sidebar ląduje pod treścią — tam wystarcza spis w treści */
@media (max-width: 1019px) {
	body.single-post #secondary .powerkit_toc_widget {
		display: none;
	}
}

/* ---------- Pod treścią ---------- */

body.single-post .post-tags {
	max-width: var(--zb-tekst-szer);
	margin: 40px 0 0;
}

body.single-post .post-tags ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	font-size: 0;
}

body.single-post .post-tags li {
	margin: 0;
	font-size: 0;
}

body.single-post .post-tags a {
	display: inline-block;
	padding: 5px 12px;
	background: var(--zb-tlo-2);
	border: 1px solid var(--zb-linia);
	border-radius: 999px;
	color: var(--zb-tekst);
	font-size: 13.5px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

body.single-post .post-tags a:hover {
	border-color: var(--zb-tusz);
	color: var(--zb-tusz);
}

/* Formularz kontaktowy jako ramka CTA */
body.single-post .entry-content .post-contact-form {
	margin: 56px 0 0;
	padding: 36px;
	background:
		var(--zb-ziarno),
		radial-gradient(45% 70% at 100% 0%, rgba(240, 180, 41, .38), rgba(240, 180, 41, 0) 70%),
		radial-gradient(50% 80% at 0% 100%, rgba(146, 136, 255, .32), rgba(146, 136, 255, 0) 70%),
		var(--zb-akcent);
	border: 0;
	border-radius: 16px;
	color: rgba(255, 255, 255, .82);
}

body.single-post .post-contact-form h2 {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	color: #fff;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.02em;
}

body.single-post .post-contact-form h2.marketing-subtitle {
	margin: 0 0 8px;
	color: var(--zb-znacznik);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* Customizer: .post-contact-form .wpcf7-form {max-width:600px; margin:0 auto} */
body.single-post .post-contact-form .wpcf7-form {
	max-width: none;
	margin: 0;
}

@media (min-width: 600px) {
	body.single-post .post-contact-form .wpcf7-form > .row:first-of-type {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0 12px;
	}
}

body.single-post .post-contact-form .row,
body.single-post .post-contact-form [class*="col-"] {
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	max-width: none;
}

body.single-post .post-contact-form p:empty {
	display: none;
}

body.single-post .post-contact-form p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

body.single-post .post-contact-form .form-group {
	margin-bottom: 12px;
}

body.single-post .post-contact-form .form-control {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	background: var(--zb-tlo);
	border: 1px solid var(--zb-linia-mocna);
	border-radius: 10px;
	color: var(--zb-tusz);
	font-size: 15.5px;
	box-shadow: none;
}

body.single-post .post-contact-form .form-control::placeholder {
	color: var(--zb-slaby);
	opacity: 1;
}

body.single-post .post-contact-form .form-control:focus {
	border-color: var(--zb-znacznik);
	outline: 3px solid rgba(240, 180, 41, .45);
	outline-offset: 0;
}

body.single-post .post-contact-form textarea.form-control {
	min-height: 120px;
}

body.single-post .post-contact-form .checkbox,
body.single-post .post-contact-form label {
	color: rgba(255, 255, 255, .78);
	font-size: 13px;
	line-height: 1.5;
}

body.single-post .entry-content .post-contact-form a:not(.button) {
	color: #fff;
	text-decoration-color: rgba(255, 255, 255, .5);
}

/* Hover linków w treści (granat) przebijał ten blok: link znikał na granatowym tle */
body.single-post .entry-content .post-contact-form a:not(.button):not(.wp-block-button__link):is(:hover, :focus-visible) {
	color: #fff;
	text-decoration-color: var(--zb-znacznik);
	text-decoration-thickness: 2px;
}

body.single-post .post-contact-form .button,
body.single-post .post-contact-form button[type="submit"],
body.single-post .post-contact-form input[type="submit"] {
	min-height: 48px;
	padding: 0 24px;
	background: var(--zb-znacznik);
	border: 0;
	border-radius: 10px;
	color: var(--zb-akcent);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

body.single-post .post-contact-form .button:hover,
body.single-post .post-contact-form button[type="submit"]:hover {
	background: #ffc94a;
}

/* Komentarze: dyskretny przycisk */
body.single-post .post-comments-button {
	max-width: var(--zb-tekst-szer);
	margin-top: 32px;
}

body.single-post .post-comments-show {
	max-width: var(--zb-tekst-szer);
	margin-top: 32px;
	text-align: left;
}

body.single-post .post-contact-form .cf7-cf-turnstile br,
body.single-post .post-contact-form .wpcf7-form.init .wpcf7-response-output {
	display: none;
}

body.single-post .post-comments-show button,
body.single-post .post-comments-button .button,
body.single-post .post-comments-button button {
	padding: 0 20px;
	min-height: 44px;
	background: var(--zb-tlo);
	border: 1px solid var(--zb-linia-mocna);
	border-radius: 10px;
	color: var(--zb-tusz);
	font-size: 14px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

/* Powiązane wpisy: 3 karty w siatce */
body.single-post .archive-related {
	margin: 64px 0 0;
	padding: 40px 0 0;
	border-top: 1px solid var(--zb-linia);
}

body.single-post .archive-related {
	max-width: var(--zb-tekst-szer);
}

body.single-post .archive-related .archive-wrap .title-block {
	padding: 0;
	margin: 0 0 20px;
	font-size: 22px;
}

body.single-post .archive-related .archive-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px 24px;
	padding: 0;
}

@media (min-width: 700px) {
	body.single-post .archive-related .archive-main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

body.single-post .archive-related .archive-main > article {
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
}

body.single-post .archive-related .archive-main > article:nth-child(n+4) {
	display: none;
}

body.single-post .archive-related .post-outer,
body.single-post .archive-related .post-inner {
	display: block;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	flex: none;
}

body.single-post .archive-related .entry-thumbnail {
	margin: 0 0 12px;
	border-radius: 12px;
	overflow: hidden;
}

body.single-post .archive-related .entry-thumbnail .cs-overlay-content {
	display: none;
}

body.single-post .archive-related .entry-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

body.single-post .archive-related .entry-title a {
	color: var(--zb-tusz);
}

body.single-post .archive-related :is(.entry-excerpt, .meta-author, .entry-details, .entry-more, .entry-more-button, .post-excerpt) {
	display: none;
}

body.single-post .archive-related .post-meta {
	color: var(--zb-slaby);
	font-size: 13px;
}

body.single-post .post-tags a::before {
	content: "#";
	margin-right: 2px;
	color: var(--zb-slaby);
}

body.single-post .archive-related .entry-thumbnail img {
	transition: transform .35s ease;
}

body.single-post .archive-related article:hover .entry-thumbnail img {
	transform: scale(1.04);
}

body.single-post .archive-related article:hover .entry-title a {
	text-decoration: underline !important; /* Customizer: .entry-title a {text-decoration:none!important} */
	text-decoration-color: var(--zb-znacznik);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	body.single-post .archive-related .entry-thumbnail img {
		transition: none;
	}
}

/* ---------- Mobile / tablet ---------- */

@media (max-width: 1019px) {
	body.single-post .entry-single-header .pk-share-buttons-link {
		min-height: 44px;
	}

	body:is(.single-post, .zb-redesign) .navbar-primary .navbar-container {
		width: auto;
		margin: 0 12px;
		padding: 0 8px;
	}

	body.single-post .entry-content .post-contact-form {
		padding: 28px 20px;
	}

	body.single-post .post-contact-form h2 {
		font-size: 24px;
	}
}

@media (max-width: 599px) {
	/* Bieżący wpis powtarza tytuł H1 tuż pod okruszkami */
	body.single-post .cs-breadcrumbs .breadcrumb_last,
	body.single-post .cs-breadcrumbs .cs-separator:has(+ .breadcrumb_last) {
		display: none;
	}

	body.single-post .entry-single-header .entry-title {
		font-size: 30px;
	}

	body.single-post .entry-content > h2 {
		font-size: 24px;
	}
}

/* Druga lista 4 kart nad stopką — na wpisie zbędna */
body.single-post .section-footer-posts {
	display: none;
}

/* ---------- Stany interakcji ---------- */

body.single-post .post-comments-show button:is(:hover, :focus-visible) {
	border-color: var(--zb-tusz);
	background: var(--zb-tlo-2);
}

/* Fokus z klawiatury: widoczny na każdym tle (granat na jasnym, bursztyn w bloku CTA) */
body:is(.single-post, .zb-redesign) :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--zb-akcent);
	outline-offset: 2px;
}

body.single-post .post-contact-form :is(a, button, input, textarea):focus-visible {
	outline-color: var(--zb-znacznik);
}


/* =====================================================================
 * Strona główna (body.home) — feature 02
 * ===================================================================== */

body.zb-redesign.home {
	background: var(--zb-tlo);
}

body.zb-redesign.home #masthead {
	position: relative;
	z-index: 20;
}

body.zb-redesign.home :is(.zb-home-hero, .section-homepage-posts, .site-content) > .cs-container {
	max-width: calc(var(--zb-szer) + 40px);
	padding-left: 20px;
	padding-right: 20px;
}

/* Pas z plamami i ziarnem pod menu, hero i wyróżnionymi wpisami. Hook motywu wypisuje hero PRZED sekcją wpisów,
   więc tło rysuje ::before hero i schodzi pod karty (sekcja jest później w DOM — maluje się nad nim). */
body.zb-redesign.home .section-homepage-posts {
	position: relative;
	margin: 0;
	padding: 0 0 56px;
	background: none;
}

body.zb-redesign.home .zb-home-hero {
	position: relative;
	isolation: isolate;
}

body.zb-redesign.home .zb-home-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -100px;
	bottom: -560px;
	left: 0;
	right: 0;
	background:
		var(--zb-ziarno),
		radial-gradient(30% 50% at 82% 16%, rgba(255, 184, 28, .7), rgba(255, 184, 28, 0) 70%),
		radial-gradient(26% 46% at 96% 52%, rgba(40, 92, 235, .4), rgba(40, 92, 235, 0) 70%),
		radial-gradient(30% 50% at 60% 40%, rgba(150, 128, 255, .42), rgba(150, 128, 255, 0) 70%),
		radial-gradient(40% 60% at 10% 0%, rgba(196, 214, 255, .75), rgba(196, 214, 255, 0) 72%),
		#f5f4f9;
	-webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
	pointer-events: none;
}

/* Hero: tylko ukryty wizualnie H1 (decyzja PO: od razu artykuły). Tło pasa rysuje nadal ::before hero. */
body.zb-redesign.home .zb-home-hero {
	padding: 40px 0 0; /* 40px od menu do kafli — ten sam rytm co menu → okruszki we wpisie */
}

body.zb-redesign.home .zb-home-hero .zb-home-hero__title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Wyróżnione wpisy (7): 1 duży + 4 karty + 2 szerokie poziome ---------- */

body.zb-redesign.home .cs-homepage-posts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
}

body.zb-redesign.home .cs-homepage-post {
	width: auto;
	max-width: none;
	flex: none;
	margin: 0;
	padding: 0;
}

body.zb-redesign.home .cs-homepage-post:nth-child(1) {
	grid-column: span 2;
	grid-row: span 2;
}

body.zb-redesign.home .cs-homepage-post:nth-child(n+8) {
	display: none;
}

/* 6. i 7.: rząd pod spodem, każdy na pół szerokości — zdjęcie z lewej, tytuł z prawej */
@media (min-width: 1020px) {
	body.zb-redesign.home .cs-homepage-post:nth-child(n+6) {
		grid-column: span 2;
	}

	body.zb-redesign.home .cs-homepage-post:nth-child(n+6) article {
		display: grid;
		grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
		align-items: stretch;
	}

	body.zb-redesign.home .cs-homepage-post:nth-child(n+6) .cs-overlay {
		height: 100%;
		min-height: 150px;
	}

	/* pusta lista meta motywu ma margin-top: auto i zjadała wolne miejsce pod tytułem */
	body.zb-redesign.home .cs-homepage-post .cs-card .post-meta:empty {
		display: none;
	}

	body.zb-redesign.home .cs-homepage-post:nth-child(n+6) .cs-card {
		display: flex;
		justify-content: center; /* motyw: .cs-card ma flex-direction: column */
		padding: 18px 22px;
	}

	body.zb-redesign.home .cs-homepage-post:nth-child(n+6) .cs-card .entry-title {
		font-size: 19px;
	}
}

/* Karta wpisu (wspólna dla wyróżnionych i listy) */
body.zb-redesign.home :is(.cs-homepage-post, .archive-list) article {
	position: relative;
	height: 100%;
	margin: 0;
	padding: 0;
	background: var(--zb-tlo);
	border: 1px solid var(--zb-linia);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

body.zb-redesign.home :is(.cs-homepage-post, .archive-list) article:hover {
	box-shadow: 0 20px 44px -26px rgba(2, 29, 58, .4);
	transform: translateY(-2px);
}

body.zb-redesign.home .cs-homepage-post article {
	display: flex;
	flex-direction: column;
}

/* Zdjęcie bez ciemnej nakładki motywu; badge kategorii jak we wpisie */
body.zb-redesign.home :is(.cs-homepage-post, .archive-list) .cs-overlay {
	background: none;
}

body.zb-redesign.home :is(.cs-homepage-post, .archive-list) .cs-overlay-background::before,
body.zb-redesign.home :is(.cs-homepage-post, .archive-list) .cs-overlay-background::after,
body.zb-redesign.home :is(.cs-homepage-post, .archive-list) .cs-overlay::after {
	opacity: 0;
}

body.zb-redesign.home :is(.cs-homepage-post, .archive-list) .cs-overlay-background img {
	object-fit: cover;
	transition: transform .35s ease;
}

body.zb-redesign.home :is(.cs-homepage-post, .archive-list) article:hover .cs-overlay-background img {
	transform: scale(1.03);
}

body.zb-redesign.home :is(.cs-homepage-post, .archive-list) .post-categories a {
	display: inline-block;
	padding: 4px 9px;
	background: var(--zb-akcent);
	border: 0;
	border-radius: 6px;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .05em;
	line-height: 1.3;
	text-transform: uppercase;
}

body.zb-redesign.home :is(.cs-homepage-post, .archive-list) .cs-overlay-content .post-meta {
	display: none;
}

/* Duży wpis: zdjęcie u góry, tytuł pod spodem (jak hero wpisu) */
body.zb-redesign.home .cs-homepage-post:nth-child(1) .cs-overlay {
	display: flex;
	flex-direction: column;
	height: 100%;
}

body.zb-redesign.home .cs-homepage-post:nth-child(1) .cs-overlay::before {
	display: none;
}

body.zb-redesign.home .cs-homepage-post:nth-child(1) :is(.cs-overlay-background, .cs-overlay-content) {
	position: relative !important; /* motyw: .cs-overlay-ratio .cs-overlay-background {position:absolute!important} */
	inset: auto;
	height: auto;
}

body.zb-redesign.home .cs-homepage-post:nth-child(1) .cs-overlay-background {
	flex: 1 1 auto;
	min-height: 240px;
}

body.zb-redesign.home .cs-homepage-post:nth-child(1) .cs-overlay-background img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

body.zb-redesign.home .cs-homepage-post:nth-child(1) .cs-overlay-content {
	flex: none;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 24px 28px 28px;
	background: none;
	color: var(--zb-tusz);
}

body.zb-redesign.home .cs-homepage-post:nth-child(1) .cs-overlay-content .meta-category {
	margin: 0 0 12px;
}

body.zb-redesign.home .cs-homepage-post:nth-child(1) .entry-title {
	margin: 0;
	font-family: var(--zb-font-head);
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.02em;
	text-shadow: none;
	text-wrap: balance;
}

body.zb-redesign.home .cs-homepage-post .entry-title a {
	color: var(--zb-tusz);
	text-decoration: none !important;
}

/* Małe karty: zdjęcie + tytuł w .cs-card */
body.zb-redesign.home .cs-homepage-post:not(:nth-child(1)) .cs-overlay-content {
	justify-content: flex-start;
	padding: 14px;
	background: none;
}

body.zb-redesign.home .cs-homepage-post .cs-card {
	flex: 1;
	margin: 0;
	padding: 16px 18px 20px;
	background: none;
	border: 0;
	box-shadow: none;
}

body.zb-redesign.home .cs-homepage-post .cs-card .entry-title {
	margin: 0;
	font-family: var(--zb-font-head);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -.005em;
}

/* Cała karta klikalna — link motywu leży na zdjęciu; rozciągamy go na kartę */
body.zb-redesign.home :is(.cs-homepage-post, .archive-list) .cs-overlay-link {
	z-index: 1;
}

body.zb-redesign.home :is(.cs-homepage-post, .archive-list) :is(.post-categories a, .entry-title a) {
	position: relative;
	z-index: 2;
}

/* ---------- Lista wszystkich wpisów + sidebar ---------- */

@media (min-width: 1020px) {
	body.zb-redesign.home #content.main-content {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--zb-sidebar);
		column-gap: 72px;
		align-items: start;
		margin-left: 0;
		margin-right: 0;
	}

	body.zb-redesign.home :is(#primary, #secondary) {
		width: auto;
		max-width: none;
		flex: none;
		margin: 0;
		padding: 0;
	}

	/* Sticky wymaga wysokiego rodzica: kolumna sidebara na całą wysokość listy */
	body.zb-redesign.home #secondary {
		align-self: stretch;
	}

	body.zb-redesign.home #secondary .sidebar-1 {
		height: 100%;
	}

	/* top ustawia inline skrypt motywu (stick-last) — dopasowuje go do chowającego się menu */
	body.zb-redesign.home #secondary .sidebar-1 > .widget:last-child {
		position: sticky;
	}
}

body.zb-redesign.home .site-content {
	margin-top: 0; /* motyw: 48px */
	padding-top: 0;
}

/* Strona 2+ nie ma kafli ani hero (motyw pokazuje je tylko na 1.) — 40px od menu do listy, jak na 1. do kafli */
body.zb-redesign.home.paged .site-content {
	padding-top: 40px;
}

body.zb-redesign.home .post-archive,
body.zb-redesign.home .archive-wrap,
body.zb-redesign.home .archive-main {
	margin: 0;
	padding: 0;
	background: none;
}

body.zb-redesign.home .archive-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

body.zb-redesign.home .archive-list article {
	width: auto;
	border-bottom: 1px solid var(--zb-linia);
}

body.zb-redesign.home .archive-list .post-outer {
	display: grid;
	grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
	gap: 24px;
	margin: 0;
	padding: 14px;
}

body.zb-redesign.home .archive-list .post-inner {
	width: auto;
	max-width: none;
	flex: none;
	margin: 0;
	padding: 0;
}

body.zb-redesign.home .archive-list .entry-thumbnail,
body.zb-redesign.home .archive-list .entry-thumbnail .cs-overlay {
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
}

body.zb-redesign.home .archive-list .post-inner + .post-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 8px 12px 8px 0;
}

body.zb-redesign.home .archive-list .entry-header {
	margin: 0 0 10px;
}

body.zb-redesign.home .archive-list .entry-title {
	margin: 0;
	font-family: var(--zb-font-head);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -.015em;
}

body.zb-redesign.home .archive-list .entry-title a {
	color: var(--zb-tusz);
	text-decoration: none !important;
}

body.zb-redesign.home .archive-list .entry-header .post-meta {
	display: none;
}

body.zb-redesign.home .archive-list .entry-excerpt {
	margin: 0;
	color: var(--zb-slaby);
	font-size: 15px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.zb-redesign.home .archive-list .entry-details {
	display: none;
}

/* Zobacz więcej */
body.zb-redesign.home .ajax-navigation {
	margin: 32px 0 0;
	text-align: left;
}

body.zb-redesign.home .site-content {
	padding-bottom: 80px; /* „Zobacz więcej” nie przykleja się do stopki */
}

body.zb-redesign.home .ajax-navigation .load-more {
	min-height: 48px;
	padding: 0 24px;
	background: var(--zb-tlo);
	border: 1px solid var(--zb-linia-mocna);
	border-radius: 10px;
	color: var(--zb-tusz);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

body.zb-redesign.home .ajax-navigation .load-more:is(:hover, :focus-visible) {
	background: var(--zb-tusz);
	border-color: var(--zb-tusz);
	color: #fff;
}

/* Te same wpisy trzeci raz nad stopką — na stronie głównej zbędne */
body.zb-redesign.home .section-footer-posts {
	display: none;
}

/* ---------- Tablet / mobile ---------- */

@media (max-width: 1019px) {
	body.zb-redesign.home .cs-homepage-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	body.zb-redesign.home .cs-homepage-post:nth-child(1) {
		grid-column: 1 / -1;
		grid-row: auto;
	}
}

@media (max-width: 599px) {
	body.zb-redesign.home .cs-homepage-posts {
		grid-template-columns: minmax(0, 1fr);
	}

	body.zb-redesign.home .archive-list .post-outer {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	body.zb-redesign.home .archive-list .post-inner + .post-inner {
		padding: 0 4px 6px;
	}

	body.zb-redesign.home .archive-list .entry-title {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.zb-redesign.home :is(.cs-homepage-post, .archive-list) :is(article, .cs-overlay-background img) {
		transition: none;
	}

	body.zb-redesign.home :is(.cs-homepage-post, .archive-list) article:hover {
		transform: none;
	}
}


/* =====================================================================
 * Wyszukiwarka w menu (wpis + strona główna)
 * ===================================================================== */

/* Ikona: hover motywu szarzał do #a0a0a0 (kontrast < 3:1) — teraz jasne kółko i tusz */
body:is(.single-post, .zb-redesign) .navbar-primary .toggle-search {
	border-radius: 50%;
	transition: background .15s ease;
}

body:is(.single-post, .zb-redesign) .navbar-primary .toggle-search:is(:hover, :focus-visible) {
	background: var(--zb-tlo-2);
	color: var(--zb-tusz);
}

body:is(.single-post, .zb-redesign) .navbar-primary .toggle-search.toggle-close {
	background: var(--zb-akcent);
	color: #fff;
}

body:is(.single-post, .zb-redesign) .navbar-primary .toggle-search.toggle-close:is(:hover, :focus-visible) {
	background: var(--zb-akcent-hover);
}

/* Panel jako nakładka pod menu — nie spycha strony (wcześniej przesuwał pas z plamami i zostawiał biały pasek).
   top: 100% liczy się od #masthead, a przy przyklejonym menu od samego menu (position: fixed). */
body:is(.single-post, .zb-redesign) .navbar-primary .site-search {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 30;
	padding: 10px 0 0;
	background: none;
	border: 0;
	box-shadow: none;
}

body:is(.single-post, .zb-redesign) .site-search .cs-container {
	max-width: calc(var(--zb-szer) + 40px);
	padding-left: 20px;
	padding-right: 20px;
}

body:is(.single-post, .zb-redesign) .site-search .search-form {
	max-width: 760px;
	margin: 0 auto;
	padding: 8px;
	background: var(--zb-tlo);
	border: 1px solid var(--zb-linia-mocna);
	border-radius: 16px;
	box-shadow: 0 24px 48px -24px rgba(2, 29, 58, .35);
}

body:is(.single-post, .zb-redesign) .site-search .cs-input-group {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

body:is(.single-post, .zb-redesign) .site-search .search-field {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 14px 0 48px; /* lupa motywu stoi absolutnie po lewej */
	background: none;
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	color: var(--zb-tusz);
	font-size: 17px;
}

body:is(.single-post, .zb-redesign) .site-search .search-field::placeholder {
	color: var(--zb-slaby);
	opacity: 1;
}

body:is(.single-post, .zb-redesign) .site-search .search-field:focus {
	outline: 0;
}

body:is(.single-post, .zb-redesign) .site-search .search-form:focus-within {
	border-color: var(--zb-akcent);
	box-shadow: 0 0 0 3px rgba(2, 29, 58, .14), 0 24px 48px -24px rgba(2, 29, 58, .35);
}

body:is(.single-post, .zb-redesign) .site-search .search-submit {
	flex: none;
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	background: var(--zb-akcent);
	border: 0;
	border-radius: 10px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
}

body:is(.single-post, .zb-redesign) .site-search .search-submit:is(:hover, :focus-visible) {
	background: var(--zb-akcent-hover);
}

/* Podpowiedzi SearchWP Live (kontener doklejany na końcu <body>) */
body:is(.single-post, .zb-redesign) .searchwp-live-search-results {
	margin-top: 8px;
	padding: 6px;
	background: var(--zb-tlo);
	border: 1px solid var(--zb-linia-mocna);
	border-radius: 14px;
	box-shadow: 0 24px 48px -24px rgba(2, 29, 58, .35);
	font-family: var(--zb-font);
}

body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result {
	margin: 0;
	padding: 0;
	border: 0;
}

body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result a {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	color: var(--zb-tusz);
	text-decoration: none;
}

body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result a:is(:hover, :focus-visible),
body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result[aria-selected="true"] a {
	background: var(--zb-tlo-2);
}

body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result img {
	width: 56px;
	height: 42px;
	margin: 0;
	object-fit: cover;
	border-radius: 6px;
}

body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result .h6 {
	display: block;
	margin: 0 0 2px;
	color: var(--zb-tusz);
	font-family: var(--zb-font);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
}

body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result .meta-date {
	color: var(--zb-slaby);
	font-size: 13px;
}

/* Kreski motywu między wynikami (różnej długości) — odstęp i hover wystarczają */
body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result,
body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result a {
	border: 0;
	box-shadow: none;
}

body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result::before,
body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result::after {
	display: none;
}

/* Etykieta typu („Wpis”) przy każdym wyniku nic nie mówi — wszystkie wyniki to wpisy */
body:is(.single-post, .zb-redesign) .searchwp-live-search-results .searchwp-live-search-result small {
	display: none;
}
