/*@media all and ((-ms-high-contrast: active), (-ms-high-contrast: none)) and (min-width: 951px) {
	#topNav #toolItem ul.sub1, #topNav #deptItem ul.sub1 {
		height: 175px !important;
	}
	
	#topNav #hdiItem ul.sub1 {
		height: 330px !important;
	}
		
	#topNav ul.sub1 {
		width: 1024px !important;
	  	height: 800px !important;
	}
}*/
@media screen and (min-width: 951px) {	

	#nav {
		/*float: left;*/
		/*width: 55%;*/
		/*position: relative;*/
		z-index: 650;
	}

	#topNavContainer {
		height: 50px;
	}
	

	#menuContainer {
		height: 50px;
	}
	
	#topNav {
		padding: 0;
		margin: 0;
		list-style: none;
		z-index: 650000;
		text-align: justify;
		width: 100%;
	}
	
	#topNav > li {
		/*position: relative;*/
	}
	
	#topNav > li:hover {
		color: #000;
	}
	
	/*#homeItem { width: 8%; }
	#goveItem { width: 24.5%; }
	#deptItem { width: 18.5%; }
	#resiItem { width: 22.5%; }
	#toolItem { width: 26.5%; }
	#hdiItem { width: 11.0%; }*/
	
	#homeItem { width: 7%; }
	#goveItem { width: 16.5%; }
	#deptItem { width: 13.5%; }
	#resiItem { width: 15.5%; }
	#toolItem { width: 17.5%; }
	#hdiItem { width: 10.0%; }
	
#toolItem {
	margin-right: 20px !important;
}

	#homeItem, #goveItem, #deptItem, #resiItem, #toolItem, #hdiItem
	{
		float: left;
		margin: 0;
		padding: 0;
		
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		box-sizing: border-box;	
	}
	
	#homeItem:hover, #goveItem:hover, #deptItem:hover, #resiItem:hover, #toolItem:hover, #hdiItem:hover
	{
		background: #F3E367;
		color: #000;
	}
	
	#homeItem:hover a.topLevel, #goveItem:hover a.topLevel, #deptItem:hover a.topLevel, #resiItem:hover a.topLevel, #toolItem:hover a.topLevel, #hdiItem:hover a.topLevel
	{
		color: #000 !important;
		line-height: 50px;
	}
	
	#homeItem ul, #goveItem ul, #deptItem ul, #resiItem ul, #toolItem ul, #hdiItem ul
	{
		display: block;
		text-align: left;
	}
	
	#homeItem #home {
		text-indent: -3500px;
		display: block;
		background: url('/images/header/home-icon.png') center no-repeat;
		-ms-behavior: url(/include/css/backgroundsize.min.htc);
	}
	
	/* format top level a tags */
	a.topLevel  {
		color: #fff !important;
		font-size: 1.1em;
		display: block;
		text-align: center;
		line-height: 50px;
		text-transform: uppercase;
	}

	a.topLevel:hover  {
		text-decoration: none !important;
	}
	
	#hdiItem {
		float: right;
		display: none;
	}
	
	#topNav #toolItem ul.sub1, #topNav #deptItem ul.sub1 {
		max-height: 175px;
	}
	
	#topNav #hdiItem ul.sub1 {
		max-height: 385px;
	}
		
	#topNav ul.sub1 {
		position: absolute;
		left: 0;
		right: 0;
		margin: 0 auto;
		padding: 20px 0px;
		list-style: none;
		max-width: 1024px;
		font-size: 1.1em;
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		max-height: 18em;
		/* 	  justify-content: flex-start;
			  align-content: flex-start; */
		box-sizing: border-box;
	}

	#topNav #resiItem ul.sub1 {
		max-height: 12em !important;
	}
	
	#topNav #resiItem ul.sub1 {
		max-height: 9em !important;
	}

	#topNav #toolItem ul.sub1 {
		max-height: 12em !important;
	}

	#topNav #deptItem ul.sub1 {
		max-height: 16em !important;
	}
	
	/* IE11 Fixes */
	
	.ie11 #topNav #toolItem ul.sub1  {
		height: 12em !important;
	}

	.ie10 #topNav #deptItem ul.sub1 {
		height: 16em !important;
	}
	
	.ie11 #topNav #hdiItem ul.sub1 {
		height: 22em !important;
	}
		
	.ie11 #topNav ul.sub1 {
		width: 1024px !important;
	  	height: 18em !important;
	}
	
	/* IE11 Fixes */
	
	.ie10 #topNav #toolItem ul.sub1 {
		height: 14em !important;
	}

	.ie10 #topNav #deptItem ul.sub1 {
		height: 16em !important;
	}
	
	.ie10 #topNav #hdiItem ul.sub1 {
		height: 22em !important;
	}
		
	.ie10 #topNav ul.sub1 {
		width: 1024px !important;
	  	height: 18em !important;
	  	display: -ms-flexbox;
		-ms-flex-direction: column;
		-ms-flex-wrap: wrap;
	}
	
	#topNav ul.sub2 {
		margin: 0;
		padding: 0;
		list-style: none;
		font-size: 100%;
	}
	
	/*#topNav #toolItem ul, #topNav #visiItem ul {
		left: -102px;
	}
	
	#topNav #toolItem ul ul, #topNav #visiItem ul ul {
		left: -216px;
	}*/
	
	/*#topNav #toolItem .arrow, #topNav #visiItem .arrow {
		background: url('/images/menu/top-nav-arrow-left.png') 2% center no-repeat;
	}
	
	#topNav #toolItem .arrow:hover, #topNav #visiItem .arrow:hover {
		background: url('/images/menu/top-nav-arrow-left.png') left center no-repeat;
	}*/
	
	#topNav ul.sub1 > li  {
		padding: 0 10px;
		box-sizing: border-box;
		border-right: 1px solid rgba(0,0,0,0.2);
	}
	
	#topNav ul.sub1 > li:last-child {
		border: 0;
	}
	
	#topNav ul.sub2 li {
		float: none;
		width: auto;
		position: relative;
	}
	
	#topNav .open {
		display: block;
	}
	
	#topNav .close {
		display: none;
	}
	
	#topNav ul li {
		/*float: left;
		padding: 0;*/
	}
	
	#topNav ul li a {
		color: #000;
		padding: 3px 12px;
		display: block;
		font-weight: normal;
	}
	
	#topNav ul.sub1 > li > a {
		margin: 5px 0;
	}
	
	#topNav ul.sub2 > li > a {
		position: relative;
		left: 0px;
		padding-left: 20px;
		
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -o-transition: all linear 0.2s;
    transition: all linear 0.2s;
	}
	
	#topNav ul.sub2 > li:before {
		content: "-";
		position: absolute;
		left: 10px;
		top: 2px;
		color: #000;
	}
	
/* 	#topNav ul.sub2 > li > a:hover {
		position: relative;
		left: 5px;
		
    -webkit-transition: all linear 0.2s;
    -moz-transition: all linear 0.2s;
    -o-transition: all linear 0.2s;
    transition: all linear 0.2s;
	} */
	
	/*#bodySecondary #topNav ul li a {
		color: #000;
	}*/
	
	
	ul.sub1  { background: #F3E367; }
		/*ul.sub1 li:hover  { background: rgba(255,255,255,0.5); }
	ul.sub2  { background: #F3E367; }
		ul.sub2 li:hover  { background: rgba(255,255,255,0.5); }
	ul.sub3  { background: #F3E367; }
		ul.sub3 li:hover { background: rgba(255,255,255,0.5); }	*/
	
	
	#topNav ul li:hover, #topNav ul li:hover a {
	}
	
	 #topNav ul li a:hover {
		text-decoration: underline;	
	 }
	
	#topNav ul ul {
		/*left: 216px;
		_left: 0;
		top: 0;*/
	}
	
	/*#topNav .arrow {
		background: url('/images/menu/top-nav-arrow.png') 200px center no-repeat;
	}

 	#topNav .arrow:hover {
 		background: url('/images/menu/top-nav-arrow.png') 206px center no-repeat;
		text-decoration: none;
 	} */

	
	#menuToggleContainer {
		display: none;
	}
	
	
	.accordionToggle {
		display: none;
	}

}


	@media screen and (max-width: 950px) {	
		#menuContainer {
			margin: 0;
		}
		
		#topNavContainer {
			position: absolute;
			right: 0;
			left: 0;
		}

		#hdiItem {
			display: none;
		}
		
		ul.sub2 {
			display: none !important;
		}
		
		#menuToggleContainer {
			display: block;
			position: relative;
			background: #000;
			padding: 7px 10px;
			z-index: 64000;
		}
		
		#menuToggle {
			background: transparent url('/images/menu/menu-icon.png') center center no-repeat;
			width: 84px;
			height: 28px;
			display: block;
			text-indent: -400px;
		  padding: 6px 12px;
		  border-radius: 5px;
		  box-shadow: 0px 0px 1px 1px #817e75;
		}
		
		#topNav {
			background: #000;
			display: none;
			list-style-type: none;
			position: relative;
			padding: 0;
			z-index: 64000;
			width: 100%;
			margin: 0;
		}
		
		#topNav li {
			list-style-type: none;
			margin: 0;	
			padding: 4px 10px;
			border-bottom: 1px solid #817e75;
		}
		
		#visiItem {
			border-bottom: none;
		}
		
		#topNav li a {
			font-size: 1.4em;
			color: #817e75;	
		}
		
		#topNav .arrow {
			background-image: none;
		}
		
		.accordionToggle {
			display: block;
			float: right;
			text-indent: 400px;
			overflow: hidden;
			white-space: nowrap;
			width: 25px;
			height: 25px;
			background: transparent url('/images/menu/toggle-arrows.png') 0 5px no-repeat;
		}
		
		.sub1 li:last-child {
			border: 0 !important;
		}
	}