XML 36 R25.htm IDEA: XBRL DOCUMENT
v3.21.1

Organization, Basis of Presentation and Summary of Significant Accounting Policies - Additional Information (Details) | 1 Months Ended | 3 Months Ended |  |  |
--- | --- | --- | --- | --- | ---
Feb. 28, 2021 USD ($) $ / shares shares | Jan. 31, 2021 | Mar. 31, 2021 USD ($) $ / shares shares | Dec. 31, 2020 USD ($) $ / shares shares | Oct. 31, 2018 $ / shares | Apr. 30, 2017 $ / shares
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Number of shares of convertible preferred stock converted to common stock | 16,079,230 |  |  | 16,079,230 |  |
Common stock, authorized | 150,000,000 |  | 150,000,000 | 299,700,000 |  |
Convertible preferred stock,authorized |  |  | 10,000,000 | 188,029,084 |  |
Common stock, par value | $ / shares | $ 0.0001 |  | $ 0.0001 | $ 0.0001 |  |
Convertible preferred stock, par value | $ / shares |  |  | $ 0.0001 | $ 0.0001 |  |
Preferred stock, shares authorized | 10,000,000 |  |  |  |  |
Preferred stock, par or stated value per share | $ / shares | $ 0.0001 |  |  |  |  |
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 condensed consolidated financial statements have been retroactively adjusted to give effect to the Reverse Stock Split for all periods presented. |  |  |
Reverse stock split, conversion ratio |  | 0.0714 |  |  |  |
Marketable securities | $ |  |  | $ 96,752,000 | $ 0 |  |
ASU 2018-07 |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Change in accounting principle, accounting standards update, adopted [true false] |  |  | true |  |  |
Change in accounting principle, accounting standards update, adoption date |  |  | Jan. 01, 2021 |  |  |
Change in accounting principle, accounting standards update, immaterial effect [true false] |  |  | true |  |  |
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 |  |  |
Change in accounting principle, accounting standards update, immaterial effect [true false] |  |  | true |  |  |
ASU 2016-13 |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Change in accounting principle, accounting standards update, adopted [true false] |  |  | false |  |  |
Series A convertible preferred stock |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Number of shares of convertible preferred stock converted to common stock |  |  |  | 2,857,142 |  |
Convertible preferred stock,authorized |  |  |  | 40,000,000 |  |
Convertible preferred stock, par value | $ / shares |  |  |  |  |  | $ 10.50
Series B convertible preferred stock |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Number of shares of convertible preferred stock converted to common stock |  |  |  | 5,721,423 |  |
Convertible preferred stock,authorized |  |  |  | 36,409,088 |  |
Convertible preferred stock, par value | $ / shares |  |  |  |  | $ 30.80 |
Series C convertible preferred stock |  |  |  |  |  |
Basis Of Presentation And Summary Of Significant Accounting Policies [Line Items] |  |  |  |  |  |
Number of shares of convertible preferred stock converted to common stock |  |  |  | 7,500,665 |  |
Convertible preferred stock,authorized |  |  |  | 111,619,996 |  |
Convertible preferred stock, par value | $ / shares |  |  |  | $ 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,000.0 |  |  |  |  |
Number of shares of convertible preferred stock converted to common stock | 16,079,230 |  |  |  |  |

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 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 842 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121329987&loc=SL120154346-209984 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 20 -Section 65 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=121483254&loc=SL120254523-199619 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120320025-210437 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120320025-210437 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=120240428&loc=SL120254526-165497 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120254519-210437 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (a) + 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 CCYY-MM-DD format. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121329987&loc=SL120154346-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 http://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 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 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 http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120320025-210437 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120320025-210437 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 10: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22583-107794 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120254519-210437 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=120240428&loc=SL120254526-165497 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (a) + Details
Name: | us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | instant

X
- Definition Indicates (true false) whether effect from applying amendment to accounting standards is immaterial. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section S99 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=112272810&loc=d3e31010-122693 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (g)(2) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (e)(1) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b)(2) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (e)(3) + Details
Name: | us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateImmaterialEffect
Namespace Prefix: | us-gaap_
Data Type: | xbrli:booleanItemType
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 http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_CommonStockParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | num: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 http://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 http://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 http://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 http://asc.fasb.org/extlink&oid=109259400&loc=d3e21475-112644 Reference 4: 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 http://asc.fasb.org/extlink&oid=109259400&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 investment in marketable security. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 942 -SubTopic 210 -Section S99 -Paragraph 1 -Subparagraph (SX 210.9-03.4) -URI http://asc.fasb.org/extlink&oid=120398452&loc=d3e534808-122878 + Details
Name: | us-gaap_MarketableSecurities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

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 http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_PreferredStockParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | num: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 http://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 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 http://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 http://asc.fasb.org/extlink&oid=109259400&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 http://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 http://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 Ratio applied to the conversion of stock split, for example but not limited to, one share converted to two or two shares converted to one. + 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 http://asc.fasb.org/extlink&oid=120397183&loc=d3e187143-122770 + Details
Name: | us-gaap_StockholdersEquityNoteStockSplitConversionRatio1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:pureItemType
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 http://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 http://asc.fasb.org/extlink&oid=65877616&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 http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_TemporaryEquityParOrStatedValuePerShare
Namespace Prefix: | us-gaap_
Data Type: | num: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 http://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: | us-gaap_AdjustmentsForNewAccountingPronouncementsAxis=us-gaap_AccountingStandardsUpdate201807Member
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_AdjustmentsForNewAccountingPronouncementsAxis=us-gaap_AccountingStandardsUpdate201613Member
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: |