v3.26.1
Derivative Financial Instruments and Hedging Activities - Schedule of Pretax Gains (Losses) on Derivatives Not Accounted for as Hedging Instruments (Details) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Feb. 28, 2026
Feb. 28, 2025
Feb. 28, 2026
Feb. 28, 2025
Derivative Instruments and Hedging Activities Disclosures [Line Items]        
Pretax gains (losses) on derivatives not accounted for as hedging instruments $ (88,569) $ (7,870) $ (107,177) $ 53,486
Commodity derivatives | Cost of goods sold        
Derivative Instruments and Hedging Activities Disclosures [Line Items]        
Pretax gains (losses) on derivatives not accounted for as hedging instruments (105,783) (22,912) (118,619) 49,544
Foreign exchange derivatives | Cost of goods sold        
Derivative Instruments and Hedging Activities Disclosures [Line Items]        
Pretax gains (losses) on derivatives not accounted for as hedging instruments 16,490 12,851 10,486 4,010
Foreign exchange derivatives | Marketing, general and administrative expenses        
Derivative Instruments and Hedging Activities Disclosures [Line Items]        
Pretax gains (losses) on derivatives not accounted for as hedging instruments $ 724 $ 2,191 $ 956 $ (68)