card doc and style separation