
#menu, 
#toggle-menu {
	background: #666666;
	/* gradient */
	/*background: -webkit-gradient(linear, left top, left bottom, from(#b9b9b9), to(#6a6a6a));
	background: -moz-linear-gradient(top,  #b9b9b9,  #6a6a6a);
	background: linear-gradient(-90deg, #b9b9b9, #6a6a6a);*/
	/* rounded corner */
	-webkit-border-radius: 1px;
	-moz-border-radius: 1px;
	border-radius: 1px;
	/* box shadow */
	-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.4);
	-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.4);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.4);
}

#menu {
	background: #666666;
}	

#menu ul {
	margin: 0;
	padding: 0;
}

#menu .main-menu {
	display: none;
}

#tm:checked + .main-menu {
	display: block;
}

#menu input[type="checkbox"], 
#menu ul span.drop-icon {
	display: none;
}

#menu li, 
#toggle-menu, 
#menu .sub-menu {
	border-style: solid;
	border-color: rgba(0, 0, 0, .20);
}

#menu li, 
#toggle-menu {
	border-width: 0 0 1px;
}

label#toggle-menu { padding-left: 1em; }

#menu .sub-menu {
	/*background-color: #444;*/
	border-width: 1px 1px 0;
	margin: 0 1em;
}

#menu .sub-menu li {
	width: 100%;
	background-color: #444;
}

#menu .sub-menu li:hover {
	background-color: #fcc;
}

#menu .sub-menu li:last-child {
	border-width: 0;
}

#menu li, 
#toggle-menu, 
#menu a {
	position: relative;
	display: block;
	color: #fff;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, .125);
	line-height: 2.5em;
	font-size: 15px;
	letter-spacing: .1em;
}

#menu li { 
	width: 16.6%; /* for browsers that don't understand "calc" (was issue on ipad) */
	width: -webkit-calc(16.667% - 1px);
	width: -moz-calc(16.667% - 1px);
	width: calc(16.667% - 1px); 
	text-align: center; 
}

#menu li:last-child { border: 0; }


#toggle-menu, 
#menu a {
	/*padding: .6em 1.75em;*/
	/*padding: .25em auto;*/
	white-space: nowrap;
}

#menu a {
	transition: all .125s ease-in-out;
	-webkit-transition: all .125s ease-in-out;
}

#menu a:hover {
	background-color: #ccc;
	color: #111;
	text-decoration: none;
}

#menu li:first-child a:hover {
	/* rounded corner */
	-webkit-border-radius: 1px 0px 0px 1px;
	-moz-border-radius: 1px 0px 0px 1px;
	border-radius: 1px 0px 0px 1px;
}

#menu li:last-child a:hover {
	/* rounded corner */
	-webkit-border-radius: 0px 1px 1px 0px;
	-moz-border-radius: 0px 1px 1px 0px;
	border-radius: 0px 1px 1px 0px;
}

#menu .sub-menu {
	display: none;
}

#menu input[type="checkbox"]:checked + .sub-menu {
	display: block;
}

#menu .sub-menu a {
	padding: 0 .5em;
}

#menu .sub-menu a:hover {
	padding: 0 .5em;
}

#toggle-menu .drop-icon, 
#menu li label.drop-icon {
	position: absolute;
	right: .65em;
	top: .5em;
	font-size: 1.75em;
	font-weight: 700;
}

#menu label.drop-icon, #toggle-menu span.drop-icon {
	border-radius: 50%;
	width: 1em;
	height: 1em;
	text-align: center;
	background-color: rgba(0, 0, 0, .125);
	text-shadow: 0 0 0 transparent;
	color: rgba(255, 255, 255, .95);
}

#menu .drop-icon {
	line-height: 1;
	font-weight: 700;
}

ul#footer-menu li {
	position: relative;
	display: block;
	color: #333;
	font-size: 12px;
	letter-spacing: .1em;
	width: calc(16.667% - 1px); 
	text-align: center;
	font-weight: 500;
}

ul#footer-menu li.nav-pipe { font-weight: 700; } 

ul#footer-menu li a {
	color: #222;
}


@media only screen and (max-width: 899px) and (min-width: 600px) {

	#menu li, 
	#toggle-menu, 
	#menu a {
		line-height: 3.25em;
	}

	#menu li {
		width: 33%;
		padding: 0; margin: 0; text-align: center;
	}

	#menu li:nth-child(2), #menu li:nth-child(5) {
		width: calc(34% - 2px);
		padding: 0; margin: 0; text-align: center;
	}

	#menu li:first-child, #menu li:first-child a:hover {
		border-width: 0 1px 1px 0;
		-webkit-border-radius: 1px 0px 0px 0px;
		-moz-border-radius: 1px 0px 0px 0px;
		border-radius: 1px 0px 0px 0px;
	}

	#menu li:nth-child(2), #menu li:nth-child(2) a:hover {
		border-width: 0 1px 1px 0;
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
	}

	#menu li:nth-child(3), #menu li:nth-child(3) a:hover {
		border-width: 0 0 1px 0;
		-webkit-border-radius: 0px 1px 0px 0px;
		-moz-border-radius: 0px 1px 0px 0px;
		border-radius: 0px 1px 0px 0px;
	}

	#menu li:nth-child(4), #menu li:nth-child(4) a:hover {
		-webkit-border-radius: 0px 0px 0px 1px;
		-moz-border-radius: 0px 0px 0px 1px;
		border-radius: 0px 0px 0px 1px;
	}

	#menu li:nth-child(5), #menu li:nth-child(5) a:hover {
		-webkit-border-radius: 0px;
		-moz-border-radius: 0px;
		border-radius: 0px;
	}

	#menu li:last-child, #menu li:last-child a:hover {
		border-width: 0 1px 1px 0;
		-webkit-border-radius: 0px 0px 1px 0px;
		-moz-border-radius: 0px 0px 1px 0px;
		border-radius: 0px 0px 1px 0px;
	}

	#menu .sub-menu li {
		width: auto;
	}
}

@media only screen and (min-width: 600px) {
	#menu .main-menu {
		display: block;
	}

	#toggle-menu, 
	#menu label.drop-icon {
		display: none;
	}

	#menu ul span.drop-icon {
		display: inline-block;
	}

	#menu li {
		float: left;
		border-width: 0 1px 0 0;
	}

	#menu .sub-menu li {
		float: none;
	}

	#menu .sub-menu {
		border-width: 0;
		margin: 0;
		position: absolute;
		top: 100%;
		left: 0;
		/*width: 12em;*/
		z-index: 3000;
	}

	#menu .sub-menu, 
	#menu input[type="checkbox"]:checked + .sub-menu {
		display: none;
	}

	#menu .sub-menu li {
		border-width: 0 0 1px;
	}

	#menu .sub-menu .sub-menu {
		top: 0;
		left: 100%;
	}

	#menu li:hover > input[type="checkbox"] + .sub-menu {
		display: block;
	}

	ul.footer-menu {
		display: inline-block;
	}

	.footer-menu li {
		float: left;
		white-space: nowrap;
		list-style-type: none;
		padding: 0 .25em;
		color: #222;
	}

	.footer-menu a {
		color: #222;
		font-weight: NORMAL;
		white-space: nowrap;
		text-decoration: none;
		/*text-shadow:
			-1px -1px 0 #B2966E,
			1px -1px 0 #B2966E,
			-1px 1px 0 #B2966E,
			1px 1px 0 #B2966E;*/
	}

	.footer-menu a:hover {
		color: #111;
		text-decoration: underline;
	}

	li.top-link {display: none}
}

@media only screen and (max-width: 599px) {

	#menu li, 
	#toggle-menu, 
	#menu a {
		line-height: 3.25em;
	}

	#menu li { 
		width: 100%; 
		text-align: center;
	}

	#menu li:last-child { border: 0; }


	#toggle-menu, 
	#menu a {
		/*padding: .6em 1.75em;*/
		/*padding: .25em auto;*/
		white-space: nowrap;
	}

	#menu a {
		transition: all .125s ease-in-out;
		-webkit-transition: all .125s ease-in-out;
	}

	#menu a:hover {
		background-color: #ccc; /*#b1b0ab;*/
		color: #111;
		text-decoration: none;
	}

	#menu li:first-child a:hover {
		/* rounded corner */
		-webkit-border-radius: 0;
		-moz-border-radius: 0;
		border-radius: 0;
	}

	#menu li:last-child a:hover {
		/* rounded corner */
		-webkit-border-radius: 0px 0px 1px 1px;
		-moz-border-radius:  0px 0px 1px 1px;
		border-radius:  0px 0px 1px 1px;
	}

	.footer-menu li {
		width: 100%;
		border-top: 1px dotted #ccc;
		color: #333;
		display: block;
		line-height: 2em;
	}

	.footer-menu a {
		color: #333;
		width: 100%;
		white-space: nowrap;
		text-decoration: none;
		display: block;
	}

	.footer-menu a:hover {
		color: #fff;
		text-decoration: none;
		background-color: #999;
		-webkit-border-radius: 1px;
		-moz-border-radius: 1px;
		border-radius: 1px;
	}

	li.nav-pipe {display: none} 

	li.top-link {
		display: inherit; 
		font-weight: 700;
	}

	#footer-nav-alt { display: block; }

	#footer-nav-alt .toggle-arrow { 
		display: initial; 
		float: right; 
	}

	ul.footer-menu li { 
		text-align: center; 
		font-weight: normal; 
		font-size: 1.1em; 
	}

	footer#footer ul { display: none; }

}