/* SMK Kesehatan Bojonegoro – tombol kembali ke atas */
.smk-back-to-top {
  position: fixed;
  z-index: 100;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(103, 239, 239, .36);
  border-radius: 16px;
  background: #0b314b;
  color: #fff;
  box-shadow: 0 10px 30px rgba(5, 24, 42, .24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.smk-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.smk-back-to-top:hover { background: #0e627f; transform: translateY(-3px); }
.smk-back-to-top:active { transform: translateY(-1px) scale(.97); }
.smk-back-to-top:focus-visible { outline: 3px solid #33d1dd; outline-offset: 4px; }
.smk-back-to-top svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .smk-back-to-top {
    right: max(15px, env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .smk-back-to-top svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .smk-back-to-top { transition: none; }
}
