Annual report [Section 13 and 15(d), not S-K Item 405]

Summary of Significant Accounting Policies - Changes in accumulated other comprehensive (loss) income (Details)

v3.25.1
Summary of Significant Accounting Policies - Changes in accumulated other comprehensive (loss) income (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2024
Dec. 31, 2023
Dec. 31, 2022
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period $ 39,513 $ 81,878 $ 205,960
Foreign currency translation adjustments 10,470 (37,921) 60,421
Foreign currency gains on intercompany loan of a long-term investment nature, net of tax of $0 (8,635) 34,112 (49,581)
Unrealized holding gains on available-for-sale debt securities, net of tax of $0 11 1,134 (573)
Reclassification from accumulated other comprehensive (loss) income of gains on available-for-sale debt securities included in net income, net of tax of $0   (198)  
Balance at the end of the period 11,849 39,513 81,878
Foreign currency gain on intercompany loan of a long-term investment nature, tax 0 0 0
Unrealized holding gains on available-for-sale debt securities, tax 0 0 0
Reclassification adjustment for gains on available-for-sale debt securities included in net loss, tax 0 0 0
Total accumulated other comprehensive (loss) income      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period (3,748) (875) (11,142)
Foreign currency translation adjustments 10,470 (37,921) 60,421
Foreign currency gains on intercompany loan of a long-term investment nature, net of tax of $0 (8,635) 34,112 (49,581)
Unrealized holding gains on available-for-sale debt securities, net of tax of $0 11 1,134 (573)
Reclassification from accumulated other comprehensive (loss) income of gains on available-for-sale debt securities included in net income, net of tax of $0   (198)  
Balance at the end of the period (1,902) (3,748) (875)
Accumulated foreign currency translation adjustments      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period (3,754) 55 (10,785)
Foreign currency translation adjustments 10,470 (37,921) 60,421
Foreign currency gains on intercompany loan of a long-term investment nature, net of tax of $0 (8,635) 34,112 (49,581)
Balance at the end of the period (1,919) (3,754) 55
Accumulated unrealized (losses) gains on available-for-sale debt securities      
Changes in the Accumulated other comprehensive loss (income)      
Balance at the beginning of the period 6 (930) (357)
Unrealized holding gains on available-for-sale debt securities, net of tax of $0 11 1,134 (573)
Reclassification from accumulated other comprehensive (loss) income of gains on available-for-sale debt securities included in net income, net of tax of $0   (198)  
Balance at the end of the period $ 17 $ 6 $ (930)