Hmm... this is tricky (also a good example of why browsers need native support for `position: sticky`). I don't feel particularly great about the current solution here, it feels a bit too hacky. But, it works....

The only other option I can think of would be to choose a sensible set height for the container, with scope for the job title to run onto two lines. But this is slightly less flexible. :/