XML 72 R59.htm IDEA: XBRL DOCUMENT
v3.24.0.1

Summary of Significant Accounting Policies - Narrative (Details) | 12 Months Ended |  |
--- | --- | --- | ---
Dec. 31, 2023 USD ($) subsidiary entity reporting_unit | Dec. 31, 2022 USD ($) | Dec. 31, 2021 USD ($)
Summary of Significant Accounting Policies [Line Items] |  |  |
Number of wholly owned subsidiaries | subsidiary | 4 |  |
Number of entities non-banking activities | entity | 6 |  |
Prior period reclassification adjustment | $ 0 |  |
Threshold for evaluation for expected credit loss of commercial loans | $ 1,000,000 |  |
Finance Lease, Liability, Statement of Financial Position [Extensible List] | Premises and equipment, net | Premises and equipment, net |
Operating Lease, Right-of-Use Asset, Statement of Financial Position [Extensible Enumeration] | Other assets | Other assets |
Number of reporting units | reporting_unit | 1 |  |
Number of wholly owned trust subsidiaries | subsidiary | 2 |  |
Adjustment to allowance for credit loss | $ 107,966,000 | $ 101,340,000 | $ 98,576,000
Retained earnings | $ 959,604,000 | 863,948,000 |
Cumulative Effect, Period of Adoption, Adjustment |  |  |
Summary of Significant Accounting Policies [Line Items] |  |  |
Adjustment to allowance for credit loss |  | 568,000 |
Cumulative Effect, Period of Adoption, Adjustment | Accounting Standards Update 2022-02 |  |  |
Summary of Significant Accounting Policies [Line Items] |  |  |
Adjustment to allowance for credit loss |  | 600,000 |
Retained earnings |  | $ (600,000) |
Minimum | Core Deposits And Customers Lists |  |  |
Summary of Significant Accounting Policies [Line Items] |  |  |
Weighted average estimated useful of acquired intangibles | 10 years |  |
Maximum |  |  |
Summary of Significant Accounting Policies [Line Items] |  |  |
Amortization period of investments in joint ventures | 10 years |  |
Maximum | Core Deposits And Customers Lists |  |  |
Summary of Significant Accounting Policies [Line Items] |  |  |
Weighted average estimated useful of acquired intangibles | 20 years |  |
Common Wealth Trust Life Insurance Company | CTCLIC |  |  |
Summary of Significant Accounting Policies [Line Items] |  |  |
Percentage of equity owned | 50.00% |  |
Interest rate lock commitments |  |  |
Summary of Significant Accounting Policies [Line Items] |  |  |
Period for interest rate lock commitment | 60 days |  |

X
- Definition Minimum Amount Over Which Evaluation For Expected Credit Loss Of Commercial Loans Are Made + References No definition available. + Details
Name: | stba_MinimumAmountOverWhichEvaluationForExpectedCreditLossOfCommercialLoansAreMade
Namespace Prefix: | stba_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Number Of Entities Non-Banking Activities + References No definition available. + Details
Name: | stba_NumberOfEntitiesNonBankingActivities
Namespace Prefix: | stba_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of subsidiaries acquired through business combination. + References No definition available. + Details
Name: | stba_NumberOfSubsidiaries
Namespace Prefix: | stba_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number Of Trust Subsidiaries + References No definition available. + Details
Name: | stba_NumberOfTrustSubsidiaries
Namespace Prefix: | stba_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Summary Of Significant Accounting Policies [Line Items] + References No definition available. + Details
Name: | stba_SummaryOfSignificantAccountingPoliciesLineItems
Namespace Prefix: | stba_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Weighted average amortization period of finite-lived intangible assets acquired either individually or as part of a group of assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 350 -SubTopic 30 -Name Accounting Standards Codification -Section 50 -Paragraph 1 -Subparagraph (a)(3) -Publisher FASB -URI https://asc.fasb.org//1943274/2147482665/350-30-50-1 + Details
Name: | us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The percentage of ownership of common stock or equity participation in the investee accounted for under the equity method of accounting. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 323 -SubTopic 10 -Name Accounting Standards Codification -Section 50 -Paragraph 3 -Subparagraph (a)(1) -Publisher FASB -URI https://asc.fasb.org//1943274/2147481687/323-10-50-3 + Details
Name: | us-gaap_EquityMethodInvestmentOwnershipPercentage
Namespace Prefix: | us-gaap_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Indicates line item in statement of financial position that includes finance lease liability. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479041/842-20-45-2 + Details
Name: | us-gaap_FinanceLeaseLiabilityStatementOfFinancialPositionExtensibleList
Namespace Prefix: | us-gaap_
Data Type: | enum2:enumerationSetItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount excluding accrued interest, of allowance for credit loss on financing receivable. Excludes net investment in lease. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Topic 326 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 1 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479344/326-20-45-1 + Details
Name: | us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Useful life of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_FiniteLivedIntangibleAssetUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Period covered by the long-term purchase commitment, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_LongtermPurchaseCommitmentPeriod
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of reporting units tested for impairment of goodwill. A reporting unit is an operating segment or one level below an operating segment. + References No definition available. + Details
Name: | us-gaap_NumberOfReportingUnits
Namespace Prefix: | us-gaap_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | duration

X
- Definition Indicates line item in statement of financial position that includes operating lease right-of-use asset. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Topic 842 -SubTopic 20 -Name Accounting Standards Codification -Section 45 -Paragraph 2 -Publisher FASB -URI https://asc.fasb.org//1943274/2147479041/842-20-45-2 + Details
Name: | us-gaap_OperatingLeaseRightOfUseAssetStatementOfFinancialPositionExtensibleList
Namespace Prefix: | us-gaap_
Data Type: | enum2:enumerationSetItemType
Balance Type: | na
Period Type: | instant

X
- Definition The amount of a reclassification adjustment made to prior period financial statement amounts. + References No definition available. + Details
Name: | us-gaap_PriorPeriodReclassificationAdjustment
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Amount of accumulated undistributed earnings (deficit). + References Reference 1: http://www.xbrl.org/2003/role/exampleRef -Topic 852 -SubTopic 10 -Name Accounting Standards Codification -Section 55 -Paragraph 10 -Publisher FASB -URI https://asc.fasb.org//1943274/2147481372/852-10-55-10 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (g)(2)(i) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480016/944-40-65-2 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 40 -Name Accounting Standards Codification -Section 65 -Paragraph 2 -Subparagraph (h)(2) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480016/944-40-65-2 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 20 -Name Accounting Standards Codification -Section 50 -Paragraph 11 -Publisher FASB -URI https://asc.fasb.org//1943274/2147480990/946-20-50-11 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Topic 944 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.7-03(a)(23)(a)(4)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479440/944-210-S99-1 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Topic 946 -SubTopic 210 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.6-04(17)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147479617/946-210-S99-1 Reference 7: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 505 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.3-04) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480008/505-10-S99-1 Reference 8: http://fasb.org/us-gaap/role/ref/legacyRef -Topic 210 -SubTopic 10 -Name Accounting Standards Codification -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(30)(a)(3)) -Publisher FASB -URI https://asc.fasb.org//1943274/2147480566/210-10-S99-1 + Details
Name: | us-gaap_RetainedEarningsAccumulatedDeficit
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | srt_CumulativeEffectPeriodOfAdoptionAxis=srt_CumulativeEffectPeriodOfAdoptionAdjustmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_AdjustmentsForNewAccountingPronouncementsAxis=us-gaap_AccountingStandardsUpdate202202Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis=stba_CoreDepositsAndCustomersListsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_OwnershipAxis=stba_CommonWealthTrustLifeInsuranceCompanyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_ScheduleOfEquityMethodInvestmentEquityMethodInvesteeNameAxis=stba_CommonwealthTrustCreditLifeInsuranceCompanyMember
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: |