/**
 * Neutral frontend theme. Override the --tpchs-* variables from a child theme
 * or WordPress Additional CSS so plugin updates remain safe.
 */
.tpchs-home-slider {
	--tpchs-height: clamp(31.25rem, 48vw, 40.625rem);
	--tpchs-mobile-height: clamp(28.125rem, 135vw, 37.5rem);
	--tpchs-content-width: 75rem;
	--tpchs-content-color: #fff;
	--tpchs-overlay: linear-gradient(90deg, rgb(0 0 0 / 65%) 0%, rgb(0 0 0 / 28%) 55%, rgb(0 0 0 / 5%) 100%);
	--tpchs-button-bg: #fff;
	--tpchs-button-color: #1d2327;
	--tpchs-button-bg-hover: #f0f0f1;
	--tpchs-control-color: #fff;
	--tpchs-focus-color: #72aee6;
	inline-size: 100%;
	position: relative;
}

.tpchs-home-slider *,
.tpchs-home-slider *::before,
.tpchs-home-slider *::after {
	box-sizing: border-box;
}

.tpchs-swiper,
.tpchs-slide {
	block-size: var(--tpchs-height);
	min-block-size: 31.25rem;
}

.tpchs-slide {
	position: relative;
}

.tpchs-slide-picture,
.tpchs-slide-image {
	display: block;
	block-size: 100%;
	inline-size: 100%;
}

.tpchs-slide-image {
	object-fit: cover;
}

.tpchs-slide-overlay {
	align-items: center;
	background: var(--tpchs-overlay);
	display: flex;
	inset: 0;
	position: absolute;
	z-index: 1;
}

.tpchs-slide-content {
	color: var(--tpchs-content-color);
	inline-size: min(100%, var(--tpchs-content-width));
	margin-inline: auto;
	padding: clamp(1.5rem, 5vw, 4rem);
}

.tpchs-slide-title {
	color: inherit;
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 700;
	line-height: 1.05;
	margin: 0 0 1rem;
	max-inline-size: 14ch;
}

.tpchs-slide-description {
	color: inherit;
	font-size: clamp(1rem, 2vw, 1.25rem);
	line-height: 1.55;
	margin: 0 0 1.5rem;
	max-inline-size: 42rem;
}

.tpchs-slide-button {
	background: var(--tpchs-button-bg);
	border: 2px solid transparent;
	border-radius: 0.25rem;
	color: var(--tpchs-button-color);
	display: inline-block;
	font-weight: 600;
	line-height: 1.2;
	padding: 0.875rem 1.5rem;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.tpchs-slide-button:hover {
	background: var(--tpchs-button-bg-hover);
	color: var(--tpchs-button-color);
	transform: translateY(-1px);
}

.tpchs-slide-button:focus-visible,
.tpchs-home-slider .swiper-button-prev:focus-visible,
.tpchs-home-slider .swiper-button-next:focus-visible,
.tpchs-home-slider .swiper-pagination-bullet:focus-visible {
	outline: 3px solid var(--tpchs-focus-color);
	outline-offset: 3px;
}

.tpchs-home-slider .swiper-button-prev,
.tpchs-home-slider .swiper-button-next {
	background: rgb(0 0 0 / 32%);
	border: 0;
	border-radius: 999px;
	color: var(--tpchs-control-color);
	block-size: 2.75rem;
	inline-size: 2.75rem;
	padding: 0;
}

.tpchs-home-slider .swiper-button-prev::after,
.tpchs-home-slider .swiper-button-next::after {
	font-size: 1.125rem;
	font-weight: 700;
}

.tpchs-home-slider .swiper-pagination-bullet {
	background: var(--tpchs-control-color);
	block-size: 0.75rem;
	inline-size: 0.75rem;
	opacity: 0.58;
}

.tpchs-home-slider .swiper-pagination-bullet-active {
	opacity: 1;
}

.tpchs-autoplay-toggle {
	align-items: center;
	background: rgb(0 0 0 / 55%);
	border: 1px solid rgb(255 255 255 / 55%);
	border-radius: 999px;
	bottom: 1rem;
	color: var(--tpchs-control-color);
	cursor: pointer;
	display: flex;
	font-size: 0.8125rem;
	font-weight: 600;
	gap: 0.4rem;
	left: 1rem;
	line-height: 1;
	padding: 0.55rem 0.75rem;
	position: absolute;
	z-index: 10;
}

.tpchs-autoplay-toggle:hover {
	background: rgb(0 0 0 / 75%);
}

.tpchs-autoplay-toggle:focus-visible {
	outline: 3px solid var(--tpchs-focus-color);
	outline-offset: 3px;
}

.tpchs-autoplay-toggle[hidden] {
	display: none;
}

@media (max-width: 767px) {
	.tpchs-swiper,
	.tpchs-slide {
		block-size: var(--tpchs-mobile-height);
		min-block-size: 28.125rem;
	}

	.tpchs-home-slider {
		--tpchs-overlay: linear-gradient(0deg, rgb(0 0 0 / 70%) 0%, rgb(0 0 0 / 18%) 75%);
	}

	.tpchs-slide-overlay {
		align-items: flex-end;
	}

	.tpchs-slide-content {
		padding: 2rem 1.5rem 4rem;
	}

	.tpchs-slide-title {
		font-size: clamp(1.75rem, 10vw, 2.75rem);
	}

	.tpchs-home-slider .swiper-button-prev,
	.tpchs-home-slider .swiper-button-next {
		display: none;
	}

	.tpchs-autoplay-toggle {
		bottom: 0.75rem;
		left: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tpchs-home-slider *,
	.tpchs-home-slider *::before,
	.tpchs-home-slider *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
