/**
 * Single blog post — typography, layout & share (override reference.css density).
 */

.single-post-redesign {
	background: linear-gradient(180deg, #fff 0%, #f8faf7 120px, #f8faf7 100%);
}

.single-post-redesign .article-header {
	padding: 2rem 0 1.75rem;
	background: #fff;
	border-bottom: 1px solid var(--color-border);
	box-shadow: 0 1px 0 rgba(31, 94, 59, 0.04);
}

.single-post-redesign .article-header .eyebrow {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: var(--color-soft);
	color: var(--color-primary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.single-post-redesign .article-header h1 {
	max-width: 52rem;
	margin: 0.75rem 0 1rem;
	font-size: clamp(1.85rem, 3.2vw, 2.65rem) !important;
	font-weight: 800 !important;
	line-height: 1.22 !important;
	letter-spacing: -0.02em;
	color: var(--color-text) !important;
}

.single-post-redesign .article-lead {
	max-width: 46rem;
	font-size: 1.125rem !important;
	line-height: 1.65 !important;
	color: var(--color-muted) !important;
}

.single-post-redesign .article-meta-row {
	gap: 0.65rem 1rem !important;
	font-size: 0.9rem !important;
}

.single-post-redesign .meta-author {
	font-weight: 600;
	color: var(--color-text) !important;
}

/* Share bar — compact icon row (override main.css 32px circle rules) */
.single-post-redesign .article-share-bar {
	display: flex;
	align-items: center;
	margin-top: 0.85rem;
	padding: 0.55rem 0 0;
	border: none;
	border-top: 1px solid var(--color-border);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.single-post-redesign .article-share-bar--footer {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-border);
	background: transparent;
}

.single-post-redesign .share-block {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.6rem !important;
	width: auto !important;
	flex-wrap: nowrap !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	color: var(--color-muted) !important;
}

.single-post-redesign .share-block__label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-muted);
	letter-spacing: 0.02em;
	white-space: nowrap;
	flex-shrink: 0;
}

.single-post-redesign .share-icon-links {
	display: inline-flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 0.35rem !important;
}

.single-post-redesign .share-icon-links a,
.single-post-redesign .share-icon-links .share-copy-btn,
.single-post-redesign .share-icon-links .share-print-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2rem !important;
	height: 2rem !important;
	min-width: 2rem !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--color-primary) !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
	cursor: pointer;
	flex-shrink: 0 !important;
	overflow: visible !important;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease !important;
}

.single-post-redesign .share-icon-links a:hover,
.single-post-redesign .share-icon-links .share-copy-btn:hover,
.single-post-redesign .share-icon-links .share-print-btn:hover {
	background: var(--color-primary) !important;
	border-color: var(--color-primary) !important;
	color: #fff !important;
	transform: translateY(-1px) !important;
}

.single-post-redesign .share-icon-links a svg,
.single-post-redesign .share-icon-links .share-copy-btn svg,
.single-post-redesign .share-icon-links .share-print-btn svg {
	width: 14px !important;
	height: 14px !important;
	flex-shrink: 0;
}

.single-post-redesign .share-copy-btn.is-copied {
	background: var(--color-primary-2) !important;
	border-color: var(--color-primary-2) !important;
	color: #fff !important;
}

.single-post-redesign .share-rating-row {
	flex-direction: row !important;
	align-items: center !important;
	padding: 0 !important;
	margin-top: 0 !important;
	border: none !important;
}

/* Layout */
.single-post-layout {
	grid-template-columns: minmax(0, 1fr) 300px !important;
	gap: 3rem !important;
	padding: 2.25rem 0 4rem !important;
}

.post-main-content {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	padding: 1.75rem 1.75rem 2rem;
	box-shadow: var(--shadow-sm);
}

.post-featured-image {
	margin: 0 0 1.75rem !important;
	border-radius: var(--radius-lg) !important;
	overflow: hidden;
	background: var(--color-soft);
}

.post-featured-image img {
	width: 100%;
	max-height: 420px;
	object-fit: cover;
}

/* Typography — beat reference.css 13px */
.single-post-redesign .post-entry-content.entry-content {
	font-size: 1.0625rem !important;
	line-height: 1.8 !important;
	color: #334155 !important;
	font-family: var(--font-serif) !important;
}

.single-post-redesign .post-entry-content.entry-content p,
.single-post-redesign .post-entry-content.entry-content li {
	font-size: 1.0625rem !important;
	line-height: 1.8 !important;
}

.single-post-redesign .post-entry-content.entry-content h2 {
	margin: 2.25rem 0 1rem !important;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--color-soft) !important;
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: var(--color-text) !important;
	scroll-margin-top: 6rem;
}

.single-post-redesign .post-entry-content.entry-content h3 {
	margin: 1.75rem 0 0.75rem !important;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	scroll-margin-top: 6rem;
}

.single-post-redesign .post-entry-content.entry-content h4 {
	font-size: 1.05rem !important;
	margin: 1.25rem 0 0.5rem !important;
}

.single-post-redesign .post-entry-content.entry-content ul,
.single-post-redesign .post-entry-content.entry-content ol {
	margin: 0 0 1.5em !important;
	padding-left: 1.35em !important;
}

.single-post-redesign .post-entry-content.entry-content li {
	margin-bottom: 0.5em !important;
}

.single-post-redesign .post-entry-content.entry-content a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 500;
}

.single-post-redesign .post-entry-content.entry-content a:hover {
	color: var(--color-primary-2);
}

.single-post-redesign .post-entry-content.entry-content blockquote {
	margin: 1.5em 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--color-primary-2);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	background: var(--color-soft);
	font-size: 1rem;
	color: #334155;
}

.single-post-redesign .post-entry-content.entry-content figure {
	margin: 1.75em auto;
	max-width: min(100%, 720px);
	text-align: center;
}

.single-post-redesign .post-entry-content.entry-content figure img {
	display: block;
	margin-inline: auto;
	border-radius: var(--radius-md);
	width: auto;
	max-width: 100%;
	height: auto;
}

.single-post-redesign .post-entry-content.entry-content p > img,
.single-post-redesign .post-entry-content.entry-content > img {
	display: block;
	margin: 1.5em auto;
	width: auto;
	max-width: min(100%, 720px);
	height: auto;
	border-radius: var(--radius-md);
}

.single-post-redesign .post-entry-content.entry-content .aligncenter,
.single-post-redesign .post-entry-content.entry-content figure.aligncenter {
	display: block;
	margin-inline: auto;
	text-align: center;
}

.single-post-redesign .post-entry-content.entry-content figcaption {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted);
	text-align: center;
}

.single-post-redesign .post-entry-content.entry-content table {
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
	font-size: 0.95rem !important;
}

.single-post-redesign .post-entry-content.entry-content th,
.single-post-redesign .post-entry-content.entry-content td {
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--color-border);
}

.single-post-redesign .post-entry-content.entry-content th {
	background: var(--color-soft);
	font-weight: 700;
	text-align: left;
}

.quick-summary-box {
	margin-bottom: 1.75rem !important;
	padding: 1.35rem 1.5rem !important;
	border-radius: var(--radius-lg) !important;
}

.quick-summary-box h3 {
	font-size: 1.05rem !important;
}

.quick-summary-box li {
	font-size: 0.95rem !important;
	line-height: 1.65 !important;
}

/* Sidebar */
.single-post-redesign .post-sidebar-area .sidebar-box {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: #fff;
	box-shadow: var(--shadow-sm);
}

/* Related */
.single-post-redesign .related-posts-section {
	padding: 3rem 0 4rem;
	background: #fff;
	border-top: 1px solid var(--color-border);
}

@media (max-width: 960px) {
	.single-post-layout {
		grid-template-columns: 1fr !important;
	}

	.post-main-content {
		padding: 1.25rem 1.15rem 1.5rem;
		border-radius: var(--radius-lg);
	}

	.single-post-redesign .article-header h1 {
		font-size: 1.65rem !important;
	}

	.single-post-redesign .post-entry-content.entry-content,
	.single-post-redesign .post-entry-content.entry-content p,
	.single-post-redesign .post-entry-content.entry-content li {
		font-size: 1rem !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.post-sidebar-area,
	.article-share-bar,
	.related-posts-section,
	.breadcrumb {
		display: none !important;
	}

	.single-post-layout {
		display: block !important;
		padding: 0 !important;
	}

	.post-main-content {
		border: none;
		box-shadow: none;
		padding: 0;
	}
}
