/* Menufix2 (Oct 30, 2026): this stylesheet is embedded verbatim in
   soe-sidebar.js (build_sport_pages.py reads this file at build time),
   which injects it as an inline <style> — the drawer stays styled even
   if this file's own request fails, is served with a wrong
   Content-Type, or a stale copy is cached. Rebuild after any edit. */
/* Sport on Earth left-side menu.
   Wave 4: standalone asset loaded alongside soe-sidebar.js.
   Wave 6: the sidebar became the site's only navigation.
   Wave 7 (Oct 30, 2026): the menu is a TOGGLE DRAWER on every screen —
   closed by default, opened from the ☰ Menu toggle on the left, closed
   by the toggle, the scrim or Escape. It is never persistent and never
   sits open above or beside the page, on desktop or phone. */
:root{--soe-sb-w:248px}
.soe-sb{font-family:Archivo,Arial,sans-serif;background:#10281c;color:#e9f1ec;
  padding:18px 16px 24px;overflow-y:auto;overscroll-behavior:contain}
.soe-sb-brand{font-weight:900;font-size:1.12rem;letter-spacing:-.02em;margin:0 0 2px}
.soe-sb-brand a{color:#e9f1ec;text-decoration:none}
.soe-sb-brand span{color:#4fbf8a}
.soe-sb-kick{font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;
  color:#4fbf8a;font-weight:800;margin:0 0 14px}
.soe-sb-list{list-style:none;margin:0;padding:0}
.soe-sb-list li{margin:0}
.soe-sb-list a{display:block;color:#e9f1ec;text-decoration:none;font-weight:700;
  font-size:.95rem;line-height:1.3;padding:8px 10px;border-radius:6px}
.soe-sb-list a:hover{background:#1c3d2a;color:#4fbf8a}
.soe-sb-list a[aria-current="page"]{background:#1f6b4a;color:#fff}
.soe-sb-note{font-size:.82rem;line-height:1.45;color:#9db3a6;margin:16px 2px 0}
.soe-sb-note a{color:#4fbf8a}
.soe-sb-toggle{font-family:Archivo,Arial,sans-serif;font-weight:800;cursor:pointer;
  background:#10281c;color:#e9f1ec;border:2px solid #4fbf8a;border-radius:99px;
  padding:10px 16px;font-size:.9rem;box-shadow:0 4px 14px rgba(0,0,0,.35)}
/* Menu-fix (Oct 30, 2026): with a header bar present the toggle sits IN
   the bar at the top of the page (no shadow, bar-sized); the floating
   bottom-left pill remains only as the fallback for bar-less pages. */
.soe-sb-toggle-bar{position:static;flex:none;box-shadow:none;padding:8px 13px;
  font-size:.85rem;margin-right:2px}
.soe-sb-close{position:absolute;top:12px;right:12px;font-family:Archivo,Arial,sans-serif;
  font-weight:800;font-size:.8rem;cursor:pointer;background:transparent;color:#e9f1ec;
  border:2px solid #4fbf8a;border-radius:99px;padding:6px 12px}
.soe-sb-close:hover{background:#1c3d2a;color:#4fbf8a}
.soe-sb-scrim{display:none}

/* Wave 7: off-canvas left drawer behind the toggle, at EVERY width.
   Closed by default; body.soe-sb-open is the only thing that shows it. */
.soe-sb{position:fixed;top:0;bottom:0;left:0;width:min(86vw,320px);z-index:90;
  transform:translateX(-105%);transition:transform .22s ease-in-out;
  border-right:3px solid #1f6b4a}
body.soe-sb-open .soe-sb{transform:none;box-shadow:0 0 44px rgba(0,0,0,.5)}
.soe-sb-toggle-fixed{position:fixed;left:12px;bottom:16px;z-index:91}
body.soe-sb-open .soe-sb-toggle-fixed{left:auto;right:12px}
.soe-sb-scrim{position:fixed;inset:0;background:rgba(4,16,10,.55);z-index:89}
body.soe-sb-open .soe-sb-scrim{display:block}

/* Wide screens: a slightly wider drawer, still toggle-only. */
@media (min-width:1024px){
  .soe-sb{width:340px}
}
@media (prefers-reduced-motion:reduce){
  .soe-sb{transition:none}
}

/* Wave 6 (Oct 30, 2026): the sidebar carries the FULL menu — group
   headings for Features / More from the desk / All sports. */
.soe-sb-group{font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;
  color:#4fbf8a;font-weight:800;margin:18px 0 6px}
.soe-sb-tag{font-size:.82rem;line-height:1.45;color:#9db3a6;margin:0 2px 4px}
.soe-sb-foot{font-size:.82rem;line-height:1.45;color:#9db3a6;margin:16px 2px 0}
.soe-sb-foot a{color:#4fbf8a}

/* Menu-fix (Oct 30, 2026): phone-width header compaction for every page
   family that carries the .top header (shell pages, shop, homepage).
   These selectors out-specify the per-page inline .bar/.brand rules, so
   one shared fix lands site-wide without rebuilding each template:
   the bar wraps into two tidy rows instead of a squeezed single row —
   Menu + brand + Data Mode, then the account area. */
@media (max-width:640px){
  .top .bar{gap:8px;padding:8px 4vw}
  .top .brand{font-size:1.02rem}
  .top .datamode-btn{padding:6px 9px;font-size:.78rem}
  .soe-sb-toggle-bar{padding:7px 11px;font-size:.82rem}
}

/* Accessibility pass (Nov 3, 2026): the closed drawer is translated
   off-screen; without this its ~500 links stayed in the keyboard tab
   order while invisible. visibility removes them from tab order and
   the accessibility tree; the delayed transition keeps the slide-out
   animation. Gold focus outline on the dark drawer; 40px close target. */
.soe-sb{transition:transform .22s ease-in-out,visibility 0s linear .22s;visibility:hidden}
body.soe-sb-open .soe-sb{transition:transform .22s ease-in-out,visibility 0s;visibility:visible}
.soe-sb a:focus-visible,.soe-sb button:focus-visible,.soe-sb-toggle:focus-visible{outline:3px solid #ffd94d;outline-offset:2px}
.soe-sb-close{min-height:40px;display:inline-flex;align-items:center}
.soe-sb-toggle{min-height:40px}
@media (prefers-reduced-motion:reduce){.soe-sb{transition:none}}

/* Doc-27 (Nov 13, 2026): the Features / Writing / More from the desk
   groups are collapsible dropdowns (see ddGroup in soe-sidebar.js).
   The panel is a normal in-flow block inside the drawer — expanding
   it pushes the rest of the menu down inside the drawer's own scroll
   area; it never overlays page content at any width, and the drawer
   itself stays a toggle drawer that never covers the screen while
   scrolling. */
.soe-sb-dd-btn{display:flex;width:100%;align-items:center;justify-content:space-between;
  gap:8px;background:none;border:0;cursor:pointer;text-align:left;padding:4px 0;
  min-height:36px;font-family:inherit}
.soe-sb-dd-btn:hover{color:#e9f1ec}
.soe-sb-dd-chev{font-size:.8rem;letter-spacing:0;transition:transform .18s ease}
.soe-sb-dd-btn[aria-expanded="true"] .soe-sb-dd-chev{transform:rotate(90deg)}
.soe-sb-dd-panel[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.soe-sb-dd-chev{transition:none}}

/* Doc-27B (Nov 13, 2026): drawer regrouping — pinned quick links at
   the top (always visible), a filter input under the tagline, and
   the six accordions + About & Legal below. Filtering hides links
   in place inside the drawer; nothing here moves or overlays page
   content. */
.soe-sb-pinned{border-bottom:1px solid #1f6b4a;padding-bottom:10px;margin-bottom:2px}
.soe-sb-filter{margin:10px 0 2px}
.soe-sb-filter input{width:100%;box-sizing:border-box;font-family:inherit;
  font-size:.9rem;font-weight:600;padding:8px 10px;border-radius:6px;
  border:2px solid #1f6b4a;background:#0b1a13;color:#e9f1ec}
.soe-sb-filter input::placeholder{color:#9db3a6}
.soe-sb-filter input:focus-visible{outline:3px solid #ffd94d;outline-offset:2px}
.soe-sb-filtering .soe-sb-group{display:none}
.soe-sb-nomatch{font-size:.85rem;color:#9db3a6;margin:10px 2px;display:none}
.soe-sb-filtering .soe-sb-nomatch.on{display:block}

/* Collapsible header bar (user order Nov 4, 2026): the sticky .top bar
   slides away on scroll-down and returns on scroll-up, so it never
   covers the screen while reading; its layout box is kept while hidden,
   so content never jumps. When the bar is hidden, the sticky page menu
   (.soe-pm) slides up to the very top in its place, and its restore
   pill follows. The drawer's Menu toggle rides with the bar. */
.top{transition:transform .28s ease}
body.soe-top-hidden .top{transform:translateY(-110%)}
body.soe-sb-open .top{transform:none}
body.soe-top-hidden .soe-pm{top:0 !important}
body.soe-top-hidden .soe-pm-show{top:8px !important}
.soe-pm{transition:top .28s ease}
@media (prefers-reduced-motion:reduce){.top,.soe-pm{transition:none}}

/* Doc-30 (Nov 14, 2026): the featured Fantasy Leagues drawer entry —
   seated below the Writing group (Doc-34 reseat, Nov 14, 2026),
   marked with an accent edge so it reads as a featured destination,
   not another accordion. */
.soe-sb-featured{border-left:4px solid #1f6b4a;background:rgba(31,107,74,.10);
  border-radius:0 8px 8px 0;margin:8px 0;padding-left:6px}
.soe-sb-featured .soe-sb-dd-btn{font-weight:800}

/* Doc-33 (Nov 14, 2026; owner orders A1/B1/B2): All sports renders as
   letter-grouped accordions (see sportLetterGroup in soe-sidebar.js)
   instead of one flat 435-link tail — collapsed letters keep the
   drawer short, so the bottom of the menu is reachable with margin
   to spare. The drawer also gains: momentum scrolling + explicit
   vertical pan handling, bottom padding that clears the phone's
   home-indicator area, and a page scroll lock while the drawer is
   open (the drawer's own scroll is unaffected; the JS additionally
   resets the drawer to its top and preserves the page position on
   every open). */
.soe-sb{-webkit-overflow-scrolling:touch;touch-action:pan-y;
  padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
.soe-sb-letter .soe-sb-dd-btn{min-height:34px;padding:2px 0;font-size:.72rem}
body.soe-sb-open{overflow:hidden}
