A guideline for atomistic design and understanding of ultrahard nanomagnets.