Fair Value Measurements - Narrative (Details) - USD ($) $ in Millions |
Apr. 30, 2026 |
Jul. 31, 2025 |
|---|---|---|
| Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | ||
| Long-term debt | $ 6,162 | $ 5,973 |
| Long-term investments | 176 | 94 |
| Senior unsecured notes | ||
| Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | ||
| Long-term debt | 5,000 | 5,000 |
| Level 2 | Senior unsecured notes | Fair value, measurements, recurring | ||
| Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | ||
| Senior unsecured notes | 4,800 | $ 5,000 |
| Level 3 | ||
| Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | ||
| Cumulative upward adjustments to non-marketable equity securities | 125 | |
| Cumulative downward adjustments, including impairments | $ 27 |
| X | ||||||||||
- Definition Fair value portion of debt instrument payable, including, but not limited to, notes payable and loans payable. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of cumulative loss from downward price adjustment on investment in equity security without readily determinable fair value. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of cumulative gain from upward price adjustment on investment in equity security without readily determinable fair value. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount, after deduction of unamortized premium (discount) and debt issuance cost, of long-term debt. Excludes lease obligation. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition The total amount of investments that are intended to be held for an extended period of time (longer than one operating cycle). Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|