body {
    font-variant-numeric: tabular-nums;
}

.message {
    border-radius: 6px;
    padding: 10px;
}

.message.red {
    background-color: rgb(236, 155, 155);
    color: rgb(144, 2, 2);
    border-color: rgb(144, 2, 2);
}

.results {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.results td {
    padding: clamp(2px, 1vw, 8px);
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    white-space: nowrap;
    text-align: right;
}

.results td:first-child {
    font-size: clamp(0.8rem, 2vw, 1rem);
    text-align: left;
}

.results col.team { width: 39%; }
.results col.number { width: 12%; }
.results col.category { width: 5%; }

.listing {
    table-layout: fixed;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    width: 1200px;
    max-width: 1200px;
    margin: 0 auto;
}

.listing th, .listing td {
    padding: clamp(4px, 1.5vw, 10px);
}

.listing col.id { width: 7.5%; }
.listing col.name { width: 27%; }
.listing col.date { width: 14%; }
.listing col.kind { width: 12%; }
.listing col.editors { width: 25.5%; }
.listing td.editors { font-size: 0.9em; }

.filters label { margin-right: 15px; }

/* The tournament list is wider than the page, so it breaks out of the column. */
.wide {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: auto;
}

.narrow {
    max-width: 800px;
    margin: 0 auto;
}

@media (pointer: coarse), (hover: none) {
    [title] {
        position: relative;
        display: inline-flex;
        justify-content: center;
    }
    [title]:focus::after {
        content: attr(title);
        position: absolute;
        top: 90%;
        color: #000;
        background-color: #fff;
        border: 1px solid;
        width: fit-content;
        padding: 3px;
        font-size: 10px;
    }
}
