Multivariate patchwork copulas: a unified approach with applications to partial comonotonicity