/* Solo visor V6.0: no altera tipografías, colores, menús ni portadas originales. */
#tabclasificaciones {box-sizing:border-box;min-width:0;max-width:100%;}
#tabclasificaciones .czs-tabla-scroll {display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;}
#tabclasificaciones .czs-tabla-scroll table {min-width:max-content;max-width:none;}
#tabclasificaciones .czs-u50-notice {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:78px;padding:14px 10px;color:inherit;font:inherit;text-align:center;}
#tabclasificaciones .czs-u50-wait::before {content:"";display:block;width:22px;height:22px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;animation:czs-u50-rotate .85s linear infinite;}
#tabclasificaciones .czs-u50-notice button {font:inherit;padding:9px 16px;border-radius:7px;cursor:pointer;border:1px solid currentColor;background:transparent;color:inherit;}
@keyframes czs-u50-rotate {to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#tabclasificaciones .czs-u50-wait::before{animation:none}}
/* Ocultar solo si JS marca explícitamente el ranking etario como no aplicable. */
.contenedor__tabla-estadisticas [hidden] {display:none!important;}

/* V6.0 — Paridad visual con competencias participativas actuales (2025/2026).
   Mantener 2 posiciones alineadas; no crear un hueco para edad/categoría.
   No altera diseño de tarjetas competitivas ni estilos compartidos de otras páginas. */
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .segundo-recuadro {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:auto auto;
  min-width:0;
}
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .segundo-recuadro > .tabla-estadisticas_posicion-sexo {
  grid-column:1 / 2 !important;
  grid-row:1 / 2 !important;
  min-width:0;
}
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .segundo-recuadro > .tabla-estadisticas_posicion-general {
  grid-column:2 / 3 !important;
  grid-row:1 / 2 !important;
  min-width:0;
}
/* 2023/2024: ritmo y velocidad vienen agrupados en .ultima-fila. */
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .segundo-recuadro > .ultima-fila {
  grid-column:1 / -1 !important;
  grid-row:2 / 3 !important;
  min-width:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
/* 2022: ritmo y velocidad son hijos directos de .segundo-recuadro. */
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .segundo-recuadro > .tabla-estadisticas_ritmo {
  grid-column:1 / 2 !important;
  grid-row:2 / 3 !important;
  min-width:0;
}
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .segundo-recuadro > .tabla-estadisticas_velocidad {
  grid-column:2 / 3 !important;
  grid-row:2 / 3 !important;
  min-width:0;
}
/* Trofeo de edad desactivado en participativas, preservando el resto. */
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .trofeo-posicion-edad,
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .trofeo-posicion-categoria {display:none!important;}
/* La ausencia de ranking etario no deja un tercer recuadro invisible. */
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .tabla-estadisticas_posicion-edad,
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .tabla-estadisticas_posicion-categoria,
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .tabla-estadisticas_total-corredores {display:none!important;}

/* 2025 participativas también ocultan .posicion-cat, sin afectar competitivas. */
.contenedor__tabla-estadisticas .tabla-estadisticas.czs-competencia-participativa .tabla-estadisticas_posicion-cat{display:none!important}

/* V7.0: one-page table scroll, no extra sheet poller. */
#tabclasificaciones{max-width:100%;min-width:0;overflow-x:hidden}
#tabclasificaciones table{max-width:none}


/* V7.3 — Unicamente celdas Running Team / Team de tablas de clasificacion.
   El CSS historico de 2026 aplica nowrap!important a todos los td;
   esta regla semantica tiene mayor especificidad para la columna marcada
   por el visor y permite nombres largos en varias lineas DENTRO de la celda.
   No modifica las columnas restantes, colores ni el scroll horizontal. */
body.pagina-clasificacion-mobile-fix #tabclasificaciones .czs-tabla-scroll table th.czs-team-col,
body.pagina-clasificacion-mobile-fix #tabclasificaciones .czs-tabla-scroll table td.czs-team-col {
  box-sizing: border-box;
  width: 24rem !important;
  min-width: 24rem !important;
  max-width: 24rem !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: auto;
  vertical-align: middle;
  height: auto !important;
  line-height: 1.35 !important;
}
body.pagina-clasificacion-mobile-fix #tabclasificaciones .czs-tabla-scroll table th.czs-team-col p,
body.pagina-clasificacion-mobile-fix #tabclasificaciones .czs-tabla-scroll table td.czs-team-col p {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.35 !important;
}

/* Rural Run V7.3: el equipo largo en la ficha individual también puede ocupar varias líneas. */
body.pagina-clasificacion-mobile-fix .tabla-estadisticas_running-team p span {
 display:block !important; white-space:normal !important; overflow-wrap:anywhere !important;
 max-width:100% !important; line-height:1.3 !important; height:auto !important;
}
body.pagina-clasificacion-mobile-fix .tabla-estadisticas_running-team {height:auto !important;min-height:0;}
.czs-ruralrun-preview {font-weight:600;}
