v3.26.1
Derivative Financial Instruments and Hedging Activities - Schedule of Pretax Gains (Losses) Related to Cash Flow Hedges Reclassified from Accumulated Other Comprehensive Income (Loss) (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Feb. 28, 2026
Feb. 28, 2025
Feb. 28, 2026
Feb. 28, 2025
Commodity derivatives | Cost of goods sold        
Reclassification Adjustment out of Accumulated Other Comprehensive Income on Derivatives [Line Items]        
Pretax gains reclassified from accumulated other comprehensive loss $ 700 $ 3,568 $ 3,895 $ 8,097