/* Player kits — the club shirt at the corner of a face (players.php).

   --sa-kit   the shirt (club home colour, deepened so white reads on it)
   --sa-kit-2 the collar and cuffs (club trim)
   Without a club colour the shirt is the palette's own green. Flat: one fill,
   one trim, a hairline in the page background to lift it off the photo. */

.sa-kit-host {
	position: relative;
	display: inline-grid;
	flex: 0 0 auto;
	isolation: isolate;
}
.sa-kit-host > :first-child { grid-area: 1 / 1; }

/* A club-colour ring around the face, where the club is known. */
.sa-kit-host.has-colour > :first-child,
.sa-kit-tint {
	box-shadow: 0 0 0 2px var(--sa-kit);
}
/* The vote cards' stacked faces already draw a ring in the card colour; the
   kit takes it over. */
.sa-vc-av.sa-kit-tint { border-color: var(--sa-kit); box-shadow: none; }

.sa-kit {
	--sa-kit-size: 22px;
	position: absolute;
	right: -4px;
	bottom: -4px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: var(--sa-kit-size);
	height: var(--sa-kit-size);
	pointer-events: auto;
}
.sa-kit__svg {
	grid-area: 1 / 1;
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.sa-kit__body {
	fill: var(--sa-kit, var(--sa-vote, #00A36C));
	stroke: var(--sa-bg, #0A0E1A);
	stroke-width: 2.4;
	stroke-linejoin: round;
	paint-order: stroke;
}
.sa-kit__trim { fill: var(--sa-kit-2, rgba(255, 255, 255, .85)); }
.sa-kit__no {
	grid-area: 1 / 1;
	margin-top: 22%;
	font-family: "Clash Display", var(--sa-font-display, system-ui), sans-serif;
	font-size: calc(var(--sa-kit-size) * .4);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -.02em;
	color: #fff;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

/* Sizes. */
.sa-kit-host--lg .sa-kit { --sa-kit-size: 44px; right: -2px; bottom: -2px; }
.sa-kit-host--md .sa-kit { --sa-kit-size: 22px; right: -5px; bottom: -5px; }
.sa-kit-host--admin { display: inline-grid; width: 40px; height: 40px; }
.sa-kit-host--admin .sa-kit { --sa-kit-size: 40px; position: static; }

/* Surfaces whose avatar sized itself as 100% of its parent keep doing so: the
   host takes the parent's box. */
.sa-lb-ring > .sa-kit-host { display: grid; width: 100%; height: 100%; }
.sa-lb-ring > .sa-kit-host > .sa-lb-av { width: 100%; height: 100%; }
.sa-lb-ring > .sa-kit-host.has-colour > .sa-lb-av { box-shadow: none; } /* the ring is the Stage ring */

/* The Stage spotlight's own badges sit top-right and bottom-centre, so the
   shirt takes the bottom-right without touching either. */
.sa-lb-row.is-top .sa-kit-host--lg .sa-kit { right: -9%; bottom: 2%; }
/* #2/#3 sit on a 56px ring: a 22px shirt there reads as a speck. */
.sa-lb-ring > .sa-kit-host--md .sa-kit { --sa-kit-size: 26px; right: -9px; bottom: -7px; }

/* Head-to-Head: a 4:5 frame, so the shirt sits a little larger than a row's. */
.sa-duel__side > .sa-kit-host--md .sa-kit { --sa-kit-size: 26px; right: -7px; bottom: -6px; }

/* League table: a 34px face, so the shirt is the row size, tucked closer. */
.sa-lbt .sa-kit-host--md .sa-kit { --sa-kit-size: 20px; right: -6px; bottom: -6px; }
