Energy costs, driven by the Iran war, accounted for more than 40% of the monthly increase in consumer prices