v3.26.1
Stock Incentive Plans - Schedule of Fair Value of Each SAR Award Granted Using a Black-Scholes Option Pricing Model (Details) - Stock Appreciation Rights (SARs) - $ / shares
12 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2024
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]      
Weighted-average fair value (in USD per share) $ 275.32 $ 205.79 $ 146.72
Risk-free interest rate 3.90% 3.70% 4.40%
Expected life of award 5 years 9 months 18 days 5 years 8 months 12 days 5 years 6 months
Expected dividend yield of stock 1.00% 1.10% 1.80%
Expected volatility of stock 36.10% 35.70% 39.00%