/* The primary navigation lives at the top; the legacy brand bar is intentionally hidden. */
body {
  padding-top: calc(64px + env(safe-area-inset-top));
  padding-bottom: 0;
}

.appbar {
  display: none !important;
}

.bottom-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 11;
  height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(10px, calc((100vw - 720px) / 2)) 0;
  border-top: 0;
  border-bottom: 1px solid #e8e8ed;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 8px rgba(32, 32, 39, .045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-item {
  position: relative;
  max-width: 168px;
  min-width: 0;
  height: 64px;
  gap: 4px;
  color: #8b8991;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  transition: color .18s ease, background-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-item span {
  width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease;
}

.nav-item::after {
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  content: '';
  opacity: 0;
  transition: left .18s ease, right .18s ease, opacity .18s ease;
}

.nav-item:hover {
  color: #5d5b64;
  background: rgba(243, 95, 134, .045);
}

.nav-item.active {
  color: #d7436d;
  background: rgba(243, 95, 134, .075);
}

.nav-item.active span {
  transform: translateY(-1px);
}

.nav-item.active::after {
  right: calc(50% - 15px);
  left: calc(50% - 15px);
  opacity: 1;
}

.nav-item:focus-visible {
  z-index: 1;
  outline: 2px solid #6a9bd9;
  outline-offset: -3px;
}

.floating-back {
  bottom: calc(18px + env(safe-area-inset-bottom));
}

body.recharge-view .floating-back {
  bottom: calc(88px + env(safe-area-inset-bottom));
}

.toast {
  bottom: calc(20px + env(safe-area-inset-bottom));
}

.recharge-submit {
  bottom: 0;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

@media (max-width: 699px) {
  .authors-page .author-pagination {
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 700px) {
  body {
    padding-top: 70px;
  }

  .bottom-nav {
    position: fixed;
    top: 0;
    margin: 0;
    max-width: none;
    height: 70px;
    padding-right: max(18px, calc((100vw - 860px) / 2));
    padding-left: max(18px, calc((100vw - 860px) / 2));
    border: 0;
    border-bottom: 1px solid #e8e8ed;
    border-radius: 0;
  }

  .nav-item {
    max-width: 152px;
    height: 70px;
    font-size: 12px;
  }

  .floating-back {
    bottom: 18px;
  }

  body.recharge-view .floating-back {
    bottom: 88px;
  }
}
