Fair Value Measurements - Schedule of Fair Value of Financial Instruments (Detail) - USD ($) $ in Thousands | Jun. 30, 2016 | Dec. 31, 2015 |
Level 1 | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | $ 193,435 | $ 145,747 |
Total liabilities measured at fair value | 0 | 0 |
Level 1 | Money market funds | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 43,082 | 145,747 |
Level 1 | U.S. treasury securities | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 150,353 | |
Level 1 | U.S. government agency obligations | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 0 | 0 |
Level 1 | Derivative liability associated with the Medicis settlement | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total liabilities measured at fair value | 0 | 0 |
Level 2 | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 13,940 | 52,439 |
Total liabilities measured at fair value | 0 | 0 |
Level 2 | Money market funds | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 0 | 0 |
Level 2 | U.S. treasury securities | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | | |
Level 2 | U.S. government agency obligations | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 13,940 | 52,439 |
Level 2 | Derivative liability associated with the Medicis settlement | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total liabilities measured at fair value | 0 | 0 |
Level 3 | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 0 | 0 |
Total liabilities measured at fair value | 1,842 | 1,414 |
Level 3 | Money market funds | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 0 | 0 |
Level 3 | U.S. treasury securities | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 0 | |
Level 3 | U.S. government agency obligations | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 0 | 0 |
Level 3 | Derivative liability associated with the Medicis settlement | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total liabilities measured at fair value | 1,842 | 1,414 |
Recurring | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 207,375 | 198,186 |
Total liabilities measured at fair value | 1,842 | 1,414 |
Recurring | Money market funds | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 43,082 | 145,747 |
Recurring | U.S. treasury securities | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 150,353 | |
Recurring | U.S. government agency obligations | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total assets measured at fair value | 13,940 | 52,439 |
Recurring | Derivative liability associated with the Medicis settlement | | |
Fair Value, Assets and Liabilities Measured on Recurring Basis [Line Items] | | |
Total liabilities measured at fair value | $ 1,842 | $ 1,414 |