/* TOP MENU */

nav  {
	border-top: 0;
	margin:      0 auto;
	white-space: nowrap;
	width:       100%;
	z-index:     1000;
}

nav a#logo {
	display:   inline-block;
	padding-left: 1em;
	max-width: 85%;
	width:     100%;
}

nav a#logo img {
	max-height:     2.75em;
	vertical-align: middle;
}

.siteline-home-page nav a#logo img {
	visibility: hidden;
}

nav a.hamburger {
	display:     inline-block;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 100%;
	max-width:   15%;
	padding-right: 1em;
	text-align:  right;
	width:       100%;
}

nav a.hamburger span {
	font-size:      2.75em;
	line-height:    100%;
	vertical-align: middle;
}

nav a.hamburger:last-of-type {
	display: none;
}

nav ul {
	display:      none;
	list-style:   none;
	padding-left: 0;
}

nav ul li a {
	display: block;
}

nav ul ul {
	display: none;
}

nav ul ul li:last-child{
	border: 0;
}

nav ul ul li a label {
	margin-left: 1em;
}

nav:target {
	max-height: 100%;
	overflow-y: scroll;
	overflow-x: hidden;
}

nav:target #menu-collapsed {
	/* Background gradient for expanded menus */
	background: rgba(0,0,0,0.88);
	background: -moz-linear-gradient(top, rgba(0,0,0,0.88) 0%, rgba(59,59,59,0) 100%);
	background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(0,0,0,0.88)), color-stop(100%, rgba(59,59,59,0)));
	background: -webkit-linear-gradient(top, rgba(0,0,0,0.88) 0%, rgba(59,59,59,0) 100%);
	background: -o-linear-gradient(top, rgba(0,0,0,0.88) 0%, rgba(59,59,59,0) 100%);
	background: -ms-linear-gradient(top, rgba(0,0,0,0.88) 0%, rgba(59,59,59,0) 100%);
	background: linear-gradient(to bottom, rgba(0,0,0,0.88) 0%, rgba(59,59,59,0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#3b3b3b', GradientType=0 );
	position: fixed;
	width: 100%;
	z-index: 1500;
	/* Life-saving performance hack for Chrome on Android */
	backface-visibility: hidden;
}

nav:target a#logo img, nav.active a#logo img {
	visibility: visible;
}

nav:target a.hamburger {
	display: none;
}

nav:target a.hamburger:last-of-type {
	display: inline-block;
}

nav:target ul {
	display: block;
}

nav:target ul ul {
	display: none;
}

nav:target ul ul.visible {
	display: block;
}

nav ul a span {
	display: none;
}

nav .expanded a {
	position: relative;
}

nav .expanded a span {
	display:     inline-block;
	height:      100%;
	line-height: 100%;
	position:    absolute;
	right: 1em;
	text-align:  center;
	top:         0;
	width:       3.5em;
}

nav .expanded a span div {
	transform:          rotate(90deg);
	 -ms-transform:     rotate(90deg); /* IE 9 */
	 -webkit-transform: rotate(90deg); /* Opera, Chrome, and Safari */
	 -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=-1.8369701987210297e-16, M12=-1, M21=1, M22=-1.8369701987210297e-16, SizingMethod='auto expand')"; /* IE8 */

	display:   inline-block;
	font-size: 3em;
	height:    100%;
}

nav .expanded ul a span {
	display: none;
}

@media all and (min-width: 37em) {}

@media all and (min-width: 50em) {

	#menu-collapsed + span.invisible {
		display: none;
	}

	.siteline-home-page nav:target {
		background: none !important;
	}

	nav a#logo {
		max-width: 30%;
		padding-left: 0;
	}

	nav a#logo img, .siteline-home-page nav a#logo img {
		visibility: visible;
	}

	nav a.hamburger,
	nav:target a.hamburger:last-of-type,
	nav:target ul ul {
		display: none;
	}

	nav > .wrapper >:last-child {
		display:        inline-block;
		max-width:      69%;
		text-align:     right;
		vertical-align: middle;
		width:          100%;
	}

	nav ul {
		display: inline-block;
	}

	nav ul li {
		border: none !important;
		display:  inline-block;
		position: relative;
	}

	nav ul ul {
		right:    0;
		padding:  0;
		position: absolute;
		top:      100%;
		z-index:  100;
	}

	nav ul ul li {
		display: block;
	}

	nav ul li:hover > ul {
		display: block;
	}

	nav ul ul li:hover > ul {
		right: 100%;
		top:   0%;
	}

	nav ul ul li a label {
		margin-left: 0;
	}

	nav:target ul ul.visible {
		display: none;
	}

	nav:target ul li:hover > ul.visible {
		display: block;
	}

	nav .expanded a span {
		display: none;
	}
}


/* BOTTOM MENU */

footer .region-menu-bottom {
	display: none;
}

footer .region-menu-bottom ul li a span {
	display: none;
}

footer .region-menu-bottom .content > ul {
	list-style:   none;
	padding:      0.5em;
	width:        100%;
	text-align: justify;
    -ms-text-justify: distribute-all-lines;
    text-justify: distribute-all-lines;
}

footer .region-menu-bottom .content > ul:after {
	width: 100%;
	display: inline-block;
	font-size: 0;
	line-height: 0;
	height: 0;
	content: ' '; /* This space holds the footer menu in place. Do not remove */
}
footer .region-menu-bottom .content ul ul {
	padding: 0;
}

footer .region-menu-bottom .content > ul li {
	vertical-align: top;
	display: inline-block;
	*display: inline;
	zoom: 1
}

footer .region-menu-bottom .content > ul ul li {
	display: block;
}

@media all and (min-width: 37em) {
    footer .region-menu-bottom {
        display: block;
    }
}
/* TODO Remove following rules */
/* Header Navigation -------------------------------------------------------- */

#header .nav ul {
	display:    table;
	list-style: none;
	position:   relative;
}

#header .nav ul li {
	display:  table-cell;
	position: relative;
}

#header .nav ul li a {
	display: block;
}

#header .nav ul ul {
	display:  none;
	position: absolute;
	z-index:  200;
}

#header .nav ul li:hover > ul {
	display: table;
}

#header .nav ul li:hover > ul > li {
	display: list-item;
}

#header .nav ul ul li:hover > ul {
	display:  list-item;
	left:     100%;
	position: absolute;
	top:      0%;
}


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

#content .nav ul {
	list-style:   none;
	padding-left: 0;
}

#content .nav ul li {
	position: relative;
}

#content .nav ul li a {
	display: block;
}

#content .nav ul ul {
	display: none;
	z-index: 200;
}

#content .nav ul li:hover > ul {
	display:  list-item;
	left:     100%;
	position: absolute;
	top:      0%;
}


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

#footer ul {
	display:      table;
	list-style:   none;
	padding-left: 0;
}

#footer ul li {
	display: table-cell;
}

#footer ul ul li {
	display: list-item;
}
