<?xml version="1.0"?>
<informationTable xsi:schemaLocation="http://www.sec.gov/edgar/document/thirteenf/informationtable eis_13FDocument.xsd"
	xmlns="http://www.sec.gov/edgar/document/thirteenf/informationtable"
	xmlns:n1="http://www.sec.gov/edgar/document/thirteenf/informationtable"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<infoTable>
		<nameOfIssuer>AMERICAN PUB ED INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>02913V103</cusip>
		<value>5025831</value>
		<shrsOrPrnAmt>
			<sshPrnamt>119152</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>119152</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>ATEGRITY SPECIALTY IN CO HO</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>04681Y103</cusip>
		<value>10253803</value>
		<shrsOrPrnAmt>
			<sshPrnamt>401323</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>401323</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>BACKBLAZE INC</nameOfIssuer>
		<titleOfClass>COM CL A</titleOfClass>
		<cusip>05637B105</cusip>
		<value>156884</value>
		<shrsOrPrnAmt>
			<sshPrnamt>11214</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>11214</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>BUILD-A-BEAR WORKSHOP INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>120076104</cusip>
		<value>4352428</value>
		<shrsOrPrnAmt>
			<sshPrnamt>173611</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>173611</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>COMPASS INC</nameOfIssuer>
		<titleOfClass>CL A</titleOfClass>
		<cusip>20464U100</cusip>
		<value>98106</value>
		<shrsOrPrnAmt>
			<sshPrnamt>11048</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>11048</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>CRONOS GROUP INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>22717L101</cusip>
		<value>174441</value>
		<shrsOrPrnAmt>
			<sshPrnamt>52861</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>52861</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>DONEGAL GROUP INC</nameOfIssuer>
		<titleOfClass>CL A</titleOfClass>
		<cusip>257701201</cusip>
		<value>1694693</value>
		<shrsOrPrnAmt>
			<sshPrnamt>95261</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>95261</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>ETON PHARMACEUTICALS INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>29772L108</cusip>
		<value>3635554</value>
		<shrsOrPrnAmt>
			<sshPrnamt>70607</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>70607</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>GLOBAL INDEMNITY GROUP LLC</nameOfIssuer>
		<titleOfClass>COM CL A</titleOfClass>
		<cusip>37959R103</cusip>
		<value>6317938</value>
		<shrsOrPrnAmt>
			<sshPrnamt>257875</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>257875</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>GOLD COM INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>00181T107</cusip>
		<value>6509038</value>
		<shrsOrPrnAmt>
			<sshPrnamt>152902</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>152902</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>ISHARES TR</nameOfIssuer>
		<titleOfClass>RUSSELL 2000 ETF</titleOfClass>
		<cusip>464287655</cusip>
		<value>1000404</value>
		<shrsOrPrnAmt>
			<sshPrnamt>36</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<putCall>Put</putCall>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>36</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>LEE ENTERPRISES INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>523768406</cusip>
		<value>135525</value>
		<shrsOrPrnAmt>
			<sshPrnamt>19500</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>19500</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>LIMBACH HLDGS INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>53263P105</cusip>
		<value>2517742</value>
		<shrsOrPrnAmt>
			<sshPrnamt>51456</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>51456</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>MIMEDX GROUP INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>602496101</cusip>
		<value>8778480</value>
		<shrsOrPrnAmt>
			<sshPrnamt>1883794</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>1883794</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>MOUNT LOGAN CAP INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>62188E103</cusip>
		<value>72691</value>
		<shrsOrPrnAmt>
			<sshPrnamt>21317</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>21317</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>NATURAL GAS SVCS GROUP INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>63886Q109</cusip>
		<value>4308353</value>
		<shrsOrPrnAmt>
			<sshPrnamt>133056</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>133056</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>NATURAL RESOURCE PARTNERS LP</nameOfIssuer>
		<titleOfClass>COM UNIT LTD PAR</titleOfClass>
		<cusip>63900P608</cusip>
		<value>843527</value>
		<shrsOrPrnAmt>
			<sshPrnamt>7758</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>7758</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>NAVIENT CORPORATION</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>63938C108</cusip>
		<value>3662992</value>
		<shrsOrPrnAmt>
			<sshPrnamt>403858</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>403858</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>NETWORK-1 TECHNOLOGIES INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>64121N109</cusip>
		<value>2209018</value>
		<shrsOrPrnAmt>
			<sshPrnamt>1380636</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>1380636</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>NORTH AMERN CONSTR GROUP LTD</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>656811106</cusip>
		<value>7296243</value>
		<shrsOrPrnAmt>
			<sshPrnamt>606504</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>606504</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>ORASURE TECHNOLOGIES INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>68554V108</cusip>
		<value>2226838</value>
		<shrsOrPrnAmt>
			<sshPrnamt>568071</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>568071</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>OUTDOOR HOLDING CO</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>00175J107</cusip>
		<value>1001806</value>
		<shrsOrPrnAmt>
			<sshPrnamt>445247</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>445247</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>OWLET INC</nameOfIssuer>
		<titleOfClass>CL A NEW</titleOfClass>
		<cusip>69120X206</cusip>
		<value>5546570</value>
		<shrsOrPrnAmt>
			<sshPrnamt>1054481</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>1054481</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>PURE CYCLE CORP</nameOfIssuer>
		<titleOfClass>COM NEW</titleOfClass>
		<cusip>746228303</cusip>
		<value>5175795</value>
		<shrsOrPrnAmt>
			<sshPrnamt>468822</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>468822</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>ROOT INC</nameOfIssuer>
		<titleOfClass>CL A NEW</titleOfClass>
		<cusip>77664L207</cusip>
		<value>2022108</value>
		<shrsOrPrnAmt>
			<sshPrnamt>43854</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>43854</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>SAN JUAN BASIN RTY TR</nameOfIssuer>
		<titleOfClass>UNIT BEN INT</titleOfClass>
		<cusip>798241105</cusip>
		<value>4327294</value>
		<shrsOrPrnAmt>
			<sshPrnamt>1185560</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>1185560</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>SHIMMICK CORPORATION</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>82455M109</cusip>
		<value>3384954</value>
		<shrsOrPrnAmt>
			<sshPrnamt>1139715</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>1139715</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>SNDL INC</nameOfIssuer>
		<titleOfClass>COM</titleOfClass>
		<cusip>83307B101</cusip>
		<value>11144801</value>
		<shrsOrPrnAmt>
			<sshPrnamt>8639381</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>8639381</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>VERRICA PHARMACEUTICALS INC</nameOfIssuer>
		<titleOfClass>COM SHS</titleOfClass>
		<cusip>92511W207</cusip>
		<value>3325582</value>
		<shrsOrPrnAmt>
			<sshPrnamt>693552</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>693552</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
	<infoTable>
		<nameOfIssuer>VITESSE ENERGY INC</nameOfIssuer>
		<titleOfClass>COMMON STOCK</titleOfClass>
		<cusip>92852X103</cusip>
		<value>5967378</value>
		<shrsOrPrnAmt>
			<sshPrnamt>357328</sshPrnamt>
			<sshPrnamtType>SH</sshPrnamtType>
		</shrsOrPrnAmt>
		<investmentDiscretion>SOLE</investmentDiscretion>
		<votingAuthority>
			<Sole>357328</Sole>
			<Shared>0</Shared>
			<None>0</None>
		</votingAuthority>
	</infoTable>
</informationTable>
