/**
 * Variant CSS: before-after--center-seam-pair
 * Layer 2 — Path B before-after role (2026-06-10).
 * One bordered board split by a SINGLE central vertical seam into two sides —
 * a left case and a right case meeting on a shared spine, like a spread. Each
 * side = a number + title head, then a HORIZONTAL before|after pair with corner
 * tags.
 * Distinct from duo-split-cards (a seam INSIDE each separate card) and
 * seam-quad-board (a cross "+" seam for four quadrants): here one centre seam
 * divides the whole section into two halves.
 */

body.aibt-universal .universal-before-after--center-seam-pair {
	background: var(--background-alt);
	color: var(--text-primary);
}

/* Intro — centred block, A8-safe. */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__intro {
	margin-bottom: var(--space-xl);
	text-align: center;
}

body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__intro > * {
	margin-inline: auto !important;
}

body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__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-before-after--center-seam-pair h2.universal-before-after__headline,
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__headline {
	font-family: var(--font-display) !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* Board — the unifying bordered panel holding the two sides.
   position:relative so the centre seam can be drawn over it. */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__board {
	position: relative;
	padding: var(--space-lg);
	background: var(--background, #fff);
	border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
	border-radius: var(--decor-radius);
	overflow: hidden;
}

/* Centre seam — the single vertical spine where the two cases meet. */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__board::before {
	content: "";
	position: absolute;
	top: var(--space-lg);
	bottom: var(--space-lg);
	left: 50%;
	width: 2px;
	transform: translateX(-50%);
	background: var(--divider-primary);
	z-index: 4;
	pointer-events: none;
}

/* Seam columns — the two sides butted together; inner padding keeps each
   case's frames off the centre line. */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__seam {
	align-items: stretch;
}

body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__side {
	display: flex;
	flex-direction: column;
}

/* Inner gutter so frames clear the seam — left side pads right, right side
   pads left. */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__side:first-child {
	padding-right: var(--space-lg);
}

body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__side:last-child {
	padding-left: var(--space-lg);
}

/* Head — number + title above each side's pair. */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__head {
	gap: var(--space-sm) !important;
	margin-bottom: var(--space-md);
}

body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__num {
	flex: 0 0 auto;
	font-family: var(--font-display) !important;
	font-size: var(--text-2xl) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em !important;
	color: var(--accent) !important;
	margin: 0 !important;
}

body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__side-title {
	min-width: 0;
	font-family: var(--font-display) !important;
	font-size: var(--text-lg) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* Pair — before | after shots, equal width, small gap. */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__pair {
	gap: var(--space-sm) !important;
	margin-top: auto;
}

body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__shot {
	position: relative;
	flex: 1 1 50%;
	min-width: 0;
	overflow: hidden;
	border-radius: var(--decor-radius);
}

body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__img {
	margin: 0 !important;
	display: block;
	height: 100%;
}

body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__img img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	filter: var(--photo-filter, none);
	transition: transform var(--duration-slow, 900ms) var(--ease-elegant, ease);
}

/* Gentle paired zoom on the side's photos on hover — tactile result cue
   (reduced-motion is handled globally by the skeleton). */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__side:hover .universal-before-after__img img {
	transform: scale(1.04);
}

/* Corner tags — sit on each shot.
   Fixed rgba drop-shadow lifts the chip off any photo (theme-independent,
   correct text-on-photo pattern) so light chips stay crisp on bright shots. */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__tag {
	position: absolute;
	top: var(--space-xs);
	left: var(--space-xs);
	z-index: 2;
	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;
	margin: 0 !important;
	padding: 0.35em 0.8em !important;
	border-radius: var(--decor-radius-pill);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.22);
}

/* "Przed" — neutral dark chip (text-on-dark). */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__tag--before {
	background: var(--background-dark, #141414);
	color: var(--text-on-dark, #fff) !important;
}

/* "Po" — accent CTA chip to signal the win. */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__tag--after {
	background: var(--cta-bg-primary);
	color: var(--cta-text-primary) !important;
}

/* Tablet/phone — the WP columns block wraps to one column ≤781px, so the two
   sides stack. Drop the centre seam (it would float over a single column) and
   neutralise the inner seam gutters; separate the stacked sides with a rule. */
@media (max-width: 781px) {
	body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__board::before {
		display: none;
	}
	body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__side:first-child,
	body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__side:last-child {
		padding-right: 0;
		padding-left: 0;
	}
	body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__side + .universal-before-after__side {
		margin-top: var(--space-lg);
		padding-top: var(--space-lg);
		border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
	}
}

/* Phone — cap uppercase tracking on small screens (A5 — wide tracking hurts
   small text). */
@media (max-width: 640px) {
	body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__kicker,
	body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__tag {
		letter-spacing: 0 !important;
	}
}

/* Keyboard affordance — side focus-within outline + image focus-visible. */
body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__side:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

body.aibt-universal .universal-before-after--center-seam-pair .universal-before-after__img img:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* A8/A9 left-shift fix (2026-06-10): centered intro children (kicker/headline) were
   max-width-capped by WP constrained layout but had horizontal margin 0, pinning them
   to the left. Force margin-inline:auto. Section class doubled -> specificity (0,4,1)
   beats element-tag-qualified rules like h2.__headline; harmless on already-centered
   elements (auto margins compute to 0). Only left/right are overridden. */
body.aibt-universal .universal-before-after--center-seam-pair.universal-before-after--center-seam-pair .universal-before-after__kicker,
body.aibt-universal .universal-before-after--center-seam-pair.universal-before-after--center-seam-pair .universal-before-after__headline { margin-inline: auto !important; }
