v3.26.1
Accumulated other comprehensive loss - Summary of Accumulated Other Comprehensive Loss (Detail) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2026
Jul. 31, 2025
AOCI Attributable to Parent, Net of Tax [Roll Forward]        
Beginning balance $ 3,202,235 $ 2,960,304 $ 3,043,571 $ 2,932,192
Reclassifications from AOCI to Statement of Income (2) (23,339) 4,973 22,085 48,899
Ending balance 3,269,059 2,981,785 3,269,059 2,981,785
Accumulated Other Comprehensive Income (Loss)        
AOCI Attributable to Parent, Net of Tax [Roll Forward]        
Beginning balance (25,592) (140,822) (100,457) (184,840)
Other comprehensive income before reclassification adjustments     (33,756)  
Other Comprehensive Income (Loss), Reclassifications from AOCI to Statement of Income     24,700  
Other Comprehensive Income (Loss), Tax     6,991  
Ending balance (48,992) $ (135,559) (48,992) $ (135,559)
Cumulative translation and related hedging instruments        
AOCI Attributable to Parent, Net of Tax [Roll Forward]        
Beginning balance     (50,518)  
Other comprehensive income before reclassification adjustments     (20,313)  
Other Comprehensive Income (Loss), Reclassifications from AOCI to Statement of Income     0  
Other Comprehensive Income (Loss), Tax     (1,772)  
Ending balance (28,433)   (28,433)  
Pension and postretirement  benefit plan adjustments        
AOCI Attributable to Parent, Net of Tax [Roll Forward]        
Beginning balance     (49,939)  
Other comprehensive income before reclassification adjustments     (13,443)  
Other Comprehensive Income (Loss), Reclassifications from AOCI to Statement of Income     24,700  
Other Comprehensive Income (Loss), Tax     (8,763)  
Ending balance $ (20,559)   $ (20,559)