/*
 * Career figures on profiles and the compare pages. Loaded only on /athletes/{slug}/ and /compare/
 * routes (Oly_Template_Loader::enqueue_assets); everything else stays on oly-base.css tokens.
 */

/* Compare form: two names and the button on one row, stacked on a phone. */
.oly-app .oly-compare-form {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	max-width: none;
}

@media (max-width: 640px) {
	.oly-app .oly-compare-form {
		grid-template-columns: 1fr;
	}
}

/* Side by side table: the figure names stay readable, the two lifters share the rest. */
.oly-app .oly-compare-table th[scope="row"] {
	width: 30%;
	color: var(--oly-text-secondary);
	font-weight: 600;
}

.oly-app .oly-compare-table td {
	width: 35%;
}

.oly-app .oly-compare-table td strong {
	color: var(--oly-text-primary);
	font-weight: 700;
}

/* A pair on a card: the names as the card's headline. */
.oly-app .oly-compare-pair {
	display: block;
	color: var(--oly-text-primary);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

/* Chart key: ink round points, oxblood square points. */
.oly-app .oly-compare-key {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.oly-app .oly-compare-keyitem {
	display: inline-flex;
	align-items: center;
}

.oly-app .oly-compare-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 6px;
	background: var(--oly-ink);
	border-radius: 50%;
}

.oly-app .oly-compare-swatch--second {
	background: var(--oly-oxblood);
	border-radius: 1px;
}

/* Profile figures: the stat cards carry a longer explanation under the number. */
.oly-app .oly-figures .oly-stat-sub {
	line-height: 1.45;
}

@media (max-width: 640px) {
	/* One surface on a phone: the figure cards become rows divided by rules. */
	.oly-app .oly-figures.oly-card-grid {
		gap: 0;
	}

	.oly-app .oly-figures .oly-card {
		padding: 14px 0;
		border: 0;
		border-bottom: 1px solid var(--oly-border-soft);
		border-radius: 0;
		background: transparent;
	}
}

/* Head to head on a phone: the lifter names wrap so both columns fit; "Ahead" moves under the competition. */
@media (max-width: 768px) {
	.oly-app .oly-table.oly-table--h2h thead th {
		padding-right: 8px;
		padding-left: 8px;
		white-space: normal;
		letter-spacing: 0.04em;
	}

	.oly-app .oly-table.oly-table--h2h tbody th,
	.oly-app .oly-table.oly-table--h2h tbody td {
		padding-right: 8px;
		padding-left: 8px;
	}
}
