/* esrl.css contains the overall template structure with banner, navigation, header and footer elements, and body defaults */

/* http://meyerweb.com/eric/tools/css/reset/
*  http://meyerweb.com/eric/thoughts/2011/01/03/reset-revisited/
*  v2.0b1 | 201101 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
caption,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* define visible focus styles
 * :focus {
 * 	outline: red dashed thin;
 * 	} */

/* highlight inserts */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
	border: none;
	margin: 0 .5em 0 0;
}

code {
	font-family: monospace;
}

em {
	font-style: italic;
}

strong {
	font-weight: bold;
}

sub, sup {
	line-height: 100%;
	font-size: .7em;
}
sub {
	vertical-align: bottom;
}
sup {
	vertical-align: top;
}

/* ESRL template layout */
body {
	line-height: 1.4;
	font-family: Calibri, Arial, sans-serif;
	color: black;
	background-color: #eee;
}

a {
	text-decoration: none;
	color: #069;
}

a:hover {
	text-decoration: underline;
	cursor: pointer;
}

.url {
	font-style: italic;
}

/* navigation and presentation on text browsers */
.textvers {
	display: none;
}

.clear {
	clear: both;
	height: 1px;
}

/* clearfix from http://nicolasgallagher.com/micro-clearfix-hack/ */
.cf:before,
.cf:after {
    content:"";
    display:table;
}

.cf:after {
    clear:both;
}

/* For IE 7 (trigger hasLayout) */
.cf {
    zoom:1;
}

/* contains everything on the page */
#container {
	background: white;
	border: solid 1px #bbb;
	margin: 0 auto;
	width: 64em;
}

/* top horizontal section of content, containing the minor and major headers and major_nav */
#banner {
	height: auto;
	border-bottom: solid 1px #069;
}

#minor_header {
	background-color: #069;
	color: white;
	white-space: nowrap;
	font-size: 90%;
	font-weight: bold;
	padding: 0.2em 0.5em;
	height: auto;
	border-bottom: solid 1px #006;
	text-align: left;
}

#minor_header a {
	color: white;
}

/* most of the banner content (includes the logos and search elements) */
#major_header {
	clear: both;
	background: #006 url(/csd/img/globe_banner.png) no-repeat top left;
	height: auto;
	width: auto;
}

#logo {
    float:left;
    padding: .5em 0;
}

#logo img {
    float: left;
    padding: .2em 1em;
}

p.lab {
    font-size: 1.4em;
    letter-spacing: .05em;
    font-weight: bold;
	margin: 0;
    white-space: nowrap;
}

p.lab a {
    color: #fff;
}
p.lab a:hover, p.division a:hover {
    text-decoration: none;
}
p.division {
    font-size: 1.25em;
    letter-spacing: .1em;
	margin: 0;
    white-space: nowrap;
}
p.division a {
    color: rgb(248, 251, 153);
    /* color: #ffc; */
}

#search {
	clear: none;
	float: right;
	padding: 1em 6em 0 0;
	width: 13em;
	font-weight: bold;
	font-size: 80%;
	color: white;
	white-space: nowrap;
	background-color: transparent;
}
#search a {
	color: white;
}
#search input {
	font-size: 80%;
}

/* major site navigation elements, currently styled in a horizontal bar  */
#major_nav {
    background-color: #cdf;
    color: #006;
    height: 1.7em;
}

/* major_nav <div id=name>major_nav far left "home" link</div> */
#name {
    float: left;
    font-size: 90%;
    font-weight: bold;
	margin-bottom: 0;
    text-align: left;
    width: 14.5em;
}
#name a {
    color: #069;
    display: block;
    padding: .25em .5em .25em 1em;
    text-decoration: none;
}
#name a:hover {
	background-color: #069;
	color: #fff;
}

/* major_nav <div id=crumb>major_nav far right "crumb" links</div> */
#crumb {
    display: inline;
    float: right;
    text-align: right;
    background-color: transparent;
    white-space: nowrap;
    line-height: 1;
    font-size: .8em;
    font-style: italic;
    padding: .6em 1em 0em .3em;
    }


/* list styled to show its items in horizontal fashion, with "child" lists displayed as pull-down submenus */
/* this sets lists within lists to be menus which are hidden until the user mouses over the "parent" list item */
/* from http://www.htmldog.com/articles/suckerfish/dropdowns/ */
#nav, #nav ul {
    font-size: 90%;
    font-weight: bold;
    list-style: none;
    margin: 0;
    z-index: 1;  /* IE prior to 9 fix */
}
#nav a {
    color: #006;
    display: block;
	margin: 0;
    padding: 0.25em 0.75em;
    text-decoration: none;
}
#nav li:hover {
  background-color: #069;
  color: #fff;
}
#nav li a:hover {
  background-color: #069;
  color: #fff;
}
#nav li {
    display: block;
    float: left;
    margin: 0;
	padding: 0;
    position: relative;
    text-align: center;
	z-index: 99;  /* IE prior to 9 fix */
}
#nav li ul {
    left: -999em;
    position: absolute;
    width: 10em;
}
#nav li ul li {
    font-weight: normal;
    text-align: left;
}
#nav li:hover ul {
    left: auto;
}
#nav li:hover li {
    background-color: #fff;
    border-right: solid 1px #bbb;
    border-bottom: solid 1px #bbb;
    border-left: solid 1px #bbb;
    width: 24em;
}
#nav li li:hover, #nav li li a:hover {
    background-color: #ffc;
    color: #006;
}

#nav hr {
	margin: 0;
}

/* containing div for body (including minor_nav and content) primarily for page-layout purposes */
#pbody {
  border-left: 13em solid #ddd;
  display: inline-block;
  position:relative;
  vertical-align: bottom;
/*  max-width: 51em;
  min-width: 47em; */
}

/* minor navigation elements, currently styled in a left vertical column */
#minor_nav {
    background-color: #ddd;
    border-right: 1px solid #bbb;
    float: left;
    margin-left: -13em;
    position: relative;
    width: 13em;
}

#minor_nav a {
	color: #006;
}

#minor_nav a:hover {
	text-decoration: underline;
	color: #006;
}

#minor_nav p {
	padding: 5px;
}

#minor_nav dl {
	font-weight: bold;
	font-size: 80%;
}

#minor_nav dt {
	display: block;
	padding: 1px 0px 1px 0px;
	width: 100%;
	background: #bbb;
	border: none;
	text-align: center;
}

#minor_nav dt a {
	display: block;
	padding: 2px 0px 2px 0px;
	width: 100%;
}

#minor_nav dt a:hover {
	background-color: #ddd;
	text-decoration: none;
}

#minor_nav dd {
	font-weight: normal;
	margin: 0em 0.5em 1.0em 0.5em;
	padding: 0.3em;
	border: none;
	background: inherit;
}

#minor_nav ul {
	list-style: none;
}

/* an unordered list whose items are displayed vertically without bullets. sub-lists are styled as pull-down menus which float to the right of the parent list item. */
#vertnav {
	clear: both;
	color: #006;
	list-style: none;
	white-space: nowrap;
	font-size: 90%;
	width: 100%;
	z-index: 1;
}

/* this sets lists within lists to be menus which are hidden until the user mouses over the parent list item */
#vertnav li ul {
    display: none;
    position: absolute;
    top: auto;
    left: auto;
    font-weight: normal;
    background: white;
    border: none;
    width: 100%;
}

/* sets an unordered list which is a child of another list item to be positioned at the upper left of the parent list item */
#vertnav li>ul {
    top: auto;
    left: auto;
}

/* displays the child list when the user mouses over the parent list item */
#vertnav li:hover ul {
    display: block;
    background-color: #cecece;
}

#vertnav li {
	display: block;
	text-align: center;
	background-color: inherit;
	border-top: solid 1px #bbb;
	border-right: none;
	border-bottom: solid 1px #bbb;
	border-left: none;
	width: 100%;
	margin: .5em 0 0 0;
	height: auto;
	color: #069;
	position: relative;
	z-index: 99;
}

#vertnav a {
	display: block;
	font-weight: bold;
	text-decoration: none;
	padding: .2em 0 .2em 0;
	color: #006;
}

#vertnav a:hover {
	text-decoration: none;
	background-color: #bbb;
	width: 100%;
}

#vertnav li:hover {
	background-color: #dfdfdf;
}

#vertnav li ul {
	list-style: none;
	width: 28em;
	top: 0em;
	left: 12em;
}

#vertnav li li {
	display: block;
	font-size: 90%;
	text-align: left;
	background: white;
	color: black;
	margin: 0; /* FF error: inherits background */
	border: solid 1px black;
	height: auto;
	position: relative;
}

#vertnav li li a {
	padding: .3em 0 .2em .4em;
}

#vertnav li li a:hover {
	width: auto;
	background-color: #ffc;
}

#vertnav li li:hover {
	background-color: #ffc;
}

#vertnav li:hover {
	background-color: #bbb;
	z-index: 109;
}

/* div for the actual page content */
#content {
    border-left: 1px solid #bbb;
    padding: 1em;
    width: 49em;
}

/* div for the page footer */
#footer {
	clear: both;
    font-size: 80%;
	background: #006 url(/csd/img/gradient.gif) top left repeat-y;
	color: white;
	padding: .8em 1em;
	margin: 0;
	width: auto;
	height: 4em;
}

#footer a {
	color: white;
}

/* div containing links to the organizations shown in the footer */
#orgs {
	float: left;
	text-align: left;
}

/* div containing policy-type links shown in the footer */
#policies {
	clear: none;
	float: right;
	text-align: right;
}
