Loans and allowance for loan losses - Classified by type (Details) - USD ($)
$ in Thousands
Jun. 30, 2021
Mar. 31, 2021
Dec. 31, 2020
Jun. 30, 2020
Mar. 31, 2020
Dec. 31, 2019
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 551,664   $ 561,003      
Deferred fees and costs, net (2,578)   (2,048)      
Less: allowance for loan losses (3,429) $ (3,992) (3,970) $ (3,759) $ (3,444) $ (3,186)
Total loans, net $ 545,657   $ 554,985      
Percentage of class of loans to loan portfolio (in percent) 100.00%   100.00%      
Construction and land development            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 44,073   $ 29,569      
Less: allowance for loan losses $ (269) (268) $ (499) (508) (489) (185)
Percentage of class of loans to loan portfolio (in percent) 7.98%   5.26%      
Commercial real estate            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 240,587   $ 231,224      
Less: allowance for loan losses $ (1,898) (2,224) $ (2,517) (2,153) (1,986) (1,589)
Percentage of class of loans to loan portfolio (in percent) 43.62%   41.21%      
Consumer real estate            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 86,533   $ 86,580      
Less: allowance for loan losses $ (196) (228) $ (269) (281) (273) (678)
Percentage of class of loans to loan portfolio (in percent) 15.69%   15.44%      
Residential [Member] | Construction and land development            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 7,802   $ 8,103      
Less: allowance for loan losses $ (66) (100) $ (214) (213) (219) (48)
Percentage of class of loans to loan portfolio (in percent) 1.41%   1.44%      
Commercial [Member] | Construction and land development            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 36,271   $ 21,466      
Less: allowance for loan losses $ (203) (168) $ (285) (295) (270) (137)
Percentage of class of loans to loan portfolio (in percent) 6.57%   3.82%      
Owner occupied | Commercial real estate            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 100,405   $ 99,784      
Less: allowance for loan losses $ (802) (899) $ (1,047) (904) (859) (671)
Percentage of class of loans to loan portfolio (in percent) 18.20%   17.79%      
Non-Owner Occupied [Member] | Commercial real estate            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 127,363   $ 121,184      
Less: allowance for loan losses $ (1,059) (1,286) $ (1,421) (1,202) (1,058) (831)
Percentage of class of loans to loan portfolio (in percent) 23.09%   21.60%      
Multifamily [Member] | Commercial real estate            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 11,743   $ 9,889      
Less: allowance for loan losses $ (35) (38) $ (47) (47) (68) (85)
Percentage of class of loans to loan portfolio (in percent) 2.13%   1.75%      
Farmland [Member] | Commercial real estate            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 1,076   $ 367      
Less: allowance for loan losses $ (2) (1) $ (2)   (1) (2)
Percentage of class of loans to loan portfolio (in percent) 0.20%   0.07%      
Home equity lines [Member] | Consumer real estate            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 17,199   $ 18,394      
Less: allowance for loan losses $ (11) (15) $ (24) (40) (40) (271)
Percentage of class of loans to loan portfolio (in percent) 3.12%   3.28%      
First deed of trust | Consumer real estate            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 56,728   $ 57,089      
Less: allowance for loan losses $ (113) (146) $ (166) (166) (157) (343)
Percentage of class of loans to loan portfolio (in percent) 10.28%   10.18%      
Second Deed of Trust [Member] | Consumer real estate            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 12,606   $ 11,097      
Less: allowance for loan losses $ (72) (67) $ (79) (75) (76) (64)
Percentage of class of loans to loan portfolio (in percent) 2.29%   1.98%      
Commercial and industrial loans (except those secured by real estate) | Commercial and industrial loans            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 148,656   $ 181,088      
Less: allowance for loan losses $ (422) (410) $ (408) (317) (409) (572)
Percentage of class of loans to loan portfolio (in percent) 26.95%   32.28%      
Guaranteed Student loans [Member] | Commercial and industrial loans            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 28,601   $ 29,657      
Less: allowance for loan losses $ (80) (76) $ (87) (101) (104) (108)
Percentage of class of loans to loan portfolio (in percent) 5.18%   5.29%      
Consumer And Other [Member]            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans $ 3,214   $ 2,885      
Less: allowance for loan losses (564)   (190)      
Consumer And Other [Member] | Commercial and industrial loans            
Accounts, Notes, Loans and Financing Receivable [Line Items]            
Total loans 3,214   2,885      
Less: allowance for loan losses $ (36) $ (38) $ (36) $ (40) $ (41) $ (30)
Percentage of class of loans to loan portfolio (in percent) 0.58%   0.52%