Republicans will lose wars and elections alike until they stop treating world affairs as an arena for ideology.