/* CubsHQ 40-man contracts. Bump cnet version_css_main after edits. */

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

html.dark-mode .cubs-ct {
    --cubs-ink: var(--dm-text-primary, #f1f5f9);
    --cubs-muted: var(--dm-text-secondary, #bbb);
    --cubs-line: rgba(255, 255, 255, 0.14);
    --cubs-card: var(--dm-bg-elevated, #1c1f25);
    color: var(--dm-text-primary, #f1f5f9);
}

.cubs-ct__hero {
    background: linear-gradient(125deg, #0E3386 0%, #071a45 72%);
    color: #fff;
    border-radius: 12px;
    padding: 22px 20px 18px;
    margin-bottom: 14px;
}

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

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

html.dark-mode .cubs-ct__hero h1 {
    color: #fff;
}

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

.cubs-ct__chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 16px;
}

.cubs-ct__chip {
    border: 1px solid var(--cubs-line);
    border-radius: 12px;
    background: var(--cubs-card);
    padding: 14px 16px;
}

.cubs-ct__chip-label {
    display: block;
    margin: 0 0 4px;
    color: var(--cubs-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html.dark-mode .cubs-ct__chip-label {
    color: var(--dm-text-secondary, #bbb);
}

.cubs-ct__chip-value {
    display: block;
    color: var(--cubs-navy);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
}

html.dark-mode .cubs-ct__chip-value {
    color: var(--dm-text-primary, #f1f5f9);
}

.cubs-ct__admin {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--cubs-muted);
}

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

.cubs-ct__admin a {
    color: var(--cubs-orange);
    font-weight: 700;
}

.cubs-ct__empty {
    margin: 0 0 12px;
    color: var(--cubs-muted);
    font-size: 14px;
}

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

.cubs-ct__note {
    margin: 12px 0 0;
    color: var(--cubs-muted);
    font-size: 13px;
    line-height: 1.45;
}

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

.cubs-ct__scroll {
    overflow-x: auto;
    max-width: 100%;
    border: 1px solid var(--cubs-line);
    border-radius: 12px;
    background: var(--cubs-card);
}

.cubs-ct__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 780px;
}

.cubs-ct__table th,
.cubs-ct__table td {
    padding: 8px 10px;
    text-align: right;
    white-space: nowrap;
    border-bottom: 1px solid var(--cubs-line);
}

.cubs-ct .cubs-ct__table thead th {
    background: var(--cubs-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom: 0;
}

html.dark-mode .cubs-ct .cubs-ct__table thead th {
    background: #163a7a;
    color: #fff;
}

.cubs-ct__name,
.cubs-ct__table td.cubs-ct__name {
    text-align: left;
    font-weight: 600;
}

.cubs-ct__name a {
    color: inherit;
    text-decoration: none;
}

.cubs-ct__name a:hover {
    text-decoration: underline;
}

.cubs-ct .cubs-ct__group th {
    background: var(--cubs-orange);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    padding: 8px 10px;
    text-transform: none;
    letter-spacing: 0;
}

html.dark-mode .cubs-ct .cubs-ct__group th {
    background: var(--cubs-orange);
    color: #fff;
}

.cubs-ct__min {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 10px;
    background: #f3f3f3;
    color: #666;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

html.dark-mode .cubs-ct__min {
    background: rgba(255, 255, 255, 0.12);
    color: var(--dm-text-muted, #a0a0a0);
}

.cubs-ct__num {
    font-variant-numeric: tabular-nums;
}

.cubs-ct__share {
    display: block;
    margin-top: 2px;
    color: var(--cubs-muted);
    font-size: 11px;
    font-weight: 600;
    white-space: normal;
    line-height: 1.25;
}

html.dark-mode .cubs-ct__share {
    color: var(--dm-text-muted, #a0a0a0);
}

@media (max-width: 720px) {
    .cubs-ct__chips {
        grid-template-columns: 1fr;
    }

    .cubs-ct__chip-value {
        font-size: 24px;
    }
}
