/**
 * Variant CSS: social--feed-preview-grid
 *
 * A profile preview — kicker + headline over a six-tile grid of square "feed"
 * shots (hover zoom), with the handle and a follow button below. Unlike the icon
 * bars and lists: it shows what the profile actually looks like, pulling the
 * follow. Tiles' img src are swapped by the photo system. Text stays --ink
 * (polarity-aware); kicker, em and the button take --accent / CTA tokens. Part
 * of the `social` role.
 */

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

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

body.aibt-universal .universal-social--feed-preview-grid .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;
	margin: 0 auto var(--space-sm) auto !important;
}

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

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

/* Feed grid: 6 square tiles, 3 columns. */
body.aibt-universal .universal-social--feed-preview-grid .universal-social__feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(4px, 1vw, 10px);
}

body.aibt-universal .universal-social--feed-preview-grid .universal-social__tile {
	margin: 0 !important;
	position: relative;
	overflow: hidden;
	border-radius: calc(var(--decor-radius, 12px) * 0.5);
	aspect-ratio: 1 / 1;
}

body.aibt-universal .universal-social--feed-preview-grid .universal-social__tile img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 600ms var(--ease-default, ease);
}

body.aibt-universal .universal-social--feed-preview-grid .universal-social__tile:hover img {
	transform: scale(1.06);
}

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

body.aibt-universal .universal-social--feed-preview-grid .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;
}

body.aibt-universal .universal-social--feed-preview-grid .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--feed-preview-grid .universal-social__cta .wp-block-button__link:hover,
body.aibt-universal .universal-social--feed-preview-grid .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--feed-preview-grid .universal-social__cta .wp-block-button__link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

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

/* A8/A9 left-shift fix (2026-06-08): centered intro element(s) were max-width-capped by
   WP constrained layout but pinned left by horizontal margin:0. Force margin-inline:auto.
   Section class doubled -> specificity (0,4,1) beats h2.__headline-style rules; harmless on
   already-centered elements (auto margins compute to 0). Only left/right are overridden. */
body.aibt-universal .universal-social--feed-preview-grid.universal-social--feed-preview-grid .universal-social__headline { margin-inline: auto !important; }
