html { scroll-behavior: smooth; }
.back-to-top,
body a.back-to-top,
body button.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 1px solid #c8ab78;
  border-radius: 50%;
  background: #0d4354;
  color: #fffdf5;
  box-shadow: 0 3px 12px #102f3626;
  text-decoration: none;
  font: 700 11px/1.2 Arial, sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-to-top span { color: #fffdf5; opacity: 1; }
.back-to-top svg { color: #fffdf5; }
.back-to-top:hover { background: #15596b; }
.back-to-top:focus-visible { outline: 3px solid #c8ab78; outline-offset: 3px; }
body:has(.header .nav.open) .back-to-top,
body:has(dialog[open]) .back-to-top,
body:has(#falit-member-panel:not([hidden])) .back-to-top { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}

@media print { .back-to-top { display: none !important; } }
