/**
 * The sports front page — /sports/. BRIEF-SPORTS-L2I.
 * Builds on sports.css (the fixed-header offset, breadcrumb, and the team
 * page's pieces reused here: .cct-team-bar, .cct-team-streak-*, .cct-team-home
 * / -away). Same literal palette, scoped under .cct-sports-hub.
 *
 * ⭐⭐ HUB930a (Justin 09-30, option A): the team pages' look (J9). A band with
 * the place and the local crests, storyline cards, a tile per team, and
 * standings / National as cards. --cct-team is each team's colour, set inline.
 */

.cct-sports-hub {
    max-width: 1040px;
}

.cct-sports-hub [hidden] {
    display: none !important;
}

.cct-sports-hub-elsewhere {
    margin: -4px 0 12px;
    font-size: 14px;
}

.cct-sports-hub-elsewhere a {
    color: #046BD2;
    text-decoration: none;
}

/* ---- the band ---- */
.cct-hub-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    border-radius: 14px;
    padding: 20px 22px;
    margin: 0 0 14px;
}

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

.cct-hub-title {
    margin: 0;
    font-size: 30px;
    font-weight: 750;
    line-height: 1.12;
    color: #fff;
}

.cct-hub-band-sub {
    margin: 4px 0 0;
    font-size: 14.5px;
    opacity: 0.85;
}

.cct-hub-crests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cct-hub-crests a {
    display: block;
    border-radius: 10px;
}

.cct-hub-crests a:hover,
.cct-hub-crests a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 1px;
}

.cct-hub-crests .cct-hub-crest {
    width: 40px;
    height: 40px;
    font-size: 13px;
}

/* A crest: initials on the team colour, or the logo on white. */
.cct-hub-crest {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--cct-team, #334155);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    overflow: hidden;
}

.cct-hub-crest img {
    position: absolute;
    inset: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: contain;
}

.cct-hub-crest-logo {
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.cct-hub-crest-sm {
    width: 32px;
    height: 32px;
    font-size: 11px;
    border-radius: 8px;
}

/* ---- the dial: one segmented control ---- */
.cct-sports-hub-dial {
    display: inline-flex;
    flex-wrap: wrap;
    margin: 0 0 26px;
    padding: 3px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F8FAFC;
}

.cct-sports-hub-stop {
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4A4A68;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.cct-sports-hub-stop:hover {
    color: #046BD2;
}

.cct-sports-hub-stop[aria-pressed="true"] {
    background: #fff;
    color: #1A1A2E;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

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

/* Round 4: what each stop holds ("15 teams"), drawn by sports-hub.js. */
.cct-sports-hub-stop-count {
    display: block;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.75;
}

/* ---- sections ---- */
.cct-sports-hub-section {
    margin: 0 0 36px;
}

.cct-sports-hub .cct-hub-h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    font-size: 21px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0 0 12px;
}

.cct-sports-hub .cct-hub-h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cct-sports-hub-scope {
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
}

.cct-hub-note {
    max-width: 72ch;
    margin: -4px 0 14px;
    font-size: 13.5px;
    color: #6B7280;
}

.cct-sports-hub-source {
    font-size: 12px;
    color: #8E8EA0;
    margin: 6px 0 0;
}

.cct-sports-hub-source a {
    color: #8E8EA0;
}

/* ---- storylines ---- */
.cct-hub-stories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.cct-hub-story {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #E8E6EF;
    border-left: 5px solid var(--cct-team, #334155);
}

.cct-hub-story-text {
    min-width: 0;
}

.cct-hub-eyebrow {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 2px;
}

.cct-hub-story a,
.cct-hub-story-text > span:last-child {
    color: #1A1A2E;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

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

/* ---- scores ---- */
/* ⛔ grid/frontend-grid.css makes every .chart-container absolute, inset 0:
   it fills a .chart-cell, which is position:relative. Here there is no cell,
   so it pinned to the page top and overlaid the header and storylines. Put the
   container back in the flow; the box grows to the scoreboard's height. */
.cct-sports-hub-scoreboard {
    position: relative;
    min-height: 200px;
    border: 1px solid #E8E6EF;
    border-radius: 12px;
    overflow: hidden;
}

.cct-sports-hub-scoreboard > .chart-container {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    height: auto;
    padding-bottom: 0;
}

/* ---- local teams: a tile per team ---- */
.cct-hub-tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.cct-hub-tile {
    min-width: 0;
    background: #fff;
    border: 1px solid #E8E6EF;
    border-top: 5px solid var(--cct-team, #334155);
    border-radius: 12px;
    padding: 14px 16px 12px;
}

.cct-hub-tile-head {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #1A1A2E;
    text-decoration: none;
}

.cct-hub-tile-id {
    min-width: 0;
}

.cct-hub-tile-name {
    display: block;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.2;
}

.cct-hub-tile-sport {
    display: block;
    font-size: 12.5px;
    color: #6B7280;
}

.cct-hub-tile-head:hover .cct-hub-tile-name {
    color: #046BD2;
    text-decoration: underline;
}

.cct-hub-tile-head:focus-visible {
    outline: 2px solid #046BD2;
    outline-offset: 2px;
    border-radius: 6px;
}

.cct-hub-tile-record {
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
}

.cct-hub-rec {
    font-size: 32px;
    font-weight: 750;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cct-hub-tile-record .cct-team-streak {
    font-size: 15px;
}

.cct-hub-poll {
    font-size: 13px;
    font-weight: 650;
    color: #454560;
}

.cct-hub-tile-line {
    margin: 8px 0 0;
    font-size: 13.5px;
    color: #454560;
}

.cct-hub-meter {
    margin-top: 10px;
}

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

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

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

.cct-hub-meter-rank {
    color: #6B7280;
}

.cct-hub-meter .cct-team-bar {
    margin-top: 5px;
}

.cct-hub-conf {
    margin: 8px 0 0;
    font-size: 13.5px;
}

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

.cct-hub-conf a:hover {
    text-decoration: underline;
}

.cct-hub-next {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid #F0EEF5;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    font-size: 13.5px;
}

.cct-hub-next-opp {
    color: #1A1A2E;
    font-weight: 600;
}

.cct-hub-next-when {
    margin-left: auto;
    color: #6B7280;
    font-variant-numeric: tabular-nums;
}

/* ---- season over ---- */
.cct-hub-off {
    margin-top: 14px;
}

.cct-hub-off summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
    color: #454560;
}

.cct-hub-off ul {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    columns: 2 300px;
    column-gap: 28px;
    font-size: 13.5px;
}

.cct-hub-off li {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 5px 0;
    border-top: 1px solid #F0EEF5;
    break-inside: avoid;
}

.cct-hub-off li a {
    flex: 1;
    min-width: 0;
    color: #1A1A2E;
    font-weight: 600;
    text-decoration: none;
}

.cct-hub-off li a:hover {
    color: #046BD2;
    text-decoration: underline;
}

.cct-hub-off-rec {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cct-hub-off-season {
    color: #8E8EA0;
    font-size: 12px;
    white-space: nowrap;
}

/* ---- cards: standings, big games, top 10 ---- */
.cct-hub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.cct-hub-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #E8E6EF;
    border-radius: 12px;
    padding: 12px 14px 10px;
}

.cct-hub-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
}

.cct-hub-card h3 a {
    color: #046BD2;
    text-decoration: none;
}

.cct-hub-card h3 a:hover {
    text-decoration: underline;
}

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

.cct-hub-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13.5px;
}

.cct-hub-table thead th {
    padding: 2px 6px 4px;
    background: none;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8E8EA0;
    text-align: left;
}

.cct-hub-table td {
    padding: 5px 6px;
    border-top: 1px solid #F0EEF5;
    background: none;
    vertical-align: middle;
}

/* The place / rank: "T-1" stays on one line. */
.cct-hub-table td:first-child {
    width: 2.6em;
    white-space: nowrap;
    color: #8E8EA0;
    font-variant-numeric: tabular-nums;
}

.cct-hub-table td:nth-child(n+3),
.cct-hub-table thead th:nth-child(n+3) {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cct-hub-table .cct-hub-local-row td {
    background: #EEF2FF;
    font-weight: 700;
}

/* A local team shown below the top five: a visible break above it. */
.cct-hub-table .cct-hub-gap td {
    border-top: 2px dashed #E5E7EB;
}

.cct-hub-div th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #8E8EA0;
    padding: 8px 6px 2px;
}

/* Top 10: two across, so a team name has room (three across wrapped
   "North Carolina Tar Heels" onto three lines). The rating: a number and a
   short bar. */
.cct-hub-cards-wide {
    grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
}

.cct-hub-top td:last-child {
    width: 104px;
}

.cct-hub-mini {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cct-hub-mini b {
    min-width: 1.4em;
    font-weight: 750;
}

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

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

/* Big games: the day, then away over home, each with its rank (never a 0-100 rating: it reads as a score). */
.cct-hub-games {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cct-hub-games li {
    padding: 7px 0;
    border-top: 1px solid #F0EEF5;
    font-size: 13.5px;
}

.cct-hub-games li:first-child {
    border-top: 0;
}

.cct-hub-game-when {
    display: block;
    font-size: 12px;
    color: #6B7280;
    font-variant-numeric: tabular-nums;
}

.cct-hub-game-side {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.cct-hub-game-rank {
    min-width: 2.2em;
    color: #8E8EA0;
    font-variant-numeric: tabular-nums;
}

.cct-hub-game-name {
    flex: 1;
    min-width: 0;
    color: #1A1A2E;
}

.cct-hub-game-at {
    color: #8E8EA0;
}

/* ---- browse: link chips ---- */
.cct-sports-hub-browse {
    border-top: 1px solid #E8E6EF;
    padding-top: 22px;
}

.cct-sports-hub-browse-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.cct-sports-hub-browse-group h3 {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6B7280;
    margin: 0 0 6px;
}

.cct-sports-hub-browse-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cct-sports-hub-browse-list li {
    padding: 0;
}

.cct-sports-hub-browse-list a {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.05);
    color: #1A1A2E;
    font-size: 13px;
    text-decoration: none;
}

.cct-sports-hub-browse-list a:hover {
    background: rgba(4, 107, 210, 0.1);
    color: #046BD2;
}

.cct-sports-hub-browse-list a:focus-visible,
.cct-hub-conf a:focus-visible,
.cct-hub-card h3 a:focus-visible,
.cct-hub-story a:focus-visible,
.cct-hub-off a:focus-visible {
    outline: 2px solid #046BD2;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .cct-hub-band {
        padding: 16px;
    }
    .cct-hub-title {
        font-size: 22px;
    }
    .cct-hub-crests .cct-hub-crest {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    .cct-sports-hub-dial {
        display: flex;
        flex-wrap: nowrap;
    }
    .cct-sports-hub-stop {
        flex: 1;
        padding: 6px 4px;
        font-size: 13px;
    }
    .cct-hub-tiles,
    .cct-hub-cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .cct-hub-story a,
    .cct-hub-story-text > span:last-child {
        font-size: 15px;
    }
}

/* HUB1001b: "Big results, last 2 days": the rank at the left, the final score at the right edge. */
.cct-hub-game-score {
    margin-left: auto;
    padding-left: 8px;
    color: #4B5563;
    font-variant-numeric: tabular-nums;
}

.cct-hub-game-won .cct-hub-game-name,
.cct-hub-game-won .cct-hub-game-score {
    font-weight: 700;
    color: #1A1A2E;
}
