/**
 * _blog.css — the posts page and post archives (Astra's blog layout 4; inner-pages.php blog), in the kit's Blog-Index
 * look: the tint surface, two columns of image cards, and the Categories sidebar (spectra-build/inner.cjs).
 * Owns: .blog / .archive cards (.ast-article-inner), their category, title, date, excerpt and Read More; the sidebar
 * card and its category rows.
 * Doesn't own: the banner (_inner.css); pagination (_navigation.css).
 * Depends on: global/_tokens.css. Astra's column count needs Blog Pro (off): the grid here sets two.
 */
:is(.blog, .archive) .site-content {
	background: var(--rl-color-tint);
}

:is(.blog, .archive) #primary .ast-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
}

:is(.blog, .archive) #primary .ast-row > article.ast-article-post {
	width: auto;
	margin: 0;
	padding: 0;
}

/* The card: white, a 4px sage top, the card shadow; 16:10 photo, then 24px in. */
:is(.blog, .archive) .ast-article-post .ast-article-inner {
	height: 100%;
	padding: 0;
	border-top: 4px solid var(--rl-color-accent);
	border-radius: 0;
	background: var(--rl-white);
	box-shadow: var(--rl-shadow-card);
	transition: transform var(--rl-ease), box-shadow var(--rl-ease);
}

:is(.blog, .archive) .ast-article-post .ast-article-inner:is(:hover, :focus-within) {
	transform: translateY(-4px);
	box-shadow: var(--rl-shadow-card-hover);
}

:is(.blog, .archive) .ast-article-post .post-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
	padding: 0 0 24px;
}

:is(.blog, .archive) .ast-article-post .post-content > :not(.ast-blog-featured-section) {
	margin: 0;
	padding: 0 24px;
}

:is(.blog, .archive) .ast-article-post .ast-blog-featured-section {
	margin: 0 0 14px;
}

:is(.blog, .archive) .ast-article-post .post-thumb-img-content img {
	transform: none;
}

/* The category: plain navy 700 caps, .08em (the kit's tag). */
:is(.blog, .archive) .ast-article-post .cat-links a {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rl-color-brand);
	text-decoration: none;
}

:is(.blog, .archive) .ast-article-post .entry-title {
	font-size: 22px;
	line-height: 30px;
}

:is(.blog, .archive) .ast-article-post .entry-title a {
	color: var(--rl-color-headings);
	text-decoration: none;
}

:is(.blog, .archive) .ast-article-post .entry-title a:is(:hover, :focus-visible) {
	text-decoration: underline 2px var(--rl-color-alt-brand);
	text-underline-offset: 3px;
}

:is(.blog, .archive) .ast-article-post .entry-meta,
:is(.blog, .archive) .ast-article-post .entry-meta * {
	font-size: 16px;
	font-weight: 600;
	color: var(--rl-color-body);
}

:is(.blog, .archive) .ast-article-post .ast-excerpt-container {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 16px;
	line-height: 1.6;
}

:is(.blog, .archive) .ast-article-post .ast-excerpt-container p {
	margin: 0;
}

/* Read More: the brand green 600 with an arrow, as on Home's cards (Markup #13). */
:is(.blog, .archive) .ast-article-post .read-more {
	margin-top: auto;
}

:is(.blog, .archive) .ast-article-post .read-more a {
	font-size: 16px;
	font-weight: 600;
	color: var(--rl-color-accent-strong);
	text-decoration: none;
}

:is(.blog, .archive) .ast-article-post .read-more a::after {
	content: " →" / "";
}

:is(.blog, .archive) .ast-article-post .read-more a:is(:hover, :focus-visible) {
	text-decoration: underline 2px var(--rl-color-alt-brand);
	text-underline-offset: 3px;
}

/* The sidebar card: white, the card shadow; "Categories" Lora 24; rows with hairlines, the tint on hover. */
.rl-blog-sidebar.rl-blog-sidebar {
	box-shadow: var(--rl-shadow-card);
}

.rl-blog-sidebar .rl-sidebar-title.rl-sidebar-title {
	font-size: 24px;
	line-height: 30px;
}

.rl-blog-sidebar .rl-categories {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rl-blog-sidebar .rl-categories li {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 12px;
	border-top: 1px solid var(--rl-border-subtle);
	font-size: 16px;
	color: var(--rl-color-body);
}

.rl-blog-sidebar .rl-categories li:last-child {
	border-bottom: 1px solid var(--rl-border-subtle);
}

.rl-blog-sidebar .rl-categories a {
	color: var(--rl-color-brand);
	text-decoration: none;
}

.rl-blog-sidebar .rl-categories li:is(:hover, :focus-within, .current-cat) {
	background: var(--rl-color-tint);
}

.rl-blog-sidebar .rl-categories .current-cat a {
	font-weight: 700;
}

@media (max-width: 768px) {
	:is(.blog, .archive) #primary .ast-row {
		grid-template-columns: minmax(0, 1fr);
	}
}
