/* Date of Creation: 26 October 2026. Floating page-top control. */
.floating-go-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 11px;
    border: 1px solid #e8c382;
    border-radius: 50%;
    background: #15243a;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 650ms ease, color 650ms ease;
}

.floating-go-top[hidden] {
    display: none;
}

.floating-go-top:hover {
    background: #e8c382;
    color: #15243a;
}

.floating-go-top:focus-visible {
    outline: 3px solid #e8c382;
    outline-offset: 3px;
}

.floating-go-top svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
    .floating-go-top {
        transition: none;
    }
}

/* Date of update: 26 October 2026. Reserve a clear lane for the floating
 * control beside the footer credits at every width, including text zoom.
 * 48px button + safe-area-aware edge offset + 16px clearance. */
.site-footer .footer-bottom {
    box-sizing: border-box;
    padding-right: calc(48px + max(16px, env(safe-area-inset-right)) + 16px);
    flex-wrap: wrap;
}

.site-footer .footer-bottom > * {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
