I recently inherited some stocks from a family member, and I'm trying to understand how to determine the cost basis for tax purposes. The situation is a bit confusing because I'm not sure if the cost basis is the original purchase price, the value at the time of inheritance, or something else entirely. How does this work, and are there any special rules or exceptions I should be aware of?