v3.26.3
Revenue Recognition - Summary of Revenue Recognition (Detail) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended
Sep. 30, 2026
Sep. 30, 2025
Sep. 30, 2026
Sep. 30, 2025
Disaggregation of Revenue [Line Items]        
Total net securities brokerage revenue $ 3,267 $ 2,961 $ 10,408 $ 9,010
Digital banking income 7,476 7,324 21,485 20,053
Net swap fee and valuation income 4,857 3,231 9,054 4,937
Mortgage banking income 123 1,898 2,096 5,402
Net gains on other real estate owned and other assets 194 329 2,776 400
Total Service Charges on Deposits [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 12,263 11,163 34,769 30,233
Trust Account fees [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 7,411 6,955 $ 23,390 21,327
Point of revenue recognition     Over time  
WesMark Fees [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 2,255 2,032 $ 6,548 6,015
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,666 8,987 $ 29,938 27,342
Commercial Banking Fees [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 2,785 2,463 $ 8,146 6,846
Point of revenue recognition     Over time  
Personal Service Charges [Member]        
Disaggregation of Revenue [Line Items]        
Total trust fees/Total service charges on deposits 9,478 8,700 $ 26,623 23,387
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,095 2,237 $ 6,745 6,834
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 143 73 $ 497 282
Point of revenue recognition     At a point in time  
Managed Money [Member]        
Disaggregation of Revenue [Line Items]        
Total net securities brokerage revenue 641 366 $ 1,947 1,030
Point of revenue recognition     Over time  
Trail Commissions [Member]        
Disaggregation of Revenue [Line Items]        
Total net securities brokerage revenue 388 285 $ 1,219 864
Point of revenue recognition     Over time  
Payment Processing Fees [Member]        
Disaggregation of Revenue [Line Items]        
Payment processing fees $ 889 $ 844 $ 2,536 $ 2,539
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