The social organization of juvenile justice