/**
 * Variant CSS: social--review-stars-feed
 *
 * A feed-styled grid of three short "from the web" reviews: each card has a row
 * of five stars, a short quote, an initials disc + the author's @handle; below,
 * the brand handle + a follow button. Unlike the photo feeds and icon bars: it
 * carries social proof in the words of followers, with a star rating. Quotes,
 * initials and handles are swapped by the brief. Text stays --ink
 * (polarity-aware); kicker, stars, em and the button take --accent / CTA tokens.
 * Part of the `social` role.
 */

body.aibt-universal .universal-social--review-stars-feed {
	padding-block: calc(clamp(3rem, 7vw, 5rem) * var(--density, 1));
}

/* Intro. */
body.aibt-universal .universal-social--review-stars-feed .universal-social__intro {
	margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__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;
	/* Centered child of a constrained section -> keep horizontal-auto margins (A8/A9). */
	margin: 0 auto var(--space-sm) auto !important;
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__headline {
	font-family: var(--font-display) !important;
	color: var(--ink) !important;
	margin: 0 auto !important;
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__headline em {
	color: var(--accent) !important;
	font-style: italic;
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__deck {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	line-height: var(--leading-relaxed, 1.6) !important;
	color: color-mix(in srgb, var(--ink) 78%, transparent) !important;
	max-width: 52ch;
	margin: var(--space-sm) auto 0 auto !important;
}

/* Review cards grid: 3 columns. */
body.aibt-universal .universal-social--review-stars-feed .universal-social__feed {
	gap: clamp(1rem, 2vw, 1.6rem) !important;
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__card {
	background: color-mix(in srgb, var(--ink) 3%, transparent);
	border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
	border-radius: var(--decor-radius, 16px);
	padding: clamp(1.3rem, 3vw, 1.8rem);
	display: flex;
	flex-direction: column;
	gap: clamp(0.7rem, 1.6vw, 1rem);
	transition: transform var(--duration-fast, 0.18s) var(--ease-default, ease),
		box-shadow var(--duration-fast, 0.18s) var(--ease-default, ease);
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px color-mix(in srgb, var(--ink) 12%, transparent);
}

/* Star rating row. */
body.aibt-universal .universal-social--review-stars-feed .universal-social__stars {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	color: var(--accent);
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__stars svg {
	display: block;
}

/* Quote. */
body.aibt-universal .universal-social--review-stars-feed .universal-social__quote {
	font-family: var(--font-body) !important;
	font-size: var(--text-base) !important;
	line-height: var(--leading-relaxed, 1.6) !important;
	color: var(--ink) !important;
	margin: 0 !important;
	/* Push the byline to the card foot so cards align in the grid. */
	flex: 1 1 auto;
}

/* Byline: initials disc + handle. */
body.aibt-universal .universal-social--review-stars-feed .universal-social__byline {
	gap: 0.7rem !important;
	align-items: center !important;
	margin-top: auto;
	padding-top: calc(clamp(0.6rem, 1.5vw, 0.9rem) * var(--density, 1));
	border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__avatar {
	flex: 0 0 auto;
	width: 2.4rem;
	height: 2.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--decor-radius-pill, 999px);
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	color: var(--accent) !important;
	font-family: var(--font-display) !important;
	font-size: var(--text-xs) !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	line-height: 1 !important;
	margin: 0 !important;
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__byhandle {
	font-family: var(--font-body) !important;
	font-size: var(--text-sm) !important;
	font-weight: 600 !important;
	color: color-mix(in srgb, var(--ink) 72%, transparent) !important;
	margin: 0 !important;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Follow row. */
body.aibt-universal .universal-social--review-stars-feed .universal-social__follow {
	gap: 1rem 1.4rem !important;
	margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__handle {
	font-family: var(--font-display) !important;
	font-size: clamp(1.2rem, 2.6vw, 1.6rem) !important;
	font-weight: 600 !important;
	letter-spacing: -0.01em !important;
	color: var(--ink) !important;
	margin: 0 !important;
	overflow-wrap: anywhere;
}

body.aibt-universal .universal-social--review-stars-feed .universal-social__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-size: var(--text-base) !important;
	font-weight: 600 !important;
	padding: 0.7rem 1.6rem !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-social--review-stars-feed .universal-social__cta .wp-block-button__link:hover,
body.aibt-universal .universal-social--review-stars-feed .universal-social__cta .wp-block-button__link:focus-visible {
	background: var(--accent-hover, var(--accent)) !important;
	transform: translateY(-2px);
}

/* Visible keyboard focus ring on the follow button. */
body.aibt-universal .universal-social--review-stars-feed .universal-social__cta .wp-block-button__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

/* Tablet: 1 column (grid layout has no inline columnCount fallback here). */
@media (max-width: 781px) {
	body.aibt-universal .universal-social--review-stars-feed .universal-social__feed {
		grid-template-columns: 1fr !important;
	}
}

/* Mobile: cap tracking (A5). */
@media (max-width: 640px) {
	body.aibt-universal .universal-social--review-stars-feed .universal-social__kicker {
		letter-spacing: 0 !important;
	}
}

/* Honor reduced-motion: freeze the card lift + button lift. */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-social--review-stars-feed .universal-social__card,
	body.aibt-universal .universal-social--review-stars-feed .universal-social__cta .wp-block-button__link {
		transition: background var(--duration-fast, 0.18s) var(--ease-default, ease);
	}
	body.aibt-universal .universal-social--review-stars-feed .universal-social__card:hover {
		transform: none;
		box-shadow: none;
	}
	body.aibt-universal .universal-social--review-stars-feed .universal-social__cta .wp-block-button__link:hover,
	body.aibt-universal .universal-social--review-stars-feed .universal-social__cta .wp-block-button__link:focus-visible {
		transform: none;
	}
}
