/* -----------------------------------
Navigation
----------------------------------- */

#nav ul
{
	margin: 0;
	padding: 0;
	width: 100%;
	display: block;
	list-style: none;
	line-height: 1;
}

#nav li { display: inline; }

#nav a
{
	font-weight: normal;
	display: block;
	padding: 10px;
	color: #ddd;
	background: #000;
	text-decoration: none;
}

#nav-toggle
{
	font-weight: normal;
	display: block;
	padding: .5em .5em .5em 40px;
	color: #ddd;
	background-color: #000;
	background-image: url(../img/responsive-nav.png);
	background-repeat: no-repeat;
	background-position: 10px 50%;
	text-decoration: none;
}

#nav a:focus, #nav-toggle:focus { background-color: #000; }
#nav a:hover, #nav-toggle:hover { background-color: #369; }
#nav a:active, #nav-toggle:active { background-color: #633; }

/* -----------------------------------
Predefined
----------------------------------- */

.js #nav
{
	clip: rect(0, 0, 0, 0);
	max-height: 0;
	position: absolute;
	display: block;
	overflow: hidden;
	zoom: 1;
}

#nav.opened { max-height: 9999px; }

/* -----------------------------------
Navigation wide screen
----------------------------------- */

@media (min-width: 30em)
{
	.js #nav { position: relative; }
	.js #nav.closed { max-height: none; }
	#nav-toggle { display: none; }
	
	#nav
	{
		overflow:hidden;
		zoom: 1;
		background-color: #000;
	}
	
	#nav a 
	{ 
		float: left;
		padding: .5em;
	}
}
