.echo-tm {
	--tm-green: var(--e-global-color-primary, #a6ce39);
	--tm-blue: var(--e-global-color-accent, #2c34c0);
	--tm-ink: var(--e-global-color-text, #383838);
	--tm-text: var(--e-global-color-text, #383838);
	--tm-muted: var(--e-global-color-1dc1163, #514b49);
	--tm-line: #d7d7d7;
	--tm-hover-border: var(--e-global-color-primary, #a6ce39);
	--tm-lift: 3px;
	--tm-hover-ring: 1px;
	--tm-tint: #f6f7fc;
	--tm-gap: 1.5rem;
	--tm-per-view: 3;
	position: relative;
	width: 100%;
	color: var(--tm-text);
	font-family: var(--e-global-typography-16dfca4-font-family, "Lato"), system-ui, sans-serif;
}

/* ---------- Card ---------- */

.echo-tm__card {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	height: 100%;
	margin: 0;
	padding: 30px;
	border: 1px solid var(--tm-line);
	border-radius: 10px;
	background: var(--e-global-color-0e99b8d, #fff);
	box-sizing: border-box;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

/* Hover: a small lift plus a brand-colour border. No shadow, so nothing is clipped by the carousel or the section below. */
.echo-tm .echo-tm__card:hover,
.echo-tm .echo-tm__card:focus-within {
	border-color: var(--tm-hover-border);
	box-shadow: inset 0 0 0 var(--tm-hover-ring) var(--tm-hover-border);
	transform: translateY(calc(var(--tm-lift) * -1));
}

.echo-tm__card[hidden] {
	display: none;
}

.echo-tm__who {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: 0;
	font-style: normal;
	text-align: left;
}

.echo-tm__logo-wrap {
	display: block;
	flex: 0 0 auto;
	width: 140px;
	max-width: 42%;
	height: 50px;
}

.echo-tm .echo-tm__logo {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: none;
	object-fit: contain;
	object-position: left center;
}

.echo-tm__id {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	padding-left: 1rem;
	border-left: 2px solid var(--tm-green);
}

.echo-tm__name {
	color: var(--tm-ink);
	font-family: var(--e-global-typography-bdafee7-font-family, "Open Sans"), sans-serif;
	font-size: var(--e-global-typography-bdafee7-font-size, 18px);
	font-weight: var(--e-global-typography-bdafee7-font-weight, 600);
	line-height: 1.3;
}

.echo-tm__role {
	color: var(--tm-muted);
	font-family: var(--e-global-typography-44078a4-font-family, "Lato"), sans-serif;
	font-size: var(--e-global-typography-44078a4-font-size, 0.8rem);
	line-height: 1.35;
}

.echo-tm__quote {
	position: relative;
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	quotes: none;
}

.echo-tm__quote::before {
	content: "\201C";
	position: absolute;
	top: -0.55rem;
	left: -0.2rem;
	color: var(--tm-green);
	font-family: Georgia, serif;
	font-size: 3.25rem;
	line-height: 1;
	opacity: 0.35;
	pointer-events: none;
}

.echo-tm__text {
	position: relative;
	font-size: var(--e-global-typography-16dfca4-font-size, 17px);
	line-height: 1.6;
}

.echo-tm__text p {
	margin: 0 0 0.8em;
}

.echo-tm__text p:last-child {
	margin-bottom: 0;
}

/* Clamp: JS adds .is-clamped only when the text runs more than a few lines past the limit. */
.echo-tm {
	--tm-lines: 9;
}

.echo-tm__card.is-clamped:not(.is-open) .echo-tm__text {
	max-height: var(--tm-clamp-h, calc(var(--tm-lines) * 1.6em));
	overflow: hidden;
}

.echo-tm__ellipsis {
	display: none;
}

.echo-tm__card.is-clamped:not(.is-open) .echo-tm__ellipsis {
	display: block;
	margin-top: 0.15rem;
	color: var(--tm-green);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 0.6;
	letter-spacing: 0.1em;
}

.echo-tm .echo-tm__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	align-self: flex-start;
	margin: -0.25rem 0 0;
	padding: 0.35rem 0.6rem 0.35rem 0.9rem;
	border: 0;
	border-radius: 2rem;
	background: var(--tm-tint);
	color: var(--tm-blue);
	font-family: var(--e-global-typography-927386e-font-family, "Lato"), sans-serif;
	font-size: var(--e-global-typography-927386e-font-size, 0.8rem);
	font-weight: var(--e-global-typography-927386e-font-weight, 600);
	line-height: 1.3;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.echo-tm .echo-tm__more:hover,
.echo-tm .echo-tm__more:focus-visible {
	background: var(--tm-blue);
	color: #fff;
}

.echo-tm__more .echo-tm__icon {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.echo-tm__more[aria-expanded="true"] .echo-tm__icon {
	transform: rotate(180deg);
}

.echo-tm__more[hidden] {
	display: none !important;
}

.echo-tm__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
}

.echo-tm__foot:empty {
	display: none;
}

.echo-tm__stars {
	display: inline-flex;
	gap: 2px;
}

.echo-tm__stars svg {
	display: block;
	fill: var(--e-global-color-secondary, #ffd300);
}

.echo-tm__stars svg.is-off {
	fill: var(--e-global-color-ff8786c, #ebebeb);
}

.echo-tm__tag {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.8rem;
	border-radius: 2rem;
	background: var(--tm-tint);
	color: var(--tm-blue);
	font-family: var(--e-global-typography-927386e-font-family, "Lato"), sans-serif;
	font-size: var(--e-global-typography-927386e-font-size, 0.8rem);
	font-weight: var(--e-global-typography-927386e-font-weight, 600);
	line-height: 1.3;
	text-decoration: none;
}

a.echo-tm__tag:hover,
a.echo-tm__tag:focus-visible {
	background: var(--tm-blue);
	color: #fff;
}

.echo-tm__tag .echo-tm__icon {
	width: 14px;
	height: 14px;
}

/* ---------- Carousel ---------- */

.echo-tm__viewport {
	position: relative;
}

.echo-tm__track {
	position: relative;
	display: flex;
	gap: var(--tm-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding: 8px 2px 6px;
	margin: -8px -2px 0;
	outline: none;
}

.echo-tm__track::-webkit-scrollbar {
	display: none;
}

.echo-tm__track:focus-visible {
	outline: 3px solid var(--tm-green);
	outline-offset: 2px;
	border-radius: 12px;
}

.echo-tm__slide {
	flex: 0 0 calc((100% - (var(--tm-per-view) - 1) * var(--tm-gap)) / var(--tm-per-view));
	min-width: 0;
	scroll-snap-align: start;
}

.echo-tm__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.75rem;
}

.echo-tm.is-static .echo-tm__controls {
	display: none;
}

.echo-tm .echo-tm__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid var(--tm-blue);
	border-radius: 50%;
	background: #fff;
	color: var(--tm-blue);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.echo-tm .echo-tm__nav:hover,
.echo-tm .echo-tm__nav:focus-visible {
	background: var(--tm-blue);
	color: #fff;
}

.echo-tm__pause .echo-tm__icon--play,
.echo-tm__pause[aria-pressed="true"] .echo-tm__icon--pause {
	display: none;
}

.echo-tm__pause[aria-pressed="true"] .echo-tm__icon--play {
	display: block;
}

.echo-tm__dots {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.echo-tm .echo-tm__dot {
	position: relative;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.echo-tm .echo-tm__dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-radius: 10px;
	background: #c5c8dc;
	transform: translate(-50%, -50%);
	transition: width 0.25s ease, background-color 0.25s ease;
}

.echo-tm .echo-tm__dot:hover,
.echo-tm .echo-tm__dot:focus {
	background: none;
}

.echo-tm .echo-tm__dot[aria-current="true"]::after {
	width: 22px;
	background: var(--tm-green);
}

.echo-tm__nav:focus-visible,
.echo-tm__dot:focus-visible,
.echo-tm__pill:focus-visible,
.echo-tm__more:focus-visible,
.echo-tm__all-link:focus-visible,
.echo-tm__tag:focus-visible {
	outline: 3px solid var(--tm-green);
	outline-offset: 2px;
}

.echo-tm__all {
	margin: 1.25rem 0 0;
	text-align: center;
}

.echo-tm a.echo-tm__all-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--tm-blue);
	border-radius: 2rem;
	color: var(--tm-blue);
	font-family: var(--e-global-typography-417ebc5-font-family, "Open Sans"), sans-serif;
	font-size: var(--e-global-typography-417ebc5-font-size, 1rem);
	font-weight: var(--e-global-typography-417ebc5-font-weight, 600);
	line-height: 1.2;
	text-transform: var(--e-global-typography-417ebc5-text-transform, none);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.echo-tm a.echo-tm__all-link:hover,
.echo-tm a.echo-tm__all-link:focus-visible {
	background: var(--tm-blue);
	color: #fff;
}

/* ---------- View all grid ---------- */

.echo-tm__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.echo-tm a.echo-tm__pill {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.4rem 1.1rem;
	border: 1px solid var(--tm-line);
	border-radius: 2rem;
	background: #fff;
	color: var(--tm-ink);
	font-family: var(--e-global-typography-ad17b4c-font-family, "Open Sans"), sans-serif;
	font-size: var(--e-global-typography-ad17b4c-font-size, 1rem);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-sizing: border-box;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.echo-tm a.echo-tm__pill:hover {
	border-color: var(--tm-blue);
	color: var(--tm-blue);
}

.echo-tm a.echo-tm__pill[aria-current="true"] {
	border-color: var(--tm-blue);
	background: var(--tm-blue);
	color: #fff;
}

.echo-tm__count {
	margin: 0 0 1.25rem;
	color: var(--tm-muted);
	font-size: 0.875rem;
}

.echo-tm__grid {
	display: grid;
	grid-template-columns: repeat(var(--tm-per-view), minmax(0, 1fr));
	gap: var(--tm-gap);
	align-items: stretch;
}

.echo-tm__none {
	padding: 1.5rem;
	border-radius: 10px;
	background: var(--tm-tint);
}

.echo-tm__none[hidden] {
	display: none;
}

.echo-tm__icon {
	flex: 0 0 auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.echo-tm {
		--tm-gap: 1.25rem;
	}

	.echo-tm[style*="--tm-per-view:3"] {
		--tm-per-view: 2 !important;
	}
}

@media (max-width: 767px) {
	.echo-tm,
	.echo-tm[style] {
		--tm-per-view: 1 !important;
		--tm-gap: 1rem;
	}

	.echo-tm.echo-tm--carousel .echo-tm__slide {
		flex-basis: 88%;
	}

	.echo-tm.echo-tm--carousel.is-single .echo-tm__slide {
		flex-basis: 100%;
	}

	.echo-tm__card {
		padding: 22px;
	}

	.echo-tm__logo-wrap {
		width: 110px;
		height: 40px;
	}

	.echo-tm__filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-right: -16px;
		padding-right: 16px;
		scrollbar-width: none;
	}

	.echo-tm__filters::-webkit-scrollbar {
		display: none;
	}

	.echo-tm a.echo-tm__pill {
		flex: 0 0 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.echo-tm__track {
		scroll-behavior: auto;
	}

	.echo-tm__card:hover,
	.echo-tm__card:focus-within {
		transform: none;
	}

	.echo-tm__card,
	.echo-tm__nav,
	.echo-tm__dot::after {
		transition: none;
	}
}
