Loans and allowance for loan losses - Allowance for loan losses (Details) - USD ($)
$ in Thousands
3 Months Ended 9 Months Ended 12 Months Ended
Sep. 30, 2020
Sep. 30, 2019
Sep. 30, 2020
Sep. 30, 2019
Dec. 31, 2019
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance     $ 3,186 $ 3,051 $ 3,051
Provision for (Recovery of) Loan Losses $ 250   950 0 135
Charge-offs (23) $ (30) (188) (105) (218)
Recoveries 64 84 102 155 218
Ending Balance 4,050 3,101 4,050 3,101 3,186
Commercial and industrial loans (except those secured by real estate)          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance   385 572    
Provision for (Recovery of) Loan Losses   (19)      
Recoveries   6      
Ending Balance 348 372 348 372 572
Guaranteed student loans [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance     108    
Ending Balance 97   97   108
Consumer And Other [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance     54    
Ending Balance 311   311   54
Construction and land development          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 508 190 185 262 262
Provision for (Recovery of) Loan Losses   18 320 (63) (86)
Recoveries 14   17 9 9
Ending Balance 522 208 522 208 185
Construction and land development | Residential [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 213 31 48 42 42
Provision for (Recovery of) Loan Losses (23) 16 139 (2) (1)
Recoveries 14   17 7 7
Ending Balance 204 47 204 47 48
Construction and land development | Commercial [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 295 159 137 220 220
Provision for (Recovery of) Loan Losses 23 2 181 (61) (85)
Recoveries       2 2
Ending Balance 318 161 318 161 137
Commercial real estate          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 2,153 1,493 1,589 1,435 1,435
Provision for (Recovery of) Loan Losses 292 36 856 94 154
Ending Balance 2,445 1,529 2,445 1,529 1,589
Commercial real estate | Owner Occupied [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 904 659 671 673 673
Provision for (Recovery of) Loan Losses 118 4 351 (10) (2)
Ending Balance 1,022 663 1,022 663 671
Commercial real estate | Non-Owner Occupied [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 1,202 747 831 673 673
Provision for (Recovery of) Loan Losses 171 27 542 101 158
Ending Balance 1,373 774 1,373 774 831
Commercial real estate | Multifamily [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 47 85 85 87 87
Provision for (Recovery of) Loan Losses 1 5 (37) 3 (2)
Ending Balance 48 90 48 90 85
Commercial real estate | Farmland [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance   2 2 2 2
Provision for (Recovery of) Loan Losses 2        
Ending Balance 2 2 2 2 2
Consumer real estate          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 281   678 680 680
Provision for (Recovery of) Loan Losses 1 (61) (407) (108) (62)
Charge-offs         (35)
Recoveries 45 58 56 85 95
Ending Balance 327 657 327 657 678
Consumer real estate | Home equity lines [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 40 233 271 244 244
Provision for (Recovery of) Loan Losses (30) (13) (261) (36) 50
Charge-offs         (35)
Recoveries       12 12
Ending Balance 10 220 10 220 271
Consumer real estate | First Deed of Trust [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 166 367 343 385 385
Provision for (Recovery of) Loan Losses (7) (1) (188) (24) (56)
Recoveries 1 3 5 8 14
Ending Balance 160 369 160 369 343
Consumer real estate | Second Deed of Trust [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 75 60 64 51 51
Provision for (Recovery of) Loan Losses 38 (47) 42 (48) (56)
Recoveries 44 55 51 65 69
Ending Balance 157 68 157 68 64
Commercial and industrial loans | Commercial and industrial loans (except those secured by real estate)          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 317   572 308 308
Provision for (Recovery of) Loan Losses 27   (114) 41 239
Charge-offs     (135) (15) (64)
Recoveries 4   25 38 89
Ending Balance 348 372 348 372 572
Commercial and industrial loans | Guaranteed student loans [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 101 109 108 121 121
Provision for (Recovery of) Loan Losses 6 21 25 63 80
Charge-offs (10) (23) (36) (77) (93)
Ending Balance 97 107 97 107 108
Commercial and industrial loans | Consumer And Other [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 40 34 30 34 34
Provision for (Recovery of) Loan Losses 10 (9) 21 (6) (3)
Charge-offs (13) (7) (17) (13) (26)
Recoveries 1 20 4 23 25
Ending Balance 38 38 38 38 30
Commercial and industrial loans | Unallocated [Member]          
Financing Receivable, Allowance for Credit Losses [Line Items]          
Beginning Balance 359 176 24 211 211
Provision for (Recovery of) Loan Losses (86) 14 249 (21) (187)
Ending Balance $ 273 $ 190 $ 273 $ 190 $ 24