Investment Securities and Fair Value Measurements | Investment Securities and Fair Value Measurements Investment Securities Investment securities classified as available-for-sale consisted of the following as of June 30, 2023 and December 31, 2022 (in thousands): June 30, 2023 Amortized Cost Gross Unrealized Gains Gross Unrealized Losses Estimated Fair Value Corporate bonds $ 5,484 $ — $ (32) $ 5,452 Agency securities 11,261 — (233) 11,028 Treasury securities 123,582 8 (797) 122,793 Total available-for-sale investment securities $ 140,327 $ 8 $ (1,062) $ 139,273 December 31, 2022 Amortized Cost Gross Unrealized Gains Gross Unrealized Losses Estimated Fair Value Corporate bonds $ 17,497 $ 2 $ (112) $ 17,387 Agency securities 17,507 — (484) 17,023 Treasury securities 81,605 — (1,557) 80,048 Total available-for-sale investment securities $ 116,609 $ 2 $ (2,153) $ 114,458 As of June 30, 2023, the decline in fair value below amortized cost basis was not considered other than temporary as it is more likely than not we will hold the securities until maturity or recovery of the cost basis. No allowance for credit losses for available-for-sale investment securities was recorded as of June 30, 2023 or December 31, 2022. The fair values of available-for-sale investment securities, by remaining contractual maturity, are as follows (in thousands): June 30, 2023 December 31, 2022 Amortized Cost Estimated Fair Value Amortized Cost Estimated Fair Value Due in one year or less $ 140,327 $ 139,273 $ 90,822 $ 89,297 Due after one year through three years — — 25,787 25,161 Total available-for-sale investment securities $ 140,327 $ 139,273 $ 116,609 $ 114,458 During the six months ended June 30, 2023 and 2022, we had sales and maturities of investment securities, as follows (in thousands): Six Months Ended June 30, 2023 Gross Realized Gains Gross Realized Losses Gross Proceeds from Sales Gross Proceeds from Maturities Corporate bonds $ 3 $ — $ 1,013 $ 11,012 Agency securities — — — 6,250 Treasury securities — — — 32,355 Total $ 3 $ — $ 1,013 $ 49,617 Six Months Ended June 30, 2022 Gross Realized Gains Gross Realized Losses Gross Proceeds from Sales Gross Proceeds from Maturities Corporate bonds $ — $ — $ — $ 23,998 Treasury securities — — — 19,500 Total $ — $ — $ — $ 43,498 Fair Value Measurements Recurring Fair Value Measurements The following tables present our financial assets and liabilities measured at fair value on a recurring basis as of June 30, 2023 and December 31, 2022 by level within the fair value hierarchy (in thousands): June 30, 2023 Level 1 Level 2 Total Fair Cash equivalents: Money market funds $ 5,226 $ — $ 5,226 Treasury securities 797 — 797 Available-for-sale investment securities: Corporate bonds — 5,452 5,452 Agency securities — 11,028 11,028 Treasury securities 122,793 — 122,793 Total $ 128,816 $ 16,480 $ 145,296 December 31, 2022 Level 1 Level 2 Total Fair Cash equivalents: Money market funds $ 41,973 $ — $ 41,973 Treasury securities 1,287 — 1,287 Available-for-sale investment securities: Corporate bonds — 17,387 17,387 Agency securities — 17,023 17,023 Treasury securities 80,048 — 80,048 Total $ 123,308 $ 34,410 $ 157,718 The carrying amounts of cash and cash equivalents, restricted cash, accounts receivable, accounts payable and accrued liabilities approximate their fair value because of the short maturity of these items. Fair value for our Level 1 investment securities is based on market prices for identical assets. Our Level 2 securities were priced by a pricing vendor. The pricing vendor utilizes the most recent observable market information in pricing these securities or, if specific prices are not available for these securities, other observable inputs like market transactions involving comparable securities are used. |