Fair Value Measurements - Additional Information (Detail) - USD ($) |
3 Months Ended | |
|---|---|---|
Aug. 31, 2026 |
Aug. 31, 2025 |
|
| Fair Value, Balance Sheet Grouping, Financial Statement Captions [Line Items] | ||
| Increase (decrease) in accrual related to acquisitions | $ (4,900,000) | $ 0 |
| X | ||||||||||
- Definition Amount of increase (decrease) in value of liability in contingent consideration arrangement in business combination, including, but not limited to, difference arising upon settlement. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|