Conformational recognition of an intrinsically disordered protein