/* Phone navigation matches About: logo in the top bar, icon dock on the viewport. */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
  body { padding-bottom: calc(5.9rem + env(safe-area-inset-bottom)); }

  .site-header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    transform: none !important;
    background: rgba(11, 18, 32, .76) !important;
    backdrop-filter: blur(16px);
  }
  .site-header.header-hidden { transform: none !important; }
  .site-nav { justify-content: center; min-height: 3.8rem; }
  .site-links,
  .site-actions,
  .site-menu,
  .site-mobile { display: none !important; }

  .mobile-bottom-nav {
    position: fixed !important;
    z-index: 2147479999;
    left: max(0.8rem, env(safe-area-inset-left));
    right: max(0.8rem, env(safe-area-inset-right));
    top: auto !important;
    bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
    transform: translateZ(0);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 4.35rem;
    padding: 0.35rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1.35rem;
    background: rgba(10, 14, 23, .94);
    box-shadow: 0 1rem 2.25rem rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .05);
    backdrop-filter: blur(20px) saturate(135%);
  }

  .mobile-bottom-nav a {
    position: relative;
    display: grid;
    flex: 1 1 0;
    min-width: 0;
    place-items: center;
    align-content: center;
    gap: 0.14rem;
    color: rgba(255, 255, 255, .58);
    text-decoration: none;
    transition: color .22s ease, transform .22s ease;
  }
  .mobile-bottom-nav b { display: block; font-size: 1.25rem; line-height: 1; font-weight: 500; }
  .mobile-bottom-nav svg { width: 1.3rem; height: 1.3rem; }
  .mobile-bottom-nav span { overflow: hidden; max-width: 100%; font-size: .57rem; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-bottom-nav a.active { color: #ff4b43; }
  .mobile-bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: -0.35rem;
    width: 1.75rem;
    height: .19rem;
    border-radius: 0 0 .3rem .3rem;
    background: #ff423a;
    box-shadow: 0 .35rem 1rem rgba(255, 66, 58, .62);
  }
  .mobile-bottom-nav a:active { transform: translateY(1px) scale(.96); }

  .page-hero { padding-top: 6rem; }
  #home { padding-top: 3.8rem !important; }
}

@media (max-width: 390px) {
  .mobile-bottom-nav { left: .55rem; right: .55rem; min-height: 4.15rem; }
  .mobile-bottom-nav span { font-size: .51rem; }
  .mobile-bottom-nav svg { width: 1.2rem; height: 1.2rem; }
}
