A thermodynamically consistent variational framework for non-Newtonian fluids with evolving internal variables | Synapse