/* 2026-10-24 final patch: prevent legacy bottom controls covering active navigation. */
html body #ps-unified-nav {
  position:fixed!important; inset:auto 0 0 0!important;
  display:block!important; visibility:visible!important; opacity:1!important;
  width:100%!important; height:auto!important;
  isolation:isolate!important; transform:translateZ(0)!important;
  z-index:2147483647!important;
  margin:0!important; box-sizing:border-box!important;
  padding:8px 8px calc(10px + env(safe-area-inset-bottom,0px))!important;
  background:#fff!important; border-top:1px solid #e6e6e6!important;
  border-radius:0!important; overflow:visible!important;
  box-shadow:0 -4px 18px rgba(0,0,0,.045)!important;
}
html body #ps-unified-nav .ps-nav-inner {
  display:grid!important; grid-template-columns:repeat(5,minmax(0,1fr))!important;
  width:min(740px,100%)!important; max-width:100%!important;
  gap:3px!important; margin:0 auto!important; padding:0!important;
  align-items:stretch!important; overflow:visible!important;
}
html body #ps-unified-nav .ps-nav-inner>a {
  position:relative!important; inset:auto!important; z-index:1!important;
  height:68px!important; min-height:68px!important; max-height:68px!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  flex-direction:column!important; gap:4px!important; overflow:visible!important;
  padding:7px 1px!important; border-radius:18px!important;
  background:#fff!important; color:#4b4b4b!important; box-shadow:none!important;
  text-align:center!important; text-decoration:none!important;
  font:500 11px/1.15 system-ui,-apple-system,sans-serif!important;
  white-space:normal!important;
}
html body #ps-unified-nav .ps-nav-inner>a.active,
html body #ps-unified-nav .ps-nav-inner>a[aria-current="page"] {
  z-index:3!important; background:#663318!important; color:#fff!important;
  border-radius:18px!important; box-shadow:0 4px 10px rgba(70,33,17,.15)!important;
}
html body #ps-unified-nav .ps-nav-inner>a svg {
  display:block!important; width:24px!important; height:24px!important;
  fill:none!important; stroke:currentColor!important; stroke-width:1.8!important;
  flex-shrink:0!important; margin:0!important;
}
html body #ps-unified-nav .ps-nav-inner>a span {display:block!important; color:inherit!important; font:inherit!important; text-align:center!important;}
/* Legacy navs are superseded, including old fixed React/footer navigation. */
body:has(#ps-unified-nav) .ps-foot,
body:has(#ps-unified-nav) .eh-bottom,
body:has(#ps-unified-nav) nav.bottom,
body:has(#ps-unified-nav) footer.bottom {display:none!important;}
body:has(#ps-unified-nav){padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;}
@media(max-width:360px){html body #ps-unified-nav .ps-nav-inner>a {font-size:10px!important;}}
