﻿/* -----------------------------------
Basic rules
----------------------------------- *//* -----------------------------------
Navigation
----------------------------------- */

#nav {
}
#nav ul
{
	padding: 0 0 0 .4em ;
	border: 0px solid red;
	margin: 0em 0 0 0;
	padding-top: 0em;
	list-style: none;
	line-height: 1.3;
	width: 100%;
	display: block;
	background: #0d558e;
}
#nav li { display: list-item; }

/*push text away from right border*/
#nav ul li {
	border: 0px solid red;
	padding-right: .2em;
}

/*used only when there are subcategories on TOC*/
#nav ul ul {
	margin-top: 0em;
	padding: 0em;
	border: 0px solid red;
	/*list-style-position: outside;
	list-style: circle;*/
	
}
#nav ul ul li
{
	margin: 0;
	padding-left: 1em;
	display: list-item;
	/*width: 100%;*/
	
	}


#nav a
{
	display: block;
	padding: .1em;
	color: #fff;
	width: 100%;
	border-bottom: 1px solid #fff;
	text-decoration: none;
}

#nav-toggle
{
	padding: .5em .5em .5em 40px;
	color: #fff;
	background-color: #960000;
	background-image: url("../../img/responsive-nav.png");
	background-repeat: no-repeat;
	background-position: 10px 50%;
	border-bottom: 1px solid #fff;
	text-decoration: none;
}

#nav a:focus,#nav-toggle:focus { background-color: black; }
#nav a:hover,#nav-toggle:hover { background-color: #960000; }
#nav a:active,#nav-toggle:active { background-color: #0d558e; }

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

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

}

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

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

@media (min-width: 38em)
{
	.js #nav { position: relative; }
	.js #nav.closed { max-height: none; }
	#nav-toggle { display: none; }
	
	#nav	{font-size: 1em;
		overflow: hidden;
		background-color: #0d558e;
		margin-right: 0px;
		}
	
	#navblock {
	position: fixed;
		left: 0; top: 9em;
		max-width: 190px;
		margin-right: 0px;
		}
	#nav ul ul li
	{
	display: inherit;
	}
	
	#nav a
	{
		float: left;
		padding: .2em .2em .3em 0em;
		font-size: .8em;
		border-bottom: 1px solid #93a4ff;
		
	}
}
