:root{--fgnav-h:65px} /* nav height — pages use this for sticky offsets; the mobile block below overrides it */
.fgnav{background:linear-gradient(180deg,#2e1a57 0%,#1a1036 55%,#140c28 100%);border-bottom:1px solid #3a2563;position:sticky;top:0;z-index:100;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;display:flex;align-items:stretch;height:65px;width:100%}
.fgnav-links{display:contents}
.fgnav a.fgnav-brand{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;font-size:1.53rem;line-height:1;font-weight:600;color:#e6edf3;padding:0 16px;margin:0;border-right:1px solid #262a36;white-space:nowrap;text-decoration:none;border-bottom:2px solid transparent}
/* Wordmark centers (both axes) in the bar via the flex above. The logo is
   absolutely positioned so it never shifts the text — it hangs cleanly below
   the navbar in the left ad gutter, above the ad rail (which starts at 252px). */
.fgnav a.fgnav-brand>span{display:inline-flex;align-items:center}
.fgnav a.fgnav-brand img{width:40px;height:40px;display:block;border-radius:9px}
@media (min-width:1100px) and (min-height:680px){
  /* 300px — same size as the ads, left:12px so it column-aligns with the
     300px ads centered in _ad.html's 324px rail channel (the ad rail starts
     below it at 386px). ONLY pages that reserve the matching left gutter
     (index.html sets body.fg-hang-logo) hang the big logo — everywhere else
     (e.g. /nfl/gambler) it would sit on top of the content, so those pages
     keep the compact 40px in-bar logo. */
  body.fg-hang-logo .fgnav a.fgnav-brand img{position:absolute;top:72px;left:12px;width:300px;height:300px;border-radius:18px;z-index:101;filter:drop-shadow(0 6px 16px rgba(0,0,0,.55))}
}
.fgnav a.fgnav-brand b{color:#a371f7;font-weight:700}
/* Compact-by-default links that EXPAND on hover: tighter type + padding at
   rest, growing back to full size under the pointer (transition smooths the
   shift). Keeps the bar short without hiding any label. */
.fgnav a.fgnav-link{display:flex;align-items:center;color:#8b949e;font-size:.84rem;padding:0 12px;text-decoration:none;border-bottom:2px solid transparent;transition:color .15s,border-color .15s,background .15s}
.fgnav a.fgnav-link:hover{color:#e6edf3;background:#1a1d27}
.fgnav a.fgnav-link.active{color:#a371f7;border-bottom-color:#a371f7}
.fgnav .fgnav-group{position:relative;display:flex;align-items:stretch}
.fgnav .fgnav-group>button{background:none;border:0;color:#8b949e;font-size:.84rem;padding:0 12px;cursor:pointer;font-family:inherit;display:flex;align-items:center;gap:6px;border-bottom:2px solid transparent;transition:color .15s,border-color .15s,background .15s;height:100%}
.fgnav .fgnav-group>button:hover,.fgnav .fgnav-group.open>button{color:#e6edf3;background:#1a1d27}
/* Keyboard parity: focused controls look exactly like hovered ones. */
.fgnav a:focus-visible,.fgnav button:focus-visible{outline:2px solid #a371f7;outline-offset:-2px;color:#e6edf3;background:#1a1d27}
/* Sport toggle: icon-only pill; the text label slides out on hover/open. */
.fgnav .fgnav-sport>button{font-size:1.05rem;padding:0 12px}
.fgnav .fgnav-sport>button:hover,.fgnav .fgnav-sport.open>button{font-size:1.05rem;padding:0 12px}
.fgnav .fgnav-sport .fgnav-sport-label{max-width:0;overflow:hidden;opacity:0;white-space:nowrap;font-size:.8rem;transition:max-width .18s ease,opacity .18s ease}
.fgnav .fgnav-sport>button:hover .fgnav-sport-label,.fgnav .fgnav-sport.open .fgnav-sport-label{max-width:110px;opacity:1}
.fgnav .fgnav-group.active>button{color:#a371f7;border-bottom-color:#a371f7}
.fgnav .fgnav-group>button::after{content:"\25BE";font-size:.6rem;opacity:.7}
.fgnav .fgnav-menu{position:absolute;top:65px;left:0;z-index:102;background:#161b22;border:1px solid #262a36;border-radius:0 0 8px 8px;padding:6px 0;min-width:210px;display:none;box-shadow:0 10px 28px rgba(0,0,0,.5)}
/* Double-wide menu (Rankings): two CSS columns so the full source list fits on screen without scrolling.
   Each header + its links is wrapped in .fgnav-menu-sec so a section can never
   split across columns (an unwrapped header can be orphaned at a column break
   even when every individual item avoids breaking). */
.fgnav .fgnav-menu.fgnav-menu-2col{min-width:480px;column-count:2;column-gap:0}
.fgnav .fgnav-menu-sec{display:block;break-inside:avoid;-webkit-column-break-inside:avoid}
.fgnav .fgnav-menu.fgnav-menu-2col>.fgnav-sep{display:none}
.fgnav .fgnav-group.open .fgnav-menu{display:block}
.fgnav .fgnav-menu a{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;color:#c9d1d9;text-decoration:none;font-size:.84rem;white-space:nowrap;gap:16px;border:0}
.fgnav .fgnav-menu a:hover{background:#1f2937;color:#a371f7}
.fgnav .fgnav-menu a.current{background:#1f2937;color:#a371f7;font-weight:600}
.fgnav .fgnav-sep{height:1px;background:#262a36;margin:6px 0}
.fgnav .fgnav-menu-hdr{padding:8px 16px 3px;font-size:.64rem;text-transform:uppercase;letter-spacing:.7px;color:#8b949e;font-weight:700}
.fgnav .fgnav-submenu{position:relative}
.fgnav .fgnav-submenu>.fgnav-sub-label{cursor:pointer;color:#c9d1d9}
.fgnav .fgnav-submenu>.fgnav-sub-label::after{content:"\25B8";font-size:.7rem;opacity:.6}
.fgnav .fgnav-submenu.open>.fgnav-sub-label::after{content:"\25BE"}
/* Flyout panels open on CLICK (not hover) and use fixed positioning set by JS:
   absolutely-positioned children inside a CSS-multicol container get fragment-
   relative offsets (the "jumping flyout" bug), and hover-only panels vanish on
   the diagonal mouse path. Click-to-stick fixes both. */
.fgnav .fgnav-submenu>.fgnav-sub-panel{position:fixed;background:#161b22;border:1px solid #262a36;border-radius:8px;padding:6px 0;min-width:180px;display:none;box-shadow:0 10px 28px rgba(0,0,0,.5);z-index:103}
.fgnav .fgnav-submenu.open>.fgnav-sub-panel{display:block}
.fgnav .fgnav-submenu:hover>.fgnav-sub-label,.fgnav .fgnav-submenu.open>.fgnav-sub-label{background:#1f2937;color:#a371f7}
.fgnav .fgnav-spacer{flex:1}
.fgnav .fgnav-right{display:flex;align-items:center;gap:14px;padding:0 16px;color:#8b949e;font-size:.78rem}
.fgnav .fgnav-right a{color:#8b949e;text-decoration:none}
.fgnav .fgnav-right a:hover{color:#a371f7}
/* Refresh Draft — a deep purple gradient with a glass highlight along the top.
   Prominent while sitting perfectly still: nothing here animates at rest. The
   only motion is the icon spinning while a refresh is actually in flight, so
   movement MEANS something instead of being decoration you learn to ignore. */
.fgnav-refresh{position:relative;overflow:hidden;
  display:inline-flex;align-items:center;gap:7px;padding:6px 13px;
  /* Deep violet ramp. Chosen for contrast, not just looks: white on the
     LIGHTEST stop is 7.1:1, and 5.2:1 even under the sheen below — the old
     button's label sat at 3.3:1 and dipped to ~2:1 mid-throb. */
  background:linear-gradient(160deg,#6d28d9 0%,#5b21b6 45%,#3b1580 100%);
  border:1px solid rgba(196,168,255,.45);color:#fff;font-size:.82rem;font-weight:700;
  letter-spacing:.01em;border-radius:999px;cursor:pointer;font-family:inherit;
  text-shadow:0 1px 2px rgba(0,0,0,.45);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 2px 8px rgba(76,29,149,.45);
  transition:transform .12s ease,box-shadow .2s ease,filter .15s ease}
/* The highlight: a soft sheen over the top half, so the pill reads as glass
   rather than flat fill. Static — it is lighting, not animation. */
.fgnav-refresh::before{content:"";position:absolute;inset:0 0 auto 0;height:50%;
  background:linear-gradient(to bottom,rgba(255,255,255,.16),rgba(255,255,255,0));
  border-radius:999px 999px 40% 40%/999px 999px 100% 100%;pointer-events:none}
.fgnav-refresh>*{position:relative;z-index:1}
.fgnav-refresh:hover{transform:translateY(-1px);filter:brightness(1.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 0 18px rgba(139,92,246,.55),0 6px 18px rgba(0,0,0,.45)}
.fgnav-refresh:active{transform:translateY(0) scale(.98)}
.fgnav-refresh:focus-visible{outline:2px solid #c4b5fd;outline-offset:2px}
.fgnav-refresh:disabled{opacity:.7;cursor:wait}
/* Outcome states — the button has to be able to say it failed (it could not
   before: these classes existed but nothing ever applied them). */
.fgnav-refresh.fgnav-refresh-ok{background:linear-gradient(160deg,#3fb950,#1f6f43);
  border-color:rgba(163,255,196,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 4px 14px rgba(31,111,67,.45)}
.fgnav-refresh.fgnav-refresh-err{background:linear-gradient(160deg,#f85149,#8c1d18);
  border-color:rgba(255,190,187,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 4px 14px rgba(140,29,24,.45)}
/* The glyph spins ONLY while a fetch is in flight. */
.fgnav-refresh-icon{display:inline-block;font-size:1.15rem;line-height:1}
.fgnav-refresh.spinning .fgnav-refresh-icon{animation:fgnav-spin 1s linear infinite}
@keyframes fgnav-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.fgnav-refresh .fgnav-refresh-label{display:inline-block}
@media(prefers-reduced-motion:reduce){
  /* Scoped to the spinner deliberately: it is the only animation left, and it
     is functional, so replace it with a static cue rather than removing the
     one signal that a refresh is running. */
  .fgnav-refresh.spinning .fgnav-refresh-icon{animation:none;opacity:.55}
  /* The live dot pulses forever whenever a draft is on the clock. Freeze it
     fully opaque — the dot's PRESENCE is the signal, the pulse was only ever
     decoration on top of it. */
  .fgnav-live-dot{animation:none;opacity:1}
}
.fgnav-refresh-age{color:rgba(255,255,255,.78);font-size:.7rem;font-weight:600;margin-left:1px}
.fgnav-updated{font-size:.72rem;color:#8b949e;white-space:nowrap}
.fgnav-live-dot{width:7px;height:7px;border-radius:50%;background:#3fb950;flex-shrink:0;animation:fgnav-pulse 2s infinite}
@keyframes fgnav-pulse{0%,100%{opacity:1}50%{opacity:.25}}
.fgnav-user{display:inline-flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;background:#1a1d27;border:1px solid #262a36;border-radius:999px;font-size:.78rem;color:#c9d1d9;text-decoration:none;transition:background .15s,border-color .15s}
.fgnav-user:hover{background:#1f2937;border-color:#3a4252;color:#a371f7}
.fgnav-user .fgnav-avatar{width:24px;height:24px;border-radius:50%;background:#21262d;flex-shrink:0;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:600;color:#a371f7}
.fgnav-user .fgnav-avatar img{width:100%;height:100%;object-fit:cover}
.fgnav-user .fgnav-user-name{font-weight:500;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fgnav-user .fgnav-user-switch{font-size:.7rem;color:#8b949e;border-left:1px solid #262a36;padding-left:8px;margin-left:2px}
.fgnav-user:hover .fgnav-user-switch{color:#a371f7}
.fgnav-plan{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;font-size:.72rem;font-weight:700;text-decoration:none;letter-spacing:.03em;white-space:nowrap}
.fgnav-plan.trial{background:rgba(242,181,68,.14);border:1px solid rgba(242,181,68,.5);color:#f2b544}
.fgnav-plan.trial:hover{background:rgba(242,181,68,.24)}
.fgnav-plan.free{background:rgba(163,113,247,.12);border:1px solid rgba(163,113,247,.5);color:#a371f7}
.fgnav-plan.free:hover{background:rgba(163,113,247,.22)}
.fgnav-admin{display:inline-flex;align-items:center;gap:5px;padding:4px 11px;border-radius:999px;font-size:.72rem;font-weight:700;letter-spacing:.03em;white-space:nowrap;text-decoration:none;background:rgba(227,179,65,.12);border:1px solid rgba(227,179,65,.5);color:#e3b341}
.fgnav-admin:hover{background:rgba(227,179,65,.22)}
.fgnav-plan.pro{background:rgba(63,185,80,.12);border:1px solid rgba(63,185,80,.45);color:#3fb950;cursor:default}
@media(max-width:1020px){.fgnav-plan{font-size:.66rem;padding:3px 8px}}
.fg-build{position:fixed;bottom:5px;right:8px;z-index:30;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.62rem;letter-spacing:.02em;color:#3a4150;background:rgba(13,17,23,.55);padding:1px 6px;border-radius:5px;text-decoration:none;opacity:.5;transition:opacity .15s,color .15s}
.fg-build:hover{opacity:.95;color:#8b949e}
/* Slim desktop tier: the full right cluster needs ~1210px before the two-row
   collapse kicks in at 1020px, so between the two it overflows the viewport.
   Trim to icon-only controls (same treatment as mobile) to keep one row. */
@media(max-width:1220px) and (min-width:1021px){
  .fgnav-updated{display:none!important}
  /* The age chip STAYS. It is the only thing on the button that carries
     information — "3m ago" is what tells a drafter the board is stale — and
     the affordance survives without it because the icon and label remain. */
  .fgnav-refresh{padding:5px 11px;font-size:.78rem;gap:6px}
  .fgnav-refresh-icon{font-size:1.05rem}
  .fgnav .fgnav-right{gap:10px;padding:0 12px}
  .fgnav-user .fgnav-user-switch{display:none}
  .fgnav a.fgnav-link,.fgnav .fgnav-group>button{padding:0 12px}
}
/* --- Mobile / narrow nav: two rows — brand + controls on top, a horizontally
   scrollable link strip below. Dropdown menus become fixed sheets pinned under
   the nav so the scroll strip can't clip them. --- */
@media(max-width:1020px){
  :root{--fgnav-h:97px} /* 52px top row + 44px link strip + 1px border */
  .fgnav{flex-wrap:wrap;height:auto}
  .fgnav a.fgnav-brand{height:52px;border-right:0;font-size:1.05rem;padding:0 12px}
  .fgnav a.fgnav-brand img{position:static;width:30px;height:30px;border-radius:7px;filter:none}
  .fgnav .fgnav-spacer{display:none}
  .fgnav .fgnav-right{margin-left:auto;height:52px;padding:0 10px;gap:8px}
  /* Age chip kept here too — see the note at the 1220px breakpoint. */
  .fgnav-refresh{padding:5px 11px;font-size:.78rem;gap:6px}
  .fgnav-refresh-icon{font-size:1.05rem}
  .fgnav-user .fgnav-user-name,.fgnav-user .fgnav-user-switch{display:none}
  .fgnav-user{padding:3px}
  .fgnav-bg span:not(.fgnav-bg-icon){display:none}
  .fgnav-updated{display:none!important}
  .fgnav-links{display:flex;order:10;flex:1 1 100%;overflow-x:auto;overflow-y:hidden;border-top:1px solid #3a2563;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .fgnav-links::-webkit-scrollbar{display:none}
  .fgnav-links>a.fgnav-link,.fgnav-links .fgnav-group{flex-shrink:0}
  .fgnav-links a.fgnav-link,.fgnav .fgnav-group>button{height:44px;padding:0 13px;font-size:.86rem}
  .fgnav .fgnav-menu{position:fixed;left:10px;right:10px;top:calc(var(--fgnav-h) + 4px);max-height:calc(100vh - var(--fgnav-h) - 24px);overflow-y:auto;border-radius:10px;min-width:0}
  .fgnav .fgnav-submenu>.fgnav-sub-panel{position:static;min-width:0;box-shadow:none;border:0;border-left:1px solid #262a36;border-radius:0;margin-left:14px}
  /* the 2-col rankings menu (.fgnav-menu.fgnav-menu-2col) outranks the rule above */
  .fgnav .fgnav-menu.fgnav-menu-2col{min-width:0;column-count:1}
}
/* Sub-480px: squeeze brand + right controls onto one 52px row so the nav
   height matches --fgnav-h (otherwise they wrap and sticky offsets drift). */
@media(max-width:480px){
  .fgnav a.fgnav-brand{font-size:.95rem;padding:0 8px;gap:6px}
  .fgnav a.fgnav-brand img{width:26px;height:26px}
  .fgnav .fgnav-right{padding:0 8px;gap:6px;font-size:.74rem}
  /* Phone: the label would overflow the single 52px row, so the button goes
     round and icon-only. The purple gradient and highlight carry it — no
     pulse. 44px, not 40, to clear the touch-target minimum. */
  .fgnav-refresh{padding:0;width:44px;height:44px;justify-content:center;gap:0}
  .fgnav-refresh .fgnav-refresh-label{display:none}
  /* The one layout with genuinely no room for it. The staleness still reaches
     the user through the button's aria-label and title, which JS keeps current. */
  .fgnav-refresh-age{display:none}
  .fgnav-refresh-icon{font-size:1.5rem}
}
