/**
 * Single post template (redesign/template-single-post.php).
 * Depends on tokens.css and global.css (.dh-prose, .dh-display-96, .dh-btn,
 * .dh-btn--block). Post-only differences from the shared prose live here, so
 * the product description keeps the global prose styles.
 */

.dh-single-post__header {
	padding-top: var(--dh-space-32);
}

.dh-single-post__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--dh-space-32);
	text-align: center;
}

.dh-single-post__meta {
	color: var(--dh-color-accent-text);
	font-size: var(--dh-fs-body-18);
	font-weight: var(--dh-fw-semibold);
	line-height: var(--dh-lh-tight);
}

.dh-single-post__author {
	color: inherit;
	text-decoration: none;
}

a.dh-single-post__author:hover {
	text-decoration: underline;
}

.dh-single-post__title {
	color: var(--dh-color-heading);
	text-transform: uppercase;
}

/* Featured image: full container width, 1440 x 659 in Figma. */
.dh-single-post__media {
	margin-top: var(--dh-space-64);
	overflow: hidden;
	aspect-ratio: 1440 / 659;
	border-radius: var(--dh-radius-card);
}

.dh-single-post__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dh-single-post__body {
	padding-top: var(--dh-space-64);
}

.dh-container--post {
	max-width: var(--dh-container-post);
}

/* Prose differences for the post body (Figma: H2 48/58, 32 below headings). */
.dh-single-post__content :where(h2) {
	font-size: var(--dh-fs-heading-48);
}

.dh-single-post__content :where(h2, h3, h4) + * {
	margin-top: var(--dh-space-32);
}

/* Go back to blog: full width, Bebas 32. */
.dh-single-post__back {
	--dh-btn-font-size: var(--dh-fs-heading-32);
	margin-top: var(--dh-space-64);
	padding-block: var(--dh-space-24);
}

@media only screen and (max-width: 768px) {
	.dh-single-post__intro {
		gap: var(--dh-space-24);
	}

	.dh-single-post__media {
		margin-top: var(--dh-space-32);
	}

	.dh-single-post__body {
		padding-top: var(--dh-space-48);
	}

	.dh-single-post__back {
		margin-top: var(--dh-space-48);
	}
}
