/* Classement Ligue Magnus : hérite de la typographie du thème. */
.pdm-magnus {
	--pdm-accent: #0a4da2;
	--pdm-line: color-mix(in srgb, currentColor 14%, transparent);
	--pdm-zebra: color-mix(in srgb, currentColor 4%, transparent);
	--pdm-danger: #b3261e;
	margin: 1.5em 0;
}

.pdm-magnus__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.pdm-magnus__table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	font-size: 0.95em;
	line-height: 1.3;
}

.pdm-magnus__table caption {
	text-align: left;
	font-weight: 700;
	font-size: 1.15em;
	padding-bottom: 0.5em;
	border-bottom: 3px solid var(--pdm-accent);
}

.pdm-magnus__table th,
.pdm-magnus__table td {
	padding: 0.5em 0.4em;
	text-align: center;
	white-space: nowrap;
	border-bottom: 1px solid var(--pdm-line);
}

.pdm-magnus__table thead th {
	font-size: 0.8em;
	font-weight: 600;
	opacity: 0.75;
}

.pdm-magnus__table abbr {
	text-decoration: none;
	cursor: help;
}

.pdm-magnus__table tbody tr:nth-child(even) {
	background: var(--pdm-zebra);
}

.pdm-magnus__table .pdm-magnus__team {
	text-align: left;
	font-weight: 500;
	width: 100%;
}

.pdm-magnus__team img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	vertical-align: middle;
	margin-right: 0.5em;
}

.pdm-magnus__rank {
	width: 2.5em;
	font-weight: 600;
	box-shadow: inset 4px 0 0 transparent;
}

.pdm-magnus__pts {
	font-weight: 700;
}

/* Zones : liseré à gauche du rang, trait pointillé à la coupure. */
.pdm-magnus tr.is-qualif .pdm-magnus__rank {
	box-shadow: inset 4px 0 0 var(--pdm-accent);
}

.pdm-magnus tr.is-maintien .pdm-magnus__rank {
	box-shadow: inset 4px 0 0 var(--pdm-danger);
}

.pdm-magnus tr.is-cut > * {
	border-bottom: 2px dashed currentColor;
}

.pdm-magnus__meta {
	margin-top: 0.6em;
	font-size: 0.8em;
	opacity: 0.7;
}

.pdm-magnus-empty {
	padding: 0.75em 1em;
	border-left: 4px solid var(--pdm-danger, #b3261e);
}

@media (max-width: 480px) {
	.pdm-magnus__table { font-size: 0.85em; }
	.pdm-magnus__table th,
	.pdm-magnus__table td { padding: 0.45em 0.3em; }
}
