/* ==========================================================================
   BreatheWorks Team Carousel — text-only rotating carousel
   Used on /locations/* pages via [bw_team_carousel].
   ========================================================================== */

.bw-tc {
	--bw-tc-arrow-bg: #62b6c8;
	--bw-tc-arrow-fg: #ffffff;
	--bw-tc-arrow-size: 48px;
	--bw-tc-dot: #cfd6dc;
	--bw-tc-dot-active: #62b6c8;
	--bw-tc-star: #f5b800;
	--bw-tc-star-empty: #e5e7eb;
	--bw-tc-text: #20303f;
	--bw-tc-muted: #4a5b6b;

	max-width: 880px;
	margin: 0 auto;
	padding: 16px;
	color: var(--bw-tc-text);
	font-family: inherit;
	box-sizing: border-box;
}

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

.bw-tc-title {
	margin: 0 0 24px;
	text-align: left;
	font-weight: 700;
	font-size: clamp(22px, 2.4vw, 30px);
	line-height: 1.2;
}

.bw-tc-stage {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 12px;
}

.bw-tc-track {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 280px;
	overflow: hidden;
}

.bw-tc-slide {
	position: absolute;
	inset: 0;
	padding: 8px 12px;
	opacity: 0;
	transform: translateX(24px);
	transition: opacity 350ms ease, transform 350ms ease;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bw-tc-slide.is-active {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
	position: relative; /* lets track height grow to active slide */
}

.bw-tc-name {
	margin: 0;
	font-weight: 700;
	font-size: clamp(18px, 1.6vw, 22px);
	line-height: 1.3;
}

.bw-tc-subtitle {
	margin: -4px 0 0;
	font-weight: 600;
	font-size: 15px;
	color: var(--bw-tc-muted);
}

.bw-tc-rating-line {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--bw-tc-muted);
}

.bw-tc-stars {
	display: inline-flex;
	gap: 2px;
	color: var(--bw-tc-star);
	line-height: 1;
}

.bw-tc-star {
	position: relative;
	width: 16px;
	height: 16px;
	display: inline-block;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23e5e7eb' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
}

.bw-tc-star-fill {
	position: absolute;
	inset: 0;
	overflow: hidden;
	display: block;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23f5b800' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>");
	background-size: 80px 16px; /* 5 stars wide, fills the parent star */
	background-repeat: no-repeat;
}

.bw-tc-bio {
	margin-top: 4px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--bw-tc-text);
}

.bw-tc-bio p {
	margin: 0 0 12px;
}

.bw-tc-bio p:last-child {
	margin-bottom: 0;
}

/* ---- Arrows ---- */
.bw-tc-arrow {
	flex: 0 0 auto;
	align-self: center;
	width: var(--bw-tc-arrow-size);
	height: var(--bw-tc-arrow-size);
	border-radius: 50%;
	border: 0;
	background: var(--bw-tc-arrow-bg);
	color: var(--bw-tc-arrow-fg);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: opacity 200ms ease, transform 200ms ease, background-color 200ms ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.bw-tc-arrow:hover,
.bw-tc-arrow:focus-visible {
	opacity: 0.9;
	transform: scale(1.04);
	outline: none;
}

.bw-tc-arrow:focus-visible {
	box-shadow: 0 0 0 3px rgba(98, 182, 200, 0.45);
}

.bw-tc-arrow[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.bw-tc-arrow svg {
	width: 22px;
	height: 22px;
	display: block;
}

/* ---- Dots ---- */
.bw-tc-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
}

.bw-tc-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: var(--bw-tc-dot);
	cursor: pointer;
	transition: background-color 200ms ease, transform 200ms ease;
}

.bw-tc-dot:hover {
	transform: scale(1.15);
}

.bw-tc-dot.is-active {
	background: var(--bw-tc-dot-active);
}

.bw-tc-dot:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(98, 182, 200, 0.45);
}

/* Hide single-slide UI when only one member exists. */
.bw-tc.is-single .bw-tc-arrow,
.bw-tc.is-single .bw-tc-dots {
	display: none;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
	.bw-tc {
		padding: 8px;
	}

	.bw-tc-stage {
		gap: 4px;
	}

	.bw-tc-arrow {
		--bw-tc-arrow-size: 36px;
	}

	.bw-tc-bio {
		font-size: 15px;
	}
}
