/**
 * Variant CSS: careers--growth-path-steps
 *
 * Career ladder as connected nodes on a horizontal track. A continuous accent
 * rail runs behind three level nodes (Junior -> Mid -> Senior); each node is a
 * circular accent badge sitting on the rail, with a level title and one line of
 * scope below, and a chevron between nodes implies forward progression. The
 * final badge is filled to read as the destination. Closed by a centered pill
 * CTA. On phones the rail rotates to a vertical timeline on the left. Badges /
 * em / chevrons / CTA take --accent; copy stays --ink (polarity-aware). Part of
 * the `careers` role.
 */

body.aibt-universal .universal-careers--growth-path-steps {
	padding-block: calc(clamp(3rem, 7vw, 5rem) * var(--density, 1));
}

/* Intro. */
body.aibt-universal .universal-careers--growth-path-steps .universal-careers__intro {
	margin-bottom: clamp(2.6rem, 5.5vw, 3.8rem);
}

body.aibt-universal .universal-careers--growth-path-steps .universal-careers__kicker {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-widest) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 auto var(--space-sm) auto !important;
}

body.aibt-universal .universal-careers--growth-path-steps .universal-careers__headline {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 auto var(--space-sm) auto !important;
}

body.aibt-universal .universal-careers--growth-path-steps .universal-careers__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

body.aibt-universal .universal-careers--growth-path-steps .universal-careers__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--ink) !important;
	opacity: 0.74;
	margin: 0 auto !important;
}

/* Path — the continuous rail lives on this container; nodes sit on it. */
body.aibt-universal .universal-careers--growth-path-steps .universal-careers__path {
	position: relative;
	gap: clamp(1.2rem, 3vw, 2.2rem) !important;
	align-items: flex-start !important;
	margin-bottom: clamp(2.2rem, 4.5vw, 3.2rem);
}

/* Horizontal progress rail behind the badges (badge centre = 1.5rem from top). */
body.aibt-universal .universal-careers--growth-path-steps .universal-careers__path::before {
	content: "";
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	height: 2px;
	background: color-mix(in srgb, var(--accent) 30%, transparent);
	z-index: 0;
}

body.aibt-universal .universal-careers--growth-path-steps .universal-careers__level {
	position: relative;
	z-index: 1;
	flex: 1 1 0 !important;
	min-width: 0;
}

/* Circular numbered badge sitting on the rail. */
body.aibt-universal .universal-careers--growth-path-steps .universal-careers__level-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	font-family: var(--font-display) !important;
	font-size: var(--text-base) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: var(--accent) !important;
	margin: 0 0 var(--space-md) 0 !important;
	border-radius: 50%;
	background: var(--background, #ffffff);
	border: 2px solid var(--accent);
	box-sizing: border-box;
}

/* Final node reads as the destination — filled badge. */
body.aibt-universal .universal-careers--growth-path-steps .universal-careers__level:last-child .universal-careers__level-badge {
	color: var(--cta-text-primary, #ffffff) !important;
	background: var(--accent);
}

/* Chevron connector implying forward progression (skip last). */
body.aibt-universal .universal-careers--growth-path-steps .universal-careers__level:not(:last-child) .universal-careers__level-badge::after {
	content: "›";
	position: absolute;
	top: 1.5rem;
	right: -0.9rem;
	transform: translateY(-50%);
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1;
	color: color-mix(in srgb, var(--accent) 70%, transparent);
}

body.aibt-universal .universal-careers--growth-path-steps .universal-careers__level-title {
	font-family: var(--font-display) !important;
	font-size: clamp(1.15rem, 2.1vw, 1.45rem) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: var(--ink) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-careers--growth-path-steps .universal-careers__level-desc {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--ink) !important;
	opacity: 0.72;
	margin: 0 !important;
	max-width: 22ch;
}

/* Closing CTA. */
body.aibt-universal .universal-careers--growth-path-steps .universal-careers__cta .wp-block-button__link {
	background: var(--cta-bg-primary, var(--accent)) !important;
	color: var(--cta-text-primary, #ffffff) !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	font-size: var(--text-base) !important;
	padding: 0.85rem 1.9rem !important;
	border-radius: var(--decor-radius-pill, 999px) !important;
	border: none !important;
	transition: background var(--duration-fast, 0.18s) var(--ease-default, ease),
		transform var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-careers--growth-path-steps .universal-careers__cta .wp-block-button__link:hover {
	background: var(--accent-hover, var(--accent)) !important;
	transform: translateY(-1px);
}

body.aibt-universal .universal-careers--growth-path-steps .universal-careers__cta .wp-block-button__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: inherit;
}

/* Phone: rail rotates to a vertical timeline on the left; chevrons hidden. */
@media (max-width: 600px) {
	body.aibt-universal .universal-careers--growth-path-steps .universal-careers__path {
		flex-direction: column;
		gap: clamp(1.6rem, 6vw, 2.2rem) !important;
		padding-left: 0.25rem;
	}
	body.aibt-universal .universal-careers--growth-path-steps .universal-careers__path::before {
		top: 1.5rem;
		bottom: 1.5rem;
		left: 1.75rem;
		right: auto;
		width: 2px;
		height: auto;
	}
	body.aibt-universal .universal-careers--growth-path-steps .universal-careers__level {
		flex: 1 1 100% !important;
		padding-left: 4rem;
		min-height: 3rem;
	}
	body.aibt-universal .universal-careers--growth-path-steps .universal-careers__level-badge {
		position: absolute;
		top: 0;
		left: 0;
		margin: 0 !important;
	}
	body.aibt-universal .universal-careers--growth-path-steps .universal-careers__level:not(:last-child) .universal-careers__level-badge::after {
		display: none;
	}
	body.aibt-universal .universal-careers--growth-path-steps .universal-careers__level-desc {
		max-width: none;
	}
}

/* Phone: relax cap letter-spacing so the uppercase kicker doesn't overflow. */
@media (max-width: 640px) {
	body.aibt-universal .universal-careers--growth-path-steps .universal-careers__kicker {
		letter-spacing: 0 !important;
	}
}

/* Respect reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-careers--growth-path-steps .universal-careers__cta .wp-block-button__link {
		transition: none;
	}
	body.aibt-universal .universal-careers--growth-path-steps .universal-careers__cta .wp-block-button__link:hover {
		transform: none;
	}
}
