XML 45 R34.htm IDEA: XBRL DOCUMENT
v3.21.1

Loans Payable - Change in Fair Value of Loans Payable - Additional Information (Details) - USD ($) $ in Millions | 1 Months Ended | 12 Months Ended
--- | --- | ---
Mar. 31, 2021 | Dec. 31, 2020
Loans Payable | L A V Series A And Series B Promissory Note |  |
Short Term Debt [Line Items] |  |
Proceeds from issuance of debt | $ 10.8 |
Series C convertible preferred stock | Loans Payable |  |
Short Term Debt [Line Items] |  |
Proceeds from promissory note receivable | $ 1.9 |
Other Expense |  |
Short Term Debt [Line Items] |  |
Change in fair value of loans payable |  | $ 2.9
PWERM Method |  |
Short Term Debt [Line Items] |  |
Probability of IPO in the near term potential outcome percentage through loans payable value approach, scenario one |  | 60.00%
Probability of company remaining private potential outcome percentage through loans payable value approach, scenario two |  | 40.00%
Company remaining private potential outcome through loans payable value approach, period |  | 1 year 9 months

X
- Definition Change in fair value of Loans payable. + References No definition available. + Details
Name: | tern_ChangeInFairValueOfLoansPayable
Namespace Prefix: | tern_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Company remaining private potential outcome through loans payable value approach, period. + References No definition available. + Details
Name: | tern_CompanyRemainingPrivatePotentialOutcomeThroughLoansPayableValueApproachPeriod
Namespace Prefix: | tern_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Probability of company remaining private potential outcome percentage through loans payable value approach, scenario two. + References No definition available. + Details
Name: | tern_ProbabilityOfCompanyRemainingPrivatePotentialOutcomePercentageThroughLoansPayableValueApproachScenarioTwo
Namespace Prefix: | tern_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Probability of IPO in the near term potential outcome percentage through loans payable value approach, scenario one. + References No definition available. + Details
Name: | tern_ProbabilityOfIPOInNearTermPotentialOutcomePercentageThroughLoansPayableValueApproachScenarioOne
Namespace Prefix: | tern_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Proceeds from issuance of temporary equity with debt receipts. + References No definition available. + Details
Name: | tern_ProceedsFromIssuanceOfTemporaryEquityWithDebtReceipts
Namespace Prefix: | tern_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition The cash inflow during the period from additional borrowings in aggregate debt. Includes proceeds from short-term and long-term debt. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 14 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3255-108585 + Details
Name: | us-gaap_ProceedsFromIssuanceOfDebt
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_ShortTermDebtLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | us-gaap_ShortTermDebtTypeAxis=us-gaap_LoansPayableMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_DebtInstrumentAxis=tern_LAVSeriesAAndSeriesBPromissoryNoteMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=tern_SeriesCConvertiblePreferredStockMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_IncomeStatementLocationAxis=us-gaap_OtherExpenseMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_ValuationTechniqueAxis=tern_PWERMMethodMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |