Bah, simple version was missing the requirement that the <media-condition> be true, and fixing that makes it cross my prose-complexity threshold.