/**
 * AscendAI Related Insights.
 *
 * The component can appear inside both the standard blog template and the
 * site-owned podcast template, so its selectors are component-scoped.
 */

.ascend-related-insights {
	--ascend-related-ink: #1b1b1e;
	--ascend-related-muted: #65748b;
	--ascend-related-blue: #1687c9;
	--ascend-related-border: #d9e4ea;
	--ascend-related-surface: #f6fbfe;
	width: 100%;
	margin: clamp(4rem, 7vw, 6.5rem) auto 0;
	padding: clamp(2rem, 4vw, 3.25rem);
	border-radius: clamp(1.25rem, 2.5vw, 2rem);
	background:
		radial-gradient(circle at 100% 0%, rgb(74 174 226 / 18%), transparent 28rem),
		linear-gradient(145deg, #f8fcfe 0%, #edf7fc 100%);
	box-shadow: inset 0 0 0 1px rgb(22 135 201 / 14%);
	color: var(--ascend-related-ink);
}

.ascend-related-insights *,
.ascend-related-insights *::before,
.ascend-related-insights *::after {
	box-sizing: border-box;
}

.ascend-related-insights__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

body .ascend-related-insights__header h2 {
	display: flex;
	gap: 0.8rem;
	align-items: center;
	margin: 0;
	color: var(--ascend-related-ink);
	font-size: clamp(1.65rem, 2.7vw, 2.35rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
	text-transform: none;
}

body .ascend-related-insights__header h2::before {
	width: 0.35rem;
	height: 1.05em;
	border-radius: 999px;
	background: var(--ascend-related-blue);
	content: "";
}

.ascend-related-insights__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.ascend-related-insights__item {
	min-width: 0;
}

body .ascend-related-insights__link {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	color: var(--ascend-related-ink);
	text-decoration: none;
	transition: color 160ms ease, transform 160ms ease;
}

body .ascend-related-insights__link:hover,
body .ascend-related-insights__link:focus-visible {
	color: #086da9;
	transform: translateY(-2px);
}

.ascend-related-insights__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 0.9rem;
	background:
		linear-gradient(135deg, rgb(22 135 201 / 14%), rgb(22 135 201 / 3%)),
		var(--ascend-related-surface);
	box-shadow: 0 0.7rem 1.8rem rgb(34 81 111 / 10%);
}

.ascend-related-insights__media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 240ms ease;
}

body .ascend-related-insights__link:hover .ascend-related-insights__media img,
body .ascend-related-insights__link:focus-visible .ascend-related-insights__media img {
	transform: scale(1.025);
}

.ascend-related-insights__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1rem 0.15rem 0;
}

.ascend-related-insights__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
	margin-bottom: 0.65rem;
	color: var(--ascend-related-muted);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	line-height: 1.35;
	text-transform: uppercase;
}

.ascend-related-insights__title {
	display: -webkit-box;
	overflow: hidden;
	color: inherit;
	font-size: clamp(1rem, 1.45vw, 1.12rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

@media (max-width: 740px) {
	.ascend-related-insights__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	body .ascend-related-insights__link {
		display: grid;
		grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr);
		gap: 1rem;
		align-items: center;
	}

	.ascend-related-insights__body {
		padding: 0;
	}
}

@media (max-width: 430px) {
	.ascend-related-insights {
		margin-top: 3rem;
		padding: 1.35rem;
	}

	body .ascend-related-insights__link {
		grid-template-columns: 6.5rem minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	body .ascend-related-insights__link,
	.ascend-related-insights__media img {
		transition: none;
	}
}
