Stock-Based Compensation Plans - Expense (Details) - USD ($) $ in Thousands |
12 Months Ended | |
|---|---|---|
May 31, 2026 |
May 31, 2025 |
|
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||
| Share-based compensation expense | $ 1,297 | $ (1,463) |
| Location, Statement of Income, Balance [Axis]: us-gaap:CostOfRevenue | ||
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||
| Share-based compensation expense | 352 | 431 |
| Location, Statement of Income, Balance [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense | ||
| Share-Based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | ||
| Share-based compensation expense | $ 945 | $ (1,894) |