/* ================================
   TPD PROSE – typografia artykułu
   ================================ */

:root {
	--tpd-primary: #614D41;
	--tpd-surface-bg: #FAF7F2;
   }

    h5.wp-block-heading {
   	font-weight: 600;
	line-height: 150%;
   }


   .tpd-article-header h1 {
    color: #fff;
    text-align: center;
    font-family: serif;
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    line-height: 1.25;
    font-weight: 600;
    position: relative;
    align-self: stretch;
    max-width: 900px;
   }

.tpd-prose {
	--tpd-text: #111;
	--tpd-muted: #555;

	color: var(--tpd-text);
	line-height: 1.75;
	font-size: 1rem;
}

/* paragraphs */
.tpd-prose :where(p):not(.not-prose *) {
	margin: 1.25em 0;
}

/* headings */
.tpd-prose :where(h2):not(.not-prose *) {
	font-size: 1.6em;
	margin-top: 2.2em;
	margin-bottom: 0.8em;
	line-height: 1.25;
	font-weight: 600;
}

.tpd-prose :where(h3):not(.not-prose *) {
	font-size: 1.3em;
	margin-top: 1.8em;
	margin-bottom: 0.6em;
	font-weight: 600;
}

/* lists */
.tpd-prose :where(ul, ol):not(.not-prose *) {
	padding-left: 1.25em;
	margin: 1.5em 0;
}

.tpd-prose :where(li):not(.not-prose *) {
	margin: 0.4em 0;
}

/* links */
.tpd-prose :where(a):not(.not-prose *) {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* images */
.tpd-prose :where(img):not(.not-prose *) {
	margin: 2em auto;
	border-radius: 4px;
}

/* blockquote / hero-break coexistence */
.tpd-prose :where(blockquote):not(.not-prose *) {
	font-size: 1.3em;
	margin: 2.5em auto;
	padding-left: 1.2em;
	border-left: 5px solid var(--tpd-primary);
}

@media (min-width: 1024px) {
	.tpd-prose-xl {
		font-size: 1.125rem;
	}

	.tpd-prose-xl :where(h2):not(.not-prose *) {
		font-size: 1.8em;
		line-height: 1.15;
	}
}


/* ================================
   TPD – Bibliografia (stopka)
   ================================ */


.tpd-prose .tkd-bibliography-footer {
	margin-top: 3em;          /* było 4em */
	padding-top: 1.5em;       /* było 2em */
	border-top: 1px solid #e5e5e5;
}

/* list wrapper */
.tpd-prose .tkd-bibliography-list {
	margin-top: 1em;          /* było 1.5em */
}

/* single item */
.tpd-prose .tkd-bibliography-item {
	padding: 0.9em 1.2em;     /* 👈 MNIEJ */
	background: #f7f7f7;
	border-radius: 4px;
	line-height: 1.45;        /* było 1.55 */
}

/* title */
.tpd-prose .tkd-bibliography-title {
	margin: 0;
	font-size: 1em;
	font-weight: 500;
	line-height: 1.5;
	color: var(--tpd-text);
}

/* meta: authors + journal */
.tpd-prose .tkd-bibliography-meta {
	margin: 0.5em 0 0;
	font-size: 0.9em;
	color: var(--tpd-muted);
}

/* link */
.tpd-prose .tkd-bibliography-link a {
	color: #7f6f55;                 /* trochę ciemniejszy */
	font-weight: 600;               /* było 500 */
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.tpd-prose .tkd-bibliography-link a::after {
	content: " ↗";
	font-size: 0.9em;
}


.tpd-prose .tkd-bibliography-link a:hover {
	text-decoration: underline;
}

/* ================================
   FIX: spacing w bibliografii
   ================================ */

/* reset prose margins */
.tpd-prose .tkd-bibliography-item p {
	margin: 0;
}

/* compact spacing – jak przypis */
.tpd-prose .tkd-bibliography-title {
	margin-bottom: 0.25em;    /* było 0.4em */
	font-size: 1em;
	font-weight: 500;
}

.tpd-prose .tkd-bibliography-meta {
	margin-top: 0.15em;       /* było 0.25em */
	font-size: 0.9em;
	color: var(--tpd-muted);
}

.tpd-prose .tkd-bibliography-link {
	margin-top: 0.35em;       /* było 0.5em */
	font-size: 0.85em;
}

.tpd-prose .tkd-bibliography-item {
	font-size: 0.95em;
}


/* ================================
   Inline product – editorial style
   ================================ */

.tkd-product-inline {
	display: grid;
	grid-template-columns: 180px 1fr; /* SZERSZA KOLUMNA NA ZDJĘCIE */
	gap: 1.75em;
	margin: 3em 0;
	padding: 1.5em;
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	align-items: stretch; /* ważne */
}

/* media column fills full height */
.tkd-product-media {
	display: block;
	height: 100%;
}

/* image stretches to column height */
.tkd-product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #e5e5e5;
	display: block;
}


/* content */
.tkd-product-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* title */
.tkd-product-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.35;
}

.tkd-product-title a {
	color: inherit;
	text-decoration: none;
}

/* price */
.tkd-product-price {
	margin-top: 0.4em;
	font-size: 1.1rem;
	font-weight: 700;
	color: #111;
}

/* text next to product */
.tkd-product-text {
	margin-top: 0.6em;
	color: #555;
	font-size: 0.95rem;
	line-height: 1.6;
}

/* CTA – spokojny, nie agresywny */
.tkd-product-cta {
	display: inline-block;
	align-self: flex-start;
	margin-top: 0.9em;
	padding: 0.45em 0.9em;
	border-radius: 4px;
	background: #3b7f3b;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.tkd-product-cta:hover {
	background: #2f6a2f;
}

/* ================================
   Pull quote – editorial style
   ================================ */

.tkd-pull-quote {
	margin: 3.5em 0;
	padding: 2.5em 2.5em;
	background: #f6f5f3;              /* delikatne, ciepłe tło */
	border-left: 5px solid var(--tpd-primary);      /* klasyczny editorial akcent */
}

/* main quote text */
.tkd-pull-quote-text {
	margin: 0;
	font-family: serif;
	font-size: 1.9rem;
	line-height: 1.35;
	font-weight: 600;
	color: #111;
}

/* meta / confidence interval */
.tkd-pull-quote-meta {
	margin-top: 0.8em;
	font-size: 0.9rem;
	color: #666;
}

@media (max-width: 640px) {
	.tkd-pull-quote {
		padding: 2em 1.5em;
	}

	.tkd-pull-quote-text {
		font-size: 1.5rem;
	}
}

/* ======================================
   RESPONSIVE: bibliografia i pull-quote
   ====================================== */

/* bibliografia – ramki i tło na mobilkach */
@media (max-width: 768px) {
	.tpd-prose .tkd-bibliography-list {
		padding: 0.6em 0.6em;
	}

	.tpd-prose .tkd-bibliography-item {
		padding: 0.8em 1em;
		border: 1px solid #e5e5e5;
		border-radius: 4px;
		background: #fafafa;
	}
}

/* pull-quote – ramka + spacing na mobilkach */
@media (max-width: 768px) {
	.tkd-pull-quote {
		padding: 1.8em 1.4em;
		border-left-width: 5px;
		margin: 2.5em 0;
		background: --var(--tpd-primary);
	}

	.tkd-pull-quote-text {
		font-size: 1.5rem;
		line-height: 1.4;
	}
}

@media (max-width: 768px) {
	.tkd-product-inline {
		grid-template-columns: 1fr;
		padding: 1.4em 1.2em;
		margin: 2em 0;
	}

	.tkd-product-media {
		height: 220px; /* wysokość obrazu w mobilce */
		margin-bottom: 1em;
	}

	.tkd-product-content {
		text-align: left;
	}
}


@media (max-width: 768px) {
	.tpd-prose .tkd-bibliography-title {
		margin-bottom: 0.2em;
		font-size: 0.98em;
	}

	.tpd-prose .tkd-bibliography-meta {
		margin-top: 0.2em;
		font-size: 0.88em;
	}

	.tpd-prose .tkd-bibliography-link {
		margin-top: 0.3em;
		font-size: 0.85em;
	}
}


@media (max-width: 768px) {
  .tpd-prose h2, .tpd-prose h3 { margin-top: 1.6em; }
  .tpd-prose p { margin: 1em 0; }
}

@media (max-width: 768px) {
	.tpd-prose {
		line-height: 1.65;
	}

	.tpd-prose p {
		margin: 1em 0;
	}

	.tpd-prose h2 {
		margin-top: 1.6em;
		margin-bottom: 0.6em;
	}

	.tpd-prose h3 {
		margin-top: 1.4em;
		margin-bottom: 0.5em;
	}
}

@media (max-width: 768px) {
	.tkd-pull-quote {
		padding: 1.5em 1.2em;
		margin: 2.2em 0;
		background: #f6f4ee;
	}

	.tkd-pull-quote-text {
		font-size: 1.45rem;
		line-height: 1.35;
	}
}

@media (max-width: 768px) {
	.tpd-prose .tkd-bibliography-item {
		background: #fafafa;
		border: 1px solid #e5e5e5;
		box-shadow: 0 1px 3px rgba(0,0,0,0.03);
	}

	.tpd-prose .tkd-bibliography-link a {
		display: inline-block;
		padding: 0.4em 0;
	}
}

@media (max-width: 768px) {
	.tkd-product-inline {
		margin: 2.2em 0;
		padding: 1.2em;
	}

	.tkd-product-title {
		font-size: 1.25rem;
	}

	.tkd-product-cta {
		margin-top: 0.7em;
	}
}

.tpd-prose h2::after {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	background: var(--tpd-primary);
	margin-top: 0.6em;
}
