Restructuring - Summary of Charges Recorded in Connection with Restructuring by Reportable Segment (Parenthetical) (Details) - USD ($) $ in Thousands |
12 Months Ended | ||||
|---|---|---|---|---|---|
May 31, 2024 |
May 31, 2023 |
May 31, 2022 |
|||
| Restructuring Cost And Reserve [Line Items] | |||||
| Restructuring Expense | $ 30,008 | $ 15,465 | $ 6,276 | ||
| Impairment of indefinite-lived assets | 2,500 | ||||
| MAP 2025 | |||||
| Restructuring Cost And Reserve [Line Items] | |||||
| Restructuring Expense | 30,008 | 11,660 | |||
| MAP 2025 | Other Restructuring Costs | |||||
| Restructuring Cost And Reserve [Line Items] | |||||
| Restructuring Expense | 4,555 | 2,537 | |||
| MAP 2025 | Performance Coatings Segment | |||||
| Restructuring Cost And Reserve [Line Items] | |||||
| Restructuring Expense | 7,438 | 3,685 | |||
| MAP 2025 | Performance Coatings Segment | Other Restructuring Costs | |||||
| Restructuring Cost And Reserve [Line Items] | |||||
| Restructuring Expense | [1] | 4,555 | 2,537 | ||
| MAP 2025 | Performance Coatings Segment | Other Restructuring Costs | Trade Names | |||||
| Restructuring Cost And Reserve [Line Items] | |||||
| Impairment of indefinite-lived assets | $ 3,300 | $ 2,500 | |||
| |||||