v3.26.3
Pension and Defined Contribution Plans - Narrative (Details) - USD ($)
3 Months Ended 12 Months Ended
Aug. 31, 2025
Aug. 31, 2026
Aug. 31, 2025
Aug. 31, 2024
Aug. 31, 2027
Defined Benefit Plan Disclosure [Line Items]          
Pension settlement loss $ 30,900,000 $ 0 $ 30,900,000 $ 0  
Pension Plan          
Defined Benefit Plan Disclosure [Line Items]          
Percentage of plan assets (percent)   10.00%      
Defined Contribution Plan          
Defined Benefit Plan Disclosure [Line Items]          
Defined contribution plan, cost recognized   $ 16,200,000 14,900,000 11,700,000  
Common stock included in defined contribution plan, market value   $ 10,300,000      
Common stock included in defined contribution plan as percentage of total fair value of assets in plan   1.40%      
UNITED STATES | Pension Plan          
Defined Benefit Plan Disclosure [Line Items]          
Pension settlement loss   $ 0 33,200,000 0  
Reduction in net periodic pension cost per 100 basis point increase in benefit obligation discount rate   300,000      
Additional net periodic pension cost per 100 basis point decrease in expected return on plan assets rate   $ 300,000      
UNITED STATES | Pension Plan | Forecast          
Defined Benefit Plan Disclosure [Line Items]          
Employer expected contribution to defined benefit plans in next fiscal year         $ 0
UNITED STATES | Pension Plan | Fixed income securities          
Defined Benefit Plan Disclosure [Line Items]          
Targeted asset allocation, percentage   90.00%      
UNITED STATES | Pension Plan | Equity securities          
Defined Benefit Plan Disclosure [Line Items]          
Targeted asset allocation, percentage   10.00%      
UNITED STATES | Pension Plan | Guaranteed insurance policy          
Defined Benefit Plan Disclosure [Line Items]          
Targeted asset allocation, percentage   100.00%      
International Plans | Pension Plan          
Defined Benefit Plan Disclosure [Line Items]          
Pension settlement loss   $ 0 $ (2,300,000) $ 0  
Reduction in net periodic pension cost per 100 basis point increase in benefit obligation discount rate   400,000      
Additional net periodic pension cost per 100 basis point decrease in expected return on plan assets rate   $ 300,000      
International Plans | Pension Plan | Forecast          
Defined Benefit Plan Disclosure [Line Items]          
Employer expected contribution to defined benefit plans in next fiscal year         $ 0