12. What is the name of the rule that says every orbital in a sublevel (for example, within the p orbitals) is singly occupied before any orbital is doubly occupied, and moreover that all of the electrons in singly occupied orbitals have the same spin?

The rule is called Hund's rule.