v3.26.1
Pension and other postretirement plans - Net Periodic Benefit Cost (Detail) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Jul. 31, 2026
Jul. 31, 2025
Jul. 31, 2026
Jul. 31, 2025
Pension Plans | UNITED STATES        
Defined Benefit Plan Disclosure [Line Items]        
Service cost $ 1,830 $ 2,531 $ 5,876 $ 7,592
Interest cost 3,373 4,691 12,130 14,074
Expected return on plan assets (4,768) (6,609) (17,433) (19,827)
Amortization of prior service credit 0 0 0 0
Amortization of net actuarial gain 338 474 2,203 1,421
Settlement loss     24,049 0
Total benefit cost 773 1,087 26,825 3,260
Pension Plans | International        
Defined Benefit Plan Disclosure [Line Items]        
Service cost 132 250 397 721
Interest cost 601 675 1,812 1,937
Expected return on plan assets (549) (683) (1,647) (1,972)
Amortization of prior service credit (2) (2) (6) (6)
Amortization of net actuarial gain (86) (72) (258) (208)
Settlement loss     0 0
Total benefit cost 96 168 298 472
Postretirement Benefit Costs | UNITED STATES        
Defined Benefit Plan Disclosure [Line Items]        
Service cost 35 59 105 176
Interest cost 522 657 1,568 1,951
Amortization of net actuarial gain (413) (127) (1,240) (377)
Total benefit cost $ 144 $ 589 $ 433 $ 1,750