/*
 * /offers/ (STR-213, layout A approved by Alex 2026-11-22). Loaded only on the Offers page
 * (functions.php strikers_enqueue_page_styles). Every value is a theme.json token.
 *
 * Phone (390): H1 + intro, then one card per flyer stacked (flyer full width, name, line, key
 * items, one action), then the whole-panel menu link, then Follow Us!. 600–781px: the same
 * single column, capped at 34rem so a flyer never runs 1000px tall. 782px and up: three
 * columns across the 1200px wide column, the menu panel full width below, Follow Us! aligned
 * to the same left edge.
 *
 * Contrast (on surface-dark #000 unless noted): mix-ink #E8E8ED 17.2:1; blue-text-dark #6B7BFF
 * 5.90:1; ink-muted-dark #A1A1A6 8.16:1; black on mix-ink (store buttons) 17.2:1; on
 * surface-alt-dark #161618: mix-ink 14.8:1, ink-muted-dark 7.03:1, hairline-dark panel edge is
 * decoration (the whole panel is the link and its text carries it).
 * No motion on this page: the flyers are the moment.
 */

.strikers-offers-wrap {
	--strikers-offers-mid: 34rem;
}

/* Two classes on purpose: beats the global heading element styles. */
.strikers-offers .strikers-offers-title {
	color: var(--wp--preset--color--mix-ink);
	font-size: var(--wp--preset--font-size--h-1);
	font-weight: var(--wp--custom--font-weight--bold);
	line-height: var(--wp--custom--line-height--h-1);
	margin: 0;
}

.strikers-offers .strikers-offers-intro {
	color: var(--wp--preset--color--ink-muted-dark);
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: var(--wp--custom--line-height--body-lg);
	margin: var(--wp--preset--spacing--2) 0 var(--wp--preset--spacing--6);
	max-width: 44ch;
}

/* ---- Cards ---- */
.strikers-offer-list {
	display: grid;
	gap: var(--wp--preset--spacing--16);
	list-style: none;
	margin: 0 0 var(--wp--preset--spacing--16);
	max-width: var(--strikers-offers-mid);
	padding: 0;
}

.strikers-offer {
	align-content: start;
	display: grid;
	gap: var(--wp--preset--spacing--4);
	margin: 0;
	min-width: 0;
}

.strikers-offer-flyer {
	margin: 0;
}

/* width/height on the img reserve the flyer's own shape (no CLS, any flyer ratio). The
   surface-alt-dark fill shows while a lazy flyer loads. */
.strikers-offer-flyer img {
	background-color: var(--wp--preset--color--surface-alt-dark);
	border-radius: var(--wp--custom--radius--md);
	display: block;
	height: auto;
	max-width: 100%;
	width: 100%;
}

/* Deal names in blue (brand rule 4). */
.strikers-offers .strikers-offer-name {
	color: var(--wp--preset--color--blue-text-dark);
	font-size: var(--wp--preset--font-size--h-2);
	font-weight: var(--wp--custom--font-weight--bold);
	line-height: var(--wp--custom--line-height--h-2);
	margin: 0;
}

.strikers-offer-line {
	color: var(--wp--preset--color--mix-ink);
	font-size: var(--wp--preset--font-size--body);
	line-height: var(--wp--custom--line-height--body);
	margin: 0;
}

/* The flyer's facts as text: a 2-column grid of hairline cells (1px gap over a hairline fill). */
.strikers-offer-items {
	background-color: var(--wp--preset--color--hairline-dark);
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--hairline-dark);
	border-radius: var(--wp--custom--radius--sm);
	display: grid;
	gap: var(--wp--custom--border--hairline);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	overflow: hidden;
	padding: 0;
}

.strikers-offer-items > li {
	background-color: var(--wp--preset--color--surface-dark);
	color: var(--wp--preset--color--mix-ink);
	font-size: var(--wp--preset--font-size--body);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--body);
	margin: 0;
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4);
}

.strikers-offer-items > li > span {
	color: var(--wp--preset--color--ink-muted-dark);
	display: block;
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--wp--custom--font-weight--regular);
	line-height: var(--wp--custom--line-height--caption);
}

.strikers-offer-items > li.is-row {
	grid-column: 1 / -1;
}

.strikers-offer-items > li.is-more {
	color: var(--wp--preset--color--ink-muted-dark);
	font-weight: var(--wp--custom--font-weight--regular);
}

/* A real sequence (earn → unlock → redeem), so it is numbered. */
.strikers-offer-steps {
	counter-reset: strikers-step;
	display: grid;
	gap: var(--wp--preset--spacing--2);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.strikers-offer-steps > li {
	border-top: var(--wp--custom--border--width) solid var(--wp--preset--color--blue-text-dark);
	color: var(--wp--preset--color--mix-ink);
	counter-increment: strikers-step;
	font-size: var(--wp--preset--font-size--body);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--body);
	margin: 0;
	padding-top: var(--wp--preset--spacing--2);
}

.strikers-offer-steps > li::before {
	color: var(--wp--preset--color--ink-muted-dark);
	content: counter(strikers-step);
	display: block;
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--wp--custom--font-weight--regular);
	line-height: var(--wp--custom--line-height--caption);
}

/* How to order: plain text, set off by a blue rule. Not a button (ordering is in the room;
   red is for booking). */
.strikers-offer-how {
	border-left: var(--wp--custom--border--width) solid var(--wp--preset--color--blue-text-dark);
	color: var(--wp--preset--color--mix-ink);
	font-size: var(--wp--preset--font-size--body);
	font-weight: var(--wp--custom--font-weight--semibold);
	line-height: var(--wp--custom--line-height--body);
	margin: 0;
	padding-left: var(--wp--preset--spacing--4);
}

/* Store buttons: the page's only "do it now" link. Filled mix-ink pills, black label. */
.strikers-offer-apps {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--2);
	margin: 0;
}

.strikers-offer-apps a {
	align-items: center;
	background-color: var(--wp--preset--color--mix-ink);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--mix-ink);
	border-radius: var(--wp--custom--radius--pill);
	box-sizing: border-box;
	color: var(--wp--preset--color--surface-dark);
	display: inline-flex;
	flex: 1 1 10rem;
	font-size: var(--wp--preset--font-size--body);
	font-weight: var(--wp--custom--font-weight--semibold);
	justify-content: center;
	line-height: var(--wp--custom--line-height--body);
	min-height: var(--wp--custom--tap-target);
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--6);
	text-decoration: none;
}

/* Hover/active: invert to an outline, so the state change is visible. */
.strikers-offer-apps a:hover,
.strikers-offer-apps a:active {
	background-color: var(--wp--preset--color--surface-dark);
	color: var(--wp--preset--color--mix-ink);
	text-decoration: none;
}

/* ---- Menu panel: the whole panel is one link ---- */
.strikers-offers .strikers-offers-menu {
	align-items: center;
	background-color: var(--wp--preset--color--surface-alt-dark);
	border: var(--wp--custom--border--hairline) solid var(--wp--preset--color--hairline-dark);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wp--preset--color--mix-ink);
	display: grid;
	gap: var(--wp--preset--spacing--4);
	grid-template-columns: minmax(0, 1fr) auto;
	padding: var(--wp--preset--spacing--6);
	text-decoration: none;
}

.strikers-offers-menu small {
	color: var(--wp--preset--color--ink-muted-dark);
	display: block;
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: var(--wp--custom--line-height--body-lg);
}

.strikers-offers-menu b {
	display: block;
	font-size: var(--wp--preset--font-size--h-2);
	font-weight: var(--wp--custom--font-weight--bold);
	line-height: var(--wp--custom--line-height--h-2);
}

.strikers-offers-menu i {
	align-items: center;
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--mix-ink);
	border-radius: var(--wp--custom--radius--pill);
	box-sizing: border-box;
	display: flex;
	height: calc(var(--wp--custom--tap-target) + var(--wp--preset--spacing--2));
	justify-content: center;
	width: calc(var(--wp--custom--tap-target) + var(--wp--preset--spacing--2));
}

.strikers-offers-menu svg {
	height: var(--wp--preset--spacing--6);
	width: var(--wp--preset--spacing--6);
}

.strikers-offers .strikers-offers-menu:hover {
	text-decoration: none;
}

.strikers-offers-menu:hover i,
.strikers-offers-menu:active i {
	background-color: var(--wp--preset--color--mix-ink);
	color: var(--wp--preset--color--surface-dark);
}

/* Focus: the site's blue ring, offset so it reads on black and on the light pills. */
.strikers-offer-apps a:focus-visible,
.strikers-offers .strikers-offers-menu:focus-visible {
	outline: var(--wp--custom--border--width) solid var(--wp--preset--color--blue-text-dark);
	outline-offset: 3px;
}

@media (min-width: 782px) {
	.strikers-offers .strikers-offers-title {
		font-size: var(--wp--preset--font-size--hero);
		line-height: var(--wp--custom--line-height--hero);
	}

	.strikers-offers .strikers-offers-intro {
		margin-bottom: var(--wp--preset--spacing--10);
	}

	.strikers-offer-list {
		gap: var(--wp--preset--spacing--10);
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: none;
	}

	.strikers-offers .strikers-offers-menu {
		padding: var(--wp--preset--spacing--10);
	}

	.strikers-offers-menu b {
		font-size: var(--wp--preset--font-size--h-1);
		line-height: var(--wp--custom--line-height--h-1);
	}

	/* Follow Us! (offers.follow, unchanged markup) starts on the cards' left edge instead of
	   the narrower content column; the four pills keep their content-column width. */
	#offers-follow > * {
		max-width: var(--wp--style--global--wide-size);
	}

	#offers-follow .strikers-follow {
		grid-template-columns: repeat(4, minmax(0, calc((var(--wp--style--global--content-size) - 3 * var(--wp--preset--spacing--2)) / 4)));
	}
}
