Fair Value Measurements - Recurring (Details) - USD ($) $ in Thousands |
12 Months Ended |
|
|
Dec. 31, 2015 |
Dec. 31, 2016 |
Nov. 26, 2014 |
| Assets |
|
|
|
| Marketable securities |
$ 90,281
|
$ 129,846
|
|
| U.S. Treasury securities |
|
|
|
| Assets |
|
|
|
| Marketable securities |
90,281
|
129,846
|
|
| Recurring |
|
|
|
| Assets |
|
|
|
| Cash equivalents |
3,245
|
2,999
|
|
| Marketable securities |
90,281
|
129,846
|
|
| Total Assets |
93,526
|
132,845
|
|
| Recurring | Level 1 |
|
|
|
| Assets |
|
|
|
| Cash equivalents |
3,245
|
2,999
|
|
| Marketable securities |
90,281
|
129,846
|
|
| Total Assets |
93,526
|
$ 132,845
|
|
| Series A convertible preferred stock |
|
|
|
| Liabilities |
|
|
|
| Convertible preferred stock liability |
|
|
$ 2,600
|
| Series A convertible preferred stock | Obligation to issue second tranche |
|
|
|
| Issuances, changes in fair value, exercise and reclassification of the Level 3 financial instrument |
|
|
|
| Balance as of the beginning of the period |
2,600
|
|
|
| Change in fair value of convertible preferred stock liability through date of Series A second tranche issuance |
17,600
|
|
|
| Recognition of fair value upon issuance of second tranche Series A convertible preferred stock |
$ (20,200)
|
|
|