/* Sticky stacked site nav + signed-in member bar. Loaded on every page.
   High contrast (text, weight, borders — not color alone). Revert: backups/sticky-bars-20261114/ */

html{scroll-padding-top:var(--chrome-h,72px)}
:target,h1,h2,h3,h4,h5,[id]{scroll-margin-top:var(--chrome-h,72px)}
.skip:focus{z-index:200}

.site-chrome{
  position:sticky;
  top:0;
  z-index:80;
  background:#000;
  border-bottom:3px solid #fff;
}
.site-chrome .top{
  position:relative;
  top:auto;
  z-index:auto;
  border-bottom:3px solid #fff;
}
.site-chrome #nav{z-index:90}
.ps-body .site-chrome,.xp-body .site-chrome{flex:0 0 auto}

#member-bar-host[hidden]{display:none!important}
#member-bar-host{display:block;background:#111;border-top:2px solid #fff}

/* Member bar typography/controls (also needed on public pages that don't load forum.css) */
.site-chrome .fbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  align-items:center;
  justify-content:space-between;
  border:0;
  margin:0;
  padding:8px 0;
}
.site-chrome .fbar .who{
  font-weight:700;
  color:#fff;
  min-width:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
.site-chrome a.who-l{color:#fff;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.site-chrome a.who-l:hover,.site-chrome a.who-l:focus{outline:3px solid #fff;outline-offset:2px}
.site-chrome .fmenus{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:stretch;
  justify-content:flex-end;
  margin-left:auto;
  width:auto;
  position:static;
  background:transparent;
  border:0;
  padding:0;
}
.site-chrome .fmenu{position:relative;width:auto}
.site-chrome .fmenu-btn{
  display:inline-flex;align-items:center;gap:8px;
  background:#111;border:3px solid #FFD200;color:#FFD200;
  font-family:inherit;font-weight:800;font-size:1rem;
  padding:8px 12px;border-radius:8px;cursor:pointer;
  min-height:44px;letter-spacing:.02em;width:auto;
}
.site-chrome .fmenu-btn:hover,.site-chrome .fmenu.open .fmenu-btn{background:#FFD200;color:#000}
.site-chrome .fmenu-btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
.site-chrome .fmenu-caret{font-size:.85rem;line-height:1}
.site-chrome .fmenu-badge{
  display:inline-block;min-width:1.4em;padding:1px 6px;border-radius:999px;
  background:#fff;color:#000;font-size:.75rem;font-weight:900;line-height:1.3;text-align:center
}
.site-chrome .fmenu-badge[hidden],.site-chrome .fmenu-badge:empty{display:none!important}
.site-chrome .fmenu-btn:hover .fmenu-badge,.site-chrome .fmenu.open .fmenu-btn .fmenu-badge{background:#000;color:#FFD200}
.site-chrome .fmenu-panel{
  position:absolute;right:0;top:calc(100% + 6px);z-index:95;
  min-width:220px;max-width:min(90vw,320px);
  max-height:min(60vh,420px);overflow:auto;-webkit-overflow-scrolling:touch;
  background:#0a0a0a;border:3px solid #FFD200;border-radius:8px;padding:6px;
  box-shadow:0 12px 28px rgba(0,0,0,.65);
  display:flex;flex-direction:column;gap:2px;
}
.site-chrome .fmenu-panel[hidden]{display:none!important}
.site-chrome .fmenu-panel a,.site-chrome .fmenu-panel .fmenu-out{
  display:block;width:100%;text-align:left;background:transparent;border:2px solid transparent;
  color:#fff;font-family:inherit;font-weight:700;font-size:1rem;
  padding:12px 14px;border-radius:6px;text-decoration:none;cursor:pointer;
  min-height:44px;box-sizing:border-box
}
.site-chrome .fmenu-panel a:hover,.site-chrome .fmenu-panel a:focus-visible,
.site-chrome .fmenu-panel .fmenu-out:hover,.site-chrome .fmenu-panel .fmenu-out:focus-visible{
  background:#FFD200;color:#000;border-color:#FFD200;outline:none
}
.site-chrome .fmenu-panel a[aria-current="page"]{font-weight:900;text-decoration:underline;border-left:4px double currentColor}
.site-chrome .fmenu-panel .msgl{display:flex;align-items:center;justify-content:space-between;gap:10px}
.site-chrome .msgn{
  display:inline-block;margin-left:6px;background:#f5c400;color:#000;border:2px solid #fff;
  border-radius:12px;font:800 .8rem/1.3 sans-serif;padding:0 8px;vertical-align:middle
}

/* Avatars, badges, titles used in "Signed in as …" (public pages don't load forum.css) */
.site-chrome .badge{
  display:inline-block;font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;
  border:2px solid #fff;padding:1px 6px;border-radius:4px;vertical-align:2px
}
.site-chrome .badge.Officer{background:#fff;color:#000}
.site-chrome .badge.Full{border-style:solid}
.site-chrome .badge.Aux{border-style:dashed}
.site-chrome .badge.Demo,.site-chrome .badge.Sample{border-style:dotted}
.site-chrome .badge.Support{border-style:double;border-width:4px}
.site-chrome .av{
  display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;
  object-fit:cover;border:2px solid #fff;flex:none;vertical-align:middle;background:#000
}
.site-chrome .av.ini{background:#f5c400;color:#000;font-weight:900;font-size:.9rem}
.site-chrome .ttl{
  display:inline-block;font-size:.75rem;font-weight:800;letter-spacing:.03em;
  padding:2px 8px;border-radius:4px;white-space:nowrap
}
.site-chrome .ttl-o,.site-chrome .ttl-s,.site-chrome .ttl.ttl-t-life-member,.site-chrome .ttl.ttl-t-original-45{
  background:#1a1a1a;color:#FFD200;border:2px solid #FFD200;border-radius:8px;font-style:normal;font-weight:800
}
.site-chrome .ttl-s{border-style:dashed}
.site-chrome .ttl-x{background:transparent;color:#fff;border:1px solid #fff;font-style:italic;font-weight:600}


/* Admin dropdown section groups. Headings are not links: heavier weight, uppercase,
   a top rule, and extra spacing distinguish them from menu items — not color alone.
   "No pages yet" is typographically muted (italic, regular weight, em dash) while
   staying high-contrast white on the dark panel. */
.site-chrome .fmenu-section{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:8px 0 0;
  padding:8px 0 2px;
  border-top:2px solid #fff;
}
.site-chrome .fmenu-heading{
  margin:0;
  padding:6px 14px 4px;
  font-family:inherit;
  font-weight:900;
  font-size:.75rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#fff;
  line-height:1.3;
  cursor:default;
  pointer-events:none;
  user-select:none;
}
.site-chrome .fmenu-empty{
  margin:0;
  padding:4px 14px 8px;
  font-family:inherit;
  font-weight:400;
  font-style:italic;
  font-size:.9rem;
  color:#fff;
  line-height:1.3;
  cursor:default;
  pointer-events:none;
}
.site-chrome .fmenu-empty::before{
  content:"— ";
  font-style:normal;
  font-weight:700;
}
/* Compact single-row member bar on small screens; dropdowns overlay content and scroll if long */
@media (max-width:700px){
  .site-chrome .fbar{
    flex-wrap:nowrap;
    align-items:center;
    gap:8px;
    padding:6px 0;
  }
  .site-chrome .fbar .who{
    flex:1 1 auto;
    flex-wrap:nowrap;
    overflow:hidden;
    white-space:nowrap;
    font-size:.95rem;
    min-width:0;
  }
  .site-chrome .fbar .who-lead,
  .site-chrome .fbar .who .ttl,
  .site-chrome .fbar .who .badge{display:none}
  .site-chrome .fbar .who .av{width:32px;height:32px}
  .site-chrome .fmenus{
    display:flex;
    flex-wrap:nowrap;
    flex:0 0 auto;
    width:auto;
    margin-left:0;
    gap:4px;
    grid-template-columns:none;
  }
  .site-chrome .fmenu{width:auto;flex:0 0 auto}
  .site-chrome .fmenu-btn{
    width:auto;
    justify-content:center;
    padding:6px 8px;
    min-height:40px;
    font-size:.8rem;
    gap:3px;
  }
  /* Panels are positioned against the menu group so they stay on-screen. */
  .site-chrome .fmenus{position:relative}
  .site-chrome .fmenu{position:static}
  .site-chrome .fmenu-panel{
    position:absolute;
    right:0;
    left:auto;
    top:calc(100% + 4px);
    margin-top:0;
    width:min(80vw,280px);
    min-width:0;
    max-height:min(60vh,360px);
    overflow:auto;
    box-shadow:0 12px 28px rgba(0,0,0,.65);
  }
}
