/* =========================================================================
   Laboratorio de cuotas de la Ligue 1 — estilos del componente
   Todo el CSS está acotado al id #ligue1-lab.
   Ruta: components/proprietary/proprietary_data.css
   ========================================================================= */

#ligue1-lab {
	/* --- Color --- */
	--l1-bg: #ffffff;
	--l1-panel: #f5f7fb;
	--l1-panel-alt: #eaeff8;
	--l1-ink: #161d33;
	--l1-ink-soft: #59627e;
	--l1-line: #d7deec;
	--l1-line-strong: #b6c2dc;
	--l1-accent: #12307a;
	--l1-accent-soft: #e6ecfa;
	--l1-accent-ink: #ffffff;
	--l1-good: #0d6b4a;
	--l1-good-soft: #e2f2ea;
	--l1-bad: #a72121;
	--l1-bad-soft: #fae9e9;
	--l1-warn: #7a5300;
	--l1-warn-soft: #fbf1dd;
	--l1-flag-blue: #12307a;
	--l1-flag-red: #c8102e;

	/* --- Tipografía --- */
	--l1-font: inherit;
	--l1-fs-base: 15px;
	--l1-fs-small: 13px;
	--l1-fs-eyebrow: 12px;
	--l1-fs-title: 22px;
	--l1-fs-subtitle: 16px;
	--l1-fs-num: 16px;
	--l1-fs-big: 26px;
	--l1-lh: 1.55;
	--l1-weight-strong: 700;

	/* --- Métrica --- */
	--l1-radius: 12px;
	--l1-radius-sm: 8px;
	--l1-gap: 16px;
	--l1-gap-sm: 10px;
	--l1-pad: 20px;
	--l1-shadow: 0 1px 2px rgba(18, 48, 122, 0.07), 0 8px 24px rgba(18, 48, 122, 0.06);

	box-sizing: border-box;
	display: block;
	margin: 32px 0;
	padding: var(--l1-pad);
	border: 1px solid var(--l1-line);
	border-radius: var(--l1-radius);
	background-color: var(--l1-bg);
	box-shadow: var(--l1-shadow);
	color: var(--l1-ink);
	font-family: var(--l1-font);
	font-size: var(--l1-fs-base);
	line-height: var(--l1-lh);
	text-align: left;
}

#ligue1-lab *,
#ligue1-lab *::before,
#ligue1-lab *::after {
	box-sizing: border-box;
}

/* Blindaje frente a los estilos del tema */
#ligue1-lab p,
#ligue1-lab h3,
#ligue1-lab h4,
#ligue1-lab ul,
#ligue1-lab li,
#ligue1-lab table,
#ligue1-lab caption,
#ligue1-lab th,
#ligue1-lab td,
#ligue1-lab label,
#ligue1-lab span,
#ligue1-lab strong,
#ligue1-lab button,
#ligue1-lab input,
#ligue1-lab select {
	color: var(--l1-ink);
	font-family: var(--l1-font);
	line-height: var(--l1-lh);
}

#ligue1-lab p,
#ligue1-lab h3,
#ligue1-lab h4,
#ligue1-lab ul {
	margin: 0;
	padding: 0;
}

#ligue1-lab ul {
	list-style: none;
}

/* ------------------------------ Cabecera ------------------------------ */

#ligue1-lab .l1lab__head {
	margin-bottom: var(--l1-gap);
}

#ligue1-lab .l1lab__eyebrow {
	color: var(--l1-accent);
	font-size: var(--l1-fs-eyebrow);
	font-weight: var(--l1-weight-strong);
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

#ligue1-lab .l1lab__title {
	margin-top: 6px;
	font-size: var(--l1-fs-title);
	font-weight: var(--l1-weight-strong);
	line-height: 1.25;
}

#ligue1-lab .l1lab__tricolor {
	display: flex;
	width: 84px;
	height: 4px;
	margin-top: 10px;
	overflow: hidden;
	border: 1px solid var(--l1-line);
	border-radius: 2px;
}

#ligue1-lab .l1lab__band {
	display: block;
	flex: 1 1 0;
}

#ligue1-lab .l1lab__band--blue {
	background-color: var(--l1-flag-blue);
}

#ligue1-lab .l1lab__band--white {
	background-color: #ffffff;
}

#ligue1-lab .l1lab__band--red {
	background-color: var(--l1-flag-red);
}

#ligue1-lab .l1lab__lede {
	margin-top: 12px;
	color: var(--l1-ink-soft);
	font-size: var(--l1-fs-small);
}

/* ------------------------------ Formularios ------------------------------ */

#ligue1-lab .l1lab__setup {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: var(--l1-gap-sm) var(--l1-gap);
	padding: 14px;
	border: 1px solid var(--l1-line);
	border-radius: var(--l1-radius-sm);
	background-color: var(--l1-panel);
}

#ligue1-lab .l1lab__setup--inline {
	margin-bottom: var(--l1-gap);
}

#ligue1-lab .l1lab__field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 5px;
}

#ligue1-lab .l1lab__field--wide {
	grid-column: 1 / -1;
}

#ligue1-lab .l1lab__field--action {
	justify-content: flex-end;
}

#ligue1-lab .l1lab__label {
	display: block;
	color: var(--l1-ink-soft);
	font-size: var(--l1-fs-small);
	font-weight: var(--l1-weight-strong);
}

#ligue1-lab .l1lab__input {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: 44px;
	padding: 0 10px;
	border: 1px solid var(--l1-line-strong);
	border-radius: var(--l1-radius-sm);
	margin: 0;
	background-color: var(--l1-bg);
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	appearance: none;
	-webkit-appearance: none;
}

#ligue1-lab select.l1lab__input {
	padding-right: 30px;
	background-image: linear-gradient(45deg, transparent 50%, var(--l1-ink-soft) 50%), linear-gradient(135deg, var(--l1-ink-soft) 50%, transparent 50%);
	background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
}

#ligue1-lab .l1lab__input:hover {
	border-color: var(--l1-accent);
}

#ligue1-lab .l1lab__hint {
	color: var(--l1-ink-soft);
	font-size: 12px;
}

#ligue1-lab .l1lab__button {
	display: inline-block;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--l1-accent);
	border-radius: var(--l1-radius-sm);
	margin: 0;
	background-color: var(--l1-accent);
	color: var(--l1-accent-ink);
	cursor: pointer;
	font-size: var(--l1-fs-small);
	font-weight: var(--l1-weight-strong);
	text-align: center;
}

#ligue1-lab .l1lab__button:hover {
	background-color: #0d245c;
}

#ligue1-lab .l1lab__linkButton {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: none;
	color: var(--l1-accent);
	cursor: pointer;
	font-size: 12px;
	font-weight: var(--l1-weight-strong);
	text-decoration: underline;
}

/* ------------------------------ Presets ------------------------------ */

#ligue1-lab .l1lab__presets {
	margin-top: 12px;
}

#ligue1-lab .l1lab__presetsLabel {
	color: var(--l1-ink-soft);
	font-size: 12px;
	font-weight: var(--l1-weight-strong);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

#ligue1-lab .l1lab__presetRow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 7px;
}

#ligue1-lab .l1lab__chip {
	padding: 7px 12px;
	border: 1px solid var(--l1-line-strong);
	border-radius: 999px;
	margin: 0;
	background-color: var(--l1-bg);
	color: var(--l1-accent);
	cursor: pointer;
	font-size: 12px;
	font-weight: var(--l1-weight-strong);
}

#ligue1-lab .l1lab__chip:hover {
	border-color: var(--l1-accent);
	background-color: var(--l1-accent-soft);
}

/* ------------------------------ Avisos ------------------------------ */

#ligue1-lab .l1lab__alert {
	padding: 10px 12px;
	border: 1px solid var(--l1-warn);
	border-radius: var(--l1-radius-sm);
	margin-top: 12px;
	background-color: var(--l1-warn-soft);
	color: var(--l1-warn);
	font-size: var(--l1-fs-small);
	font-weight: var(--l1-weight-strong);
}

#ligue1-lab .l1lab__alert:empty {
	display: none;
}

/* ------------------------------ Pestañas ------------------------------ */

#ligue1-lab .l1lab__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 20px;
	border-bottom: 2px solid var(--l1-line);
}

#ligue1-lab .l1lab__tab {
	padding: 10px 14px;
	border: 0;
	border-bottom: 3px solid transparent;
	margin: 0 0 -2px;
	background: none;
	color: var(--l1-ink-soft);
	cursor: pointer;
	font-size: var(--l1-fs-small);
	font-weight: var(--l1-weight-strong);
}

#ligue1-lab .l1lab__tab:hover {
	color: var(--l1-accent);
}

#ligue1-lab .l1lab__tab[aria-selected="true"] {
	border-bottom-color: var(--l1-accent);
	color: var(--l1-accent);
}

#ligue1-lab .l1lab__panel {
	padding-top: var(--l1-gap);
}

#ligue1-lab .l1lab__subtitle {
	margin-top: 22px;
	margin-bottom: 10px;
	font-size: var(--l1-fs-subtitle);
	font-weight: var(--l1-weight-strong);
}

/* ------------------------------ Tablas ------------------------------ */

#ligue1-lab .l1lab__scroll {
	max-width: 100%;
	border: 1px solid var(--l1-line);
	border-radius: var(--l1-radius-sm);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

#ligue1-lab .l1lab__table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: var(--l1-fs-small);
}

#ligue1-lab .l1lab__caption {
	padding: 10px 12px;
	border-bottom: 1px solid var(--l1-line);
	background-color: var(--l1-panel);
	color: var(--l1-ink-soft);
	font-size: 12px;
	font-weight: var(--l1-weight-strong);
	text-align: left;
}

#ligue1-lab .l1lab__table th,
#ligue1-lab .l1lab__table td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--l1-line);
	white-space: nowrap;
}

#ligue1-lab .l1lab__table thead th {
	background-color: var(--l1-panel-alt);
	color: var(--l1-ink-soft);
	font-size: 12px;
	font-weight: var(--l1-weight-strong);
	text-align: right;
}

#ligue1-lab .l1lab__table thead th:first-child {
	text-align: left;
}

#ligue1-lab .l1lab__table tbody th {
	font-weight: var(--l1-weight-strong);
	text-align: left;
}

#ligue1-lab .l1lab__table tbody tr:last-child th,
#ligue1-lab .l1lab__table tbody tr:last-child td {
	border-bottom: 0;
}

#ligue1-lab .l1lab__num {
	font-size: var(--l1-fs-num);
	font-variant-numeric: tabular-nums;
	text-align: right;
}

#ligue1-lab .l1lab__num--key {
	color: var(--l1-accent);
	font-weight: var(--l1-weight-strong);
}

/* ------------------------------ Tarjetas de dato ------------------------------ */

#ligue1-lab .l1lab__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
	gap: var(--l1-gap-sm);
	margin-top: var(--l1-gap);
}

#ligue1-lab .l1lab__stat {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	border: 1px solid var(--l1-line);
	border-radius: var(--l1-radius-sm);
	background-color: var(--l1-panel);
}

#ligue1-lab .l1lab__stat--wide {
	grid-column: 1 / -1;
}

#ligue1-lab .l1lab__statLabel {
	color: var(--l1-ink-soft);
	font-size: 12px;
	font-weight: var(--l1-weight-strong);
}

#ligue1-lab .l1lab__statValue {
	font-size: 20px;
	font-variant-numeric: tabular-nums;
	font-weight: var(--l1-weight-strong);
}

#ligue1-lab .l1lab__statValue--big {
	color: var(--l1-accent);
	font-size: var(--l1-fs-big);
}

#ligue1-lab .l1lab__statValue--text {
	font-size: var(--l1-fs-small);
	font-weight: 400;
}

#ligue1-lab .l1lab__statValue--flag {
	color: var(--l1-accent);
}

#ligue1-lab .l1lab__statValue--good {
	color: var(--l1-good);
}

#ligue1-lab .l1lab__statValue--bad {
	color: var(--l1-bad);
}

/* ------------------------------ Marcadores ------------------------------ */

#ligue1-lab .l1lab__scores {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
	gap: var(--l1-gap-sm);
}

#ligue1-lab .l1lab__score {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border: 1px solid var(--l1-line);
	border-radius: var(--l1-radius-sm);
	background-color: var(--l1-panel);
	text-align: center;
}

#ligue1-lab .l1lab__scoreLine {
	font-size: 19px;
	font-variant-numeric: tabular-nums;
	font-weight: var(--l1-weight-strong);
}

#ligue1-lab .l1lab__scoreProb {
	color: var(--l1-ink-soft);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

#ligue1-lab .l1lab__scoreOdd {
	color: var(--l1-accent);
	font-size: var(--l1-fs-small);
	font-variant-numeric: tabular-nums;
	font-weight: var(--l1-weight-strong);
}

/* ------------------------------ Veredicto ------------------------------ */

#ligue1-lab .l1lab__verdict {
	padding: 13px 15px;
	border: 1px solid var(--l1-line-strong);
	border-left-width: 4px;
	border-radius: var(--l1-radius-sm);
	margin-top: var(--l1-gap);
	background-color: var(--l1-panel);
	font-size: var(--l1-fs-base);
	font-weight: var(--l1-weight-strong);
}

#ligue1-lab .l1lab__verdict--good {
	border-color: var(--l1-good);
	background-color: var(--l1-good-soft);
	color: var(--l1-good);
}

#ligue1-lab .l1lab__verdict--bad {
	border-color: var(--l1-bad);
	background-color: var(--l1-bad-soft);
	color: var(--l1-bad);
}

#ligue1-lab .l1lab__verdict--neutral {
	border-color: var(--l1-line-strong);
	background-color: var(--l1-panel);
	color: var(--l1-ink);
}

/* ------------------------------ Notas y aviso legal ------------------------------ */

#ligue1-lab .l1lab__note {
	margin-top: var(--l1-gap);
	color: var(--l1-ink-soft);
	font-size: var(--l1-fs-small);
}

#ligue1-lab .l1lab__legal {
	padding-top: 14px;
	border-top: 1px solid var(--l1-line);
	margin-top: 24px;
	color: var(--l1-ink-soft);
	font-size: 12px;
}

/* ------------------------------ Foco visible ------------------------------ */

#ligue1-lab .l1lab__input:focus-visible,
#ligue1-lab .l1lab__button:focus-visible,
#ligue1-lab .l1lab__linkButton:focus-visible,
#ligue1-lab .l1lab__chip:focus-visible,
#ligue1-lab .l1lab__tab:focus-visible,
#ligue1-lab .l1lab__panel:focus-visible,
#ligue1-lab .l1lab__scroll:focus-visible {
	outline: 3px solid var(--l1-accent);
	outline-offset: 2px;
}

#ligue1-lab .l1lab__input:focus,
#ligue1-lab .l1lab__button:focus,
#ligue1-lab .l1lab__linkButton:focus,
#ligue1-lab .l1lab__chip:focus,
#ligue1-lab .l1lab__tab:focus,
#ligue1-lab .l1lab__panel:focus,
#ligue1-lab .l1lab__scroll:focus {
	outline: 3px solid var(--l1-accent);
	outline-offset: 2px;
}

#ligue1-lab .l1lab__input:focus:not(:focus-visible),
#ligue1-lab .l1lab__button:focus:not(:focus-visible),
#ligue1-lab .l1lab__linkButton:focus:not(:focus-visible),
#ligue1-lab .l1lab__chip:focus:not(:focus-visible),
#ligue1-lab .l1lab__tab:focus:not(:focus-visible),
#ligue1-lab .l1lab__panel:focus:not(:focus-visible),
#ligue1-lab .l1lab__scroll:focus:not(:focus-visible) {
	outline: none;
}

/* ------------------------------ Movimiento ------------------------------ */

#ligue1-lab .l1lab__tab,
#ligue1-lab .l1lab__chip,
#ligue1-lab .l1lab__button,
#ligue1-lab .l1lab__input {
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

@media (prefers-reduced-motion: reduce) {
	#ligue1-lab .l1lab__tab,
	#ligue1-lab .l1lab__chip,
	#ligue1-lab .l1lab__button,
	#ligue1-lab .l1lab__input {
		transition: none;
	}
}

/* ------------------------------ Ocultar ------------------------------ */

#ligue1-lab [hidden] {
	display: none !important;
}
