/* Sport on Earth — page-section menu + writing menu (Nov 2, 2026, note B).
   The section menu is built at runtime from the page's own headings, so
   every section on the page appears in the menu by construction. It is
   sticky at the top of the viewport while scrolling, on every width.
   The writing menu (writing pages and pieces) adds sport and
   writing-section toggles and a Hide button.
   Stacking fix (Nov 2, 2026, note J — user order): the current-page
   menu renders BELOW the options menu and never covers it. Inside the
   bar the options row (sport/section toggles) comes first and the
   current-page chips below it; the bar's sticky top is offset in JS
   by the page header's measured height (the header holds the Menu
   toggle for the sport-options drawer), and section anchors carry a
   scroll-margin of header + bar height via the --soe-pm-* variables
   the script sets. */
.soe-pm{position:sticky;top:0;z-index:60;background:#10281c;color:#e9f1ec;
  font-family:Archivo,Arial,sans-serif;border-bottom:3px solid #1f6b4a;
  padding:8px 4vw;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.soe-pm-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.soe-pm-label{font-size:.68rem;letter-spacing:.22em;text-transform:uppercase;
  color:#4fbf8a;font-weight:800;margin:0;flex:none}
.soe-pm-chips{display:flex;gap:6px;overflow-x:auto;flex:1;min-width:0;
  padding-bottom:2px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.soe-pm-chips a{flex:none;color:#e9f1ec;text-decoration:none;font-weight:700;
  font-size:.8rem;border:1.5px solid #4fbf8a;border-radius:99px;
  padding:5px 11px;white-space:nowrap}
.soe-pm-chips a:hover{background:#1f6b4a;color:#fff}
.soe-pm select{font-family:Archivo,Arial,sans-serif;font-weight:700;
  font-size:.82rem;border-radius:6px;border:1.5px solid #4fbf8a;
  background:#0b1a13;color:#e9f1ec;padding:6px 8px;max-width:46vw;min-height:38px}
.soe-pm-hide,.soe-pm-show{font-family:Archivo,Arial,sans-serif;font-weight:800;
  cursor:pointer;background:transparent;color:#e9f1ec;
  border:1.5px solid #4fbf8a;border-radius:99px;padding:6px 12px;
  font-size:.8rem;min-height:38px}
.soe-pm-hide:hover,.soe-pm-show:hover{background:#1f6b4a}
.soe-pm-show{position:sticky;top:8px;z-index:60;background:#10281c;
  box-shadow:0 2px 10px rgba(0,0,0,.3);margin:6px 4vw}
/* Note J: the options row is the bar's first row now; the separator
   belongs to whichever row follows it (the current-page row). */
.soe-pm-row + .soe-pm-row{margin-top:6px;border-top:1px solid #1f6b4a;
  padding-top:6px}
/* Note J: a jumped-to section heading lands below BOTH sticky bars
   (page header + this menu), never underneath them. The variables
   are measured and set by soe-pagemenu.js; defaults keep the margin
   sane before the script runs. */
main h2{scroll-margin-top:calc(var(--soe-pm-top,0px) +
  var(--soe-pm-barh,54px) + 12px)}
@media (max-width:640px){
  .soe-pm{padding:6px 3vw}
  .soe-pm-chips a{font-size:.76rem;padding:5px 9px}
  .soe-pm select{max-width:44vw;font-size:.78rem}
  .soe-pm-label{display:none}
}
@media (prefers-reduced-motion:reduce){.soe-pm{scroll-behavior:auto}}

/* Accessibility pass (Nov 3, 2026): 40px targets + visible focus on the
   dark page-menu bar (gold outline reads on the #10281c ground). */
.soe-pm-chips a{min-height:40px;display:inline-flex;align-items:center;box-sizing:border-box}
.soe-pm-hide,.soe-pm-show,.soe-pm select{min-height:40px}
.soe-pm a:focus-visible,.soe-pm button:focus-visible,.soe-pm select:focus-visible,
.soe-pm-show:focus-visible{outline:3px solid #ffd94d;outline-offset:2px}
