/* P159: static source navigation retained from stable P158 base. */
/* BenchPad Platform P154 · static source navigation. No JS construction or relocation. */
:root{
  --bp-nav-h:44px;
  --bp-nav-gap:12px;
  --bp-nav-radius:17px;
  --bp-nav-accent:#79ddff;
  --bp-nav-border:rgba(75,196,239,.58);
  --bp-nav-bg:linear-gradient(180deg,rgba(14,51,67,.92),rgba(7,31,43,.96));
  --bp-nav-hover:linear-gradient(180deg,rgba(20,66,86,.96),rgba(8,38,52,.98));
}

.bp-static-nav{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:var(--bp-nav-gap)!important;
  align-items:stretch!important;
  margin:0 0 14px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  position:relative!important;
  inset:auto!important;
  z-index:30!important;
  overflow:visible!important;
}
.bp-static-nav-slot{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:var(--bp-nav-h)!important;
  min-height:var(--bp-nav-h)!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  overflow:visible!important;
}
.bp-static-nav-right:empty{pointer-events:none!important}

.bp-static-nav-link,
.bp-static-nav-action{
  all:unset!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:var(--bp-nav-h)!important;
  min-height:var(--bp-nav-h)!important;
  max-height:var(--bp-nav-h)!important;
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr) 20px!important;
  column-gap:5px!important;
  align-items:center!important;
  justify-items:stretch!important;
  padding:0 8px!important;
  margin:0!important;
  border:1px solid var(--bp-nav-border)!important;
  border-radius:var(--bp-nav-radius)!important;
  background:var(--bp-nav-bg)!important;
  color:var(--bp-nav-accent)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 7px 18px rgba(0,0,0,.12)!important;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:clamp(10.7px,2.85vw,12.7px)!important;
  font-weight:850!important;
  line-height:1!important;
  letter-spacing:-.035em!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  cursor:pointer!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  -webkit-tap-highlight-color:transparent!important;
  transition:transform .15s ease,border-color .15s ease,background .15s ease!important;
}
.bp-static-nav-link:hover,.bp-static-nav-link:focus-visible,
.bp-static-nav-action:hover,.bp-static-nav-action:focus-visible{
  background:var(--bp-nav-hover)!important;
  border-color:rgba(108,222,255,.9)!important;
  outline:none!important;
  transform:translateY(-1px)!important;
}
.bp-static-nav-link:active,.bp-static-nav-action:active{transform:scale(.986)!important}
.bp-static-nav-action:disabled{opacity:.5!important;cursor:not-allowed!important;transform:none!important}

.bp-static-nav-icon,.bp-static-nav-balance{
  all:unset!important;
  box-sizing:border-box!important;
  width:20px!important;
  height:22px!important;
  display:grid!important;
  place-items:center!important;
  color:inherit!important;
  font:inherit!important;
  font-size:22px!important;
  font-weight:720!important;
  line-height:22px!important;
}
.bp-static-nav-icon{grid-column:1!important}
.bp-static-nav-balance{grid-column:3!important;visibility:hidden!important}
.bp-static-nav-label{
  all:unset!important;
  box-sizing:border-box!important;
  grid-column:2!important;
  min-width:0!important;
  width:100%!important;
  color:inherit!important;
  font:inherit!important;
  line-height:1!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

/* A navigation host contains no slider-like outer surface. */
.bp-static-nav-host{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:6px 10px!important;
  margin-bottom:14px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  overflow:visible!important;
  position:relative!important;
  inset:auto!important;
}
.bp-static-nav-host>.bp-static-nav{flex:0 0 100%!important;order:-100!important;margin-bottom:2px!important}
.bp-static-nav-host>:not(.bp-static-nav){flex:0 0 100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}

/* Generic decorative logos must never occupy the reserved right navigation half. */
.bp-static-nav-host>img.logo,
.bp-static-nav-host>.brand-mark{display:none!important}

/* Right-side language control, physically present in the same source row. */
.bp-static-nav-language{
  all:unset!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:var(--bp-nav-h)!important;
  padding:3px!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:3px!important;
  border:1px solid var(--bp-nav-border)!important;
  border-radius:var(--bp-nav-radius)!important;
  background:var(--bp-nav-bg)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 7px 18px rgba(0,0,0,.12)!important;
}
.bp-static-nav-language button{
  all:unset!important;
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  min-width:0!important;
  height:100%!important;
  border-radius:13px!important;
  color:rgba(224,239,246,.56)!important;
  font:850 12px/1 Inter,system-ui,sans-serif!important;
  cursor:pointer!important;
  text-align:center!important;
}
.bp-static-nav-language button.active,
.bp-static-nav-language button[aria-pressed="true"]{
  color:#fff!important;
  background:rgba(77,186,231,.23)!important;
  box-shadow:inset 0 0 0 1px rgba(94,211,255,.12)!important;
}

/* Local Partners: the two actual controls are one static 50/50 row. */
body[data-bp-page="local-partners"] .lp-head.lp-head-with-map{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 58px!important;
  grid-template-rows:auto auto auto!important;
  gap:6px 10px!important;
  align-items:center!important;
  margin:0 0 14px!important;
  padding:0!important;
  position:relative!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
body[data-bp-page="local-partners"] .lp-head>.bp-static-nav{
  grid-column:1/-1!important;
  grid-row:1!important;
  margin:0 0 8px!important;
}
body[data-bp-page="local-partners"] .lp-title-row{
  grid-column:1!important;grid-row:2!important;
  min-width:0!important;width:100%!important;margin:0!important;padding:0!important;
}
body[data-bp-page="local-partners"] .lp-subtitle-row{display:contents!important}
body[data-bp-page="local-partners"] #lpTitle{
  margin:0!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
}
body[data-bp-page="local-partners"] #lpSubtitle{
  grid-column:1!important;grid-row:3!important;
  width:100%!important;min-width:0!important;margin:0!important;
  white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
}
body[data-bp-page="local-partners"] .lp-header-count{
  grid-column:2!important;grid-row:2 / span 2!important;
  align-self:center!important;justify-self:end!important;
  position:static!important;inset:auto!important;transform:none!important;
  width:58px!important;min-width:58px!important;max-width:58px!important;
  height:58px!important;min-height:58px!important;
  margin:0!important;padding:0!important;display:grid!important;place-items:center!important;
}
body[data-bp-page="local-partners"] #lpMapToggle.bp-static-nav-action{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr) 20px!important;
  column-gap:5px!important;
  align-items:center!important;
  padding:0 8px!important;
}
body[data-bp-page="local-partners"] #lpMapToggle .lp-header-control-icon{
  grid-column:1!important;
  width:15px!important;height:18px!important;min-width:15px!important;
  margin:0 auto!important;transform:scale(.72)!important;transform-origin:center!important;
}
body[data-bp-page="local-partners"] #lpMapToggle .lp-map-button-copy{
  display:block!important;grid-column:2!important;min-width:0!important;text-align:center!important;
}
body[data-bp-page="local-partners"] #lpMapToggle .lp-header-control-label{
  display:block!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;
  color:inherit!important;font:inherit!important;letter-spacing:-.035em!important;
}
body[data-bp-page="local-partners"] #lpMapToggle .lp-header-control-balance{
  display:block!important;grid-column:3!important;width:20px!important;visibility:hidden!important;
}

/* Municipal Info: no detached language block. */
body[data-bp-page="municipal-info"] header.topbar{
  width:100%!important;display:block!important;margin:0 0 14px!important;padding:0!important;
  border:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
}
body[data-bp-page="municipal-info"] header.topbar>.bp-static-nav{margin:0!important}

/* Current Offers: navigation is its own clean row; metrics belong to the title block. */
body[data-bp-page="offers"] .co-top-actions-v14210{
  width:100%!important;display:block!important;margin:0 0 12px!important;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
body[data-bp-page="offers"] .co-top-actions-v14210>.bp-static-nav{margin:0!important}
body[data-bp-page="offers"] .co-title-row-v14210{
  grid-template-columns:minmax(0,1fr) 92px!important;
  gap:10px!important;align-items:start!important;
}

/* World key state is part of the hero, not the navigation strip. */
body[data-bp-page="benchpad-world"] .top{margin-bottom:10px!important}
body[data-bp-page="benchpad-world"] .top>.bp-static-nav{margin:0!important}
body[data-bp-page="benchpad-world"] .bp-world-key-status{
  width:max-content!important;max-width:100%!important;margin:0 0 14px auto!important;
  padding:7px 10px!important;border:1px solid rgba(215,168,62,.16)!important;border-radius:999px!important;
  background:rgba(0,0,0,.18)!important;font-size:10px!important;text-align:left!important;
  transform:translateY(-43px)!important;
}

/* Profile key state sits inside the identity card. */
body[data-bp-page="benchpad-profile"] .topbar{margin-bottom:12px!important}
body[data-bp-page="benchpad-profile"] .topbar>.bp-static-nav{margin:0!important}
body[data-bp-page="benchpad-profile"] .bp-profile-key-status{
  width:max-content!important;max-width:100%!important;margin:0 0 14px auto!important;
  padding:7px 10px!important;border:1px solid rgba(215,168,62,.16)!important;border-radius:999px!important;
  background:rgba(0,0,0,.17)!important;font-size:10px!important;
}

/* Full-screen spheres: one source-defined grid row, no old brand and no flash. */
body[data-bp-page="benchpad-time-capsule"] header.topbar,
body[data-bp-page="benchpad-memory-orbit"] header.topbar{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;
  display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
body[data-bp-page="benchpad-time-capsule"] header.topbar>.bp-static-nav,
body[data-bp-page="benchpad-memory-orbit"] header.topbar>.bp-static-nav{margin:0!important}
body[data-bp-page="benchpad-time-capsule"],body[data-bp-page="benchpad-memory-orbit"]{overflow:hidden!important}

/* Roadmap is public content; Backup is available only in Engineering Tools. */
body[data-bp-page="benchpad-roadmap"] .owner-links,
body[data-bp-page="benchpad-roadmap"] a[href="benchpad-backup.html"]{display:none!important}

@media(max-width:430px){
  :root{--bp-nav-h:42px;--bp-nav-gap:10px;--bp-nav-radius:16px}
  .bp-static-nav-link,.bp-static-nav-action{grid-template-columns:18px minmax(0,1fr) 18px!important;padding:0 6px!important;column-gap:4px!important;font-size:clamp(10px,2.75vw,11.7px)!important}
  .bp-static-nav-icon,.bp-static-nav-balance{width:18px!important;font-size:20px!important}
  body[data-bp-page="local-partners"] .lp-head.lp-head-with-map{grid-template-columns:minmax(0,1fr) 52px!important;gap:5px 8px!important}
  body[data-bp-page="local-partners"] .lp-header-count{width:52px!important;min-width:52px!important;max-width:52px!important;height:52px!important;min-height:52px!important}
  body[data-bp-page="offers"] .co-title-row-v14210{grid-template-columns:minmax(0,1fr) 84px!important;gap:8px!important}
    }
@media(max-width:350px){
  :root{--bp-nav-h:40px;--bp-nav-gap:8px}
  .bp-static-nav-link,.bp-static-nav-action{font-size:9.7px!important;grid-template-columns:16px minmax(0,1fr) 16px!important;padding:0 5px!important}
  .bp-static-nav-icon,.bp-static-nav-balance{width:16px!important;font-size:18px!important}
}
