Segment reporting - Segment reporting information (Details) - USD ($) $ in Thousands |
12 Months Ended | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Dec. 31, 2025 |
Dec. 31, 2024 |
Dec. 31, 2023 |
|||||||
| Segment Reporting Information [Line Items] | |||||||||
| Total revenues | $ 847,858 | $ 771,530 | [1] | $ 662,226 | [1] | ||||
| Total cost of revenues | (686,596) | (611,431) | [1] | (483,608) | [1] | ||||
| Gross profit | 161,262 | 160,099 | [1] | 178,618 | [1] | ||||
| Share-based compensation expense | 13,341 | 19,056 | 24,866 | ||||||
| Total operating expenses | (216,035) | (282,995) | [1] | (308,634) | [1] | ||||
| Loss from operations | (54,773) | (122,896) | [1] | (130,016) | [1] | ||||
| Interest income | 3,710 | 3,078 | [1] | 4,313 | [1] | ||||
| Interest expense | (23,772) | (18,568) | [1] | (11,239) | [1] | ||||
| (Loss) gain from equity method investments, net | 1,236 | 5,611 | [1] | (6,142) | [2] | ||||
| Other non-operating (expenses) income, net | 5,904 | (4,766) | [1] | (1,340) | [1] | ||||
| Loss before income taxes | (67,695) | (137,541) | [1] | (144,424) | [1] | ||||
| Income tax benefit (expense) | (1,244) | (210) | [1] | 525 | [1] | ||||
| Net loss | (68,939) | (137,751) | [1] | (143,899) | [1] | ||||
| Reportable Segment | |||||||||
| Segment Reporting Information [Line Items] | |||||||||
| Total revenues | 847,858 | 771,530 | 662,226 | ||||||
| Total cost of revenues | (686,596) | (611,431) | (483,608) | ||||||
| Gross profit | 161,262 | 160,099 | 178,618 | ||||||
| Operating expenses excluding share-based compensation expense | (229,376) | (302,051) | (333,500) | ||||||
| Share-based compensation expense | 13,341 | 19,056 | 24,866 | ||||||
| Total operating expenses | (216,035) | (282,995) | (308,634) | ||||||
| Loss from operations | (54,773) | (122,896) | (130,016) | ||||||
| Interest income | 3,710 | 3,078 | 4,313 | ||||||
| Interest expense | (23,772) | (18,568) | (11,239) | ||||||
| (Loss) gain from equity method investments, net | 1,236 | 5,611 | (6,142) | ||||||
| Other non-operating (expenses) income, net | 5,904 | (4,766) | (1,340) | ||||||
| Loss before income taxes | (67,695) | (137,541) | (144,424) | ||||||
| Income tax benefit (expense) | (1,244) | (210) | 525 | ||||||
| Net loss | $ (68,939) | $ (137,751) | $ (143,899) | ||||||
| |||||||||
| X | ||||||||||
- Definition Operating Expenses Excluding Share-Based Compensation Expense No definition available.
|
| X | ||||||||||
- Definition Amount of expense for award under share-based payment arrangement. Excludes amount capitalized. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition The aggregate costs related to goods produced and sold and services rendered by an entity during the reporting period. This excludes costs incurred during the reporting period related to financial services rendered and other revenue generating activities. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Aggregate revenue less cost of goods and services sold or operating expenses directly attributable to the revenue generation activity. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount of income (loss) from continuing operations, including income (loss) from equity method investments, before deduction of income tax expense (benefit), and income (loss) attributable to noncontrolling interest. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount after tax of income (loss) from continuing operations including portion attributable to the noncontrolling interest. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of income (loss) for proportionate share of equity method investee's income (loss). Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef
|
| X | ||||||||||
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of interest expense classified as operating and nonoperating. Includes, but is not limited to, cost of borrowing accounted for as interest expense. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Amount before accretion (amortization) of purchase discount (premium) of interest income on nonoperating securities. Reference 1: http://www.xbrl.org/2003/role/disclosureRef
|
| X | ||||||||||
- Definition Generally recurring costs associated with normal operations except for the portion of these expenses which can be clearly related to production and included in cost of sales or services. Includes selling, general and administrative expense. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition The net result for the period of deducting operating expenses from operating revenues. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount of income (expense) related to nonoperating activities, classified as other. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| X | ||||||||||
- Definition Amount, excluding tax collected from customer, of revenue from satisfaction of performance obligation by transferring promised good or service to customer. Tax collected from customer is tax assessed by governmental authority that is both imposed on and concurrent with specific revenue-producing transaction, including, but not limited to, sales, use, value added and excise. Reference 1: http://www.xbrl.org/2003/role/exampleRef
|
| 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. No definition available.
|
| X | ||||||||||
- Details
|