/**
 * Single blog post page styles.
 */

/* Breadcrumb override — reduce spacing on single posts */
.cmc-breadcrumb {
	padding: 0.5rem 0 0;
}

/* Back link */
.cmc-single-post__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.125rem;
	color: var(--wp--preset--color--secondary);
	text-decoration: none;
	margin: 0;
}

.cmc-single-post__back:hover {
	color: var(--wp--preset--color--secondary);
	text-decoration: underline;
}

p:has(> .cmc-single-post__back) {
	margin: 0.8rem 0 0 0;
}

/* Hero 2-column grid */
.cmc-single-post__hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
	max-width: 900px;
	margin-inline: auto;
}

.cmc-single-post__hero-text .wp-block-post-title {
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.75rem;
	line-height: 1.2;
}

.cmc-single-post__hero-text .wp-block-post-excerpt {
	margin-top: 1rem;
	color: var(--wp--preset--color--text-muted);
	font-size: 1rem;
	line-height: 1.6;
}

.cmc-single-post__hero-text .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* Hexagonal featured image */
.cmc-single-post__hero-image {
	display: flex;
	justify-content: center;
	align-items: center;
}

.cmc-single-post__hero-image .wp-block-post-featured-image {
	width: 350px;
	height: 350px;
}

.cmc-single-post__hero-image .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	clip-path: url(#cmc-hexagon-clip);
}

/* Banner placeholder */
.cmc-single-post__banner {
	background: var(--wp--preset--color--secondary-extra-light);
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	color: var(--wp--preset--color--text-muted);
	font-size: 0.875rem;
	margin: var(--wp--preset--spacing--50) 0;
}

/* Responsive */
@media (max-width: 768px) {
	.cmc-single-post__hero {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.cmc-single-post__hero-image {
		order: -1;
	}

	.cmc-single-post__hero-image .wp-block-post-featured-image {
		width: 280px;
		height: 280px;
		margin: 0 auto;
	}
}
