XML 87 R53.htm IDEA: XBRL DOCUMENT v3.24.2
Derivative Financial Instruments and Hedging Activities - Commodity Derivatives (Details) - Commodity derivatives - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
May 31, 2024
May 31, 2023
May 31, 2024
May 31, 2023
Cost of goods sold        
Derivative [Line Items]        
Pretax gains (losses) reclassified from AOCI related to cash flow hedges $ 3,403 $ 2,590 $ 14,070 $ (13,468)
Cash Flow Hedging        
Derivative [Line Items]        
Pretax gains (losses) recorded in OCI related to cash flow hedges $ (674) $ (3,430) $ 948 $ (12,189)