Common Shares and Treasury Stock - Movement of the outstanding common shares and treasury stock (Parenthetical) (Detail) - USD ($) $ in Thousands |
12 Months Ended | |||||
|---|---|---|---|---|---|---|
May 12, 2026 |
May 31, 2026 |
May 31, 2025 |
May 31, 2024 |
Oct. 27, 2025 |
Aug. 06, 2024 |
|
| Class of Stock [Line Items] | ||||||
| Stock repurchase program, authorized amount | $ 300,000 | $ 700,000 | ||||
| Value of stock that has been repurchased during the period | $ 230,890 | $ 445,495 | $ 62,943 | |||
| ADR [Member] | ||||||
| Class of Stock [Line Items] | ||||||
| Stock repurchase program, authorized amount | $ 700,000 | |||||
| Number of shares that have been repurchased during the period | 7,811,753 | |||||
| Value of stock that has been repurchased during the period | $ 445,495 | |||||
| Share repurchase program, Authorized, Number of shares | 14,542,010 | |||||
| Stock repurchased during period, shares | 3,719,979 | |||||
| Common Stock [Member] | ||||||
| Class of Stock [Line Items] | ||||||
| Stock repurchased during period, shares | 5,188,900 | |||||
| Cancellation | 2,158,000 | |||||
| X | ||||||||||
- Definition Stock cancelled during period shares. No definition available.
|
| X | ||||||||||
- Definition Stock repurchase during period shares. No definition available.
|
| X | ||||||||||
- Definition Amount authorized for purchase of share under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Number of shares authorized to be purchased under share repurchase plan. Includes, but is not limited to, repurchase of stock and unit of ownership. 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/disclosureRef
|
| X | ||||||||||
- Definition Number of shares that have been repurchased during the period and have not been retired and are not held in treasury. Some state laws may govern the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Equity impact of the value of stock that has been repurchased during the period and has not been retired and is not held in treasury. Some state laws may mandate the circumstances under which an entity may acquire its own stock and prescribe the accounting treatment therefore. This element is used when state law does not recognize treasury stock. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|