/* ==========================================
   Floating nav — pill that takes over once the page header scrolls away
   (float-nav.js toggles .is-visible). Shared by the product site and /designs.
   ========================================== */
.float-nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding: 4px;
  border-radius: 60px;
  background-color: rgba(51, 51, 54, 0.7); /* #333336, see-through so the blur shows */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translate(-50%, -12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.float-nav.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* On pages with the float, the mobile header scrolls away with the page
   (instead of sticking) so the float can take over — see main.js */
.header.header--static {
  position: relative;
}

.float-nav-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  padding: 0 12px;
  border-radius: 60px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  color: #f8f8f8;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}

.float-nav-link:hover,
.float-nav-link:focus-visible {
  color: #fff;
}

.float-nav-link.is-active {
  background-color: #000;
  color: #fff;
}

.float-nav-link--icon {
  padding: 0 4px 0 12px;
}

.float-nav-link--icon img {
  width: 20.127px;
  height: 24px;
  max-width: none;
  object-fit: contain;
}

.float-nav-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

@media (max-width: 400px) {
  .float-nav-link {
    padding: 0 10px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-nav {
    transition: none;
  }
}
