/* FY Kit fixtures: crests and the parts the Match card, Fixtures, League table
 * and Squad blocks share. Themes restyle through the variables:
 *   --fyek-club-a, --fyek-club-b   our colours (drawn crest, highlights)
 *   --fyek-crest-a, --fyek-crest-b a drawn crest's colours (set per club)
 *   --fyek-win, --fyek-draw, --fyek-loss  result colours
 *   --fyek-num-font  the face for numbers (scores, shirt numbers) */
:root {
	--fyek-club-a: var(--wp--preset--color--club-a, var(--fyek-accent));
	--fyek-club-b: var(--wp--preset--color--club-b, var(--fyek-paper));
	--fyek-win: #1d7a45;
	--fyek-draw: #8a8f98;
	--fyek-loss: #b3261e;
	--fyek-num-font: var(--fyek-display, inherit);
}
:where(.fyek-match, .fyek-fixtures, .fyek-table, .fyek-squad) { box-sizing: border-box; }
:where(.fyek-match, .fyek-fixtures, .fyek-table, .fyek-squad) *,
:where(.fyek-match, .fyek-fixtures, .fyek-table, .fyek-squad) *::before,
:where(.fyek-match, .fyek-fixtures, .fyek-table, .fyek-squad) *::after { box-sizing: inherit; }

.fyek-crest { display: inline-block; flex: none; width: var(--fyek-crest-size, 3em); aspect-ratio: 100 / 104; line-height: 0; }
.fyek-crest svg, .fyek-crest img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fyek-crest.is-us { --fyek-crest-a: var(--fyek-club-a); --fyek-crest-b: var(--fyek-club-b); }
.fyek-crest text { font-family: var(--fyek-num-font, inherit); }

/* Short names stand in for long ones where space is tight. */
:where(.fyek-match, .fyek-fixtures) [class$="__short"] { display: none; }

.fyek-fixtures .screen-reader-text, .fyek-table .screen-reader-text, .fyek-squad .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
