XML 83 R53.htm IDEA: XBRL DOCUMENT v3.23.1
Derivative Financial Instruments and Hedging Activities - Commodity Derivatives (Details) - Commodity derivatives - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Feb. 28, 2023
Feb. 28, 2022
Feb. 28, 2023
Feb. 28, 2022
Cost of goods sold        
Derivative [Line Items]        
Pretax gains (losses) reclassified from AOCI related to cash flow hedges $ (9,129) $ 5,005 $ (16,058) $ 18,259
Cash Flow Hedging        
Derivative [Line Items]        
Pretax gains (losses) recorded in OCI related to cash flow hedges $ 20,830 $ (1,977) $ (8,759) $ (15,273)