/* Square return-to-top control in the site navy, ivory, and gold palette. */
.sg-back-to-top {
    position: fixed;
    right: max(8px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 30;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #b9a76a;
    border-radius: 0;
    background: #19283b;
    color: #f3f0e9;
    box-shadow: 0 2px 8px rgba(17, 30, 50, 0.22);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}
.sg-back-to-top svg {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
    filter: none;
}
.sg-back-to-top:focus-visible {
    outline: 2px solid #f3f0e9;
    outline-offset: 0;
    box-shadow: 0 0 0 2px #111e32;
}
.sg-back-to-top[hidden],
body.has-modal-open .sg-back-to-top { display: none !important; }
.sg-back-to-top-clearance { display: none; }
/* Let the last footer links scroll completely clear of the fixed target. */
.sg-back-to-top-ready .sg-back-to-top-clearance {
    display: block;
    height: calc(68px + env(safe-area-inset-bottom, 0px));
}
@media (forced-colors: active) {
    .sg-back-to-top { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
    .sg-back-to-top svg { filter: none; }
}
@media print {
    .sg-back-to-top, .sg-back-to-top-clearance { display: none !important; }
}
