Reformatting and restyling styles.
Nib takes care of that.
Hiding overflow only on text layer.

By hiding overflow, we prevent padding of text layer segments to go
outside pages and prevent interaction with elements outside pages.
But we want that controls go outside a page if a highlight is on the
border of the page.