/* PickSix Projections: shared styles. No inline styles anywhere (the CSP has no 'unsafe-inline' for styles). */
:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0e1726;
  --ink-2: #44505f;
  --muted: #6b7686;
  --line: #e2e7ee;
  --line-2: #cfd6df;
  --navy: #0e1a2b;          /* the logo's background */
  --navy-2: #182a42;
  --navy-line: #253a56;
  --accent: #0f7b4a;          /* buttons, links (white text on it: 5.2:1) */
  --accent-hover: #0b6a3f;
  --accent-soft: #e6f4ec;
  --mine-bg: #d9f2e3; --mine-line: #b5e2c6;    /* league sync: your roster */
  --taken-bg: #e7ebf0; --taken-line: #d5dce5; --taken-edge: #9aa7b6;   /* rostered elsewhere */
  --mark: #16a34a;            /* chart highlight: the logo green */
  --mark-off: #c3ccd7;        /* chart, the side not selected */
  --link: #0f66b8;
  --warn-ink: #8a4b00;
  --warn-bg: #fff4e0;
  --pos-QB: #e34948; --pos-RB: #1baf7a; --pos-WR: #2a78d6; --pos-TE: #eb6834;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 1px 1px rgba(14, 23, 38, .04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header */
.site-header { background: var(--navy); color: #fff; border-bottom: 1px solid var(--navy-line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { display: block; height: 44px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { color: #c9d5e4; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.nav a:hover { color: #fff; background: var(--navy-2); text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; background: var(--navy-2); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 6px;
       border: 1px solid transparent; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: #fff; border-color: #3b5478; }
.btn-ghost:hover { background: var(--navy-2); border-color: #56709a; }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--muted); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }

/* ---------- position chip & status chips: the text names the position, the tint is secondary */
.pos { display: inline-block; min-width: 30px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .03em;
       text-align: center; color: var(--ink); background: var(--surface-2); border-left: 3px solid var(--line-2); }
.pos.QB { border-left-color: var(--pos-QB); background: #fdeceb; }
.pos.RB { border-left-color: var(--pos-RB); background: #e6f7f0; }
.pos.WR { border-left-color: var(--pos-WR); background: #e8f1fb; }
.pos.TE { border-left-color: var(--pos-TE); background: #fdefe8; }
.chip { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .03em; vertical-align: 1px; }
.chip.inj { color: var(--warn-ink); background: var(--warn-bg); border: 1px solid #f2d3a2; }
.chip.est { color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); }
.updated { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.updated .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 3px rgba(23, 156, 90, .18); }
.updated.stale .dot { background: #c98500; box-shadow: 0 0 0 3px rgba(201, 133, 0, .18); }

/* ---------- footer */
.site-footer { margin-top: 56px; padding: 28px 0 36px; background: var(--navy); color: #a9bad0; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; }
.site-footer p { margin: 0; max-width: 620px; }
.site-footer a { color: #c9d5e4; }
.foot-brand { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand img { display: block; height: 36px; width: auto; }

/* ---------- dialog (league sync) */
dialog.sheet { border: 0; border-radius: 12px; padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(8, 18, 32, .55); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 18px; }
.sheet-body { padding: 20px 22px 24px; }
.sheet-body p { margin: 0 0 14px; color: var(--ink-2); }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.provider { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.provider .mark { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; background: #c8102e; flex: none; }
.provider .mark.sleeper { background: #19202c; }
.provider .txt { flex: 1; }
.provider .txt b { display: block; }
.provider .txt span { font-size: 13px; color: var(--muted); }
.soon { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 20px; }
.checks { margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.checks li { padding-left: 22px; position: relative; margin: 6px 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- tooltip */
.tooltip { position: fixed; z-index: 60; pointer-events: none; background: var(--navy); color: #fff; font-size: 12px; line-height: 1.4;
           padding: 6px 9px; border-radius: 6px; max-width: 280px; white-space: pre-line; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }

@media (max-width: 720px) {
  .site-header .wrap { gap: 12px; }
  .nav a.secondary { display: none; }
  .logo img { height: 32px; }
  .site-header .wrap { padding: 0 14px; gap: 10px; }
}
@media (max-width: 379px) {
  .logo img { height: 36px; width: 36px; }
  .header-right .btn { height: 36px; padding: 0 12px; }
}
