/**
 * News & Updates archive + single related posts.
 */

body.blog .content-area.primary,
body.category .content-area.primary,
body.tag .content-area.primary,
body.date .content-area.primary,
body.author .content-area.primary {
	margin-top: 1.25rem !important;
	margin-bottom: 2rem !important;
}

body.blog .ast-post-filter,
body.category .ast-post-filter,
body.tag .ast-post-filter {
	margin-bottom: 1.25rem;
}

body.blog #primary.ast-blog-layout-4-grid .site-main .ast-row,
body.category #primary.ast-blog-layout-4-grid .site-main .ast-row,
body.tag #primary.ast-blog-layout-4-grid .site-main .ast-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin-left: 0;
	margin-right: 0;
	width: 100%;
}

body.blog #primary.ast-blog-layout-4-grid .ast-article-post,
body.category #primary.ast-blog-layout-4-grid .ast-article-post,
body.tag #primary.ast-blog-layout-4-grid .ast-article-post {
	position: static !important;
	left: auto !important;
	top: auto !important;
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	background: var(--mal-surface, #141418);
	border: 1px solid var(--mal-border, #2a2a32);
	overflow: hidden;
}

body.blog .ast-article-inner,
body.category .ast-article-inner,
body.tag .ast-article-inner {
	padding: 0 0 0.9rem !important;
	height: 100%;
	display: flex;
	flex-direction: column;
}

body.blog .ast-article-post .post-content,
body.category .ast-article-post .post-content,
body.tag .ast-article-post .post-content {
	padding: 0;
}

body.blog .ast-blog-featured-section,
body.category .ast-blog-featured-section,
body.tag .ast-blog-featured-section {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin: 0 0 0.7rem !important;
	padding: 0 !important;
}

body.blog .ast-blog-featured-section .post-thumb-img-content,
body.category .ast-blog-featured-section .post-thumb-img-content,
body.tag .ast-blog-featured-section .post-thumb-img-content,
body.blog .ast-blog-featured-section a,
body.category .ast-blog-featured-section a,
body.tag .ast-blog-featured-section a {
	display: block;
	height: 100%;
}

body.blog .ast-blog-featured-section img,
body.category .ast-blog-featured-section img,
body.tag .ast-blog-featured-section img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	aspect-ratio: unset !important;
	object-fit: cover;
	object-position: top center;
}

body.blog .ast-article-post .ast-taxonomy-container,
body.category .ast-article-post .ast-taxonomy-container,
body.tag .ast-article-post .ast-taxonomy-container,
body.blog .ast-article-post .entry-title,
body.category .ast-article-post .entry-title,
body.tag .ast-article-post .entry-title,
body.blog .ast-article-post .entry-meta,
body.category .ast-article-post .entry-meta,
body.tag .ast-article-post .entry-meta {
	padding-left: 0.9rem;
	padding-right: 0.9rem;
}

body.blog .ast-article-post .ast-taxonomy-container,
body.category .ast-article-post .ast-taxonomy-container,
body.tag .ast-article-post .ast-taxonomy-container {
	margin: 0 0 0.25rem !important;
	font-size: 0.75rem;
	line-height: 1.3;
}

body.blog .ast-article-post .entry-title,
body.category .ast-article-post .entry-title,
body.tag .ast-article-post .entry-title {
	margin: 0 0 0.35rem !important;
	font-family: var(--mal-font-ui, Syne, system-ui, sans-serif);
	font-size: 1.05rem !important;
	font-weight: 700;
	line-height: 1.3 !important;
}

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

body.blog .ast-article-post .entry-meta,
body.category .ast-article-post .entry-meta,
body.tag .ast-article-post .entry-meta {
	margin: 0 !important;
	font-size: 0.8125rem;
	color: var(--mal-text-muted, #a0a0ab);
}

@media (max-width: 1200px) {
	body.blog #primary.ast-blog-layout-4-grid .site-main .ast-row,
	body.category #primary.ast-blog-layout-4-grid .site-main .ast-row,
	body.tag #primary.ast-blog-layout-4-grid .site-main .ast-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.blog #primary.ast-blog-layout-4-grid .site-main .ast-row,
	body.category #primary.ast-blog-layout-4-grid .site-main .ast-row,
	body.tag #primary.ast-blog-layout-4-grid .site-main .ast-row {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

.single-post .post-navigation {
	display: none !important;
}

.single-post .ast-single-related-posts-container {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--mal-border, #2a2a32);
}

.single-post .ast-related-posts-title {
	color: var(--mal-text, #f3f3f5) !important;
	font-family: var(--mal-font-display, "Bodoni Moda", Georgia, serif);
	font-size: 1.75rem;
	margin: 0 0 1.25rem;
}

.single-post .ast-related-posts-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.single-post .ast-related-post {
	background: var(--mal-surface, #141418);
	border: 1px solid var(--mal-border, #2a2a32);
	overflow: hidden;
	margin: 0 !important;
	width: auto !important;
	float: none !important;
}

.single-post .ast-related-posts-inner-section,
.single-post .ast-related-post-content {
	padding: 0;
}

.single-post .ast-related-post-featured-section {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin: 0 0 0.75rem !important;
}

.single-post .ast-related-post-featured-section a,
.single-post .ast-related-post-featured-section .post-thumb-img-content {
	display: block;
	height: 100%;
}

.single-post .ast-related-post-featured-section img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	aspect-ratio: unset !important;
	object-fit: cover;
	object-position: top center;
}

.single-post .ast-related-post .entry-meta,
.single-post .ast-related-post .ast-related-post-title,
.single-post .ast-related-post .entry-content,
.single-post .ast-related-post .ast-related-post-excerpt,
.single-post .ast-related-post .ast-related-post-cta {
	padding-left: 0.9rem;
	padding-right: 0.9rem;
}

.single-post .ast-related-post .ast-related-post-title,
.single-post .ast-related-post .ast-related-post-title a {
	color: var(--mal-text, #f3f3f5) !important;
	font-family: var(--mal-font-ui, Syne, system-ui, sans-serif);
	font-size: 1.05rem !important;
	font-weight: 700;
	line-height: 1.3;
	margin: 0.25rem 0 0.4rem;
}

.single-post .ast-related-post .ast-related-post-title a:hover,
.single-post .ast-related-post .ast-related-post-title a:focus-visible {
	color: var(--mal-brand, #0085ca) !important;
}

.single-post .ast-related-post .entry-meta,
.single-post .ast-related-post .entry-meta a {
	color: var(--mal-brand, #0085ca) !important;
	font-size: 0.75rem;
}

.single-post .ast-related-post .ast-related-post-excerpt,
.single-post .ast-related-post .entry-content,
.single-post .ast-related-post .entry-content p {
	color: var(--mal-text-muted, #a0a0ab) !important;
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0 0 0.5rem;
}

.single-post .ast-related-post .ast-related-post-cta {
	padding-bottom: 0.9rem;
}

.single-post .ast-related-post .ast-related-post-link {
	color: var(--mal-brand, #0085ca) !important;
	font-family: var(--mal-font-ui, Syne, system-ui, sans-serif);
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

@media (max-width: 640px) {
	.single-post .ast-related-posts-wrapper {
		grid-template-columns: 1fr;
	}
}
