/**
 * Sports Section Styles — BRIEF-SPORTS-C8 (+ addendum, 2026-09-19).
 * Scoped entirely under .cct-sports. No design-token system exists in this
 * theme (checked — no --cct-* custom properties anywhere), so literal values
 * below are copied from briefing.css rather than introducing a token layer
 * unilaterally. Colors match briefing.css / grid-view.css's palette by eye.
 */

/* ========================================
   Fixed-header offset
   ⛔ 486cbb11 made briefing.css LOAD here (fixes the oversized logo) but never
   gave .cct-sports the offset a fixed 60px header needs — every other briefing
   surface gets that from ITS OWN wrapper (.dashboard-generated in
   dashboard-generated.css), which this template does not use. Same mechanism,
   ported: zero Astra's wrapper spacing, then pad the content element itself.
   ======================================== */

.briefing-page .site-content,
.briefing-page #primary.content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.cct-sports {
    padding-top: 60px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 48px;
    box-sizing: border-box;
    color: #1A1A2E;
    font-size: 15px;
    line-height: 1.5;
}

.admin-bar .cct-sports {
    padding-top: 92px; /* 60px header + 32px admin bar, matches briefing.css */
}

@media screen and (max-width: 782px) {
    .admin-bar .cct-sports {
        padding-top: 106px; /* 60px header + 46px mobile admin bar */
    }
}

/* Standings needs more room than 800px at 32 rows; team/school stay narrow. */
.cct-sports-league {
    max-width: 900px;
}

@media (max-width: 600px) {
    .cct-sports {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ========================================
   Breadcrumb
   ======================================== */

.cct-sports-breadcrumb {
    font-size: 13px;
    color: #8E8EA0;
    margin: 0 0 12px;
}

.cct-sports-breadcrumb a {
    color: #8E8EA0;
    text-decoration: none;
}

.cct-sports-breadcrumb a:hover {
    color: #046BD2;
    text-decoration: underline;
}

.cct-sports-breadcrumb-sep {
    margin: 0 4px;
    color: #CBD5E1;
}

/* ========================================
   Heading
   ======================================== */

.cct-sports-h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 24px;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .cct-sports-h1 {
        font-size: 22px;
    }
}

/* HUB930b (Justin 09-30): league, NCAA and conference pages open with the
   hub's slate band (sports-hub.css .cct-hub-band): what kind of page, the
   title, and one line of facts the page already prints. */
.cct-sports-band {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    border-radius: 14px;
    padding: 18px 22px;
    margin: 0 0 16px;
}

.cct-sports-band-eyebrow {
    margin: 0 0 2px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}

.cct-sports-band .cct-sports-h1 {
    margin: 0;
    color: #fff;
    font-weight: 750;
    line-height: 1.15;
    text-wrap: balance;
}

.cct-sports-band-sub {
    margin: 5px 0 0;
    font-size: 14.5px;
    opacity: 0.88;
}

@media (max-width: 480px) {
    .cct-sports-band {
        padding: 16px 16px;
    }
}

/* ========================================
   Empty state — a normal fact, not a warning
   ======================================== */

.cct-sports-empty {
    color: #4A4A68;
    font-size: 14px;
    padding: 16px 0;
    margin: 0;
    border-top: 1px solid #E5E7EB;
}

/* ========================================
   Cards (team / school)
   ======================================== */

.cct-sports-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cct-sports-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #ffffff;
    padding: 20px;
}

.cct-sports-card-lead {
    border-color: #046BD2;
    box-shadow: 0 1px 3px rgba(4, 107, 210, 0.12);
}

.cct-sports-card-sport {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #046BD2;
    margin: 0 0 10px;
}

.cct-sports-card-sport a {
    color: inherit;
    text-decoration: none;
}

.cct-sports-card-sport a:hover,
.cct-sports-card-sport a:focus {
    text-decoration: underline;
}

.cct-sports-card-lead .cct-sports-card-sport::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #046BD2;
    margin-right: 6px;
}

.cct-sports-record {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A2E;
    margin: 0 0 8px;
}

.cct-sports-headline {
    font-size: 14px;
    color: #4A4A68;
    margin: 0 0 8px;
}

.cct-sports-next {
    font-size: 14px;
    color: #1A1A2E;
    background: #F7F8FA;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 0 0 4px;
}

.cct-sports-upcoming,
.cct-sports-recent {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    font-size: 13px;
    color: #4A4A68;
}

.cct-sports-upcoming li,
.cct-sports-recent li {
    padding: 4px 0;
    border-top: 1px solid #F0F1F3;
}

.cct-sports-upcoming li:first-child,
.cct-sports-recent li:first-child {
    border-top: none;
}

/* ========================================
   Season log — 33 rows, the main event
   ======================================== */

.cct-sports-season-log {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 0;
    font-size: 14px;
}

.cct-sports-season-log-caption {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8E8EA0;
    padding: 0 0 8px;
}

.cct-sports-season-log thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #8E8EA0;
    border-bottom: 2px solid #E5E7EB;
    padding: 6px 8px;
}

.cct-sports-season-log-row td {
    padding: 7px 8px;
    border-bottom: 1px solid #F0F1F3;
    color: #1A1A2E;
}

/* Zebra striping — a 33-row unruled table is a wall; rules alone are thin at
   that length, so both together. */
.cct-sports-season-log-row:nth-child(even) {
    background: #FAFBFC;
}

.cct-sports-season-log-date,
.cct-sports-season-log-score {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cct-sports-season-log-date {
    color: #8E8EA0;
}

/* W/L/D: never color alone — a bold letter chip carries the signal even for a
   color-blind reader or a grayscale print. */
.cct-sports-season-log-outcome {
    font-weight: 700;
    text-align: center;
    width: 1%;
    white-space: nowrap;
}

.cct-sports-season-log-row-w .cct-sports-season-log-outcome {
    color: #16A34A;
}

.cct-sports-season-log-row-l .cct-sports-season-log-outcome {
    color: #DC2626;
}

.cct-sports-season-log-row-d .cct-sports-season-log-outcome {
    color: #8E8EA0;
}

.cct-sports-season-log-opp {
    color: #4A4A68;
}

/* Phone: 4 columns at 375px is tight. Drop the header's letter-spacing/caps
   weight, tighten padding, and let Opponent wrap instead of forcing a
   horizontal scroll on the whole page. */
@media (max-width: 480px) {
    .cct-sports-season-log {
        font-size: 12.5px;
    }

    .cct-sports-season-log thead th,
    .cct-sports-season-log-row td {
        padding: 6px 4px;
    }

    .cct-sports-season-log-opp {
        white-space: normal;
    }
}

/* ========================================
   Standings (league pages) — same discipline as the season log.
   ======================================== */

.cct-sports-standings {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 0;
    font-size: 14px;
}

.cct-sports-standings thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #8E8EA0;
    border-bottom: 2px solid #E5E7EB;
    padding: 8px;
}

.cct-sports-standings tbody td {
    padding: 8px;
    border-bottom: 1px solid #F0F1F3;
    color: #1A1A2E;
}

.cct-sports-standings tbody tr:nth-child(even) {
    background: #FAFBFC;
}

.cct-sports-standings thead th:not(:first-child),
.cct-sports-standings tbody td:not(:first-child) {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* HUB1001a: a record or score ("19-17", "28-12") never breaks across two lines. */
.cct-sports-standings tbody td:not(:first-child) {
    white-space: nowrap;
}

/* The team link is the main nav path between sports pages — it must read as
   a link, not as plain cell text. */
.cct-sports-standings a {
    color: #046BD2;
    text-decoration: none;
    font-weight: 500;
}

.cct-sports-standings a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .cct-sports-standings {
        font-size: 12.5px;
    }

    .cct-sports-standings thead th,
    .cct-sports-standings tbody td {
        padding: 6px 4px;
    }
}

/* Sports Lane 2D (09-25): text columns in a table whose first column is a
   number (the rating tables) read left, and our own schools stand out. */
.cct-sports-standings th.cct-sports-text,
.cct-sports-standings td.cct-sports-text {
    text-align: left;
}

.cct-sports-standings tbody tr.cct-sports-local-row,
.cct-sports-standings tbody tr.cct-sports-local-row:nth-child(even) {
    background: #EEF5FD;
}

.cct-sports-standings tbody tr.cct-sports-local-row td {
    font-weight: 600;
}

/* ⚠️ The rule above loses to `tbody td:not(:first-child)` (0,2,2 beats
   0,2,1), which right-aligned every FBS team name. Same weight, later: wins. */
.cct-sports-standings thead th.cct-sports-text,
.cct-sports-standings tbody td.cct-sports-text {
    text-align: left;
}

/* HUB930b (Justin 09-30): every standings table in the hub's card
   (sports-hub.css .cct-hub-card): no boxed cells, rules between rows only,
   small uppercase headings, our teams tinted. A conference's divisions sit
   side by side where two fit (the page widens: .cct-sports-wide). */
.cct-sports-wide {
    max-width: 1040px;
}

.cct-sports-tcards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 14px;
    align-items: start;
}

.cct-sports-tcard {
    min-width: 0;
    background: #fff;
    border: 1px solid #E8E6EF;
    border-radius: 12px;
    padding: 12px 14px 8px;
    margin: 0 0 12px;
}

.cct-sports-tcards .cct-sports-tcard {
    margin: 0;
}

.cct-sports-tcards + p,
.cct-sports-tcards + .cct-sports-conf-board {
    margin-top: 12px;
}

/* The theme boxes every table cell (Astra: table, td, th get a border). */
.cct-sports-tcard .cct-sports-standings,
.cct-sports-tcard .cct-sports-standings th,
.cct-sports-tcard .cct-sports-standings td {
    border: 0;
}

.cct-sports-tcard .cct-sports-standings {
    margin: 0;
}

.cct-sports-tcard .cct-sports-standings caption {
    caption-side: top;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: #1A1A2E;
    padding: 0 0 6px;
}

.cct-sports-tcard .cct-sports-standings thead th {
    padding: 2px 6px 4px;
    background: none;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 0;
}

.cct-sports-tcard .cct-sports-standings tbody td {
    padding: 7px 6px;
    border-top: 1px solid #F0EEF5;
    border-bottom: 0;
    background: none;
}

.cct-sports-tcard .cct-sports-standings tbody tr:nth-child(even) {
    background: none;
}

.cct-sports-tcard .cct-sports-standings tbody tr.cct-sports-local-row td {
    background: #EEF2FF;
    font-weight: 700;
}

/* The rank column of a rating table: grey, like the hub's places. */
.cct-sports-tcard .cct-sports-rating-table tbody td:first-child {
    width: 2.6em;
    color: #8E8EA0;
}

/* The NCAA score: a coloured number and a short 0-100 bar with the average
   tick (the hub's .cct-hub-mini). */
.cct-sports-standings td.cct-sports-score {
    width: 118px;
}

.cct-sports-mini {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.cct-sports-mini b {
    min-width: 1.6em;
    font-weight: 750;
    text-align: right;
}

.cct-sports-mini .cct-team-bar {
    flex: 0 0 72px;
    height: 6px;
    margin: 0;
}

.cct-sports-mini .cct-team-bar u {
    top: -2px;
    bottom: -2px;
}

@media (max-width: 480px) {
    .cct-sports-standings td.cct-sports-score {
        width: 76px;
    }

    .cct-sports-mini .cct-team-bar {
        flex-basis: 36px;
    }

    /* With a Conference column there is no room for the bar on a phone
       (D3 field hockey ran 7px past the screen): the number stays. */
    .cct-sports-has-conf td.cct-sports-score {
        width: auto;
    }

    .cct-sports-has-conf .cct-sports-mini .cct-team-bar {
        display: none;
    }
}

/* A table too wide for its card scrolls inside it, never the page. */
.cct-sports-tcard {
    overflow-x: auto;
}

/* Section headings under the band ("This week in the Sun Belt", "Not ranked
   yet"): one step down from the theme's 32px h2. */
.cct-sports .cct-sports-rating-h {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: #1A1A2E;
    margin: 28px 0 4px;
}

/* This week in the conference: a card of rows, the day in its own column. */
.cct-sports-board-card {
    max-width: 780px;
    margin-top: 10px;
}

.cct-sports-conf-board-h {
    margin: 0 0 2px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8E8EA0;
}

.cct-sports-conf-board-list + .cct-sports-conf-board-h {
    margin-top: 12px;
}

.cct-sports-conf-board-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cct-sports-conf-board-list li {
    display: grid;
    grid-template-columns: 10.75em minmax(0, 1fr);
    gap: 16px;
    margin: 0;
    padding: 7px 0;
    border-top: 1px solid #F0EEF5;
    font-size: 14px;
}

.cct-sports-conf-board-when {
    white-space: nowrap;
    color: #5E6275;
    font-variant-numeric: tabular-nums;
}

.cct-sports-conf-board-list a {
    color: #046BD2;
    text-decoration: none;
}

.cct-sports-conf-board-list a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .cct-sports-conf-board-list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .cct-sports-conf-board-when {
        font-size: 13px;
    }
}

/* The sport lists (/sports/odac/, /sports/ncaa-d3/) and the "Every FBS team"
   link: link chips, as the hub's Browse. */
.cct-sports-conference-sports {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.cct-sports-conference-sports li {
    margin: 0;
}

.cct-sports-conference-sports a,
.cct-sports .cct-sports-league-link a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #DCE3EE;
    border-radius: 999px;
    background: #fff;
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.cct-sports-conference-sports a:hover,
.cct-sports .cct-sports-league-link a:hover {
    background: #EEF2FF;
    text-decoration: none;
}

.cct-sports-conference-sports a:focus-visible,
.cct-sports .cct-sports-league-link a:focus-visible {
    outline: 2px solid #046BD2;
    outline-offset: 2px;
}

/* The notes under a table: small grey type, as on the hub. */
.cct-sports-league .cct-sports-rating-note,
.cct-sports-division .cct-sports-rating-note,
.cct-sports-conference .cct-sports-rating-note,
.cct-sports-league .cct-sports-source,
.cct-sports-division .cct-sports-source,
.cct-sports-conference .cct-sports-source,
.cct-sports-conference .cct-sports-rating-strength {
    font-size: 13px;
    color: #5E6275;
    margin: 8px 0 0;
    max-width: 780px;
}

@media (max-width: 480px) {
    .cct-sports-tcard {
        padding: 10px 8px 6px;
    }
}

.cct-sports-league-link {
    margin: 12px 0 0;
    font-size: 14px;
}

.cct-sports-league-link a,
.cct-sports-record a {
    color: #046BD2;
    text-decoration: none;
}

.cct-sports-league-link a:hover,
.cct-sports-record a:hover {
    text-decoration: underline;
}

/* ========================================
   Team + school pages: the team card's look (J9 round 2, Justin 09-28).
   A colour band holds the H1, then one section per sport: the record, our
   rating on its 0-100 bar, splits, and the results beside coming-up games.
   --cct-team / --cct-team-ink / --cct-team-2 come from the team colours
   (inline style on the band and each section).
   ======================================== */

.cct-sports-team,
.cct-sports-school {
    max-width: 1040px;
}

.cct-team-band {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--cct-team, #334155);
    color: var(--cct-team-ink, #fff);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: inset 0 -5px 0 var(--cct-team-2, transparent);
    margin: 0 0 14px;
}

.cct-team-crest {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #fff;
    color: var(--cct-team, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    overflow: hidden;
}

.cct-team-crest img {
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: contain;
    background: #fff;
}

.cct-team-band-text {
    min-width: 0;
}

.cct-team-name {
    margin: 0;
    font-size: 30px;
    font-weight: 750;
    line-height: 1.12;
    color: inherit;
}

.cct-team-level {
    margin: 4px 0 0;
    font-size: 14.5px;
    opacity: 0.9;
}

.cct-team-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 6px;
}

.cct-team-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    white-space: nowrap;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: #1A1A2E;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.cct-team-chip span {
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    opacity: 0.7;
}

.cct-team-chip:hover {
    background: rgba(0, 0, 0, 0.09);
}

.cct-team-chip-done {
    color: #6B7280;
}

.cct-team-sport {
    border-top: 1px solid #E8E6EF;
    padding: 22px 0 6px;
    margin-top: 14px;
    scroll-margin-top: 76px;
}

.cct-team-sport-name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 700;
    color: #1A1A2E;
}

.cct-team-sport-name a {
    color: inherit;
    text-decoration: none;
}

.cct-team-sport-name a.cct-team-more {
    margin-left: auto;
    font-size: 13.5px;
    font-weight: 600;
    color: #046BD2;
}

.cct-team-sport-name a:hover {
    text-decoration: underline;
}

.cct-team-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 28px;
}

.cct-team-record {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}

.cct-team-record-num {
    font-size: 44px;
    font-weight: 750;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cct-team-streak {
    font-size: 16px;
    font-weight: 650;
    color: #6B7280;
}

.cct-team-streak-w { color: #2E7D32; }
.cct-team-streak-l { color: #C62828; }

.cct-team-pill {
    align-self: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.cct-team-standing {
    margin: 8px 0 0;
    color: #454560;
}

.cct-team-conf {
    margin: 2px 0 0;
    font-size: 14px;
}

.cct-team-conf a,
.cct-team-meter a,
.cct-team-all a,
a.cct-team-all {
    color: #046BD2;
    text-decoration: none;
}

.cct-team-conf a:hover,
.cct-team-meter a:hover,
.cct-team-all a:hover,
a.cct-team-all:hover {
    text-decoration: underline;
}

.cct-team-sub {
    margin: 2px 0 0;
    font-size: 13px;
    color: #6B7280;
}

.cct-team-meter {
    margin-top: 14px;
    max-width: 380px;
}

.cct-team-meter-head {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 7px;
}

.cct-team-meter-head b {
    font-size: 20px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.cct-team-meter-head .cct-team-sub {
    margin: 0;
}

.cct-team-label {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6B7280;
}

.cct-team-bar {
    position: relative;
    height: 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.07);
    margin-top: 6px;
}

.cct-team-bar i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 4px;
}

.cct-team-bar u {
    position: absolute;
    left: 50%;
    top: -3px;
    bottom: -3px;
    width: 2px;
    background: rgba(0, 0, 0, 0.35);
}

.cct-team-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6B7280;
}

.cct-team-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 14px 0 0;
}

.cct-team-stats dt {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6B7280;
}

.cct-team-stats dd {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cct-team-list {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 6px;
    font-size: 14px;
}

.cct-team-list caption {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6B7280;
    padding: 0 0 6px;
}

/* The theme boxes every table cell (Astra: table, td, th get a border); these
   are lists, ruled between rows only. */
.cct-team-list,
.cct-team-list td,
.cct-team-list th {
    border: 0;
}

.cct-team-list td {
    padding: 6px 0;
    border-top: 1px solid #F0EEF5;
    vertical-align: middle;
}

.cct-team-list tr:first-child td {
    border-top: none;
}

.cct-team-list td.cct-team-tag {
    width: 1%;
    padding-right: 10px;
    white-space: nowrap;
}

.cct-team-home {
    display: inline-block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--cct-team-ink, #fff);
    background: var(--cct-team, #334155);
    padding: 2px 6px;
    border-radius: 4px;
}

.cct-team-away {
    display: inline-block;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6B7280;
    padding: 2px 6px;
}

/* W/L/D: a letter chip, never colour alone. */
.cct-team-o {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    background: #C62828;
}

.cct-team-o-w { background: #2E7D32; }
.cct-team-o-d { background: #9CA3AF; }

.cct-team-list td.cct-team-score {
    width: 1%;
    padding-right: 12px;
    white-space: nowrap;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cct-team-opp {
    color: #1A1A2E;
}

.cct-team-list td.cct-team-when {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    padding-left: 10px;
    font-size: 12.5px;
    color: #6B7280;
    font-variant-numeric: tabular-nums;
}

.cct-team-all {
    margin: 0 0 14px;
    font-size: 13.5px;
    font-weight: 600;
}

.cct-team-done {
    border-top: 1px solid #E8E6EF;
    margin-top: 18px;
    padding-top: 16px;
}

.cct-team-done h2 {
    margin: 0 0 4px;
}

.cct-team-done ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cct-team-done li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-top: 1px solid #F0EEF5;
    scroll-margin-top: 76px;
}

.cct-team-done li:first-child {
    border-top: none;
}

.cct-team-done-name {
    min-width: 150px;
    font-weight: 650;
    color: #1A1A2E;
    text-decoration: none;
}

.cct-team-done-rec {
    width: 56px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.cct-team-done-line {
    flex: 1;
    font-size: 13px;
    color: #6B7280;
}

.cct-team-done .cct-team-all {
    margin: 0;
    white-space: nowrap;
}

.cct-team-note {
    font-size: 12px;
    color: #6B7280;
    border-top: 1px solid #E8E6EF;
    margin: 18px 0 0;
    padding-top: 10px;
}

.cct-team-chip:focus-visible,
.cct-team-sport-name a:focus-visible,
.cct-team-done a:focus-visible,
.cct-team-all a:focus-visible {
    outline: 2px solid #046BD2;
    outline-offset: 2px;
}

@media (max-width: 720px) {
    .cct-team-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .cct-team-sport-name a.cct-team-more {
        margin-left: 0;
        flex-basis: 100%;
    }
}

@media (max-width: 600px) {
    .cct-team-band {
        padding: 14px;
        gap: 12px;
    }

    .cct-team-crest {
        width: 48px;
        height: 48px;
        font-size: 15px;
    }

    .cct-team-name {
        font-size: 22px;
    }

    .cct-team-level {
        font-size: 13px;
    }

    /* A phone scrolls one row of chips sideways instead of stacking them. */
    .cct-team-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .cct-team-record-num {
        font-size: 38px;
    }

    .cct-team-opp {
        font-size: 13.5px;
    }

    .cct-team-done li {
        flex-wrap: wrap;
        gap: 2px 12px;
    }

    .cct-team-done-name {
        min-width: 0;
    }

    .cct-team-done-line {
        flex-basis: 100%;
        order: 3;
    }
}

/* ========================================
   The Power Rating term (L2J 2c, 09-29): the first mention on a page carries
   the definition as a tip. It opens on hover, on keyboard focus and on tap
   (a tap focuses the tabindex span), so it never depends on title= alone.
   ======================================== */

.cct-sports-term {
    position: relative;
    display: inline-block;
}

.cct-sports-term-word {
    cursor: help;
    border-bottom: 1px dotted currentColor;
}

.cct-sports-term-word:focus-visible {
    outline: 2px solid #046BD2;
    outline-offset: 2px;
}

.cct-sports-term-tip {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 20;
    width: max-content;
    max-width: min(300px, 80vw);
    padding: 8px 10px;
    border-radius: 6px;
    background: #15151f;
    color: #fff;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    white-space: normal;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.cct-sports-term:hover .cct-sports-term-tip,
.cct-sports-term:focus-within .cct-sports-term-tip {
    display: block;
}

/* A right-hand table column opens its tip leftward so it stays on screen. */
th:last-child .cct-sports-term-tip {
    left: auto;
    right: 0;
}

.cct-sports-rating-def {
    font-size: 12px;
    color: #6B7280;
}

/* HUB1001b: "Rating ⓘ" jumps to the footnote under the table (Justin 10-01). */
.cct-sports-rating-info {
    font-size: .85em;
    font-weight: 400;
    text-decoration: none;
    color: #64748b;
    margin-left: 2px;
}
.cct-sports-rating-info:hover,
.cct-sports-rating-info:focus-visible { color: #0f172a; }
#cct-rating-foot { scroll-margin-top: 110px; }

/* HUB1001b: sortable headers (js/sports-sort.js). The button reads as the header; the arrow marks the
   sorted column. With JS off the headers are plain text and the table is unchanged. */
.cct-sort-btn {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-align: inherit;
}
.cct-sort-btn:hover,
.cct-sort-btn:focus-visible { color: #0f172a; }
.cct-sort-btn:focus-visible { outline: 2px solid #046BD2; outline-offset: 2px; }
.cct-sort-arrow { display: inline-block; min-width: .9em; margin-left: 2px; font-size: .8em; }
.cct-sports-standings th[aria-sort="ascending"],
.cct-sports-standings th[aria-sort="descending"] { color: #0f172a; }

/* The "Sort by" menu is for phones, where some columns are hidden. */
.cct-sort-menu { display: none; }

@media (max-width: 600px) {
    .cct-sort-menu {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 8px;
        font-size: 13px;
        color: #64748b;
    }
    .cct-sort-select {
        flex: 1;
        min-width: 0;
        font-size: 13px;
        padding: 4px 6px;
    }
    /* Games-played, win-pct and streak columns hide on a phone (the official ODAC tables): the records say
       the same, the "Sort by" menu still reaches them, and nothing scrolls sideways at 390 px. */
    .cct-sports-standings th.cct-sports-gp,
    .cct-sports-standings td.cct-sports-gp { display: none; }
}

@media (max-width: 600px) {
    .cct-sports-tcard { padding: 10px 6px 6px; }
    .cct-sports-tcard .cct-sports-standings { font-size: 12px; }
    .cct-sports-tcard .cct-sports-standings thead th { padding: 2px 3px 4px; font-size: 9.5px; letter-spacing: 0; }
    .cct-sports-tcard .cct-sports-standings tbody td { padding: 7px 3px; }
}

/* HUB1001b: the rank left of a conference-board team name ("#12 Arkansas St"), grey like the hub's game ranks. */
.cct-sports-conf-board-rank { color: #8E8EA0; font-weight: 600; font-variant-numeric: tabular-nums; }
