Share-based compensation - Schedule of Share-Based Compensation Expense Recorded in Condensed Consolidated Statements of Operations and Comprehensive Income (Details) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jun. 26, 2026 |
Jun. 27, 2025 |
Jun. 28, 2024 |
|
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | |||
| Share-based compensation | $ 34,630 | $ 33,004 | $ 28,374 |
| Income Statement Location [Axis]: us-gaap:CostOfRevenue | |||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | |||
| Share-based compensation | 11,459 | 10,456 | 7,203 |
| Income Statement Location [Axis]: us-gaap:SellingGeneralAndAdministrativeExpense | |||
| Share-based Payment Arrangement, Expensed and Capitalized, Amount [Line Items] | |||
| Share-based compensation | $ 23,171 | $ 22,548 | $ 21,171 |