/* Shared Bradsher Digital back-to-top control.
   Keep the site-wide action clear of iPhone safe areas and the public text CTA. */
.bd-back-to-top{
  position:fixed;
  z-index:80;
  right:calc(18px + env(safe-area-inset-right));
  bottom:calc(20px + env(safe-area-inset-bottom));
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid #b9ceca;
  border-radius:50%;
  background:rgba(255,255,255,.97);
  color:#2f5268;
  box-shadow:0 7px 22px rgba(34,56,58,.18);
  cursor:pointer;
  touch-action:manipulation;
  transition:background-color .15s ease,transform .15s ease;
}
.bd-back-to-top[hidden]{display:none!important}
.bd-back-to-top svg{display:block}
.bd-back-to-top:focus-visible{outline:3px solid #679896;outline-offset:3px}
@media(hover:hover){
  .bd-back-to-top:hover{background:#eaf2ef;transform:translateY(-2px)}
}
/* Only reserve space for "Text Jake" while it is actually visible.
   The homepage hides that action near contact/footer and outside text hours. */
body:has(.floating-text:not(.is-context-hidden)) .bd-back-to-top{
  bottom:calc(82px + env(safe-area-inset-bottom));
}
/* Keep navigation menus, transient notices, and open dialogs unobstructed. */
body.nav-open .bd-back-to-top,
body:has(#notice:not([hidden])) .bd-back-to-top,
body:has(dialog[open]) .bd-back-to-top,
body:has([role="dialog"]:not([hidden])) .bd-back-to-top{display:none!important}
@media(prefers-reduced-motion:reduce){
  .bd-back-to-top{transition:none}
}
