Oil prices rise for third day as tighter market offsets demand risks