Is the one offering the sacrifice liable if its meat spoils?
Praise be to Allah, and prayers and peace be upon our Master the Messenger of Allah.
If the meat (of the sacrifice) spoils due to the negligence of the one offering the sacrifice in preserving it, or due to improper storage, then he is liable to compensate for the portion due to the poor (which is estimated as half a kilogram of meat). If the sacrifice was a vowed (mandatory) one, then he is liable for all of it.
However, if he was not negligent, then there is no liability upon him, because its ruling is the ruling of a trust (like an item left in someone's care). And Allah Almighty knows best.
Does buying meat equivalent to the weight of a slaughtered animal and distributing it avail for an udhiyah?
Praise be to Allah, and prayers and peace be upon our Master the Messenger of Allah.
That does not avail for the sacrifice (uḍḥiyyah), because the sacrifice necessarily requires slaughtering an animal from the category of anʿām (camels, cattle, and sheep/goats) within a specified time.
Rather, that is considered a form of charity (ṣadaqah) for which one is rewarded, but not an udhiyah. And Allah Almighty knows best.
What are the categories of the livestock permissible for Udhiyah?
In the Name of Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
An Udhiyah (sacrificial offering) is only valid if it is selected from Al-An'am (livestock), which includes: camels, cattle, and sheep or goats—whether male or female, and even if castrated. Allah Almighty says {what means}: "And for all religion We have appointed a rite [of sacrifice] that they may mention the name of Allah over what He has provided for them of [sacrificial] livestock." (Al-Hajj/ 34)
In terms of preference, camels are considered the best choice, followed by cattle, then sheep, and finally goats.
A single sheep or goat is valid as a sacrifice on behalf of one person. However, a single camel or cow can be shared by up to seven people. This is based on the narration of Jabir (may Allah be pleased with him), who said: "In the year of Al-Hudaybiyah, we sacrificed along with the Messenger of Allah (peace and blessings be upon him) a camel on behalf of seven people, and a cow on behalf of seven people." (Narrated by Muslim)
(Note: The term "Badanah" used in the original Arabic text specifically refers to a camel in this context). And Allah the Almighty Knows Best.
What is incumbent upon the one offering the sacrifice if, after slaughtering the animal, they discover that one of its internal organs is damaged or diseased?
All praise is due to Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
The presence of disease or defect in the internal organs of a sheep does not affect the validity of the sacrificial animal, unless the disease leads to the animal becoming emaciated and its meat becoming corrupted.
It is stated in al-Iqnā' (2/590) by Imam al-Shirbīnī: "The third disqualifying condition: an animal with a manifest illness — meaning one whose illness visibly results in emaciation and corruption of its meat. However, if the illness is minor and does not produce such effects, it doesn`t affect the validity of the sacrificed animal." And Allah Almighty knows best.