/**
 * Archive (Новости / Награды) + single post — unified cream/wine style.
 */

body.blog,
body.archive,
body.category,
body.single-post {
	background: var(--kgf-cream, #fcfcf8);
	color: var(--kgf-ink, #2a160d);
}

body.blog .ast-breadcrumbs-wrapper,
body.archive .ast-breadcrumbs-wrapper,
body.category .ast-breadcrumbs-wrapper,
body.single-post .ast-breadcrumbs-wrapper {
	opacity: 0.72;
}

/* --- Archive title --- */
body.blog #primary,
body.archive #primary,
body.category #primary {
	margin-top: 1.25rem !important;
	margin-bottom: 2rem !important;
}

body.blog .ast-archive-description .page-title,
body.archive .ast-archive-description .page-title,
body.category .ast-archive-description .page-title,
body.blog h1.page-title,
body.archive h1.page-title,
body.category h1.page-title {
	font-family: var(--kgf-font-display, "Playfair Display", Georgia, serif) !important;
	font-weight: 600 !important;
	font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
	line-height: 1.1 !important;
	letter-spacing: -0.015em !important;
	color: var(--kgf-ink, #2a160d) !important;
	margin: 0 0 0.75rem !important;
}

body.blog .ast-archive-description,
body.archive .ast-archive-description,
body.category .ast-archive-description {
	margin: 0 0 0.75rem !important;
	padding: 0.35rem 0 0.15rem !important;
	border-bottom: 0 !important;
}

/* --- Post cards --- */
body.blog #main > article.ast-article-post,
body.archive #main > article.ast-article-post,
body.category #main > article.ast-article-post,
body.blog .ast-row > article.ast-article-post,
body.archive .ast-row > article.ast-article-post,
body.category .ast-row > article.ast-article-post {
	background: #fff;
	border: 1px solid var(--kgf-line, rgba(42, 22, 13, 0.14));
	border-radius: 14px;
	padding: 1.1rem 1.15rem;
	margin: 0 0 1.1rem !important;
	box-shadow: 0 10px 28px rgba(42, 22, 13, 0.045);
	overflow: hidden;
}

body.blog #main > article.ast-article-post:last-child,
body.archive #main > article.ast-article-post:last-child,
body.category #main > article.ast-article-post:last-child {
	margin-bottom: 1.5rem !important;
}

body.blog .blog-layout-3,
body.archive .blog-layout-3,
body.category .blog-layout-3 {
	display: flex;
	flex-wrap: wrap;
	gap: 1.1rem 1.35rem;
	align-items: stretch;
}

body.blog .blog-layout-3 .ast-blog-featured-section,
body.archive .blog-layout-3 .ast-blog-featured-section,
body.category .blog-layout-3 .ast-blog-featured-section {
	flex: 0 1 42%;
	max-width: 42%;
	width: 42%;
	padding: 0 !important;
	margin: 0 !important;
}

body.blog .blog-layout-3 .post-content,
body.archive .blog-layout-3 .post-content,
body.category .blog-layout-3 .post-content,
body.blog .blog-layout-3 > div:not(.ast-blog-featured-section),
body.archive .blog-layout-3 > div:not(.ast-blog-featured-section),
body.category .blog-layout-3 > div:not(.ast-blog-featured-section) {
	flex: 1 1 50%;
	min-width: 0;
}

body.blog .post-thumb-img-content,
body.archive .post-thumb-img-content,
body.category .post-thumb-img-content,
body.blog .ast-blog-featured-section .post-thumb,
body.archive .ast-blog-featured-section .post-thumb,
body.category .ast-blog-featured-section .post-thumb {
	margin: 0 !important;
	border-radius: 10px;
	overflow: hidden;
	background: #efe9e0;
}

body.blog .ast-article-post .post-thumb img,
body.archive .ast-article-post .post-thumb img,
body.category .ast-article-post .post-thumb img,
body.blog .ast-article-post .wp-post-image,
body.archive .ast-article-post .wp-post-image,
body.category .ast-article-post .wp-post-image {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.blog .ast-article-post:hover .wp-post-image,
body.archive .ast-article-post:hover .wp-post-image,
body.category .ast-article-post:hover .wp-post-image {
	transform: scale(1.03);
}

/* Titles */
body.blog .ast-article-post .entry-title,
body.archive .ast-article-post .entry-title,
body.category .ast-article-post .entry-title,
body.blog .ast-article-post .entry-title a,
body.archive .ast-article-post .entry-title a,
body.category .ast-article-post .entry-title a {
	font-family: var(--kgf-font-display, "Playfair Display", Georgia, serif) !important;
	font-weight: 600 !important;
	font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
	color: var(--kgf-ink, #2a160d) !important;
	text-decoration: none !important;
}

body.blog .ast-article-post .entry-title a:hover,
body.archive .ast-article-post .entry-title a:hover,
body.category .ast-article-post .entry-title a:hover {
	color: var(--kgf-wine, #751545) !important;
}

/* Meta + read more */
body.blog .ast-article-post .entry-meta,
body.archive .ast-article-post .entry-meta,
body.category .ast-article-post .entry-meta,
body.blog .ast-article-post .entry-meta a,
body.archive .ast-article-post .entry-meta a,
body.category .ast-article-post .entry-meta a {
	font-family: var(--kgf-font-ui, "Manrope", system-ui, sans-serif) !important;
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	color: var(--kgf-gold-text, #8a7326) !important;
}

body.blog .ast-article-post .entry-meta.kgf-pub-date,
body.archive .ast-article-post .entry-meta.kgf-pub-date,
body.category .ast-article-post .entry-meta.kgf-pub-date,
body.blog .ast-article-post .entry-meta.kgf-pub-date strong,
body.archive .ast-article-post .entry-meta.kgf-pub-date strong,
body.category .ast-article-post .entry-meta.kgf-pub-date strong {
	font-weight: 700 !important;
	color: var(--kgf-ink, #2a160d) !important;
}

body.blog .ast-article-post .entry-content,
body.archive .ast-article-post .entry-content,
body.category .ast-article-post .entry-content,
body.blog .ast-article-post .entry-content p,
body.archive .ast-article-post .entry-content p,
body.category .ast-article-post .entry-content p {
	font-family: var(--kgf-font-ui, "Manrope", system-ui, sans-serif) !important;
	font-size: 0.98rem !important;
	line-height: 1.55 !important;
	color: rgba(42, 22, 13, 0.72) !important;
}

body.blog .ast-article-post p.read-more,
body.archive .ast-article-post p.read-more,
body.category .ast-article-post p.read-more {
	margin: 0.55rem 0 0 !important;
	color: inherit !important;
}

body.blog .ast-article-post p.read-more a,
body.archive .ast-article-post p.read-more a,
body.category .ast-article-post p.read-more a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: var(--kgf-font-ui, "Manrope", system-ui, sans-serif) !important;
	font-size: 0.86rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--kgf-wine, #751545) !important;
}

body.blog .ast-article-post p.read-more a:hover,
body.archive .ast-article-post p.read-more a:hover,
body.category .ast-article-post p.read-more a:hover {
	color: var(--kgf-wine-hover, #5e1037) !important;
}

body.blog .ast-article-post .entry-title a,
body.archive .ast-article-post .entry-title a,
body.category .ast-article-post .entry-title a {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Hide separators from old list look */
body.blog .ast-article-post + .ast-article-post,
body.archive .ast-article-post + .ast-article-post,
body.category .ast-article-post + .ast-article-post {
	border-top: 0 !important;
}

/* Pagination */
body.blog .ast-pagination,
body.archive .ast-pagination,
body.category .ast-pagination,
body.blog .navigation.pagination,
body.archive .navigation.pagination,
body.category .navigation.pagination {
	margin: 1.5rem 0 2rem;
}

body.blog .ast-pagination .page-numbers,
body.archive .ast-pagination .page-numbers,
body.category .ast-pagination .page-numbers,
body.blog .navigation.pagination .page-numbers,
body.archive .navigation.pagination .page-numbers,
body.category .navigation.pagination .page-numbers {
	border: 1px solid var(--kgf-line, rgba(42, 22, 13, 0.14)) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--kgf-ink, #2a160d) !important;
	font-family: var(--kgf-font-ui, "Manrope", system-ui, sans-serif) !important;
	font-weight: 700 !important;
	min-width: 2.4rem;
	height: 2.4rem;
	line-height: 2.4rem !important;
	padding: 0 0.85rem !important;
	margin: 0 0.2rem !important;
	text-decoration: none !important;
}

body.blog .ast-pagination .page-numbers.current,
body.archive .ast-pagination .page-numbers.current,
body.category .ast-pagination .page-numbers.current,
body.blog .ast-pagination a.page-numbers:hover,
body.archive .ast-pagination a.page-numbers:hover,
body.category .ast-pagination a.page-numbers:hover {
	background: var(--kgf-wine, #751545) !important;
	border-color: var(--kgf-wine, #751545) !important;
	color: #fff !important;
}

/* --- Single post --- */
body.single-post .entry-header .entry-title,
body.single-post h1.entry-title {
	font-family: var(--kgf-font-display, "Playfair Display", Georgia, serif) !important;
	font-weight: 600 !important;
	font-size: clamp(1.7rem, 3.6vw, 2.6rem) !important;
	line-height: 1.15 !important;
	letter-spacing: -0.015em !important;
	color: var(--kgf-ink, #2a160d) !important;
}

body.single-post .entry-meta,
body.single-post .entry-meta a {
	color: var(--kgf-gold-text, #8a7326) !important;
	font-weight: 600 !important;
}

body.single-post .entry-meta.kgf-pub-date,
body.single-post .entry-meta.kgf-pub-date strong {
	font-weight: 700 !important;
	color: var(--kgf-ink, #2a160d) !important;
}

body.single-post .entry-content {
	font-family: var(--kgf-font-ui, "Manrope", system-ui, sans-serif);
	font-size: 1.05rem;
	line-height: 1.65;
	color: rgba(42, 22, 13, 0.88);
}

body.single-post .entry-content a {
	color: var(--kgf-wine, #751545);
}

body.single-post .entry-content a:hover {
	color: var(--kgf-wine-hover, #5e1037);
}

body.single-post .post-thumb,
body.single-post .ast-single-post-featured {
	margin: 0 0 1.4rem;
}

body.single-post .post-thumb img,
body.single-post .wp-post-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

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

@media (max-width: 921px) {
	body.blog .blog-layout-3,
	body.archive .blog-layout-3,
	body.category .blog-layout-3 {
		flex-direction: column;
		gap: 0.9rem;
	}

	body.blog .blog-layout-3 .ast-blog-featured-section,
	body.archive .blog-layout-3 .ast-blog-featured-section,
	body.category .blog-layout-3 .ast-blog-featured-section {
		flex-basis: 100%;
		max-width: 100%;
		width: 100%;
	}

	body.blog #main > article.ast-article-post,
	body.archive #main > article.ast-article-post,
	body.category #main > article.ast-article-post {
		padding: 0.9rem;
	}
}
