:root {
    --cs-navy: #0b1f3a;
    --cs-blue: #174ea6;
    --cs-red: #c62828;
    --cs-silver: #d6dbe1;
    --cs-light: #f4f6f9;
    --cs-text: #172033;
    --cs-muted: #6c757d;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: var(--cs-light);
    color: var(--cs-text);
}

/* =========================================
   COLLEGE SURVIVOR HEADER
   ========================================= */

.cs-brand-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e9ef;
    padding: 0;
}


/* Controls how wide the logo is on the page */
.cs-brand-container {
    width: 100%;
    max-width: 1050px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 12px;
    padding-right: 12px;
}


/* Link surrounding logo */
.cs-brand-link {
    display: block;
    width: 100%;
}


/* Image fills ONLY its capped container */
.cs-brand-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0 auto;
}


/* Tablet */
@media (max-width: 991.98px) {

    .cs-brand-container {
        max-width: 850px;
    }

}


/* Phone */
@media (max-width: 767.98px) {

    .cs-brand-container {
        max-width: 86%;
        padding-left: 5px;
        padding-right: 5px;
    }

}

/* =========================================================
   NAVIGATION
   ========================================================= */

.cs-navbar {
    background: linear-gradient(90deg, #071a31, var(--cs-navy), #071a31);
    border-bottom: 3px solid var(--cs-red);
    box-shadow: 0 4px 14px rgba(11, 31, 58, .14);
}

.cs-navbar .navbar-brand {
    color: #fff;
    font-weight: 800;
    letter-spacing: .035em;
}

.cs-navbar .navbar-brand:hover,
.cs-navbar .navbar-brand:focus {
    color: #fff;
}

.cs-navbar .nav-link {
    color: rgba(255,255,255,.82);
    font-weight: 600;
    border-radius: .5rem;
    padding-left: .9rem !important;
    padding-right: .9rem !important;
}

.cs-navbar .nav-link:hover,
.cs-navbar .nav-link:focus {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.cs-navbar .nav-link.active {
    color: #fff;
    background: rgba(198, 40, 40, .92);
}

.cs-navbar .navbar-toggler {
    border-color: rgba(255,255,255,.35);
}

.cs-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(255,255,255,.15);
}

/* =========================================================
   GENERAL COMPONENTS
   ========================================================= */

.cs-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.cs-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 .35rem 1.15rem rgba(11, 31, 58, .09);
}

.cs-card-header {
    background: var(--cs-navy);
    color: #fff;
    border-radius: 1rem 1rem 0 0 !important;
    border-bottom: 3px solid var(--cs-red);
}

.cs-eyebrow {
    color: var(--cs-red);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.cs-section-title {
    font-weight: 800;
    color: var(--cs-navy);
}

.cs-btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--cs-blue);
    --bs-btn-border-color: var(--cs-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #123f88;
    --bs-btn-hover-border-color: #123f88;
    --bs-btn-active-bg: #103775;
    --bs-btn-active-border-color: #103775;
}

.cs-btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--cs-red);
    --bs-btn-border-color: var(--cs-red);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #a92121;
    --bs-btn-hover-border-color: #a92121;
}

.cs-stat {
    height: 100%;
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 .25rem .9rem rgba(11, 31, 58, .07);
    border-top: 4px solid var(--cs-blue);
}

.cs-stat-number {
    color: var(--cs-navy);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
}

.cs-stat-label {
    color: var(--cs-muted);
    font-size: .9rem;
    margin-top: .4rem;
}

/* =========================================================
   LANDING PAGE
   ========================================================= */

.cs-hero {
    overflow: hidden;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 80% 20%, rgba(23, 78, 166, .16), transparent 34%),
        linear-gradient(135deg, #fff 0%, #f7f9fc 68%, #eef2f7 100%);
    border: 1px solid #e2e7ee;
}

.cs-hero-copy {
    padding: clamp(1.5rem, 4vw, 3.5rem);
}

.cs-hero h1 {
    color: var(--cs-navy);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -.04em;
}

.cs-week-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--cs-blue);
    border: 1px solid #cdddf7;
    padding: .45rem .8rem;
    font-weight: 700;
}

/* =========================================================
   LOGIN
   ========================================================= */

.cs-login-wrap {
    max-width: 500px;
    margin: 0 auto;
}

.form-control:focus,
.form-select:focus {
    border-color: #88a9df;
    box-shadow: 0 0 0 .25rem rgba(23, 78, 166, .15);
}

/* =========================================================
   PLAYER TABLE
   ========================================================= */

.cs-player-table thead th {
    background: var(--cs-navy);
    color: #fff;
    border: 0;
    white-space: nowrap;
}

.cs-player-table tbody tr:last-child td {
    border-bottom: 0;
}

.cs-status-alive {
    background: #e8f6ee;
    color: #176b3a;
}

.cs-status-out {
    background: #f4f4f4;
    color: #666;
}

/* =========================================================
   WEEKLY TEAM PICK
   ========================================================= */

.cs-pick-toolbar {
    background: #fff;
    border-left: 4px solid var(--cs-red);
    border-radius: .8rem;
    padding: 1rem 1.15rem;
    box-shadow: 0 .25rem .9rem rgba(11, 31, 58, .06);
}

.team-option {
    position: relative;
    display: block;
    height: 100%;
    cursor: pointer;
}

.team-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.team-option-card {
    height: 100%;
    min-height: 118px;
    border: 2px solid #dce2e9;
    border-radius: .9rem;
    background: #fff;
    padding: 1rem;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.team-option:not(.is-unavailable):hover .team-option-card {
    transform: translateY(-2px);
    border-color: #99b4df;
    box-shadow: 0 .4rem 1rem rgba(11, 31, 58, .09);
}

.team-option input[type="radio"]:checked + .team-option-card {
    border-color: var(--cs-blue);
    box-shadow: 0 0 0 .25rem rgba(23, 78, 166, .14);
    background: #f6f9ff;
}

.team-option input[type="radio"]:focus-visible + .team-option-card {
    outline: 3px solid rgba(23, 78, 166, .35);
    outline-offset: 2px;
}

.team-option.is-unavailable {
    cursor: not-allowed;
}

.team-option.is-unavailable .team-option-card {
    background: #eceff2;
    color: #8a9199;
    border-color: #d8dde2;
    box-shadow: none;
}

.team-option.is-unavailable .team-name,
.team-option.is-unavailable .team-conference {
    color: #8a9199 !important;
}

.team-name {
    color: var(--cs-navy);
    font-weight: 800;
    font-size: 1.05rem;
}

.team-conference {
    color: var(--cs-muted);
    font-size: .85rem;
}

.team-record {
    font-size: .83rem;
    font-weight: 700;
}

.team-check {
    width: 1.35rem;
    height: 1.35rem;
    border: 2px solid #b6c1cc;
    border-radius: 50%;
    flex: 0 0 auto;
    margin-top: .1rem;
    background: #fff;
}

.team-option input[type="radio"]:checked + .team-option-card .team-check {
    border-color: var(--cs-blue);
    background:
        radial-gradient(circle, var(--cs-blue) 0 42%, #fff 45% 100%);
}

.cs-unavailable-note {
    color: #7a828a;
    font-size: .8rem;
    font-weight: 700;
    margin-top: .65rem;
}

/* Pick page team rows are labels, so force them to fill the card width */
.cs-schedule-game label.cs-schedule-team {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Reserve the same space as a radio button for unavailable teams */
.cs-pick-radio-spacer {
    display: inline-block;
    width: 1em;
    min-width: 1em;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* =========================================================
   FOOTER
   ========================================================= */

.cs-footer {
    background: var(--cs-navy);
    color: rgba(255,255,255,.75);
    border-top: 3px solid var(--cs-red);
}

.cs-footer a {
    color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {
    .cs-navbar .navbar-collapse {
        padding-top: .75rem;
    }

    .cs-navbar .nav-link {
        margin-bottom: .25rem;
    }
}

@media (max-width: 767.98px) {
    .cs-brand-wrap {
        padding: .1rem .25rem;
    }

    .cs-brand-image {
        max-height: 120px;
    }

    .cs-page {
        padding-top: 1.25rem;
        padding-bottom: 2rem;
    }

    .cs-hero-copy {
        padding: 1.4rem;
    }

    .cs-card {
        border-radius: .8rem;
    }

    .team-option-card {
        min-height: 100px;
    }
}

@media (max-width: 575.98px) {
    .cs-brand-image {
        width: 115%;
        max-width: none;
        margin-left: -7.5%;
    }

    .cs-stat {
        padding: 1rem;
    }

    .team-option-card {
        padding: .85rem;
    }
}

/* =========================================================
   COLLEGE SURVIVOR - SCHEDULE PAGE
   Assumes these shared variables already exist in site.css:
   --cs-navy, --cs-blue, --cs-red, --cs-muted
   ========================================================= */

/* Schedule legend */

.cs-schedule-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .85rem;
    color: var(--cs-muted);
}

.cs-legend-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.cs-legend-swatch {
    width: .9rem;
    height: .9rem;
    border: 1px solid #cfd5dc;
    border-radius: .25rem;
}

.cs-legend-available {
    background: #fff;
}

.cs-legend-unavailable {
    background: #e9ecef;
}


/* =========================================================
   WEEK NAVIGATION
   ========================================================= */

.cs-week-nav-btn {
    min-width: 108px;
}

.cs-week-strip {
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scrollbar-width: thin;
}

.cs-week-link {
    flex: 0 0 auto;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6dde5;
    border-radius: .6rem;
    background: #fff;
    color: var(--cs-navy);
    font-weight: 700;
    text-decoration: none;
}

    .cs-week-link:hover {
        color: var(--cs-blue);
        border-color: #9cb7df;
        background: #f6f9ff;
    }

    .cs-week-link.active {
        color: #fff;
        background: var(--cs-blue);
        border-color: var(--cs-blue);
    }


    /* Week navigation: centered, content-width selector + Bowls / Playoffs */

    .cs-week-navigation-card {
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .cs-week-strip-wrap {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .cs-week-strip {
        width: max-content;
        display: flex;
        justify-content: center;
        gap: .45rem;
        margin: 0 auto;
        padding-bottom: .25rem;
    }

    .cs-week-link.cs-week-link-postseason {
        min-width: auto;
        padding-left: .85rem;
        padding-right: .85rem;
        white-space: nowrap;
    }

    @media (max-width: 575.98px) {
        .cs-week-link.cs-week-link-postseason {
            padding-left: .7rem;
            padding-right: .7rem;
        }
    }



/* =========================================================
   GAME CARD
   ========================================================= */

.cs-schedule-game {
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 1rem;
    box-shadow: 0 .3rem 1rem rgba(11, 31, 58, .07);
}

.cs-game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    background: #f7f9fc;
    border-bottom: 1px solid #e1e6ec;
}


/* =========================================================
   TEAM ROWS
   ========================================================= */

.cs-schedule-team {
    min-height: 104px;
    padding: 1rem;
}

.cs-team-label {
    margin-bottom: .25rem;
    color: var(--cs-muted);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.cs-schedule-team-name {
    color: var(--cs-navy);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.cs-schedule-conference {
    margin-top: .15rem;
    color: var(--cs-muted);
    font-size: .88rem;
    font-weight: 600;
}


/* =========================================================
   "AT" DIVIDER
   ========================================================= */

.cs-at-divider {
    position: relative;
    height: 1px;
    margin: 0 1rem;
    background: #e0e5eb;
}

    .cs-at-divider::after {
        content: "at";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 .5rem;
        background: #fff;
        color: var(--cs-muted);
        font-size: .72rem;
        font-weight: 800;
        text-transform: uppercase;
    }


/* =========================================================
   INDIVIDUAL TEAM UNAVAILABLE
   ========================================================= */

.cs-schedule-team.team-unavailable {
    background: #eceff2;
}

    .cs-schedule-team.team-unavailable .cs-schedule-team-name,
    .cs-schedule-team.team-unavailable .cs-schedule-conference,
    .cs-schedule-team.team-unavailable .cs-team-label {
        color: #8b9299;
    }

.cs-team-unavailable-badge {
    background: #d7dce1;
    color: #636a71;
}


/* =========================================================
   ENTIRE GAME UNAVAILABLE
   ========================================================= */

.cs-schedule-game.game-unavailable {
    background: #e7eaed;
    border-color: #d2d7dc;
    box-shadow: none;
}

    .cs-schedule-game.game-unavailable .cs-game-header,
    .cs-schedule-game.game-unavailable .cs-schedule-team {
        background: #e7eaed;
    }

    .cs-schedule-game.game-unavailable .cs-at-divider::after {
        background: #e7eaed;
    }

.cs-game-unavailable-note {
    padding: .7rem 1rem;
    background: #d9dde1;
    color: #666d74;
    border-top: 1px solid #cbd1d7;
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
}

/* ============================================================
   CURRENT USER'S SURVIVOR PICK
   ============================================================ */

.cs-schedule-game .cs-schedule-team.team-current-pick {
    background: #e8f5e9;
    box-shadow: inset 4px 0 0 #2e7d32;
}

.cs-schedule-game .cs-schedule-team.team-current-pick .cs-schedule-team-name {
    color: #1b5e20;
}

.cs-schedule-game .cs-schedule-team.team-current-pick .cs-team-unavailable-badge {
    background: #d1e7dd;
    color: #0f5132;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .cs-week-nav-btn {
        min-width: 0;
        padding-left: .7rem;
        padding-right: .7rem;
        font-size: .88rem;
    }

    .cs-week-link {
        min-width: 40px;
        height: 40px;
    }

    .cs-schedule-team {
        min-height: 92px;
        padding: .85rem;
    }

    .cs-schedule-team-name {
        font-size: 1.05rem;
    }
}
