/**
 * Variant CSS: offer--duo-framed-ticket-pair
 * Layer 2 — Path B universal offer variant (authored 2026-06-10).
 *
 * Concept: EXACTLY two services rendered as two premium "ADMISSION TICKET / COUPON"
 * cards side by side (50/50, equal height). Each ticket has a top "stub" (title +
 * meta chip) cut off from the body by a DASHED PERFORATION line, the price set big
 * in the bottom corner like a ticket value, and small NOTCH cut-outs punched into
 * the left/right edges at the perforation height.
 *
 * Differentiator vs sibling EC=2 offer variants:
 *   - duo-equal-cards: flat symmetric cards with an accent top hairline + icon chip.
 *   - duo-split-diptych: shared centre seam + the SECOND panel on an accent wash.
 *   - duo-numbered-panels: borderless panels + oversized numerals + centre rule.
 *   THIS one: tactile "tear-off coupon" framing — perforation rule + edge notches +
 *   corner price nominal. Reads as something you'd physically detach.
 *
 * Colour intent: NEUTRAL card surface so all copy stays --text-primary (KI-020 safe
 * on light + dark). Accent only on the kicker, meta chip, perforation tint, price and
 * hover edge. The edge notches + perforation gaps are "punched out" with the SECTION
 * bg colour (var(--background)) so the cut-outs match the surface behind the ticket
 * on every theme.
 * Tokens: area-1-* / area-2-* (title, desc, price) + area-N-meta-1 (chip).
 */

/* == Section shell == */
body.aibt-universal .universal-offer--duo-framed-ticket-pair {
	padding-block: calc(clamp(var(--space-xl), 8vw, var(--space-3xl)) * var(--density, 1));
	background: var(--background);
	color: var(--text-primary);
}

/* == Intro (centred — A8/A9: keep horizontal margins auto) == */
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__intro {
	margin: 0 auto clamp(var(--space-lg), 4vw, var(--space-2xl)) auto;
}

body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__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-offer--duo-framed-ticket-pair .universal-offer__headline {
	font-family: var(--font-display) !important;
	font-size: clamp(2rem, 4.5vw, 3.6rem) !important;
	color: var(--text-primary) !important;
	margin: 0 auto var(--space-sm) auto !important;
	max-width: 18ch;
}

body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__headline em {
	color: var(--italic-color, var(--accent));
	font-style: italic;
	font-weight: var(--italic-weight, inherit);
}

body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__deck {
	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 auto !important;
	max-width: 52ch;
}

/* == Pair: two equal ticket columns. Force wrap so WP-core nowrap (≥782px) cannot
   pin them; explicit basis keeps a true 50/50 split until the mobile stack. == */
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__pair {
	flex-wrap: wrap !important;
	gap: clamp(var(--space-md), 2.5vw, var(--space-lg)) !important;
	align-items: stretch !important;
}

body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__pair > .universal-offer__ticket {
	flex: 1 1 calc(50% - var(--space-lg)) !important;
}

/* == Ticket: vertical flex so the body grows and the price anchors the bottom edge;
   both tickets share equal height regardless of copy length. The edge NOTCHES are two
   radial-gradient "punches" filled with the section bg, positioned at the perforation
   line so the card reads as a torn-off coupon. == */
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__ticket {
	display: flex !important;
	flex-direction: column;
	gap: 0;
	background:
		radial-gradient(circle at left var(--ticket-notch-y, 5.25rem), var(--background) 0 0.75rem, transparent 0.78rem) left center / 51% 100% no-repeat,
		radial-gradient(circle at right var(--ticket-notch-y, 5.25rem), var(--background) 0 0.75rem, transparent 0.78rem) right center / 51% 100% no-repeat,
		color-mix(in srgb, var(--text-primary) 4%, var(--background)) !important;
	border: 1px solid var(--divider-primary);
	border-radius: var(--decor-radius, 0px);
	box-shadow: var(--decor-shadow-soft, var(--decor-shadow, none));
	position: relative;
	overflow: hidden;
	transition:
		border-color var(--duration-fast) var(--ease-snappy),
		box-shadow var(--duration-fast) var(--ease-snappy),
		transform var(--duration-fast) var(--ease-snappy);
}

body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__ticket:hover {
	border-color: var(--accent);
	box-shadow: var(--decor-shadow-elevated, var(--decor-shadow-soft, var(--decor-shadow, none)));
	transform: translateY(-4px);
}

body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__ticket:focus-within {
	border-color: var(--accent);
}

/* Accent value-strip down the left edge — the "ticket spine". */
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__ticket::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 4px;
	background: var(--accent);
	opacity: 0.85;
}

/* == Stub: the tear-off top portion (title + meta chip). == */
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__stub {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-sm);
	padding: clamp(var(--space-lg), 3.5vw, var(--space-2xl)) clamp(var(--space-lg), 3.5vw, var(--space-2xl)) var(--space-lg);
}

/* Title. */
body.aibt-universal .universal-offer--duo-framed-ticket-pair h3.universal-offer__card-title,
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__card-title {
	font-family: var(--font-display) !important;
	font-size: clamp(1.5rem, 3vw, 2.1rem) !important;
	font-weight: 600 !important;
	line-height: 1.15 !important;
	letter-spacing: -0.02em !important;
	color: var(--text-primary) !important;
	margin: 0 !important;
}

/* Meta chip — a small pill carrying area-N-meta-1 (ticket type / duration / scope). */
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__chip {
	display: inline-block;
	width: fit-content;
	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;
	background: color-mix(in srgb, var(--accent) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
	border-radius: var(--decor-radius-pill, 999px);
	padding: 0.3rem 0.85rem !important;
	margin: 0 !important;
}

/* == Perforation rule: dashed line spanning the ticket between stub + body, sitting
   at the notch height. Pure CSS dashes via a repeating linear gradient tinted with
   the accent so it reads on every theme. == */
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__perf {
	display: block;
	height: 0;
	margin: 0 clamp(var(--space-lg), 3.5vw, var(--space-2xl));
	border-top: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--divider-primary));
}

/* == Body: description grows; price pinned big in the bottom corner. == */
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__body {
	display: flex !important;
	flex-direction: column;
	gap: var(--space-md);
	flex: 1 1 auto;
	padding: var(--space-lg) clamp(var(--space-lg), 3.5vw, var(--space-2xl)) clamp(var(--space-lg), 3.5vw, var(--space-2xl));
}

/* Description — grows to fill so both tickets' prices align at the bottom. */
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__card-desc {
	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;
	flex: 1 1 auto;
	max-width: 46ch;
}

/* Price — big "ticket value" in the bottom corner. Guard against overflow on long
   strings; cap the font-size so a wide price never breaks the 50/50 column. */
body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__card-price {
	font-family: var(--font-display) !important;
	font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: -0.02em !important;
	color: var(--accent) !important;
	margin: 0 !important;
	align-self: flex-end;
	text-align: right;
	overflow-wrap: normal;
	word-break: keep-all;
}

/* == Responsive == */
/* Tablet (641-959): keep two tickets but tighten the inner padding + gutter. */
@media (min-width: 641px) and (max-width: 959px) {
	body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__pair {
		gap: var(--space-md) !important;
	}
	body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__pair > .universal-offer__ticket {
		flex-basis: calc(50% - var(--space-md)) !important;
	}
	body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__stub {
		padding: clamp(var(--space-md), 3vw, var(--space-lg)) clamp(var(--space-md), 3vw, var(--space-lg)) var(--space-md);
	}
	body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__perf {
		margin-inline: clamp(var(--space-md), 3vw, var(--space-lg));
	}
	body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__body {
		padding: var(--space-md) clamp(var(--space-md), 3vw, var(--space-lg)) clamp(var(--space-md), 3vw, var(--space-lg));
	}
}

/* Mobile (≤640): stack to one column. */
@media (max-width: 640px) {
	body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__pair > .universal-offer__ticket {
		flex-basis: 100% !important;
	}
	/* Cap uppercase tracking at narrow widths (reads as gaps — A5). */
	body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__kicker {
		letter-spacing: var(--tracking-wider) !important;
	}
}

/* == Motion respect == */
@media (prefers-reduced-motion: reduce) {
	body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__ticket {
		transition: none;
	}
	body.aibt-universal .universal-offer--duo-framed-ticket-pair .universal-offer__ticket:hover {
		transform: none;
	}
}
