v3.26.1
Stock Incentive Plans - Narrative (Details) - USD ($)
$ in Millions
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Oct. 25, 2023
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Total unrecognized compensation costs, not yet recognized $ 164      
Weighted-average period for recognition (in years) 1 year 8 months 12 days      
Income tax benefit realized related to exercise and issuance of awards $ 82 $ 54 $ 52  
Employee Stock        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Aggregate number of shares authorized for issuance under stock incentive plan (in shares) 10,000,000.0      
Number of shares available for future issuance (in shares) 9,900,000      
Purchase price of common stock, fair market value per share (as percent) 90.00%      
Stock Appreciation Rights (SARs)        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Total fair value of shares vested $ 66 57 45  
Total intrinsic value of SAR awards exercised $ 505 $ 340 $ 270  
RSU        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period (in years) 3 years      
RSU | Director        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period (in years) 1 year      
Long Term Incentive Plans        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period (in years) 3 years      
Minimum | Long Term Incentive Plans        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Target awards granted based on actual performance (as percent) 0.00%      
Maximum | Stock Appreciation Rights (SARs)        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Vesting period (in years) 3 years      
Expiration period (in years) 10 years      
Maximum | Long Term Incentive Plans        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Target awards granted based on actual performance (as percent) 200.00%      
Omnibus Stock Incentive Plan 2023        
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]        
Aggregate number of shares authorized for issuance under stock incentive plan (in shares)       11,300,000
Number of shares available for future issuance (in shares) 6,700,000