For decades, asking Americans whether the U.S. was the greatest country in the world felt almost rhetorical. The answer was assumed. But when pollsters asked the question again recently, the confidence wasn’t nearly as universal—and the shift caught even seasoned researchers off guard.