/* WD – Produkty i oferta */

/*
 * Automatyczna siatka kafelków kategorii i produktów.
 * Desktop: liczba kolumn odpowiada liczbie elementów, maksymalnie 5.
 * Dla 1–2 kafelków szerokość pojedynczego elementu jest ograniczona do 460 px,
 * a cały zestaw jest wyśrodkowany.
 */
.wd-product-category-grid,
.wd-product-grid {
	--wd-grid-columns: 5;
	--wd-grid-gap: 24px;
	--wd-grid-compact-card-max: 460px;
	display: grid;
	grid-template-columns: repeat(var(--wd-grid-columns), minmax(0, 1fr));
	gap: var(--wd-grid-gap);
	width: 100%;
}

/* 2.0.8 – Profil w trybie legacy nadal używa starej siatki .wd-product-grid.
 * Przekazujemy do niej odstęp zapisany w profilu zamiast stałego 24px.
 * Zmienna --wd-profile-gap jest responsywna, więc działa także dla Tablet/Telefon. */
.wd-profile-view--legacy .wd-product-grid,
.wd-profile-view--legacy .wd-product-category-grid {
	--wd-grid-gap: var(--wd-profile-gap, 24px);
	--wd-grid-compact-card-max: var(--wd-profile-compact-max, 460px);
}

.wd-product-category-grid.wd-grid--compact,
.wd-product-grid.wd-grid--compact {
	grid-template-columns: repeat(var(--wd-grid-columns), minmax(0, var(--wd-grid-compact-card-max)));
	justify-content: center;
}

.wd-product-category-card,
.wd-product-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	background: #fff;
	border: 1px solid #e7ebf1;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 18px rgba(31, 50, 87, 0.05);
}


.wd-product-category-card__click,
.wd-product-card__click {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.wd-product-category-card__click:hover,
.wd-product-category-card__click:focus,
.wd-product-card__click:hover,
.wd-product-card__click:focus {
	color: inherit;
	text-decoration: none;
}

.wd-product-category-card__image,
.wd-product-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 2.35;
	overflow: hidden;
	background: #f5f7fa;
}

.wd-product-category-card__image img,
.wd-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease, opacity var(--wd-profile-hover-duration,.25s) ease;
}

.wd-product-category-card:hover .wd-product-category-card__image img,
.wd-product-card:hover .wd-product-card__image img {
	transform: scale(1.025);
}

.wd-product-category-card__body,
.wd-product-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 16px 17px;
}

.wd-product-category-card__title,
.wd-product-card__title {
	display: block;
	margin: 0 0 11px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.wd-product-category-card__title a,
.wd-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.wd-product-category-card__description,
.wd-product-card__description {
	display: block;
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.65;
	color: #647087;
}

.wd-product-category-card__link,
.wd-product-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: #159b39;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.wd-product-category-card__link:hover,
.wd-product-card__link:hover {
	color: #087e29;
}

.wd-products-archive__products {
	padding-top: 48px;
	padding-bottom: 48px;
}

.wd-products-archive__global-content {
	width: 100%;
}

.wd-products-category-banner {
	position: relative;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.wd-products-banner__eyebrow {
	margin-bottom: 8px;
}

.wd-products-banner__lead p,
.wd-products-banner__extra p {
	margin-top: 0;
}

.wd-products-banner__png {
	position: absolute;
	right: 5%;
	bottom: 0;
	z-index: 2;
	max-width: 48%;
	pointer-events: none;
}

.wd-products-banner__png img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

.wd-product-empty {
	padding: 24px;
	border: 1px solid #e5eaf0;
	border-radius: 10px;
	background: #f8fafc;
	color: #58657a;
}

.wd-product-single__inner {
	padding-top: 42px;
	padding-bottom: 64px;
}

.wd-product-single__breadcrumbs {
	margin-bottom: 24px;
}

.wd-product-single__title {
	margin-bottom: 28px;
}

.wd-product-single__featured-image {
	margin-bottom: 32px;
}

.wd-product-single__featured-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

@media (max-width: 1200px) {
	/* Na mniejszym desktopie / dużym tablecie maksymalnie 3 kafelki w rzędzie. */
	.wd-product-category-grid:not(.wd-grid--compact),
	.wd-product-grid:not(.wd-grid--compact) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wd-product-category-grid.wd-grid--compact,
	.wd-product-grid.wd-grid--compact {
		grid-template-columns: repeat(var(--wd-grid-columns), minmax(0, var(--wd-grid-compact-card-max)));
	}
}

@media (max-width: 820px) {
	/* Tablet: maksymalnie 2 kafelki w rzędzie. */
	.wd-product-category-grid,
	.wd-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wd-product-category-grid.wd-grid--count-1,
	.wd-product-grid.wd-grid--count-1 {
		grid-template-columns: minmax(0, min(100%, var(--wd-grid-compact-card-max)));
		justify-content: center;
	}

	.wd-product-category-grid.wd-grid--count-2,
	.wd-product-grid.wd-grid--count-2 {
		grid-template-columns: repeat(2, minmax(0, var(--wd-grid-compact-card-max)));
		justify-content: center;
	}

	.wd-products-banner__png {
		position: relative;
		right: auto;
		bottom: auto;
		max-width: 100%;
		margin: 20px auto 0;
	}
}

@media (max-width: 520px) {
	/* Telefon: zawsze jeden kafelek w rzędzie. */
	.wd-product-category-grid,
	.wd-product-grid,
	.wd-product-category-grid.wd-grid--compact,
	.wd-product-grid.wd-grid--compact,
	.wd-product-category-grid.wd-grid--count-1,
	.wd-product-grid.wd-grid--count-1,
	.wd-product-category-grid.wd-grid--count-2,
	.wd-product-grid.wd-grid--count-2 {
		grid-template-columns: minmax(0, 1fr);
		justify-content: stretch;
	}

	.wd-products-archive__products {
		padding-top: 32px;
		padding-bottom: 32px;
	}
}


/* Dodatkowa formatowana treść wyłącznie na kafelkach wpisów/produktów. */
.wd-product-card__extra {
	display: block;
	margin: -4px 0 18px;
	font-size: 13px;
	line-height: 1.55;
	color: #4f5d73;
}

.wd-product-card__extra > :first-child,
.wd-featured-product-card__extra > :first-child {
	margin-top: 0;
}

.wd-product-card__extra > :last-child,
.wd-featured-product-card__extra > :last-child {
	margin-bottom: 0;
}

.wd-product-card__extra p,
.wd-featured-product-card__extra p {
	margin: 0 0 8px;
}

.wd-product-card__extra ul,
.wd-product-card__extra ol,
.wd-featured-product-card__extra ul,
.wd-featured-product-card__extra ol {
	margin: 0 0 10px;
	padding-left: 1.25em;
}

.wd-product-card__extra li,
.wd-featured-product-card__extra li {
	margin: 0 0 4px;
}

.wd-featured-product-card__extra {
	display: block;
	margin: -2px 0 12px;
	font-size: 12.5px;
	line-height: 1.45;
	color: #56647b;
}

/* Polecane produkty */
.wd-featured-products {
	--wd-featured-gap: 18px;
	--wd-featured-per-view: 4;
	width: 100%;
}

.wd-featured-products__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.wd-featured-products__title {
	position: relative;
	margin: 0;
	padding-bottom: 12px;
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	color: #132a58;
}

.wd-featured-products__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 38px;
	height: 3px;
	background: #19a83c;
}

.wd-featured-products__viewport {
	width: 100%;
	overflow: hidden;
	scrollbar-width: none;
}

.wd-featured-products__viewport::-webkit-scrollbar {
	display: none;
}

.wd-featured-products__track {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wd-featured-gap);
	width: 100%;
}

.wd-featured-products--slider .wd-featured-products__track {
	display: flex;
	width: auto;
}

.wd-featured-products--slider .wd-featured-product-card {
	flex: 0 0 calc((100% - (var(--wd-featured-gap) * (var(--wd-featured-per-view) - 1))) / var(--wd-featured-per-view));
}

.wd-featured-product-card {
	display: block;
	min-width: 0;
	min-height: 176px;
	background: #fff;
	border: 1px solid #e7ebf1;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(31, 50, 87, 0.045);
}


.wd-featured-product-card__click {
	display: grid;
	grid-template-columns: minmax(105px, 42%) minmax(0, 1fr);
	min-width: 0;
	min-height: 176px;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.wd-featured-product-card__click:hover,
.wd-featured-product-card__click:focus {
	color: inherit;
	text-decoration: none;
}

.wd-featured-product-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 100%;
	padding: 12px;
	background: #fff;
	overflow: hidden;
}

.wd-featured-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 150px;
	object-fit: contain;
	transition: transform .25s ease;
}

.wd-featured-product-card:hover .wd-featured-product-card__image img {
	transform: scale(1.035);
}

.wd-featured-product-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 18px 16px 16px 8px;
}

.wd-featured-product-card__title {
	display: block;
	margin: 0 0 9px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #132a58;
}

.wd-featured-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.wd-featured-product-card__description {
	display: block;
	margin: 0 0 13px;
	font-size: 13px;
	line-height: 1.5;
	color: #69758c;
}

.wd-featured-product-card__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	align-self: flex-start;
	margin-top: auto;
	color: #159b39;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.wd-featured-product-card__link:hover,
.wd-featured-product-card__link:focus {
	color: #087e29;
}

.wd-featured-products__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 4px;
}

.wd-featured-products__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid #dce3ee;
	border-radius: 50%;
	background: #fff;
	color: #132a58;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.wd-featured-products__arrow:hover:not(:disabled),
.wd-featured-products__arrow:focus-visible:not(:disabled) {
	background: #159b39;
	border-color: #159b39;
	color: #fff;
}

.wd-featured-products__arrow:disabled {
	opacity: .35;
	cursor: default;
}

@media (max-width: 980px) {
	.wd-featured-products:not(.wd-featured-products--slider) .wd-featured-products__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.wd-featured-products__header {
		align-items: center;
	}

	.wd-featured-products:not(.wd-featured-products--slider) .wd-featured-products__track {
		grid-template-columns: 1fr;
	}

	.wd-featured-product-card__click {
		grid-template-columns: 118px minmax(0, 1fr);
		min-height: 160px;
	}

	.wd-featured-product-card__body {
		padding: 15px 13px 14px 5px;
	}

	.wd-featured-products__arrow {
		width: 34px;
		height: 34px;
	}
}

/* 1.3.0 – produkt budowany w całości Gutenbergiem */
.wd-product-single,
.wd-product-single__article,
.wd-product-single__content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.wd-product-single__content > :first-child {
	margin-top: 0;
}

.wd-global-section {
	width: 100%;
}

/* Podobne produkty */
.wd-related-products {
	width: 100%;
}

.wd-related-products__title {
	position: relative;
	margin: 0 0 22px;
	padding-bottom: 12px;
	font-size: clamp(22px, 2vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	color: #132a58;
}

.wd-related-products__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 38px;
	height: 3px;
	background: #19a83c;
}

/* Baner kategorii zachowuje układ i klasy strony bazowej. */
.wd-products-category-banner > .we-container__inner {
	position: relative;
}


/* Formatowany główny opis kafelka produktu – edytor WYSIWYG od 1.3.6. */
.wd-product-card__description > :first-child,
.wd-featured-product-card__description > :first-child {
	margin-top: 0;
}

.wd-product-card__description > :last-child,
.wd-featured-product-card__description > :last-child {
	margin-bottom: 0;
}

.wd-product-card__description p,
.wd-featured-product-card__description p {
	margin: 0 0 8px;
}

.wd-product-card__description ul,
.wd-product-card__description ol,
.wd-featured-product-card__description ul,
.wd-featured-product-card__description ol {
	margin: 0 0 10px;
	padding-left: 1.25em;
}

.wd-product-card__description li,
.wd-featured-product-card__description li {
	margin: 0 0 4px;
}

/* 1.3.7 – wariant kafelków dla sekcji Rozwiązania.
 * Stosowany, gdy kategoria główna nie ma podkategorii i shortcode renderuje
 * bezpośrednio przypisane wpisy. Układ odpowiada kafelkom sekcji na stronie
 * Rozwiązania: 4 kolumny, grafika/ikona wyśrodkowana, treść wyśrodkowana.
 */
.wd-product-grid--rozwiazania {
	--wd-grid-gap: 24px;
}

.wd-product-card--rozwiazania {
	box-shadow: 0 2px 8px rgba(31, 50, 87, 0.035);
}

.wd-product-card--rozwiazania .wd-product-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 120px;
	aspect-ratio: auto;
	padding: 16px 18px 0;
	background: #fff;
	overflow: hidden;
}

.wd-product-card--rozwiazania .wd-product-card__image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	max-height: 100px;
	object-fit: contain;
}

.wd-product-card--rozwiazania:hover .wd-product-card__image img {
	transform: none;
}

.wd-product-card--rozwiazania .wd-product-card__body {
	align-items: center;
	padding: 10px 20px 20px;
	text-align: center;
}

.wd-product-card--rozwiazania .wd-product-card__title {
	margin-bottom: 10px;
	font-size: 17px;
	line-height: 1.35;
	color: #132a58;
}

.wd-product-card--rozwiazania .wd-product-card__description,
.wd-product-card--rozwiazania .wd-product-card__extra {
	width: 100%;
	color: #596783;
}

.wd-product-card--rozwiazania .wd-product-card__link {
	justify-content: center;
	align-self: center;
	margin-top: auto;
}

@media (max-width: 1200px) {
	.wd-product-grid--rozwiazania:not(.wd-grid--compact) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.wd-product-grid--rozwiazania,
	.wd-product-grid--rozwiazania:not(.wd-grid--compact) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.wd-product-grid--rozwiazania,
	.wd-product-grid--rozwiazania:not(.wd-grid--compact) {
		grid-template-columns: minmax(0, 1fr);
	}

	.wd-product-card--rozwiazania .wd-product-card__image {
		height: 105px;
	}
}


/* Losowe produkty – [wd_produkty_losowe] */
.wd-random-products {
	width: 100%;
}

.wd-random-products__title {
	position: relative;
	margin: 0 0 28px;
	padding-bottom: 12px;
	text-align: center;
	font-size: clamp(24px, 2.1vw, 32px);
	line-height: 1.2;
	color: #132a58;
}

.wd-random-products__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 42px;
	height: 3px;
	background: #18a844;
	transform: translateX(-50%);
}

.wd-random-products__grid {
	--wd-grid-gap: 24px;
}

/*
 * Przy odstępie 24 px cień ograniczamy do mniej niż połowy gapu,
 * zgodnie z zasadą projektową dla box-shadow.
 */
.wd-random-products .wd-product-card {
	box-shadow: 0 3px 8px rgba(31, 50, 87, 0.045);
}

.wd-product-card--random .wd-product-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: auto;
	height: 190px;
	padding: 12px 14px 0;
	background: #fff;
}

.wd-product-card--random .wd-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wd-product-card--random:hover .wd-product-card__image img {
	transform: scale(1.02);
}

.wd-product-card--random .wd-product-card__body {
	padding: 12px 18px 20px;
}

.wd-product-card--random .wd-product-card__title {
	color: #132a58;
}

@media (max-width: 1100px) {
	.wd-random-products__grid:not(.wd-grid--compact) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.wd-random-products__grid,
	.wd-random-products__grid:not(.wd-grid--compact) {
		grid-template-columns: minmax(0, 1fr);
	}

	.wd-product-card--random .wd-product-card__image {
		height: 165px;
	}
}

/* 1.3.9 – ręcznie wybrane produkty dla wpisu Rozwiązania. */
.wd-solution-products {
	width: 100%;
}

.wd-solution-products__title {
	position: relative;
	margin: 0 0 28px;
	padding-bottom: 12px;
	text-align: center;
	font-size: clamp(24px, 2vw, 32px);
	font-weight: 700;
	line-height: 1.2;
	color: #132a58;
}

.wd-solution-products__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 42px;
	height: 3px;
	background: #18a844;
	transform: translateX(-50%);
}

.wd-solution-products__grid {
	--wd-grid-gap: 18px;
}

.wd-product-card--solution-recommended .wd-product-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 180px;
	aspect-ratio: auto;
	padding: 12px 14px 0;
	background: #fff;
}

.wd-product-card--solution-recommended .wd-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.wd-product-card--solution-recommended .wd-product-card__body {
	padding: 12px 16px 18px;
}

.wd-product-card--solution-recommended .wd-product-card__title {
	color: #132a58;
}

.wd-solution-products__footer {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}

.wd-solution-products__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid #536b9b;
	border-radius: 7px;
	background: #fff;
	color: #132a58;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.wd-solution-products__button:hover,
.wd-solution-products__button:focus-visible {
	background: #132a58;
	border-color: #132a58;
	color: #fff;
	text-decoration: none;
}

@media (max-width: 620px) {
	.wd-product-card--solution-recommended .wd-product-card__image {
		height: 160px;
	}

	.wd-solution-products__footer {
		margin-top: 20px;
	}
}

/* Przy gapie 18 px ograniczamy zasięg cienia do mniej niż połowy odstępu. */
.wd-solution-products .wd-product-card {
	box-shadow: 0 3px 8px rgba(31, 50, 87, 0.045);
}


/* 1.3.13 – komunikat niepoprawnej konfiguracji shortcode. Bez box-shadow. */
.wd-shortcode-error {
	width: 100%;
	margin: 12px 0;
	padding: 10px 12px;
	border: 1px solid #d63638;
	border-radius: 4px;
	background: #fcf0f1;
	color: #8a2424;
	font-size: 14px;
	line-height: 1.45;
}

/* ==========================================================
 * WD – Profile widoków 1.6.0
 * Profile sterują wyłącznie głównymi widokami kontrolowanych
 * sekcji. Losowe/polecane/podobne zachowują własne renderery.
 * ========================================================== */
.wd-profile-view:not(.wd-profile-view--legacy) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wd-profile-gap, 24px);
	width: 100%;
}

.wd-profile-view:not(.wd-profile-view--legacy).wd-profile-view--has-sidebar {
	grid-template-columns: minmax(0, 1fr) minmax(220px, var(--wd-profile-sidebar-width, 30%));
	align-items: start;
}
.wd-profile-view:not(.wd-profile-view--legacy).wd-profile-view--sidebar-left {
	grid-template-columns: minmax(220px, var(--wd-profile-sidebar-width, 30%)) minmax(0, 1fr);
}
.wd-profile-view__main,.wd-profile-view__sidebar{min-width:0}

.wd-profile-category-grid,.wd-profile-post-grid {
	display:grid;
	grid-template-columns:repeat(var(--wd-profile-post-cols-desktop,3),minmax(0,1fr));
	gap:var(--wd-profile-gap,24px);
	width:100%;
}
.wd-profile-category-grid{grid-template-columns:repeat(var(--wd-profile-cat-cols-desktop,4),minmax(0,1fr))}
.wd-profile-category-grid[data-wd-profile-items="1"],.wd-profile-post-grid[data-wd-profile-items="1"]{grid-template-columns:minmax(0,min(100%,var(--wd-profile-compact-max,460px)));justify-content:center}
.wd-profile-category-grid[data-wd-profile-items="2"],.wd-profile-post-grid[data-wd-profile-items="2"]{grid-template-columns:repeat(2,minmax(0,var(--wd-profile-compact-max,460px)));justify-content:center}

.wd-profile-card{
	position:relative;
	display:flex;
	min-width:0;
	height:100%;
	background:var(--wd-profile-card-bg,#fff);
	border:var(--wd-profile-border-width,1px) solid var(--wd-profile-border-color,#e5eaf0);
	border-radius:var(--wd-profile-radius,12px);
	overflow:hidden;
	transition:transform var(--wd-profile-hover-duration,.25s) ease,border-color var(--wd-profile-hover-duration,.25s) ease,box-shadow var(--wd-profile-hover-duration,.25s) ease,background-color var(--wd-profile-hover-duration,.25s) ease;
}
.wd-profile-card__click{
	display:flex;
	flex:1 1 auto;
	flex-direction:column;
	min-width:0;
	height:100%;
	color:inherit;
	text-decoration:none;
}
.wd-profile-card__click:hover,.wd-profile-card__click:focus{color:inherit;text-decoration:none}

.wd-profile-card__vertical-flow{
	display:flex;
	flex:1 1 auto;
	flex-direction:column;
	min-width:0;
	gap:var(--wd-profile-content-gap,10px);
	padding:var(--wd-profile-content-padding,18px);
	justify-content:var(--wd-profile-content-justify,flex-start);
	text-align:var(--wd-profile-text-align,left);
}
/* Zdjęcie może być dowolnie ustawione w kolejności i nadal dochodzić do krawędzi kafelka. */
.wd-profile-card__vertical-flow>.wd-profile-card__image{
	width:calc(100% + (var(--wd-profile-content-padding,18px) * 2));
	max-width:none;
	margin-left:calc(var(--wd-profile-content-padding,18px) * -1);
	margin-right:calc(var(--wd-profile-content-padding,18px) * -1);
}
.wd-profile-card__vertical-flow>.wd-profile-card__image:first-child{margin-top:calc(var(--wd-profile-content-padding,18px) * -1)}
.wd-profile-card__vertical-flow>.wd-profile-card__image:last-child{margin-bottom:calc(var(--wd-profile-content-padding,18px) * -1)}

/* Przy object-fit: contain obraz pozostaje wewnątrz padding box treści.
 * Cover/fill zachowują dotychczasowy wariant full-bleed. */
.wd-profile-card.wd-profile-image-fit--contain.wd-profile-card-layout--vertical .wd-profile-card__vertical-flow>.wd-profile-card__image{
	width:100%;
	max-width:100%;
	margin-left:0;
	margin-right:0;
}
.wd-profile-card.wd-profile-image-fit--contain.wd-profile-card-layout--vertical .wd-profile-card__vertical-flow>.wd-profile-card__image:first-child{margin-top:0}
.wd-profile-card.wd-profile-image-fit--contain.wd-profile-card-layout--vertical .wd-profile-card__vertical-flow>.wd-profile-card__image:last-child{margin-bottom:0}

.wd-profile-card__body{
	display:flex;
	flex:1 1 auto;
	flex-direction:column;
	min-width:0;
	gap:var(--wd-profile-content-gap,10px);
	padding:var(--wd-profile-content-padding,18px);
	justify-content:var(--wd-profile-content-justify,flex-start);
	text-align:var(--wd-profile-text-align,left);
}

.wd-profile-card__image{
	position:relative;
	display:block;
	width:100%;
	aspect-ratio:var(--wd-profile-image-ratio,16 / 9);
	overflow:hidden;
	background:var(--wd-profile-image-background,#f5f7fa);
	min-width:0;
}
.wd-profile-card__image img{
	display:block;
	width:100%;
	max-width:var(--wd-profile-image-max-width,100%);
	height:100%;
	margin-left:var(--wd-profile-image-margin-left,0);
	margin-right:var(--wd-profile-image-margin-right,0);
	object-fit:var(--wd-profile-image-fit,cover);
	object-position:var(--wd-profile-image-position,center center);
	transition:transform var(--wd-profile-hover-duration,.25s) ease,opacity var(--wd-profile-hover-duration,.25s) ease;
}

/* 1.8.30: dokładne kolorowanie przezroczystych PNG na hover za pomocą maski alfa. */
.wd-profile-png-image{position:relative}
.wd-profile-png-image::after{
	content:"";
	position:absolute;
	z-index:1;
	left:var(--wd-profile-png-left,0px);
	top:var(--wd-profile-png-top,0px);
	width:var(--wd-profile-png-width,100%);
	height:var(--wd-profile-png-height,100%);
	background:var(--wd-profile-hover-png-color,#fff);
	-webkit-mask-image:var(--wd-profile-png-mask);
	mask-image:var(--wd-profile-png-mask);
	-webkit-mask-repeat:no-repeat;
	mask-repeat:no-repeat;
	-webkit-mask-position:var(--wd-profile-png-position,center center);
	mask-position:var(--wd-profile-png-position,center center);
	-webkit-mask-size:var(--wd-profile-png-mask-size,contain);
	mask-size:var(--wd-profile-png-mask-size,contain);
	opacity:0;
	pointer-events:none;
	transition:opacity var(--wd-profile-hover-duration,.25s) ease,transform var(--wd-profile-hover-duration,.25s) ease;
}


/* Poziome warianty: obraz i kontener treści są osobnymi strefami. */
.wd-profile-card-layout--horizontal_left .wd-profile-card__click,
.wd-profile-card-layout--horizontal_right .wd-profile-card__click,
.wd-profile-card-layout--horizontal_checkerboard .wd-profile-card__click{
	flex-direction:row;
}
.wd-profile-card-layout--horizontal_right .wd-profile-card__click{flex-direction:row-reverse}
.wd-profile-card-layout--horizontal_left .wd-profile-card__image,
.wd-profile-card-layout--horizontal_right .wd-profile-card__image,
.wd-profile-card-layout--horizontal_checkerboard .wd-profile-card__image{
	flex:0 0 var(--wd-profile-horizontal-image-width,45%);
	width:var(--wd-profile-horizontal-image-width,45%);
	height:auto;
	align-self:stretch;
	aspect-ratio:auto;
}

.wd-profile-card__slot{min-width:0}
.wd-profile-card__overlay{
	position:absolute;
	z-index:2;
	display:block;
	max-width:100%;
	pointer-events:none;
}
.wd-profile-card__overlay>.wd-profile-card__slot{max-width:100%}
.wd-profile-card__date,.wd-profile-card__category,.wd-profile-card__author{font-size:12px;line-height:1.4;color:var(--wd-profile-text-color,#637087)}
.wd-profile-card__category--badge{
	display:inline-flex;align-items:center;width:fit-content;padding:4px 9px;border-radius:999px;background:#eaf7ed;color:#16833a;font-size:11px;font-weight:700;line-height:1.2
}
.wd-profile-card__title{display:block;margin:0;font-size:18px;font-weight:700;line-height:1.35;color:var(--wd-profile-title-color,#132a58)}
.wd-profile-card__description,.wd-profile-card__extra{margin:0;font-size:14px;line-height:1.6;color:var(--wd-profile-text-color,#647087)}
.wd-profile-card__description>:first-child,.wd-profile-card__extra>:first-child{margin-top:0}.wd-profile-card__description>:last-child,.wd-profile-card__extra>:last-child{margin-bottom:0}
.wd-profile-card__link{display:inline-flex;align-items:center;gap:6px;width:fit-content;color:var(--wd-profile-cta-color,#159b39);font-size:14px;font-weight:700;text-decoration:none}
.wd-profile-card__title,.wd-profile-card__description,.wd-profile-card__extra,.wd-profile-card__date,.wd-profile-card__category,.wd-profile-card__author,.wd-profile-card__link,.wd-profile-card i,.wd-profile-card svg{transition:color var(--wd-profile-hover-duration,.25s) ease}
.wd-profile-cta-bottom .wd-profile-card__body>.wd-profile-card__link,
.wd-profile-cta-bottom .wd-profile-card__vertical-flow>.wd-profile-card__link{margin-top:auto}
.wd-profile-cta--button .wd-profile-card__link{padding:9px 14px;border:1px solid currentColor;border-radius:7px}

.wd-profile-card__badge{position:absolute;top:12px;right:12px;z-index:3;display:inline-flex;align-items:center;width:fit-content;padding:4px 9px;border-radius:999px;background:var(--wd-profile-badge-bg,#159b39);color:var(--wd-profile-badge-color,#fff);font-size:11px;font-weight:700;line-height:1.2}
.wd-profile-card.wd-badge--top_left .wd-profile-card__badge{left:12px;right:auto}

.wd-profile-equal-height .wd-profile-card{height:100%}
.wd-profile-view:not(.wd-profile-equal-height) .wd-profile-category-grid,.wd-profile-view:not(.wd-profile-equal-height) .wd-profile-post-grid{align-items:start}
.wd-profile-view:not(.wd-profile-equal-height) .wd-profile-card{height:auto}
/* Hover kafelków standardowych: ruch, wygląd i cień działają niezależnie. */
.wd-profile-hover-motion--lift .wd-profile-card:not(.wd-profile-card--featured):hover{transform:translateY(-3px)}
.wd-profile-hover-motion--card_zoom .wd-profile-card:not(.wd-profile-card--featured):hover{transform:scale(1.02)}
.wd-profile-hover-motion--card_shrink .wd-profile-card:not(.wd-profile-card--featured):hover{transform:scale(.985)}
.wd-profile-hover-motion--image_zoom .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__image img{transform:scale(1.035)}
.wd-profile-hover-look--border .wd-profile-card:not(.wd-profile-card--featured):hover{border-color:var(--wd-profile-hover-border,#159b39)}
.wd-profile-hover-look--background .wd-profile-card:not(.wd-profile-card--featured):hover{background:var(--wd-profile-hover-bg,#081f3a)}
.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover{background:var(--wd-profile-hover-bg,#081f3a);border-color:var(--wd-profile-hover-border,#081f3a)}
.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__title,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__title{color:var(--wd-profile-hover-title,#fff)}
.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__description,.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__extra,.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__date,.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__author,.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__category:not(.wd-profile-card__category--badge),.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__description,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__extra,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__date,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__author,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__category:not(.wd-profile-card__category--badge){color:var(--wd-profile-hover-text,#eef2f7)}
.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__description *,.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__extra *,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__description *,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__extra *{color:inherit}
.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__link,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-card__link{color:var(--wd-profile-hover-cta,#c99a55)}
.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover i,.wd-profile-hover-look--contrast .wd-profile-card:not(.wd-profile-card--featured):hover svg,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover i,.wd-profile-hover-look--custom .wd-profile-card:not(.wd-profile-card--featured):hover svg{color:var(--wd-profile-hover-icon,#c99a55)}
.wd-profile-hover-look--custom.wd-profile-hover-png--enabled .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-png-image img,.wd-profile-hover-look--custom.wd-profile-hover-png--enabled .wd-product-card:hover .wd-profile-png-image img,.wd-profile-hover-look--custom.wd-profile-hover-png--enabled .wd-product-category-card:hover .wd-profile-png-image img{opacity:0}
.wd-profile-hover-look--custom.wd-profile-hover-png--enabled .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-png-image::after,.wd-profile-hover-look--custom.wd-profile-hover-png--enabled .wd-product-card:hover .wd-profile-png-image::after,.wd-profile-hover-look--custom.wd-profile-hover-png--enabled .wd-product-category-card:hover .wd-profile-png-image::after{opacity:1}
.wd-profile-hover-motion--image_zoom.wd-profile-hover-png--enabled .wd-profile-card:not(.wd-profile-card--featured):hover .wd-profile-png-image::after{transform:scale(1.035)}
.wd-profile-hover-shadow--none .wd-profile-card:not(.wd-profile-card--featured):hover,.wd-profile-hover-shadow--subtle .wd-profile-card:not(.wd-profile-card--featured):hover,.wd-profile-hover-shadow--medium .wd-profile-card:not(.wd-profile-card--featured):hover{box-shadow:var(--wd-profile-hover-shadow,none)}

/* Hover kafelka wyróżnionego. */
.wd-profile-card--featured.wd-featured-hover-motion--lift:hover{transform:translateY(-3px)}
.wd-profile-card--featured.wd-featured-hover-motion--card_zoom:hover{transform:scale(1.02)}
.wd-profile-card--featured.wd-featured-hover-motion--card_shrink:hover{transform:scale(.985)}
.wd-profile-card--featured.wd-featured-hover-motion--image_zoom:hover .wd-profile-card__image img{transform:scale(1.035)}
.wd-profile-card--featured.wd-featured-hover-look--border:hover{border-color:var(--wd-profile-hover-border,#159b39)}
.wd-profile-card--featured.wd-featured-hover-look--background:hover{background:var(--wd-profile-hover-bg,#081f3a)}
.wd-profile-card--featured.wd-featured-hover-look--contrast:hover,.wd-profile-card--featured.wd-featured-hover-look--custom:hover{background:var(--wd-profile-hover-bg,#081f3a);border-color:var(--wd-profile-hover-border,#081f3a)}
.wd-profile-card--featured.wd-featured-hover-look--contrast:hover .wd-profile-card__title,.wd-profile-card--featured.wd-featured-hover-look--custom:hover .wd-profile-card__title{color:var(--wd-profile-hover-title,#fff)}
.wd-profile-card--featured.wd-featured-hover-look--contrast:hover .wd-profile-card__description,.wd-profile-card--featured.wd-featured-hover-look--contrast:hover .wd-profile-card__extra,.wd-profile-card--featured.wd-featured-hover-look--contrast:hover .wd-profile-card__date,.wd-profile-card--featured.wd-featured-hover-look--contrast:hover .wd-profile-card__author,.wd-profile-card--featured.wd-featured-hover-look--contrast:hover .wd-profile-card__category:not(.wd-profile-card__category--badge),.wd-profile-card--featured.wd-featured-hover-look--custom:hover .wd-profile-card__description,.wd-profile-card--featured.wd-featured-hover-look--custom:hover .wd-profile-card__extra,.wd-profile-card--featured.wd-featured-hover-look--custom:hover .wd-profile-card__date,.wd-profile-card--featured.wd-featured-hover-look--custom:hover .wd-profile-card__author,.wd-profile-card--featured.wd-featured-hover-look--custom:hover .wd-profile-card__category:not(.wd-profile-card__category--badge){color:var(--wd-profile-hover-text,#eef2f7)}
.wd-profile-card--featured.wd-featured-hover-look--contrast:hover .wd-profile-card__description *,.wd-profile-card--featured.wd-featured-hover-look--contrast:hover .wd-profile-card__extra *,.wd-profile-card--featured.wd-featured-hover-look--custom:hover .wd-profile-card__description *,.wd-profile-card--featured.wd-featured-hover-look--custom:hover .wd-profile-card__extra *{color:inherit}
.wd-profile-card--featured.wd-featured-hover-look--contrast:hover .wd-profile-card__link,.wd-profile-card--featured.wd-featured-hover-look--custom:hover .wd-profile-card__link{color:var(--wd-profile-hover-cta,#c99a55)}
.wd-profile-card--featured.wd-featured-hover-look--contrast:hover i,.wd-profile-card--featured.wd-featured-hover-look--contrast:hover svg,.wd-profile-card--featured.wd-featured-hover-look--custom:hover i,.wd-profile-card--featured.wd-featured-hover-look--custom:hover svg{color:var(--wd-profile-hover-icon,#c99a55)}
.wd-profile-card--featured.wd-featured-hover-look--custom.wd-featured-hover-png--enabled:hover .wd-profile-png-image img{opacity:0}
.wd-profile-card--featured.wd-featured-hover-look--custom.wd-featured-hover-png--enabled:hover .wd-profile-png-image::after{opacity:1}
.wd-profile-card--featured.wd-featured-hover-motion--image_zoom.wd-featured-hover-png--enabled:hover .wd-profile-png-image::after{transform:scale(1.035)}
.wd-profile-card--featured.wd-featured-hover-shadow--none:hover,.wd-profile-card--featured.wd-featured-hover-shadow--subtle:hover,.wd-profile-card--featured.wd-featured-hover-shadow--medium:hover{box-shadow:var(--wd-profile-hover-shadow,none)}

.wd-profile-featured{margin-bottom:var(--wd-profile-gap,24px)}
.wd-profile-card--featured .wd-profile-card__click{display:grid;grid-template-columns:var(--wd-profile-featured-image-width,50%) minmax(0,1fr)}
.wd-profile-card--featured .wd-profile-card__image{height:100%;min-height:280px;aspect-ratio:auto}
.wd-profile-card--featured .wd-profile-card__body{justify-content:center;padding:clamp(24px,4vw,48px)}
.wd-profile-card--featured .wd-profile-card__title{font-size:clamp(24px,2.4vw,34px)}

/* Dynamiczne breakpointy i gapy profilu są dopisywane przez scoped CSS w rendererze. */


/* === Profile widoków: nawigacja 1.7.0 === */
.wd-profile-card--load-hidden{display:none!important}
.wd-profile-pagination{margin-top:28px;display:flex;justify-content:center}
.wd-profile-pagination .page-numbers{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:0;padding:0;list-style:none}
.wd-profile-pagination .page-numbers li{margin:0;padding:0}
.wd-profile-pagination a.page-numbers,
.wd-profile-pagination span.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;padding:7px 11px;border:1px solid var(--wd-profile-border-color,#dbe3ef);border-radius:7px;color:var(--wd-profile-text-color,#647087);text-decoration:none;line-height:1.2}
.wd-profile-pagination span.current{font-weight:700;color:var(--wd-profile-cta-color,#159b39);border-color:var(--wd-profile-cta-color,#159b39)}
.wd-profile-load-more-wrap{display:flex;justify-content:center;margin-top:28px}
.wd-profile-load-more{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 18px;border:1px solid currentColor;border-radius:7px;background:transparent;color:var(--wd-profile-cta-color,#159b39);font:inherit;font-weight:700;cursor:pointer}
.wd-profile-load-more:hover,.wd-profile-load-more:focus-visible{background:rgba(21,155,57,.06)}
.wd-profile-card__click:focus:not(:focus-visible){outline:none}
.wd-profile-card__click:focus-visible{outline:2px solid var(--wd-profile-hover-border,#159b39);outline-offset:2px}

/* === WD – Okruszki 1.8.12 === */
.wd-breadcrumbs{
	box-sizing:border-box;
	width:100%;
	margin:var(--wd-bc-margin-desktop,0);
	padding:var(--wd-bc-padding-desktop,0);
	background:var(--wd-bc-bg,transparent);
	border:var(--wd-bc-border-width,0) solid var(--wd-bc-border-color,transparent);
	border-radius:var(--wd-bc-radius,0);
	font-size:var(--wd-bc-font-size-desktop,14px);
	font-weight:var(--wd-bc-font-weight,400);
	line-height:var(--wd-bc-line-height,1.5);
}
.wd-breadcrumbs__list{
	display:flex;
	align-items:center;
	flex-wrap:wrap;
	gap:var(--wd-bc-gap-desktop,8px);
	margin:0;
	padding:0;
	list-style:none;
}
.wd-breadcrumbs__item,.wd-breadcrumbs__separator{margin:0;padding:0;list-style:none}
.wd-breadcrumbs__item{display:inline-flex;align-items:center;min-width:0}
.wd-breadcrumbs__link,.wd-breadcrumbs__text{display:inline-flex;align-items:center;gap:.38em;min-width:0}
.wd-breadcrumbs__link{color:var(--wd-bc-link-color,inherit);text-decoration:none}
.wd-breadcrumbs__link:hover,.wd-breadcrumbs__link:focus{color:var(--wd-bc-link-hover,inherit);text-decoration:underline}
.wd-breadcrumbs__item.is-current .wd-breadcrumbs__text,
.wd-breadcrumbs__item.is-current .wd-breadcrumbs__link{color:var(--wd-bc-current-color,inherit)}
.wd-breadcrumbs__separator{color:var(--wd-bc-separator-color,currentColor);user-select:none}
.wd-breadcrumbs__home-icon{display:block;width:1.05em;height:1.05em;flex:0 0 auto;fill:currentColor}
@media (max-width: 1024px){
	.wd-breadcrumbs{font-size:var(--wd-bc-font-size-tablet,var(--wd-bc-font-size-desktop,14px));margin:var(--wd-bc-margin-tablet,var(--wd-bc-margin-desktop,0));padding:var(--wd-bc-padding-tablet,var(--wd-bc-padding-desktop,0))}
	.wd-breadcrumbs__list{gap:var(--wd-bc-gap-tablet,var(--wd-bc-gap-desktop,8px))}
}
@media (max-width: 767px){
	.wd-breadcrumbs{font-size:var(--wd-bc-font-size-mobile,var(--wd-bc-font-size-tablet,13px));margin:var(--wd-bc-margin-mobile,var(--wd-bc-margin-tablet,0));padding:var(--wd-bc-padding-mobile,var(--wd-bc-padding-tablet,0))}
	.wd-breadcrumbs__list{gap:var(--wd-bc-gap-mobile,var(--wd-bc-gap-tablet,6px))}
}

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

/* === WD – Nagłówek wpisu + WD – Spis treści 1.8.15 === */
.wd-article-header{box-sizing:border-box;width:100%;color:inherit}
.wd-article-header--align-left{text-align:left}.wd-article-header--align-center{text-align:center}.wd-article-header--align-right{text-align:right}
.wd-article-header__eyebrow{margin:0 0 14px;font-size:13px;font-weight:700;line-height:1.35;letter-spacing:.04em;text-transform:uppercase;color:#365d9d}
.wd-article-header__title{margin:0;color:inherit}
.wd-article-header__description{max-width:980px;margin:26px 0 0;color:inherit}
.wd-article-header--align-center .wd-article-header__description{margin-left:auto;margin-right:auto}
.wd-article-header--align-right .wd-article-header__description{margin-left:auto}
.wd-article-header__meta{display:flex;align-items:center;flex-wrap:wrap;gap:18px 34px;margin-top:30px;font-size:15px;line-height:1.4}
.wd-article-header--align-center .wd-article-header__meta{justify-content:center}.wd-article-header--align-right .wd-article-header__meta{justify-content:flex-end}
.wd-article-header__meta-item{display:inline-flex;align-items:center;gap:10px;min-width:0}
.wd-article-header__meta-item a{color:inherit;text-decoration:none}.wd-article-header__meta-item a:hover{text-decoration:underline}
.wd-article-header__icon{display:inline-flex;width:22px;height:22px;flex:0 0 22px}.wd-article-header__icon svg{display:block;width:100%;height:100%;fill:currentColor}
.wd-article-header__divider{width:100%;height:1px;margin-top:34px;background:currentColor;opacity:.15}
.wd-article-header--empty{padding:14px;border:1px dashed #ccd2da}

.wd-toc{box-sizing:border-box;width:100%;padding:var(--wd-toc-padding-desktop,20px);margin:var(--wd-toc-margin-desktop,0);border:var(--wd-toc-border-width,1px) solid var(--wd-toc-border,#e2e6ec);border-radius:var(--wd-toc-radius,10px);background:var(--wd-toc-bg,#fff);color:var(--wd-toc-text,#1d2733)}
.wd-toc__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wd-toc__title{font-size:var(--wd-toc-title-size-desktop,18px);font-weight:var(--wd-toc-title-weight,700);line-height:1.3;color:var(--wd-toc-title-color,var(--wd-toc-text,#1d2733))}
.wd-toc__toggle{display:none;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:0;background:transparent;color:inherit;font-size:22px;cursor:pointer}
.wd-toc__body{margin-top:var(--wd-toc-body-gap,14px);padding-left:var(--wd-toc-list-padding-left,0px);box-sizing:border-box}
/* Reset listy ma podwyższoną specyficzność, aby nadpisać reguły motywów (np. Astra: .entry-content ul { padding-left:20px; }). */
.entry-content .wd-toc .wd-toc__list,.entry-content .wd-toc .wd-toc__sublist,.wd-toc .wd-toc__list,.wd-toc .wd-toc__sublist{margin:0;padding:0;padding-inline-start:0;list-style:none}
.entry-content .wd-toc .wd-toc__sublist,.wd-toc .wd-toc__sublist{margin-top:var(--wd-toc-item-gap,7px);padding-left:var(--wd-toc-h3-indent,18px);padding-inline-start:var(--wd-toc-h3-indent,18px)}
.wd-toc__item{margin:0;padding:0}.wd-toc__item+.wd-toc__item{margin-top:var(--wd-toc-item-gap,7px)}
.wd-toc__link{display:block;color:var(--wd-toc-link,var(--wd-toc-text,#1d2733));text-decoration:none;line-height:1.45;transition:none}
.wd-toc__item--h1>.wd-toc__link,.wd-toc__item--h2>.wd-toc__link{font-size:var(--wd-toc-h2-size-desktop,16px);font-weight:var(--wd-toc-h2-weight,400)}
.wd-toc__item--h3>.wd-toc__link{font-size:var(--wd-toc-h3-size-desktop,15px);font-weight:var(--wd-toc-h3-weight,400);opacity:.9}
.wd-toc__link:hover,.wd-toc__link:focus-visible{color:var(--wd-toc-hover,#165dcc)}
/* Rezerwujemy odstęp dla aktywnej kreski na wszystkich linkach. Dzięki temu zmiana aktywnej sekcji nie zmienia szerokości tekstu ani wysokości spisu podczas przewijania. */
.wd-toc:not(.wd-toc--numbered) .wd-toc__link{padding-left:var(--wd-toc-active-padding-left,10px)}
.wd-toc__link.is-active{color:var(--wd-toc-active,#165dcc);background:var(--wd-toc-active-bg,transparent);box-shadow:inset var(--wd-toc-active-border-width,3px) 0 0 var(--wd-toc-active-border,#165dcc)}
/* Przy numeracji rezerwujemy odstęp z prawej i tam rysujemy kreskę aktywnej pozycji. */
.wd-toc--numbered .wd-toc__link{padding-right:var(--wd-toc-active-padding-left,10px)}
.wd-toc--numbered .wd-toc__link.is-active{box-shadow:inset calc(-1 * var(--wd-toc-active-border-width,3px)) 0 0 var(--wd-toc-active-border,#165dcc)}
.entry-content .wd-toc.wd-toc--numbered .wd-toc__list,.wd-toc.wd-toc--numbered .wd-toc__list{list-style:decimal;padding-left:1.4em;padding-inline-start:1.4em}.entry-content .wd-toc.wd-toc--numbered .wd-toc__sublist,.wd-toc.wd-toc--numbered .wd-toc__sublist{list-style:decimal;padding-left:1.5em;padding-inline-start:1.5em}
.wd-toc--numbered .wd-toc__item{display:list-item}
.wd-toc--empty p{margin-bottom:0}

/* Opcjonalne odstępy treści wpisu – sterowane klasą body z ustawień WD. */
.wd-article-zero-p-margin .wd-article-content p{margin-bottom:0!important}

/* Styl spisu „pionowa oś z punktami”. */
.wd-toc--timeline .wd-toc__list,
.wd-toc--timeline .wd-toc__sublist{position:relative}
.entry-content .wd-toc.wd-toc--timeline .wd-toc__list,.wd-toc.wd-toc--timeline .wd-toc__list{padding-left:28px;padding-inline-start:28px}
.wd-toc--timeline .wd-toc__list::before{content:"";position:absolute;left:7px;top:.55em;bottom:.55em;width:var(--wd-toc-timeline-line-width,1px);background:var(--wd-toc-timeline-line,#49627d);opacity:.8}
.wd-toc--timeline .wd-toc__list>.wd-toc__item{position:relative}
.wd-toc--timeline .wd-toc__list>.wd-toc__item::before{content:"";position:absolute;left:-25px;top:.72em;width:var(--wd-toc-timeline-dot-size,8px);height:var(--wd-toc-timeline-dot-size,8px);box-sizing:border-box;border:2px solid var(--wd-toc-timeline-dot,#d8c7aa);border-radius:50%;background:var(--wd-toc-bg,#fff);transform:translateY(-50%);z-index:1}
.entry-content .wd-toc.wd-toc--timeline .wd-toc__sublist,.wd-toc.wd-toc--timeline .wd-toc__sublist{padding-left:var(--wd-toc-h3-indent,18px);padding-inline-start:var(--wd-toc-h3-indent,18px)}

/* Inteligentny sticky dla całego panelu bocznego. JS przełącza tryb sticky/smart. */
.stiky-box,.sticky-box{box-sizing:border-box;align-self:flex-start;will-change:auto;transition:none!important}
.stiky-box.wd-smart-sticky--native,.sticky-box.wd-smart-sticky--native,.stiky-box.wd-smart-sticky--short,.sticky-box.wd-smart-sticky--short{position:sticky;top:var(--wd-sticky-offset,0px);transform:none!important;will-change:auto}
.stiky-box.wd-smart-sticky--tall,.sticky-box.wd-smart-sticky--tall{position:relative;top:0}
/* Tryb proporcjonalny ma celowo krótkie i stanowcze przejście. Standardowy sticky pozostaje bez animacji. */
.stiky-box.wd-smart-sticky--proportional,.sticky-box.wd-smart-sticky--proportional{will-change:transform;transition:transform 90ms linear!important}
@media(max-width:767px){.stiky-box,.sticky-box{position:static!important;top:auto!important;transform:none!important;will-change:auto;transition:none!important}}

@media (max-width:1024px){
	.wd-toc{padding:var(--wd-toc-padding-tablet,var(--wd-toc-padding-desktop,20px));margin:var(--wd-toc-margin-tablet,var(--wd-toc-margin-desktop,0))}
	.wd-toc__title{font-size:var(--wd-toc-title-size-tablet,var(--wd-toc-title-size-desktop,18px))}
	.wd-toc__item--h1>.wd-toc__link,.wd-toc__item--h2>.wd-toc__link{font-size:var(--wd-toc-h2-size-tablet,var(--wd-toc-h2-size-desktop,16px))}
	.wd-toc__item--h3>.wd-toc__link{font-size:var(--wd-toc-h3-size-tablet,var(--wd-toc-h3-size-desktop,15px))}
}
@media (max-width:767px){
	.wd-article-header__meta{gap:14px 20px}
	.wd-toc{padding:var(--wd-toc-padding-mobile,var(--wd-toc-padding-tablet,16px));margin:var(--wd-toc-margin-mobile,var(--wd-toc-margin-tablet,0))}
	.wd-toc__title{font-size:var(--wd-toc-title-size-mobile,var(--wd-toc-title-size-tablet,16px))}
	.wd-toc__item--h1>.wd-toc__link,.wd-toc__item--h2>.wd-toc__link{font-size:var(--wd-toc-h2-size-mobile,var(--wd-toc-h2-size-tablet,15px))}
	.wd-toc__item--h3>.wd-toc__link{font-size:var(--wd-toc-h3-size-mobile,var(--wd-toc-h3-size-tablet,14px))}
	.wd-toc--mobile-hidden{display:none}
	.wd-toc--mobile-collapsed .wd-toc__toggle{display:inline-flex}
	.wd-toc--mobile-collapsed .wd-toc__body{display:none}
	.wd-toc--mobile-collapsed.is-open .wd-toc__body{display:block}
	.wd-toc--mobile-collapsed.is-open .wd-toc__toggle span{transform:rotate(180deg)}
}

/* === WD – Kolor dominujący 2.0.4 === */
/*
 * Reguły działają wyłącznie wtedy, gdy wpis ma ustawiony kolor dominujący
 * oraz zaznaczony konkretny obszar w metaboksie WD. Profile kafelków korzystają
 * z tych samych zmiennych niezależnie od poniższych opcji treści.
 */
body.wd-dominant-target-markers :is(.entry-content,.wp-block-post-content,.wd-article-content) :is(ul,ol) li::marker{color:var(--wd-dominant-color)}
body.wd-dominant-target-markers :is(.entry-content,.wp-block-post-content,.wd-article-content) .spec-li li::before{color:var(--wd-dominant-color)}
.wd-profile-card.wd-dominant-target-markers :is(ul,ol) li::marker,.wd-product-card.wd-dominant-target-markers :is(ul,ol) li::marker{color:var(--wd-dominant-color)}
.wd-profile-card.wd-dominant-target-markers .spec-li li::before,.wd-product-card.wd-dominant-target-markers .spec-li li::before,.spec-li .wd-profile-card.wd-dominant-target-markers li::before,.spec-li .wd-product-card.wd-dominant-target-markers li::before{color:var(--wd-dominant-color)}
body.wd-dominant-target-text :is(.entry-content,.wp-block-post-content,.wd-article-content) p{color:var(--wd-dominant-color)}
body.wd-dominant-target-headings :is(.entry-content,.wp-block-post-content,.wd-article-content) :is(h1,h2,h3,h4,h5,h6){color:var(--wd-dominant-color)}
body.wd-dominant-target-links :is(.entry-content,.wp-block-post-content,.wd-article-content) a:not(.wp-block-button__link):not(.wp-element-button){color:var(--wd-dominant-color)}
body.wd-dominant-target-strong :is(.entry-content,.wp-block-post-content,.wd-article-content) :is(strong,b){color:var(--wd-dominant-color)}
body.wd-dominant-target-em :is(.entry-content,.wp-block-post-content,.wd-article-content) em,
body.wd-dominant-target-em :is(.entry-content,.wp-block-post-content,.wd-article-content) i:not([class]){color:var(--wd-dominant-color)}
body.wd-dominant-target-buttons :is(.entry-content,.wp-block-post-content,.wd-article-content) :is(.wp-block-button__link,.wp-element-button,.button,button,input[type="button"],input[type="submit"]){background-color:var(--wd-dominant-color);border-color:var(--wd-dominant-color);color:var(--wd-dominant-contrast)}
body.wd-dominant-target-icons :is(.entry-content,.wp-block-post-content,.wd-article-content) :is(.fa,.fas,.far,.fab,.fa-solid,.fa-regular,.fa-brands,[class*=" icon-"],[class^="icon-"],svg){color:var(--wd-dominant-color)}
body.wd-dominant-target-blockquote :is(.entry-content,.wp-block-post-content,.wd-article-content) blockquote{border-color:var(--wd-dominant-color);color:var(--wd-dominant-dark)}
body.wd-dominant-target-separator :is(.entry-content,.wp-block-post-content,.wd-article-content) :is(hr,.wp-block-separator){border-color:var(--wd-dominant-color);background-color:var(--wd-dominant-color)}
body.wd-dominant-target-tables :is(.entry-content,.wp-block-post-content,.wd-article-content) :is(table,th,td){border-color:var(--wd-dominant-color)}
body.wd-dominant-target-tables :is(.entry-content,.wp-block-post-content,.wd-article-content) th{background:var(--wd-dominant-color);color:var(--wd-dominant-contrast)}
body.wd-dominant-target-toc .wd-toc{--wd-toc-active:var(--wd-dominant-color);--wd-toc-active-border:var(--wd-dominant-color);--wd-toc-hover:var(--wd-dominant-dark)}
