Emergent RNA–RNA interactions can promote stability in a facultative phototrophic endosymbiosis