Kris Mayes, the state’s new Democratic attorney general, is shifting gears on election issues in an office her Republican predecessor created.