/* Copyright 2007-2011 Perette Barella.  All rights reserved. */
/* @(#) $Id: m4navigation.css 169 2022-10-18 19:31:49Z perette $ */


/* ========== Vertical navigation menu ========== */
DIV#navigationbaractivator {
	display: none;
}
UL#navigation {
	list-style-type: none;
	font-family: sans-serif;
	font-size: 90%;
	text-align: left;
	background: #BBB;
	padding: 1ex 0ex;
	border-radius: 1ex;
}

UL#navigation > LI.group {
	background: #AAA;
	margin: 0;
	padding: 1ex 0ex;
	border-radius: 1ex;
	font-weight: bold;
	text-align: center;
}

UL#navigation > LI.group + LI.group {
	margin: 1ex 0 0 0;
}

UL#navigation > LI.text {
	font-style: italic;
	text-align: center;
}

/* Support for putting a logo in the navigation area */
UL.navigation > LI.logo {
	position: relative;
	text-align: center;
}

UL.navigation > LI.logo IMG.maximize {
	width: 90%;
	height: auto;
}

	

/* ========== Horizontal navigation bar ========== */
UL#navigationbar,
UL#navigationbar * {
	box-sizing: border-box;
}
UL#navigationbar {
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	position: relative;
	clear: both;

	width: 100%;
	background: #DDD;
	align-items: center;

	font-family: sans-serif;
	font-size: 90%;
	text-align: left;

	margin: 0 0 1ex 0;
	padding: 0;
	border: 1px solid #AAA;
}

UL#navigationbar > LI {
	flex-grow: 1;
	display: block;
	position: relative;

	text-align: center;
	white-space: nowrap;

	height: 2.1em;
	margin: -1px 0 -1px -1px;
	border: inherit;
}
UL#navigationbar > LI.handheldonly {
	display: none;
}

UL#navigationbar > LI > A,
UL#navigationbar > LI > SPAN {
	display: inline-grid;
	align-items: center;

	text-decoration: none;

	height: 100%;
	width: 100%;
	padding: 0 0.5ex;
}
UL#navigationbar > LI.navigationbargrouptitle > A,
UL#navigationbar > LI.navigationbargrouptitle > SPAN {
	padding: 0 0.5ex 1px 0.5ex;
}

UL#navigationbar > LI > UL {
	display: none;
	position: absolute;
	z-index: 4;
	left: -1px;

	list-style: none;
	white-space: normal;

	background: white;
	color: black;

	margin: 1px 0 0 0;
	padding: 0 0 1ex;
	border-top: 0;
	border-left: thin solid #AAA;
	border-right: thin solid #AAA;
	border-bottom: thin solid #AAA;
        border-bottom-left-radius: 1ex;
        border-bottom-right-radius: 1ex;
}


UL#navigationbar > LI:hover > UL {
	display: block;
}

/* Color/Highlights for interactivity */
UL.navigation > LI > A.selected {
	background: #4169E1;
	color: white;
}

UL.navigation > LI > A:hover,
UL#navigationbar LI.navigationbargrouptitle:hover {
	background: #0BF;
	color: #fff;
}

UL#navigationbar > LI#m4navsearchitem {
	border: 0;
}
UL#navigationbar #m4navsearchquery {
        margin: 0.7ex 1em 0 1em;
}

/* ========== Classes shared by navigation menu and bar ========== */
UL.navigation {
	font-weight: normal;

	margin: 0 0 0.5ex 0;
	padding: 0;
}

UL.navigation > LI {
	list-style: none;
	text-align: left;

	margin: 0;
}
UL.navigation.spaced > LI {
	margin-top: 1ex;
	margin-bottom: 1.5ex;
}
UL.navigation > LI > A,
UL.navigation > LI > SPAN,
UL.navigation > LI.text {
	display: block;

	padding: 0.7ex 1em;
}


