/* ==========================================================================
   Collection Roundup — editorial, magazine-style collection layout
   Used when term meta `kf_roundup_mode` is set on a tags taxonomy term.
   ========================================================================== */

/* ---------- Hero ---------- */
.kf-roundup .kf-collection-hero {
	text-align: left;
	padding: 48px 0 32px;
}
.kf-roundup .kf-collection-hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}
.kf-roundup .kf-collection-hero-title {
	font-size: 2rem;
	line-height: 1.2;
	margin: 0 0 20px;
}
.kf-roundup .kf-collection-hero-desc {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #3a3f4b;
	margin-bottom: 20px;
}
.kf-roundup .kf-collection-hero-desc p {
	margin: 0;
}

/* Author byline */
.kf-roundup-byline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}
.kf-roundup-byline-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}
.kf-roundup-byline-info {
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.kf-roundup-byline-name {
	font-size: 0.92rem;
	font-weight: 700;
	color: #2B354F;
}
.kf-roundup-byline-meta {
	font-size: 0.8rem;
	color: #8a7e6e;
}

/* Stats bar */
.kf-roundup-stats-bar {
	display: flex;
	gap: 24px;
	padding: 16px 0;
	margin: 20px 0 16px;
	border-top: 1px solid #e8e2d9;
	border-bottom: 1px solid #e8e2d9;
}
.kf-roundup-stats-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.kf-roundup-stats-num {
	font-size: 1.1rem;
	font-weight: 700;
	color: #2B354F;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.kf-roundup-stats-label {
	font-size: 0.75rem;
	color: #8a7e6e;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
}

/* Share strip */
.kf-roundup-share {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}
.kf-roundup-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid #e8e2d9;
	background: #f5f0ea;
	color: #6b5e4b;
}
.kf-roundup-share-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(120, 90, 50, 0.1);
	background: #fff;
	border-color: #d4cdc3;
	color: #2B354F;
	text-decoration: none;
}
.kf-share-pinterest {
	background: #f5f0ea;
	color: #6b5e4b;
	border-color: #e8e2d9;
}
.kf-share-pinterest svg {
	color: #E60023;
}
.kf-share-pinterest:hover {
	background: #fff;
	color: #2B354F;
	border-color: #d4cdc3;
}
.kf-share-pinterest:hover svg {
	color: #ad081b;
}
.kf-share-copy.copied {
	background: #2B354F;
	color: #fff;
	border-color: #2B354F;
	transform: none;
	box-shadow: none;
}

/* Hero mosaic */
.kf-roundup-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr;
	gap: 6px;
	border-radius: 16px;
	overflow: hidden;
	max-height: 420px;
}
.kf-roundup-mosaic-item {
	overflow: hidden;
	display: block;
}
.kf-roundup-mosaic-item:first-child {
	grid-row: 1 / 3;
	grid-column: 1;
}
.kf-roundup-mosaic-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.kf-roundup-mosaic-item:hover img {
	transform: scale(1.04);
}

/* ---------- TOC (jump links) ---------- */
.kf-roundup-toc {
	max-width: 800px;
	margin: 48px auto 40px;
	padding: 28px 32px;
	background: #fdf9f5;
	border: 1px solid #e8e2d9;
	border-radius: 16px;
}
.kf-roundup-toc-title {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #8a7e6e;
	margin: 0 0 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.kf-toc-count {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	background: #f5f0ea;
	color: #6b5e4b;
	padding: 3px 10px;
	border-radius: 20px;
}
.kf-roundup-toc-groups {
	columns: 2;
	column-gap: 36px;
}
.kf-toc-group {
	break-inside: avoid;
	margin-bottom: 16px;
}
.kf-toc-group:last-child {
	margin-bottom: 0;
}
.kf-toc-group-title {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #2B354F;
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 2px solid #e8e2d9;
}
.kf-roundup-toc ol {
	margin: 0;
	padding: 0 0 0 24px;
	list-style: decimal;
}
.kf-roundup-toc ol li::marker {
	color: #c4714b;
	font-weight: 700;
	font-size: 0.88rem;
}
.kf-roundup-toc li {
	padding: 3px 0;
	line-height: 1.3;
}
.kf-roundup-toc a {
	color: #3a3f4b;
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.4;
	transition: color 0.15s;
}
.kf-roundup-toc a:hover {
	color: #c4714b;
}

/* ---------- Section headers ---------- */
.kf-roundup-section {
	max-width: 800px;
	margin: 0 auto 48px;
}
.kf-roundup-section-header {
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 2px solid #e8e2d9;
}
.kf-roundup-section-title {
	font-size: 1.5rem;
	color: #2B354F;
	margin: 0 0 8px;
	line-height: 1.3;
}
.kf-roundup-section-intro {
	font-size: 1rem;
	color: #3a3f4b;
	line-height: 1.6;
	margin: 0;
}

/* ---------- Recipe card (horizontal layout) ---------- */
.kf-roundup-card {
	display: flex;
	gap: 24px;
	margin-bottom: 36px;
	padding-bottom: 36px;
	border-bottom: 1px solid #efe9e0;
	scroll-margin-top: 80px;
}
.kf-roundup-card:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.kf-roundup-card-img {
	flex-shrink: 0;
	width: 260px;
	height: 195px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}
.kf-roundup-card-img a {
	display: block;
	width: 100%;
	height: 100%;
}
.kf-roundup-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.kf-roundup-card:hover .kf-roundup-card-img img {
	transform: scale(1.03);
}
.kf-roundup-card-num {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 32px;
	height: 32px;
	background: linear-gradient(135deg, #2B354F 0%, #3d4a6b 100%);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 700;
	z-index: 1;
}

/* ---------- Card content ---------- */
.kf-roundup-card-content {
	flex: 1;
	min-width: 0;
}
.kf-roundup-card-title {
	font-size: 1.2rem;
	color: #2B354F;
	margin: 0 0 4px;
	line-height: 1.3;
}
.kf-roundup-card-title a {
	color: inherit;
	text-decoration: none;
}
.kf-roundup-card-title a:hover {
	color: #c4714b;
}

/* Star rating */
.kf-roundup-card-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}
.kf-roundup-stars {
	display: inline-flex;
	gap: 1px;
	color: #f59e0b;
	font-size: 0.85rem;
}
.kf-roundup-rating-count {
	font-size: 0.8rem;
	color: #8a7e6e;
}

/* Blurb */
.kf-roundup-card-blurb {
	font-size: 0.95rem;
	line-height: 1.65;
	color: #3a3f4b;
	margin: 0 0 12px;
}

/* Stats pills */
.kf-roundup-card-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.kf-roundup-stat {
	display: inline-block;
	background: #f5f0ea;
	color: #6b5e4b;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
}

/* View Recipe link */
.kf-roundup-card-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #c4714b;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s;
}
.kf-roundup-card-link:hover {
	color: #2B354F;
}
.kf-roundup-card-link svg {
	width: 14px;
	height: 14px;
	transition: transform 0.15s;
}
.kf-roundup-card-link:hover svg {
	transform: translateX(3px);
}


/* More recipes grid — wider than editorial sections */
.kf-roundup-more {
	max-width: 100%;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.kf-roundup .kf-collection-hero-inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.kf-roundup .kf-collection-hero-title {
		font-size: 1.5rem;
	}
	.kf-roundup .kf-collection-hero-desc {
		font-size: 1rem;
	}
	.kf-roundup-stats-bar {
		gap: 16px;
		flex-wrap: wrap;
	}
	.kf-roundup-mosaic {
		max-height: 320px;
	}
	.kf-roundup-share {
		flex-wrap: wrap;
	}
	.kf-roundup-toc {
		padding: 20px 20px;
	}
	.kf-roundup-toc-groups {
		columns: 1;
	}
	.kf-roundup-toc li {
		padding: 5px 0;
	}
	.kf-roundup-card {
		flex-direction: column;
		gap: 16px;
	}
	.kf-roundup-card-img {
		width: 100%;
		height: auto;
		aspect-ratio: 4 / 3;
	}
	.kf-roundup-card-title {
		font-size: 1.1rem;
	}
	.kf-roundup-section-title {
		font-size: 1.25rem;
	}
}

/* ---------- Crawl links (keep hidden) ---------- */
.kf-crawl-links {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
