/* A player's profile (/players/, scripts/player.js; UV's combined design,
 * 5 Nov). Loaded after league.css, whose .cp-views pill (the Profile · Head
 * to head toggle and the period) and .team-pic it uses. Tokens only. */

.player-page { padding-top: var(--space-4); }
/* No outer content card (UV, 20 Nov): the player's name, buttons and tabs sit
   directly on the page's background. The card's own raised shadow is dropped; its
   padding and width stay, so everything keeps its place. */
.tdc-card.player-page { box-shadow: none; background: none; }
.player-page .muted { color: var(--text-muted); }

/* ── Buttons: none of the card's button look (.tdc-card button stretches and
 * capitalises), only their own ── */
.tdc-card .pp-btn,
.tdc-card .pp-link {
	width: auto;
	margin: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	line-height: normal;
	cursor: pointer;
}

/* ── The hero ── */
.pp-hero { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
/* The picture and the display name in one centred row, the full name centred
 * below them (UV, 19 Nov). player.js (sizePic) sets the picture to the display
 * name's height; a long display name wraps beside the picture. */
.pp-id { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); width: 100%; }
.pp-idrow { display: flex; align-items: center; justify-content: center; gap: var(--space-3); max-width: 100%; }
.pp-idrow h1 { min-width: 0; text-align: left; }
/* The full name small under the row, over the card's paragraph margin and line height. */
.tdc-card .pp-id .pp-full { margin: 0; font-size: 0.9rem; line-height: 1.3; text-align: left; }
/* The two name rows beside the one picture (UV, 21 Nov), left-aligned; the picture is as tall as both. */
.pp-names { display: flex; flex-direction: column; justify-content: center; gap: var(--space-1); min-width: 0; }
.pp-pic-wrap { position: relative; flex: none; }
/* A plain circle (UV, 7 Nov: no ring round a picture). Narrower on the narrowest
   screens, where half the card is less than its width. */
.pp-pic {
	width: var(--pp-pic-size, min(8.25rem, 38vw));
	height: var(--pp-pic-size, min(8.25rem, 38vw));
	border-radius: var(--radius-round);
	box-shadow: var(--shadow-pic);
}
.pp-pic-inner {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: var(--radius-round);
	overflow: hidden;
	color: var(--text-primary);
	font-size: calc(var(--pp-pic-size, 8.25rem) * 0.33);   /* the initials with the picture */
	font-weight: 700;
}
.pp-pic-inner img { width: 100%; height: 100%; object-fit: cover; }
/* A tick on a photo: on a small solid disc, or it could not be seen on every picture. */
.pp-verified {
	position: absolute;
	/* Centred on the circle's rim at 4:30 (14.6% in from the right and the foot of the
	 * picture), half the picture across, so it sits on the edge and keeps its place and
	 * its proportion at any picture size. */
	right: calc(14.6% - 25%);
	bottom: calc(14.6% - 25%);
	display: grid;
	place-items: center;
	width: 50%;
	height: 50%;
	border-radius: var(--radius-round);
	background: var(--bg-base);
	box-shadow: var(--shadow-pic);
}
.pp-verified[hidden] { display: none; }
/* The rating badge (UV, 28 Nov): a small pill on the rim at 7:30, opposite the tick,
 * centred on the rim like it and sized with the picture. */
.pp-rating {
	position: absolute;
	left: 14.6%;
	bottom: 14.6%;
	transform: translate(-50%, 50%);
	padding: 0.15em 0.5em;
	border-radius: var(--radius-round);
	background: var(--bg-base);
	box-shadow: var(--shadow-pic);
	color: var(--color-primary);
	font-size: max(0.75rem, calc(var(--pp-pic-size, 8.25rem) * 0.13));   /* never under 12px: readable on a small picture */
	font-weight: 700;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	pointer-events: none;
}
.pp-rating[hidden] { display: none; }
.pp-verified svg { width: 70%; height: 70%; fill: none; stroke: var(--color-primary); stroke-width: var(--control-border); stroke-linecap: round; stroke-linejoin: round; }
.pp-verified svg * { vector-effect: non-scaling-stroke; }
.tdc-card .pp-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.725rem; line-height: 1.32; overflow-wrap: normal; }   /* a league page's heading line size, 1.5 times (UV, 19 Nov) */
.pp-full { margin: 0; }
.pp-full[hidden] { display: none; }

/* ── The large picture (player.js, openZoom) ──
 * The hero's plain circle at up to 512px, the size pictures are stored at. */
.pp-pic-zoomable { cursor: zoom-in; }
.pp-pic-zoomable:focus-visible { outline: var(--control-border) solid var(--text-primary); outline-offset: 3px; }
.pp-pic.pp-pic-away { visibility: hidden; }
.pp-zoom {
	--zoom-size: min(80vmin, 32rem);   /* 32rem: 512px */
	position: fixed;
	inset: 0;
	z-index: 500;
	display: grid;
	place-items: center;
	cursor: zoom-out;
}
.pp-zoom-shade {
	position: absolute;
	inset: 0;
	background: color-mix(in srgb, var(--bg-base) 75%, transparent);
	-webkit-backdrop-filter: blur(var(--loader-blur));
	backdrop-filter: blur(var(--loader-blur));
}
.pp-zoom-pic {
	position: relative;
	width: var(--zoom-size);
	height: var(--zoom-size);
	border-radius: var(--radius-round);
	box-shadow: var(--shadow-pic);
	will-change: transform;
}
.pp-zoom-inner {
	width: 100%;
	height: 100%;
	border-radius: var(--radius-round);
	overflow: hidden;
}
.pp-zoom-inner img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Challenge · Follow · Share · More: icons alone (ring-status.js, status.css; UV,
 * 7 Nov: no rings), each named by its title and label (UV, 5 Nov). Challenge, and
 * a player you follow, are green, the others cream; under the pointer they swap,
 * faded. On your own profile only Share and More. */
.pp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-top: var(--space-4); }
.pp-link-note { text-align: center; margin-top: var(--space-3); }
.tdc-card button.pp-icon {
	flex: none;
	width: 3rem;
	min-height: 0;
	height: 3rem;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: var(--radius-round);
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.tdc-card button.pp-icon:active { box-shadow: none; }
.tdc-card button.pp-icon:focus-visible { outline: none; }
.pp-icon .tdc-ring {
	color: var(--text-primary);
	transition: color 0.2s ease;
}
/* A cross stays red. */
.pp-icon .tdc-ring .mark:not(.mark-cross, .mark-dot) { stroke: currentColor; }
.pp-icon-primary .tdc-ring,
.pp-icon:hover .tdc-ring,
.pp-icon:focus-visible .tdc-ring { color: var(--color-primary); }
.pp-icon-primary:hover .tdc-ring,
.pp-icon-primary:focus-visible .tdc-ring { color: var(--text-primary); }
.pp-icon .sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.tdc-card .pp-btn { flex: 1; }
.tdc-card .pp-btn-primary { background: var(--nm-light-colour); color: var(--color-on-primary); }
.pp-hero [data-note],
.pp-section [data-note] { margin: var(--space-2) 0 0; text-align: center; }
[data-note]:empty { display: none; }

/* ── The toggle under the hero and the period: the site's tabs ──
 * A sunken pill as tall as a field (design.css .league-nav), with the thumb every tab
 * bar has (tdc-controls.js). The tabs are of one width, and scroll inside the pill when
 * they don't fit. */
.player-page .cp-views {
	position: relative;
	display: grid;
	/* Two tabs since Head to head went (UV, 20 Nov): with three columns the pair
	   sat to the left of an empty third. */
	grid-template-columns: repeat(2, minmax(6.5rem, 1fr));
	gap: 0;
	box-sizing: border-box;
	width: 100%;
	height: var(--nm-field);
	padding: var(--space-1);
	border: 0;
	border-radius: var(--radius-pill);
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	box-shadow: var(--nm-sunken);
}
.player-page .cp-views::-webkit-scrollbar { display: none; }
.tdc-card.player-page .cp-views button.cp-view {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 0;
	height: 100%;
	margin: 0;
	padding: 0 var(--space-2);
	background: none;
	color: var(--text-primary);
	font-size: 1rem;
	font-weight: 600;
	box-shadow: none;
}
.tdc-card.player-page .cp-views button.cp-view:focus-visible { outline: 2px solid var(--nm-light-colour); outline-offset: -2px; }
.pp-views { margin: var(--space-5) auto 0; }
/* The match tabs (UV, 20 Nov): four across, fitted to the width rather than scrolling. */
.player-page .cp-views.pp-mtabs { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--space-3) auto 0; }
.tdc-card.player-page .pp-mtabs button.cp-view { font-size: 0.8rem; padding: 0 var(--space-1); }

/* ── The tabs and their content in one sunken pill (UV, 19 Nov) ──
 * The pill is the box; the tab row is its top, no sunken shadow of its own (the
 * thumb is still raised), and the chosen tab's content sits inside it. Compare
 * no longer takes back the card's padding: the pill is its edge. */
.pp-tabs {
	/* As wide as the outer card was (UV, 20 Nov): out to where its padding began,
	   the same amounts design.css gives the card (less on a phone). */
	margin-right: calc(-1 * var(--space-5));
	margin-left: calc(-1 * var(--space-5));
	margin-top: var(--space-5);
	padding: var(--space-1) var(--space-1) var(--space-4);
	border-radius: var(--nm-field-radius);
	box-shadow: var(--nm-sunken);
}
@media (max-width: 36rem) {   /* the card's phone padding (design.css, UV 9 Nov) */
	.pp-tabs { margin-right: calc(-1 * var(--space-3)); margin-left: calc(-1 * var(--space-3)); }
}
.player-page .pp-tabs > .pp-views { margin: 0 auto; box-shadow: none; }   /* centred (UV, 20 Nov) */
.player-page .pp-tabs > .pp-views[hidden] { display: none; }
.pp-tabs > [id^="pp-tab-"] { padding: 0 var(--space-3); }
.pp-tabs > [id^="pp-tab-"][hidden] { display: none; }
.pp-tabs > #pp-tab-cmp { padding: 0; }
.pp-tabs .pp-c { margin: 0; }
/* The first heading under the tabs sits closer than a section on its own would. */
.pp-tabs > [id^="pp-tab-"] > .pp-section:first-child { margin-top: var(--space-5); }
.pp-tabs .pp-c-body > .pp-c-h:first-child { margin-top: var(--space-4); }

/* ── Sections ── */
.pp-section { margin-top: var(--space-6); }
.tdc-card .pp-section h2 { margin: 0 0 var(--space-1); font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: var(--color-primary); }
.tdc-card .pp-h3 { margin: var(--space-5) 0 var(--space-1); font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; color: var(--color-primary); text-align: center; }
.pp-sub { margin: 0; font-size: 0.85rem; text-align: center; }
.pp-empty { margin: var(--space-3) 0; text-align: center; }
.pp-primary { color: var(--color-primary); }
.pp-warning { color: var(--color-warning); }
.tdc-card .pp-link,
.tdc-card button.pp-link:active { box-shadow: none; }
.tdc-card .pp-link {
	display: block;
	min-height: 0;
	margin: var(--space-3) auto 0;
	padding: var(--space-1) var(--space-2);
	border: 0;
	background: none;
	color: var(--color-primary);
	font-size: 1rem;
	font-weight: 400;
	text-align: center;
	text-decoration: underline;
}
.tdc-card dd .pp-link { display: inline; margin: 0; padding: 0; }

/* Form: a row a frame, no pill (UV, 20 Nov): the dot exactly in the middle, the
   opponent beside it, a grey line between rows. */
.pp-form { display: flex; flex-direction: column; margin-top: var(--space-3); }
.pp-form-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-2);
	border-bottom: 1px solid var(--border-color);
}
.pp-form-row:last-child { border-bottom: 0; }
/* Compare (UV, 20 Nov): Opp | Result on your side, Result | Opp on theirs, so the
   two dots meet at the line down the middle. */
/* On the Profile tab the names are centred in the half to the right of the dots (UV, 20 Nov). */
.pp-form:not([data-side]) .pp-form-opp { text-align: center; }
.pp-form-row.is-mine { grid-template-columns: minmax(0, 1fr) auto; }
.pp-streak { margin: var(--space-3) 0 0; text-align: center; }
.pp-streak:empty { display: none; }
/* On Compare each streak sits against the middle line, as the dots do (UV, 20 Nov). */
/* One row across both halves (UV, 28 Nov): "Streak" in the middle, each number on its
 * player's side, so one player with no frames ("–") never moves the other's. */
.pp-c-streak { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-3); align-items: baseline; }
.pp-c-streak > :first-child { text-align: right; }
.pp-c-streak > :last-child { text-align: left; }
.pp-form-row.is-mine .pp-form-opp { text-align: right; }
.pp-form-row.is-them { grid-template-columns: auto minmax(0, 1fr); }
/* A line down the middle with an arrowhead at the foot: time runs down, newest at
   the bottom (UV, 20 Nov). On Profile it runs through the dots; on Compare it is
   the line between the two halves, drawn on the right-hand half's left edge. */
.pp-form { position: relative; }
.pp-form::before,
.pp-form::after { content: ''; position: absolute; left: 50%; pointer-events: none; }
.pp-form::before { top: 0; bottom: 0; width: 1px; margin-left: -0.5px; background: var(--text-muted); opacity: 0.6; }
.pp-form::after {
	bottom: -1px;
	margin-left: -5px;
	border-top: 7px solid var(--text-muted);
	border-right: 5px solid transparent;
	border-left: 5px solid transparent;
	opacity: 0.6;
}
.pp-form[data-side="mine"]::before,
.pp-form[data-side="mine"]::after { display: none; }
.pp-form[data-side="them"]::before,
.pp-form[data-side="them"]::after { left: 0; }
/* On Profile the line passes behind the dots, so an empty ring is filled to hide it. */
.pp-form:not([data-side]) .pp-dot-l { background: var(--bg-base); position: relative; z-index: 1; }
.pp-form:not([data-side]) .pp-dot { position: relative; z-index: 1; }
.pp-form-opp { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85rem; }
.pp-dot { flex: none; width: 0.875rem; height: 0.875rem; border-radius: var(--radius-round); box-sizing: border-box; }
.pp-dot-w { background: var(--color-primary); box-shadow: 0 0 8px color-mix(in srgb, var(--color-primary) 55%, transparent); }
/* A loss is the scorecard's cross, not an empty ring (UV, 20 Nov): the same two
   thin muted strokes as .h2h-mark.is-lost (league.css), in the dot's box. */
.pp-dot-l { display: inline-flex; align-items: center; justify-content: center; }
.pp-dot-l::before {
	content: '';
	width: 0.6rem;
	height: 0.6rem;
	--x-line: transparent calc(50% - 0.75px), var(--text-muted) calc(50% - 0.75px), var(--text-muted) calc(50% + 0.75px), transparent calc(50% + 0.75px);
	background: linear-gradient(45deg, var(--x-line)), linear-gradient(-45deg, var(--x-line));
}
.pp-dot-d { border: 2px solid var(--color-primary); background: linear-gradient(90deg, var(--color-primary) 50%, transparent 50%); }
/* Form: a frame they broke wears a yellow ring, a gap from the dot: it says something,
   as the words above the dots tell, and is not a ring round an icon. */
.pp-dot-broke { outline: 2px solid var(--color-warning); outline-offset: 3px; }

/* Leagues & teams */
/* The player search, /players/ with nobody in the address. The dots have a
   small spot of their own (as .group-dots, dots.css): on the field they would
   dim it under the person's typing. */
.pp-find-field { position: relative; }
.pp-find-dots {
	position: absolute;
	right: 2rem;
	top: 50%;
	width: var(--group-dots-size);
	height: var(--group-dots-size);
	transform: translateY(-50%);
	box-sizing: border-box;
	border: var(--group-dots-stroke) solid transparent;
	border-radius: var(--radius-round);
	color: var(--color-primary);
	pointer-events: none;
}
.pp-find-results { margin-top: var(--space-2); }
/* The feed's Show more, centred under its rows. */
.pp-feed-more { display: flex; justify-content: center; margin-top: var(--space-3); }
/* Whom you follow: the row is the link, the ring beside it stops following. */
.pp-following-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	border-bottom: 1px solid var(--border-color);
}
.pp-following-row .pp-row { flex: 1; min-width: 0; border-bottom: none; }
.pp-following-row:last-child { border-bottom: 0; }
.pp-following-empty { text-align: center; }

/* Something to press stands up from the card; there are only ever a few of these. */
.pp-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-3); }
.pp-team {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--nm-field-radius);
	/* No raised pill round a league card (UV, 20 Nov): its names and star sit on the tab. */
	color: var(--text-primary);
	text-decoration: none;
}
.pp-team:hover,
.pp-team:focus-visible { background: var(--hover-wash); outline: none; }
.pp-team { flex-wrap: wrap; }
/* A league's star (UV, 19 Nov), under the row's names. */
.pp-team-star { flex: 0 0 100%; }
.pp-team-star .star-svg { max-width: 19rem; }
/* A league both players are in, on Compare (UV, 20 Nov): one card across both
   halves, the league's name, each side's team and place, then the one star. */
/* Stacked as plain blocks, not a column flex: a flex item holding an SVG sized in
   per cent is measured narrower than it is laid out, so the star was taller than
   its box and spilled out of the card (seen 20 Nov). */
/* Grey lines between league cards (UV, 20 Nov), as there is no pill round them: a
   line between cards one above the other, a line along the foot of a combined
   card on Compare, and a line down the middle where the two players' own
   leagues stand in their two columns. */
.pp-list:has(> .pp-team) { gap: 0; }
.pp-list > .pp-team + .pp-team { border-top: 1px solid var(--border-color); border-radius: 0; }
.pp-team-shared { border-bottom: 1px solid var(--border-color); border-radius: 0; }
.pp-c-body > [data-side][data-part="teams"] { align-self: stretch; }
.pp-c-body:has(> [data-part="teams"] .pp-team) > [data-side="them"][data-part="teams"] { border-left: 1px solid var(--border-color); }
.pp-team-shared { display: block; }
.pp-team-shared > * + * { margin-top: var(--space-3); }
.pp-shared-head { display: flex; flex-direction: column; text-align: center; }
.pp-shared-sides { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.pp-shared-side { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
/* The extra class beats design.css's `html :is(.team-name, … .sd-team-row .sd-name, .pp-team-name)`, which makes every team name blue. */
/* A team's name on a league card is grey (UV, 20 Nov), on the rows and on the shared
   card (it was green and cream there, to match the lines). The league's own name
   on the shared card stays as it was. */
/* A league's name on a league card: the display face, cream, the size of the display
   name on the pinned Compare cards (0.3375 of 2.75rem), UV 20 Nov. */
.pp-league-name { font-family: var(--font-display); font-size: calc(2.75rem * 0.3375); font-weight: 400; line-height: 1.32; color: var(--text-primary); overflow-wrap: anywhere; }
.tdc-card .pp-team-names .pp-team-name,
.tdc-card .pp-shared-side .pp-team-name { color: var(--text-muted); }
.pp-team-shared .pp-team-star { display: block; }
.pp-team-shared .pp-team-star .star-svg { max-width: 26rem; }
/* A league's name with its shield and a team's with its hexagon beside it (UV, 21 Nov;
   player.js named). The picture is first in the markup and stands on the name's
   inside: left of it on the Profile tab and in the other player's half, right of it
   in yours (toward the middle line, as the pinned heads face it). Each box is 2rem tall. */
.pp-nm { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.pp-nm .pp-nm-pic, .pp-nm .pp-lg-pic { flex: none; height: 2rem; }
.pp-nm .pp-nm-pic { width: 2rem; border-radius: 0; }
.pp-nm .pp-lg-pic { width: 2rem; }   /* the shield is narrower; it stands centred in the hexagon's width so both names start together */
.pp-team-names { gap: var(--space-1); }
/* Centred, as the shared card is (UV, 21 Nov): the league's shield on the left of its name always,
   a team's hexagon on the left too, except on the shared card (right of yours, left of theirs). */
.pp-team-names { align-items: center; text-align: center; }
.pp-nm { justify-content: center; }
/* On a card that is not the shared one, pictures are always on the left (UV, 21 Nov); only the shared card puts yours on the right. */
.pp-shared-head .pp-nm { justify-content: center; }
.pp-shared-side { align-items: center; }
.pp-shared-side .pp-nm { justify-content: center; }
.pp-shared-side.is-mine .pp-nm { flex-direction: row-reverse; }
.pp-team-names,
.pp-row-names { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.pp-team-name,
.pp-row-name { font-weight: 700; overflow-wrap: anywhere; }
.pp-team-sub,
.pp-row-sub { font-size: 0.85rem; }
.pp-team-right { display: flex; flex-direction: column; align-items: flex-end; }
.pp-team-role { font-size: 0.85rem; }

/* A list of matches or people: one sunken panel holds the rows, a hairline between
   them, since a shadow on every row would be repainted at every move of the light. */
[data-part="matches"]:has(.pp-row),
#pp-feed:has(.pp-row),
#pp-find-results:has(.pp-row),
#pp-c-pick-results:has(.pp-row),
#pp-following:has(.pp-row) {
	padding: var(--space-2) var(--space-4);
	border-radius: var(--nm-field-radius);
	box-shadow: var(--nm-sunken);
}
.pp-row:last-child { border-bottom: 0; }

/* A match row (the lists of matches, the feed, the search and the follows) */
.pp-row {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);
	text-decoration: none;
}
.pp-row:hover,
.pp-row:focus-visible { background: var(--hover-wash); outline: none; }
.pp-person-pic,
.pp-row-pic {
	flex: none;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-round);
	overflow: hidden;
	color: var(--text-primary);
	font-size: 0.85rem;
	font-weight: 700;
	box-shadow: var(--shadow-pic);
}
.pp-person-pic img { width: 100%; height: 100%; object-fit: cover; }
.pp-score { font-family: var(--font-display); line-height: 1.32; font-size: 1.4rem; white-space: nowrap; }
.pp-score .muted { font-size: inherit; }
/* A score's ":" (UV, 17 Nov): grey, in the numbers' face and size, an even gap each side. */
.pp-colon { display: inline-block; margin: 0 0.25em; font-size: inherit; }
/* A match's state: a strip down the row's left, the fixtures' colours
 * (league.css .fx-state-*), its name for a screen reader and on hover. */
.pp-state {
	flex: none;
	align-self: stretch;
	width: var(--space-1);
	border-radius: var(--radius-pill);
	background: var(--strip-color, transparent);
	box-shadow: var(--strip-glow, none);
}
.pp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* A list's heading with its page number under it: the heading stays centred, as every
 * heading on the page, and the number, as tall and wide as a field now, has no room
 * beside it in a card this narrow. */
.pp-head { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: var(--space-2); }
.tdc-card .pp-head h2 { margin: 0; }
.tdc-card .pp-head .pp-h3 { margin: 0; }
.pp-head + div { margin-top: var(--space-2); }
.pp-section .pp-head:not(:first-of-type) { margin-top: var(--space-5); }
.pp-section h2 + .pp-head { margin-top: var(--space-3); }

/* About */
.pp-about { display: grid; grid-template-columns: auto 1fr; margin: var(--space-2) 0 0; font-size: 1rem; }
.pp-about dt,
.pp-about dd { margin: 0; padding: var(--space-3) 0; border-bottom: 1px solid var(--border-color); }
.pp-about dd { text-align: right; }
.pp-about a { color: var(--color-primary); }


/* ── Compare (UV, 5 Nov) ──
 * The two profiles side by side, you on the left, on the card itself: no sunken
 * halves (UV, 17 Nov). Edge to edge of the card (its sides taken back,
 * design.css), so each half has room. */
.pp-c { position: relative; margin: var(--space-5) calc(-1 * var(--space-5)) 0; }
@media (max-width: 36rem) {   /* the card's phone padding (design.css, UV 9 Nov) */
	.pp-c { margin-right: calc(-1 * var(--space-3)); margin-left: calc(-1 * var(--space-3)); }
}

/* Each player's picture and names head their half and stay at the top as
 * the page scrolls (UV, 5 Nov; kept without a sunken pill, UV 17 Nov): just
 * under the nav while it shows, and once it has slid away just under the phone's
 * island or notch (the top inset, --nav-top; 0 where there is none), not at the
 * very top where the island covered them (UV, 20 Nov). Nothing is drawn above
 * them: the space is transparent and the page scrolls behind it. */
.pp-c-head {
	position: sticky;
	top: var(--nav-top);
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	/* Each player's picture and names sit on a raised card (UV, 20 Nov); the room
	   round them is for the shadows. */
	gap: var(--space-3);
	padding: var(--space-2) var(--space-3) var(--space-3);
	/* No background of its own (UV, 20 Nov): only the two cards are solid. */
	transition: top var(--nav-slide, 0.3s) ease;
}
body:has(.site-nav:not(.is-hidden)) .pp-c-head { top: var(--nav-total); }
@media (prefers-reduced-motion: reduce) { .pp-c-head { transition: none; } }
.pp-c-who { position: relative; display: flex; align-items: center; min-width: 0; height: 4.5rem; padding: 0 var(--space-3); box-sizing: border-box; border-radius: var(--nm-field-radius); box-shadow: var(--nm-sunken); background: var(--bg-base); }
.pp-c-who[data-side="mine"] { justify-content: flex-end; }
.pp-c-who[data-side="mine"]:active { box-shadow: var(--nm-pressed); }   /* a press, deeper (UV, 4 Dec: "Deeper inset while pressed") */
/* Your card is the site's green with dark text (UV, 20 Nov). */
.pp-c-who[data-side="mine"] { background: var(--color-primary); }
.pp-c-who[data-side="mine"] .pp-c-name { color: var(--bg-base); }
.pp-c-who[data-side="mine"] .pp-c-full { color: color-mix(in srgb, var(--bg-base) 75%, transparent); }
/* The other player's card is cream with dark text (UV, 20 Nov), as their star is cream. */
.pp-c-who[data-side="them"] { background: var(--text-primary); }
.pp-c-who[data-side="them"] .pp-c-name { color: var(--bg-base); }
.pp-c-who[data-side="them"] .pp-c-full { color: color-mix(in srgb, var(--bg-base) 75%, transparent); }

/* The stage's person (match.css .mv-person, sideways): the picture, then
 * the display name (0.6 of its height) over the full name (0.385). Yours
 * mirrored, both pictures facing the line. */
.pp-c-person {
	--c-who-h: 2.75rem;
	display: flex;
	align-items: center;
	gap: calc(var(--c-who-h) * 0.25);
	height: var(--c-who-h);
	min-width: 0;
	max-width: 100%;
}
.pp-c-who[data-side="mine"] .pp-c-person { flex-direction: row-reverse; }
.pp-c-who[data-side="mine"] .pp-c-names { text-align: right; }
.pp-c-pic {
	flex: none;
	display: grid;
	place-items: center;
	width: var(--c-who-h);
	height: var(--c-who-h);
	border-radius: var(--radius-round);
	overflow: hidden;
	color: var(--color-primary);
	font-size: calc(var(--c-who-h) * 0.27);   /* 0.75 of the 0.36 it was (UV, 20 Nov) */
	font-weight: 700;
	box-shadow: var(--shadow-pic);
}
.pp-c-pic img { width: 100%; height: 100%; object-fit: cover; }
/* The rating on each card's picture (UV, 28 Nov), as the hero's (.pp-rating), on the
 * rim on the side facing the middle line: 7:30 on the right card, 4:30 on the left
 * (mirrored) one. The picture clips its own edges, so the badge sits in a wrapper.
 * Smaller than the hero's 12px floor: at 12px it would be nearly as wide as the 44px picture. */
.pp-c-pic-wrap { position: relative; flex: none; display: block; width: var(--c-who-h); height: var(--c-who-h); }
.pp-c-rating {
	position: absolute;
	left: 14.6%;
	bottom: 14.6%;
	transform: translate(-50%, 50%);
	padding: 0.1em 0.4em;
	border-radius: var(--radius-round);
	background: var(--bg-base);
	box-shadow: var(--shadow-pic);
	color: var(--color-primary);
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	pointer-events: none;
}
.pp-c-who[data-side="mine"] .pp-c-rating { left: auto; right: 14.6%; transform: translate(50%, 50%); }

/* Compare any two players (UV, 28 Nov): the left card is a button, a small search
 * glyph in its outer corner says so; it opens the search panel across both halves. */
.pp-c-who[data-side="mine"] { cursor: pointer; padding-left: calc(var(--space-3) + 0.9rem); }
.pp-c-who[data-side="mine"]:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.pp-c-hint { position: absolute; left: var(--space-2); top: var(--space-2); width: 0.9rem; height: 0.9rem; pointer-events: none; }
.pp-c-hint svg { display: block; width: 100%; height: 100%; fill: none; stroke: color-mix(in srgb, var(--bg-base) 75%, transparent); stroke-width: 2.5; stroke-linecap: round; }
.pp-c-pick {
	grid-column: 1 / -1;
	max-height: 60vh;
	overflow-y: auto;
	padding: var(--space-3);
	border-radius: var(--nm-field-radius);
	box-shadow: var(--nm-raised);
	background: var(--bg-base);
}
.pp-c-pick[hidden] { display: none; }
/* Its rows are buttons (they pick, not open), dressed as the find page's links. */
.pp-c-pick .pp-row { width: 100%; border-width: 0 0 1px; border-style: solid; border-color: var(--border-color); background: none; font: inherit; text-align: left; cursor: pointer; }
.pp-c-pick .pp-row:last-child { border-bottom: 0; }
.pp-c-pick .pp-row:hover,
.pp-c-pick .pp-row:focus-visible { background: var(--hover-wash); }
.pp-c-names {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: calc(var(--c-who-h) * 0.1);
	min-width: 0;
}
.pp-c-name,
.pp-c-full {
	overflow-x: clip;
	overflow-y: visible;
	white-space: nowrap;
	text-overflow: ellipsis;
	line-height: 1;
	text-box: trim-both cap alphabetic;
}
.pp-c-name { font-family: var(--font-display); font-size: calc(var(--c-who-h) * 0.3375);   /* 0.75 of 0.6, then 0.75 of that again (UV, 20 Nov) */ color: var(--text-primary); }
.pp-c-full { font-size: calc(var(--c-who-h) * 0.289);   /* 0.75 of 0.385 */ color: var(--text-muted); }

/* Each section: its heading across both halves, then yours and theirs. */
.pp-c-body {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	padding-bottom: var(--space-6);
}
.pp-c-body > [data-side] { min-width: 0; padding: 0 var(--space-3); }
.pp-c-body > .pp-c-h,
.pp-c-body > .pp-c-wide { grid-column: 1 / -1; }
/* A half's stat boxes: one column on a phone, two by two once there is room. */
.tdc-card .pp-c-h { margin: var(--space-6) 0 var(--space-2); font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: var(--color-primary); }
.pp-c-body > .pp-c-h:first-child { margin-top: var(--space-5); }
.pp-c-body > .pp-star-key:first-child { margin-top: var(--space-4); }
/* Every heading on the tabs is cream, not green (UV, 20 Nov). */
.tdc-card .pp-tabs h2,
.tdc-card .pp-tabs .pp-h3 { color: var(--text-primary); }

/* In a half the lists are tighter (the layout's doing, UV to judge): no
 * picture and no win or loss dot on a row, a smaller score, and a list's
 * page number under its heading rather than beside it. */
.pp-c-body .pp-row > .pp-person-pic,
.pp-c-body .pp-row > .pp-row-pic,
.pp-c-body .pp-row > .pp-dot { display: none; }
.pp-c-body .pp-row { gap: var(--space-2); }
.pp-c-body .pp-score { font-size: 1.15rem; }
.pp-c-body .pp-team { gap: var(--space-2); padding: var(--space-2) var(--space-3); }
.pp-c-body [data-part]:has(.pp-row) { padding-right: var(--space-2); padding-left: var(--space-2); }
/* On the narrowest screens a half is narrower than the number's pill. */
@media (max-width: 24rem) {
	.pp-c-body .tdc-stepper.is-across { padding: 0; }
	.pp-c-body .tdc-stepper.is-across > .tdc-chevron { padding: 0 var(--space-1); }
}
.pp-c-body .pp-head-solo { margin-top: var(--space-1); }

/* About: one table, its headings in the middle, every cell centred (UV, 5 Nov). */
.pp-c-about { width: 100%; margin-top: var(--space-2); border-collapse: collapse; font-size: 1rem; }
.pp-c-about td,
.pp-c-about th { padding: var(--space-3) var(--space-2); border-bottom: 1px solid var(--border-color); text-align: center; overflow-wrap: anywhere; }
.pp-c-about th { width: 7rem; font-size: 0.85rem; font-weight: 400; }
.pp-c-about a { color: var(--color-primary); }
.tdc-card .pp-c-about .pp-link { display: inline; margin: 0; padding: 0; }

/* The player star (UV, 19 Nov): under the stat boxes, in the period; its key above it. */
.pp-star-key { margin-top: var(--space-4); text-align: center; }
.pp-star { margin-top: var(--space-2); }
