/*
 * Created on 5.1.2005
 * (c) Jan Ptacek
 *
 * Three kinds of <li> elements get styled here
 * 		top-level - always visible
 * 		1-level   - pulled down
 * 		n-level   - pulled left - n is from {2, ... }
 *
 *
 * Additional style is attached in menu.horizontal/script.js
 *		to emulate :first-child
 *		to add background-image indicating submenu presence
 */

* {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
}


ul.hmenuALIB {								/* top-level menu */
	position: relative; 				/* to let submenus be absolute positioned */
	height: 2em;
	z-index: 20;

	display: block;
	margin: 0px;
	padding: 0px;
	border: 0px;
	list-style: none;
}

ul.hmenuALIB ul {								/* 1-level menu */
	position: absolute;					/* ie: out of flow, so do not strech height of top-level menu */
	top: 2em;
	left: -1px;							/* due to box model */
	padding: 0px;
	margin: 0px;
	list-style: none;
	display: none;
	height: 2em;
}

ul.hmenuALIB ul ul {							/* n-level menu */
	left: 150px;
	top: -1px;							/* */
	height: 2em;
}

ul.hmenuALIB li {								/* top-level menu lineup */
	position: relative;					/* to position submenus */
	float: left;
	border: 1px solid #B67529;
	border-left: 0px solid #B67529;
	background-color: #D38E3C;
}

ul.hmenuALIB ul li {							/* 1 or n-level menu lineup */
	clear: left;						/* we do not want float left here */
										/* but we want excesive space eater effect */
										/* of float: left, co just move next block */
										/* to next line with clear */
	border: 1px solid #B67529;
	border-top: 0px solid #B67529;
	background-color: D38E3C;
}


ul.hmenuALIB li a {							/* all-level menu anchors */
	display: block;						/* to fill full square */
	/*float:left;*/							/* to lineup well */
	border: 0px solid #ccc;
	padding: 0px 12px 0px 12px;
	text-decoration: none;
	color: #F9F7EC;
	font-weight: normal;
	vertical-align: bottom;
	line-height: 2em;
}

ul.hmenuALIB li a:hover {
	background-color: #B67529;
	background-image: inherit;
	background-position: inherit;
	background-repeat: inherit;
	color: #F9F7EC;
}

ul.hmenuALIB li a:visited {
	color: #F9F7EC;
}

ul.hmenuALIB ul li a {						/* 1 or n-level menu anchors */
	display: block;						/* all same width */
	width: 150px;
	/*line-height: normal;*/
	line-height: 2em;
}


