.rx-tmsc {
	--rx-tmsc-duration: 84s;
	--rx-tmsc-gap: clamp(.9rem, 2.2vw, 1.7rem);
	position: relative;
	isolation: isolate;
	width: 100%;
	padding: clamp(2.25rem, 4vw, 4rem) 0;
	overflow: hidden;
	background:
		radial-gradient(circle at 8% 12%, rgb(14 165 233 / .10), transparent 28%),
		radial-gradient(circle at 92% 86%, rgb(245 158 11 / .09), transparent 26%),
		linear-gradient(180deg, #f8fcff 0%, #ffffff 48%, #fffdf8 100%);
	border-block: 1px solid rgb(15 118 110 / .13);
	color: #102a24;
}

.rx-tmsc__inner {
	width: min(1280px, calc(100% - 2rem));
	margin-inline: auto;
}

.rx-tmsc__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.rx-tmsc__copy {
	max-width: 820px;
}

.rx-tmsc__eyebrow {
	margin: 0 0 .5rem;
	font-size: clamp(.78rem, 1vw, .88rem);
	font-weight: 850;
	line-height: 1.25;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: #075985;
}

.rx-tmsc h2 {
	margin: 0;
	font-size: clamp(1.7rem, 3.2vw, 2.65rem);
	line-height: 1.12;
	letter-spacing: -.03em;
	color: #0b2638;
}

.rx-tmsc__intro {
	max-width: 72ch;
	margin: .8rem 0 0;
	font-size: clamp(1rem, 1.35vw, 1.12rem);
	line-height: 1.72;
	color: #3f5968;
}

.rx-tmsc__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	min-height: 46px;
	padding: .72rem 1rem;
	border: 1px solid rgb(2 132 199 / .28);
	border-radius: 999px;
	background: rgb(255 255 255 / .92);
	box-shadow: 0 9px 26px rgb(2 132 199 / .10);
	font: inherit;
	font-size: .9rem;
	font-weight: 750;
	color: #075985;
	cursor: pointer;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.rx-tmsc__toggle:hover,
.rx-tmsc__toggle:focus-visible {
	transform: translateY(-1px);
	border-color: rgb(2 132 199 / .55);
	box-shadow: 0 12px 30px rgb(2 132 199 / .16);
	outline: 3px solid rgb(14 165 233 / .22);
	outline-offset: 3px;
}

.rx-tmsc__toggle-icon {
	font-size: 1rem;
	line-height: 1;
}

.rx-tmsc__viewport {
	overflow: hidden;
	padding-block: .4rem .7rem;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.rx-tmsc__track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: rx-tmsc-scroll var(--rx-tmsc-duration) linear infinite;
}

.rx-tmsc__group {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--rx-tmsc-gap);
	padding-right: var(--rx-tmsc-gap);
}

.rx-tmsc__item {
	position: relative;
	display: grid;
	place-items: center;
	flex: 0 0 clamp(188px, 17vw, 232px);
	height: clamp(98px, 9vw, 118px);
	padding: .55rem .65rem;
	border: 1px solid rgb(14 116 144 / .14);
	border-radius: 20px;
	background:
		linear-gradient(#ffffff, #ffffff) padding-box,
		linear-gradient(120deg, rgb(14 165 233 / .30), rgb(34 197 94 / .22), rgb(245 158 11 / .26), rgb(236 72 153 / .22)) border-box;
	box-shadow:
		0 13px 32px rgb(15 23 42 / .08),
		inset 0 1px 0 rgb(255 255 255 / .95);
	overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.rx-tmsc__item::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(circle at 20% 8%, rgb(14 165 233 / .055), transparent 42%);
}

.rx-tmsc__item:hover,
.rx-tmsc__item:focus-within {
	transform: translateY(-3px);
	box-shadow:
		0 17px 38px rgb(15 23 42 / .13),
		0 0 0 3px rgb(14 165 233 / .12);
}

.rx-tmsc__item--ultrawide {
	flex-basis: clamp(228px, 22vw, 290px);
}

.rx-tmsc__item--wide {
	flex-basis: clamp(210px, 20vw, 258px);
}

.rx-tmsc__item--square {
	flex-basis: clamp(146px, 14vw, 178px);
}

.rx-tmsc__item img {
	position: relative;
	z-index: 1;
	display: block;
	width: 94%;
	height: 86%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	filter: saturate(1.16) contrast(1.05);
	opacity: 1;
	transform: scale(1.03);
	transform-origin: center;
	transition: filter .25s ease, transform .25s ease;
}

.rx-tmsc__item--ultrawide img {
	width: 96%;
	height: 74%;
}

.rx-tmsc__item--wide img {
	width: 95%;
	height: 80%;
}

.rx-tmsc__item--square img {
	width: 83%;
	height: 83%;
}

.rx-tmsc__item:hover img {
	filter: saturate(1.24) contrast(1.08);
	transform: scale(1.08);
}

.rx-tmsc:hover .rx-tmsc__track,
.rx-tmsc:focus-within .rx-tmsc__track,
.rx-tmsc[data-paused="true"] .rx-tmsc__track {
	animation-play-state: paused;
}

.rx-tmsc__notice {
	max-width: 960px;
	margin: 1.25rem auto 0;
	font-size: clamp(.8rem, 1vw, .88rem);
	font-weight: 550;
	line-height: 1.6;
	color: #536b78;
	text-align: center;
}

.rx-tmsc-fallback[hidden] {
	display: none !important;
}

@keyframes rx-tmsc-scroll {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 700px) {
	.rx-tmsc {
		padding-block: 2rem 2.4rem;
	}

	.rx-tmsc__inner {
		width: min(100% - 1rem, 1280px);
	}

	.rx-tmsc__heading {
		align-items: flex-start;
		flex-direction: column;
		padding-inline: .3rem;
	}

	.rx-tmsc__toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.rx-tmsc__viewport {
		-webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
		mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent);
	}

	.rx-tmsc__item {
		flex-basis: 168px;
		height: 94px;
		border-radius: 17px;
		padding: .45rem;
	}

	.rx-tmsc__item--ultrawide,
	.rx-tmsc__item--wide {
		flex-basis: 205px;
	}

	.rx-tmsc__item--square {
		flex-basis: 132px;
	}

	.rx-tmsc__item img {
		width: 95%;
		height: 86%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rx-tmsc__track {
		animation: none;
		transform: none;
	}

	.rx-tmsc__viewport {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
		scrollbar-width: thin;
	}

	.rx-tmsc__group[aria-hidden="true"] {
		display: none;
	}

	.rx-tmsc__toggle {
		display: none;
	}
}

@media (prefers-contrast: more) {
	.rx-tmsc__item {
		border-color: #075985;
		box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #075985;
	}

	.rx-tmsc__intro,
	.rx-tmsc__notice {
		color: #243f4f;
	}
}

@media (prefers-color-scheme: dark) {
	body:not(.light-mode):not([data-theme="light"]) .rx-tmsc {
		background:
			radial-gradient(circle at 10% 12%, rgb(14 165 233 / .14), transparent 32%),
			linear-gradient(180deg, #0b151b 0%, #0e1a20 100%);
		border-block-color: rgb(125 211 252 / .18);
		color: #e8f3f7;
	}

	body:not(.light-mode):not([data-theme="light"]) .rx-tmsc h2 {
		color: #f2f9fc;
	}

	body:not(.light-mode):not([data-theme="light"]) .rx-tmsc__intro,
	body:not(.light-mode):not([data-theme="light"]) .rx-tmsc__notice {
		color: #b5c8d1;
	}

	body:not(.light-mode):not([data-theme="light"]) .rx-tmsc__item {
		background:
			linear-gradient(#ffffff, #ffffff) padding-box,
			linear-gradient(120deg, rgb(56 189 248 / .38), rgb(74 222 128 / .28), rgb(251 191 36 / .30), rgb(244 114 182 / .28)) border-box;
		box-shadow: 0 14px 34px rgb(0 0 0 / .24);
	}

	body:not(.light-mode):not([data-theme="light"]) .rx-tmsc__toggle {
		background: rgb(11 32 42 / .9);
		border-color: rgb(125 211 252 / .28);
		color: #bae6fd;
	}
}
