/* Release 1.10.35: match statistics, map comparisons and demo downloads. */
body.cs2day-v2 .cs2-match-team-map-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 12px;
}

body.cs2day-v2 .cs2-match-team-map-stats > article,
body.cs2day-v2 .cs2-match-long-term {
	border: 1px solid var(--cs2-border);
	border-radius: 5px;
	background: var(--cs2-bg-alt);
	overflow: hidden;
}

body.cs2day-v2 .cs2-match-team-map-stats article > header,
body.cs2day-v2 .cs2-match-long-term > header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--cs2-border);
}

body.cs2day-v2 .cs2-match-team-map-stats article > header {
	grid-template-columns: minmax(0, 1fr) auto;
}

body.cs2day-v2 .cs2-match-team-map-stats article > header span {
	padding: 5px 9px;
	border-radius: 4px;
	background: var(--cs2-bg);
	font-size: 14px;
	font-weight: 850;
}

body.cs2day-v2 .cs2-match-team-map-stats__teams {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 10px 14px 4px;
}

body.cs2day-v2 .cs2-match-team-map-stats__teams strong:last-child,
body.cs2day-v2 .cs2-match-long-term > header strong:last-child {
	text-align: right;
}

body.cs2day-v2 :is(.cs2-match-team-map-stats, .cs2-match-long-term) dl {
	margin: 0;
	padding: 4px 14px 10px;
}

body.cs2day-v2 :is(.cs2-match-team-map-stats, .cs2-match-long-term) dl > div {
	display: grid;
	grid-template-columns: minmax(42px, 1fr) minmax(90px, 1.5fr) minmax(42px, 1fr);
	align-items: center;
	gap: 10px;
	min-height: 34px;
	border-bottom: 1px solid color-mix(in srgb, var(--cs2-border) 65%, transparent);
}

body.cs2day-v2 :is(.cs2-match-team-map-stats, .cs2-match-long-term) dl > div:last-child {
	border-bottom: 0;
}

body.cs2day-v2 :is(.cs2-match-team-map-stats, .cs2-match-long-term) :is(dt, dd) {
	margin: 0;
}

body.cs2day-v2 :is(.cs2-match-team-map-stats, .cs2-match-long-term) dt {
	color: var(--cs2-text-muted);
	font-size: 11px;
	text-align: center;
}

body.cs2day-v2 :is(.cs2-match-team-map-stats, .cs2-match-long-term) dd {
	font-size: 13px;
	font-weight: 800;
}

body.cs2day-v2 :is(.cs2-match-team-map-stats, .cs2-match-long-term) dd:last-child {
	text-align: right;
}

body.cs2day-v2 .cs2-match-long-term > header span {
	color: var(--cs2-text-muted);
	font-size: 10px;
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
}

body.cs2day-v2 .cs2-match-demos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
	gap: 10px;
}

body.cs2day-v2 .cs2-match-demos .button {
	display: grid;
	justify-items: start;
	height: auto;
	min-height: 52px;
	padding: 9px 12px;
}

body.cs2day-v2 .cs2-match-demos .button small {
	color: var(--cs2-text-muted);
	font-size: 10px;
}

@media (max-width: 620px) {
	body.cs2day-v2 .cs2-match-team-map-stats {
		grid-template-columns: 1fr;
	}

	body.cs2day-v2 .cs2-match-team-map-stats article > header,
	body.cs2day-v2 .cs2-match-long-term > header {
		gap: 8px;
		padding-inline: 10px;
	}

	body.cs2day-v2 :is(.cs2-match-team-map-stats, .cs2-match-long-term) dl {
		padding-inline: 10px;
	}

	body.cs2day-v2 .cs2-match-demos {
		grid-template-columns: 1fr;
	}
}
