/*
 * albums.css — template-albums.php (loaded only there by m6m_template_styles()).
 *
 * 2.4.0 FLOODLIGHT. A dark pitch at night: the photographs are the only
 * thing lit. No cards, boxes or chips; scale, contrast and rhythm do the
 * work. Teal is the floodlight: focus rings, hairlines, the active
 * filter, the score on hover. Never a fill.
 *
 * Mobile-first, min-width 560 / 768 / 900 / 1100 / 1440.
 * Shared power-on reveal ([data-floodlight]) lives in style.css.
 */

/* ---- Frame ------------------------------------------------ */
.m6ma-inner {
	--m6ma-px: 16px;
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--custom--layout--max-w-portfolio);
	margin-inline: auto;
	padding-inline: var(--m6ma-px);
}

.m6ma-arrow {
	display: inline-block;
	transition: transform var(--wp--custom--duration--medium) var(--wp--custom--easing--out);
}

/* ============================================================
   HERO — the latest fixture
   ============================================================ */
.m6ma-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: end;
	min-height: max(34rem, calc(100svh - 4rem));
	overflow: hidden;
	background: var(--wp--preset--color--bg);
}
.m6ma-hero__frame {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.m6ma-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 35%;
}
/* The gradient is the contrast guarantee: anything the board sits on
   is at least ~84% obsidian, so body-size text stays above 8:1 even
   over a white shirt. */
.m6ma-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		to top,
		var(--wp--preset--color--bg) 0%,
		color-mix(in srgb, var(--wp--preset--color--bg) 94%, transparent) 35%,
		color-mix(in srgb, var(--wp--preset--color--bg) 70%, transparent) 60%,
		transparent 92%
	);
}
.m6ma-hero__board {
	padding-block: var(--wp--preset--spacing--2xl) var(--wp--preset--spacing--xl);
}

.m6ma-kicker {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 var(--wp--preset--spacing--sm);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.m6ma-kicker::before {
	content: "";
	width: 2rem;
	height: 1px;
	background: currentColor;
}

/* One-line label strip: teams · competition · date · venue */
.m6ma-strip {
	display: flex;
	flex-direction: column; /* phones: one fact per line */
	gap: 0.15rem 0;
	margin: 0 0 var(--wp--preset--spacing--xs);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text);
}
.m6ma-strip span:first-child { font-weight: 700; }
.m6ma-strip span + span::before {
	content: none;
	margin-inline: 0.8em;
	color: var(--wp--preset--color--text-secondary);
}

.m6ma-hero__score,
.m6ma-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--text);
}
.m6ma-hero__score {
	margin-left: -0.05em;
	font-size: var(--wp--preset--font-size--scoreboard);
	line-height: 0.82;
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.m6ma-hero__title {
	max-width: 16ch;
	font-size: var(--wp--preset--font-size--display);
	line-height: 0.92;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.m6ma-hero__pens {
	margin: var(--wp--preset--spacing--sm) 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text);
}
.m6ma-hero__link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	margin-top: var(--wp--preset--spacing--md);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text);
	border-bottom: 1px solid var(--wp--preset--color--accent);
}
.m6ma-hero__link:hover { color: var(--wp--preset--color--accent); }
.m6ma-hero__link:hover .m6ma-arrow,
.m6ma-hero__link:focus-visible .m6ma-arrow { transform: translateX(0.35em); }

/* 2.4.3: "View album" and the Google Photos icon-link side by side. */
.m6ma-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: var(--wp--preset--spacing--md);
}
.m6ma-hero__actions .m6ma-hero__link { margin-top: 0; }

/* Filtered / paged views: no hero, a plain scoreboard title instead. */
.m6ma-head {
	padding-block: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--md);
}
.m6ma-head__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.045em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text);
}
.m6ma-head__sub {
	margin: var(--wp--preset--spacing--xs) 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-secondary);
}

/* ============================================================
   SCOREBOARD TICKER — sticky under the site header
   ============================================================ */
.m6ma-ticker {
	position: sticky;
	top: 64px; /* .site-header__inner height */
	z-index: 5;
	background: color-mix(in srgb, var(--wp--preset--color--bg) 94%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.admin-bar .m6ma-ticker { top: calc(64px + 46px); }
@media (min-width: 783px) { /* WordPress core admin-bar breakpoint */
	.admin-bar .m6ma-ticker { top: calc(64px + 32px); }
}

.m6ma-ticker__inner {
	display: flex;
	flex-direction: column-reverse;
	padding-inline: 0; /* the rail scrolls edge to edge on phones */
}
.m6ma-ticker__end {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--sm);
	min-height: 48px;
	padding-inline: var(--m6ma-px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.m6ma-ticker__rail {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--lg);
	min-height: 48px;
	padding-inline: var(--m6ma-px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	white-space: nowrap;
}
.m6ma-ticker__rail::-webkit-scrollbar { display: none; }

.m6ma-ticker__group {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.m6ma-ticker__group li { display: flex; align-items: center; }
.m6ma-ticker__group li:nth-child(n + 3)::before {
	content: "";
	width: 3px;
	height: 3px;
	margin-inline: 0.7rem;
	border-radius: 50%;
	background: var(--wp--preset--color--text-muted);
}
.m6ma-ticker__label {
	margin-right: 0.9rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-muted);
}

.m6ma-tick {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-secondary);
	transition: color var(--wp--custom--duration--base) var(--wp--custom--easing--out);
}
.m6ma-tick::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0.14em; /* trailing letter-spacing */
	bottom: 10px;
	height: 1px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--wp--custom--duration--medium) var(--wp--custom--easing--out);
}
.m6ma-tick:hover { color: var(--wp--preset--color--text); }
.m6ma-tick.is-active { color: var(--wp--preset--color--accent); }
.m6ma-tick.is-active::after { transform: scaleX(1); }

/* Search — an icon that opens inline. :focus-within does the work, so
   it needs no script; an active query keeps it open. */
.m6ma-find {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
}
.m6ma-find__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	margin-left: -13px;
	color: var(--wp--preset--color--text-secondary);
	cursor: pointer;
	transition: color var(--wp--custom--duration--base) var(--wp--custom--easing--out);
}
.m6ma-find__icon:hover,
.m6ma-find:focus-within .m6ma-find__icon,
.m6ma-find.is-open .m6ma-find__icon { color: var(--wp--preset--color--accent); }
.m6ma-find__input {
	width: 0;
	min-width: 0;
	min-height: 36px;
	padding: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--text);
	background: transparent;
	border: 0;
	border-bottom: 1px solid transparent;
	border-radius: 0;
	transition:
		width var(--wp--custom--duration--slow) var(--wp--custom--easing--out),
		border-color var(--wp--custom--duration--base) var(--wp--custom--easing--out);
}
.m6ma-find__input::placeholder { color: var(--wp--preset--color--text-muted); }
.m6ma-find:focus-within .m6ma-find__input,
.m6ma-find.is-open .m6ma-find__input {
	width: min(15rem, 46vw);
	border-bottom-color: var(--wp--preset--color--text-muted);
}
.m6ma-find__input:focus { outline: none; border-bottom-color: var(--wp--preset--color--accent); }
.m6ma-find__input:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}
.m6ma-find__go {
	display: none;
	min-height: 44px;
	padding: 0 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
	background: none;
	border: 0;
	cursor: pointer;
}
.m6ma-find:focus-within .m6ma-find__go,
.m6ma-find.is-open .m6ma-find__go { display: inline-flex; align-items: center; }

.m6ma-count {
	margin: 0 0 0 auto;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--wp--preset--color--text);
}
.m6ma-count__n { margin-right: 0.15em; }

.m6ma-clear {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	min-height: 44px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--wp--preset--color--text-secondary);
}
.m6ma-clear:hover { color: var(--wp--preset--color--text); }

.m6ma-tick:focus-visible,
.m6ma-clear:focus-visible,
.m6ma-find__go:focus-visible,
.m6ma-find__icon:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* ============================================================
   FIXTURE LIST
   ============================================================ */
.m6ma-list {
	padding-bottom: var(--wp--preset--spacing--xl);
}
.m6ma-query {
	margin: var(--wp--preset--spacing--lg) auto 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-secondary);
}
.m6ma-query strong { color: var(--wp--preset--color--text); font-weight: 700; }

/* Month divider — the season unfolding, in outline. */
.m6ma-month {
	margin: var(--wp--preset--spacing--lg) auto var(--wp--preset--spacing--md);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	color: transparent;
	-webkit-text-stroke: 1px var(--wp--preset--color--text-secondary);
}
.m6ma-list > .m6ma-month:first-child,
.m6ma-query + .m6ma-month { margin-top: var(--wp--preset--spacing--xl); }

/* ---- Sets & tiles: phones = one column of full-bleed frames ---- */
.m6ma-set {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

/* 2.4.3: each tile sits in a cell so the Google Photos icon-link can
   be its sibling (a link may not contain a link). The cell takes the
   grid area; the icon sits over the photo's top-right corner. */
.m6ma-cell {
	position: relative;
	display: grid;
	min-width: 0;
}
.m6ma-tile__gp {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
}

.m6ma-tile {
	--m6ma-gutter: 16px;
	display: grid;
	grid-template-rows: auto auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}
.m6ma-tile:hover { color: inherit; }
.m6ma-tile:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

.m6ma-tile__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--bg);
}
.m6ma-tile__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: var(--wp--custom--exposure--dim);
	transition: filter var(--wp--custom--duration--slow) var(--wp--custom--easing--out);
}
.m6ma-tile__img--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(2.5rem, 6vw, 4rem);
	background: var(--wp--preset--color--surface);
}

/* Caption on the canvas, with the floodlight rule on its top edge. */
.m6ma-tile__cap {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	padding: var(--wp--preset--spacing--sm) var(--m6ma-gutter) var(--wp--preset--spacing--xl);
}
.m6ma-tile__cap::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--m6ma-gutter);
	right: var(--m6ma-gutter);
	height: 1px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--wp--custom--duration--slower) var(--wp--custom--easing--out);
}

.m6ma-tile__score,
.m6ma-tile__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--text);
	transition: color var(--wp--custom--duration--base) var(--wp--custom--easing--out);
}
.m6ma-tile__score {
	margin-left: -0.04em;
	font-size: var(--wp--preset--font-size--score);
	line-height: 0.82;
	letter-spacing: -0.05em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.m6ma-tile__title {
	max-width: 22ch;
	font-size: var(--wp--preset--font-size--h3);
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.m6ma-tile__teams {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text);
}
.m6ma-vs {
	margin-inline: 0.7em;
	font-weight: 400;
	color: var(--wp--preset--color--text-muted);
}
.m6ma-tile__meta,
.m6ma-tile__pens {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.72rem;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-secondary);
}
.m6ma-tile__meta span + span::before { content: "·"; margin-inline: 0.6em; }
.m6ma-tile__pens { color: var(--wp--preset--color--text); }

/* Floodlight on: exposure up, rule draws, score lights teal. */
.m6ma-tile:hover .m6ma-tile__img,
.m6ma-tile:focus-visible .m6ma-tile__img { filter: var(--wp--custom--exposure--full); }
.m6ma-tile:hover .m6ma-tile__cap::before,
.m6ma-tile:focus-visible .m6ma-tile__cap::before { transform: scaleX(1); }
.m6ma-tile:hover .m6ma-tile__score,
.m6ma-tile:focus-visible .m6ma-tile__score,
.m6ma-tile:hover .m6ma-tile__title,
.m6ma-tile:focus-visible .m6ma-tile__title { color: var(--wp--preset--color--accent); }

/* Touch: there is no hover, so the lights are already on. */
@media (hover: none) {
	.m6ma-tile__img { filter: var(--wp--custom--exposure--full); }
}

/* ---- Pagination -------------------------------------------- */
.m6ma-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem 1.25rem;
	margin-top: var(--wp--preset--spacing--lg);
}
.m6ma-pagination a,
.m6ma-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--h4);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--text-secondary);
	border-bottom: 1px solid transparent;
}
.m6ma-pagination a:hover { color: var(--wp--preset--color--text); }
.m6ma-pagination .current {
	color: var(--wp--preset--color--accent);
	border-bottom-color: var(--wp--preset--color--accent);
}
.m6ma-pagination a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

/* ---- Empty state & closing line ---------------------------- */
.m6ma-empty {
	padding-block: var(--wp--preset--spacing--2xl);
}
.m6ma-empty__title,
.m6ma-cta__title {
	max-width: 14ch;
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: -0.04em;
	color: var(--wp--preset--color--text);
	text-wrap: balance;
}
.m6ma-empty__sub {
	margin: var(--wp--preset--spacing--md) 0 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--label);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--text-secondary);
}
.m6ma-cta {
	padding-block: var(--wp--preset--spacing--2xl);
	border-top: 1px solid var(--wp--preset--color--border);
}
.m6ma-cta__title span { color: var(--wp--preset--color--text-secondary); }

.m6ma-line-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	margin-top: var(--wp--preset--spacing--md);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--h4);
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--text);
	border-bottom: 1px solid var(--wp--preset--color--accent);
}
.m6ma-line-link:hover { color: var(--wp--preset--color--accent); }
.m6ma-line-link:hover .m6ma-arrow,
.m6ma-line-link:focus-visible .m6ma-arrow { transform: translateX(0.35em); }
.m6ma-hero__link:focus-visible,
.m6ma-line-link:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 4px;
}

/* ============================================================
   ≥ 560
   ============================================================ */
@media (min-width: 560px) {
	.m6ma-inner { --m6ma-px: var(--wp--custom--layout--section-px); }
	.m6ma-strip { flex-direction: row; flex-wrap: wrap; }
	.m6ma-strip span + span::before { content: "·"; }
}

/* ============================================================
   ≥ 768 — the editorial rhythm: full · 7/5 · 5/7
   Each tile spans two subgrid rows (frame, caption) so pairs share
   one image height and one caption baseline. The wider tile of a pair
   sets the height with aspect-ratio; the narrower one stretches.
   ============================================================ */
@media (min-width: 768px) {
	.m6ma-ticker__inner {
		flex-direction: row;
		align-items: center;
		gap: var(--wp--preset--spacing--lg);
		padding-inline: var(--m6ma-px);
	}
	.m6ma-ticker__rail {
		flex: 1 1 auto;
		min-width: 0;
		padding-inline: 0;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
	}
	.m6ma-ticker__end {
		flex: none;
		padding-inline: 0;
		border-bottom: 0;
	}

	.m6ma-set {
		box-sizing: border-box;
		max-width: var(--wp--custom--layout--max-w-portfolio);
		margin-inline: auto;
		padding-inline: var(--wp--custom--layout--section-px);
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: clamp(1rem, 2vw, 2rem);
		row-gap: 0;
	}
	.m6ma-set--1 {
		grid-template-areas:
			"a a a a a a a a a a a a"
			"a a a a a a a a a a a a";
	}
	.m6ma-set--2 {
		grid-template-areas:
			"b b b b b b b c c c c c"
			"b b b b b b b c c c c c";
	}
	.m6ma-set--3 {
		grid-template-areas:
			"a a a a a a a a a a a a"
			"a a a a a a a a a a a a"
			"b b b b b b b c c c c c"
			"b b b b b b b c c c c c";
	}
	.m6ma-set--4 {
		grid-template-areas:
			"b b b b b b b c c c c c"
			"b b b b b b b c c c c c"
			"d d d d d e e e e e e e"
			"d d d d d e e e e e e e";
	}
	.m6ma-set--5 {
		grid-template-areas:
			"a a a a a a a a a a a a"
			"a a a a a a a a a a a a"
			"b b b b b b b c c c c c"
			"b b b b b b b c c c c c"
			"d d d d d e e e e e e e"
			"d d d d d e e e e e e e";
	}
	.m6ma-cell--a { grid-area: a; }
	.m6ma-cell--b { grid-area: b; }
	.m6ma-cell--c { grid-area: c; }
	.m6ma-cell--d { grid-area: d; }
	.m6ma-cell--e { grid-area: e; }

	/* Frame and caption rows pass through the cell to the tile, so pairs
	   still share one image height and one caption baseline. */
	.m6ma-cell { grid-template-rows: subgrid; }
	.m6ma-tile {
		--m6ma-gutter: 0px;
		grid-row: 1 / -1;
		grid-template-rows: subgrid;
	}
	.m6ma-tile__gp { top: 16px; right: 16px; }
	.m6ma-tile--a .m6ma-tile__media { aspect-ratio: 16 / 9; }
	.m6ma-tile--b .m6ma-tile__media,
	.m6ma-tile--e .m6ma-tile__media { aspect-ratio: 4 / 3; }
	.m6ma-tile--c .m6ma-tile__media,
	.m6ma-tile--d .m6ma-tile__media {
		aspect-ratio: auto;
		height: 100%;
		min-height: 12rem;
	}

	.m6ma-tile--a .m6ma-tile__score { font-size: var(--wp--preset--font-size--display); }
	.m6ma-tile--a .m6ma-tile__title { font-size: var(--wp--preset--font-size--h2); }
}

/* No subgrid: give the narrow frame its own ratio (≈ pair height). */
@supports not (grid-template-rows: subgrid) {
	@media (min-width: 768px) {
		.m6ma-tile--c .m6ma-tile__media,
		.m6ma-tile--d .m6ma-tile__media { aspect-ratio: 20 / 21; height: auto; }
	}
}

/* ============================================================
   ≥ 900 — the lead frame reads like a scoreboard: score left,
   fixture details stacked beside it.
   ============================================================ */
@media (min-width: 900px) {
	.m6ma-month { -webkit-text-stroke-width: 1.5px; }

	.m6ma-tile--a .m6ma-tile__cap {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		grid-auto-rows: min-content;
		column-gap: var(--wp--preset--spacing--lg);
		row-gap: 0.45rem;
		align-items: end;
		align-content: start;
	}
	.m6ma-tile--a .m6ma-tile__score { grid-row: 1 / span 3; align-self: start; }
	.m6ma-tile--a .m6ma-tile__title { grid-column: 1 / -1; }
	.m6ma-tile--a .m6ma-tile__teams { padding-top: 0.4rem; }
}

/* ============================================================
   ≥ 1100 — cinematic lead frame
   ============================================================ */
@media (min-width: 1100px) {
	.m6ma-tile--a .m6ma-tile__media { aspect-ratio: 21 / 9; }
	.m6ma-hero__board { padding-bottom: var(--wp--preset--spacing--2xl); }
}

@media (min-width: 1440px) {
	.m6ma-set { column-gap: var(--wp--preset--spacing--lg); }
}

/* ---- Motion / high contrast -------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.m6ma-tile__img { filter: none; transition: none; }
	.m6ma-tile__cap::before,
	.m6ma-tick::after,
	.m6ma-arrow,
	.m6ma-find__input { transition: none; }
}
@media (forced-colors: active) {
	.m6ma-month { color: CanvasText; -webkit-text-stroke: 0; }
	.m6ma-tick.is-active { text-decoration: underline; }
	.m6ma-tile__cap::before { background: Highlight; }
	.m6ma-tile:focus-visible,
	.m6ma-tick:focus-visible,
	.m6ma-line-link:focus-visible,
	.m6ma-hero__link:focus-visible { outline: 2px solid Highlight; }
}
