/**
 * Blog layout — uses arc-recipe-card + arc-recipe-section from sections.css / recipe-premium.css.
 *
 * @package Recipefy
 */

.rfy-blog-single {
	background: var(--rfy-background);
}

.rfy-blog-single .arc-premium-zone {
	margin-block-start: 0;
}

.rfy-blog-single__stack {
	padding-block: clamp(32px, 5vw, 56px);
}

.rfy-blog-hero {
	padding-block: clamp(40px, 6vw, 72px) 0;
	text-align: start;
}

.rfy-blog-hero__title {
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 12px 0 16px;
}

.rfy-blog-hero__meta {
	color: var(--rfy-muted-foreground, #6b7280);
	font-size: var(--rfy-type-body, 18px);
}

.rfy-blog-hero__excerpt {
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	line-height: 1.6;
	max-width: 62ch;
	margin-block-start: 16px;
	color: var(--rfy-foreground);
}

.rfy-blog-hero__media {
	margin-block-start: clamp(24px, 4vw, 40px);
	padding-block-end: clamp(8px, 2vw, 16px);
}

.rfy-blog-hero__figure,
.rfy-blog-hero__video {
	border-radius: var(--rfy-radius-md);
	overflow: hidden;
	background: var(--rfy-surface);
	box-shadow: var(--rfy-shadow-md);
}

.rfy-blog-hero__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.rfy-blog-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
	margin-block-start: 20px;
}

.rfy-blog-gallery__item {
	margin: 0;
}

.rfy-blog-gallery__trigger {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	border-radius: 12px;
	overflow: hidden;
}

.rfy-blog-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.rfy-blog-gallery__caption {
	margin-block-start: 8px;
	font-size: 0.95rem;
	color: var(--rfy-muted-foreground, #6b7280);
	text-align: start;
}

.rfy-blog-author__row {
	margin-block-start: 16px;
}

.rfy-blog-author__bio {
	margin-block-start: 20px;
}

/* In-article teaching figures — never stretch */
.rfy-blog-figure {
	margin: 24px 0;
	padding: 0;
	max-width: 68ch;
}

.rfy-blog-figure img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border-radius: var(--rfy-radius-md);
	object-fit: contain;
	background: var(--rfy-surface);
}

.rfy-blog-figure figcaption {
	margin-block-start: 8px;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--rfy-muted-foreground, #6b7280);
	text-align: start;
}

.arc-recipe-card__author-avatar--placeholder {
	background: var(--rfy-surface-alt);
}

.rfy-blog-archive {
	padding-block: clamp(32px, 5vw, 56px);
}

@media (max-width: 768px) {
	.rfy-blog-gallery__grid {
		grid-template-columns: 1fr;
	}
}
