/**
 * Variant CSS: faq--did-you-know-cards
 *
 * FAQ reframed as a grid of "Czy wiesz, że…" insight cards. Each card carries an
 * accent eyebrow, a bold question-as-insight lead and a short answer, with a large
 * ghost numeral auto-numbered via CSS counters (no per-card markup). Reads as a
 * light, engaging knowledge block rather than a dry Q/A list — distinct from
 * cards-grid-qa (plain Q+A), numbered-large-list (linear) and the accordions.
 * Text stays --ink (polarity-aware, KI-020); eyebrow + em + ghost numeral take
 * --accent. Part of the `faq` role.
 */

body.aibt-universal .universal-faq--did-you-know-cards {
	background: var(--background);
	color: var(--ink);
	padding-block: calc(clamp(3rem, 7vw, 5rem) * var(--density, 1));
	/* Reset the card counter at section scope. */
	counter-reset: faq-card;
}

/* Intro. */
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__intro {
	margin-bottom: clamp(2rem, 4.5vw, 3.25rem);
	text-align: center;
}

/* Restore WP constrained-layout centering for the centered intro elements. */
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__intro .has-text-align-center {
	margin-inline: auto !important;
}

body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__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-faq--did-you-know-cards .universal-faq__headline {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 auto !important;
}

body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-lg) !important;
	line-height: var(--leading-relaxed) !important;
	color: color-mix(in srgb, var(--ink) 70%, transparent) !important;
	max-width: 54ch;
	margin: var(--space-md) auto 0 auto !important;
}

/* Auto-fit card grid. */
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__grid {
	gap: clamp(1rem, 2.4vw, 1.6rem);
}

/* Insight card — soft surface, accent corner accent, ghost numeral. */
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	height: 100%;
	padding: clamp(1.5rem, 2.6vw, 2rem);
	background: color-mix(in srgb, var(--ink) 4%, transparent);
	border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
	border-radius: var(--decor-radius, 12px);
	/* Resting shadow kept transparent so the hover depth transitions smoothly. */
	box-shadow: 0 0 0 transparent;
	counter-increment: faq-card;
	transition: border-color var(--duration-fast, 0.18s) var(--ease-default, ease),
		box-shadow var(--duration-fast, 0.18s) var(--ease-default, ease),
		transform var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__card:hover {
	border-color: color-mix(in srgb, var(--accent) 45%, transparent);
	box-shadow: 0 14px 32px -20px color-mix(in srgb, var(--ink) 45%, transparent);
	transform: translateY(-3px);
}

/* Keyboard focus parity (a11y) — card holds editable blocks. */
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__card:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Ghost numeral chrome, top-right. */
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__card::before {
	content: counter(faq-card, decimal-leading-zero);
	position: absolute;
	top: clamp(0.4rem, 1.2vw, 0.75rem);
	right: clamp(0.7rem, 1.6vw, 1.1rem);
	font-family: var(--font-display);
	font-size: clamp(2.75rem, 6vw, 4rem);
	font-weight: 700;
	line-height: 1;
	color: color-mix(in srgb, var(--accent) 16%, transparent);
	pointer-events: none;
	z-index: 0;
}

/* Keep editable content above the ghost numeral. */
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__eyebrow,
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__q,
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__a {
	position: relative;
	z-index: 1;
}

/* "Czy wiesz, że…" eyebrow. */
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__eyebrow {
	font-family: var(--font-body) !important;
	font-size: var(--text-xs) !important;
	font-weight: 600 !important;
	letter-spacing: var(--tracking-wide) !important;
	text-transform: uppercase !important;
	color: var(--accent) !important;
	margin: 0 !important;
}

/* Question-as-insight lead. */
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__q {
	font-family: var(--font-display) !important;
	font-size: clamp(1.15rem, 2vw, 1.4rem) !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	color: var(--ink) !important;
	margin: 0 !important;
}

/* Answer. */
body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__a {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	line-height: var(--leading-relaxed) !important;
	color: var(--ink) !important;
	opacity: 0.78;
	margin: 0 !important;
	margin-top: auto !important;
}

/* Mobile: cap letter-spacing on the uppercase labels (A5). */
@media (max-width: 640px) {
	body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__kicker,
	body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__eyebrow {
		letter-spacing: 0 !important;
	}
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__card {
		transition: none;
	}
	body.aibt-universal .universal-faq--did-you-know-cards .universal-faq__card:hover {
		transform: none;
	}
}
