footer .footer-brand {
  display: block;
  width: 246px;
  max-width: 100%;
  height: auto;
}
.back-to-top {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid #daddcf;
  border-radius: 50%;
  background: #fffffff5;
  color: #6d7466;
  box-shadow: 0 3px 12px #26332c0a;
  -webkit-tap-highlight-color: transparent;
  font-size: 13px;
  line-height: 1.4;
}
.back-to-top-arrow { font-size: 16px; line-height: 1; }
.back-to-top:hover { border-color: #9da78f; background: #fff; }
.back-to-top:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
@media (max-width: 700px) {
  .back-to-top {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 64px;
    height: 64px;
    font-size: 12px;
  }
  /* Keep the footer's logo and caption above the fixed control on narrow screens. */
  footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}
