/*
 *	Contains the styles used by the site-wide navigation bar, and defaults for section specific navbars.
 * 
 *  If a given section navbar needs to override a default stated here, it should be done in a file named
 *  'frmwrk/section_navbar.css' in that section subdirectory.  Typically, the only thing that a section 
 *  navbar will override is the 'div.section_navbar' grid-template-columns value.
 */


/**
 *	The container for each nav bar.  Each nav bar, both the site and the subsection nav bars, are contained within one of these.
 */
div.navbar_blk {
	margin: 0px 10px 10px 10px;
	min-height: 55px;
}
/*	A nested navbar_blk is presumed to be a subsection navbar.  */
div.navbar_blk > div.navbar_blk {
	margin-left: 20px;
	padding: 0px 10px;
}



/**
 *   The nav bars.
 */
div.navbar_blk > div.navbar {
	display: grid;
	grid-template-columns: 0px auto 0px;
	background-color: #f8eeee;
	text-align: center;
	margin: 0px;
	width: fit-content;
	box-shadow: 8px 8px 3px #aabbaa;
}
div.navbar_blk  div.navbar > div.left {
	float: none;
	margin: 0px;
	padding: 0px;
}
div.navbar_blk  div.navbar > div.center {
	display: grid;
	float: none;
}
div.navbar_blk  div.navbar > div.right {
	float: none;
	margin: 0px;
	padding: 0px;
}
/*	Styles specific to the site-wide navbar.  */
div.navbar_blk > div.navbar.site {
	grid-template-rows: 32px;
	width: 830px;
	height: 44px;
	padding: 6px 5px;
}
div.navbar_blk > div.navbar.site > div.left {
}
div.navbar_blk > div.navbar.site > div.center {
	grid-template-columns: repeat(8, auto);
	column-gap: 2px;
}
div.navbar_blk > div.navbar.site > div.right {
}
/*  Styles specific to the subsection navbars.  */
div.navbar_blk > div.navbar_blk > div.navbar.subsection {
	width: fit-content;
	border-top: 1px gray dotted;
	font-size: 8pt;
	padding: 5px;
	height: 40px;
}
div.navbar_blk > div.navbar_blk > div.navbar.subsection > div.center {
	column-gap: 1px;
}



/**
 *  The container for each nav item.
 */
div.navbar_blk > div.navbar > div.center > div.navitem_blk {
/*	position: relative;*/
	display: table;
	width: 100%;
	text-align: center;
}
/* Used to highlight the particular navbar item. */
div.navbar_blk > div.navbar > div.center > div.navitem_blk.highlight {
	text-shadow: 0px 0px 4px cyan;
}
div.navbar_blk > div.navbar > div.center > div.navitem_blk.context {
	text-shadow: 1px 1px 3px cyan;
	background-color: rgba(0,0,0,0.1);
}


/**
 *  The nav item links.
 */
div.navbar_blk > div.navbar > div.center > div.navitem_blk > a {
	display: table-cell;
	vertical-align: middle;
/*	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);*/
	width: 100%;
/*	margin: 0px auto;*/
/*	border-style: none solid;
	border-color: #cccccc;
	border-width: 1px;*/
}
div.navbar_blk > div.navbar_blk > div.navbar.subsection > div.center > div.navitem_blk > a {
/*	width: 140px;*/
	border: none;
}


/**
 *  The nav items.
 */
/*  Default styles for all nav items.  */
/*	Sometimes, the section navbars have a title on the left edge of the navbar.  This is not contained within an <a> element.  */
div.navbar_blk > div.navbar > div.center > div.navitem_blk > div.navitem.navbar_title {
	display: table-cell;
	vertical-align: middle;
	font-weight: bold;
	font-style: italic;
	text-align: left;
	padding: 0px 20px 0px 0px;
}
div.navbar_blk > div.navbar > div.center > div.navitem_blk > a > div.navitem {
	text-align: center;
	padding: 0px 10px;
	width: 100%;
	border-style: none solid;
	border-color: #cccccc;
	border-width: 1px;
}


div.navbar_blk > div.navbar > div.center > div.navitem_blk > a > div.navitem.disabled {
	color: gray;
	cursor: default;
}

div.navbar_blk > div.navbar > div.center > div.navitem_blk > a > div.navitem:hover {
	text-decoration: underline;
}
div.navbar_blk > div.navbar > div.center > div.navitem_blk > a > div.navitem.disabled:hover {
	text-decoration: none;
}



