Other Expense, Net - Schedule of Other Expense, Net (Detail) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Feb. 29, 2024 |
Feb. 28, 2023 |
Feb. 29, 2024 |
Feb. 28, 2023 |
|
| Other Income and Expenses [Abstract] | ||||
| Pension non-service costs | $ 2,793 | $ 2,648 | $ 8,359 | $ 7,650 |
| Other | (191) | (309) | (386) | (585) |
| Other expense, net | $ 2,602 | $ 2,339 | $ 7,973 | $ 7,065 |