/* v610: the same floating glass pill on pages outside /sit/.
   Little Ones and Pets keep Meditation, Little Ones, Pets, and More. */
.tabbar {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(0.4rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(calc(100% - 1rem), 28rem);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.1rem;
  box-sizing: border-box;
  padding: 0.18rem 0.28rem;
  border: 1px solid rgba(236, 184, 62, 0.62);
  border-radius: 999px;
  background: rgba(8, 6, 4, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.18),
    inset 0 0 16px rgba(236, 184, 62, 0.14),
    0 12px 28px rgba(0, 0, 0, 0.42);
  font-family: Outfit, system-ui, sans-serif;
}

.tabbar a,
.tabbar button {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.12rem;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.16rem 0.08rem 0.14rem;
  border: 0;
  border-radius: 999px;
  background: none;
  transition: transform 160ms ease;
  text-align: center;
  text-decoration: none;
  color: rgba(236, 184, 62, 0.66);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: normal;
  overflow: visible;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tabbar a span,
.tabbar button span {
  display: block;
  max-width: 100%;
  white-space: normal;
}

.tabbar a .tab-icon,
.tabbar button .tab-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 1.55rem;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
  max-width: none;
}

.tabbar a svg,
.tabbar button svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 1.28rem;
  height: 1.28rem;
  flex: 0 0 auto;
}

.tabbar a:active,
.tabbar button:active {
  transform: scale(0.96);
}

.tabbar a[aria-current="page"],
.tabbar button[aria-current="page"] {
  color: rgb(236, 184, 62);
}

.tabbar a[aria-current="page"] .tab-icon,
.tabbar button[aria-current="page"] .tab-icon {
  color: #2a1c08;
  background: linear-gradient(165deg, #f6d78a 0%, #e2b34a 46%, #c49228 100%);
  box-shadow:
    0 0 0 1px rgba(255, 236, 190, 0.4),
    0 0 12px rgba(236, 184, 62, 0.32);
}

.tabbar a[aria-current="page"] .tab-icon::after,
.tabbar button[aria-current="page"] .tab-icon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 230, 0.55), transparent);
  transform: translateX(-150%);
  opacity: 0;
  animation: tab-gold-sweep 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tab-gold-sweep {
  0% { transform: translateX(-150%); opacity: 0; }
  18% { opacity: 0.72; }
  82% { transform: translateX(250%); opacity: 0; }
  100% { transform: translateX(250%); opacity: 0; }
}

body.page-little-ones .faq-fab,
body.page-pets .faq-fab {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 4.8rem);
}

@media (max-width: 390px) {
  .tabbar {
    width: min(100% - 0.75rem, 28rem);
    gap: 0.05rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .tabbar a,
  .tabbar button {
    min-height: 48px;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    padding: 0.34rem 0.06rem 0.18rem;
  }
}

@media (min-width: 1280px) {
  .tabbar {
    width: min(100% - 4rem, 52rem);
  }

  .tabbar a,
  .tabbar button {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tabbar a,
  .tabbar button {
    transition: none;
  }

  .tabbar a[aria-current="page"] .tab-icon::after,
  .tabbar button[aria-current="page"] .tab-icon::after {
    animation: none;
    opacity: 0;
  }
}
