Democrats are struggling to make sense of a socialist surge