Fair Value Measurement - Schedule of Available-for-Sale Securities Included in Long Term Investments Measured and Recorded at Fair Value on Recurring Basis (Detail) - USD ($) $ in Thousands |
May 31, 2026 |
May 31, 2025 |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Short-term investments: | ||||||||||||
| Available-for-sale investments | $ 150,788 | $ 130,539 | ||||||||||
| Fair Value, Measurements, Recurring [Member] | ||||||||||||
| Short-term investments: | ||||||||||||
| Wealth management products measured at fair value | [1] | 2,166,493 | 1,744,835 | |||||||||
| Trading securities | [1] | 205,797 | 128,667 | |||||||||
| Equity securities with readily determinable fair values | 6,930 | [2] | 7,851 | [3] | ||||||||
| Available-for-sale investments | [4] | 150,788 | 130,539 | |||||||||
| Total | 2,530,008 | 2,011,892 | ||||||||||
| Quoted Prices in Active Market for Identical Assets Level 1 [Member] | Fair Value, Measurements, Recurring [Member] | ||||||||||||
| Short-term investments: | ||||||||||||
| Trading securities | [1] | 205,797 | 128,667 | |||||||||
| Equity securities with readily determinable fair values | 6,930 | [2] | 7,851 | [3] | ||||||||
| Total | 212,727 | 136,518 | ||||||||||
| Significant Other Observable Inputs Level 2 [Member] | Fair Value, Measurements, Recurring [Member] | ||||||||||||
| Short-term investments: | ||||||||||||
| Wealth management products measured at fair value | [1] | 2,166,493 | 1,744,835 | |||||||||
| Available-for-sale investments | [4] | 14,569 | ||||||||||
| Total | 2,166,493 | 1,759,404 | ||||||||||
| Significant Other Observable Inputs Level 3 [Member] | Fair Value, Measurements, Recurring [Member] | ||||||||||||
| Short-term investments: | ||||||||||||
| Available-for-sale investments | [4] | 150,788 | 115,970 | |||||||||
| Total | $ 150,788 | $ 115,970 | ||||||||||
| ||||||||||||
| X | ||||||||||
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI), classified as current. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Fair value portion of investment securities, including, but not limited to, marketable securities, derivative financial instruments, and investments accounted for under the equity method. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- Definition Amount of investments including trading securities, available-for-sale securities, held-to-maturity securities, and short-term investments classified as other and current. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef
|
| X | ||||||||||
- References No definition available.
|
| X | ||||||||||
- Definition Amount of investment in debt security measured at fair value with change in fair value recognized in net income (trading). Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|