Text this: Encapsulation structure and dynamics in hypergraphs