Commitments and Contingencies - Activity of Representation and Warranties Reserve (Details) - USD ($) $ in Thousands |
12 Months Ended | |||
|---|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2020 |
Dec. 31, 2019 |
|
| Representation And Warranty Reserve [Roll Forward] | ||||
| Balance, beginning of period | $ 60,495 | $ 86,762 | $ 69,542 | $ 46,322 |
| Additions | 57,415 | 45,301 | 36,510 | |
| Losses realized, net | (83,682) | (28,081) | (13,290) | |
| Balance, end of period | $ 60,495 | $ 86,762 | $ 69,542 | |