/* Metro Data API – minimal structural styles. Override freely from the theme or Elementor. */

/* ---- Standings ("classement") — matches the club design (clsmt__*) ---- */

.clsmt {
	--clsmt-bg: #000;
	--clsmt-fg: #fff;
	--clsmt-line: rgba(255, 255, 255, 0.2);
	--clsmt-hover-bg: #fff;
	--clsmt-hover-fg: #000;
	--clsmt-radius: 12px;
	--clsmt-pad-x: 24px;
	--clsmt-row-h: 103px;
	--clsmt-font-condensed: "Special Gothic Condensed One", "Oswald", "Arial Narrow", sans-serif;
	--clsmt-font-body: "Geist", var(--e-global-typography-text-font-family, inherit);
	--clsmt-font-rank: var(--e-global-typography-primary-font-family, inherit);

	background: var(--clsmt-bg);
	color: var(--clsmt-fg);
	width: 100%;
}

.clsmt__scroll {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.clsmt__table {
	width: 100%;
	min-width: 1100px;
	border-collapse: separate; /* required so rows can have a radius */
	border-spacing: 0;
	table-layout: fixed;
	margin: 0;
	background: transparent;
}

.clsmt__caption {
	caption-side: top;
	text-align: left;
	padding: 0 var(--clsmt-pad-x) 16px;
	font-family: var(--clsmt-font-condensed);
	text-transform: uppercase;
}

/* Elementor / theme resets. Themes commonly zebra-stripe tbody rows and add their own cell
   padding with high-specificity selectors, so these are deliberately specific and !important. */
.clsmt .clsmt__table th,
.clsmt .clsmt__table td,
.clsmt .clsmt__table tbody > tr:nth-child(odd) > td,
.clsmt .clsmt__table tbody > tr:nth-child(even) > td,
.clsmt .clsmt__table tbody > tr:nth-child(odd) > th,
.clsmt .clsmt__table tbody > tr:nth-child(even) > th {
	border: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	vertical-align: middle !important;
	text-align: left;
	padding: 0 12px !important;
	color: inherit;
}

.clsmt .clsmt__table th {
	padding: 20px 12px !important;
}

/* Rank and stat columns are centred (header and cells); !important beats theme cell rules. */
.clsmt .clsmt__table .clsmt__th--rank,
.clsmt .clsmt__table .clsmt__rank,
.clsmt .clsmt__table .clsmt__th--stat,
.clsmt .clsmt__table .clsmt__stat {
	text-align: center !important;
}

/* ---- column widths ---- */
.clsmt__col-rank {
	width: 120px;
}

.clsmt__col-logo {
	width: 84px; /* 60px logo + 12px cell padding each side */
}

.clsmt__col-team {
	width: auto; /* soaks up the leftover space */
}

.clsmt__col-stat {
	width: 130px;
}

/* ---- header ---- */
.clsmt__th {
	font-family: var(--clsmt-font-condensed);
	font-size: var(--font-size-h6, 16px);
	font-style: normal;
	font-weight: 400;
	line-height: 100%;
	text-transform: uppercase;
	color: var(--clsmt-fg);
	padding-bottom: 24px;
	white-space: nowrap;
}

.clsmt .clsmt__table .clsmt__th:first-child {
	padding-left: var(--clsmt-pad-x) !important;
}

.clsmt .clsmt__table .clsmt__th:last-child {
	padding-right: var(--clsmt-pad-x) !important;
}

/* ---- rows ---- */
/* Row dividers are drawn with an inset shadow: themes cannot strip them with border rules. */
.clsmt .clsmt__table .clsmt__row > td {
	height: var(--clsmt-row-h);
	box-shadow: inset 0 1px 0 var(--clsmt-line);
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.clsmt .clsmt__table .clsmt__row > td:first-child {
	padding-left: var(--clsmt-pad-x) !important;
}

.clsmt .clsmt__table .clsmt__row > td:last-child {
	padding-right: var(--clsmt-pad-x) !important;
}

.clsmt .clsmt__table .clsmt__row:last-child > td {
	box-shadow: inset 0 1px 0 var(--clsmt-line), inset 0 -1px 0 var(--clsmt-line);
}

/* ---- cell typography ---- */
.clsmt__rank {
	font-family: var(--clsmt-font-rank);
	font-size: 28px;
	font-style: normal;
	font-weight: 700;
	line-height: 95%;
	letter-spacing: -2.8px;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums; /* equal-width digits so 1 and 2 align */
}

.clsmt__logo img {
	display: block;
	width: 60px;
	height: 60px;
	object-fit: contain;
	border-radius: 50%;
}

.clsmt__team {
	padding-left: 4px;
	font-family: var(--clsmt-font-body);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 130%;
}

.clsmt__stat {
	font-family: var(--clsmt-font-condensed);
	font-size: 22px;
	font-style: normal;
	font-weight: 400;
	line-height: 120%;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---- hover + active (the club own row) ---- */
.clsmt .clsmt__table .clsmt__row:hover > td,
.clsmt .clsmt__table .clsmt__row:focus-within > td,
.clsmt .clsmt__table .clsmt__row.is-active > td {
	background: var(--clsmt-hover-bg) !important;
	background-color: var(--clsmt-hover-bg) !important;
	color: var(--clsmt-hover-fg) !important;
	box-shadow: none;
}

.clsmt .clsmt__table .clsmt__row:hover > td:first-child,
.clsmt .clsmt__table .clsmt__row.is-active > td:first-child {
	border-radius: var(--clsmt-radius) 0 0 var(--clsmt-radius);
}

.clsmt .clsmt__table .clsmt__row:hover > td:last-child,
.clsmt .clsmt__table .clsmt__row.is-active > td:last-child {
	border-radius: 0 var(--clsmt-radius) var(--clsmt-radius) 0;
}

/* kill the divider of the row directly below a highlighted one */
.clsmt .clsmt__table .clsmt__row:hover + .clsmt__row > td,
.clsmt .clsmt__table .clsmt__row.is-active + .clsmt__row > td {
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.clsmt__row > td {
		transition: none;
	}
}

/* ---- mobile ---- */
@media (max-width: 767px) {
	.clsmt {
		--clsmt-pad-x: 16px;
		--clsmt-row-h: 84px;
	}

	.clsmt__table {
		min-width: 820px;
	}

	.clsmt__col-rank {
		width: 76px;
	}

	.clsmt__col-logo {
		width: 68px;
	}

	.clsmt__col-stat {
		width: 96px;
	}

	.clsmt__logo img {
		width: 48px;
		height: 48px;
	}

	.clsmt__rank {
		font-size: 24px;
		letter-spacing: -2.4px;
	}

	.clsmt__stat {
		font-size: 18px;
	}
}

.mda-matches {
	display: grid;
	gap: 1rem;
}

.mda-match {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 1rem;
	align-items: center;
	padding: 1.25rem;
	border: 1px solid rgba(128, 128, 128, 0.25);
	border-radius: 12px;
}

.mda-match__badge {
	grid-column: 1 / -1;
	justify-self: start;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 0.25em 0.75em;
	border-radius: 999px;
	border: 1px solid currentColor;
}

.mda-match--next .mda-match__badge {
	font-weight: 700;
}

.mda-match__teams {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
}

.mda-match__team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	text-align: center;
}

.mda-match__team--winner .mda-match__name {
	font-weight: 700;
}

.mda-match__logo {
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.mda-match__record {
	font-size: 0.8em;
	opacity: 0.7;
}

.mda-match__vs {
	font-size: 1.5em;
	font-weight: 800;
}

.mda-match__when {
	display: flex;
	flex-direction: column;
	text-align: right;
}

.mda-match__date {
	font-size: 1.5em;
	font-weight: 800;
	text-transform: uppercase;
}

.mda-match__ticket,
.mda-calendar-button {
	display: inline-block;
	padding: 0.6em 1.2em;
	border: 1px solid currentColor;
	border-radius: 8px;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.8em;
	letter-spacing: 0.05em;
}

@media (max-width: 640px) {
	.mda-match {
		grid-template-columns: 1fr;
	}

	.mda-match__when {
		text-align: center;
	}
}
