v3.26.3
Derivative instruments and hedging activities - Effect on Condensed Consolidated Statements of Comprehensive Income and Change in FV (Details) - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2024
Derivative instruments and hedging activities      
Gain (loss) recognized due to ineffectiveness $ 0 $ 0  
Commodity derivatives      
Derivative instruments and hedging activities      
Amount of (Loss) Gain Recognized in AOCI (14,677) 6,258 $ 3,448
Gain (loss) recognized due to ineffectiveness 0 0 0
Location, Statement of Income, Balance [Axis]: us-gaap:CostOfGoodsAndServiceExcludingDepreciationDepletionAndAmortization | Commodity derivatives      
Derivative instruments and hedging activities      
Amount of Gain (Loss) Reclassified from AOCI into Income $ (10,662) $ 8,400 $ 2,472