XML 114 R100.htm IDEA: XBRL DOCUMENT
v3.25.0.1

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

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 -Topic 230 -SubTopic 10 -Name Accounting Standards Codification -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: |