/**
 * Variant CSS: features--rotating-spotlight-static
 * Layer 2 — Path B features role (2026-06-06).
 *
 * A left vertical feature-name rail + a right "spotlight" detail panel for the
 * active feature (static, no JS). The first rail item is marked active (accent
 * left-bar + filled chevron); the rest read as clickable but muted. The
 * spotlight shows the active feature's icon, a 01 / 04 position marker, title
 * and an expanded description. Distinct from the horizontal tab bar variant —
 * this is a vertical nav rail beside a side spotlight.
 *
 * All selectors scoped to .universal-features--rotating-spotlight-static — no leak.
 */

body.aibt-universal .universal-features--rotating-spotlight-static {
	background: var(--background);
	color: var(--text-primary);
	border-bottom: 1px solid var(--divider-primary);
}

/* ── Intro ─────────────────────────────────────────────────────── */
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__intro {
	margin: 0 0 var(--space-2xl) 0;
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__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 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-features--rotating-spotlight-static h2.universal-features__headline,
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
	max-width: 20ch;
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__headline em {
	color: var(--accent);
	font-style: inherit;
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: var(--space-md) 0 0 0 !important;
	max-width: 56ch;
}

/* ── Stage: rail + spotlight ───────────────────────────────────── */
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__stage {
	gap: clamp(1.5rem, 3.5vw, 3rem) !important;
	align-items: stretch !important;
}

/* ── Left rail (feature-name nav) ──────────────────────────────── */
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__rail {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item {
	gap: var(--space-sm) !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: nowrap !important;
	padding: clamp(0.9rem, 2vw, 1.25rem) clamp(0.9rem, 2vw, 1.2rem) !important;
	border-left: 3px solid transparent;
	border-radius: var(--decor-radius, 0);
	cursor: pointer;
	transition: background var(--duration-fast) var(--ease-default),
		border-color var(--duration-fast) var(--ease-default),
		color var(--duration-fast) var(--ease-default);
}

/* Inactive items: muted, with a hover/focus affordance. */
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item:not(.is-active):hover {
	background: color-mix(in srgb, var(--accent) 5%, var(--background));
	border-left-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Active item: accent surface + solid left bar + visible chevron. */
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item.is-active {
	background: color-mix(in srgb, var(--accent) 9%, var(--background));
	border-left-color: var(--accent);
}

body.aibt-universal .universal-features--rotating-spotlight-static h3.universal-features__nav-name,
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-name {
	font-family: var(--font-display) !important;
	font-weight: 600 !important;
	font-size: clamp(1.05rem, 1.8vw, 1.3rem) !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em !important;
	color: var(--text-secondary) !important;
	margin: 0 !important;
	transition: color var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item.is-active .universal-features__nav-name {
	color: var(--text-primary) !important;
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item:hover .universal-features__nav-name {
	color: var(--text-primary) !important;
}

/* Chevron: hidden until active/hover, accent-tinted. */
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-chevron {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--accent);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity var(--duration-fast) var(--ease-default),
		transform var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-chevron svg {
	width: 18px;
	height: 18px;
	display: block;
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item.is-active .universal-features__nav-chevron,
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item:hover .universal-features__nav-chevron {
	opacity: 1;
	transform: translateX(0);
}

/* ── Right spotlight panel ─────────────────────────────────────── */
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__spotlight {
	background: color-mix(in srgb, var(--ink) 3%, var(--background));
	border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
	border-top: 3px solid var(--accent);
	border-radius: var(--decor-radius, 0);
	padding: clamp(1.8rem, 3.5vw, 3rem) !important;
	display: flex;
	flex-direction: column;
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__spot-head {
	gap: var(--space-md) !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: nowrap !important;
	margin-bottom: var(--space-lg);
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__spot-icon {
	font-size: clamp(2.2rem, 4vw, 3rem) !important;
	line-height: 1 !important;
	margin: 0 !important;
}

/* Position marker, accent-tinted, light. */
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__spot-pos {
	font-family: var(--font-display) !important;
	font-size: var(--text-sm) !important;
	font-weight: 700 !important;
	letter-spacing: var(--tracking-wide) !important;
	color: color-mix(in srgb, var(--accent) 70%, var(--text-secondary)) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-features--rotating-spotlight-static h3.universal-features__spot-title,
body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__spot-title {
	font-family: var(--font-display) !important;
	font-weight: 600 !important;
	font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
	line-height: 1.15 !important;
	letter-spacing: -0.02em !important;
	color: var(--text-primary) !important;
	margin: 0 0 var(--space-sm) 0 !important;
}

body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__spot-desc {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: 0 !important;
}

/* ── Mobile: stack rail above spotlight ────────────────────────── */
@media (max-width: 781px) {
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__stage {
		flex-direction: column !important;
	}
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__rail,
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__spotlight {
		flex-basis: auto !important;
		width: 100% !important;
	}
	/* On mobile the chevron is always shown on the active row so it still reads
	   as "this one is open" without the desktop hover. */
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item {
		padding-block: var(--space-md) !important;
	}
}

/* Drop wide uppercase tracking on narrow phones (A5). */
@media (max-width: 640px) {
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__kicker,
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__spot-pos {
		letter-spacing: 0 !important;
	}
}

/* Honour reduced-motion: kill rail + chevron transitions. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item,
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-name,
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-chevron {
		transition: none;
	}
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item.is-active .universal-features__nav-chevron,
	body.aibt-universal .universal-features--rotating-spotlight-static .universal-features__nav-item:hover .universal-features__nav-chevron {
		transform: none;
	}
}
