Restructuring - Summary of Charges Recorded in Connection with Restructuring by Reportable Segment (Parenthetical) (Details) - USD ($) $ in Thousands |
3 Months Ended | 9 Months Ended | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
Feb. 29, 2024 |
Feb. 28, 2023 |
Feb. 29, 2024 |
Feb. 28, 2023 |
|||||||||
| Restructuring Cost and Reserve [Line Items] | ||||||||||||
| Current Year Charges | $ 6,359 | $ 4,154 | $ 14,096 | $ 6,780 | ||||||||
| MAP 2025 | ||||||||||||
| Restructuring Cost and Reserve [Line Items] | ||||||||||||
| Current Year Charges | 6,359 | 3,447 | 14,096 | 3,447 | ||||||||
| MAP 2025 | Other Restructuring Costs | ||||||||||||
| Restructuring Cost and Reserve [Line Items] | ||||||||||||
| Current Year Charges | 0 | 2,537 | 4,555 | 2,537 | ||||||||
| MAP 2025 | Performance Coatings Segment | ||||||||||||
| Restructuring Cost and Reserve [Line Items] | ||||||||||||
| Current Year Charges | 581 | 3,110 | 6,303 | 3,110 | ||||||||
| MAP 2025 | Performance Coatings Segment | Other Restructuring Costs | ||||||||||||
| Restructuring Cost and Reserve [Line Items] | ||||||||||||
| Current Year Charges | $ 0 | [1] | $ 2,537 | [2] | 4,555 | [1] | $ 2,537 | [2] | ||||
| MAP 2025 | Performance Coatings Segment | Trade name | Other Restructuring Costs | ||||||||||||
| Restructuring Cost and Reserve [Line Items] | ||||||||||||
| Impairment of indefinite-lived assets | $ 3,300 | |||||||||||
| ||||||||||||