v3.25.2
Long-term debt - Long-Term Debt (Detail) - USD ($)
$ in Thousands
Jul. 31, 2025
Oct. 31, 2024
Sep. 09, 2024
Sep. 13, 2023
Jun. 06, 2023
Debt Instrument [Line Items]          
Long-term debt $ 2,129,078 $ 2,223,928      
Less current maturities 336,078 103,928      
Less unamortized debt issuance costs 13,751 16,359      
Long-term maturities 1,785,745 2,101,197      
Revolving credit facility         $ 1,150,000
Debt Instrument, Unamortized Discount 2,160 2,444      
Short-Term Bank Loans and Notes Payable 6,078 18,285      
Hedged Liability, Fair Value Hedge, Cumulative Increase (Decrease) 8,656 0      
Senior notes, due 2025          
Debt Instrument [Line Items]          
Senior notes 0 8,500      
Senior notes, due 2025-2027          
Debt Instrument [Line Items]          
Senior notes $ 20,000 37,143      
Weighted average interest rate for borrowings 3.19%        
Senior notes, due 2025-2030          
Debt Instrument [Line Items]          
Senior notes $ 130,000 190,000      
Weighted average interest rate for borrowings 4.08%        
Revolving Credit Facility          
Debt Instrument [Line Items]          
Weighted average interest rate for borrowings 5.48%        
Revolving credit agreement, due 2028 | Maximum          
Debt Instrument [Line Items]          
Revolver Base Rate Range         0.20%
EuroDollar Base Rate Range         1.20%
Revolving credit agreement, due 2028 | Minimum          
Debt Instrument [Line Items]          
Revolver Base Rate Range         0.00%
EuroDollar Base Rate Range         0.85%
Due 2028          
Debt Instrument [Line Items]          
Weighted average interest rate for borrowings       5.60%  
Public Bond Offering   350,000   $ 350,000  
Due 2033          
Debt Instrument [Line Items]          
Weighted average interest rate for borrowings       5.80%  
Public Bond Offering   500,000   $ 500,000  
Due 2029          
Debt Instrument [Line Items]          
Weighted average interest rate for borrowings     4.50%    
Public Bond Offering   600,000 $ 600,000    
Revolving credit agreement, due 2028          
Debt Instrument [Line Items]          
Revolving credit agreement, due 2028 $ 243,000 240,000      
Revolving Facility Maximum Borrowing Capacity         $ 850,000
Term Loan Due 2026          
Debt Instrument [Line Items]          
Term loan due 2026 $ 280,000 $ 280,000     $ 300,000