/* ============================================================================
   Aavant Peptides — blog archive + single post.
   Flat cream/green look; mirrors the source (Soro) horizontal cards + article
   layout, restyled with the theme tokens + Helvetica Neue system stack.
   Loaded after av-tokens.css on is_home() / single post views.
   ============================================================================ */

/* --- Archive: horizontal cards (image · title · excerpt · date) ----------- */
.av-blog-card {
	display: flex;
	gap: 20px;
	padding: 18px;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border) / .6);
	border-radius: var(--av-radius-lg, .75rem);
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.av-blog-card:hover {
	box-shadow: var(--av-shadow, 0 6px 20px rgba(0,0,0,.06));
	border-color: hsl(var(--primary) / .35);
}
.av-blog-card-media {
	width: 160px;
	flex-shrink: 0;
	border-radius: var(--av-radius, .5rem);
	overflow: hidden;
	background: hsl(var(--muted) / .4);
	align-self: stretch;
}
.av-blog-card-img {
	width: 100%;
	height: 100%;
	min-height: 108px;
	object-fit: cover;
	display: block;
}
.av-blog-card-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}
.av-blog-card-title { margin: 0; }
.av-blog-card-excerpt {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.av-blog-card-date { margin-top: 2px; }

@media (max-width: 640px) {
	.av-blog-card { flex-direction: column; gap: 14px; padding: 14px; }
	.av-blog-card-media { width: 100%; height: 180px; }
	.av-blog-card-img { min-height: 0; }
}

/* --- Pagination ----------------------------------------------------------- */
.av-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	margin: 0 3px;
	border: 1px solid hsl(var(--border) / .6);
	border-radius: var(--av-radius-pill, 999px);
	color: hsl(var(--foreground));
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.av-blog-pagination a.page-numbers:hover {
	border-color: hsl(var(--primary) / .5);
	color: hsl(var(--primary));
}
.av-blog-pagination .page-numbers.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}
.av-blog-pagination .page-numbers.dots { border: 0; }

/* --- Single post ---------------------------------------------------------- */
.av-single-hero img { display: block; width: 100%; height: auto; }

/* Body prose: inherits .av-prose (av-home.css) for h2/h3/p/ul/li/a/strong.
   A couple of blog-specific refinements below. */
.av-single-body.av-prose h2 { font-size: 1.5rem; margin: 2rem 0 .85rem; }
.av-single-body.av-prose h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.av-single-body.av-prose p  { font-size: 1rem; line-height: 1.75; }
.av-single-body.av-prose img { border-radius: var(--av-radius, .5rem); max-width: 100%; height: auto; }
.av-single-body.av-prose a  { color: hsl(var(--primary)); }

/* Related "More articles" strip */
.av-mini-thumb img { transition: transform .3s ease; }
.av-mini-card:hover .av-mini-thumb img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
	.av-blog-card,
	.av-mini-thumb img { transition: none; }
}
