/* CSS styles for Ergon.com */

* { margin: 0; padding: 0; }

/* ---- BASELINE TEXT ---- */
body {
	font-size: 12px;
	line-height: 1.3333333333333333em;
	margin: 0; padding: 0;
}

h1 {
	margin: 0;
	font-size: 1.6666666666666667em;
	line-height: 0.8em;
	margin-bottom: 0.8em;
}

h2 {
	margin: 0;
	/*font-size: 1.5em;
	line-height: 0.8888888888888888em;
	margin-bottom: 0.8888888888888888em;*/
	font-size: 1.15em;
	line-height: 1.3em;
	margin-bottom: 1em;
	color: #666;
	background-color: inherit;
}

p, ul, blockquote, pre, td, th, label, .products {
	margin: 0;
	font-size: 1em;
	line-height: 1.3333333333333333em;
	margin-bottom: 1.3333333333333333em;
}

p.small {
	margin: 0;
	font-size: 0.8333333333333334em;
	line-height: 1.6em;
	margin-bottom: 1.6em;
}

table {
	border-collapse: collapse;
	margin-bottom: 1.3333333333333333em;
}

/* ---- GENERAL ELEMENTS ---- */

html, body { 
	margin: 0;
	padding: 0;
	background-color: #3b3c41;
	color: #fff;
	font-family: Helvetica, Arial, sans-serif;
}

strong { font-weight: bold; }
em { font-style: italic; }

a, a:link, a:visited {
	color: #80a930;
	background-color: inherit;
}

h1 { padding-bottom: 5px; border-bottom: 1px solid #333; }

h2 { color: #80a930; background-color: inherit; }

label {
	display: inline-block;
	padding-right: 5px;
	text-align: right;
	width: 45px;
	vertical-align: middle;
}

input[type="text"] { color: #666; vertical-align: top; }

ul.copy li { margin-left: 25px; list-style-type: disc; padding: .5em 0; }

table { border: 1px solid #ccc; }
th, td { border-bottom: 1px solid #ddd;  padding: .8em; }


/* ---- SECTION FORMATTING ---- */

.hd {
	margin: 25px 0 0 0;
	padding: 10px;
	background-color: #3b3c41;
	color: #fff;
}

#bd {
	margin: 0 5px 0 10px;
	padding: 20px 10px 0 10px;
	color: #333;
	width: 920px;
	background: #f4f8fa url("../../images/bd-top.jpg") no-repeat top left;
}

#ft {
	margin: 0 10px 0;
	padding: 25px 20px;
	background: #3b3c41 url("../../images/bd-bottom.jpg") no-repeat top left;
	color: #fff;
}

/* ---- OTHER STYLES ---- */

#nav {
	margin: 5px 0 0;
	width: 940px;
}

#nav ul {
	margin: 0;
	padding: 0 15px 0 0;
	list-style: none;
}

#nav li {
	display: inline;
	margin: 0;
	padding: 0;
}

#nav a {
	float: left;
	background: url("../../images/left-both.jpg") no-repeat left top;
	margin: 0;
	padding: 0 0 0 10px;
	text-decoration: none;
	display: inline;
}

#nav a span {
	float: left;
	display: block;
	background: url("../../images/right-both.jpg") no-repeat right top;
	padding: 3px 17px 2px 7px;
	font-weight: bold;
	color: #333;
	text-shadow: #fff 1px 1px 1px;
}

/* Commented Backslash Hack hides rule from IE5-Mac \*/
#nav a span {float: none;}
/* End IE5-Mac hack */

#nav a:hover span {
	color: #333;
	text-shadow: #fff 1px 1px 1px;
}

#nav #current a {
	background-image: url("../../images/left-on.jpg");
	border-width: 0;
}

#nav #current a span {
	background-image: url("../../images/right-on.jpg");
	/*color: #06476f;*/
	color: #333;
	text-shadow: #eee 1px 1px 1px;
	padding-bottom: 2px;
}

#nav a:hover {
	background-position: 0% -22px;
}

#nav a:hover span {
	background-position: 100% -22px;
}

#nav #current a:hover {
	background-position: top left;
}

#nav #current a:hover span {
	background-position: top right;
}

#second-nav li {
	display: inline;
	list-style-type: none;
	padding: 0 10px;
	border-right: 1px solid #aedd3d;
}
	#second-nav a, #second-nav a:link, #second-nav a:visited { text-decoration: none; }
 	#second-nav a:hover, #second-nav a:active { text-decoration: underline; }
	#second-nav a#current { text-decoration: underline; }
	
.slideshow {
	background: url('../../images/top-background.jpg') no-repeat; 
	padding: 10px 0;
}
.small-slideshow {
	background: url('../../images/top-background.jpg') no-repeat; 
	padding-top: 30px;
	padding-left: 10px;
}
	.small-slideshow div.grid_4 { margin-top: 134px; }
	.small-slideshow div.grid_8 { margin: 0; padding: 0; }

#sidebar {
	background: #333 url("../../images/sidebar-bottom.jpg") no-repeat bottom left;
	padding: 0 0 15px;
	margin-top: 10px;
}
	#sidebar dt {
		margin: 0;
		padding: 0 10px;
		background: #333 url("../../images/sidebar-top.jpg") no-repeat;
	}
	#sidebar dd {
		padding: 0 20px;
		color: #fff;
		text-shadow: #000 0 0 0;
	}

.links {
	width: 180px; 
	float: left; 
	margin-left: 10px;	
	margin-right: 5px;
}

.publications {
	height: 230px;
	margin-bottom: 15px;
	text-align: center;
}

.alt { background-color: #dddddd; color: #333333; }

.topper { background-color: #333333; color: #ffffff; }

.table-right { text-align: center; }