/**
 * Growth plan, phase 1 (2026-10-11): the ProAce verdict card on match posts,
 * follow buttons, and the Today / Track record / Friends leagues pages.
 * Markup: inc/psp-growth.php. Uses the hub tokens (--psp-hb-*) where the hub
 * stylesheet is loaded and repeats them here so the article card works alone.
 *
 * Like the hub cards, the verdict card carries its own navy surface so it
 * reads the same inside the light article card, on the dark page and in
 * light mode.
 */

.psp-verdict,
.psp-growth-page {
	--pv-navy: #0a1e38;
	--pv-navy-2: #0f2a4d;
	--pv-deep: #050e1c;
	--pv-ice: #eaf4ff;
	--pv-muted: #a9bdd6;
	--pv-line: rgba( 234, 244, 255, 0.12 );
	--pv-glass: rgba( 234, 244, 255, 0.05 );
	--pv-gold: #ffb020;
	--pv-gold-ink: #1a1200;
	--pv-blue: #3a86e0;
	--pv-good: #4fd18b;
	--pv-bad: #ff8f8f;
	--pv-display: 'Outfit', 'PT Sans', sans-serif;
	--pv-ease: cubic-bezier( 0.22, 1, 0.36, 1 );
}

/* ---------------- Verdict card ---------------- */

.psp-verdict {
	position: relative;
	margin: 0 0 26px;
	padding: 18px 18px 14px;
	border-radius: 18px;
	overflow: hidden;
	font-family: var( --pv-display );
	color: var( --pv-ice );
	background:
		radial-gradient( circle at 100% 0%, rgba( 255, 176, 32, 0.18 ), transparent 48% ),
		radial-gradient( circle at 0% 100%, rgba( 58, 134, 224, 0.26 ), transparent 55% ),
		linear-gradient( 160deg, var( --pv-navy-2 ), var( --pv-navy ) 60%, var( --pv-deep ) );
	border: 1px solid rgba( 255, 176, 32, 0.32 );
	box-shadow: 0 18px 40px rgba( 5, 14, 28, 0.35 );
	animation: psp-verdict-in 0.6s var( --pv-ease ) both;
}
.psp-verdict * {
	box-sizing: border-box;
}
.psp-verdict::before {
	/* A slow sheen across the gold edge. */
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient( 115deg, transparent 30%, rgba( 255, 255, 255, 0.07 ) 45%, transparent 60% );
	transform: translateX( -100% );
	animation: psp-verdict-sheen 7s ease-in-out 1.2s infinite;
}
@keyframes psp-verdict-in {
	from { opacity: 0; transform: translateY( 10px ); }
	to { opacity: 1; transform: none; }
}
@keyframes psp-verdict-sheen {
	0%, 70% { transform: translateX( -100% ); }
	100% { transform: translateX( 100% ); }
}

.psp-verdict__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.psp-verdict__mark {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	color: var( --pv-gold-ink );
	background: var( --pv-gold );
	box-shadow: 0 6px 16px rgba( 255, 176, 32, 0.35 );
}
.psp-verdict .psp-verdict__title,
.entry-content .psp-verdict__title {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-family: var( --pv-display ) !important;
	font-size: 20px !important;
	font-weight: 800 !important;
	letter-spacing: -0.01em;
	line-height: 1.2 !important;
	color: var( --pv-ice ) !important;
	flex: 1 1 auto;
}
.psp-verdict__title::before,
.psp-verdict__title::after {
	content: none !important;
}

.psp-record-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	font: 800 12.5px/1.2 var( --pv-display, 'Outfit', sans-serif );
	color: #c6f3d9 !important;
	background: rgba( 79, 209, 139, 0.14 );
	border: 1px solid rgba( 79, 209, 139, 0.45 );
	text-decoration: none !important;
	white-space: nowrap;
}
a.psp-record-chip:hover {
	background: rgba( 79, 209, 139, 0.22 );
}

.psp-verdict__match {
	padding: 14px 0;
	border-top: 1px solid var( --pv-line );
}
.psp-verdict__match:first-of-type {
	border-top: 0;
	padding-top: 4px;
}
.psp-verdict__teams {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto minmax( 0, 1fr );
	align-items: center;
	gap: 10px;
}
.psp-verdict__team {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	font-size: 16.5px;
}
.psp-verdict__team strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 800;
}
.psp-verdict__team--b {
	justify-content: flex-end;
	text-align: right;
}
.psp-verdict__team .psp-crest {
	flex: 0 0 auto;
	transition: transform 0.4s var( --pv-ease ), box-shadow 0.4s var( --pv-ease );
}
.psp-verdict__team.is-called .psp-crest {
	box-shadow: 0 0 0 3px var( --pv-navy ), 0 0 0 5px var( --pv-gold );
}
.psp-verdict__vs {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var( --pv-muted );
}
.psp-verdict .psp-verdict__meta {
	margin: 8px 0 0 !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: var( --pv-muted ) !important;
	text-align: center;
}
.psp-verdict__state {
	color: #ffd27a;
	font-weight: 700;
}
.psp-verdict .psp-countdown {
	color: #ffd27a;
	font-weight: 800;
}

.psp-verdict__call {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba( 255, 176, 32, 0.08 );
	border: 1px solid rgba( 255, 176, 32, 0.3 );
}
.psp-verdict__label {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var( --pv-gold );
}
.psp-verdict__pick {
	font-size: 19px;
	font-weight: 900;
	color: #fff;
}
.psp-verdict__conf {
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	color: var( --pv-ice );
	background: var( --pv-glass );
	border: 1px solid var( --pv-line );
}
.psp-verdict__outcome {
	margin-left: auto;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 800;
	color: var( --pv-ice );
	background: var( --pv-glass );
}
.psp-verdict__outcome--right {
	color: #c6f3d9;
	background: rgba( 79, 209, 139, 0.18 );
}
.psp-verdict__outcome--wrong {
	color: #ffd0d0;
	background: rgba( 255, 107, 107, 0.16 );
}
.psp-verdict .psp-verdict__why {
	flex: 1 1 100%;
	margin: 2px 0 0 !important;
	font-size: 14.5px !important;
	line-height: 1.55 !important;
	color: #d5e3f3 !important;
}

.psp-verdict__crowd {
	margin-top: 12px;
}
.psp-verdict__crowd-labels {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	margin-bottom: 6px;
}
.psp-verdict__crowd-labels .psp-muted {
	color: var( --pv-muted );
	text-align: center;
}
.psp-verdict__bar {
	display: flex;
	height: 9px;
	border-radius: 999px;
	overflow: hidden;
	background: var( --pv-glass );
}
.psp-verdict__bar span {
	display: block;
	height: 100%;
	transition: width 0.9s var( --pv-ease );
}
.psp-verdict__bar span:first-child {
	background: linear-gradient( 90deg, #2c6fc1, var( --pv-blue ) );
}
.psp-verdict__bar span:last-child {
	background: linear-gradient( 90deg, #ff9e1f, var( --pv-gold ) );
}

.psp-verdict__mine {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 12px 0 0;
	font-size: 14px;
	color: var( --pv-muted );
	animation: psp-pv-mine 0.4s var( --pv-ease ) both;
}
.psp-verdict__mine strong {
	color: var( --pv-ice );
	font-weight: 800;
}
.psp-verdict__agree {
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: var( --pv-ice );
	border: 1px solid var( --pv-line );
}
.psp-verdict__agree.is-same {
	color: var( --pv-good );
	border-color: rgba( 79, 209, 139, 0.45 );
}
@keyframes psp-pv-mine {
	from { opacity: 0; transform: translateY( 4px ); }
	to { opacity: 1; transform: none; }
}
@media ( prefers-reduced-motion: reduce ) {
	.psp-verdict__mine { animation: none; }
}
.psp-verdict__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.psp-verdict .psp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-family: var( --pv-display );
	font-weight: 800;
	font-size: 15px;
	text-decoration: none !important;
	transition: transform 0.2s var( --pv-ease ), box-shadow 0.2s var( --pv-ease ), background 0.2s;
}
.psp-verdict .psp-btn:hover { transform: translateY( -1px ); }
.psp-verdict .psp-btn:active { transform: translateY( 1px ); }
.psp-verdict .psp-btn--gold {
	background: var( --pv-gold );
	color: var( --pv-gold-ink ) !important;
	box-shadow: 0 8px 22px rgba( 255, 176, 32, 0.25 );
}
.psp-verdict .psp-btn--ghost {
	background: var( --pv-glass );
	color: var( --pv-ice ) !important;
	border-color: rgba( 234, 244, 255, 0.22 );
}
.psp-verdict__actions .psp-btn--gold {
	flex: 1 1 220px;
}

.psp-verdict__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid var( --pv-line );
}
.psp-verdict__discuss {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 14px;
	color: var( --pv-ice ) !important;
	background: var( --pv-glass );
	border: 1px solid var( --pv-line );
	text-decoration: none !important;
}
.psp-verdict__discuss:hover {
	border-color: var( --pv-gold );
}
.psp-verdict a:focus-visible,
.psp-follow:focus-visible,
.psp-record-chip:focus-visible {
	outline: 3px solid #ffb020;
	outline-offset: 2px;
}

/* ---------------- Follow buttons ---------------- */

.psp-follows {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.psp-follow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	font: 800 13.5px/1.1 'Outfit', 'PT Sans', sans-serif;
	text-decoration: none !important;
	transition: transform 0.2s ease, background 0.2s ease;
}
.psp-follow:hover {
	transform: translateY( -1px );
}
.psp-follow--wa {
	color: #04210f !important;
	background: #25d366;
}
.psp-follow--wa:hover {
	background: #3be07a;
}
.psp-follow--tg {
	color: #fff !important;
	background: #229ed9;
}
.psp-follow--tg:hover {
	background: #36ace4;
}
.psp-follows--hero {
	margin: 0 0 22px;
}
.psp-follows--footer {
	margin: 0;
}

/* Share-kit links end in #proace-contest-ID: land below the sticky header. */
[id^="proace-contest-"] {
	scroll-margin-top: 140px;
}

/* Day groups that psp-localtime.js re-groups by the visitor's own day. */
.psp-dayrun {
	display: contents;
}

/* ---------------- Today ---------------- */

.psp-today__item {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 0, 420px );
	gap: 20px;
	align-items: start;
	margin: 0 0 18px;
	padding: 18px;
	border-radius: 18px;
	background: linear-gradient( 160deg, var( --pv-navy-2 ), var( --pv-navy ) );
	border: 1px solid var( --pv-line );
}
.psp-today__item .psp-verdict__match {
	padding: 0;
	border: 0;
	/* The pick card beside it is much taller: keep the call in view. */
	position: sticky;
	top: 110px;
}
.psp-today__play {
	min-width: 0;
}
.psp-today__play .proace-contest {
	margin: 0 !important;
}
.psp-today__links {
	display: flex;
	gap: 16px;
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 700;
}
.psp-today__links a {
	color: #ffd27a !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------------- Track record ---------------- */

.psp-record-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.psp-record-item {
	display: grid;
	grid-template-columns: 36px minmax( 0, 1fr ) auto;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: var( --pv-glass );
	border: 1px solid var( --pv-line );
}
.psp-record-item__icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-weight: 900;
	font-size: 16px;
	color: var( --pv-ice );
	background: rgba( 234, 244, 255, 0.1 );
}
.psp-record-item--correct .psp-record-item__icon {
	color: #062614;
	background: var( --pv-good );
}
.psp-record-item--wrong .psp-record-item__icon {
	color: #2b0606;
	background: var( --pv-bad );
}
.psp-record-item__match {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}
.psp-record-item__match a {
	color: var( --pv-ice ) !important;
	text-decoration: none !important;
}
.psp-record-item__match a:hover strong {
	text-decoration: underline;
}
.psp-record-item__match .psp-muted {
	font-size: 12.5px;
}
.psp-record-item__call {
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}
.psp-record-splits {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
	gap: 16px;
	margin-bottom: 8px;
}
.psp-record-split {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}
.psp-record-split li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid var( --pv-line );
	font-size: 14px;
}
.psp-record-recent {
	margin-top: 30px;
}

/* ---------------- Leagues ---------------- */

.psp-leagues__forms {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
	gap: 16px;
}
.psp-leagues__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.psp-leagues__label {
	font-size: 13px;
	font-weight: 700;
	color: var( --pv-muted );
}
.psp-leagues__form input {
	min-height: 46px;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px solid rgba( 234, 244, 255, 0.24 );
	background: rgba( 5, 14, 28, 0.6 );
	color: var( --pv-ice );
	font: 700 16px/1.2 var( --pv-display );
}
.psp-leagues__form input:focus {
	outline: 3px solid var( --pv-gold );
	outline-offset: 1px;
	border-color: var( --pv-gold );
}
.psp-leagues__msg {
	min-height: 1.4em;
	margin: 14px 0 0;
	font-weight: 700;
}
.psp-leagues__msg.is-error {
	color: var( --pv-bad );
}
.psp-leagues__msg.is-ok {
	color: var( --pv-good );
}
.psp-leagues__list {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 12px;
}
.psp-leagues__list > p {
	grid-column: 1 / -1; /* "Loading…" / "not in a league yet" span the row. */
	margin: 0;
}
.psp-league-tile {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var( --pv-glass );
	border: 1px solid var( --pv-line );
	color: var( --pv-ice );
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s, transform 0.2s var( --pv-ease );
}
.psp-league-tile:hover,
.psp-league-tile.is-active {
	border-color: var( --pv-gold );
	transform: translateY( -1px );
}
.psp-league-tile strong {
	font-size: 16px;
}
.psp-league-tile span {
	font-size: 13px;
	color: var( --pv-muted );
}
.psp-league-tile:focus-visible {
	outline: 3px solid var( --pv-gold );
	outline-offset: 2px;
}
.psp-leagues__table {
	margin-top: 22px;
	padding: 18px;
	border-radius: 18px;
	background: linear-gradient( 160deg, var( --pv-navy-2 ), var( --pv-navy ) );
	border: 1px solid var( --pv-line );
}
.psp-league-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.psp-league-head h3 {
	margin: 0 !important;
	flex: 1 1 auto;
	font: 800 22px/1.2 var( --pv-display ) !important;
	color: var( --pv-ice ) !important;
}
.psp-league-tabs {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var( --pv-glass );
	border: 1px solid var( --pv-line );
	margin-bottom: 12px;
}
.psp-league-tabs button {
	min-height: 34px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var( --pv-muted );
	font: 800 13px/1 var( --pv-display );
	cursor: pointer;
}
.psp-league-tabs button[aria-selected="true"] {
	background: var( --pv-gold );
	color: var( --pv-gold-ink );
}
.psp-league-tabs button:focus-visible {
	outline: 3px solid var( --pv-gold );
	outline-offset: 2px;
}
.psp-league-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}
.psp-league-table th,
.psp-league-table td {
	padding: 10px 8px;
	border-bottom: 1px solid var( --pv-line );
	text-align: left;
	color: var( --pv-ice );
	background: transparent;
}
.psp-league-table th {
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --pv-muted );
}
.psp-league-table td.num,
.psp-league-table th.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.psp-league-table tr.is-me td {
	background: rgba( 255, 176, 32, 0.1 );
	font-weight: 800;
}
.psp-league-table tr:first-child td:first-child {
	color: var( --pv-gold );
	font-weight: 900;
}
.psp-league-invite {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}
.psp-league-invite button,
.psp-league-invite a {
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var( --pv-line );
	background: var( --pv-glass );
	color: var( --pv-ice ) !important;
	font: 800 13.5px/40px var( --pv-display );
	text-decoration: none !important;
	cursor: pointer;
}
.psp-league-invite .is-wa {
	background: #25d366;
	color: #04210f !important;
	border-color: transparent;
}
.psp-league-invite .is-leave {
	margin-left: auto;
	color: var( --pv-bad ) !important;
}

/* ---------------- Small screens ---------------- */

@media ( max-width: 860px ) {
	.psp-today__item {
		grid-template-columns: minmax( 0, 1fr );
	}
	.psp-today__item .psp-verdict__match {
		position: static;
	}
}
@media ( max-width: 575px ) {
	.psp-verdict {
		padding: 14px 14px 12px;
		margin-left: -2px;
		margin-right: -2px;
	}
	.psp-verdict__team {
		font-size: 15px;
		gap: 8px;
	}
	.psp-verdict__team .psp-crest {
		width: 32px !important;
		height: 32px !important;
	}
	.psp-verdict__actions .psp-btn {
		flex: 1 1 100%;
	}
	.psp-record-item {
		grid-template-columns: 32px minmax( 0, 1fr );
	}
	.psp-record-item__call {
		grid-column: 2;
		white-space: normal;
	}
	.psp-league-table th:nth-child( 5 ),
	.psp-league-table td:nth-child( 5 ) {
		display: none;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.psp-verdict,
	.psp-verdict::before,
	.psp-verdict__bar span,
	.psp-verdict .psp-btn,
	.psp-follow,
	.psp-league-tile {
		animation: none !important;
		transition: none !important;
	}
}

/* The theme styles every <button> blue; keep the league buttons on brand. */
.psp-leagues button.psp-btn,
.psp-leagues button.psp-btn:hover,
.psp-leagues button.psp-btn:focus {
	background-image: none !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.psp-leagues button.psp-btn--gold,
.psp-leagues button.psp-btn--gold:hover,
.psp-leagues button.psp-btn--gold:focus {
	background-color: #ffb020 !important;
	color: #1a1200 !important;
	border: 1px solid transparent !important;
}
.psp-leagues button.psp-btn--ghost,
.psp-leagues button.psp-btn--ghost:hover,
.psp-leagues button.psp-btn--ghost:focus {
	background-color: rgba( 234, 244, 255, 0.05 ) !important;
	color: #eaf4ff !important;
	border: 1px solid rgba( 234, 244, 255, 0.22 ) !important;
}
.psp-leagues button.psp-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}
.psp-league-tabs button {
	white-space: nowrap;
	background-color: transparent !important;
	color: #a9bdd6 !important;
}
.psp-league-tabs button[aria-selected="true"] {
	background-color: #ffb020 !important;
	color: #1a1200 !important;
}
.psp-league-tile,
.psp-league-invite button {
	background-color: rgba( 234, 244, 255, 0.05 ) !important;
	color: #eaf4ff !important;
}
@media ( max-width: 420px ) {
	.psp-league-tabs button {
		padding: 0 10px;
		font-size: 12px;
	}
}
