@import "variables.css";

.line-score {
    font-family: var(--page-font-stack);
    font-weight: var(--page-font-weight);
    font-size: max(0.5em, min(3vw, 1.5em));
    table-layout: fixed;
    border-collapse: collapse;
    line-height: 1;
}
.basketball.line-score {
    font-size: max(0.85em, min(3.5vw, 1.5em));
}
.line-score caption, .line-score th, .line-score dt {
    font-family: var(--heading-font-stack);
    font-stretch: var(--heading-font-stretch);
    font-weight: var(--heading-font-weight);
}
.line-score caption, .line-score th, .line-score td {
    padding: 0.25em;
    border: 1px solid currentColor;
}
.line-score caption {
    caption-side: top;
    border-bottom: 0;
    text-align: center;
    /* min-height: 2ic; */
}
.line-score caption time {
    display: block;
}
.line-score tr th:first-child {
    border-right-width: 2px;
}
.line-score tr .final, .line-score tr .runs {
    border-left-width: 2px;
}
.line-score th, .line-score td {
    text-align: right;
    min-width: 2ch;
    min-height: 1ic;
}
.line-score thead th:first-child {
    text-align: center;
}
.line-score tbody th:first-child {
    text-align: right;
}
.line-score caption, .line-score th {
    font-weight: bold;
}
.line-score .lost th {
    font-weight: normal;
}
.line-score .won th {
    font-weight: bold;
}
.line-score th[lang=jp] {
    font-weight: normal;
}
.line-score .final,
.line-score .runs,
.line-score .hits,
.line-score .errors {
    font-weight: bold;
}
.line-score tr.additional-info td {
    text-align: left;
}
.line-score dl,
.line-score dl dt,
.line-score dl dd {
    margin: 0;
    padding: 0;
}
.line-score dl dl,
.line-score dl dt,
.line-score dl dd {
    display: inline;
}
.line-score dl dt::after {
    display: inline;
    content: ": ";
}

.line-score .results {
    background-color: #ddd;
}
@media (prefers-color-scheme: dark) {
    .line-score .results {
        background-color: #333;
    }
}
