XML 114 R101.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Mortgage Servicing Rights - Narrative (Details) - USD ($) $ in Thousands | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022 | Dec. 31, 2021
Mortgage Loan Activity [Line Items] |  |  |
Sale of 1-4 family mortgage loans | $ 3,839 | $ 38,583 | $ 311,479
Total servicing portfolio | 707,800 | 772,900 | 841,700
Fannie Mae |  |  |
Mortgage Loan Activity [Line Items] |  |  |
Sale of 1-4 family mortgage loans | $ 200 | $ 28,600 | $ 287,900

X
- Definition Mortgage Loan Activity [Line Items] + References No definition available. + Details
Name: | stba_MortgageLoanActivityLineItems
Namespace Prefix: | stba_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Portfolio loans fair value disclosure. + References No definition available. + Details
Name: | stba_PortfolioLoansFairValueDisclosure
Namespace Prefix: | stba_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition The cash inflow from sales of loans that are secured with real estate mortgages and are held with the intention to resell in the near future. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 25 -Subparagraph (c) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482740/230-10-45-25 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 21 -Publisher FASB -URI https://asc.fasb.org//1943274/2147482740/230-10-45-21 + Details
Name: | us-gaap_ProceedsFromSaleOfMortgageLoansHeldForSale
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Details
Name: | us-gaap_InvestmentTypeAxis=us-gaap_FederalNationalMortgageAssociationCertificatesAndObligationsFNMAMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |