Planetary Engulfment in the Hertzsprung–Russell Diagram