/**
 * TZ example library styles.
 */

.tz-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
	gap: 28px;
	align-items: center;
	overflow: hidden;
	padding: 52px;
	border-radius: 26px;
	background:
		radial-gradient(circle at 88% 16%, rgba(83, 166, 255, 0.32), transparent 34%),
		radial-gradient(circle at 12% 88%, rgba(18, 183, 106, 0.12), transparent 38%),
		linear-gradient(135deg, #0b1220 0%, #101828 52%, #123b5d 100%);
	color: #fff;
	box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
}

.tz-hero::after {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 42px 42px;
	content: "";
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
	pointer-events: none;
}

.tz-hero-copy,
.tz-hero-panel {
	position: relative;
	z-index: 1;
}

.tz-hero h1 {
	max-width: 780px;
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(30px, 4.5vw, 52px);
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.tz-hero p {
	max-width: 700px;
	margin: 0;
	color: #cbd5e1;
	font-size: 16px;
	line-height: 1.65;
}

.tz-hero-panel {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.06);
	backdrop-filter: blur(8px);
}

.tz-hero-stat {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tz-hero-stat:last-child {
	border-bottom: 0;
}

.tz-hero-stat strong {
	color: #fff;
	font-size: 26px;
	letter-spacing: -0.03em;
}

.tz-hero-stat span {
	color: #cbd5e1;
	font-size: 11px;
	text-align: right;
}

.tz-catalog {
	padding: 52px 0 12px;
}

.tz-catalog-note {
	max-width: 360px;
	margin: 0;
	color: var(--n8n-muted);
	font-size: 12px;
	text-align: right;
}

.tz-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

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

.tz-card {
	overflow: hidden;
	border: 1px solid var(--n8n-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.tz-card:hover {
	border-color: #9ecbff;
	box-shadow: 0 16px 34px rgba(16, 24, 40, 0.1);
	transform: translateY(-3px);
}

.tz-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 22px;
	color: inherit !important;
	text-decoration: none;
}

.tz-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 18px;
}

.tz-card-sphere {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border: 1px solid #d6e6f7;
	border-radius: 999px;
	background: #f3f9ff;
	color: var(--n8n-blue-dark);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tz-card-format {
	color: var(--n8n-muted);
	font-size: 10px;
	white-space: nowrap;
}

.tz-card h2 {
	margin: 0 0 8px;
	font-size: 21px;
	line-height: 1.3;
	letter-spacing: -0.025em;
}

.tz-card p {
	display: -webkit-box;
	margin: 0 0 16px;
	overflow: hidden;
	color: var(--n8n-muted);
	font-size: 13px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.tz-card-facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: auto 0 16px;
	padding: 12px 0 0;
	border-top: 1px solid #f0f0f1;
	list-style: none;
}

.tz-card-facts li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tz-card-facts span {
	color: var(--n8n-muted);
	font-size: 9px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tz-card-facts strong {
	color: var(--n8n-ink);
	font-size: 13px;
}

.tz-card-cta {
	margin-top: auto;
	color: var(--n8n-blue-dark);
	font-size: 12px;
	font-weight: 800;
}

.tz-card-compact .tz-card-link {
	padding: 18px;
}

.tz-card-compact h2 {
	font-size: 16px;
}

.tz-card-compact p {
	margin-bottom: 12px;
	-webkit-line-clamp: 2;
}

.tz-card-compact .tz-card-top {
	margin-bottom: 12px;
}

.tz-single-hero {
	background:
		radial-gradient(circle at 92% 8%, rgba(83, 166, 255, 0.18), transparent 32%),
		linear-gradient(135deg, #f8fbff 0%, #eef6ff 60%, #eef2ff 100%);
}

.tz-download-card {
	border-color: #b9d9f5;
	background: linear-gradient(160deg, #f5faff 0%, #eef6ff 100%);
}

.tz-download-card h2 {
	font-size: 22px;
}

.tz-section-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tz-section-list li {
	position: relative;
	padding: 5px 0 5px 18px;
	border-bottom: 1px solid #f0f0f1;
	color: #344054;
	font-size: 11px;
}

.tz-section-list li:last-child {
	border-bottom: 0;
}

.tz-section-list li::before {
	position: absolute;
	left: 0;
	color: var(--n8n-blue);
	content: "•";
}

.tz-success {
	padding: 16px;
	border: 1px solid #abefc6;
	border-radius: 10px;
	background: #ecfdf3;
	text-align: center;
}

.tz-success-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0 auto 8px;
	border-radius: 50%;
	background: #12b76a;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
}

.tz-success h2 {
	margin: 0 0 6px;
	color: #067647;
	font-size: 18px;
}

.tz-success p {
	margin: 0 0 10px;
	color: #067647;
	font-size: 11px;
}

.tz-success .n8n-button {
	background: #067647;
}

.tz-success code {
	font-size: 10px;
}

.tz-prose h2 {
	margin-top: 34px;
}

.tz-prose h2:first-child {
	margin-top: 0;
}

@media (max-width: 1024px) {
	.tz-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.tz-hero-panel {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.tz-hero-stat {
		flex-direction: column;
		align-items: flex-start;
		border-right: 1px solid rgba(255, 255, 255, 0.1);
		border-bottom: 0;
	}

	.tz-hero-stat:last-child {
		border-right: 0;
	}

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

@media (max-width: 782px) {
	.tz-hero {
		padding: 30px 22px;
		border-radius: 18px;
	}

	.tz-hero h1 {
		font-size: 34px;
	}

	.tz-hero-panel,
	.tz-grid,
	.tz-grid-related {
		grid-template-columns: 1fr;
	}

	.tz-hero-stat {
		flex-direction: row;
		align-items: baseline;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.tz-catalog h2 {
		font-size: 28px;
	}

	.tz-catalog-note {
		text-align: left;
	}
}
