v3.26.1
Financial Instruments - Schedule of Gains (Losses) on Derivative and Non-Derivative Financial Instruments Recorded in Accumulated Other Comprehensive (Loss) (Details) - Designated as Hedging Instrument - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Cross-currency swap contracts    
Derivative Instruments, Gain (Loss) [Line Items]    
Derivative and non-derivative instruments gain (loss) recognized in accumulated other comprehensive (loss) $ 9 $ (30)
Foreign currency denominated debt    
Derivative Instruments, Gain (Loss) [Line Items]    
Derivative and non-derivative instruments gain (loss) recognized in accumulated other comprehensive (loss) $ 17 $ (56)