Loans and allowance for loan losses - Nonaccrual TDRs and the related specific valuation allowance by portfolio segment (Details)
$ in Thousands
3 Months Ended 12 Months Ended
Mar. 31, 2021
USD ($)
loan
Dec. 31, 2020
USD ($)
loan
Specific Valuation Allowance [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment $ 8 $ 17
Number of Loans | loan 2 2
Portfolio Segment [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment $ 7,610 $ 7,491
Number of Loans | loan 35 34
Performing Financing Receivable [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment $ 6,678 $ 6,550
Number of Loans | loan 28 27
Nonperforming Financial Instruments [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment $ 932 $ 941
Number of Loans | loan 7 7
Commercial real estate | Specific Valuation Allowance [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment   $ 9
Commercial real estate | Portfolio Segment [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment $ 5,262 5,387
Commercial real estate | Performing Financing Receivable [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 4,962 5,084
Commercial real estate | Nonperforming Financial Instruments [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment $ 300 303
Consumer real estate    
Information concerning Troubled Debt Restructurings    
Number of Loans | loan 1  
Consumer real estate | Specific Valuation Allowance [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment $ 8 8
Consumer real estate | Portfolio Segment [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 2,323 2,077
Consumer real estate | Performing Financing Receivable [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 1,716 1,466
Consumer real estate | Nonperforming Financial Instruments [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 607 611
Owner Occupied [Member] | Commercial real estate | Specific Valuation Allowance [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment   9
Owner Occupied [Member] | Commercial real estate | Portfolio Segment [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 3,367 3,396
Owner Occupied [Member] | Commercial real estate | Performing Financing Receivable [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 3,367 3,396
Non-Owner Occupied [Member] | Commercial real estate | Portfolio Segment [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 1,895 1,991
Non-Owner Occupied [Member] | Commercial real estate | Performing Financing Receivable [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 1,595 1,688
Non-Owner Occupied [Member] | Commercial real estate | Nonperforming Financial Instruments [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment $ 300 303
First Deed of Trust [Member] | Consumer real estate    
Information concerning Troubled Debt Restructurings    
Number of Loans | loan 1  
First Deed of Trust [Member] | Consumer real estate | Specific Valuation Allowance [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment $ 8 8
First Deed of Trust [Member] | Consumer real estate | Portfolio Segment [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 1,717 1,460
First Deed of Trust [Member] | Consumer real estate | Performing Financing Receivable [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 1,171 910
First Deed of Trust [Member] | Consumer real estate | Nonperforming Financial Instruments [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 546 550
Second Deed of Trust [Member] | Consumer real estate | Portfolio Segment [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 606 617
Second Deed of Trust [Member] | Consumer real estate | Performing Financing Receivable [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 545 556
Second Deed of Trust [Member] | Consumer real estate | Nonperforming Financial Instruments [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 61 61
Commercial and industrial loans (except those secured by real estate) | Commercial and industrial loans | Portfolio Segment [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment 25 27
Commercial and industrial loans (except those secured by real estate) | Commercial and industrial loans | Nonperforming Financial Instruments [Member]    
Information concerning Troubled Debt Restructurings    
Recorded Investment $ 25 $ 27