The vast majority of heat-related fatalities — more than 9,000 — were among people aged 65 and above.