/* ── Shared site nav for /manuals/** pages ──────────────────────────────
   Mirrors the storefront's RobotimakerNav visual language (dark glass pill
   over a translucent gradient bar) so a visitor browsing a manual can hop
   back to Store / Robot Kits / About / Login without hunting through the
   URL bar. Static markup: no framework, no build step. Include via
   /manuals/_assets/site-nav.css + /manuals/_assets/site-nav.js. */

.rm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(to bottom,
    rgba(5, 6, 9, 0.95),
    rgba(5, 6, 9, 0.85) 60%,
    transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 24px;
  font-family: -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
}
.rm-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 56px;
}

/* Logo — link back to home */
.rm-nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}
.rm-nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.55));
  mix-blend-mode: screen;
  opacity: 0.98;
}

/* Pill nav */
.rm-nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.055),
    rgba(255,255,255,0.018));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 24px 70px rgba(0,0,0,0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  white-space: nowrap;
}
.rm-nav-link {
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.rm-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}
.rm-nav-link.rm-nav-active {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* Login / Open App CTA */
.rm-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #07090c;
  background: linear-gradient(to bottom, #ffffff, #dfe4ea);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow:
    0 10px 28px rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  transition: background 0.15s;
  margin-left: 4px;
}
.rm-nav-cta:hover { background: #fff; color: #050609; }
.rm-nav-cta-dot {
  position: relative;
  width: 10px; height: 10px;
  display: inline-flex;
}
.rm-nav-cta-dot::before,
.rm-nav-cta-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #22c55e;
}
.rm-nav-cta-dot::before {
  opacity: 0.7;
  animation: rm-nav-pulse 1.5s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes rm-nav-pulse {
  0%   { transform: scale(0.95); opacity: 0.7; }
  70%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* Mobile: hide pill, show hamburger */
.rm-nav-mobile-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.rm-nav-mobile-btn svg { width: 20px; height: 20px; }
.rm-nav-mobile-menu {
  display: none;
  position: fixed;
  top: 84px;
  left: 12px; right: 12px;
  background: #0b0f18;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 12px;
  z-index: 200;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.rm-nav-mobile-menu.open { display: block; }
.rm-nav-mobile-menu .rm-nav-link,
.rm-nav-mobile-menu .rm-nav-cta {
  display: block;
  margin: 4px 0;
  text-align: center;
}

@media (max-width: 900px) {
  .rm-nav-pill { display: none; }
  .rm-nav-mobile-btn { display: inline-flex; }
}

/* Push the manuals' existing fixed chrome (lang toggle, hamburger) below
   the new nav so they stop overlapping. The lang toggle originally sits at
   top:12px — 56 (nav bar) + 12 (its own gap) = 78px. Same for the manual
   hamburger which lives at top:14px inside crawler-one and humanoid-talker. */
body .lang-toggle { top: 84px !important; }
body .hamburger   { top: 88px !important; }

/* Give page content room below the fixed nav. Manuals set their own top
   padding on .wrap / .content wrappers; these rules add breathing room so
   headlines stop hiding behind the bar. */
body > .wrap { padding-top: 96px !important; }
body > .layout { padding-top: 84px; }
