/* The fixtures: the look and the names come from tables.css. Fixtures of one day show the day in the title
   and only their times; otherwise without room the time goes first, then the weekday. */

td.day,
td.time {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

td.time {
    padding-right: 1rem;
}

td.team {
    width: 50%;
    max-width: 0;
}

td.team.home {
    text-align: right;
}

td.team.own {
    font-weight: bold;
}

td.result {
    padding: 0.2rem 0.4rem;
    text-align: center;
}

td.result span {
    display: inline-block;
    min-width: 3rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

tr.played td.result span {
    color: var(--on-highlight);
    background-color: var(--highlight);
}

tr.upcoming td.result span {
    color: var(--muted);
}

/* 'upcoming': a dash between the teams instead of the result column */
td.versus {
    padding: 0.2rem 0.3rem;
    text-align: center;
    color: var(--muted);
}

.same-day td.day {
    display: none;
}

@container (max-width: 30rem) {
    .widget-main:not(.same-day) td.time {
        display: none;
    }
}

@container (max-width: 22rem) {
    td.day .weekday {
        display: none;
    }

    td.result span {
        min-width: 2.5rem;
    }
}

/* 'preset': dark with gold, in the columns of classic results tables (type and cells from tables.css) */
.preset td.date {
    text-align: right;
}

.preset th.date,
.preset .side,
.preset .minus {
    text-align: left;
}

.preset .side {
    width: 50%;
    max-width: 0;
}

.preset .plus {
    text-align: right;
}

.preset .colon {
    width: 0.5em;
    padding: 0.5em 0;
}

.preset th.plus,
.preset th.minus {
    min-width: 1.5em;
}

/* the empty column at the end of classic results tables (their replay links) */
.preset .end {
    padding: 0;
}

.preset th.end {
    min-width: 1em;
}

/* the games played a little paler */
.preset tr.played td {
    color: rgba(189, 185, 187, 0.8);
}

/* where the classic results tables switched (measured on their pages): short names below about 36em of their
   type, the year from about 42em */
@container (max-width: 618px) {
    .preset .team .w {
        display: none;
    }

    .preset .team .s {
        display: block;
    }
}

@container (max-width: 714px) {
    .preset .year {
        display: none;
    }
}

