Cash, Cash Equivalents and Short-Term Investments - Summary of Cash and Cash Equivalents and Short-Term Investments (Details) - USD ($) $ in Thousands | Mar. 31, 2017 | Dec. 31, 2016 | Mar. 31, 2016 | Dec. 31, 2015 |
Schedule of Available-for-sale Securities [Line Items] | | | | |
Total cash and cash equivalents, Amortized Cost | $ 50,345 | $ 47,692 | $ 61,394 | $ 72,334 |
Total short-term investments, Amortized Cost | 139,332 | 138,617 | | |
Total short-term investments, Unrealized Gains | 57 | 44 | | |
Total short-term investments, Unrealized Losses | (688) | (780) | | |
Total short-term investments, Estimated Fair Value | 138,701 | 137,881 | | |
Cash, cash equivalents and short-term investments, Amortized Cost | 189,677 | 186,309 | | |
Cash, cash equivalents and short-term investments, Unrealized Gains | 57 | 44 | | |
Cash, cash equivalents and short-term investments, Unrealized Losses | (688) | (780) | | |
Cash, cash equivalents and short-term investments, Estimated Fair Value | 189,046 | 185,573 | | |
Corporate bonds | | | | |
Schedule of Available-for-sale Securities [Line Items] | | | | |
Total short-term investments, Amortized Cost | 55,010 | 54,827 | | |
Total short-term investments, Unrealized Gains | 43 | 19 | | |
Total short-term investments, Unrealized Losses | (139) | (188) | | |
Total short-term investments, Estimated Fair Value | 54,914 | 54,658 | | |
U.S. agency securities | | | | |
Schedule of Available-for-sale Securities [Line Items] | | | | |
Total short-term investments, Amortized Cost | 34,653 | 34,658 | | |
Total short-term investments, Unrealized Gains | 1 | 0 | | |
Total short-term investments, Unrealized Losses | (257) | (281) | | |
Total short-term investments, Estimated Fair Value | 34,397 | 34,377 | | |
Asset-backed securities | | | | |
Schedule of Available-for-sale Securities [Line Items] | | | | |
Total short-term investments, Amortized Cost | 24,207 | 26,431 | | |
Total short-term investments, Unrealized Gains | 12 | 25 | | |
Total short-term investments, Unrealized Losses | (27) | (23) | | |
Total short-term investments, Estimated Fair Value | 24,192 | 26,433 | | |
U.S. Treasury securities | | | | |
Schedule of Available-for-sale Securities [Line Items] | | | | |
Total short-term investments, Amortized Cost | 25,462 | 22,701 | | |
Total short-term investments, Unrealized Gains | 1 | 0 | | |
Total short-term investments, Unrealized Losses | (265) | (288) | | |
Total short-term investments, Estimated Fair Value | 25,198 | 22,413 | | |
Cash | | | | |
Schedule of Available-for-sale Securities [Line Items] | | | | |
Total cash and cash equivalents, Amortized Cost | 49,835 | 47,060 | | |
Total cash and cash equivalents, Unrealized Gains | 0 | 0 | | |
Total cash and cash equivalents, Unrealized Losses | 0 | 0 | | |
Total cash and cash equivalents, Estimated Fair Value | 49,835 | 47,060 | | |
Money market mutual funds | | | | |
Schedule of Available-for-sale Securities [Line Items] | | | | |
Total cash and cash equivalents, Amortized Cost | 510 | 632 | | |
Total cash and cash equivalents, Unrealized Gains | 0 | 0 | | |
Total cash and cash equivalents, Unrealized Losses | 0 | 0 | | |
Total cash and cash equivalents, Estimated Fair Value | 510 | 632 | | |
Total cash and cash equivalents | | | | |
Schedule of Available-for-sale Securities [Line Items] | | | | |
Total cash and cash equivalents, Amortized Cost | 50,345 | 47,692 | | |
Total cash and cash equivalents, Unrealized Gains | 0 | 0 | | |
Total cash and cash equivalents, Unrealized Losses | 0 | 0 | | |
Total cash and cash equivalents, Estimated Fair Value | $ 50,345 | $ 47,692 | | |