/* Wiedza / archiwa: równa wysokość kafelków w wierszu, przycisk "Czytaj więcej" przy dolnej krawędzi */
.p4y-blog-grid > [class*="col-"] {
	display: flex;
}
.p4y-blog-grid > [class*="col-"] > .ltn__blog-item {
	display: flex;
	flex-direction: column;
	width: 100%;
}
.p4y-blog-grid .ltn__blog-brief {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}
.p4y-blog-grid .ltn__blog-title {
	flex-grow: 1; /* tytuł wypełnia wolne miejsce, linia i przycisk lądują na dole – marginesy motywu bez zmian */
}
/* paginacja zajmuje pełny wiersz i nie jest rozciągana */
.p4y-blog-grid > .col-lg-12 {
	display: block;
}

/* =====================================================================
   Treść wpisów "Wiedza" – wygląd zgodny z podglądem od klienta (podglad.html)
   Zakres: treść wpisu (.ltn__blog-details-inner) oraz treść strony autora
   (kontener, w którym bezpośrednio stoi okrągłe zdjęcie .is-style-rounded)
   ===================================================================== */
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) {
	font-size: 17px;
	line-height: 1.65;
	color: #1f2023;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) p {
	margin: 0 0 1em;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) h2 {
	font-size: 22px;
	line-height: 1.25;
	margin: 36px 0 12px;
	padding-top: 24px;
	border-top: 1px solid #e3e0da;
	clear: both;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) h3 {
	font-size: 18px;
	line-height: 1.25;
	margin: 24px 0 10px;
}
/* linki w treści: czerwony akcent jak w podglądzie */
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) a {
	color: #c4121f;
	text-decoration: underline;
	text-underline-offset: 2px;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) a:hover {
	color: #8f0d17;
}
/* listy: zwykłe punkty/numery (motyw część list resetuje) */
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) ul,
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) ol {
	margin: 0 0 1em;
	padding-left: 22px;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) ul { list-style: disc; }
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) ol { list-style: decimal; }
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) li {
	list-style: inherit;
	margin: 0 0 6px;
	padding: 0;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) li::before {
	content: none;
}
/* ramka "W skrócie" (blockquote.p4y-skrot) – bez cudzysłowu i kursywy motywu */
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) blockquote {
	position: static;
	margin: 18px 0 24px;
	padding: 14px 18px;
	background: #fff4f4;
	border: 0;
	border-left: 4px solid #c4121f;
	border-radius: 0 8px 8px 0;
	font-size: inherit;
	font-style: normal;
	line-height: inherit;
	color: inherit;
	text-align: left;
	box-shadow: none;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) blockquote::before,
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) blockquote::after {
	content: none !important;
	display: none !important;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) blockquote p {
	margin: 0;
	font-size: inherit;
	font-style: normal;
}
/* linia przed ramką autora */
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) hr {
	border: 0;
	border-top: 2px solid #a99e2e;
	margin: 32px 0;
	opacity: 1;
	background: none;
	height: 0;
}
/* tabele */
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) table {
	width: 100%;
	margin: 20px 0 24px;
	border-collapse: collapse;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	display: block;
	overflow-x: auto;
	border: 0;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) table th,
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) table td {
	border: 1px solid #e3e0da;
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
	background: transparent;
	color: inherit;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) table th {
	font-weight: 700;
}
/* filmy YouTube (filmy i shorty): pełna szerokość, 16:9, zaokrąglone rogi */
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) .wp-block-embed {
	margin: 20px 0;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) .wp-block-embed__wrapper {
	position: relative;
	padding-top: 56.25%;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) .wp-block-embed__wrapper::before {
	content: none !important;
	display: none !important;
}
:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) .wp-block-embed iframe {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
	margin: 0;
}
/* ramka "O autorze" ma style w treści – pilnujemy tylko, żeby motyw ich nie psuł */
.ltn__blog-details-inner .p4y-autor img {
	max-width: none;
	margin: 0;
}
.ltn__blog-details-inner .p4y-autor a {
	text-decoration: none;
}
.ltn__blog-details-inner .p4y-autor p {
	font-size: inherit;
}
@media (max-width: 600px) {
	:is(.ltn__blog-details-inner, :has(> .wp-block-image.is-style-rounded)) {
		font-size: 16px;
	}
}

/* =====================================================================
   Strona autora (/pawel-jablonski/) – okrągłe zdjęcie 240 px, tekst opływa je z prawej
   Działa dla obu struktur bloku obrazka: figure.wp-block-image.alignleft
   oraz div.wp-block-image > figure.alignleft (po "Konwertuj na bloki")
   ===================================================================== */
.wp-block-image.is-style-rounded {
	margin: 0;
}
.wp-block-image.alignleft,
.wp-block-image.is-style-rounded .alignleft {
	float: left;
	display: block;
	width: 240px;
	margin: 4px 28px 16px 0;
}
.wp-block-image.is-style-rounded img {
	display: block;
	width: 240px !important;
	height: 240px !important;
	max-width: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: 50%;
	margin: 0;
}
@media (max-width: 600px) {
	.wp-block-image.alignleft,
	.wp-block-image.is-style-rounded .alignleft {
		float: none;
		margin: 0 auto 20px;
	}
}

/* Strona główna – karuzela "Najnowsze wpisy": równa wysokość kart.
   Bez ingerencji w układ slicka: tytuł ma zawsze wysokość 3 linii (dłuższy kończy się "…"). */
.ltn__blog-slider-one-active .ltn__blog-title {
	line-height: 1.35;
	min-height: calc(1.35em * 3);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}
