/* ==========================================================================
   Ingredients Directory Hero
   Mirrors the editorial collection hero pattern used by Keto Dinner.
   ========================================================================== */

.kf-pantry-hero {
	background: #f8f5f0;
	border-bottom: 1px solid #e8e2d9;
	padding: 48px 0 32px;
	text-align: left;
}

.kf-pantry-hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

.kf-pantry-hero-inner--text-only {
	grid-template-columns: minmax(0, 720px);
	justify-content: center;
}

.kf-pantry-hero-text {
	min-width: 0;
}

.kf-pantry-hero-byline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.kf-pantry-hero-byline > a {
	display: block;
	flex: 0 0 44px;
}

.kf-pantry-hero-avatar {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.kf-pantry-hero-byline-info {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.kf-pantry-hero-byline-name {
	color: #2B354F;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

.kf-pantry-hero-byline-name:hover {
	color: #c4714b;
	text-decoration: none;
}

.kf-pantry-hero-byline-meta {
	color: #8a7e6e;
	font-size: 0.8rem;
}

.kf-pantry-hero-title {
	color: #2B354F;
	font-family: 'Roboto', sans-serif;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.2;
	margin: 0 0 20px;
}

.kf-pantry-hero-subtitle {
	color: #3a3f4b;
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 0 0 20px;
	max-width: none;
}

.kf-pantry-hero-subtitle p {
	margin: 0;
}

.kf-pantry-hero-subtitle p + p {
	margin-top: 14px;
}

.kf-pantry-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	padding: 16px 0;
	margin: 20px 0 16px;
	border-top: 1px solid #e8e2d9;
	border-bottom: 1px solid #e8e2d9;
}

.kf-pantry-hero-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.kf-pantry-hero-stat-number {
	color: #2B354F;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.2;
}

.kf-pantry-hero-stat-label {
	color: #8a7e6e;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.kf-pantry-hero-jump {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border: 1px solid #e8e2d9;
	border-radius: 20px;
	background: #f5f0ea;
	color: #6b5e4b;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kf-pantry-hero-jump:hover {
	transform: translateY(-1px);
	border-color: #d4cdc3;
	background: #fff;
	color: #2B354F;
	text-decoration: none;
}

.kf-pantry-hero-jump:focus-visible,
.kf-pantry-hero-mosaic-item:focus-visible,
.kf-pantry-hero-byline a:focus-visible {
	outline: 3px solid #c4714b;
	outline-offset: 3px;
}

.kf-pantry-hero-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: repeat(3, 1fr);
	gap: 6px;
	height: 420px;
	max-height: 420px;
	border-radius: 16px;
	overflow: hidden;
}

.kf-pantry-hero-mosaic-item {
	display: block;
	overflow: hidden;
}

.kf-pantry-hero-mosaic-item:first-child {
	grid-row: 1 / 3;
	grid-column: 1;
}

.kf-pantry-hero-mosaic-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.kf-pantry-hero-mosaic-item:hover img {
	transform: scale(1.04);
}

#keto-ingredient-directory {
	scroll-margin-top: 24px;
}

@media (max-width: 767px) {
	.kf-pantry-hero {
		padding: 36px 0 32px;
	}

	.kf-pantry-hero-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.kf-pantry-hero-title {
		font-size: 1.5rem;
	}

	.kf-pantry-hero-subtitle {
		font-size: 1rem;
	}

	.kf-pantry-hero-stats {
		gap: 16px 24px;
	}

	.kf-pantry-hero-mosaic {
		height: 260px;
		max-height: 260px;
		border-radius: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kf-pantry-hero-jump,
	.kf-pantry-hero-mosaic-item img {
		transition: none;
	}
}
