v3.21.2

Cash, Cash Equivalents and Investments (Tables) | 9 Months Ended
--- | ---
Sep. 30, 2021
Cash and Cash Equivalents [Abstract] |
Summary of Cash, Cash Equivalents and Investments | A summary of the Company's cash equivalents and investments as of September 30, 2021 is as follows:
Cash Equivalents: |  | Amortized Cost |  | Gross Unrealized Gains |  | Gross Unrealized Losses |  | Fair Value
Money market funds |  | $ | 176,144 |  |  | $ | — |  |  | $ | — |  |  | $ | 176,144 |
Certificates of deposit |  | 25,076 |  |  | — |  |  | — |  |  | 25,076 |
|  | $ | 201,220 |  |  | $ | — |  |  | $ | — |  |  | $ | 201,220 |
Investments: |  | Amortized Cost |  | Gross Unrealized Gains |  | Gross Unrealized Losses |  | Fair Value
Corporate bonds and commercial paper |  | $ | 36,472 |  |  | $ | 3 |  |  | $ | (9) |  |  | $ | 36,466 |
Certificates of deposit |  | 12,161 |  |  | — |  |  | — |  |  | 12,161 |
U.S. government securities |  | 51,185 |  |  | 3 |  |  | (10) |  |  | 51,178 |
|  | $ | 99,818 |  |  | $ | 6 |  |  | $ | (19) |  |  | $ | 99,805 |
A summary of the Company's cash equivalents and investments as of December 31, 2020 is as follows:
Cash Equivalents: |  | Amortized Cost |  | Gross Unrealized Gains |  | Gross Unrealized Losses |  | Fair Value
Money market funds |  | $ | 188,469 |  |  | $ | — |  |  | $ | — |  |  | $ | 188,469 |
Certificates of deposit |  | 25,028 |  |  | — |  |  | — |  |  | 25,028 |
Corporate bonds and commercial paper |  | 997 |  |  | — |  |  | (1) |  |  | 996 |
U.S. government securities |  | 19,999 |  |  | — |  |  | — |  |  | 19,999 |
|  | $ | 234,493 |  |  | $ | — |  |  | $ | (1) |  |  | $ | 234,492 |
Investments: |  | Amortized Cost |  | Gross Unrealized Gains |  | Gross Unrealized Losses |  | Fair Value
Corporate bonds and commercial paper |  | $ | 31,233 |  |  | $ | 15 |  |  | $ | (9) |  |  | $ | 31,239 |
Certificates of deposit |  | 10,007 |  |  | — |  |  | — |  |  | 10,007 |
U.S. government securities |  | 90,120 |  |  | — |  |  | (14) |  |  | 90,106 |
|  | $ | 131,360 |  |  | $ | 15 |  |  | $ | (23) |  |  | $ | 131,352 |
Schedule of Investments Classified by Contractual Maturity Date | The following table summarizes the estimated fair value of the Company's investments, designated as available-for-sale and classified by the contractual maturity date of the investments as of the dates shown:
|  | September 30, 2021 |  | December 31, 2020
Due within one year or less |  | $ | 77,598 |  |  | $ | 131,352 |
Due after one year through five years |  | 22,207 |  |  | — |
|  | $ | 99,805 |  |  | $ | 131,352 |
Schedule of Fair Values and Gross Unrealized Losses for Available-For-Sale Securities | The following table shows the fair values and the gross unrealized losses of these available-for-sale investments aggregated by investment category as of September 30, 2021.
|  | Adjusted Cost |  | Gross Unrealized Loss |  | Fair Value
U.S. government securities |  | $ | 16,024 |  |  | $ | (10) |  |  | $ | 16,014 |
Corporate bonds and commercial paper |  | 29,927 |  |  | (9) |  |  | 29,918 |
|  | $ | 45,951 |  |  | $ | (19) |  |  | $ | 45,932 |
The following table shows the fair values and the gross unrealized losses of these available-for-sale investments aggregated by investment category as of December 31, 2020:
|  | Adjusted Cost |  | Gross Unrealized Loss |  | Fair Value
U.S. government securities |  | $ | 90,120 |  |  | $ | (14) |  |  | $ | 90,106 |
Corporate bonds and commercial paper |  | 21,445 |  |  | (9) |  |  | 21,436 |
|  | $ | 111,565 |  |  | $ | (23) |  |  | $ | 111,542 |

X
- References No definition available. + Details
Name: | us-gaap_CashAndCashEquivalentsAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of maturities of an entity's investments as well as any other information pertinent to the investments. + References No definition available. + Details
Name: | us-gaap_InvestmentsClassifiedByContractualMaturityDateTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of the components of cash, cash equivalents, and investments. + References No definition available. + Details
Name: | us-gaap_ScheduleOfCashCashEquivalentsAndShortTermInvestmentsTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition For all investments in an unrealized loss position, including those for which other-than-temporary impairments have not been recognized in earnings (including investments for which a portion of an other-than-temporary impairment has been recognized in other comprehensive income), a tabular disclosure of the aggregate related fair value of investments with unrealized losses and the aggregate amount of unrealized losses (that is, the amount by which amortized cost basis exceeds fair value). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 320 -SubTopic 10 -Section 50 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=123581744&loc=d3e27290-111563 + Details
Name: | us-gaap_ScheduleOfUnrealizedLossOnInvestmentsTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:textBlockItemType
Balance Type: | na
Period Type: | duration