Foreign policy flip-flops undermine global stature