Oil climbs as Middle East tensions offset demand worries