html {
  scroll-padding-block: 5.5rem;
}

a,
summary {
  scroll-margin-block: 5.5rem;
}

.floating-exit {
  position: fixed;
  z-index: 9;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-width: 7.25rem;
  min-height: 3.5rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #392522;
  box-shadow: 0 0.35rem 1.1rem rgb(23 33 31 / 24%);
  color: #fff;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.floating-exit small {
  margin-top: 0.2rem;
  color: #f0dfd5;
  font-size: 0.66rem;
  font-weight: 600;
}

.floating-exit:hover,
.floating-exit:focus-visible {
  background: #fff;
  color: #392522;
  outline-color: #392522;
}

.floating-exit:hover small,
.floating-exit:focus-visible small {
  color: #65433c;
}

@media (max-width: 700px) {
  .floating-exit {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    min-width: 5.5rem;
    min-height: 3rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
  }

  .floating-exit small {
    font-size: 0.58rem;
  }
}
