#nav {
	position: relative;
}
#nav ul {
	display: none;
	width: 100%;
	list-style: none;
	margin: 0px;
	padding: 0px;
}
#nav ul li a {
	display: block;
	padding: 1em;
	background: #293b47 url(img/bg_li.png) left top repeat-x;
	color: #fff;
	text-decoration: none;
}
#nav ul li a:hover {
	background: #ddc700 url(img/bg_li-hover.png) left top repeat-x;
}
#nav ul li.on a {
	background: #ddc700 url(img/bg_li-hover.png) left top repeat-x;
}
#nav ul li ul li a {
	padding: 0.5em;
	padding-left: 1.5em;
	background: #2d4b56;
}
#nav ul li.on ul li a {
	background: #2d4b56;
}
#nav ul li ul li a:hover {
	background: #ddc700;
}
#nav ul li ul li ul li a {
	padding-left: 3.125em;
}
#nav input.trigger {
	position: absolute;
	top: -9999px;
	left: -9999px;
}
#nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
	display: block !important;
}
#nav label {
	position: relative;
	display: block;
	min-height: 2em;
	padding: .45em;
	font-size: 1.1em;
	margin: 0;
	cursor: pointer;
	background: #5b8b9d;
	line-height: 2em;
	color: #fff;
}
#nav label:after {
	position: absolute;
	right: 1em;
	top: .2em;
	content: "\2261";
	font-size: 1.8em;
	color: #fff;
}
@media (min-width: 1100px) {
	#nav input.trigger:checked ~ ul, #nav input.trigger:checked ~ ul li ul {
		/* older flexbox */
		display: -webkit-box;
		display: -moz-box;
		display: box;
		-webkit-box-orient: horizontal;
		-moz-box-orient: horizontal;
		box-orient: horizontal;
		/* newer flexbox */
		display: flex;
		flex-direction: row;
	}
	#nav ul {
		/* older flexbox */
		display: -ms-flexbox;
		flex-direction: -ms-row;
		display: -webkit-box;
		display: -moz-box;
		display: box;
		-webkit-box-orient: horizontal;
		-moz-box-orient: horizontal;
		box-orient: horizontal;
		/* newer flexbox */
		display: flex;
		flex-direction: row;
	}
	#nav ul li {
		position: relative;
		text-align: center;
		/* older flexbox */
		-ms-flex: 1;
		-webkit-box-flex: 1;
		-moz-box-flex: 1;
		box-flex: 1;
		/* newer flexbox */
		flex: 1;
	}
	#nav ul li ul {
		display: none !important;
		position: absolute;
		/*top: 3.0625em;*/
		left: 0;
		display: block;
		/*width: 12.5em;*/
		width: 17.5em;
		z-index: 200;
	}
	#nav ul li ul li {
		text-align: left;
	}
	#nav ul li ul li ul {
		z-index: 300;
		top: 0px;
		left: 12.4em;
	}
	#nav ul li ul li ul li a {
		padding-left: 30px !important;
	}
	#nav ul li:hover > ul {
		display: block !important;
	}
	#nav label {
		display: none;
	}
}
@media (max-width: 1100px) {
	#nav ul li a {
		background: #2d4b56;
	}
	#nav ul li a:hover {
		background: #ddc700;
	}
	#nav ul li ul li a {
		padding: 0.5em;
		padding-left: 1.5em;
	}
}