/* ==========================================================================
   ServeOdds — Laboratorio de cuotas de tenis
   components/proprietary/proprietary_data.css
   Todo el CSS está limitado al contenedor #tenis-cuotas-lab.
   ========================================================================== */

#tenis-cuotas-lab {
	/* ---- Paleta (ajústala aquí para encajar con el tema) ---- */
	--tcl-bg: #ffffff;
	--tcl-bg-soft: #f4f7fb;
	--tcl-bg-sunken: #eef2f8;
	--tcl-border: #d8e0ec;
	--tcl-border-strong: #b9c6d8;
	--tcl-text: #16212f;
	--tcl-text-soft: #55647a;
	--tcl-accent: #12507e;
	--tcl-accent-soft: #e3edf6;
	--tcl-accent-b: #b4651c;
	--tcl-accent-b-soft: #fbeee0;
	--tcl-good: #1c6b45;
	--tcl-good-soft: #e4f3ec;
	--tcl-bad: #963126;
	--tcl-bad-soft: #fbeae7;
	--tcl-focus: #12507e;

	/* ---- Tipografía ---- */
	--tcl-font: inherit;
	--tcl-fs-base: 1rem;
	--tcl-fs-small: 0.875rem;
	--tcl-fs-tiny: 0.8125rem;
	--tcl-fs-title: 1.5rem;
	--tcl-fs-h4: 1.0625rem;
	--tcl-fs-hero: 2.25rem;
	--tcl-lh: 1.6;

	/* ---- Métricas ---- */
	--tcl-radius: 10px;
	--tcl-radius-sm: 7px;
	--tcl-gap: 20px;
	--tcl-pad: 20px;

	/* ---- Estado dinámico (lo sobrescribe el JS) ---- */
	--tcl-bar-a: 69.11%;

	box-sizing: border-box;
	max-width: 100%;
	margin: 2.5rem 0;
	padding: var(--tcl-pad);
	border: 1px solid var(--tcl-border);
	border-radius: var(--tcl-radius);
	background-color: var(--tcl-bg);
	color: var(--tcl-text);
	font-family: var(--tcl-font);
	font-size: var(--tcl-fs-base);
	line-height: var(--tcl-lh);
}

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

#tenis-cuotas-lab p,
#tenis-cuotas-lab dl,
#tenis-cuotas-lab dt,
#tenis-cuotas-lab dd,
#tenis-cuotas-lab table,
#tenis-cuotas-lab h3,
#tenis-cuotas-lab h4 {
	margin: 0;
	padding: 0;
	color: inherit;
}

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

#tenis-cuotas-lab .tcl__head {
	margin-bottom: 18px;
}

#tenis-cuotas-lab .tcl__kicker {
	margin-bottom: 6px;
	color: var(--tcl-accent);
	font-size: var(--tcl-fs-tiny);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#tenis-cuotas-lab .tcl__title {
	margin-bottom: 8px;
	font-size: var(--tcl-fs-title);
	font-weight: 700;
	line-height: 1.25;
}

#tenis-cuotas-lab .tcl__lead {
	max-width: 68ch;
	color: var(--tcl-text-soft);
	font-size: var(--tcl-fs-small);
}

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

#tenis-cuotas-lab .tcl__tabsbar {
	margin-bottom: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	border-bottom: 2px solid var(--tcl-border);
}

#tenis-cuotas-lab .tcl__tablist {
	display: flex;
	gap: 4px;
	width: max-content;
}

#tenis-cuotas-lab .tcl__tab {
	flex: 0 0 auto;
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	background: none;
	color: var(--tcl-text-soft);
	font-family: inherit;
	font-size: var(--tcl-fs-small);
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease;
}

#tenis-cuotas-lab .tcl__tab:hover {
	color: var(--tcl-accent);
}

#tenis-cuotas-lab .tcl__tab--on {
	border-bottom-color: var(--tcl-accent);
	color: var(--tcl-accent);
}

/* ---------- Rejilla ---------- */

#tenis-cuotas-lab .tcl__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: var(--tcl-gap);
	align-items: start;
}

#tenis-cuotas-lab .tcl__controls,
#tenis-cuotas-lab .tcl__results {
	min-width: 0;
}

#tenis-cuotas-lab .tcl__controls {
	padding: 16px;
	border: 1px solid var(--tcl-border);
	border-radius: var(--tcl-radius-sm);
	background-color: var(--tcl-bg-soft);
}

#tenis-cuotas-lab .tcl__h4 {
	margin-bottom: 8px;
	font-size: var(--tcl-fs-h4);
	font-weight: 700;
}

#tenis-cuotas-lab .tcl__results .tcl__h4 {
	margin-top: 18px;
}

#tenis-cuotas-lab .tcl__hint,
#tenis-cuotas-lab .tcl__note {
	color: var(--tcl-text-soft);
	font-size: var(--tcl-fs-tiny);
	line-height: 1.55;
}

#tenis-cuotas-lab .tcl__hint {
	margin-bottom: 16px;
}

#tenis-cuotas-lab .tcl__note {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--tcl-border);
}

/* ---------- Campos ---------- */

#tenis-cuotas-lab .tcl__field {
	display: block;
	margin-bottom: 16px;
}

#tenis-cuotas-lab .tcl__field:last-of-type {
	margin-bottom: 0;
}

#tenis-cuotas-lab .tcl__label {
	display: block;
	margin-bottom: 6px;
	color: var(--tcl-text);
	font-size: var(--tcl-fs-tiny);
	font-weight: 600;
}

#tenis-cuotas-lab .tcl__input,
#tenis-cuotas-lab .tcl__select {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--tcl-border-strong);
	border-radius: var(--tcl-radius-sm);
	background-color: var(--tcl-bg);
	color: var(--tcl-text);
	font-family: inherit;
	/* 16px evita el zoom automático de iOS al enfocar el campo */
	font-size: 16px;
	line-height: 1.35;
}

#tenis-cuotas-lab .tcl__input {
	font-variant-numeric: tabular-nums;
}

#tenis-cuotas-lab .tcl__sliderwrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

#tenis-cuotas-lab .tcl__range {
	flex: 1 1 160px;
	min-width: 0;
	height: 28px;
	margin: 0;
	padding: 0;
	background: none;
	accent-color: var(--tcl-accent);
	cursor: pointer;
}

#tenis-cuotas-lab .tcl__out {
	flex: 0 0 auto;
	min-width: 72px;
	padding: 4px 8px;
	border: 1px solid var(--tcl-border-strong);
	border-radius: var(--tcl-radius-sm);
	background-color: var(--tcl-bg);
	color: var(--tcl-accent);
	font-size: 15px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

/* ---------- Bloque destacado ---------- */

#tenis-cuotas-lab .tcl__hero {
	padding: 16px;
	border: 1px solid var(--tcl-border);
	border-radius: var(--tcl-radius-sm);
	background-color: var(--tcl-bg-sunken);
}

#tenis-cuotas-lab .tcl__hero-label {
	margin-bottom: 10px;
	color: var(--tcl-text-soft);
	font-size: var(--tcl-fs-tiny);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

#tenis-cuotas-lab .tcl__hero-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

#tenis-cuotas-lab .tcl__hero-side {
	flex: 1 1 130px;
	min-width: 0;
	padding: 10px 12px;
	border-radius: var(--tcl-radius-sm);
	background-color: var(--tcl-accent-soft);
}

#tenis-cuotas-lab .tcl__hero-side--b {
	background-color: var(--tcl-accent-b-soft);
}

#tenis-cuotas-lab .tcl__hero-name {
	display: block;
	color: var(--tcl-text-soft);
	font-size: var(--tcl-fs-tiny);
	font-weight: 600;
}

#tenis-cuotas-lab .tcl__hero-num {
	display: block;
	color: var(--tcl-accent);
	font-size: var(--tcl-fs-hero);
	font-weight: 800;
	line-height: 1.15;
	font-variant-numeric: tabular-nums;
	word-break: break-word;
}

#tenis-cuotas-lab .tcl__hero-side--b .tcl__hero-num {
	color: var(--tcl-accent-b);
}

#tenis-cuotas-lab .tcl__hero-odds {
	display: block;
	color: var(--tcl-text-soft);
	font-size: var(--tcl-fs-tiny);
	font-variant-numeric: tabular-nums;
}

#tenis-cuotas-lab .tcl__hero--single {
	text-align: center;
}

#tenis-cuotas-lab .tcl__hero--single .tcl__hero-num {
	margin-bottom: 4px;
}

/* ---------- Barra de probabilidad ---------- */

#tenis-cuotas-lab .tcl__bar {
	display: flex;
	overflow: hidden;
	width: 100%;
	height: 12px;
	margin-top: 12px;
	border-radius: 999px;
	background-color: var(--tcl-bg);
}

#tenis-cuotas-lab .tcl__bar-a {
	flex: 0 0 var(--tcl-bar-a);
	background-color: var(--tcl-accent);
}

#tenis-cuotas-lab .tcl__bar-b {
	flex: 1 1 auto;
	background-color: var(--tcl-accent-b);
}

/* ---------- Listas de resultados ---------- */

#tenis-cuotas-lab .tcl__dl {
	display: block;
	margin-top: 4px;
}

#tenis-cuotas-lab .tcl__row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
	justify-content: space-between;
	padding: 9px 0;
	border-bottom: 1px solid var(--tcl-border);
}

#tenis-cuotas-lab .tcl__dt {
	flex: 1 1 150px;
	min-width: 0;
	color: var(--tcl-text-soft);
	font-size: var(--tcl-fs-small);
}

#tenis-cuotas-lab .tcl__dd {
	flex: 0 0 auto;
	color: var(--tcl-text);
	font-size: var(--tcl-fs-small);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

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

#tenis-cuotas-lab .tcl__verdict {
	padding: 12px 14px;
	border: 1px solid var(--tcl-border);
	border-radius: var(--tcl-radius-sm);
	background-color: var(--tcl-bg-sunken);
	color: var(--tcl-text);
	font-size: var(--tcl-fs-small);
	font-weight: 700;
}

#tenis-cuotas-lab .tcl__verdict--yes {
	border-color: var(--tcl-good);
	background-color: var(--tcl-good-soft);
	color: var(--tcl-good);
}

#tenis-cuotas-lab .tcl__verdict--no {
	border-color: var(--tcl-bad);
	background-color: var(--tcl-bad-soft);
	color: var(--tcl-bad);
}

/* ---------- Tabla ---------- */

#tenis-cuotas-lab .tcl__tablewrap {
	overflow-x: auto;
	margin-top: 4px;
}

#tenis-cuotas-lab .tcl__table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--tcl-fs-tiny);
	font-variant-numeric: tabular-nums;
}

#tenis-cuotas-lab .tcl__caption {
	padding-bottom: 8px;
	color: var(--tcl-text-soft);
	font-size: var(--tcl-fs-tiny);
	text-align: left;
}

#tenis-cuotas-lab .tcl__table th,
#tenis-cuotas-lab .tcl__table td {
	padding: 9px 10px;
	border: 1px solid var(--tcl-border);
	color: inherit;
	text-align: right;
	white-space: nowrap;
}

#tenis-cuotas-lab .tcl__table thead th {
	background-color: var(--tcl-bg-soft);
	font-weight: 700;
}

#tenis-cuotas-lab .tcl__table tbody th {
	background-color: var(--tcl-bg-soft);
	font-weight: 700;
	text-align: left;
}

#tenis-cuotas-lab .tcl__table thead th:first-child {
	text-align: left;
}

/* ---------- Pie ---------- */

#tenis-cuotas-lab .tcl__foot {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--tcl-border);
}

#tenis-cuotas-lab .tcl__disclaimer {
	color: var(--tcl-text-soft);
	font-size: var(--tcl-fs-tiny);
	line-height: 1.55;
}

#tenis-cuotas-lab .tcl__disclaimer strong {
	color: var(--tcl-text);
}

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

#tenis-cuotas-lab .tcl__tab:focus-visible,
#tenis-cuotas-lab .tcl__input:focus-visible,
#tenis-cuotas-lab .tcl__select:focus-visible,
#tenis-cuotas-lab .tcl__range:focus-visible,
#tenis-cuotas-lab .tcl__panel:focus-visible {
	outline: 3px solid var(--tcl-focus);
	outline-offset: 2px;
}

/* ---------- Ocultación: debe ir después de las reglas de display ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
	#tenis-cuotas-lab .tcl__tab {
		transition: none;
	}
}
