/* =============================================================
 * Block: Читайте також (kl-also-read) 
 * Figma:
 *   colors: #9E0909 (label), #F5EBDF (bg), #1E1E1E (text)
 *   thumb : 183×112 (ratio ≈ 5:3)
 *   title : Rubik 600 / 20 / line-height 120% / uppercase / center
 *   label : Rubik 600 / 14 / line-height 20px / uppercase
 *   name  : Rubik 400 / 16 / line-height 120%
 *
 * NOTE: theme styles like `.single-recipe-layout1 .item-description span`
 * have specificity 0,2,1 — so all text rules below use a 3-class chain
 * (specificity 0,3,0) to reliably win without `!important`.
 * ============================================================= */

.kl-also-read {
	background: #F5EBDF;
	padding: 32px 36px;
	border-radius: 14px;
	margin: 32px 0;
	font-family: Rubik, sans-serif;
	color: #1E1E1E;
}

/* ---------- Heading ---------- */
.kl-also-read .kl-also-read__title,
h2.kl-also-read__title,
.site-main .kl-also-read__title,
.single-recipe-layout1 .item-description .kl-also-read__title {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
	text-align: center;
	font-family: Rubik, sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2; /* 120% */
	letter-spacing: 0;
	text-transform: uppercase;
	color: #1E1E1E;
}

/* ---------- Grid ---------- */
.kl-also-read .kl-also-read__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 36px;
}

/* ---------- Card link ---------- */
.kl-also-read .kl-also-read__grid .kl-also-read__card {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.18s ease;
}

.kl-also-read .kl-also-read__grid .kl-also-read__card:hover,
.kl-also-read .kl-also-read__grid .kl-also-read__card:focus {
	color: inherit;
	text-decoration: none;
	transform: translateY(-2px);
}

.kl-also-read .kl-also-read__grid .kl-also-read__card:hover .kl-also-read__name,
.kl-also-read .kl-also-read__grid .kl-also-read__card:focus .kl-also-read__name {
	color: #9E0909;
}

/* ---------- Thumbnail (183×112 from Figma) ---------- */
.kl-also-read .kl-also-read__card .kl-also-read__thumb {
	flex: 0 0 183px;
	width: 183px;
	height: 112px;
	border-radius: 0;
	overflow: hidden;
	background: #e8d9c4;
	margin: 0;
	padding: 0;
}

.kl-also-read .kl-also-read__thumb .kl-also-read__img,
.kl-also-read .kl-also-read__thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

/* ---------- Body column ---------- */
.kl-also-read .kl-also-read__card .kl-also-read__body {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 4px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* ---------- Category label (red) ---------- */
.kl-also-read .kl-also-read__body .kl-also-read__label,
.single-recipe-layout1 .item-description .kl-also-read__label {
	display: inline-block;
	color: #9E0909;
	font-family: Rubik, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 0;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
}

/* ---------- Recipe name ---------- */
.kl-also-read .kl-also-read__body .kl-also-read__name,
.single-recipe-layout1 .item-description .kl-also-read__name {
	color: #1E1E1E;
	font-family: Rubik, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2; /* 120% */
	letter-spacing: 0;
	transition: color 0.18s ease;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
	.kl-also-read {
		padding: 28px 24px;
	}

	.kl-also-read .kl-also-read__grid {
		gap: 24px;
	}

	.kl-also-read .kl-also-read__card .kl-also-read__thumb {
		flex: 0 0 160px;
		width: 160px;
		height: calc(160px * 112 / 183);
	}
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.kl-also-read {
		padding: 22px 18px;
		margin: 24px 0;
	}

	.kl-also-read .kl-also-read__title,
	h2.kl-also-read__title,
	.site-main .kl-also-read__title,
	.single-recipe-layout1 .item-description .kl-also-read__title {
		font-size: 18px;
		margin-bottom: 20px;
	}

	.kl-also-read .kl-also-read__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.kl-also-read .kl-also-read__grid .kl-also-read__card {
		gap: 14px;
	}

	.kl-also-read .kl-also-read__card .kl-also-read__thumb {
		flex: 0 0 140px;
		width: 140px;
		height: calc(140px * 112 / 183);
	}

	.kl-also-read .kl-also-read__body .kl-also-read__label,
	.single-recipe-layout1 .item-description .kl-also-read__label {
		font-size: 13px;
		line-height: 18px;
	}

	.kl-also-read .kl-also-read__body .kl-also-read__name,
	.single-recipe-layout1 .item-description .kl-also-read__name {
		font-size: 15px;
	}
}
