/*
 * Trusted Elements — shared base.
 *
 * Brand tokens live on :root as fallbacks. Site Settings > Trusted Brand sets
 * them on <body>, and each widget's "Theme Colors & Fonts" can override them on
 * the widget root. Selectors use two classes so theme/kit styles do not leak in.
 */

@property --_c { syntax: "*"; inherits: false; }
@property --_bg { syntax: "*"; inherits: false; }
@property --_bc { syntax: "*"; inherits: false; }
@property --_sh { syntax: "*"; inherits: false; }

:root {
	--te-accent: #E9642B;
	--te-dark: #1B2A4B;
	--te-heading: #111A2E;
	--te-text: #576072;
	--te-surface: #FFFFFF;
	--te-muted: #F4F6F9;
	--te-border: #E3E8EF;
	--te-font-heading: "Poppins", sans-serif;
	--te-font-body: "Roboto Flex", sans-serif;
	--te-fw-heading: 500;
	--te-radius: 16px;
	--te-btn-radius: 10px;
	--te-fs-display: clamp(40px, 26px + 3.2vw, 72px);
	--te-fs-h2: clamp(30px, 22px + 1.5vw, 44px);
	--te-fs-h3: clamp(19px, 17px + 0.4vw, 22px);
	--te-fs-lead: clamp(16.5px, 15.5px + 0.25vw, 18px);
	--te-fs-body: 16px;
	--te-fs-small: 14px;
	--te-fs-eyebrow: 12px;
}

.te-root {
	--te-on-dark: #FFFFFF;
	--te-on-dark-soft: rgba(255, 255, 255, 0.8);
	--te-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px -2px rgba(16, 24, 40, 0.06);
	--te-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 16px 36px -18px rgba(16, 24, 40, 0.24);
	--te-shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.05), 0 32px 64px -30px rgba(16, 24, 40, 0.4);
	--te-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--te-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--te-zoom: 1.05;
	position: relative;
	font-family: var(--te-font-body);
	font-size: var(--te-fs-body);
	line-height: 1.65;
	color: var(--te-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-margin-top: var(--te-scroll-margin, 96px);
}

.te-root *,
.te-root *::before,
.te-root *::after {
	box-sizing: border-box;
}

.te-root :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd) {
	margin: 0;
	padding: 0;
}

.te-root [hidden] {
	display: none !important;
}

.te-root .te-ico {
	display: block;
	flex: none;
	width: 1em;
	height: 1em;
}

.te-root img {
	max-width: 100%;
}

/* ---------- Interactive elements: one paint rule for every state ---------- */

.te-root .te-btn-reset {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border-width: 0;
	border-style: solid;
	border-radius: 0;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: inherit;
	text-transform: none;
	text-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.te-root .te-btn-reset,
.te-root .te-btn-reset:hover,
.te-root .te-btn-reset:focus,
.te-root .te-btn-reset:active,
.te-root .te-btn,
.te-root .te-btn:hover,
.te-root .te-btn:focus,
.te-root .te-btn:active,
.te-root .te-btn:visited {
	color: var(--_c, currentColor);
	background-color: var(--_bg, transparent);
	border-color: var(--_bc, transparent);
	box-shadow: var(--_sh, none);
	text-decoration: none;
}

.te-root a:focus-visible,
.te-root button:focus-visible,
.te-root [tabindex]:focus-visible {
	outline: 2px solid var(--te-accent);
	outline-offset: 3px;
}

/* ---------- Buttons ---------- */

.te-root .te-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--te-actions-justify, flex-start);
	gap: 12px;
}

.te-root .te-actions > .te-btn {
	flex-grow: var(--te-actions-grow, 0);
}

.te-root .te-btn {
	--_c: #FFFFFF;
	--_bg: var(--te-accent);
	--_bc: var(--te-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 13px 22px;
	border-width: 1px;
	border-style: solid;
	border-radius: var(--te-btn-radius);
	font-family: var(--te-font-heading);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.25s var(--te-ease), background-color 0.25s var(--te-ease), border-color 0.25s var(--te-ease), box-shadow 0.25s var(--te-ease), transform 0.25s var(--te-ease);
}

.te-root .te-btn:hover,
.te-root .te-btn:focus-visible {
	--_bg: var(--te-dark);
	--_bc: var(--te-dark);
}

.te-root .te-btn:active {
	transform: translateY(1px);
}

.te-root .te-btn--outline {
	--_c: var(--te-heading);
	--_bg: transparent;
	--_bc: var(--te-border);
}

.te-root .te-btn--outline:hover,
.te-root .te-btn--outline:focus-visible {
	--_c: var(--te-heading);
	--_bg: transparent;
	--_bc: var(--te-heading);
}

.te-root .te-btn--solid {
	--_c: #FFFFFF;
	--_bg: var(--te-dark);
	--_bc: var(--te-dark);
}

.te-root .te-btn--solid:hover,
.te-root .te-btn--solid:focus-visible {
	--_bg: var(--te-accent);
	--_bc: var(--te-accent);
}

.te-root .te-btn--link {
	--_c: var(--te-heading);
	--_bg: transparent;
	--_bc: transparent;
	min-height: 0;
	padding: 8px 2px;
	border-width: 0;
	border-radius: 0;
}

.te-root .te-btn--link:hover,
.te-root .te-btn--link:focus-visible {
	--_c: var(--te-accent);
	--_bg: transparent;
	--_bc: transparent;
}

/* On dark surfaces */
.te-root.te-on-dark .te-btn:hover,
.te-root.te-on-dark .te-btn:focus-visible,
.te-root .te-on-dark .te-btn:hover,
.te-root .te-on-dark .te-btn:focus-visible {
	--_c: var(--te-dark);
	--_bg: #FFFFFF;
	--_bc: #FFFFFF;
}

.te-root.te-on-dark .te-btn--outline,
.te-root .te-on-dark .te-btn--outline,
.te-root.te-on-dark .te-btn--ghost,
.te-root .te-on-dark .te-btn--ghost {
	--_c: #FFFFFF;
	--_bg: transparent;
	--_bc: rgba(255, 255, 255, 0.4);
}

.te-root.te-on-dark .te-btn--link,
.te-root .te-on-dark .te-btn--link {
	--_c: #FFFFFF;
	--_bg: transparent;
	--_bc: transparent;
}

.te-root.te-on-dark .te-btn--link:hover,
.te-root .te-on-dark .te-btn--link:hover {
	--_c: var(--te-accent);
	--_bg: transparent;
	--_bc: transparent;
}

.te-root .te-btn--ghost {
	--_c: var(--te-heading);
	--_bg: transparent;
	--_bc: var(--te-border);
}

.te-root .te-btn__icon {
	width: 17px;
	height: 17px;
	transition: transform 0.3s var(--te-ease-out);
}

.te-root .te-btn:hover .te-btn__icon,
.te-root .te-btn:focus-visible .te-btn__icon {
	transform: translateX(3px);
}

[dir="rtl"] .te-root .te-btn__icon,
[dir="rtl"] .te-root .te-ico--arrow-right {
	transform: scaleX(-1);
}

/* ---------- Shared type pieces ---------- */

.te-root .te-eyebrow,
.te-root .te-header__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	font-family: var(--te-font-heading);
	font-size: var(--te-fs-eyebrow);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--te-accent);
}

.te-root .te-eyebrow--line::before,
.te-root .te-header--line .te-header__eyebrow::before {
	content: "";
	flex: none;
	width: 24px;
	height: 1.5px;
	border-radius: 2px;
	background: var(--te-eyebrow-line, currentColor);
}

.te-root .te-title {
	margin: 0;
	font-family: var(--te-font-heading);
	font-size: var(--te-fs-h2);
	font-weight: var(--te-fw-heading);
	line-height: 1.12;
	letter-spacing: -0.025em;
	text-transform: none;
	text-wrap: balance;
	color: var(--te-heading);
}

.te-root .te-title span,
.te-root .te-header__title span {
	color: var(--te-accent);
}

.te-root .te-lead {
	margin: 0;
	font-size: var(--te-fs-lead);
	line-height: 1.7;
	color: var(--te-text);
}

.te-root.te-on-dark .te-title,
.te-root .te-on-dark .te-title {
	color: #FFFFFF;
}

.te-root.te-on-dark .te-lead,
.te-root .te-on-dark .te-lead {
	color: var(--te-on-dark-soft);
}

.te-root .te-lead p,
.te-root .te-rich p {
	margin: 0 0 0.85em;
}

.te-root .te-lead p:last-child,
.te-root .te-rich p:last-child {
	margin-bottom: 0;
}

/* ---------- Section header ---------- */

.te-root .te-header {
	--te-header-max: 760px;
	--te-header-desc-gap: 20px;
	--te-eyebrow-line: var(--te-accent);
	margin-bottom: 56px;
}

.te-root .te-header--stacked {
	max-width: var(--te-header-max);
	margin-left: var(--te-header-ml, 0);
	margin-right: var(--te-header-mr, auto);
}

.te-root .te-header--split {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 20px 72px;
	align-items: end;
}

.te-root .te-header--split .te-header__desc {
	max-width: var(--te-header-max);
	margin-top: 0;
}

.te-root .te-header__title {
	margin: 0;
	font-family: var(--te-font-heading);
	font-size: var(--te-fs-h2);
	font-weight: var(--te-fw-heading);
	line-height: 1.12;
	letter-spacing: -0.025em;
	text-transform: none;
	text-wrap: balance;
	color: var(--te-heading);
}

.te-root .te-header__desc {
	margin-top: var(--te-header-desc-gap);
	font-size: var(--te-fs-lead);
	line-height: 1.7;
	color: var(--te-text);
}

.te-root .te-header__desc p {
	margin: 0 0 0.8em;
}

.te-root .te-header__desc p:last-child {
	margin-bottom: 0;
}

.te-root.te-on-dark .te-header__title,
.te-root .te-on-dark .te-header__title {
	color: #FFFFFF;
}

.te-root.te-on-dark .te-header__desc,
.te-root .te-on-dark .te-header__desc {
	color: var(--te-on-dark-soft);
}

@media (max-width: 1024px) {
	.te-root .te-header--split {
		grid-template-columns: minmax(0, 1fr);
	}

	.te-root .te-header {
		margin-bottom: 44px;
	}
}

/* ---------- Lists ---------- */

.te-root .te-list {
	--te-list-cols: 1;
	--te-list-marker: var(--te-accent);
	--te-list-marker-size: 18px;
	--te-list-color: var(--te-heading);
	--te-list-bg: var(--te-muted);
	--te-list-line: var(--te-border);
	--te-list-pad: 14px 16px;
	display: grid;
	grid-template-columns: repeat(var(--te-list-cols), minmax(0, 1fr));
	gap: 12px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.te-root .te-list__item {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--te-list-color);
	font-size: 15.5px;
	line-height: 1.55;
}

.te-root .te-list__item::before,
.te-root .te-list__item::marker {
	content: none;
}

.te-root .te-list__item,
.te-root .te-list__link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.te-root .te-list__link,
.te-root .te-list__link:hover,
.te-root .te-list__link:visited {
	color: inherit;
	text-decoration: none;
}

.te-root .te-list__link:hover .te-list__text {
	color: var(--te-accent);
}

.te-root .te-list__text {
	min-width: 0;
	transition: color 0.2s var(--te-ease);
}

.te-root .te-list__marker {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: var(--te-list-marker-size);
	height: var(--te-list-marker-size);
	margin-top: 0.12em;
	color: var(--te-list-marker);
}

.te-root .te-list--m-check .te-list__marker::before,
.te-root .te-list--m-circle .te-list__marker::before,
.te-root .te-list--m-arrow .te-list__marker::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: currentColor;
	-webkit-mask: var(--te-mask) center / contain no-repeat;
	mask: var(--te-mask) center / contain no-repeat;
}

.te-root .te-list--m-check .te-list__marker {
	--te-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E");
}

.te-root .te-list--m-circle .te-list__marker {
	--te-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 1.5a10.5 10.5 0 1 1 0 21 10.5 10.5 0 0 1 0-21zm4.6 6.4a1 1 0 0 0-1.4.1l-4.4 5.4-2-2a1 1 0 1 0-1.4 1.4l2.8 2.8a1 1 0 0 0 1.5-.1l5.1-6.2a1 1 0 0 0-.2-1.4z'/%3E%3C/svg%3E");
	width: calc(var(--te-list-marker-size) + 2px);
	height: calc(var(--te-list-marker-size) + 2px);
}

.te-root .te-list--m-arrow .te-list__marker {
	--te-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13.5 6l6 6-6 6'/%3E%3C/svg%3E");
}

.te-root .te-list--m-dot .te-list__marker::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: currentColor;
}

.te-root .te-list--m-dash .te-list__marker::before {
	content: "";
	width: 12px;
	height: 2px;
	border-radius: 2px;
	background-color: currentColor;
}

.te-root .te-list--m-number .te-list__marker {
	width: auto;
	min-width: 2.2em;
	height: auto;
	margin-top: 0.1em;
	font-family: var(--te-font-heading);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
	justify-content: flex-start;
}

.te-root .te-list__marker--icon {
	font-size: var(--te-list-marker-size);
}

.te-root .te-list__marker--icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.te-root .te-list__marker--fallback::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: currentColor;
}

/* variants */
.te-root .te-list--v-divided {
	row-gap: 0;
}

.te-root .te-list--v-divided .te-list__item {
	padding: 14px 0;
	border-bottom: 1px solid var(--te-list-line);
}

.te-root .te-list--v-boxed .te-list__item {
	padding: var(--te-list-pad);
	border: 1px solid var(--te-list-line);
	border-radius: calc(var(--te-radius) - 4px);
	background-color: var(--te-surface);
}

.te-root .te-list--v-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.te-root .te-list--v-chips .te-list__item {
	--te-list-pad: 9px 16px;
	align-items: center;
	gap: 8px;
	padding: var(--te-list-pad);
	border: 1px solid var(--te-list-line);
	border-radius: 999px;
	background-color: var(--te-list-bg);
	font-size: 14px;
	line-height: 1.3;
}

.te-root .te-list--v-chips .te-list__marker {
	margin-top: 0;
}

.te-root.te-on-dark .te-list,
.te-root .te-on-dark .te-list {
	--te-list-color: #FFFFFF;
	--te-list-line: rgba(255, 255, 255, 0.16);
	--te-list-bg: rgba(255, 255, 255, 0.08);
}

.te-root.te-on-dark .te-list--v-boxed .te-list__item,
.te-root .te-on-dark .te-list--v-boxed .te-list__item {
	background-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 767px) {
	.te-root .te-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Media ---------- */

.te-root .te-frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--te-radius);
	background: var(--te-muted);
	isolation: isolate;
}

.te-root .te-frame > img,
.te-root .te-frame > video,
.te-root .te-cover {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	transition: transform 1.1s var(--te-ease-out), filter 0.5s var(--te-ease);
}

/* ---------- Entrance animation (only when JS has marked the widget ready) ---------- */

.te-root.te-animate.te-anim-ready:not(.is-inview) .te-anim {
	opacity: 0;
}

.te-root.te-animate.te-anim-ready.is-inview .te-anim {
	animation: te-rise 0.9s var(--te-ease-out) backwards;
	animation-delay: calc(var(--te-i, 0) * 80ms);
}

@keyframes te-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Used by tab panels on narrow screens, where inactive panels are removed from flow. */
@keyframes te-panel-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Horizontal scrollers: fade the edge that has more content ---------- */

.te-root .has-overflow {
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent);
}

.te-root .has-overflow.at-end {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 72px);
	mask-image: linear-gradient(90deg, transparent, #000 72px);
}

.te-root .has-overflow.at-middle {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 72px, #000 calc(100% - 72px), transparent);
}

/* ---------- Carousel controls (shared) ---------- */

.te-root .te-carousel__track {
	display: flex;
	gap: var(--te-gap, 24px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
}

.te-root .te-carousel__track::-webkit-scrollbar {
	display: none;
}

.te-root .te-carousel__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.te-root .te-carousel__track.is-dragging a {
	pointer-events: none;
}

.te-root .te-carousel__slide {
	flex: 0 0 calc((100% - (var(--te-per-view, 3) - 1) * var(--te-gap, 24px)) / var(--te-per-view, 3));
	min-width: 0;
	scroll-snap-align: start;
}

.te-root .te-carousel__bar {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 28px;
}

.te-root .te-carousel__progress {
	position: relative;
	flex: 1 1 auto;
	height: 2px;
	overflow: hidden;
	border-radius: 2px;
	background-color: var(--te-border);
}

.te-root .te-carousel__progress > span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: var(--te-progress-w, 33%);
	border-radius: 2px;
	background-color: var(--te-accent);
	transform: translateX(var(--te-progress-x, 0%));
	transition: transform 0.2s linear, width 0.2s linear;
}

.te-root .te-carousel__nav {
	display: flex;
	gap: 10px;
}

.te-root .te-carousel__btn {
	--_c: var(--te-heading);
	--_bg: var(--te-surface);
	--_bc: var(--te-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-width: 1px;
	border-radius: 50%;
	transition: color 0.25s var(--te-ease), background-color 0.25s var(--te-ease), border-color 0.25s var(--te-ease), opacity 0.25s;
}

.te-root .te-carousel__btn:hover {
	--_c: #FFFFFF;
	--_bg: var(--te-dark);
	--_bc: var(--te-dark);
}

.te-root .te-carousel__btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.te-root .te-carousel__btn .te-ico {
	width: 19px;
	height: 19px;
}

/* ---------- Editor helpers ---------- */

.te-empty {
	padding: 28px;
	border: 1px dashed #c5c9d0;
	border-radius: 10px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.te-root *,
	.te-root *::before,
	.te-root *::after {
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.te-root.te-animate.te-anim-ready .te-anim {
		opacity: 1 !important;
		animation: none !important;
	}

	.te-root .te-mi__panel.is-active,
	.te-root .te-sv__panel.is-active {
		animation: none;
	}
}
