/* Site-wide PWA app chrome — phones use tab bar; desktop keeps top links */
body.pwa-site {
  --pwa-tab-h: calc(58px + env(safe-area-inset-bottom, 0px));
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

body.pwa-site .bento-nav {
  padding: 0.45rem 0;
  padding-top: max(0.45rem, env(safe-area-inset-top));
  background: rgba(243, 245, 248, 0.92);
}

body.pwa-site .nav-inner {
  min-height: 44px;
  gap: 0.65rem;
}

body.pwa-site .brand-logo-img {
  height: 28px;
}

body.pwa-site .pwa-screen-title {
  display: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-carbon);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.pwa-site .bento-footer {
  padding: 1.1rem 0 1.25rem;
  background: #eef1f5;
}

body.pwa-site .footer-disclaimer-text {
  font-size: 0.68rem;
  line-height: 1.45;
}

body.pwa-site .footer-bottom {
  padding-top: 0.55rem;
  font-size: 0.72rem;
}

body.pwa-site .site-bottom-nav {
  display: none !important;
}

body.pwa-site .bottom-nav-item.is-active {
  color: var(--ink-carbon);
}

body.pwa-site .bottom-nav-item.is-active span {
  font-weight: 800;
}

@media (max-width: 900px) {
  body.pwa-site {
    padding-bottom: var(--pwa-tab-h);
  }

  body.pwa-site .footer-top {
    display: none;
  }

  body.pwa-site .pwa-screen-title {
    display: none;
  }

  body.pwa-site .mobile-menu-toggle {
    display: none !important;
  }

  body.pwa-site .bento-menu-links {
    display: none !important;
  }

  body.pwa-site .nav-backdrop {
    display: none !important;
  }

  body.pwa-site .aura-engine-section,
  body.pwa-site .biofield-anatomy-section,
  body.pwa-site .calculator-bento-section,
  body.pwa-site .catalog-bento-section,
  body.pwa-site .sessions-section,
  body.pwa-site .steps-section {
    padding-bottom: 1.5rem;
  }

  body.pwa-site .aura-sec-header {
    margin-bottom: 1.25rem;
    text-align: left;
  }

  body.engine-play .aura-sec-header {
    text-align: center;
  }

  body.engine-play .engine-lead {
    display: none;
  }

  body.pwa-site .aura-sec-header h2 {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  body.pwa-site .bento-footer {
    padding-bottom: 1rem;
    margin-bottom: 0;
  }

  body.pwa-site .site-bottom-nav {
    display: flex !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 180;
    justify-content: space-around;
    align-items: stretch;
    gap: 0;
    height: var(--pwa-tab-h);
    min-height: var(--pwa-tab-h);
    padding: 4px 2px env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #d7e0e8;
  }

  body.pwa-site .bottom-nav-item {
    flex: 1;
    min-width: 0;
    height: auto;
    padding: 4px 2px;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  body.pwa-site .bottom-nav-item i,
  body.pwa-site .bottom-nav-item svg {
    width: 20px;
    height: 20px;
  }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  body.pwa-site .bento-nav {
    padding-top: max(0.55rem, env(safe-area-inset-top));
  }
}
