/* CubshQ MLB standings. Bump cnet version_css_main after edits. */

.mlb-st {
    --mlb-navy: #0E3386;
    --mlb-red: #D12325;
    --mlb-ink: #1d1d1f;
    --mlb-muted: #5a5a60;
    --mlb-line: rgba(14, 51, 134, 0.16);
    --mlb-card: #fff;
    --mlb-wash: #e8eef8;
    color: var(--mlb-ink);
    padding: 0 0 32px;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

html.dark-mode .mlb-st {
    --mlb-ink: var(--dm-text-primary, #f1f5f9);
    --mlb-muted: var(--dm-text-secondary, #bbb);
    --mlb-line: rgba(255, 255, 255, 0.14);
    --mlb-card: var(--dm-bg-elevated, #1c1f25);
    --mlb-wash: rgba(14, 51, 134, 0.38);
    color: var(--dm-text-primary, #f1f5f9);
}

.mlb-st__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    background: linear-gradient(125deg, #0E3386 0%, #071a45 72%);
    color: #fff;
    border-radius: 12px;
    padding: 22px 20px 18px;
    margin-bottom: 18px;
}

.mlb-st__kicker {
    margin: 0 0 6px;
    color: #ffb4b4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mlb-st__hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font: 400 clamp(26px, 4vw, 40px)/1.15 Georgia, "Times New Roman", serif;
}

.mlb-st__updated {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.mlb-st__switch {
    position: relative;
}

.mlb-st__tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mlb-st__tablist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0 0 14px;
    padding: 4px;
    background: var(--mlb-wash);
    border-radius: 10px;
}

.mlb-st__tab {
    display: block;
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--mlb-navy);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

html.dark-mode .mlb-st__tab {
    color: var(--dm-text-primary, #f1f5f9);
}

#mlb-st-tab-div:checked ~ .mlb-st__tablist label[for="mlb-st-tab-div"],
#mlb-st-tab-wc:checked ~ .mlb-st__tablist label[for="mlb-st-tab-wc"] {
    background: var(--mlb-navy);
    color: #fff;
}

html.dark-mode #mlb-st-tab-div:checked ~ .mlb-st__tablist label[for="mlb-st-tab-div"],
html.dark-mode #mlb-st-tab-wc:checked ~ .mlb-st__tablist label[for="mlb-st-tab-wc"] {
    background: #3d6fd1;
    color: #fff;
}

#mlb-st-tab-div:focus-visible ~ .mlb-st__tablist label[for="mlb-st-tab-div"],
#mlb-st-tab-wc:focus-visible ~ .mlb-st__tablist label[for="mlb-st-tab-wc"] {
    outline: 2px solid var(--mlb-navy);
    outline-offset: 2px;
}

html.dark-mode #mlb-st-tab-div:focus-visible ~ .mlb-st__tablist label[for="mlb-st-tab-div"],
html.dark-mode #mlb-st-tab-wc:focus-visible ~ .mlb-st__tablist label[for="mlb-st-tab-wc"] {
    outline-color: #fff;
}

.mlb-st__panel {
    display: none;
}

#mlb-st-tab-div:checked ~ .mlb-st__panel--div,
#mlb-st-tab-wc:checked ~ .mlb-st__panel--wc {
    display: block;
}

.mlb-st__cubs {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.mlb-st__cubs-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 4px;
}

.mlb-st__cubs-name,
.mlb-st__cubs-record,
.mlb-st__cubs-place,
.mlb-st__cubs-wc {
    margin: 0;
    color: #fff;
}

.mlb-st__cubs-name {
    font-weight: 700;
}

.mlb-st__cubs-record {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.mlb-st__cubs-place {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
}

.mlb-st__cubs-wc {
    margin-top: 2px;
    color: #ffb4b4;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mlb-st__empty {
    color: var(--mlb-muted);
    font-size: 13px;
}

.mlb-st__card {
    background: var(--mlb-card);
    border: 1px solid var(--mlb-line);
    border-radius: 12px;
    padding: 10px 10px 6px;
    margin-bottom: 14px;
    min-width: 0;
    overflow: hidden;
}

.mlb-st__card--nlc {
    box-shadow: inset 4px 0 0 var(--mlb-red);
}

.mlb-st__card h3 {
    margin: 0 0 8px;
    color: var(--mlb-navy);
    font-size: 15px;
    font-weight: 800;
}

html.dark-mode .mlb-st__card h3 {
    color: var(--dm-text-primary, #f1f5f9);
}

.mlb-st__card--al {
    opacity: 0.96;
}

.mlb-st__nl-split,
.mlb-st__al-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
    min-width: 0;
}

.mlb-st__nl-split .mlb-st__card,
.mlb-st__al-split .mlb-st__card {
    margin-bottom: 0;
}

.mlb-st__nl-split .mlb-st__name,
.mlb-st__al-split .mlb-st__name {
    display: none;
}

.mlb-st__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    max-width: 100%;
}

.mlb-st__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
    color: var(--mlb-ink);
}

.mlb-st .mlb-st__table thead th {
    text-align: right;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--mlb-navy);
    color: #fff;
    font-weight: 700;
    padding: 7px 6px;
    border-bottom: 0;
    white-space: nowrap;
}

html.dark-mode .mlb-st .mlb-st__table thead th {
    background: #163a7a;
    color: #fff;
}

.mlb-st .mlb-st__table th:first-child,
.mlb-st .mlb-st__table td:first-child,
.mlb-st .mlb-st__table td.mlb-st__team {
    text-align: left;
}

.mlb-st__table td {
    padding: 6px 6px;
    border-bottom: 1px solid var(--mlb-line);
    white-space: nowrap;
    vertical-align: middle;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--mlb-ink);
}

.mlb-st__table tbody tr:last-child td {
    border-bottom: 0;
}

.mlb-st__team-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.mlb-st__rk {
    display: inline-block;
    min-width: 14px;
    color: var(--mlb-muted);
    font-weight: 700;
}

.mlb-st__logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 18px;
}

.mlb-st__name {
    font-weight: 600;
}

.mlb-st__abbr {
    color: var(--mlb-muted);
    font-size: 11px;
    font-weight: 700;
}

.mlb-st__clinch {
    display: inline-block;
    margin-left: 2px;
    padding: 1px 5px;
    border-radius: 999px;
    background: var(--mlb-navy);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

html.dark-mode .mlb-st__clinch {
    background: #3d6fd1;
    color: #fff;
}

.mlb-st__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0 0 12px;
    color: var(--mlb-muted);
    font-size: 12px;
}

html.dark-mode .mlb-st__legend {
    color: var(--dm-text-secondary, #bbb);
}

.mlb-st__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mlb-st__legend-sep {
    color: var(--mlb-muted);
}

.mlb-st__legend .mlb-st__clinch {
    margin-left: 0;
}

.mlb-st__dash {
    color: var(--mlb-muted);
}

.mlb-st__table tr.is-cubs td {
    background: var(--mlb-wash);
    box-shadow: inset 4px 0 0 var(--mlb-navy);
    font-weight: 700;
}

html.dark-mode .mlb-st__table tr.is-cubs td {
    color: var(--dm-text-primary, #f1f5f9);
}

.mlb-st__table tr.is-cut td {
    border-bottom: 2px dashed var(--mlb-red);
}

@media (max-width: 720px) {
    .mlb-st__nl-split,
    .mlb-st__al-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .mlb-st__card {
        padding: 10px 8px 6px;
    }

    .mlb-st .mlb-st__table thead th,
    .mlb-st__table td {
        padding: 6px 4px;
    }

    .mlb-st__extra {
        display: none;
    }

    .mlb-st__card--wc .mlb-st__abbr {
        display: none;
    }
}
