Leases - Supplemental Cash Flow Information (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2026 |
Jun. 30, 2025 |
Jun. 30, 2024 |
|
| Leases [Abstract] | |||
| Operating cash flows from operating leases | $ 285 | $ 159 | $ 127 |
| Operating cash flows from finance leases | 2 | 1 | 1 |
| Financing cash flows from finance leases | 16 | 12 | 11 |
| Operating leases | 82 | 639 | 44 |
| Finance leases | 2 | 20 | 3 |
| Operating leases | 43 | 20 | 73 |
| Finance leases | $ (36) | $ 0 | $ 0 |
| X | ||||||||||
- Definition Finance Lease Assets Obtained In Exchange For Lease Obligations, Non-Cash Modifications No definition available.
|
| X | ||||||||||
- Definition Operating Lease Assets Obtained In Exchange For Lease Obligations, Non-Cash Modifications No definition available.
|
| X | ||||||||||
- Definition Amount of interest paid on finance lease liability. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of cash outflow for principal payment on finance lease. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for finance lease liability. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for operating lease liability. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|