/* Namespaced utility: never changes page layout, headings, or desktop controls. */
#mobile-back-top { display: none; }
@media (max-width: 767.98px) {
  #mobile-back-top {
    --mobile-top-offset: 104px;
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(var(--mobile-top-offset), calc(env(safe-area-inset-bottom) + 24px));
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid #D19413;
    border-radius: 12px;
    background: #FFFDF8;
    color: #886009;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
  }
  #mobile-back-top.is-visible { opacity: .94; visibility: visible; pointer-events: auto; transform: translateY(0); }
  #mobile-back-top svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  #mobile-back-top:focus-visible { outline: 2px solid #886009; outline-offset: 3px; }
  #mobile-back-top:active { transform: translateY(1px); opacity: 1; }
  .cs-top, [data-mobile-top-replaced="true"], button:has(> img[src*="icons8-upward-arrow-80.png"]) { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { #mobile-back-top { transition: none; transform: none; } }
