Tracks which section is currently most visible in the viewport.
Observes a list of elements by their IDs using IntersectionObserver
and reports the one with the highest intersection ratio as the active section.
Ideal for scroll-based navigation highlighting and reading progress.