/* Jael-inspired product layout, scoped to pages that opt in with zh-modern. */
body.zh-modern-page {
	background: #f4f7f8;
	color: #1f2933;
	overflow-x: hidden;
}

.zh-modern {
	--zh-bg: #f4f7f8;
	--zh-ink: #17212a;
	--zh-ink-soft: #24313c;
	--zh-panel: #ffffff;
	--zh-rule: #d8e0e6;
	--zh-text: #1f2933;
	--zh-muted: #5e6d79;
	--zh-steel: #4f7893;
	--zh-steel-dark: #365b73;
	--zh-accent: #1688a5;
	--zh-good: #247a5a;
	--zh-warm: #a26a18;
	min-height: 100vh;
	background: var(--zh-bg);
}

.zh-modern a {
	color: var(--zh-steel-dark);
	text-decoration: none;
}

.zh-modern a:hover {
	color: var(--zh-accent);
}

.zh-modern .container {
	max-width: 1140px;
}

.zh-product-nav {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--zh-rule);
	backdrop-filter: blur(10px);
}

.zh-product-nav-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 64px;
}

.zh-product-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--zh-text);
	font-weight: 700;
}

.zh-product-logo img {
	width: auto;
	height: 38px;
}

.zh-product-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	margin-left: auto;
}

.zh-product-links a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 8px 11px;
	border-radius: 6px;
	color: #52616d;
	font-size: 14px;
	font-weight: 600;
}

.zh-product-links a.active {
	background: #e7f1f5;
	color: var(--zh-ink);
}

.zh-product-links a.zh-lang-link {
	border: 1px solid var(--zh-rule);
	background: #fff;
}

.zh-hero {
	position: relative;
	overflow: hidden;
	padding: 72px 0 64px;
	background: var(--zh-ink);
	color: #eaf2f7;
	border-bottom: 4px solid var(--zh-accent);
}

.zh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 48px 48px;
	opacity: .45;
	pointer-events: none;
}

.zh-hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	align-items: end;
}

.zh-edition-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	margin-bottom: 18px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 6px;
	color: #9ed7e5;
	font-size: 13px;
	font-weight: 700;
}

.zh-hero h1 {
	margin: 0 0 18px;
	max-width: 720px;
	color: #fff;
	font-size: 56px;
	line-height: 1.04;
	font-weight: 750;
	letter-spacing: 0;
	overflow-wrap: break-word;
}

.zh-hero-lead {
	max-width: 650px;
	margin: 0 0 28px;
	color: #c6d4df;
	font-size: 18px;
	line-height: 1.7;
}

.zh-action-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.zh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border-radius: 6px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.zh-btn-primary {
	background: var(--zh-accent);
	border-color: var(--zh-accent);
	color: #fff !important;
}

.zh-btn-primary:hover {
	background: #1b9fbe;
	border-color: #1b9fbe;
}

.zh-btn-outline {
	background: transparent;
	border-color: rgba(255, 255, 255, .28);
	color: #eaf2f7 !important;
}

.zh-btn-outline:hover {
	border-color: #9ed7e5;
	color: #fff !important;
}

.zh-btn-light {
	background: var(--zh-steel);
	border-color: var(--zh-steel);
	color: #fff !important;
}

.zh-stat-list {
	display: grid;
	gap: 18px;
	padding-left: 24px;
	border-left: 2px solid rgba(158, 215, 229, .35);
}

.zh-stat-value {
	color: #fff;
	font-size: 30px;
	font-weight: 750;
	line-height: 1;
}

.zh-stat-label {
	margin-top: 6px;
	color: #9fb2c0;
	font-size: 13px;
}

.zh-download-band,
.zh-editions-band {
	background: #fff;
	border-bottom: 1px solid var(--zh-rule);
}

.zh-download-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 0;
}

.zh-download-copy {
	padding-left: 18px;
	border-left: 4px solid var(--zh-accent);
}

.zh-download-copy h2,
.zh-section-title {
	margin: 0 0 8px;
	color: var(--zh-ink);
	font-size: 28px;
	font-weight: 750;
	letter-spacing: 0;
}

.zh-download-copy p,
.zh-section-subtitle {
	margin: 0;
	color: var(--zh-muted);
	line-height: 1.65;
}

.zh-download-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.zh-webapp-band {
	padding: 44px 0 46px;
	background: #fff;
	border-bottom: 1px solid var(--zh-rule);
}

.zh-webapp-panel {
	padding: 16px;
	border: 1px solid var(--zh-rule);
	border-radius: 6px;
	background: #f7fafb;
}

.zh-webapp-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 5 / 3;
	margin-top: 16px;
	overflow: hidden;
	border: 1px solid #c9d5de;
	border-radius: 6px;
	background: #fff;
}

.zh-webapp-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.zh-docs-band {
	padding: 56px 0 60px;
}

.zh-docs-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.zh-toc {
	position: sticky;
	top: 88px;
	padding-left: 16px;
	border-left: 2px solid var(--zh-rule);
}

.zh-toc-title {
	margin-bottom: 12px;
	color: var(--zh-ink);
	font-size: 14px;
	font-weight: 750;
}

.zh-toc a {
	display: block;
	padding: 6px 0;
	color: var(--zh-muted);
	font-size: 14px;
}

.zh-toc a:hover {
	color: var(--zh-accent);
}

.zh-docs {
	max-width: 820px;
}

.zh-docs h2 {
	margin: 0 0 14px;
	color: var(--zh-ink);
	font-size: 30px;
	font-weight: 750;
	letter-spacing: 0;
}

.zh-docs h3 {
	margin: 34px 0 12px;
	color: var(--zh-ink-soft);
	font-size: 21px;
	font-weight: 750;
}

.zh-docs p,
.zh-docs li {
	color: #344551;
	font-size: 16px;
	line-height: 1.72;
}

.zh-docs ul {
	padding-left: 22px;
	margin-bottom: 20px;
}

.zh-note {
	margin: 24px 0;
	padding: 16px 18px;
	border-left: 4px solid var(--zh-good);
	border-radius: 0 6px 6px 0;
	background: #eef8f3;
	color: #234236;
	line-height: 1.65;
}

.zh-video-block {
	margin: 28px 0 34px;
	padding: 12px;
	border-radius: 6px;
	background: var(--zh-ink);
}

.zh-video-block video {
	display: block;
	width: 100%;
	max-height: 480px;
	border-radius: 4px;
	background: #000;
}

.zh-video-caption {
	padding: 10px 4px 0;
	color: #aab8c3;
	font-size: 13px;
}

.zh-use-cases,
.zh-edition-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 22px 0 28px;
}

.zh-use-case,
.zh-edition-card {
	padding: 18px;
	border: 1px solid var(--zh-rule);
	border-radius: 6px;
	background: #fff;
}

.zh-use-case {
	border-top: 3px solid var(--zh-warm);
}

.zh-use-case h4,
.zh-edition-card h3 {
	margin: 0 0 8px;
	color: var(--zh-ink);
	font-size: 17px;
	font-weight: 750;
}

.zh-use-case p,
.zh-edition-card p {
	margin: 0;
	color: var(--zh-muted);
	font-size: 14px;
	line-height: 1.6;
}

.zh-editions-inner {
	padding: 46px 0 48px;
}

.zh-edition-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.zh-edition-tag {
	color: var(--zh-accent);
	font-weight: 750;
}

.zh-footer {
	background: var(--zh-ink);
	color: #c6d4df;
}

.zh-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 28px 0;
}

.zh-footer a {
	color: #9ed7e5;
}

.zh-footer p {
	margin: 0;
	color: #a9b8c3;
}

@media (max-width: 900px) {
	.zh-hero-inner,
	.zh-docs-layout {
		grid-template-columns: 1fr;
	}

	.zh-stat-list,
	.zh-toc {
		position: static;
	}

	.zh-stat-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding-left: 0;
		padding-top: 18px;
		border-left: 0;
		border-top: 2px solid rgba(158, 215, 229, .35);
	}

	.zh-toc {
		display: none;
	}

	.zh-use-cases,
	.zh-edition-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	.zh-modern .container {
		width: min(calc(100vw - 24px), 366px);
		max-width: min(calc(100vw - 24px), 366px);
		padding-left: 0;
		padding-right: 0;
	}

	.zh-product-nav-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
		padding: 10px 0;
		width: min(calc(100vw - 24px), 366px);
		max-width: min(calc(100vw - 24px), 366px);
	}

	.zh-product-links {
		margin-left: 0;
		width: min(calc(100vw - 24px), 366px);
		max-width: min(calc(100vw - 24px), 366px);
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 4px;
	}

	.zh-product-links a {
		justify-content: center;
		min-height: 34px;
		padding: 7px 4px;
		font-size: 13px;
	}

	.zh-hero {
		padding: 46px 0 42px;
	}

	.zh-hero h1 {
		font-size: 36px;
	}

	.zh-hero-lead {
		font-size: 16px;
	}

	.zh-stat-list {
		grid-template-columns: 1fr;
	}

	.zh-download-inner,
	.zh-footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.zh-download-actions {
		justify-content: flex-start;
	}

	.zh-webapp-panel {
		padding: 10px;
	}

	.zh-webapp-frame {
		aspect-ratio: 4 / 3;
	}
}
