Cash Equivalents and Investments - Schedule of Securities Classified as Cash, Cash Equivalents and Short-term Investments (Detail) - USD ($) $ in Thousands | Jun. 30, 2017 | Dec. 31, 2016 | Jun. 30, 2016 | Dec. 31, 2015 |
Cash Cash Equivalents And Short Term Investments [Line Items] | | | | | |
Cash and cash equivalents, Amortized Cost | $ 63,636 | $ 74,598 | [1] | $ 146,669 | $ 107,004 |
Cash and cash equivalents, Gross Unrealized Gains | 0 | 0 | | | |
Cash and cash equivalents, Gross Unrealized Losses | 0 | 0 | | | |
Cash and cash equivalents, Fair Value | 63,636 | 74,598 | | | |
Short-term investments, Amortized Cost | 85,128 | 126,296 | | | |
Short-term investments, Gross Unrealized Gains | 3 | 7 | | | |
Short-term investments, Gross Unrealized Losses | (43) | (78) | | | |
Short-term investments, Fair Value | 85,088 | 126,225 | | | |
Cash equivalents and short-term investments, Amortized Cost | 148,764 | 200,894 | | | |
Cash equivalents and short-term investments, Gross Unrealized Gains | 3 | 7 | | | |
Cash equivalents and short-term investments, Gross Unrealized Losses | (43) | (78) | | | |
Cash equivalents and short-term investments, Fair Value | 148,724 | 200,823 | | | |
Cash [Member] | | | | | |
Cash Cash Equivalents And Short Term Investments [Line Items] | | | | | |
Cash and cash equivalents, Amortized Cost | 8,290 | 3,638 | | | |
Cash and cash equivalents, Gross Unrealized Gains | 0 | 0 | | | |
Cash and cash equivalents, Gross Unrealized Losses | 0 | 0 | | | |
Cash and cash equivalents, Fair Value | 8,290 | 3,638 | | | |
Money Market Funds [Member] | | | | | |
Cash Cash Equivalents And Short Term Investments [Line Items] | | | | | |
Cash and cash equivalents, Amortized Cost | 54,249 | 68,561 | | | |
Cash and cash equivalents, Gross Unrealized Gains | 0 | 0 | | | |
Cash and cash equivalents, Gross Unrealized Losses | 0 | 0 | | | |
Cash and cash equivalents, Fair Value | 54,249 | 68,561 | | | |
Commercial Paper (Cash Equivalents) [Member] | | | | | |
Cash Cash Equivalents And Short Term Investments [Line Items] | | | | | |
Cash and cash equivalents, Amortized Cost | 1,097 | 2,399 | | | |
Cash and cash equivalents, Gross Unrealized Gains | 0 | 0 | | | |
Cash and cash equivalents, Gross Unrealized Losses | 0 | 0 | | | |
Cash and cash equivalents, Fair Value | 1,097 | 2,399 | | | |
Corporate Bonds (Investments) [Member] | | | | | |
Cash Cash Equivalents And Short Term Investments [Line Items] | | | | | |
Short-term investments, Amortized Cost | 42,782 | 58,464 | | | |
Short-term investments, Gross Unrealized Gains | 1 | 2 | | | |
Short-term investments, Gross Unrealized Losses | (27) | (56) | | | |
Short-term investments, Fair Value | 42,756 | 58,410 | | | |
Commercial Paper (Investments) [Member] | | | | | |
Cash Cash Equivalents And Short Term Investments [Line Items] | | | | | |
Short-term investments, Amortized Cost | 24,399 | 62,946 | | | |
Short-term investments, Gross Unrealized Gains | 2 | 5 | | | |
Short-term investments, Gross Unrealized Losses | (6) | (20) | | | |
Short-term investments, Fair Value | 24,395 | 62,931 | | | |
Asset-Backed Securities [Member] | | | | | |
Cash Cash Equivalents And Short Term Investments [Line Items] | | | | | |
Short-term investments, Amortized Cost | 17,947 | 4,886 | | | |
Short-term investments, Gross Unrealized Losses | (10) | (2) | | | |
Short-term investments, Fair Value | $ 17,937 | $ 4,884 | | | |
|
[1] | Derived from the audited financial statements included in the Company's Annual Report on Form 10-K for the year ended December 31, 2016. |