What is the ruling on wiping the white area behind the ears instead of wiping the head?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. Wiping the white area behind the ears suffices for that. And Allah the almighty knows best.
What are the valid excuses for abstaining from congregational prayer in the mosque?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Concessions (Rukhsah) are granted to abstain from congregational prayer in the mosque due to general excuses, such as: rain that causes hardship in going out, strong winds at night, heavy mud that cannot be traversed without the risk of soiling oneself, hot winds, and extreme heat or cold. There are also specific individual excuses, such as: illness that makes walking as difficult as walking in the rain, severe drowsiness, evident hunger or thirst, the suppression of bodily wastes (urine, stool, or gas), and fear for one's life, limb, physical faculty, wealth, or honor, among other valid excuses. And Allah the Exalted knows best.
Does passing wind from the anus affect ritual purity?
Ablution is nullified by the passing of wind from the anus, but washing the anus is not required as wind leaves no impurity.
What is the ruling if a postpartum woman becomes pure before forty days; are acts of worship obligatory upon her, and is she permissible for her husband?
If the postpartum woman becomes definitely pure before forty days, she must perform the ritual bath and perform acts of worship as a pure woman does. What was prohibited for her also becomes permissible, so she becomes permissible for her husband after her bath. The minimum duration for postpartum bleeding is a moment (an instant), and its usual maximum is forty days. Reaching forty days is not a condition; rather, it is sufficient for the blood to stop or to see the white discharge (qassa bayda'). And Allah the Almighty knows best.