/* ============================================================
   JUMP TO A HEADLINE + PAGES MENU — shared toggle menu boxes.
   Jump box installed Oct 15 2026 (nav repair); Pages menu added the
   same day (loading-error hunt): every FBI page carries BOTH boxes
   directly under the header/nav — "🧭 Jump to a headline" for the
   page's own headlines + the site directory, and "📄 Pages" listing
   every page of the site, grouped, for one-tap access.
   Both panels expand IN FLOW (never an overlay), cap their height
   and scroll internally, so every link stays reachable on a phone —
   the pre-repair homepage panel could grow past the phone viewport
   inside its sticky bar and strand its bottom links.
   Also carries two site-wide click repairs:
   - the sticky .site-nav is a single non-wrapping, sideways-scrolling
     row (it used to wrap to ~4-5 rows on phones and cover content);
   - every anchor target gets scroll-margin-top so a jumped-to
     headline lands BELOW the sticky nav instead of hidden under it.
   ============================================================ */
.jumpbox,.pagesmenu{max-width:1180px;width:calc(100% - 20px);margin:12px auto 6px;background:#f3ecd9;
  border:2px solid #17130c;border-radius:12px;box-shadow:0 3px 0 #17130c;
  font-family:Verdana,Geneva,sans-serif;position:relative;z-index:30}
.pagesmenu{margin-top:6px}
.jumpbox .jb-btn,.pagesmenu .jb-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
  background:#17130c;color:#faf6ec;border:0;border-radius:9px;padding:12px 16px;cursor:pointer;
  font-family:Verdana,Geneva,sans-serif;font-weight:bold;font-size:.92rem;letter-spacing:.02em;min-height:48px}
.pagesmenu .jb-btn{background:#1e4d6b}
.jumpbox .jb-btn:hover{background:#2a2113}
.pagesmenu .jb-btn:hover{background:#2a6186}
.jumpbox .jb-btn .jb-caret,.pagesmenu .jb-btn .jb-caret{transition:transform .15s ease;font-size:.8rem}
.jumpbox.open .jb-btn .jb-caret,.pagesmenu.open .jb-btn .jb-caret{transform:rotate(180deg)}
.jumpbox .jb-panel,.pagesmenu .jb-panel{display:none;padding:12px 12px 4px;max-height:62vh;overflow-y:auto;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.jumpbox.open .jb-panel,.pagesmenu.open .jb-panel{display:block}
.jumpbox .jb-home,.pagesmenu .jb-home{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 4px}
.jumpbox .jb-group,.pagesmenu .jb-group{margin:0 0 8px}
.jumpbox .jb-gname,.pagesmenu .jb-gname{display:block;font-size:.64rem;letter-spacing:.22em;text-transform:uppercase;
  color:#b3541e;margin:4px 2px 6px;font-weight:bold}
.jumpbox .jb-sub,.pagesmenu .jb-sub{display:block;font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;
  color:#6d6350;margin:8px 2px 4px;font-weight:bold}
.jumpbox .jb-links,.pagesmenu .jb-links{display:flex;flex-wrap:wrap;gap:6px}
.jumpbox .jb-links a,.jumpbox .jb-home a,.pagesmenu .jb-links a,.pagesmenu .jb-home a{font-size:.78rem;text-decoration:none;background:#fffdf6;
  border:1px solid #d8cfb4;border-radius:999px;padding:8px 12px;color:#17130c;line-height:1.25}
.jumpbox .jb-links a:hover,.jumpbox .jb-home a:hover,.pagesmenu .jb-links a:hover,.pagesmenu .jb-home a:hover{border-color:#b3541e;color:#b3541e}

/* Compact single-row site nav (click repair F2): never wraps tall. */
nav.site-nav{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
  -webkit-overflow-scrolling:touch;scrollbar-width:thin}
nav.site-nav a{flex:none}

/* Anchor landings clear the sticky site nav (click repair F2). */
[id]{scroll-margin-top:58px}

/* Scroll-centering guard (Burst 2, user order Oct 18, 2026 — "the page
   must STAY CENTERED when scrolling"): two mechanisms made centered
   pages drift/shift while scrolling —
   (1) the classic desktop scrollbar appearing/disappearing changes the
       layout width, so every margin:0 auto wrap visibly jumps sideways;
   (2) any transient horizontal overflow (a wide table/image inside a
       section) lets the page pan sideways on touch devices.
   Fixes: reserve the scrollbar gutter permanently so the centered
   column never changes width, and clip horizontal overflow at the
   root. overflow-x:clip (not hidden) creates no scroll container, so
   position:sticky (the .site-nav) keeps working; Safari 16+ and all
   modern Chrome/Firefox support it. */
html{scrollbar-gutter:stable}
body{overflow-x:clip}

/* ==== Collapsible sticky menu bars (user order Nov 4, 2026) ====
   The sticky .site-nav (subpages) and the homepage's sticky .navbox
   slide away on scroll-down and return on scroll-up, so the menu never
   covers the screen while reading. Their layout boxes are kept while
   hidden, so content never jumps. The .fbi-navtoggle button (injected
   by jumpbox.js) collapses the .site-nav row on demand; on phone-width
   screens the row starts collapsed behind it. */
.site-nav,.navbox{transition:transform .28s ease}
.site-nav.navhide,.navbox.navhide{transform:translateY(-110%)}
.site-nav.fbi-collapsed{display:none}
.fbi-navtoggle{display:flex;align-items:center;justify-content:center;gap:8px;
  width:calc(100% - 20px);max-width:1180px;margin:10px auto 0;padding:10px 14px;min-height:44px;
  background:#17130c;color:#faf6ec;border:2px solid #17130c;border-radius:10px;
  font-family:Verdana,Geneva,sans-serif;font-weight:bold;font-size:.85rem;letter-spacing:.04em;cursor:pointer}
.fbi-navtoggle:hover{background:#2a2113}
.fbi-navtoggle:focus-visible{outline:3px solid #b3541e;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.site-nav,.navbox{transition:none}}
