/*
 * Mise en forme de base des blocs FFvolley.
 * Les couleurs suivent la palette Blocksy ; le thème peut tout surcharger.
 */

.lmv-matchs,
.lmv-classement {
	--lmv-accent: var(--theme-palette-color-1, #0091c4);
	--lmv-win: #2e7d32;
	--lmv-loss: #c62828;
	--lmv-muted: color-mix(in srgb, currentColor 60%, transparent);
	--lmv-line: color-mix(in srgb, currentColor 15%, transparent);
}

/* Matchs */

.lmv-matchs__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lmv-match {
	padding: 0.85em 0 0.85em 0.9em;
	border-bottom: 1px solid var(--lmv-line);
	border-left: 3px solid transparent;
}

.lmv-match.is-win {
	border-left-color: var(--lmv-win);
}

.lmv-match.is-loss {
	border-left-color: var(--lmv-loss);
}

.lmv-match__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 0.75em;
	font-size: 0.85em;
	color: var(--lmv-muted);
}

.lmv-match__meta time {
	font-weight: 600;
	color: inherit;
}

.lmv-match__unconfirmed {
	font-weight: 600;
	color: #e0a100;
}

.lmv-match__label {
	font-weight: 600;
	color: var(--lmv-accent);
}

.lmv-match__teams {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2em 0.6em;
	margin-top: 0.2em;
}

.lmv-match__team.is-us {
	font-weight: 700;
}

.lmv-match__score {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.lmv-match__versus {
	font-size: 0.85em;
	color: var(--lmv-muted);
}

.lmv-match__detail {
	margin-top: 0.2em;
	font-size: 0.8em;
	color: var(--lmv-muted);
	font-variant-numeric: tabular-nums;
}

.lmv-matchs__empty,
.lmv-classement__empty {
	color: var(--lmv-muted);
}

/* Classement */

.lmv-classement__scroll {
	overflow-x: auto;
}

.lmv-classement table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.lmv-classement caption {
	text-align: left;
	font-weight: 600;
	padding-bottom: 0.5em;
}

.lmv-classement th,
.lmv-classement td {
	padding: 0.45em 0.6em;
	border-bottom: 1px solid var(--lmv-line);
	text-align: center;
}

.lmv-classement thead th {
	font-size: 0.8em;
	color: var(--lmv-muted);
}

.lmv-classement thead th:nth-child(2) {
	text-align: left;
}

.lmv-classement tbody th {
	text-align: left;
	font-weight: 400;
}

.lmv-classement abbr {
	text-decoration: none;
}

.lmv-classement__points {
	font-weight: 700;
}

.lmv-classement tr.is-us {
	background: color-mix(in srgb, var(--lmv-accent) 12%, transparent);
}

.lmv-classement tr.is-us th {
	font-weight: 700;
}

/* Commun */

.lmv-ffvolley-source,
.lmv-matchs__sporteasy {
	margin-top: 0.75em;
	font-size: 0.8em;
	color: var(--lmv-muted);
}
