/* ── Blog Single Post ─────────────────────────────────────────────────────── */

/* Category label — used in article header and related post cards */
.blog-category a,
.blog-category {
	color: var(--wp--preset--color--blue);
	text-decoration: none;
}

.blog-category a:hover {
	text-decoration: underline;
}

/* Reading time above the title */
.blog-single .wp-block-shortcode:has(.blog-reading-time) {
	margin-bottom: 0.25rem;
}

.blog-single .blog-reading-time {
	display: inline-block;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* Kill WordPress block gap inside the article header group */
.blog-single > .wp-block-group:not(.blog-related) {
	gap: 0 !important;
}

/* Article title */
.blog-single .wp-block-post-title {
	font-size: 2.2em !important;
	font-weight: 900 !important;
	line-height: 1.2;
	color: var(--wp--preset--color--navy);
}

/* Featured image: matches the 780px text container width */
.blog-single .wp-block-post-featured-image img,
.cf-pc-featured-img {
	border-radius: 20px;
}

.cf-pc-featured-link {
	display: block;
	margin-bottom: var(--wp--preset--spacing--6);
}

.cf-pc-featured-img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.2s;
}

.cf-pc-featured-link:hover .cf-pc-featured-img {
	opacity: 0.9;
}

/* (kept for non-press-clipping featured images) */
.blog-single .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 20px;
}

/* Override WordPress constrained-layout margin-block-start on the meta row */
:root :where(.is-layout-constrained) > .blog-meta {
	margin-block-start: 0;
}

/* Meta row (author · date) */
.blog-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.blog-meta .wp-block-post-author__name,
.blog-meta .wp-block-post-date,
.blog-meta .blog-reading-time,
.blog-meta__sep {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	margin: 0;
	line-height: 1.5;
}

.blog-meta .wp-block-post-author {
	margin: 0;
}

/* Tags */
.blog-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.blog-tags a {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
}

.blog-tags a:hover {
	border-color: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--blue);
}

/* ── Share buttons ────────────────────────────────────────────────────────── */

.blog-share {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 2rem;
}

.blog-share__label {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

.blog-share__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.blog-share__btn svg {
	width: 1rem;
	height: 1rem;
	display: block;
}

.blog-share__btn:hover {
	background: var(--wp--preset--color--navy);
	color: #ffffff;
}

/* ── Post content typography ──────────────────────────────────────────────── */

.blog-single .wp-block-post-content {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.blog-single .wp-block-post-content h2 {
	font-size: var(--wp--preset--font-size--2xl);
	font-weight: 700;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--navy);
}

.blog-single .wp-block-post-content h3 {
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 600;
	margin-top: 2rem;
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--navy);
}

.blog-single .wp-block-post-content p {
	margin-bottom: 1.25rem;
}

.blog-single .wp-block-post-content ul,
.blog-single .wp-block-post-content ol {
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}

.blog-single .wp-block-post-content li {
	margin-bottom: 0.4rem;
}

.blog-single .wp-block-post-content img {
	border-radius: 8px;
	max-width: 100%;
	height: auto;
}

.blog-single .wp-block-post-content blockquote {
	border-left: 4px solid var(--wp--preset--color--blue);
	margin-left: 0;
	padding-left: 1.5rem;
	color: var(--wp--preset--color--muted);
	font-style: italic;
}

/* ── Keep Reading section ─────────────────────────────────────────────────── */

/* Zero out WordPress's default padding-block on the inner content groups only */
.blog-single > .wp-block-group:not(.blog-related) {
	padding-block: 0 !important;
}

/* Keep Reading: breathing room above (separates from article) and below (before footer) */
.blog-related {
	padding-top: var(--wp--preset--spacing--6) !important;
	padding-bottom: var(--wp--preset--spacing--10) !important;
}

/* Cards inherit all blog-grid-card styles from blog-archive.css.
   Suppress the first-card side-by-side layout — all cards are equal here. */
.blog-related .wp-block-post-template > li:first-child .blog-grid-card {
	display: flex !important;
	flex-direction: column !important;
	grid-template-columns: unset !important;
	grid-template-areas: unset !important;
}

.blog-related .wp-block-post-template > li:first-child .blog-grid-card::after {
	left: 0 !important;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 639px) {
	.blog-related .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}

@media (min-width: 640px) and (max-width: 1023px) {
	.blog-related .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
