XML 35 R20.htm IDEA: XBRL DOCUMENT
v3.22.2.2

Organization, Basis of Presentation and Summary of Significant Accounting Policies - Additional Information (Details) - USD ($) $ / shares in Units, $ in Thousands | 1 Months Ended | 3 Months Ended | 9 Months Ended |  |  |  |
--- | --- | --- | --- | --- | --- | --- | ---
Aug. 31, 2022 | Feb. 28, 2021 | Sep. 30, 2022 | Mar. 31, 2022 | Sep. 30, 2021 | Sep. 30, 2022 | Sep. 30, 2021 | Dec. 31, 2021 | Dec. 31, 2020 | Oct. 31, 2018 | Apr. 30, 2017
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |  |  |  |
Common stock, authorized |  | 150,000,000 | 150,000,000 |  |  | 150,000,000 |  | 150,000,000 | 299,700,000 |  |
Common stock, par value |  |  | $ 0.0001 |  |  | $ 0.0001 |  | $ 0.0001 | $ 0.0001 |  |
Convertible preferred stock, par value |  |  |  |  |  |  |  |  | $ 0.0001 |  |
Preferred stock, shares authorized |  | 10,000,000 |  |  |  |  |  |  |  |  |
Preferred stock, par or stated value per share |  | $ 0.0001 |  |  |  |  |  |  |  |  |
Income Tax Expense |  |  | $ 13 |  | $ 20 | $ 40 | $ 73 |  |  |  |
Description of reverse stock split |  |  |  |  |  | In January 2021, the Company filed an amended and restated certificate of incorporation to effectuate a reverse split of shares of the Company’s common stock and convertible preferred stock on a 1-for-14 basis (the “Reverse Stock Split”). The par value and the number of authorized shares of the convertible preferred stock and common stock were not adjusted as a result of the Reverse Stock Split. All issued and outstanding common stock, options to purchase common stock and per share amounts contained in the consolidated financial statements have been retroactively adjusted to give effect to the Reverse Stock Split for all periods presented. |  |  |  |  |
Minimum [Member] |  |  |  |  |  |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |  |  |  |
Income Tax Expense |  |  | $ 100 |  | $ 100 | $ 100 | $ 100 |  |  |  |
ASU 2016-02 |  |  |  |  |  |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |  |  |  |
Change in accounting principle, accounting standards update, adopted [true false] |  |  | false |  |  | false |  |  |  |  |
Change in accounting principle, accounting standards update, adoption date |  |  | Jan. 01, 2022 |  |  | Jan. 01, 2022 |  |  |  |  |
Additional operating lease liability |  |  | $ 1,700 |  |  | $ 1,700 |  |  |  |  |
Operating lease right of use assets |  |  | $ 1,500 |  |  | $ 1,500 |  |  |  |  |
Series A convertible preferred stock |  |  |  |  |  |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |  |  |  |
Convertible preferred stock,authorized |  |  |  |  |  |  |  |  | 40,000,000 |  |
Convertible preferred stock, par value |  |  |  |  |  |  |  |  |  |  | $ 10.50
Series B convertible preferred stock |  |  |  |  |  |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |  |  |  |
Convertible preferred stock,authorized |  |  |  |  |  |  |  |  | 36,409,088 |  |
Convertible preferred stock, par value |  |  |  |  |  |  |  |  |  | $ 30.80 |
Series C convertible preferred stock |  |  |  |  |  |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |  |  |  |
Convertible preferred stock,authorized |  |  |  |  |  |  |  |  | 111,619,996 |  |
Convertible preferred stock, par value |  |  |  |  |  |  |  |  | $ 11.65 |  |
IPO |  |  |  |  |  |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |  |  |  |
Number of shares issued |  | 8,625,000 |  |  |  |  |  |  |  |  |
Underwriters option to purchase additional shares |  | 1,125,000 |  |  |  |  |  |  |  |  |
Net proceeds from issuance of common stock |  | $ 133,000 |  |  |  |  |  |  |  |  |
Convertible preferred stock, shares issued upon conversion |  | 16,079,230 |  |  |  |  |  |  |  |  |
At-the-Market Offering |  |  |  |  |  |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |  |  |  |
Offer price |  |  |  | $ 75,000 |  |  |  |  |  |  |
August 2022 Financing |  |  |  |  |  |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |  |  |  |  |  |
Number of shares issued | 12,250,000 |  |  |  |  |  |  |  |  |  |
Net proceeds from issuance of common stock | $ 33,000 |  |  |  |  |  |  |  |  |  |
Common stock, par value | $ 0.0001 |  |  |  |  |  |  |  |  |  |
Shares issued, price per share | $ 2.42 |  |  |  |  |  |  |  |  |  |
Gross proceeds before deducting underwriting discounts and commissions and other offering expenses common stock | $ 60,700 |  |  |  |  |  |  |  |  |  |
Pre-funded warrant price | $ 2.4199 |  |  |  |  |  |  |  |  |  |
Pre-funded warrants purchased | 14,630,000 |  |  |  |  |  |  |  |  |  |

X
- Definition Additional Operating Lease Liability + References No definition available. + Details
Name: | tern_AdditionalOperatingLeaseLiability
Namespace Prefix: | tern_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Basis of presentation and summary of significant accounting policies. + References No definition available. + Details
Name: | tern_BasisOfPresentationAndSummaryOfSignificantAccountingPoliciesLineItems
Namespace Prefix: | tern_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Gross Proceeds Before Deducting Underwriting Discounts And Commissions And Other Offering Expenses Common Stock + References No definition available. + Details
Name: | tern_GrossProceedsBeforeDeductingUnderwritingDiscountsAndCommissionsAndOtherOfferingExpensesCommonStock
Namespace Prefix: | tern_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Offer price + References No definition available. + Details
Name: | tern_OfferPrice
Namespace Prefix: | tern_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Operating Lease Right Of Use Assets + References No definition available. + Details
Name: | tern_OperatingLeaseRightOfUseAssets
Namespace Prefix: | tern_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Underwriters option to purchase additional shares. + References No definition available. + Details
Name: | tern_UnderwritersOptionToPurchaseAdditionalShares
Namespace Prefix: | tern_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Indicates (true false) whether accounting standards update was adopted. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=124431687&loc=d3e22499-107794 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 5 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 20 -Section 65 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=121483254&loc=SL120254523-199619 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 5 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 5 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 7 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL122642865-165497 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 7 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL122642865-165497 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 5 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=122640432&loc=SL120254519-210437 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=128293352&loc=SL120154346-209984 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 848 -SubTopic 10 -Section 65 -Paragraph 1 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=125980421&loc=SL122150809-237846 Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513 Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 65 -Paragraph 3 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984 Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641 Reference 22: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 65 -Paragraph 3 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126732423&loc=SL126732908-238011 Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 40 -Section 65 -Paragraph 1 -Subparagraph (a)(1) -URI https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011 Reference 25: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 6 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497 Reference 26: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=122640432&loc=SL120320025-210437 Reference 27: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 105 -SubTopic 10 -Section 65 -Paragraph 6 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695 Reference 28: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 848 -SubTopic 10 -Section 65 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846 Reference 29: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 6 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497 Reference 30: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=122640432&loc=SL120320025-210437 Reference 31: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 105 -SubTopic 10 -Section 65 -Paragraph 6 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695 Reference 32: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641 Reference 33: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 40 -Section 65 -Paragraph 1 -Subparagraph (a)(2) -URI https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011 Reference 34: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 832 -SubTopic 10 -Section 65 -Paragraph 1 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=128342835&loc=SL128342857-244232 + Details
Name: | us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted
Namespace Prefix: | us-gaap_
Data Type: | xbrli:booleanItemType
Balance Type: | na
Period Type: | instant

X
- Definition Date accounting standards update was adopted, in YYYY-MM-DD format. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 40 -Section 65 -Paragraph 1 -Subparagraph (a)(1) -URI https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 7 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL122642865-165497 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 832 -SubTopic 10 -Section 65 -Paragraph 1 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=128342835&loc=SL128342857-244232 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 5 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 310 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126986314&loc=SL124402458-218513 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 65 -Paragraph 3 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=122640432&loc=SL120320025-210437 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 105 -SubTopic 10 -Section 65 -Paragraph 6 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 105 -SubTopic 10 -Section 65 -Paragraph 6 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126987489&loc=SL124442142-165695 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=122640432&loc=SL120320025-210437 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 7 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL122642865-165497 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 6 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 40 -Section 65 -Paragraph 1 -Subparagraph (a)(2) -URI https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011 Reference 17: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=124431687&loc=d3e22583-107794 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641 Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 40 -Section 65 -Paragraph 1 -Subparagraph (a)(3) -URI https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011 Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=124501264&loc=SL117420844-207641 Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 848 -SubTopic 10 -Section 65 -Paragraph 1 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=125980421&loc=SL122150809-237846 Reference 22: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 5 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 40 -Section 65 -Paragraph 1 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=126732423&loc=SL123482106-238011 Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 5 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984 Reference 25: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 65 -Paragraph 3 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984 Reference 26: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126732423&loc=SL126732908-238011 Reference 27: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=128293352&loc=SL120154346-209984 Reference 28: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126983759&loc=SL121830611-158277 Reference 29: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 20 -Section 65 -Paragraph 3 -Subparagraph (d) -URI https://asc.fasb.org/extlink&oid=128092918&loc=SL128093175-196984 Reference 30: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 848 -SubTopic 10 -Section 65 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=125980421&loc=SL125981372-237846 Reference 31: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 20 -Section 65 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=121483254&loc=SL120254523-199619 Reference 32: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=122640432&loc=SL121648383-210437 Reference 33: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 34: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 6 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL121967933-165497 Reference 35: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=122640432&loc=SL120254519-210437 Reference 36: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 5 -URI https://asc.fasb.org/extlink&oid=126983955&loc=SL120254526-165497 Reference 37: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 5 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=128293352&loc=SL126838806-209984 + Details
Name: | us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | instant

X
- Definition Exercise price per share or per unit of warrants or rights outstanding. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=126973232&loc=d3e21475-112644 + Details
Name: | us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of securities into which each warrant or right may be converted. For example, but not limited to, each warrant may be converted into two shares. + References No definition available. + Details
Name: | us-gaap_ClassOfWarrantOrRightNumberOfSecuritiesCalledByEachWarrantOrRight
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Face amount or stated value per share of common stock. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of common shares permitted to be issued by an entity's charter and bylaws. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of shares issued for each share of convertible preferred stock that is converted. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 3 -URI https://asc.fasb.org/extlink&oid=126973232&loc=d3e21475-112644 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 16 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=126973232&loc=SL123496180-112644 Reference 5: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 6 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=126973232&loc=d3e21506-112644 + Details
Name: | us-gaap_ConvertiblePreferredStockSharesIssuedUponConversion
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of current income tax expense (benefit) and deferred income tax expense (benefit) pertaining to continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SAB TOPIC 6.I.7) -URI https://asc.fasb.org/extlink&oid=122134291&loc=d3e330036-122817 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 50 -Paragraph 10 -URI https://asc.fasb.org/extlink&oid=121826272&loc=d3e32672-109319 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 280 -SubTopic 10 -Section 50 -Paragraph 22 -Subparagraph (h) -URI https://asc.fasb.org/extlink&oid=126901519&loc=d3e8736-108599 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 235 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.4-08(h)) -URI https://asc.fasb.org/extlink&oid=120395691&loc=d3e23780-122690 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 9 -URI https://asc.fasb.org/extlink&oid=124431687&loc=d3e22663-107794 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 20 -Section 45 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=123586238&loc=d3e38679-109324 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 220 -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-04(9)) -URI https://asc.fasb.org/extlink&oid=120400993&loc=SL114874131-224263 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 8 -URI https://asc.fasb.org/extlink&oid=124431687&loc=d3e22658-107794 + Details
Name: | us-gaap_IncomeTaxExpenseBenefit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Face amount or stated value per share of preferred stock nonredeemable or redeemable solely at the option of the issuer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 13 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=126973232&loc=SL123496158-112644 + Details
Name: | us-gaap_PreferredStockParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of nonredeemable preferred shares (or preferred stock redeemable solely at the option of the issuer) permitted to be issued by an entity's charter and bylaws. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_PreferredStockSharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Definition Cash received on stock transaction after deduction of issuance costs. + References No definition available. + Details
Name: | us-gaap_SaleOfStockConsiderationReceivedOnTransaction
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Per share or per unit amount of equity securities issued. + References No definition available. + Details
Name: | us-gaap_SharesIssuedPricePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition Number of new stock issued during the period. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(29)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section 50 -Paragraph 2 -URI https://asc.fasb.org/extlink&oid=126973232&loc=d3e21463-112644 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -URI https://asc.fasb.org/extlink&oid=120397183&loc=d3e187085-122770 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(28)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_StockIssuedDuringPeriodSharesNewIssues
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Description of the reverse stock split arrangement. Also provide the retroactive effect given by the reverse split that occurs after the balance sheet date but before the release of financial statements. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 505 -SubTopic 10 -Section S99 -Paragraph 4 -Subparagraph (SAB Topic 4.C) -URI https://asc.fasb.org/extlink&oid=120397183&loc=d3e187143-122770 + Details
Name: | us-gaap_StockholdersEquityReverseStockSplit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Per share amount of par value or stated value of stock classified as temporary equity. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 480 -SubTopic 10 -Section S99 -Paragraph 1 -URI https://asc.fasb.org/extlink&oid=122040564&loc=d3e177068-122764 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (27) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_TemporaryEquityParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition The maximum number of securities classified as temporary equity that are permitted to be issued by an entity's charter and bylaws. Temporary equity is a security with redemption features that are outside the control of the issuer, is not classified as an asset or liability in conformity with GAAP, and is not mandatorily redeemable. Includes any type of security that is redeemable at a fixed or determinable price or on a fixed or determinable date or dates, is redeemable at the option of the holder, or has conditions for redemption which are not solely within the control of the issuer. If convertible, the issuer does not control the actions or events necessary to issue the maximum number of shares that could be required to be delivered under the conversion option if the holder exercises the option to convert the stock to another class of equity. If the security is a warrant or a rights issue, the warrant or rights issue is considered to be temporary equity if the issuer cannot demonstrate that it would be able to deliver upon the exercise of the option by the holder in all cases. Includes stock with put option held by ESOP and stock redeemable by holder only in the event of a change in control of the issuer. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(27)(b)) -URI https://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_TemporaryEquitySharesAuthorized
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AdjustmentsForNewAccountingPronouncementsAxis=us-gaap_AccountingStandardsUpdate201602Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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

X
- Details
Name: | us-gaap_StatementClassOfStockAxis=tern_SeriesBConvertiblePreferredStockMember
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_SubsidiarySaleOfStockAxis=us-gaap_IPOMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=tern_AtTheMarketOfferingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_SubsidiarySaleOfStockAxis=tern_August2022FinancingMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |