/* Blog discovery and category architecture 0.10.263 */

.emo-journal--discovery .emo-journal-listing--discovery,
.emo-journal--category .emo-journal-listing--discovery {
	padding-top: clamp(30px, 5vw, 58px) !important;
}

.emo-blog-discovery {
	margin: 0 0 clamp(42px, 6vw, 70px);
	padding: clamp(24px, 3.8vw, 38px);
	background: #f1eadf;
	border-radius: 24px;
	box-shadow: 0 10px 30px rgba(13, 33, 27, 0.05);
}

.emo-blog-discovery__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
}

.emo-blog-discovery__heading h2,
.emo-blog-section-heading h2 {
	margin: 6px 0 0;
	font-size: clamp(26px, 3vw, 40px);
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.emo-blog-filter-form {
	display: grid;
	gap: 18px;
}

.emo-blog-search-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
}

.emo-blog-search-row input[type="search"] {
	width: 100%;
	min-height: 54px;
	padding: 0 18px;
	border: 1px solid rgba(20, 52, 43, 0.16);
	border-radius: 14px;
	background: #fff;
	color: #17362e;
	font-size: 16px;
	box-shadow: none;
}

.emo-blog-search-row input[type="search"]:focus {
	outline: 2px solid rgba(28, 83, 67, 0.24);
	outline-offset: 2px;
	border-color: #285d4f;
}

.emo-blog-search-row > button,
.emo-blog-apply {
	min-height: 54px;
	padding: 0 22px;
	border: 0;
	border-radius: 14px;
	background: #17362e;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.emo-blog-search-row > button:hover,
.emo-blog-apply:hover {
	background: #21483d;
	transform: translateY(-1px);
	box-shadow: 0 9px 22px rgba(13, 33, 27, 0.12);
}

.emo-blog-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.emo-blog-chip {
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid rgba(23, 54, 46, 0.16);
	border-radius: 999px;
	background: #e4eee8;
	color: #17362e;
	font-size: 14px;
	font-weight: 650;
	line-height: 1;
	cursor: pointer;
	transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.emo-blog-chip:hover {
	transform: translateY(-1px);
	background: #d8e7de;
	border-color: rgba(23, 54, 46, 0.3);
}

.emo-blog-chip.is-active {
	background: #17362e;
	border-color: #17362e;
	color: #fff;
}

.emo-blog-chip.is-active:hover {
	background: #21483d;
	border-color: #21483d;
}

.emo-blog-filter-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.emo-blog-apply {
	display: none;
	min-height: 42px;
	padding-inline: 17px;
}

.js .emo-blog-apply,
html:not(.no-js) .emo-blog-apply {
	display: inline-flex;
	align-items: center;
}

.emo-blog-filter-actions > a {
	color: #315d50;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.emo-blog-featured,
.emo-blog-results,
.emo-blog-category-navigation {
	margin-top: clamp(42px, 6vw, 72px);
}

.emo-blog-featured:first-of-type {
	margin-top: 0;
}

.emo-blog-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.emo-blog-result-count {
	flex: 0 0 auto;
	padding-bottom: 6px;
	color: #64736e;
	font-size: 14px;
}

.emo-blog-featured-grid,
.emo-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.emo-blog-featured-grid .emo-article-card,
.emo-blog-grid .emo-article-card {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	background: #fff;
	border: 0;
	border-radius: 18px !important;
	box-shadow: 0 10px 28px rgba(13, 33, 27, 0.055) !important;
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease;
}

.emo-blog-featured-grid .emo-article-card:hover,
.emo-blog-grid .emo-article-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(13, 33, 27, 0.09) !important;
}

.emo-blog-featured-grid .emo-article-card__media,
.emo-blog-grid .emo-article-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e7e1d6;
}

.emo-blog-featured-grid .emo-article-card__media img,
.emo-blog-grid .emo-article-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.emo-blog-featured-grid .emo-article-card:hover .emo-article-card__media img,
.emo-blog-grid .emo-article-card:hover .emo-article-card__media img {
	transform: scale(1.025);
}

.emo-blog-featured-grid .emo-article-card__body,
.emo-blog-grid .emo-article-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 20px 22px;
}

.emo-blog-featured-grid .emo-article-card__body h2,
.emo-blog-grid .emo-article-card__body h2 {
	font-size: clamp(20px, 2vw, 25px);
	line-height: 1.16;
	letter-spacing: -0.02em;
}

.emo-blog-featured-grid .emo-article-card__body p,
.emo-blog-grid .emo-article-card__body p {
	color: #5a6964;
	line-height: 1.6;
}

.emo-blog-featured-grid .emo-article-card__link,
.emo-blog-grid .emo-article-card__link {
	margin-top: auto;
}

.emo-blog-featured-grid {
	position: relative;
}

.emo-blog-featured-grid::before {
	content: "";
	position: absolute;
	inset: -10px;
	z-index: -1;
	border-radius: 24px;
	background: linear-gradient(120deg, rgba(239, 232, 220, 0.78), rgba(239, 232, 220, 0));
}

.emo-blog-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.emo-blog-category-card {
	position: relative;
	display: block;
	min-height: 245px;
	border-radius: 20px;
	overflow: hidden;
	background: linear-gradient(145deg, #d9d0c1, #b9c3b8);
	box-shadow: 0 10px 28px rgba(13, 33, 27, 0.06);
	isolation: isolate;
}

.emo-blog-category-card__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: var(--emo-blog-category-image, linear-gradient(145deg, #d8cfbf, #aebdb2));
	background-position: center;
	background-size: cover;
	transition: transform .3s ease;
}

.emo-blog-category-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(8, 25, 21, 0.03) 30%, rgba(8, 25, 21, 0.78) 100%);
}

.emo-blog-category-card:hover .emo-blog-category-card__media {
	transform: scale(1.035);
}

.emo-blog-category-card__content {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 18px;
	display: grid;
	gap: 4px;
	color: #fff;
}

.emo-blog-category-card__content strong {
	font-size: 21px;
	line-height: 1.1;
}

.emo-blog-category-card__content small {
	font-size: 13px;
	opacity: .82;
}

.emo-blog-empty-state {
	margin-top: 0;
}

.emo-journal--category .emo-blog-discovery {
	margin-bottom: 0;
}

.emo-journal--category .emo-blog-results {
	margin-top: clamp(42px, 6vw, 64px);
}

@media (max-width: 1040px) {
	.emo-blog-featured-grid,
	.emo-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.emo-blog-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.emo-blog-discovery {
		padding: 22px 18px;
		border-radius: 18px;
	}

	.emo-blog-search-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.emo-blog-search-row > button {
		width: 100%;
	}

	.emo-blog-section-heading,
	.emo-blog-discovery__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.emo-blog-result-count {
		padding: 0;
	}

	.emo-blog-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.emo-blog-featured-grid,
	.emo-blog-grid,
	.emo-blog-category-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.emo-blog-category-card {
		min-height: 220px;
	}

	.emo-blog-filter-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.emo-blog-apply {
		justify-content: center;
	}
}
