v3.26.3
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
12 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Aug. 31, 2024
Commodity derivatives | Location, Statement of Income, Balance [Axis]: us-gaap:CostOfGoodsAndServicesSold      
Reclassification Adjustment out of Accumulated Other Comprehensive Income on Derivatives [Line Items]      
Pretax gains reclassified from accumulated other comprehensive loss $ 5,652 $ 16,672 $ 16,454