/**
 * Variant CSS: features--spec-table-rows
 * Layer 2 — Path B features role (2026-06-06).
 *
 * Features presented as a clean spec sheet. A header row ("Cecha / Co to
 * znaczy dla Ciebie") sits over five data rows separated by hairline rules.
 * Each row: a left key column (small accent icon + concise feature name) and
 * a right value column (the expanded description). Technical, data-sheet feel
 * — distinct from icon cards, tiles and vertical lists. Built from flex rows
 * rather than core/table so every cell stays an editable, bound text block.
 *
 * All selectors scoped to .universal-features--spec-table-rows — no leak.
 */

body.aibt-universal .universal-features--spec-table-rows {
	background: var(--background);
	color: var(--text-primary);
	border-bottom: 1px solid var(--divider-primary);
}

/* ── Intro ─────────────────────────────────────────────────────── */
body.aibt-universal .universal-features--spec-table-rows .universal-features__intro {
	margin: 0 0 var(--space-xl) 0;
}

body.aibt-universal .universal-features--spec-table-rows .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--spec-table-rows h2.universal-features__headline,
body.aibt-universal .universal-features--spec-table-rows .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--spec-table-rows .universal-features__headline em {
	font-style: normal;
	color: var(--accent);
}

body.aibt-universal .universal-features--spec-table-rows .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: 54ch;
}

/* ── Table ─────────────────────────────────────────────────────── */
/* A top hairline closes the sheet against the header row. */
body.aibt-universal .universal-features--spec-table-rows .universal-features__table {
	border-top: 2px solid var(--text-primary);
}

/* Header row — small uppercase column captions. */
body.aibt-universal .universal-features--spec-table-rows .universal-features__thead {
	gap: clamp(1.5rem, 4vw, 3rem) !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	padding: var(--space-sm) 0;
	border-bottom: 1px solid var(--divider-primary);
}

body.aibt-universal .universal-features--spec-table-rows .universal-features__th {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 700 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	color: var(--text-secondary) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-features--spec-table-rows .universal-features__th--key {
	flex: 0 0 38%;
	max-width: 38%;
}

body.aibt-universal .universal-features--spec-table-rows .universal-features__th--val {
	flex: 1 1 auto;
}

/* Data row — key column + value column, hairline rule under each. */
body.aibt-universal .universal-features--spec-table-rows .universal-features__tr {
	gap: clamp(1.5rem, 4vw, 3rem) !important;
	align-items: flex-start !important;
	flex-wrap: nowrap !important;
	padding: clamp(1.1rem, 2.4vw, 1.6rem) 0;
	border-bottom: 1px solid var(--divider-primary);
	transition: background var(--duration-fast) var(--ease-default);
}

body.aibt-universal .universal-features--spec-table-rows .universal-features__tr:hover {
	background: color-mix(in srgb, var(--accent) 4%, var(--background));
}

/* ── Key column ────────────────────────────────────────────────── */
body.aibt-universal .universal-features--spec-table-rows .universal-features__key {
	flex: 0 0 38% !important;
	max-width: 38%;
	gap: var(--space-sm) !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
}

body.aibt-universal .universal-features--spec-table-rows .universal-features__key-icon {
	font-size: 1.25rem !important;
	line-height: 1 !important;
	flex: 0 0 auto;
	margin: 0 !important;
}

body.aibt-universal .universal-features--spec-table-rows h3.universal-features__key-label,
body.aibt-universal .universal-features--spec-table-rows .universal-features__key-label {
	font-family: var(--font-display) !important;
	font-weight: 600 !important;
	font-size: clamp(1.05rem, 1.8vw, 1.25rem) !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* ── Value column ──────────────────────────────────────────────── */
body.aibt-universal .universal-features--spec-table-rows .universal-features__val {
	flex: 1 1 auto !important;
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--text-secondary) !important;
	margin: 0 !important;
}

/* ── Mobile: stack key over value, kill the rigid 38% column ───── */
@media (max-width: 781px) {
	body.aibt-universal .universal-features--spec-table-rows .universal-features__thead {
		/* The header captions are meaningless once the row stacks — hide them. */
		display: none !important;
	}
	body.aibt-universal .universal-features--spec-table-rows .universal-features__tr {
		flex-direction: column !important;
		flex-wrap: wrap !important;
		gap: var(--space-xs) !important;
		align-items: flex-start !important;
	}
	body.aibt-universal .universal-features--spec-table-rows .universal-features__key {
		flex: 1 1 100% !important;
		max-width: 100%;
		width: 100%;
	}
	body.aibt-universal .universal-features--spec-table-rows .universal-features__val {
		width: 100%;
	}
}

/* Drop wide uppercase tracking on narrow phones (A5). */
@media (max-width: 640px) {
	body.aibt-universal .universal-features--spec-table-rows .universal-features__kicker,
	body.aibt-universal .universal-features--spec-table-rows .universal-features__th {
		letter-spacing: 0 !important;
	}
}

/* Honour reduced-motion: kill the row hover transition. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-features--spec-table-rows .universal-features__tr {
		transition: none;
	}
}
