/**
 * Variant CSS: careers--application-steps
 *
 * Recruitment process as four numbered steps — centered intro, then a row of
 * step cards (big accent number, title, one descriptive line) joined by a thin
 * baseline rule, closed by a centered pill CTA. Removes candidate anxiety by
 * showing what to expect. Numbers / em / CTA take --accent; all copy stays
 * --ink (polarity-aware). Steps wrap to 2×2 on tablet and one column on phones.
 * Part of the `careers` role.
 */

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

/* Intro. */
body.aibt-universal .universal-careers--application-steps .universal-careers__intro {
	margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

body.aibt-universal .universal-careers--application-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--application-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--application-steps .universal-careers__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

body.aibt-universal .universal-careers--application-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;
}

/* Steps row — force wrap so four become 2×2 then 1. */
body.aibt-universal .universal-careers--application-steps .universal-careers__steps {
	flex-wrap: wrap !important;
	gap: clamp(1.4rem, 3vw, 2.4rem) !important;
	align-items: stretch !important;
	margin-bottom: clamp(2rem, 4.5vw, 3rem);
}

body.aibt-universal .universal-careers--application-steps .universal-careers__step {
	position: relative;
	flex: 1 1 calc(25% - 1.8rem) !important;
	padding-top: 1.1rem;
	border-top: 2px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

/* Accent node sitting on the baseline rule. */
body.aibt-universal .universal-careers--application-steps .universal-careers__step::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
}

body.aibt-universal .universal-careers--application-steps .universal-careers__step-num {
	font-family: var(--font-display) !important;
	font-size: clamp(2.2rem, 4vw, 3rem) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	color: var(--accent) !important;
	opacity: 0.9;
	margin: 0 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-careers--application-steps .universal-careers__step-title {
	font-family: var(--font-display) !important;
	font-size: clamp(1.1rem, 2vw, 1.3rem) !important;
	font-weight: 600 !important;
	line-height: 1.22 !important;
	color: var(--ink) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-careers--application-steps .universal-careers__step-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;
}

/* Closing CTA. */
body.aibt-universal .universal-careers--application-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--application-steps .universal-careers__cta .wp-block-button__link:hover {
	background: var(--accent-hover, var(--accent)) !important;
	transform: translateY(-1px);
}

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

/* Tablet: 2×2. */
@media (max-width: 781px) {
	body.aibt-universal .universal-careers--application-steps .universal-careers__step {
		flex-basis: calc(50% - 1.2rem) !important;
	}
}

/* Phone: one column. */
@media (max-width: 540px) {
	body.aibt-universal .universal-careers--application-steps .universal-careers__step {
		flex-basis: 100% !important;
	}
}

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

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