XML 35 R26.htm IDEA: XBRL DOCUMENT
v3.23.1

Fair Value Measurements - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details) - USD ($) $ in Thousands | Mar. 31, 2023 | Dec. 31, 2022
--- | --- | ---
ASSETS |  |
Available-for-sale debt securities | $ 997,702 | $ 1,001,784
Marketable equity securities | 1,006 | 994
Derivative financial assets | 67,403 | 83,456
LIABILITIES |  |
Derivative financial liabilities | 82,685 | 104,817
U.S. Treasury securities |  |
ASSETS |  |
Available-for-sale debt securities | 133,704 | 131,695
Obligations of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 42,095 | 41,811
Collateralized mortgage obligations of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 432,739 | 428,407
Residential mortgage-backed securities of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 41,170 | 41,587
Commercial mortgage-backed securities of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 317,099 | 327,313
Obligations of states and political subdivisions |  |
ASSETS |  |
Available-for-sale debt securities | 30,895 | 30,471
Fair Value Measurements, Recurring |  |
ASSETS |  |
Available-for-sale debt securities | 997,702 | 1,001,784
Marketable equity securities | 1,006 | 994
Total Securities | 998,708 | 1,002,778
Securities held in a deferred compensation plan | 7,790 | 8,087
Total Assets | 1,073,901 | 1,094,321
LIABILITIES |  |
Total Liabilities | 82,685 | 104,817
Fair Value Measurements, Recurring | U.S. Treasury securities |  |
ASSETS |  |
Available-for-sale debt securities | 133,704 | 131,695
Fair Value Measurements, Recurring | Obligations of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 42,095 | 41,811
Fair Value Measurements, Recurring | Collateralized mortgage obligations of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 432,739 | 428,407
Fair Value Measurements, Recurring | Residential mortgage-backed securities of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 41,170 | 41,587
Fair Value Measurements, Recurring | Commercial mortgage-backed securities of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 317,099 | 327,313
Fair Value Measurements, Recurring | Corporate obligations |  |
ASSETS |  |
Available-for-sale debt securities |  | 500
Fair Value Measurements, Recurring | Obligations of states and political subdivisions |  |
ASSETS |  |
Available-for-sale debt securities | 30,895 | 30,471
Fair Value Measurements, Recurring | Interest rate swaps - commercial loans |  |
ASSETS |  |
Derivative financial assets | 67,397 | 83,449
LIABILITIES |  |
Derivative financial liabilities | 67,397 | 83,449
Fair Value Measurements, Recurring | Interest rate lock commitments |  |
ASSETS |  |
Derivative financial assets | 6 | 5
Fair Value Measurements, Recurring | Forward sale contracts—mortgage loans |  |
ASSETS |  |
Derivative financial assets |  | 2
Fair Value Measurements, Recurring | Interest rate swaps - cash flow hedge |  |
LIABILITIES |  |
Derivative financial liabilities | 15,288 | 21,368
Fair Value Measurements, Recurring | Level 1 |  |
ASSETS |  |
Available-for-sale debt securities | 133,704 | 131,695
Marketable equity securities | 953 | 952
Total Securities | 134,657 | 132,647
Securities held in a deferred compensation plan | 7,790 | 8,087
Total Assets | 142,447 | 140,734
LIABILITIES |  |
Total Liabilities | 0 | 0
Fair Value Measurements, Recurring | Level 1 | U.S. Treasury securities |  |
ASSETS |  |
Available-for-sale debt securities | 133,704 | 131,695
Fair Value Measurements, Recurring | Level 1 | Obligations of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 1 | Collateralized mortgage obligations of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 1 | Residential mortgage-backed securities of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 1 | Commercial mortgage-backed securities of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 1 | Corporate obligations |  |
ASSETS |  |
Available-for-sale debt securities |  | 0
Fair Value Measurements, Recurring | Level 1 | Obligations of states and political subdivisions |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 1 | Interest rate swaps - commercial loans |  |
ASSETS |  |
Derivative financial assets | 0 | 0
LIABILITIES |  |
Derivative financial liabilities | 0 | 0
Fair Value Measurements, Recurring | Level 1 | Interest rate lock commitments |  |
ASSETS |  |
Derivative financial assets | 0 | 0
Fair Value Measurements, Recurring | Level 1 | Forward sale contracts—mortgage loans |  |
ASSETS |  |
Derivative financial assets |  | 0
Fair Value Measurements, Recurring | Level 1 | Interest rate swaps - cash flow hedge |  |
LIABILITIES |  |
Derivative financial liabilities | 0 | 0
Fair Value Measurements, Recurring | Level 2 |  |
ASSETS |  |
Available-for-sale debt securities | 863,998 | 870,089
Marketable equity securities | 53 | 42
Total Securities | 864,051 | 870,131
Securities held in a deferred compensation plan | 0 | 0
Total Assets | 931,448 | 953,580
LIABILITIES |  |
Total Liabilities | 82,685 | 104,817
Fair Value Measurements, Recurring | Level 2 | U.S. Treasury securities |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 2 | Obligations of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 42,095 | 41,811
Fair Value Measurements, Recurring | Level 2 | Collateralized mortgage obligations of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 432,739 | 428,407
Fair Value Measurements, Recurring | Level 2 | Residential mortgage-backed securities of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 41,170 | 41,587
Fair Value Measurements, Recurring | Level 2 | Commercial mortgage-backed securities of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 317,099 | 327,313
Fair Value Measurements, Recurring | Level 2 | Corporate obligations |  |
ASSETS |  |
Available-for-sale debt securities |  | 500
Fair Value Measurements, Recurring | Level 2 | Obligations of states and political subdivisions |  |
ASSETS |  |
Available-for-sale debt securities | 30,895 | 30,471
Fair Value Measurements, Recurring | Level 2 | Interest rate swaps - commercial loans |  |
ASSETS |  |
Derivative financial assets | 67,397 | 83,449
LIABILITIES |  |
Derivative financial liabilities | 67,397 | 83,449
Fair Value Measurements, Recurring | Level 2 | Interest rate lock commitments |  |
ASSETS |  |
Derivative financial assets | 0 | 0
Fair Value Measurements, Recurring | Level 2 | Forward sale contracts—mortgage loans |  |
ASSETS |  |
Derivative financial assets |  | 0
Fair Value Measurements, Recurring | Level 2 | Interest rate swaps - cash flow hedge |  |
LIABILITIES |  |
Derivative financial liabilities | 15,288 | 21,368
Fair Value Measurements, Recurring | Level 3 |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Marketable equity securities | 0 | 0
Total Securities | 0 | 0
Securities held in a deferred compensation plan | 0 | 0
Total Assets | 6 | 7
LIABILITIES |  |
Total Liabilities | 0 | 0
Fair Value Measurements, Recurring | Level 3 | U.S. Treasury securities |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 3 | Obligations of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 3 | Collateralized mortgage obligations of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 3 | Residential mortgage-backed securities of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 3 | Commercial mortgage-backed securities of U.S. government corporations and agencies |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 3 | Corporate obligations |  |
ASSETS |  |
Available-for-sale debt securities |  | 0
Fair Value Measurements, Recurring | Level 3 | Obligations of states and political subdivisions |  |
ASSETS |  |
Available-for-sale debt securities | 0 | 0
Fair Value Measurements, Recurring | Level 3 | Interest rate swaps - commercial loans |  |
ASSETS |  |
Derivative financial assets | 0 | 0
LIABILITIES |  |
Derivative financial liabilities | 0 | 0
Fair Value Measurements, Recurring | Level 3 | Interest rate lock commitments |  |
ASSETS |  |
Derivative financial assets | 6 | 5
Fair Value Measurements, Recurring | Level 3 | Forward sale contracts—mortgage loans |  |
ASSETS |  |
Derivative financial assets |  | 2
Fair Value Measurements, Recurring | Level 3 | Interest rate swaps - cash flow hedge |  |
LIABILITIES |  |
Derivative financial liabilities | $ 0 | $ 0

X
- Definition Assets Held-in-Trust, Fair Value Disclosure + References No definition available. + Details
Name: | stba_AssetsHeldinTrustFairValueDisclosure
Namespace Prefix: | stba_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value portion of probable future economic benefits obtained or controlled by an entity as a result of past transactions or events. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_AssetsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount excluding accrued interest, of investment in debt security measured at fair value with change in fair value recognized in other comprehensive income (available-for-sale). + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 326 -SubTopic 30 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479130/326-30-45-1 + Details
Name: | us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after the effects of master netting arrangements, of a financial asset or other contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes assets not subject to a master netting arrangement and not elected to be offset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 12 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-12 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 55 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480493/946-210-55-1 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(4) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 12: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(3)(c)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column H)(Footnote 7)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5C Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(3)(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5 -Subparagraph (SX 210.12-13(Column A)(Footnote 3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column H)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5C Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5A -Subparagraph (SX 210.12-13A(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5A Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5B Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)(Footnote 4)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5B Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483466/210-20-50-3 Reference 22: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483444/210-20-55-22 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483444/210-20-55-10 Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482907/825-10-50-10 + Details
Name: | us-gaap_DerivativeAssets
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value, after the effects of master netting arrangements, of a financial liability or contract with one or more underlyings, notional amount or payment provision or both, and the contract can be net settled by means outside the contract or delivery of an asset. Includes liabilities not subject to a master netting arrangement and not elected to be offset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (e) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(4) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (b)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (c)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-1 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 10: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section 50 -Paragraph 6 -Subparagraph (a)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480524/946-210-50-6 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(9)(e)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column H)(Footnote 7)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5C Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(9)(b)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(9)(d)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5 -Subparagraph (SX 210.12-13(Column G)(Footnote 8)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5C -Subparagraph (SX 210.12-13C(Column H)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5C Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5 -Subparagraph (SX 210.12-13(Column G)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5A -Subparagraph (SX 210.12-13A(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5A Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5B Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 320 -Name Accounting Standards Codification -Section S99 -Paragraph 5B -Subparagraph (SX 210.12-13B(Column E)(Footnote 4)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480032/946-320-S99-5B Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483466/210-20-50-3 Reference 22: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 22 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483444/210-20-55-22 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 20 -Name Accounting Standards Codification -Section 55 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147483444/210-20-55-10 Reference 24: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482907/825-10-50-10 + Details
Name: | us-gaap_DerivativeLiabilities
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of investment in equity security measured at fair value with change in fair value recognized in net income (FV-NI), classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(2)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 Reference 2: http://www.xbrl.org/2003/role/exampleRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Subparagraph (f) -Publisher FASB -URI https://asc.fasb.org//1943274/2147483467/210-10-45-1 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 825 -SubTopic 10 -Name Accounting Standards Codification -Section 45 -Paragraph 1A -Publisher FASB -URI https://asc.fasb.org//1943274/2147482736/825-10-45-1A + Details
Name: | us-gaap_EquitySecuritiesFvNi
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- References No definition available. + Details
Name: | us-gaap_FinancialInstrumentsFinancialAssetsBalanceSheetGroupingsAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_FinancialInstrumentsFinancialLiabilitiesBalanceSheetGroupingsAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Fair value portion of investment securities, including, but not limited to, marketable securities, derivative financial instruments, and investments accounted for under the equity method. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 820 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_InvestmentsFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Fair value of financial and nonfinancial obligations. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482106/820-10-50-2 + Details
Name: | us-gaap_LiabilitiesFairValueDisclosure
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USTreasurySecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USGovernmentCorporationsAndAgenciesSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CollateralizedMortgageObligationsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_ResidentialMortgageBackedSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CommercialMortgageBackedSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_USStatesAndPoliticalSubdivisionsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByMeasurementFrequencyAxis=us-gaap_FairValueMeasurementsRecurringMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_CorporateBondSecuritiesMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=stba_InterestRateSwapCommercialLoanMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_InterestRateLockCommitmentsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=us-gaap_ForwardContractsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FinancialInstrumentAxis=stba_InterestRateSwapCashFlowHedgeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel2Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FairValueByFairValueHierarchyLevelAxis=us-gaap_FairValueInputsLevel3Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |