Phase diagram and critical behavior of the ferromagnetic Heisenberg fluid from density-functional theory.