Leases - Right-of-Use Assets and Lease Liabilities (Details) - USD ($) $ in Thousands |
Aug. 31, 2026 |
Aug. 31, 2025 |
|---|---|---|
| Leases [Abstract] | ||
| Operating lease right-of-use assets | $ 14,505 | $ 10,385 |
| Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration] | Total right-of-use assets | Total right-of-use assets |
| Finance lease right-of-use asset | $ 2,763 | $ 3,149 |
| Finance Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration] | Total right-of-use assets | Total right-of-use assets |
| Total right-of-use assets | $ 17,268 | $ 13,534 |
| Current operating lease liabilities | $ 3,405 | $ 2,282 |
| Operating Lease, Liability, Current, Statement of Financial Position [Extensible Enumeration] | Accrued liabilities | Accrued liabilities |
| Long-term operating lease liabilities | $ 11,101 | $ 8,423 |
| Total operating lease liabilities | $ 14,506 | $ 10,705 |