Income Taxes - Summary of Tax cost of Investments, Net and Gross Changes in Unrealized Appreciation (Depreciation) on Investments Owned (Details) - USD ($) $ in Thousands |
Dec. 31, 2023 |
Dec. 31, 2022 |
Dec. 31, 2021 |
|---|---|---|---|
| Income Taxes Disclosure [Line Items] | |||
| Net unrealized gain (loss) on a tax basis | $ (38,472) | $ (23,593) | $ 2,548 |
| U.S. Federal Income Tax | |||
| Income Taxes Disclosure [Line Items] | |||
| Tax Cost of Investments | 1,105,481 | 1,149,902 | 726,969 |
| Unrealized gain on a tax basis | 11,239 | 9,207 | 23,598 |
| Unrealized loss on a tax basis | (49,711) | (32,800) | (21,050) |
| Net unrealized gain (loss) on a tax basis | $ (38,472) | $ (23,593) | $ 2,548 |