The clamp put deep-linked highlights flush against the sidebar's bottom edge. Centering is simpler AND handles the max-scroll case for free: scrollTop carries the item's center to the scrollport center, and the browser clamps to the scroll extent — items near the nav's top/bottom land as centered as the content allows (scroll pinned fully up/down), which is the requested fallback.