Fair Value of Financial Instruments (Details) - USD ($) $ in Thousands | Sep. 30, 2017 | Dec. 31, 2016 |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | $ 86,889 | $ 58,519 |
Fair value on a recurring basis | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 21,410 | |
Investments | 86,889 | 58,519 |
Total assets measured at fair value | 108,299 | 69,489 |
Fair value on a recurring basis | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 19,610 | |
Investments | 12,009 | 8,544 |
Total assets measured at fair value | 31,619 | 19,514 |
Fair value on a recurring basis | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 1,800 | |
Investments | 74,880 | 49,975 |
Total assets measured at fair value | 76,680 | 49,975 |
Fair value on a recurring basis | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | |
Investments | 0 | 0 |
Total assets measured at fair value | 0 | 0 |
Fair value on a recurring basis | Certificates of deposit | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 14,367 | 7,257 |
Fair value on a recurring basis | Certificates of deposit | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | 0 |
Fair value on a recurring basis | Certificates of deposit | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 14,367 | 7,257 |
Fair value on a recurring basis | Certificates of deposit | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | 0 |
Fair value on a recurring basis | US Treasury securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 12,009 | 8,544 |
Fair value on a recurring basis | US Treasury securities | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 12,009 | 8,544 |
Fair value on a recurring basis | US Treasury securities | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | 0 |
Fair value on a recurring basis | US Treasury securities | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | 0 |
Fair value on a recurring basis | US Agency securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 7,485 | 4,501 |
Fair value on a recurring basis | US Agency securities | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | 0 |
Fair value on a recurring basis | US Agency securities | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 7,485 | 4,501 |
Fair value on a recurring basis | US Agency securities | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | 0 |
Fair value on a recurring basis | Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 10,456 | |
Fair value on a recurring basis | Commercial paper | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | |
Fair value on a recurring basis | Commercial paper | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 10,456 | |
Fair value on a recurring basis | Commercial paper | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | |
Fair value on a recurring basis | Asset-backed securities | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 5,024 | 5,557 |
Fair value on a recurring basis | Asset-backed securities | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | 0 |
Fair value on a recurring basis | Asset-backed securities | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 5,024 | 5,557 |
Fair value on a recurring basis | Asset-backed securities | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | 0 |
Fair value on a recurring basis | Corporate notes and bonds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 37,548 | 32,660 |
Fair value on a recurring basis | Corporate notes and bonds | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | 0 |
Fair value on a recurring basis | Corporate notes and bonds | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 37,548 | 32,660 |
Fair value on a recurring basis | Corporate notes and bonds | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Investments | 0 | 0 |
Fair value on a recurring basis | Money market funds | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 19,610 | 10,970 |
Fair value on a recurring basis | Money market funds | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 19,610 | 10,970 |
Fair value on a recurring basis | Money market funds | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | 0 |
Fair value on a recurring basis | Money market funds | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | $ 0 |
Fair value on a recurring basis | Commercial paper | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 1,800 | |
Fair value on a recurring basis | Commercial paper | Quoted Prices in Active Markets for Identical Assets (Level 1) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 0 | |
Fair value on a recurring basis | Commercial paper | Significant Other Observable Inputs (Level 2) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | 1,800 | |
Fair value on a recurring basis | Commercial paper | Significant Unobservable Inputs (Level 3) | | |
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items] | | |
Cash and cash equivalents | $ 0 | |