Gestational diabetes linked to lower cognitive scores in mothers and higher developmental risks for children