/*
 * Pojedynczy wpis bloga (single.php, Pencil IVG6Y).
 * BEM: dehoust-article__*. Zależny od dehoust-main.
 * Sekcja „Powiązane produkty” korzysta ze stylów product.css.
 */

.dehoust-article {
	background: #fff;
	padding-block: 2.75rem 3.5rem;
}

@media (min-width: 1024px) {
	.dehoust-article {
		padding-block: 3.75rem 4.5rem;
	}
}

.dehoust-article__inner {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

/* Nagłówek w treści (H2 + akcent + linia) */
.dehoust-article__heading {
	display: flex;
	flex-direction: column;
	gap: 0.9375rem;
}

.dehoust-article__heading-title {
	margin: 0;
	font-family: var(--dehoust-font-heading);
	font-size: 2rem; /* 32px */
	font-weight: 700;
	line-height: 1.25;
	color: var(--dehoust-color-text);
}

.dehoust-article__heading-rule {
	display: flex;
	height: 0.375rem;
	align-items: center;
}

.dehoust-article__heading-accent {
	width: 2.5rem;
	height: 0.375rem;
	flex-shrink: 0;
	background: var(--dehoust-color-primary);
}

.dehoust-article__heading-line {
	height: 0.8px;
	flex: 1;
	background: #e2f3ff;
}

/* Obraz wyróżniający */
.dehoust-article__featured {
	margin: 0;
}

.dehoust-article__featured-image {
	display: block;
	width: 100%;
	height: 15rem;
	border-radius: 0.5rem;
	object-fit: cover;
}

@media (min-width: 768px) {
	.dehoust-article__featured-image {
		height: 27.5rem; /* 440px */
	}
}

/* Meta-rząd */
.dehoust-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	font-family: var(--dehoust-font-body);
	font-size: 1rem;
	color: var(--dehoust-color-text-muted);
}

.dehoust-article__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.dehoust-article__meta-icon {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
	color: #00a2e0;
}

.dehoust-article__meta-item time,
.dehoust-article__meta-item span {
	line-height: 1.5;
}

.dehoust-article__meta-sep {
	width: 1px;
	height: 1.125rem;
	background: #4ec2f1;
}

/* Treść wpisu */
.dehoust-article__content {
	font-family: var(--dehoust-font-body);
	color: var(--dehoust-color-text-muted);
}

.dehoust-article__content > p {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	line-height: 1.5;
}

.dehoust-article__content > p:first-of-type {
	font-size: 1.125rem; /* akapit wiodący 18px */
	line-height: 1.5;
}

.dehoust-article__content h2,
.dehoust-article__content h3 {
	margin: 2rem 0 1rem;
	font-family: var(--dehoust-font-heading);
	font-size: 1.25rem; /* 20px */
	font-weight: 600;
	line-height: 1.4;
	color: var(--dehoust-color-text);
}

.dehoust-article__content ul {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.dehoust-article__content ul li {
	position: relative;
	padding-left: 1.75rem;
	font-size: 1rem;
	line-height: 1.5;
}

.dehoust-article__content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0.5px solid #4ec2f1;
	background: radial-gradient(circle, #4ec2f1 0 2.5px, transparent 2.5px);
}

.dehoust-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
}

.dehoust-article__content .alignright {
	float: right;
	max-width: 34.3125rem; /* 549px */
	margin: 0 0 1.25rem 2rem;
}

.dehoust-article__content .alignleft {
	float: left;
	max-width: 34.3125rem;
	margin: 0 2rem 1.25rem 0;
}

.dehoust-article__content .aligncenter {
	display: block;
	margin: 0 auto 1.25rem;
}

@media (max-width: 767px) {
	.dehoust-article__content .alignright,
	.dehoust-article__content .alignleft {
		float: none;
		max-width: 100%;
		margin: 0 0 1.25rem;
	}
}

/* Box „Podsumowanie” */
.dehoust-article__summary {
	margin: 1rem 0 0;
	border-radius: 0.5rem;
	background: #e6f5fc;
	padding: 1.75rem;
}

@media (min-width: 768px) {
	.dehoust-article__summary {
		padding: 2.5rem;
	}
}

.dehoust-article__summary h2 {
	margin: 0 0 1rem;
	font-family: var(--dehoust-font-heading);
	font-size: 2rem; /* 32px */
	font-weight: 600;
	line-height: 1.2;
	color: var(--dehoust-color-primary);
}

.dehoust-article__summary p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--dehoust-color-text-muted);
}
