Her mother is a Stephenson descended from Cust family. Her grandfather/great-grandfather was originally Stephenson but changed to Cust in 2018.
This is a descent by Ed Mann - see https://humphrysfamilytree.com/Royal/Mann/thatcher.txt, but usually the way to change the parent of established people is to create new profiles and change relationships, not hijack existing profiles.