Rulers exceeding text boundaries, only paragraph shading or offsets seem to be able to limit them
The issue is described in this thread (sample .INDD file link included in the thread to reproduce the issue):
The excess rulers that go beyond the text boundary can only be removed (or masked, not sure which is actually happening) with paragraph shading.
As a rule, rulers should not go beyond the text boundary, and they should adapt to the text boundary (if font size have been changed, or if other changes have been made that affect the layout).
But the green arrows show that in some cases the boundary is correct.
It shouldn't be necessary to add both offsets and paragraph shading to get the rulers right.
The paragraph shading trick is not a real solution, that I guess is just overlapping the rulers but it does not trim them.