v3.26.3
Benefit Plans - Narrative (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Aug. 31, 2024
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Defined benefit plan, health care benefits annual rate of increase in the per capita cost (as a percent) 8.50%    
Defined benefit plan, health care benefits, decrease in the per capita cost trend rate (as a percent) 4.50%    
Company contributions $ 40,000    
Expected future payments to participants during the next fiscal year 7,000    
Contributions made under defined contribution plan $ 37,000 $ 47,100 $ 43,500
Minimum | Fixed income securities      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Target allocation of plan assets (as a percent) 45.00%    
Minimum | Equity securities      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Target allocation of plan assets (as a percent) 20.00%    
Minimum | Common/collective trust at net asset value      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Investment redemption notice period 45 days    
Minimum | Partnership and joint venture interests measured at net asset value      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Investment redemption notice period 45 days    
Maximum | Fixed income securities      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Target allocation of plan assets (as a percent) 80.00%    
Maximum | Equity securities      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Target allocation of plan assets (as a percent) 55.00%    
Maximum | Common/collective trust at net asset value      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Investment redemption notice period 60 days    
Maximum | Partnership and joint venture interests measured at net asset value      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Investment redemption notice period 60 days    
Other Benefits      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Company contributions $ 1,551 1,624  
Expected future payments to participants during the next fiscal year 1,700    
Qualified Pension Benefits | Pension Benefits      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Accumulated benefit obligation 708,600 748,100  
Company contributions 40,000 30,000  
Expected future payments to participants during the next fiscal year 77,300    
Nonqualified Pension Benefits | Pension Benefits      
Defined Benefit Plans and Other Postretirement Benefit Plans Table Text Block [Line Items]      
Accumulated benefit obligation 32,700 31,300  
Company contributions 1,999 $ 1,829  
Expected future payments to participants during the next fiscal year $ 5,290