Kondo and Majorana signatures near the singlet-doublet quantum phase transition