/* Native adaptation of React Bits PillNav: rising circle and sliding labels. */
.tabbar.pill-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 0;
}
.tabbar.pill-nav[hidden] { display: none; }
.pill-nav .pill-nav-items {
  display: flex;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  padding: 5px;
  border: 1px solid rgb(159 203 232 / .2);
  border-radius: 999px;
  background: rgb(3 12 21 / .92);
  box-shadow: 0 5px 18px rgb(0 0 0 / .2);
}
.tabbar.pill-nav .tab.pill-link {
  position: relative;
  isolation: isolate;
  flex: 1;
  flex-direction: row;
  min-width: 0;
  height: 44px;
  gap: 7px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #172938;
  color: #d9eaf4;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  transition: background-color 200ms ease, color 200ms ease;
}
.tabbar.pill-nav .tab.pill-link[aria-current="page"] {
  background: #a4dfff;
  color: #071c2b;
}
.tabbar.pill-nav .tab.pill-link::after { content: none; }
.pill-link .pill-circle {
  position: absolute;
  left: 50%;
  bottom: var(--pill-circle-bottom, -8px);
  width: var(--pill-circle-size, 120px);
  height: var(--pill-circle-size, 120px);
  border-radius: 50%;
  background: #a4dfff;
  transform: translateX(-50%) scale(0);
  transform-origin: 50% var(--pill-circle-origin, 110px);
  transition: transform 300ms cubic-bezier(.22, .61, .36, 1);
  z-index: -1;
  pointer-events: none;
}
.pill-link > svg {
  position: relative;
  flex: none;
  width: 19px;
  height: 19px;
  transition: color 200ms ease;
}
.pill-label-stack { position: relative; display: block; line-height: 1.3; }
.pill-label, .pill-label-hover {
  display: block;
  white-space: nowrap;
  transition: transform 300ms cubic-bezier(.22, .61, .36, 1), opacity 250ms ease;
}
.pill-label-hover {
  position: absolute;
  inset: 0;
  color: #071c2b;
  transform: translateY(52px);
  opacity: 0;
}
.tabbar.pill-nav .tab.pill-link:focus-visible {
  outline: 2px solid #f0f8ff;
  outline-offset: 2px;
  color: #071c2b;
}
.pill-link:focus-visible .pill-circle { transform: translateX(-50%) scale(1.2); }
.pill-link:focus-visible .pill-label { transform: translateY(-52px); opacity: 0; }
.pill-link:focus-visible .pill-label-hover { transform: translateY(0); opacity: 1; }
@media (hover: hover) {
  .tabbar.pill-nav .tab.pill-link:hover { color: #071c2b; }
  .pill-link:hover .pill-circle { transform: translateX(-50%) scale(1.2); }
  .pill-link:hover .pill-label { transform: translateY(-52px); opacity: 0; }
  .pill-link:hover .pill-label-hover { transform: translateY(0); opacity: 1; }
}
@media (max-width: 800px) {
  .tabbar.pill-nav { padding: 5px 10px; height: 68px; }
  .pill-nav .pill-nav-items { max-width: 460px; }
}
@media (max-width: 380px) {
  .pill-nav .pill-nav-items { gap: 3px; padding: 4px; }
  .tabbar.pill-nav .tab.pill-link { padding-inline: 6px; gap: 4px; font-size: .8125rem; }
  .pill-link > svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill-nav .pill-circle, .pill-nav .pill-label, .pill-nav .pill-label-hover,
  .tabbar.pill-nav .tab.pill-link, .pill-link > svg { transition: none; }
}
