Leases - Other Information Related to Leases (Detail) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
May 31, 2026 |
May 31, 2025 |
May 31, 2024 |
|
| Cash paid for amounts included in the measurement of lease liabilities: | |||
| Operating Leases, Operating cash flows | $ 7,729 | $ 6,648 | $ 7,395 |
| Operating Leases, ROU assets obtained in exchange for lease liabilities | $ 26,611 | $ 14,535 | $ 3,446 |
| Operating Leases, Weighted-average remaining lease term (in years) | 7 years 7 months 13 days | 4 years 11 months 19 days | 3 years 6 months 18 days |
| Operating Leases, Weighted-average discount rate | 4.95% | 4.74% | 3.44% |
| Financing Leases, Operating cash flows | $ 274 | $ 120 | $ 116 |
| Financing Leases, Financing cash flows | 1,147 | 104 | $ 50 |
| Financing Leases, ROU assets obtained in exchange for lease liabilities | $ 4,194 | $ 647 | |
| Financing Leases, Weighted-average remaining lease term (in years) | 16 years 8 months 15 days | 29 years 7 months 24 days | 35 years 9 months 21 days |
| Financing Leases, Weighted-average discount rate | 4.26% | 4.08% | 3.75% |
| X | ||||||||||
- Definition Amount of interest paid on finance lease liability. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of cash outflow for principal payment on finance lease. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Weighted average discount rate for finance lease calculated at point in time. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Weighted average remaining lease term for finance lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of cash outflow from operating lease, excluding payments to bring another asset to condition and location necessary for its intended use. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Weighted average discount rate for operating lease calculated at point in time. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for finance lease liability. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of increase in right-of-use asset obtained in exchange for operating lease liability. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Cash flow in lease liabilities lessee abstract. No definition available.
|