Rename on `max_bottom` really pays off in this method. Even with all my staring at it recently, it was harder to reason about than the renamed `next_line_start`. Nice work!