v3.26.1
Share-Based Compensation - Additional Information (Details) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Stock option issued (in shares) 0 0 0
Aggregate intrinsic value of stock options and cash-based stock appreciation rights, outstanding $ 140 $ 50 $ 61
Aggregate intrinsic value of stock options and cash-based stock appreciation rights, exercisable 140 50 61
Total intrinsic value of stock options and cash-based stock appreciation rights, exercised $ 75 36 25
Employee Stock Purchase Plan      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Common stock authorized for issuance under the plan (in shares) 16,615,000    
Shares available to be issued (in shares) 6,500,000    
Percentage of employee payroll deductions authorized 15.00%    
Percentage of fair market value of common stock to purchase shares 85.00%    
Offering period 6 months    
RSUs      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Units granted (in shares) 1,213,655    
Performance Stock Units      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Units granted (in shares) 624,116    
Share based compensation expense attributable to non-vested shares $ 127    
Unrecognized compensation cost, weighted-average period of recognition, years 1 year 3 months 7 days    
Total fair value of restricted stock grant $ 88 88 113
Total fair value of restricted stock vested $ 11 $ 17 $ 14
Performance Stock Units | Minimum      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Award grants performance period 12 months    
Performance Stock Units | Maximum      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Award grants performance period 36 months    
Restricted Share Awards and Cash-Based Restricted Share Unit Awards      
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Award vesting period 3 years    
Share based compensation expense attributable to non-vested shares $ 140    
Shares issued (in shares) 0 0 0
Total fair value of restricted stock grant $ 139 $ 127 $ 110
Total fair value of restricted stock vested $ 235 $ 185 $ 74