XML 115 R103.htm IDEA: XBRL DOCUMENT
v3.22.4

Qualified Affordable Housing (Details) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2022 USD ($) housing_project | Dec. 31, 2021 USD ($) | Dec. 31, 2020 USD ($)
Schedule of Equity Method Investments [Line Items] |  |  |
Investments in qualified affordable housing projects | $ 23.6 | $ 12.6 |
Tax credits to offset amortization expense of investments in affordable housing projects | 1.2 | 2.0 | $ 2.2
New Qualified Affordable Housing Project |  |  |
Schedule of Equity Method Investments [Line Items] |  |  |
Investments in qualified affordable housing projects | $ 20.1 |  |
Number of qualified affordable housing projects | housing_project | 3 |  |
Funds invested, amount | $ 4.4 |  |
Noninterest Expense |  |  |
Schedule of Equity Method Investments [Line Items] |  |  |
Amortization expense of investments in qualified affordable housing projects | $ 1.4 | $ 1.2 | $ 3.2

X
- Definition Amortization Method Qualified Affordable Housing Project Investments, Funds Invested, Amount + References No definition available. + Details
Name: | stba_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsFundsInvestedAmount
Namespace Prefix: | stba_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Number Of Qualified Affordable Housing Project + References No definition available. + Details
Name: | stba_NumberOfQualifiedAffordableHousingProject
Namespace Prefix: | stba_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of affordable housing tax credits and other tax benefits recognized. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 740 -Section 50 -Paragraph 2 -Subparagraph (a) -URI https://asc.fasb.org/extlink&oid=116633289&loc=SL49122993-202985 + Details
Name: | us-gaap_AffordableHousingTaxCreditsAndOtherTaxBenefitsAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of investment in qualified affordable housing projects. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 740 -Section 50 -Paragraph 2 -Subparagraph (b) -URI https://asc.fasb.org/extlink&oid=116633289&loc=SL49122993-202985 + Details
Name: | us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestments
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Amount of amortization expense of investment in qualified affordable housing projects. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 323 -SubTopic 740 -Section 50 -Paragraph 2 -Subparagraph (c) -URI https://asc.fasb.org/extlink&oid=116633289&loc=SL49122993-202985 + Details
Name: | us-gaap_AmortizationMethodQualifiedAffordableHousingProjectInvestmentsAmortization
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

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

X
- Details
Name: | srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=stba_NewQualifiedAffordableHousingProjectMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

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