/* Light-only presentation layer. No layout, league-data or transaction changes. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --navy: #eef2f6;
    --navy2: #ffffff;
    --ink: #10243b;
    --muted: #4c6075;
    --line: #d5dee8;
    --gold: #80601f;
    --blue: #245e96;
    --green: #216743;
    --orange: #97460d;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --field: #f5f7fa;
  }
  html, body {background:#eef2f6;color:#10243b}
  .hq-shell,.dark,.bottom {background:#eef2f6}
  .hq-nav {background:rgba(255,255,255,.97);border-color:#d5dee8;box-shadow:0 2px 12px rgba(16,36,59,.04)}
  .hq-back,.hq-mark strong,.hq-user {color:#10243b}
  .hq-mark small,.kicker,.label,.home-label,.division-block h3 {color:#80601f}
  .hq-mark .crest {background:#d6b36a}
  /* The masthead retains the league's dark sports identity. */
  .top {background:#081728;color:#f5f8fb;--ink:#f5f8fb;--muted:#c0cfdd;--line:rgba(192,207,221,.24)}
  .top .lead,.top .brand,.top .brand strong,.top .nav a,.top .section-head p {color:#e3ebf3}
  .top .brand small,.top .kicker,.top .eyebrow {color:#e2c78e}
  .top .btn-ghost {background:transparent;color:#f5f8fb;border-color:#7e94ab}
  .hq-hero {background-color:#081728;--ink:#f5f8fb;--muted:#d6e1eb;--gold:#e2c78e;--line:rgba(192,207,221,.24)}
  .hq-hero h1,.hq-hero p {color:#f5f8fb}
  .hq-hero p {color:#d6e1eb}
  .hq-live {color:#e2c78e}
  .board,.board-inner,.row,.feature,.card,.hq-panel,.doc-card,.home-card,.home-stat,
  .team-card,.draft-card,.tfl-calendar-ios-panel,.tfl-calendar-ios-head,
  .power-row,.power-leader,.trade-analyzer-head,.trade-side,.trade-rule-card,
  .trade-actions,.trade-team-result {
    background:#fff;color:#10243b;border-color:#d5dee8;
    box-shadow:0 4px 18px rgba(16,36,59,.045);
  }
  .hq-panel h2,.doc-card h3,.home-card h3,.feature h3,.card h3,.home-topbar h2,
  .power-head h2,.power-row h4,.power-leader h3,.draft-card h3 {color:#10243b}
  .lead,.section-head p,.card p,.feature p,.bottom p,.muted,.hq-sub,.home-note,
  .home-stat span,.home-stat small,.row small,.doc-card p,.home-card p,
  .team-card small,.draft-card-copy p,.power-head p,.power-row p,.power-leader p,
  .softr-primary-label,.team-dashboard-head p {color:#4c6075}
  .hq-number,.home-stat strong,.team-card strong,.draft-results-head strong {color:#10243b}
  .hq-tabs,.softr-tabs,.team-subtabs {background:#fff;border-color:#d5dee8;box-shadow:0 3px 12px rgba(16,36,59,.04)}
  .hq-tabs button,.softr-tabs button,.team-subtabs button {color:#40566d;background:transparent}
  .hq-tabs button:hover,.softr-tabs button:hover,.team-subtabs button:hover {background:#e8eef5;color:#10243b}
  .hq-tabs button.active,.softr-tabs button.active,.team-subtabs button.active {
    background:#10243b!important;border-color:#10243b!important;color:#fff!important;
    box-shadow:0 3px 10px rgba(16,36,59,.12);
  }
  .data-tools input,.data-tools select,.draft-controls input,.draft-controls select,
  .tfl-calendar-ios-toolbar input {background:#fff;color:#10243b;border-color:#bccbd9}
  .data-tools input::placeholder,.draft-controls input::placeholder {color:#5b6c7e;opacity:1}
  .data-table,.hq-table {color:#10243b}
  .data-table th,.hq-table th {color:#4c6075;background:#f4f7fa}
  .data-table td,.data-table td:last-child,.hq-table td {color:#20364c;border-color:#dce4ed}
  .data-table tbody tr:nth-child(even),.hq-table tbody tr:nth-child(even) {background:#f7f9fc}
  .data-table tr:hover td,.hq-table tr:hover td {background:#eaf0f6}
  .hq-note,.legacy,.home-status {background:#fbf6e9;border-color:#d9c99f;color:#644b1d}
  .hq-empty,.draft-empty,.power-empty {background:#f7f9fc;color:#4c6075;border-color:#bccbd9}
  .doc-card small,.power-tier,.power-refresh,.power-rank-label {color:#80601f}
  .power-leader .power-tier,.power-row .power-tier {color:#80601f}
  .power-rank-label,.power-row .power-rank-label {background:#e8eef5;color:#10243b}
  .power-leader:after {color:rgba(16,36,59,.055)}
  .power-row:hover {background:#f2f6fa;border-color:#aebfcf}
  .home-list-item h4 {color:#10243b}
  .home-list-item p,.home-list-meta,.home-date span,.home-empty,.home-activity-type,.home-footnote {color:#4c6075}
  .home-quick {background:#fbf6e9;border-color:#d9c99f;color:#644b1d}
  .home-quick:hover {background:#10243b;color:#fff;border-color:#10243b}
  .home-list-icon {background:#f7efdc;color:#644b1d}
  .home-status .dot {background:#80601f;box-shadow:0 0 0 4px rgba(128,96,31,.1)}
  .tfl-calendar-ios-toolbar {background:#f5f7fa;color:#10243b;border-color:#d5dee8}
  .tfl-news-card,.tfl-calendar-card {background:#f7f9fc;border-color:#dce4ed}
  .tfl-news-card:hover,.tfl-calendar-card:hover {background:#edf2f7;border-color:#aebfcf}
  .tfl-news-card h4,.tfl-calendar-card h4,.tfl-calendar-empty strong {color:#10243b}
  .tfl-calendar-ios-head p,.tfl-calendar-ios-metric,.tfl-calendar-ios-filter button,
  .tfl-calendar-ios-next p,.tfl-calendar-ios-next-date,.tfl-calendar-ios-next-date small,
  .tfl-calendar-ios-panel-head span,.tfl-news-card-date span,.tfl-news-card-meta,.tfl-calendar-card-meta,
  .tfl-news-card-meta b,.tfl-calendar-card-meta b,.tfl-calendar-card-date span,.tfl-calendar-empty {color:#4c6075}
  .tfl-calendar-card-date {color:#644b1d}
  .tfl-calendar-ios-next {background:#fbf6e9;border-color:#d9c99f;color:#10243b}
  .tfl-calendar-ios-next h3 {color:#10243b}
  .tfl-calendar-ios-filter button.active {background:#10243b;color:#fff}
  .tfl-calendar-ios-panel p,.tfl-calendar-ios-panel small,.tfl-calendar-ios-panel time {color:#4c6075}
  .tfl-calendar-ios-panel h3,.tfl-calendar-ios-head h2 {color:#10243b}
  .footer,.hq-footer {color:#4c6075;border-color:#d5dee8}
  .tfl-social-link {background:#fff;color:#10243b;border-color:#d5dee8}
  .tfl-mobile-menu {background:rgba(255,255,255,.98);border-color:#d5dee8}
  .tfl-mobile-menu a,.tfl-menu-toggle {color:#10243b}
  /* Franchise identity stays in the header, not beneath every roster row. */
  body.tfl-team-dashboard-active,body.tfl-team-theme {background:#eef2f6!important}
  body.tfl-team-dashboard-active .hq-shell,body.tfl-team-theme .hq-shell {background:#eef2f6!important}
  body.tfl-team-dashboard-active .team-dashboard .team-dashboard-head,
  body.tfl-team-theme .team-dashboard .team-dashboard-head {
    background:linear-gradient(115deg,color-mix(in srgb,var(--team-primary) 12%,#fff),#fff 80%);
    border:1px solid #d5dee8;border-inline-start:5px solid var(--team-primary);border-radius:14px;padding:18px;
  }
  body.tfl-team-dashboard-active .team-dashboard .team-dashboard-head:before {background:none}
  body.tfl-team-dashboard-active .team-dashboard h2,
  body.tfl-team-dashboard-active .team-dashboard h3,
  body.tfl-team-theme .team-dashboard-section h3 {color:#10243b!important}
  body.tfl-team-dashboard-active .team-dashboard .team-summary .hq-panel {
    background:#fff!important;border-color:#d5dee8!important;
  }
  body.tfl-team-dashboard-active .team-dashboard .team-subtabs button.active {
    background:#10243b!important;border-color:#10243b!important;color:#fff!important;
  }
  .trade-analyzer {--ink:#10243b;--muted:#4c6075;--line:#d5dee8;--blue:#245e96;color:#10243b}
  .trade-metric,.trade-asset-chip,.trade-audit {background:#f2f5f9;color:#10243b}
  .trade-analyzer h2,.trade-analyzer h3,.trade-analyzer strong {color:#10243b}
  .trade-control select,.trade-control input {background:#fff;color:#10243b;border-color:#bccbd9}
  .trade-check.pass::before,.trade-audit[data-status="current"] b {color:#216743}
  .trade-check.fail::before,.trade-audit[data-status="audit-needed"] b {color:#a12a31}
  .trade-check.review::before,.trade-audit[data-status="pending-review"] b {color:#80601f}
  .trade-manual {border-color:#d9c99f;color:#4c6075;background:#fbf8ef}
  .trade-verdict[data-status="eligible"] {background:#edf7f1;border-color:#a5cdb5}
  .trade-verdict[data-status="not-eligible"] {background:#fcf0f1;border-color:#e0adb1}
  .trade-verdict[data-status="commissioner-review"] {background:#fbf6e9;border-color:#d9c99f}
  .trade-verdict-badge {background:rgba(16,36,59,.06);color:#10243b}
  a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {
    outline:3px solid #245e96;outline-offset:3px;
  }
}
