Ideas, Institutions, and Collective Behavior