/**
 * Blog single + archive readability
 * Stolyarka 51
 */

/* --- Single article shell --- */
.single-post .site-main,
.blog .site-main,
.home.blog .site-main {
	background-color: var(--wp--preset--color--beige, #f5f0e8);
}

.single-post .post-article {
	padding-bottom: 80px;
}

.single-post .entry-header {
	padding: 112px 20px 40px;
	text-align: center;
	max-width: 920px;
	margin: 0 auto;
}

.single-post .entry-title {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem);
	color: var(--wp--preset--color--primary, #3d2b1f);
	margin: 0 0 16px;
	line-height: 1.22;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.single-post .entry-meta {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.9375rem;
	color: rgba(61, 43, 31, 0.62);
	margin: 0 0 8px;
}

/* Featured cover — always centered */
.single-post .entry-thumbnail {
	display: flex;
	justify-content: center;
	align-items: center;
	width: min(100% - 40px, 960px);
	max-width: 960px;
	margin: 28px auto 48px;
	padding: 0;
	border-radius: 20px;
	overflow: hidden;
	background: #efe8dc;
	box-shadow: 0 12px 40px rgba(61, 43, 31, 0.08);
}

.single-post .entry-thumbnail img,
.single-post .entry-thumbnail .wp-post-image {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 auto !important;
	float: none !important;
	object-fit: cover;
}

/* Reading column */
.single-post .entry-content {
	width: min(100% - 40px, 720px);
	max-width: 720px;
	margin: 0 auto;
	padding: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--wp--preset--color--text, #3d2b1f);
	text-align: left;
}

.single-post .entry-content > *:first-child {
	margin-top: 0;
}

.single-post .entry-content p {
	margin: 0 0 1.15em;
	max-width: 68ch;
}

.single-post .entry-content h2 {
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
	line-height: 1.28;
	color: var(--wp--preset--color--primary, #3d2b1f);
	margin: 2.4em 0 0.75em;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.single-post .entry-content h3 {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.25rem;
	line-height: 1.35;
	margin: 1.8em 0 0.6em;
	color: var(--wp--preset--color--primary, #3d2b1f);
}

.single-post .entry-content ul,
.single-post .entry-content ol {
	margin: 0 0 1.35em;
	padding-left: 1.35em;
	max-width: 68ch;
}

.single-post .entry-content li {
	margin: 0.35em 0;
	padding-left: 0.15em;
}

.single-post .entry-content li + li {
	margin-top: 0.45em;
}

.single-post .entry-content a {
	color: var(--wp--preset--color--accent, #c4a574);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.single-post .entry-content a:hover {
	color: var(--wp--preset--color--primary, #3d2b1f);
}

.single-post .entry-content blockquote {
	margin: 1.6em 0;
	padding: 1em 1.25em;
	border-left: 3px solid var(--wp--preset--color--accent, #c4a574);
	background: rgba(196, 165, 116, 0.1);
	border-radius: 0 14px 14px 0;
	font-size: 1.05em;
	line-height: 1.55;
	max-width: 68ch;
}

.single-post .entry-content strong {
	font-weight: 650;
	color: var(--wp--preset--color--primary, #3d2b1f);
}

/* Inline / cover images — centered, never float or side-shift */
.single-post .entry-content figure,
.single-post .entry-content .inline-quad,
.single-post .entry-content .wp-block-image,
.single-post .entry-content p > img {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 2em auto !important;
	padding: 0 !important;
	text-align: center !important;
	clear: both;
}

.single-post .entry-content figure img,
.single-post .entry-content .inline-quad img,
.single-post .entry-content .wp-block-image img,
.single-post .entry-content img {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	margin: 0 auto !important;
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(61, 43, 31, 0.07);
}

.single-post .entry-content figcaption {
	margin-top: 0.65em;
	font-size: 0.875rem;
	line-height: 1.45;
	color: rgba(61, 43, 31, 0.62);
	text-align: center;
}

/* FAQ / details if present */
.single-post .entry-content details {
	margin: 0 0 0.75em;
	padding: 0.85em 1em;
	border: 1px solid rgba(61, 43, 31, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.45);
	max-width: 68ch;
}

.single-post .entry-content summary {
	cursor: pointer;
	font-weight: 600;
}

/* Internal links + footer nav */
.single-post .blog-internal-links {
	width: min(100% - 40px, 720px);
	max-width: 720px;
	margin: 48px auto 0;
	padding: 28px 32px;
	background: rgba(196, 165, 116, 0.08);
	border-radius: 20px;
	border: 1px solid rgba(61, 43, 31, 0.08);
	box-sizing: border-box;
}

.single-post .blog-internal-links h2 {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.45rem;
	margin: 0 0 14px;
	color: var(--wp--preset--color--primary, #3d2b1f);
}

.single-post .blog-internal-links ul {
	margin: 0;
	padding-left: 1.2em;
	line-height: 1.8;
}

.single-post .blog-internal-links a {
	color: var(--wp--preset--color--accent, #c4a574);
	font-weight: 600;
	text-decoration: none;
}

.single-post .blog-internal-links a:hover {
	color: var(--wp--preset--color--primary, #3d2b1f);
	text-decoration: underline;
}

.single-post .entry-footer {
	width: min(100% - 40px, 720px);
	max-width: 720px;
	margin: 56px auto 0;
	padding-top: 32px;
	border-top: 1px solid rgba(61, 43, 31, 0.1);
}

.single-post .post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 600;
}

.single-post .post-navigation a {
	color: var(--wp--preset--color--primary, #3d2b1f);
	text-decoration: none;
	line-height: 1.4;
}

.single-post .post-navigation a:hover {
	color: var(--wp--preset--color--accent, #c4a574);
}

.single-post .nav-previous,
.single-post .nav-next {
	max-width: 45%;
}

.single-post .nav-next {
	text-align: right;
}

/* Blog index cards */
.blog-grid-section .blog-card img,
.blog-section .blog-card img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	margin: 0 auto;
}

.blog-grid-section .blog-card .entry-title,
.blog-section .blog-card h3 {
	text-wrap: balance;
}

@media (max-width: 768px) {
	.single-post .entry-header {
		padding: 96px 16px 28px;
	}

	.single-post .entry-content {
		font-size: 1.0625rem;
		line-height: 1.7;
		width: min(100% - 32px, 720px);
	}

	.single-post .entry-thumbnail {
		width: min(100% - 32px, 960px);
		margin: 20px auto 36px;
		border-radius: 16px;
	}

	.single-post .entry-content figure,
	.single-post .entry-content .inline-quad {
		margin: 1.6em auto !important;
	}

	.single-post .entry-content figure img,
	.single-post .entry-content .inline-quad img {
		border-radius: 12px;
	}

	.single-post .post-navigation {
		flex-direction: column;
	}

	.single-post .nav-previous,
	.single-post .nav-next {
		max-width: 100%;
		text-align: left;
	}
}
