XML 93 R53.htm IDEA: XBRL DOCUMENT v3.23.2
Derivative Financial Instruments and Hedging Activities - Commodity Derivatives (Details) - Commodity derivatives - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2023
May 31, 2022
May 31, 2023
May 31, 2022
Cost of goods sold        
Derivative [Line Items]        
Pretax gains (losses) reclassified from AOCI related to cash flow hedges $ 2,590 $ (5,482) $ (13,468) $ 12,777
Cash Flow Hedging        
Derivative [Line Items]        
Pretax gains (losses) recorded in OCI related to cash flow hedges $ (3,430) $ (36,688) $ (12,189) $ (51,961)