/**
 * HELPTSD Team Slider
 * Styles are intentionally low-specificity and inherit the theme's fonts and colours,
 * so sliders look native to the site. Colours can be overridden with the CSS variables below.
 */

.hts {
	--hts-accent: #e8a33d;
	--hts-text: inherit;
	--hts-muted: #6b7280;

	--hts-arrow-bg: rgba(255, 255, 255, 0.92);
	--hts-arrow-color: #1f2937;
	--hts-arrow-bg-hover: #ffffff;
	--hts-arrow-color-hover: var(--hts-arrow-color);
	--hts-arrow-size: 44px;

	--hts-dot-color: rgba(31, 41, 55, 0.25);
	--hts-dot-active-color: var(--hts-accent);
	--hts-dot-size: 9px;

	--hts-card-gap: 14px;

	position: relative;
	width: 100%;
	box-sizing: border-box;
}

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

.hts__viewport {
	width: 100%;
	overflow: hidden;
	padding-bottom: 4px;
}

.hts__slide {
	height: auto;
	display: flex;
}

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

.hts-card {
	display: flex;
	flex-direction: column;
	gap: var(--hts-card-gap);
	width: 100%;
	color: var(--hts-text);
}

.hts--align-center .hts-card {
	text-align: center;
	align-items: center;
}

.hts--align-start .hts-card {
	text-align: start;
	align-items: flex-start;
}

.hts-card__media {
	width: 100%;
	max-width: 260px;
	line-height: 0;
}

.hts--align-start .hts-card__media {
	margin-inline-start: 0;
}

.hts-card__media a {
	display: block;
	line-height: 0;
}

.hts-card__img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

.hts--shape-circle .hts-card__img {
	border-radius: 50%;
}

.hts--shape-rounded .hts-card__img {
	border-radius: 14px;
}

.hts--shape-square .hts-card__img {
	border-radius: 0;
}

.hts-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.hts-card__name {
	margin: 0;
	font-size: 1.25em;
	line-height: 1.3;
	font-weight: 700;
}

.hts-card__name a {
	color: inherit;
	text-decoration: none;
}

.hts-card__name a:hover,
.hts-card__name a:focus-visible {
	text-decoration: underline;
}

.hts-card__role {
	margin: 0;
	font-size: 0.95em;
	line-height: 1.4;
	color: var(--hts-accent);
	font-weight: 600;
}

.hts-card__bio {
	margin: 0;
	font-size: 0.95em;
	line-height: 1.6;
	color: var(--hts-muted);
}

/* ---------- Arrows ---------- */

/*
 * Colours are pinned on every interaction state. Themes commonly restyle
 * button/:active/:focus, which is what turned these red when clicked.
 */
.hts .hts__arrow,
.hts .hts__arrow:link,
.hts .hts__arrow:visited,
.hts .hts__arrow:hover,
.hts .hts__arrow:focus,
.hts .hts__arrow:focus-visible,
.hts .hts__arrow:active {
	position: absolute;
	top: 38%;
	z-index: 5;
	width: var(--hts-arrow-size);
	height: var(--hts-arrow-size);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background-image: none;
	background-color: var(--hts-arrow-bg);
	color: var(--hts-arrow-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none;
	transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.hts .hts__arrow:hover,
.hts .hts__arrow:focus-visible {
	background-color: var(--hts-arrow-bg-hover);
	color: var(--hts-arrow-color-hover);
	transform: scale(1.06);
}

/* The icon inherits the button colour in every state, including :active. */
.hts .hts__arrow svg {
	width: 55%;
	height: 55%;
	display: block;
	pointer-events: none;
}

.hts .hts__arrow svg path {
	stroke: currentColor;
	fill: none;
}

.hts .hts__arrow:focus {
	outline: none;
}

/* Keyboard users still get a visible ring; mouse clicks do not. */
.hts .hts__arrow:focus-visible {
	outline: 2px solid var(--hts-accent);
	outline-offset: 2px;
}

/* Physical sides, so the buttons sit correctly in both LTR and RTL. */
.hts__arrow--prev {
	left: 4px;
}

.hts__arrow--next {
	right: 4px;
}

/* In RTL the visual "previous" belongs on the right. */
[dir="rtl"] .hts .hts__arrow--prev,
.rtl .hts .hts__arrow--prev {
	left: auto;
	right: 4px;
}

[dir="rtl"] .hts .hts__arrow--next,
.rtl .hts .hts__arrow--next {
	right: auto;
	left: 4px;
}

/*
 * The chevrons must flip too. In RTL the slider advances leftwards, so the
 * "next" button on the left has to point left and "previous" on the right has
 * to point right — mirroring the icon does both at once.
 */
[dir="rtl"] .hts .hts__arrow svg,
.rtl .hts .hts__arrow svg {
	transform: scaleX(-1);
}

.hts__arrow.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

@media (min-width: 1200px) {
	.hts__arrow--prev {
		left: -18px;
	}
	.hts__arrow--next {
		right: -18px;
	}
	[dir="rtl"] .hts .hts__arrow--prev,
	.rtl .hts .hts__arrow--prev {
		left: auto;
		right: -18px;
	}
	[dir="rtl"] .hts .hts__arrow--next,
	.rtl .hts .hts__arrow--next {
		right: auto;
		left: -18px;
	}
}

/* ---------- Dots ---------- */

.hts__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	line-height: 1;
}

/*
 * Full opacity on both states, so the colours chosen in the editor render
 * exactly as picked instead of being washed out by a transparency value.
 */
.hts .hts__dots .swiper-pagination-bullet {
	width: var(--hts-dot-size);
	height: var(--hts-dot-size);
	margin: 0 !important;
	border-radius: 50%;
	background: var(--hts-dot-color);
	background-color: var(--hts-dot-color);
	opacity: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.hts .hts__dots .swiper-pagination-bullet:hover {
	transform: scale(1.15);
}

.hts .hts__dots .swiper-pagination-bullet-active,
.hts .hts__dots .swiper-pagination-bullet-active:hover {
	background: var(--hts-dot-active-color);
	background-color: var(--hts-dot-active-color);
	opacity: 1;
	transform: scale(1.25);
}

/* ---------- Fallback / editor notice ---------- */

.hts--fallback .swiper-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	transform: none !important;
}

.hts--fallback .hts__slide {
	flex: 1 1 240px;
}

.hts-empty {
	padding: 14px 18px;
	border: 1px dashed #c7c7c7;
	border-radius: 8px;
	color: #6b7280;
	font-size: 14px;
	text-align: center;
}

/* ---------- Video slider ---------- */

.hts {
	--hts-play-bg: rgba(20, 20, 20, 0.78);
	--hts-video-radius: 12px;
}

.hts-video {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

/*
 * Fixed 16:9 box. Without it the slides would each be a different height and
 * the row would jump around as videos load.
 */
.hts-video__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--hts-video-radius);
	overflow: hidden;
	background: #000;
	line-height: 0;
}

.hts-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Poster + play button shown until the visitor asks for the video. */
.hts .hts-video__facade,
.hts .hts-video__facade:hover,
.hts .hts-video__facade:focus,
.hts .hts-video__facade:active {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: #000;
	cursor: pointer;
	display: block;
	overflow: hidden;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.hts-video__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease, opacity 0.2s ease;
}

.hts .hts-video__facade:hover .hts-video__poster {
	transform: scale(1.04);
	opacity: 0.9;
}

.hts-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 48px;
	display: block;
	pointer-events: none;
	transition: transform 0.2s ease;
}

.hts-video__play svg {
	width: 100%;
	height: 100%;
	display: block;
}

.hts-video__play-bg {
	fill: var(--hts-play-bg);
	transition: fill 0.2s ease;
}

.hts .hts-video__facade:hover .hts-video__play {
	transform: translate(-50%, -50%) scale(1.08);
}

.hts .hts-video__facade:hover .hts-video__play-bg {
	fill: var(--hts-accent);
}

.hts .hts-video__facade:focus-visible {
	outline: 3px solid var(--hts-accent);
	outline-offset: -3px;
}

.hts-video__title {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.4;
	font-weight: 600;
	text-align: center;
}

/* Video cards are wide, so the card image cap must not apply to them. */
.hts--videos .hts-card__media {
	max-width: none;
}
