v3.26.1
Revenue Recognition - Summary of Revenue Recognition (Detail) - USD ($)
$ in Thousands
3 Months Ended 6 Months Ended
Jun. 30, 2026
Jun. 30, 2025
Jun. 30, 2026
Jun. 30, 2025
Disaggregation of Revenue [Line Items]        
Total net securities brokerage revenue $ 3,670 $ 3,348 $ 7,142 $ 6,049
Digital banking income 7,410 7,325 14,008 12,730
Net swap fee and valuation income 3,135 746 4,197 1,706
Mortgage banking income 1,055 2,364 1,974 3,504
Net gain (loss) on other real estate owned and other assets 2,036 111 2,583 71
Total Service Charges on Deposits [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 11,546 10,484 22,507 19,070
Trust Account fees [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 7,640 7,698 $ 15,982 14,372
Point of revenue recognition     Over time  
WesMark Fees [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 2,190 1,959 $ 4,290 3,983
Point of revenue recognition     Over time  
Net Swap Fee and Valuation Income [Member]        
Disaggregation of Revenue [Line Items]        
Point of revenue recognition     At a point in time  
Total Trust Fees [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 9,830 9,657 $ 20,272 18,355
Commercial Banking Fees [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 2,744 2,446 $ 5,361 4,383
Point of revenue recognition     Over time  
Personal Service Charges [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 8,802 8,038 $ 17,146 14,687
Point of revenue recognition     At a point in time and over time  
Annuity Commissions [Member]        
Disaggregation of Revenue [Line Items]        
Total net securities brokerage revenue 2,354 2,610 $ 4,651 4,598
Point of revenue recognition     At a point in time  
Equity And Debt Security Trades [Member]        
Disaggregation of Revenue [Line Items]        
Total net securities brokerage revenue 194 84 $ 354 208
Point of revenue recognition     At a point in time  
Managed Money [Member]        
Disaggregation of Revenue [Line Items]        
Total net securities brokerage revenue 673 337 $ 1,306 664
Point of revenue recognition     Over time  
Trail Commissions [Member]        
Disaggregation of Revenue [Line Items]        
Total net securities brokerage revenue 449 317 $ 831 579
Point of revenue recognition     Over time  
Payment Processing Fees [Member]        
Disaggregation of Revenue [Line Items]        
Payment processing fees $ 776 $ 804 $ 1,647 $ 1,696
Point of revenue recognition     At a point in time and over time  
Digital Banking Income [Member]        
Disaggregation of Revenue [Line Items]        
Point of revenue recognition     At a point in time  
Mortgage [Member]        
Disaggregation of Revenue [Line Items]        
Point of revenue recognition     At a point in time  
Other Real Estate Owned and Other Assets [Member]        
Disaggregation of Revenue [Line Items]        
Point of revenue recognition     At a point in time and over time