/**
 * NWF League — front-end component styles.
 *
 * Every colour, radius and font resolves through a CSS custom property with a
 * hard fallback, so the components inherit the NWF theme's palette but still
 * look correct under any other theme.
 */

:where(.nwf-table-wrap, .nwf-fixtures, .nwf-team-grid-wrap, .nwf-bracket-wrap, .nwf-squad, .nwf-team-detail, .nwf-fixture-detail, .nwf-player-detail) {
	--nwf-ink: var(--wp--preset--color--ink, #0b1b3a);
	--nwf-ink-soft: var(--wp--preset--color--ink-soft, #4a5568);
	--nwf-brand: var(--wp--preset--color--brand, #1668e3);
	--nwf-brand-dark: var(--wp--preset--color--navy, #0b1b3a);
	--nwf-surface: var(--wp--preset--color--surface, #ffffff);
	--nwf-canvas: var(--wp--preset--color--canvas, #f4f6fa);
	--nwf-line: var(--wp--preset--color--line, #e1e6ef);
	--nwf-radius: 14px;
	--nwf-radius-sm: 8px;
	--nwf-shadow: 0 1px 2px rgba(11, 27, 58, 0.06), 0 8px 24px -12px rgba(11, 27, 58, 0.24);
	--nwf-display: var(--wp--preset--font-family--display, "Archivo", system-ui, sans-serif);

	color: var(--nwf-ink);
}

/* ------------------------------------------------------------- Primitives */

.nwf-section-title {
	margin: 0 0 1rem;
	font-family: var(--nwf-display);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}

.nwf-subsection-title {
	margin: 1.5rem 0 0.75rem;
	font-family: var(--nwf-display);
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--nwf-ink-soft);
}

.nwf-empty {
	margin: 0;
	padding: 2rem 1.5rem;
	background: var(--nwf-canvas);
	border: 1px dashed var(--nwf-line);
	border-radius: var(--nwf-radius);
	color: var(--nwf-ink-soft);
	text-align: center;
	font-size: 0.9375rem;
}

.nwf-note {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: var(--nwf-ink-soft);
}

.nwf-panel {
	padding: 1.25rem 1.5rem;
	background: var(--nwf-surface);
	border: 1px solid var(--nwf-line);
	border-radius: var(--nwf-radius);
}

.nwf-panel + .nwf-panel {
	margin-top: 1rem;
}

.nwf-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.1rem;
	border-radius: 999px;
	font-family: var(--nwf-display);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.01em;
	background: var(--nwf-brand);
	color: #fff;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.nwf-button:hover {
	background: var(--nwf-brand-dark);
	color: #fff;
}

.nwf-button--ghost {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--nwf-brand);
}

.nwf-button--ghost:hover {
	background: var(--nwf-brand);
	border-color: var(--nwf-brand);
	color: #fff;
}

.nwf-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nwf-chip, #1668e3) 12%, transparent);
	color: var(--nwf-chip, #1668e3);
	font-family: var(--nwf-display);
	font-size: 0.6875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.nwf-chip--alert {
	--nwf-chip: #b32d2e;
}

/* ----------------------------------------------------------------- Badges */

.nwf-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	overflow: hidden;
}

.nwf-badge img,
.nwf-badge__fallback {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Solid primary behind the initials — a two-tone split would put light text
   over the light half. The secondary kit colour becomes a ring instead, so
   both colours still read without ever fighting the lettering. */
.nwf-badge__fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--nwf-kit, #1668e3);
	box-shadow: inset 0 0 0 2px var(--nwf-kit-2, #ffffff), inset 0 0 0 3px rgba(11, 27, 58, 0.12);
	border-radius: 50%;
	color: var(--nwf-kit-text, #fff);
	font-family: var(--nwf-display);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

.nwf-badge--xs { width: 24px; height: 24px; font-size: 9px; }
.nwf-badge--sm { width: 40px; height: 40px; font-size: 13px; }
.nwf-badge--lg { width: 76px; height: 76px; font-size: 24px; }

/* ------------------------------------------------------------ Data tables */

.nwf-table-scroll {
	overflow-x: auto;
	background: var(--nwf-surface);
	border: 1px solid var(--nwf-line);
	border-radius: var(--nwf-radius);
	box-shadow: var(--nwf-shadow);
	-webkit-overflow-scrolling: touch;
}

.nwf-table {
	width: 100%;
	min-width: 34rem;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.nwf-table th,
.nwf-table td {
	padding: 0.7rem 0.4rem;
	text-align: center;
	border: 0;
	/* Stat columns must never wrap: "12" splitting over two lines makes the
	   whole table unreadable in a narrow sidebar. */
	white-space: nowrap;
}

.nwf-table thead th {
	position: sticky;
	top: 0;
	background: var(--nwf-brand-dark);
	color: #fff;
	font-family: var(--nwf-display);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
}

.nwf-table thead th abbr {
	text-decoration: none;
	border: 0;
	cursor: help;
}

.nwf-table tbody tr + tr {
	border-top: 1px solid var(--nwf-line);
}

.nwf-table tbody tr:hover {
	background: color-mix(in srgb, var(--nwf-brand) 5%, transparent);
}

.nwf-table tbody tr.is-highlighted {
	background: color-mix(in srgb, var(--nwf-brand) 10%, transparent);
}

/* Raised specificity so these beat the shared `.nwf-table th, .nwf-table td`
   rule above, which centres everything by default. */
.nwf-table .nwf-col-team {
	width: 99%;
	text-align: left;
	font-weight: 600;
	white-space: normal;
}

.nwf-table .nwf-col-pos {
	width: 3rem;
}

/* Body cells only — tinting the header cell too would wash out the white
   "Pts" label against the navy header row. */
.nwf-table tbody .nwf-col-pts {
	background: color-mix(in srgb, var(--nwf-brand) 6%, transparent);
	font-size: 1rem;
}

.nwf-pos {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 8px;
	background: var(--nwf-canvas);
	font-family: var(--nwf-display);
	font-size: 0.8125rem;
	font-weight: 800;
}

.nwf-pos.has-zone {
	position: relative;
	background: color-mix(in srgb, var(--nwf-zone, var(--nwf-brand)) 16%, transparent);
	color: var(--nwf-zone, var(--nwf-brand));
}

.nwf-pos.has-zone::before {
	content: "";
	position: absolute;
	inset-inline-start: -0.5rem;
	inset-block: 0;
	width: 3px;
	border-radius: 3px;
	background: var(--nwf-zone, var(--nwf-brand));
}

.nwf-team-cell {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: inherit;
	text-decoration: none;
}

.nwf-team-cell:hover .nwf-team-cell__name,
.nwf-team-cell:hover .nwf-team-cell__short {
	text-decoration: underline;
}

.nwf-team-cell__short {
	display: none;
	font-family: var(--nwf-display);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.nwf-adjustment {
	margin-inline-start: 0.25rem;
	color: #b32d2e;
	font-weight: 700;
	font-size: 0.6875rem;
}

/* Form guide */

.nwf-form {
	display: inline-flex;
	gap: 3px;
}

.nwf-form__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 5px;
	font-family: var(--nwf-display);
	font-size: 0.6875rem;
	font-weight: 800;
	color: #fff;
}

.nwf-form__pill.is-w { background: #1b7a3e; }
.nwf-form__pill.is-d { background: #8a94a6; }
.nwf-form__pill.is-l { background: #c0392b; }

.nwf-legend {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin: 0.85rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	color: var(--nwf-ink-soft);
}

.nwf-legend__item {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.nwf-legend__swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
}

/* --------------------------------------------------------------- Fixtures */

.nwf-fixtures__date {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin: 1.75rem 0 0.6rem;
	font-family: var(--nwf-display);
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--nwf-ink-soft);
}

/* The window a gameweek's fixtures must be played in. */
.nwf-fixtures__window {
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--nwf-brand) 10%, transparent);
	color: var(--nwf-brand);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: none;
}

.nwf-chip--gameweek {
	--nwf-chip: var(--nwf-ink-soft);
}

.nwf-fixture__time.is-tbc {
	font-style: italic;
}

.nwf-fixture__window {
	font-style: normal;
	opacity: 0.85;
}

.nwf-fixtures__date:first-child {
	margin-top: 0;
}

.nwf-fixtures__group {
	display: grid;
	gap: 0.6rem;
}

.nwf-fixture {
	position: relative;
	display: grid;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background: var(--nwf-surface);
	border: 1px solid var(--nwf-line);
	border-radius: var(--nwf-radius);
	box-shadow: var(--nwf-shadow);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.nwf-fixtures > .nwf-fixture + .nwf-fixture {
	margin-top: 0.6rem;
}

.nwf-fixture:hover {
	border-color: color-mix(in srgb, var(--nwf-brand) 40%, var(--nwf-line));
}

.nwf-fixture.is-postponed,
.nwf-fixture.is-cancelled {
	opacity: 0.75;
}

.nwf-fixture__meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
	font-size: 0.8125rem;
	color: var(--nwf-ink-soft);
}

.nwf-fixture__time {
	font-variant-numeric: tabular-nums;
}

/* Equal side tracks that never collapse below their own content. */
.nwf-fixture__body {
	display: grid;
	grid-template-columns: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
	gap: 0.75rem;
	align-items: start;
}

/* Grid rather than flex-wrap: a long club name must shrink beside its badge,
   not drop onto a line of its own. The scorer list then spans both columns.
   The name track floors at min-content so it can never be squeezed narrower
   than the word it holds. */
.nwf-fixture__side {
	display: grid;
	grid-template-columns: auto minmax(min-content, 1fr);
	gap: 0.25rem 0.65rem;
	align-items: center;
}

.nwf-fixture__side--away {
	grid-template-columns: minmax(min-content, 1fr) auto;
	text-align: right;
}

.nwf-fixture__side--away .nwf-badge {
	grid-column: 2;
	grid-row: 1;
}

.nwf-fixture__side--away .nwf-fixture__team {
	grid-column: 1;
	grid-row: 1;
}

/* Deliberately not `overflow-wrap: anywhere`. In the card's 1fr/auto/1fr grid
   that lets a track shrink to one character wide, so a short name stacks
   letter by letter on narrow screens. Breaking only at word boundaries keeps
   each side at least as wide as its longest word. */
.nwf-fixture__team {
	font-family: var(--nwf-display);
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: normal;
	word-break: normal;
}

.nwf-fixture__team-short {
	display: none;
}

.nwf-fixture__centre {
	display: grid;
	place-items: center;
	gap: 0.15rem;
	min-width: 4.5rem;
}

.nwf-score {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	font-family: var(--nwf-display);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.nwf-score__sep {
	color: var(--nwf-line);
}

.nwf-score__pens {
	margin: 0;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--nwf-ink-soft);
}

.nwf-versus {
	margin: 0;
	font-family: var(--nwf-display);
	font-size: 1rem;
	font-weight: 800;
	color: var(--nwf-line);
	text-transform: uppercase;
}

.nwf-scorers {
	margin: 0.3rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.75rem;
	color: var(--nwf-ink-soft);
	line-height: 1.5;
}

/* The scorer list belongs under the team name, spanning the full side. */
.nwf-fixture__side .nwf-scorers {
	grid-column: 1 / -1;
}

.nwf-fixture__side--away .nwf-scorers {
	text-align: right;
}

.nwf-scorers__minute {
	font-variant-numeric: tabular-nums;
}

.nwf-scorers__flag {
	font-size: 0.625rem;
	font-weight: 700;
	text-decoration: none;
	border: 0;
}

.nwf-fixture__venue {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding-top: 0.65rem;
	border-top: 1px solid var(--nwf-line);
	font-size: 0.8125rem;
	color: var(--nwf-ink-soft);
}

.nwf-fixture__venue a {
	position: relative;
	z-index: 2;
	color: inherit;
}

.nwf-fixture__postcode {
	font-variant-numeric: tabular-nums;
	opacity: 0.8;
}

/* A whole-card link that still leaves the venue link clickable. */
.nwf-fixture__link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--nwf-radius);
}

.nwf-fixture__link:focus-visible {
	outline: 3px solid var(--nwf-brand);
	outline-offset: 2px;
}

.nwf-icon--pin::before {
	content: "\1F4CD";
	font-size: 0.875em;
}

/* -------------------------------------------------------------- Team grid */

.nwf-team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 48rem) {
	.nwf-team-grid {
		grid-template-columns: repeat(var(--nwf-cols, 3), 1fr);
	}
}

.nwf-team-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	padding: 1.5rem 1.25rem 1.25rem;
	background: var(--nwf-surface);
	border: 1px solid var(--nwf-line);
	border-radius: var(--nwf-radius);
	box-shadow: var(--nwf-shadow);
	overflow: hidden;
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.nwf-team-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: var(--nwf-kit, var(--nwf-brand));
}

.nwf-team-card:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--nwf-kit, var(--nwf-brand)) 45%, var(--nwf-line));
}

.nwf-team-card__link {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	color: inherit;
	text-decoration: none;
}

.nwf-team-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.nwf-team-card__name {
	font-family: var(--nwf-display);
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.nwf-team-card__meta {
	display: grid;
	gap: 0.4rem;
	margin: 0;
	font-size: 0.8125rem;
}

.nwf-team-card__meta div {
	display: flex;
	gap: 0.4rem;
}

.nwf-team-card__meta dt {
	flex: 0 0 5.5rem;
	color: var(--nwf-ink-soft);
}

.nwf-team-card__meta dd {
	margin: 0;
	font-weight: 600;
}

/* Kit swatches */

.nwf-kits {
	display: flex;
	gap: 1rem;
	margin: auto 0 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid var(--nwf-line);
	list-style: none;
}

.nwf-kits__item {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.75rem;
	color: var(--nwf-ink-soft);
}

.nwf-kits__swatch {
	width: 20px;
	height: 20px;
	border: 1px solid rgba(11, 27, 58, 0.15);
	border-radius: 5px;
	background: linear-gradient(115deg, var(--nwf-kit-1) 0 50%, var(--nwf-kit-2) 50% 100%);
}

/* -------------------------------------------------------------- Knockouts */

.nwf-bracket {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
	gap: 1rem;
	align-items: start;
}

.nwf-bracket__round {
	padding: 1rem;
	background: var(--nwf-surface);
	border: 1px solid var(--nwf-line);
	border-top: 4px solid var(--nwf-round, var(--nwf-brand));
	border-radius: var(--nwf-radius);
	box-shadow: var(--nwf-shadow);
}

.nwf-bracket__title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0 0 0.85rem;
	font-family: var(--nwf-display);
	font-size: 0.875rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nwf-round, var(--nwf-brand));
}

.nwf-bracket__legs {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	opacity: 0.75;
}

.nwf-bracket__ties {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nwf-tie {
	padding: 0.6rem 0.75rem;
	background: var(--nwf-canvas);
	border-radius: var(--nwf-radius-sm);
}

.nwf-tie__team {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0;
	font-size: 0.875rem;
}

.nwf-tie__team.is-winner {
	font-weight: 800;
}

.nwf-tie__team.is-winner .nwf-tie__name::after {
	content: "\2713";
	margin-inline-start: 0.35rem;
	color: #1b7a3e;
}

.nwf-tie__name {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

.nwf-tie__agg {
	font-family: var(--nwf-display);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.nwf-tie__detail {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin: 0.5rem 0 0;
	padding-top: 0.5rem;
	border-top: 1px solid var(--nwf-line);
	font-size: 0.6875rem;
	color: var(--nwf-ink-soft);
}

.nwf-tie__leg-link {
	color: var(--nwf-brand);
	text-decoration: none;
	font-weight: 600;
}

.nwf-tie__leg-link:hover {
	text-decoration: underline;
}

.nwf-aggregate {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
	font-size: 0.875rem;
}

.nwf-aggregate strong {
	font-family: var(--nwf-display);
	font-size: 1.25rem;
	font-variant-numeric: tabular-nums;
}

.nwf-leg-links {
	display: flex;
	gap: 0.75rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
}

/* ------------------------------------------------------------------ Squad */

.nwf-squad__group + .nwf-squad__group {
	margin-top: 1.5rem;
}

.nwf-squad__heading {
	margin: 0 0 0.75rem;
	font-family: var(--nwf-display);
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--nwf-ink-soft);
}

.nwf-squad__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nwf-player__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0.75rem;
	background: var(--nwf-surface);
	border: 1px solid var(--nwf-line);
	border-radius: var(--nwf-radius-sm);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.nwf-player__link:hover {
	border-color: color-mix(in srgb, var(--nwf-brand) 45%, var(--nwf-line));
}

.nwf-player__number {
	flex: 0 0 1.75rem;
	font-family: var(--nwf-display);
	font-size: 1rem;
	font-weight: 800;
	text-align: center;
	color: var(--nwf-brand);
	font-variant-numeric: tabular-nums;
}

.nwf-player__photo,
.nwf-player__photo img,
.nwf-player__photo-fallback {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
}

.nwf-player__photo-fallback {
	display: block;
	background: var(--nwf-canvas);
}

.nwf-player__name {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.nwf-player__captain {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	margin-inline-start: 0.3rem;
	border-radius: 3px;
	background: var(--nwf-brand);
	color: #fff;
	font-size: 0.5625rem;
	font-weight: 800;
	text-decoration: none;
	border: 0;
	vertical-align: middle;
}

.nwf-player__stats {
	display: flex;
	gap: 0.6rem;
	font-size: 0.6875rem;
	color: var(--nwf-ink-soft);
	text-align: center;
}

.nwf-player__stat strong {
	display: block;
	font-family: var(--nwf-display);
	font-size: 0.9375rem;
	color: var(--nwf-ink);
}

/* --------------------------------------------------- Team / player detail */

.nwf-stat-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
	gap: 1px;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	background: var(--nwf-line);
	border: 1px solid var(--nwf-line);
	border-radius: var(--nwf-radius);
	overflow: hidden;
}

.nwf-stat-strip li {
	display: grid;
	gap: 0.15rem;
	padding: 1rem 0.5rem;
	background: var(--nwf-surface);
	text-align: center;
}

.nwf-stat-strip__value {
	font-family: var(--nwf-display);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.nwf-stat-strip__label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nwf-ink-soft);
}

.nwf-team-detail__cols,
.nwf-fixture-detail__cols {
	display: grid;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 52rem) {
	.nwf-team-detail__cols {
		grid-template-columns: 1.2fr 1fr;
	}

	.nwf-fixture-detail__cols {
		grid-template-columns: 1.4fr 1fr;
	}
}

.nwf-facts {
	display: grid;
	gap: 0.5rem;
	margin: 0;
}

.nwf-facts__row {
	display: flex;
	gap: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--nwf-line);
}

.nwf-facts dt {
	flex: 0 0 9rem;
	color: var(--nwf-ink-soft);
	font-size: 0.875rem;
}

.nwf-facts dd {
	margin: 0;
	font-weight: 600;
}

.nwf-address {
	margin: 0 0 1rem;
	font-style: normal;
	line-height: 1.7;
}

.nwf-address__postcode {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

/* --------------------------------------------------------------- Timeline */

.nwf-timeline {
	display: grid;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nwf-timeline__item {
	display: grid;
	grid-template-columns: 3rem 1.5rem 1fr;
	gap: 0.6rem;
	align-items: center;
	padding: 0.55rem 0.75rem;
	background: var(--nwf-surface);
	border: 1px solid var(--nwf-line);
	border-inline-start: 3px solid var(--nwf-brand);
	border-radius: var(--nwf-radius-sm);
}

.nwf-timeline__item.is-away {
	border-inline-start-color: var(--nwf-ink-soft);
}

.nwf-timeline__minute {
	font-family: var(--nwf-display);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--nwf-ink-soft);
}

.nwf-timeline__type {
	display: block;
	font-size: 0.75rem;
	color: var(--nwf-ink-soft);
}

.nwf-timeline__note {
	display: block;
	font-size: 0.75rem;
	font-style: italic;
	color: var(--nwf-ink-soft);
}

.nwf-icon--goal::before { content: "\26BD"; }
.nwf-icon--own-goal::before { content: "\26BD"; opacity: 0.5; }
.nwf-icon--assist::before { content: "\1F45F"; }
.nwf-icon--yellow::before { content: "\1F7E8"; }
.nwf-icon--second-yellow::before { content: "\1F7E8"; }
.nwf-icon--red::before { content: "\1F7E5"; }
.nwf-icon--miss::before { content: "\274C"; }
.nwf-icon--sub-on::before { content: "\2B06"; }
.nwf-icon--sub-off::before { content: "\2B07"; }

/* ------------------------------------------------------- Narrow viewports */

@media (max-width: 40rem) {
	.nwf-table {
		min-width: 0;
	}

	.nwf-table th,
	.nwf-table td {
		padding: 0.6rem 0.3rem;
		font-size: 0.875rem;
	}

	.nwf-team-cell__name {
		display: none;
	}

	.nwf-team-cell__short {
		display: inline;
	}

	.nwf-col-form {
		display: none;
	}

	.nwf-fixture__team-full {
		display: none;
	}

	.nwf-fixture__team-short {
		display: inline;
	}

	/* Give the two sides room by shrinking the scoreline and its gutter. */
	.nwf-fixture__centre {
		min-width: 3rem;
	}

	.nwf-score {
		font-size: 1.375rem;
	}

	.nwf-scorers {
		font-size: 0.6875rem;
	}

	.nwf-facts__row {
		flex-direction: column;
		gap: 0.15rem;
	}

	.nwf-player__stats {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nwf-team-card,
	.nwf-fixture,
	.nwf-button {
		transition: none;
	}

	.nwf-team-card:hover {
		transform: none;
	}
}
