body { padding-bottom: 70px; }

.site-bottom-nav {
  position: fixed;
  z-index: 900;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 150px));
  justify-content: center;
  min-height: 70px;
  padding: 7px 20px;
  border-top: 1px solid #dce5d9;
  background: #fffdf7;
  box-shadow: 0 -8px 26px #24342f1c;
  transform: translate3d(0, 110%, 0);
  visibility: hidden;
  pointer-events: none;
  transition: transform 180ms ease, visibility 180ms ease;
}

body.bottom-nav-visible .site-bottom-nav {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}

.site-bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 54px;
  border-radius: 8px;
  color: #536b5d;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}

.site-bottom-nav a:hover,
.site-bottom-nav a:focus-visible { background: #edf5eb; color: #285f55; }

.site-bottom-nav svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 820px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .site-bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: stretch;
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
  }
  .site-bottom-nav a { flex-direction: column; gap: 3px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-bottom-nav { transition: none; }
}
