/**
 * QSMPress — Blog Post template
 * ---------------------------------------------------------------------------
 * Styles the "Blog Post" post template (templates/template-blog-post.php):
 * breadcrumb, meta line, title, byline, featured image, post content and the
 * category pill list. The "More Services" / "Contact Section" patterns
 * rendered below the article bring their own block styles.
 *
 * @package QSMPress
 */

/*
 * Force a white background regardless of the site's Customizer "Content
 * background color" (or any other theme color painted behind #content by
 * default), so the article reads as a plain white page per the approved
 * design instead of picking up a site-wide accent color.
 */
body.qsmpress-blog-post-template,
body.qsmpress-blog-post-template #content,
body.qsmpress-blog-post-template #primary,
body.qsmpress-blog-post-template #main {
	background-color: #ffffff;
}

.qsmpress-blog-post__container {
	max-width: 800px;
	margin: 0 auto;
	padding: 48px 24px 64px;
}

.qsmpress-blog-post__breadcrumb {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
}

.qsmpress-blog-post__breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.qsmpress-blog-post__breadcrumb a:hover,
.qsmpress-blog-post__breadcrumb a:focus {
	text-decoration: underline;
}

.qsmpress-blog-post__breadcrumb span {
	margin: 0 6px;
}

.qsmpress-blog-post__meta {
	margin: 18px 0 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
}

.qsmpress-blog-post__title {
	margin: 10px 0 0;
	font-size: 2.25rem;
	line-height: 1.2;
}

.qsmpress-blog-post__byline {
	margin: 14px 0 0;
	color: #64748b;
	font-size: 0.9375rem;
}

/*
 * Fixed aspect ratio so a tall/portrait featured image doesn't blow out the
 * article's height; `object-fit: cover` crops instead of stretching so the
 * image itself is never distorted.
 */
.qsmpress-blog-post__thumbnail {
	margin: 32px 0 0;
	aspect-ratio: 2.3 / 1;
	border-radius: 12px;
	overflow: hidden;
}

.qsmpress-blog-post__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.qsmpress-blog-post__content {
	margin-top: 32px;
}

.qsmpress-blog-post__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 40px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid #e2e8f0;
	list-style: none;
}

.qsmpress-blog-post__category a {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background-color: #f1f5f9;
	border-radius: 999px;
	color: #475569;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}

.qsmpress-blog-post__category a:hover,
.qsmpress-blog-post__category a:focus {
	background-color: #e2e8f0;
	color: #1e293b;
}

.qsmpress-blog-post__pattern:empty {
	display: none;
}

@media ( max-width: 600px ) {
	.qsmpress-blog-post__container {
		padding: 32px 20px 48px;
	}

	.qsmpress-blog-post__title {
		font-size: 1.75rem;
	}

	.qsmpress-blog-post__thumbnail {
		aspect-ratio: 4 / 3;
	}
}
