.benaiah-dock-page {
  padding-bottom: calc(108px + env(safe-area-inset-bottom));
}

.benaiah-dock {
  box-sizing: border-box;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  width: min(544px, calc(100% - 64px));
  height: 58px;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong, var(--line, #d9d9d5));
  border-radius: 999px;
  background: var(--surface, var(--page, #fff));
  box-shadow: none;
  transform: translateX(-50%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.benaiah-dock a,
.benaiah-dock button {
  box-sizing: border-box;
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: var(--copy, #68686b);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.benaiah-dock a:hover,
.benaiah-dock button:hover,
.benaiah-dock a[aria-current="page"] {
  background: var(--nav-active, #eaeae6);
  color: var(--text, #101010);
}

.benaiah-dock a:active,
.benaiah-dock button:active {
  transform: scale(.94);
}

.benaiah-dock a:focus-visible,
.benaiah-dock button:focus-visible {
  outline: 2px solid var(--accent, #087f78);
  outline-offset: 2px;
}

.benaiah-dock svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benaiah-dock .theme-icon-sun {
  display: none;
}

:root[data-theme="dark"] .benaiah-dock .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .benaiah-dock .theme-icon-sun {
  display: block;
}

@media (max-width: 480px) {
  .benaiah-dock-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .benaiah-dock {
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 64px);
    height: 56px;
    min-height: 56px;
    padding: 8px 9px;
  }

  .benaiah-dock a,
  .benaiah-dock button {
    width: clamp(34px, 10.75vw, 42px);
    height: clamp(34px, 10.75vw, 42px);
  }
}

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