GOP platform highlights the party’s abrupt shift on energy, climate