A Cahn–Hilliard–Biot system and its generalized gradient flow structure. (April 2022)