/* DraftLedger theme v2: StatsLedger-style (Figtree, pill controls, soft cards). Light by default, dark via the footer toggle.
   Only pages with <html data-newtheme> load this file. */
@font-face{font-family:'Figtree';font-weight:500;font-display:swap;src:url(../fonts/figtree-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Figtree';font-weight:600;font-display:swap;src:url(../fonts/figtree-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Figtree';font-weight:700;font-display:swap;src:url(../fonts/figtree-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Figtree';font-weight:800;font-display:swap;src:url(../fonts/figtree-latin-800-normal.woff2) format('woff2')}

:root{
  --bg:#FFFFFF; --panel:#FFFFFF; --panel2:#FAFAF8; --line:#ECECEA; --line2:#F2F2F0; --edge:#CFCFCA;
  --text:#1A1A1A; --soft:#3D3D3D; --mid:#4A4A4A; --mute:#6B6B6B;
  --lime:#1A1A1A; --on-lime:#FFFFFF; --soft-fill:#EFEFEC; --red:#D63A26; --amber:#B77800; --orange:#C2641A; --green:#14794A;
  --shadow:0 1px 2px rgba(0,0,0,.04),0 6px 20px rgba(0,0,0,.05); --radius:16px;
  --sans:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif; --mono:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;
  color-scheme:light;
}
html[data-theme="dark"]{
  --bg:#0E1116; --panel:#151A21; --panel2:#1A1F27; --line:#222A35; --line2:#1D232C; --edge:#3A4452;
  --text:#E8EAED; --soft:#C9CFD8; --mid:#B4BCC7; --mute:#9AA3AF;
  --lime:#C8F24A; --on-lime:#0E1116; --soft-fill:rgba(255,255,255,.08); --red:#FF6B57; --amber:#F2C94C; --orange:#F29B4C; --green:#8FD694;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 6px 20px rgba(0,0,0,.28);
  color-scheme:dark;
}
body{font-family:var(--sans)}
button,input,select,textarea{font-family:var(--sans)}

/* labels: quiet sans caps instead of mono */
.eyebrow,.lc .lh .eyebrow,.rookie-banner .rb-eyebrow{font-family:var(--sans);font-weight:700;font-size:12px;letter-spacing:.06em;color:var(--mute)}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .rookie-banner .rb-eyebrow{color:var(--mute)}

/* header */
.top{border-bottom:1px solid var(--line)}
.brand{gap:10px}
.brand .w{font-family:'Archivo',system-ui,sans-serif;color:var(--text)}
.brand .mark-dark{display:none}
html[data-theme="dark"] .brand .mark-light{display:none}
html[data-theme="dark"] .brand .mark-dark{display:block}
.nav a{min-height:40px;font-size:15px;font-weight:500;padding:0 14px;border-radius:999px;color:var(--mute)}
.nav a:hover{background:var(--panel2);color:var(--text)}
.nav a.on{background:var(--soft-fill);color:var(--text);font-weight:600}
.nsearch input{border:1.5px solid var(--edge);border-radius:999px;background-color:var(--panel);box-shadow:var(--shadow)}
.nsearch input:focus{border-color:var(--text);outline:none}

/* hero */
.hero h1,.page-title h1{letter-spacing:-.025em;text-wrap:balance}
.hero h1{font-size:clamp(34px,4.6vw,48px)}
.hero p{font-size:17px;color:var(--soft)}

/* cards */
.lc,.panel,.tile,.rookie-banner{border-radius:var(--radius);box-shadow:var(--shadow);border-color:var(--line)}
.lc{padding:20px 20px 14px}
.lc .lr{border-color:var(--line)}
.rookie-banner{background:var(--panel);border:1px solid var(--line)}
html[data-theme="dark"] .rookie-banner{background:linear-gradient(90deg,rgba(200,242,74,.08),rgba(200,242,74,0) 60%),var(--panel)}
.browse-links a{border-radius:14px;border-color:var(--line);background:var(--panel)}
.icon-btn{border-radius:999px;border-color:var(--line)}

/* pills */
.chip,.fsel{border-radius:999px;border:1px solid var(--line);background-color:var(--panel2);color:var(--text)}
.chip:hover,.fsel:hover{border-color:var(--text)}
.chip[aria-pressed=true]{background:var(--lime);color:var(--on-lime);border-color:var(--lime)}
.btn{border-radius:999px}
.btn.primary,.rookie-banner .rb-cta{background:var(--lime);border-color:var(--lime);color:var(--on-lime)}
.rookie-banner .rb-cta{border-radius:999px}
input[type=range]{accent-color:var(--lime)}

/* links that were lime text */
.seeall,.sp-link,.linkbtn,.ctl-split .seeall{color:var(--text);text-decoration:underline;text-decoration-color:var(--edge);text-underline-offset:3px}
html[data-theme="dark"] .seeall,html[data-theme="dark"] .sp-link,html[data-theme="dark"] .linkbtn{color:var(--lime)}
.nm a:hover,.name:hover{color:var(--green)}
html[data-theme="dark"] .nm a:hover,html[data-theme="dark"] .name:hover{color:var(--lime)}

/* footer + theme toggle */
footer.foot{border-top:1px solid var(--line)}
.foot-tools{display:flex;justify-content:center;margin-top:14px}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;border:1px solid var(--line);background:var(--panel2);color:var(--mute);cursor:pointer;padding:0}
.theme-toggle:hover{color:var(--text);border-color:var(--text)}
.theme-toggle:focus-visible{outline:2px solid var(--text);outline-offset:2px}
.theme-toggle svg{width:17px;height:17px;display:block}
.theme-toggle .i-sun{display:none}
html[data-theme="dark"] .theme-toggle .i-sun{display:block}
html[data-theme="dark"] .theme-toggle .i-moon{display:none}

/* light theme: colors the page sets inline for dark backgrounds, mapped to readable ones */
html:not([data-theme="dark"]) [style*="color:#C8F24A"],html:not([data-theme="dark"]) [style*="color: #C8F24A"]{color:#14794A!important}
html:not([data-theme="dark"]) [style*="color:#FF6B57"],html:not([data-theme="dark"]) [style*="color: #FF6B57"]{color:#D63A26!important}
html:not([data-theme="dark"]) [style*="color:#F2C94C"],html:not([data-theme="dark"]) [style*="color: #F2C94C"]{color:#B77800!important}
html:not([data-theme="dark"]) .lc .eyebrow{color:var(--mute)!important}

/* phones: keep the five nav links on one line, like the current site */
@media (max-width:640px){
  .nav{flex-wrap:nowrap;gap:0;justify-content:space-between;overflow-x:auto;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .nav a{padding:0 8px;font-size:14px;flex:0 0 auto}
}
@media (max-width:370px){.nav a{padding:0 5px;font-size:13.5px}}

/* Footer "More NFL draft lists" card: always centered like the other panels */
.wrap.lp-sib{max-width:1240px;width:100%;box-sizing:border-box;margin-left:auto!important;margin-right:auto!important;align-self:center}

/* Team/GM ledger tables: fit inside the card so the Grade column is never clipped */
@media (min-width:641px){
  .table:has(.row.p2){min-width:0}
  .row.p2{grid-template-columns:44px minmax(0,1.4fr) 58px 140px minmax(0,1.2fr) 48px}
  .table:has(.row.t2){min-width:0}
}
