/**
 * TropicZen Online — homepage editorial layout (tropiczen-workspace-g4q)
 */

.tz-home-editorial {
	--tz-home-container: min(1440px, 100%);
	--tz-home-editorial: min(1280px, 100%);
	--tz-home-hero: min(1500px, 100%);
	--tz-home-section-pad: 72px;
	--tz-home-card-gap: 28px;
}

/* Full-width homepage shell — no sidebar column squeeze */
.tz-home-editorial.understrap-has-sidebar #primary.content-area,
.tz-home-editorial .content-area,
.tz-home-editorial #primary {
	flex: 0 0 100%;
	max-width: 100%;
	width: 100%;
	min-width: 0;
	padding-inline: 0;
}

.tz-home-editorial #page-wrapper .container,
.tz-home-editorial #content.container {
	width: 100%;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
}

.tz-home-editorial #page-wrapper .row {
	margin-inline: 0;
	width: 100%;
}

.tz-home-editorial .site-main,
.tz-home-editorial .entry-content {
	width: 100%;
	max-width: none;
	min-width: 0;
	box-sizing: border-box;
}

.tz-home-editorial .entry-content > .tz-section:first-of-type,
.tz-home-editorial .entry-content > .tz-section:first-of-type .tz-container {
	width: 100%;
	max-width: var(--tz-home-container);
	margin-inline: auto;
}

.tz-home-editorial .tz-container {
	width: 100%;
	max-width: var(--tz-home-container);
	margin-inline: auto;
	box-sizing: border-box;
}

.tz-home-editorial .tz-home-section .tz-container {
	max-width: var(--tz-home-editorial);
}

.tz-home-editorial .tz-hero-premium,
.tz-home-editorial .tz-hero-premium--video {
	width: 100%;
	max-width: var(--tz-home-hero);
	margin-inline: auto;
	min-height: 680px;
	margin-bottom: 90px;
	border-radius: var(--tz-radius);
	box-sizing: border-box;
}

.tz-home-editorial .tz-hero-premium--full .tz-hero__inner {
	width: 100%;
	max-width: min(1380px, 100%);
}

.tz-home-editorial .tz-home-topics,
.tz-home-editorial .entry-content > .tz-section:first-of-type {
	padding-block: 52px;
}

.tz-home-editorial .tz-home-topics .tz-container,
.tz-home-editorial .entry-content > .tz-section:first-of-type .tz-container {
	max-width: var(--tz-home-editorial);
}

.tz-home-section {
	padding-block: var(--tz-home-section-pad);
	width: 100%;
	box-sizing: border-box;
}

.tz-home-section .tz-section__header {
	max-width: 40rem;
	margin-bottom: 2rem;
}

.tz-editorial-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--tz-home-card-gap);
	align-items: stretch;
	width: 100%;
}

.tz-editorial-card,
.tz-home-product-card,
.tz-compare-card,
.tz-feature-card {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.tz-editorial-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	overflow: hidden;
	background: var(--tz-coconut, #fff);
	border: 1px solid rgba(47, 74, 44, 0.08);
	border-radius: var(--tz-radius);
	box-shadow: var(--tz-shadow-soft);
}

.tz-editorial-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tz-shadow-card);
}

.tz-editorial-card__image {
	height: 220px;
	margin: 0;
	border-radius: var(--tz-radius) var(--tz-radius) 0 0;
	overflow: hidden;
	background: var(--tz-sand, #f0ebe3);
}

.tz-editorial-card__image img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	display: block;
}

.tz-editorial-card__body {
	padding: 1.25rem 1.35rem 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.65rem;
	min-width: 0;
}

.tz-editorial-card__body h3 {
	margin: 0;
	font-size: clamp(1.05rem, 1.6vw, 1.25rem);
	line-height: 1.3;
}

.tz-editorial-card__body p {
	margin: 0;
	color: var(--tz-muted);
	font-size: var(--tz-text-small);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tz-editorial-card__body .tz-text-link {
	margin-top: auto;
	padding-top: 0.35rem;
}

.tz-feature-card {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
	gap: 0;
	padding: 0;
	overflow: hidden;
	background: var(--tz-coconut);
	border: 1px solid rgba(47, 74, 44, 0.08);
	border-radius: var(--tz-radius);
	box-shadow: var(--tz-shadow-soft);
	min-height: 280px;
}

.tz-feature-card__media {
	min-height: 280px;
	overflow: hidden;
	min-width: 0;
}

.tz-feature-card__media img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	display: block;
}

.tz-feature-card__body {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
	min-width: 0;
}

.tz-feature-card__body h3 {
	margin: 0;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.tz-feature-card__body p {
	margin: 0;
	color: var(--tz-muted);
	font-size: var(--tz-text-body-lg);
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tz-home-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	overflow: hidden;
	background: var(--tz-coconut);
	border: 1px solid rgba(47, 74, 44, 0.08);
	border-radius: var(--tz-radius);
	box-shadow: var(--tz-shadow-soft);
}

.tz-home-product-card__image {
	height: 190px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.25rem;
	background: #fffdf7;
	border-bottom: 1px solid rgba(47, 74, 44, 0.06);
}

.tz-home-product-card__image img {
	max-width: 100%;
	max-height: 150px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.tz-home-product-card__body {
	padding: 1.15rem 1.25rem 1.35rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.55rem;
	min-width: 0;
}

.tz-home-product-card__body h3 {
	margin: 0;
	font-size: 1.05rem;
	color: var(--tz-heading);
}

.tz-home-product-card__body p {
	margin: 0;
	font-size: var(--tz-text-small);
	color: var(--tz-muted);
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tz-home-product-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.tz-home-product-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.65rem;
}

.tz-home-product-card__actions .tz-button {
	padding: 0.55rem 0.95rem;
	font-size: var(--tz-text-caption);
}

.tz-compare-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.35rem;
	background: var(--tz-coconut);
	border: 1px dashed rgba(111, 143, 91, 0.35);
	border-radius: var(--tz-radius);
	box-shadow: var(--tz-shadow-soft);
}

.tz-compare-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
}

.tz-compare-card p {
	margin: 0 0 1rem;
	flex: 1;
	color: var(--tz-muted);
	font-size: var(--tz-text-small);
	line-height: 1.55;
}

.tz-home-editorial .tz-magazine-section:nth-child(even) {
	background: var(--tz-soft-white);
}

.tz-home-editorial .tz-newsletter {
	margin-top: 0;
	width: 100%;
	box-sizing: border-box;
}

.tz-home-editorial .tz-footer-premium {
	width: 100%;
}

@media (max-width: 991px) {
	.tz-home-editorial {
		--tz-home-section-pad: 52px;
	}

	.tz-home-editorial .tz-hero-premium,
	.tz-home-editorial .tz-hero-premium--video {
		min-height: 560px;
		margin-bottom: 64px;
	}

	.tz-editorial-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tz-editorial-card__image {
		height: 190px;
	}

	.tz-feature-card {
		grid-template-columns: 1fr;
	}

	.tz-feature-card__media {
		min-height: 200px;
		height: 200px;
	}
}

@media (max-width: 767px) {
	.tz-home-editorial {
		--tz-home-section-pad: 38px;
	}

	.tz-home-editorial .tz-hero-premium,
	.tz-home-editorial .tz-hero-premium--video {
		min-height: 520px;
		margin-bottom: 48px;
		border-radius: 18px;
	}

	.tz-editorial-grid {
		grid-template-columns: 1fr;
	}

	.tz-editorial-card__image {
		height: 170px;
	}

	.tz-home-product-card__image {
		height: 170px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tz-editorial-card:hover,
	.tz-home-product-card:hover {
		transform: none;
	}
}
