/* Bastyon section navigation — centered, same colour structure as Blocknet. */
body.ecosystem--bastyon .bastyon-subnav-shell {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
}

#bastyon-subnav.bastyon-subnav {
  box-sizing: border-box;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 12px;
  padding: 10px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(75, 220, 255, 0.2);
  border-radius: 17px;
  background: rgba(3, 10, 16, 0.9);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#bastyon-subnav.bastyon-subnav::-webkit-scrollbar { display: none; }

#bastyon-subnav .bastyon-subnav__home {
  display: grid;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid rgba(75, 220, 255, 0.28);
  border-radius: 11px;
  background: rgba(75, 220, 255, 0.08);
}

#bastyon-subnav .bastyon-subnav__home img {
  display: block;
  width: 27px;
  filter: drop-shadow(0 0 9px rgba(75, 220, 255, 0.48));
}

#bastyon-subnav .bastyon-subnav__home:hover,
#bastyon-subnav .bastyon-subnav__home.is-active {
  border-color: rgba(75, 220, 255, 0.62);
  background: rgba(75, 220, 255, 0.15);
  box-shadow: 0 0 22px rgba(75, 220, 255, 0.13);
}

#bastyon-subnav .bastyon-subnav__link {
  --nav-rgb: 75, 220, 255;
  display: inline-flex;
  box-sizing: border-box;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  color: rgba(var(--nav-rgb), 0.9);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(var(--nav-rgb), 0.2);
  border-radius: 10px;
  background: rgba(var(--nav-rgb), 0.045);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

#bastyon-subnav .bastyon-subnav__link:nth-of-type(2) { --nav-rgb: 85, 245, 172; }
#bastyon-subnav .bastyon-subnav__link:nth-of-type(3) { --nav-rgb: 255, 200, 87; }
#bastyon-subnav .bastyon-subnav__link:nth-of-type(4) { --nav-rgb: 85, 245, 172; }
#bastyon-subnav .bastyon-subnav__link:nth-of-type(5) { --nav-rgb: 104, 146, 255; }
#bastyon-subnav .bastyon-subnav__link:nth-of-type(6) { --nav-rgb: 75, 220, 255; }
#bastyon-subnav .bastyon-subnav__link:nth-of-type(7) { --nav-rgb: 167, 123, 255; }

#bastyon-subnav .bastyon-subnav__link:hover,
#bastyon-subnav .bastyon-subnav__link.is-active {
  color: #f3fcff;
  border-color: rgba(var(--nav-rgb), 0.62);
  background: rgba(var(--nav-rgb), 0.15);
  box-shadow: 0 0 22px rgba(var(--nav-rgb), 0.13);
}

@media (max-width: 720px) {
  body.ecosystem--bastyon .bastyon-subnav-shell {
    width: calc(100% - 14px);
    margin-top: 8px;
  }

  #bastyon-subnav.bastyon-subnav {
    min-height: 62px;
    justify-content: flex-start;
    gap: 7px;
    padding: 8px;
    border-radius: 13px;
  }

  #bastyon-subnav .bastyon-subnav__link { min-height: 40px; padding: 9px 13px; font-size: 0.68rem; }
}
