.site-footer .back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 44px;
  min-height: 44px;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 0.875rem/1.2 var(--body);
  text-decoration: none;
}

.back-to-top-arrow {
  display: block;
  width: 26px;
  height: 30px;
  flex: none;
}

.site-footer .back-to-top:hover { background: #fff1a6; }
.site-footer .back-to-top:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.site-footer .back-to-top.is-floating {
  position: fixed;
  z-index: 12;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + max(env(safe-area-inset-bottom, 0px), var(--back-to-top-clearance, 0px)));
  margin: 0;
  box-shadow: 0 2px 6px #0003;
}

.site-footer .back-to-top[hidden],
#quote-list-notice:not(:empty) ~ .site-footer .back-to-top.is-floating {
  display: none;
}

@media print {
  .site-footer .back-to-top { display: none; }
}
