/* % de LAE en tres barras de pie (graficaLAEHTML, assets/js/grafica-lae.js): 1, X y 2 con su
   columna, en los colores del tema; la del signo que ha salido, marcada. */
.jl-glae {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 22px;
    height: 92px;
    margin: 2px 0 6px;
}

.jl-glae-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 44px;
    height: 100%;
}

.jl-glae-col b {
    font-family: var(--jl-font-fila);
    font-size: 15px;
    line-height: 1.2;
    color: var(--text-primary);
}

.jl-glae-col i {
    display: block;
    width: 100%;
    border-radius: 2px 2px 0 0;
    background: var(--bar-1);
}

.jl-glae-col.sX i { background: var(--bar-x); }
.jl-glae-col.s2 i { background: var(--bar-2); }

.jl-glae-col em {
    font-family: var(--jl-font-fila);
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-secondary);
}

.jl-glae-col.salio em {
    color: var(--text-primary);
    text-decoration: underline 2px;
    text-underline-offset: 3px;
}

/* Previa corta de la ficha (C-728, partidoFichaPreviaHtml): clasificación
   de los dos, últimos 5 (G verde, E gris, P rojo; C en casa, F fuera) y
   los últimos cara a cara. */
.jl-previa {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.jl-previa-bloque h3 {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.jl-previa-bloque h3 small {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.jl-previa-clasif {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.jl-previa-clasif td,
.jl-previa-clasif th {
    padding: 2px 4px;
    text-align: left;
    white-space: nowrap;
}

.jl-previa-clasif th {
    width: 100%;
    font-weight: 600;
    white-space: normal;
}

.jl-previa-clasif td:first-child {
    width: 2.4em;
    font-weight: 700;
}

.jl-previa-clasif td:not(:first-child) {
    color: var(--text-secondary);
}

.jl-previa-clasif td b {
    color: var(--text-primary);
}

/* El local en casa y el visitante fuera (C-804). */
.jl-previa-casa {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.jl-previa-casa td,
.jl-previa-casa th {
    padding: 2px 4px;
    text-align: right;
    font-weight: 400;
    color: var(--text-secondary);
}

.jl-previa-casa thead th { font-size: 12px; }

.jl-previa-casa tbody th {
    width: 100%;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

.jl-previa-casa tbody th small {
    white-space: nowrap;
    font-weight: 400;
    color: var(--text-secondary);
}

.jl-previa-casa td b { color: var(--text-primary); }

.jl-previa-racha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
}

.jl-previa-racha > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.jl-previa-racha ol {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: none;
}

.jl-previa-racha li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 22px;
    line-height: 1;
}

.jl-previa-racha li b {
    display: block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    color: #ffffff;
    background: #9aa3ad;
}

.jl-previa-racha li.res-g b { background: #2e9e5b; }
.jl-previa-racha li.res-p b { background: #d64545; }

.jl-previa-racha li small {
    margin-top: 2px;
    font-size: 10px;
    color: var(--text-secondary);
}

.jl-previa-balance {
    margin: 0 0 4px;
    color: var(--text-secondary);
}

.jl-previa-balance b {
    color: var(--text-primary);
}

.jl-previa-cara {
    margin: 0;
    padding: 0;
    list-style: none;
}

.jl-previa-cara li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.jl-previa-fecha {
    color: var(--text-secondary);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

[data-theme="teletexto"] .jl-previa-bloque h3 { color: #00ffff; }
[data-theme="teletexto"] .jl-previa-racha li b { border-radius: 0; color: #000000; background: #ffffff; }
[data-theme="teletexto"] .jl-previa-racha li.res-g b { background: #00ff00; }
[data-theme="teletexto"] .jl-previa-racha li.res-p b { background: #ff0000; color: #ffffff; }
[data-theme="teletexto"] .jl-previa-clasif td b,
[data-theme="teletexto"] .jl-previa-casa td b,
[data-theme="teletexto"] .jl-previa-balance b { color: #ffff00; }

/* El signo de quiniela de un partido ya jugado (últimos y cara a cara). */
.pt-signo {
    flex: none;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    text-align: center;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--jl-font-fila);
}

.pt-signo.s1 { background: var(--signo-1); color: var(--signo-1-text); }
.pt-signo.sX { background: var(--signo-x); color: var(--signo-x-text); }
.pt-signo.s2 { background: var(--signo-2); color: var(--signo-2-text); }
