/*
Base CSS rules for all pages on library site

©2007 Robert E. Kennedy Library - Don't steal.
http://www.lib.calpoly.edu

Colors:
	dark blue: 506375
	light blue: d0dce0
	sky blue: 9bd5e5
	dark brown: 80724d
	light brown: c0b9a6
	promo box brown: e4e1d9
*/

/* Imports
-------------------------------------------------------------*/

@import url(promo-box.css); /* Must come before reset code! */

/* Reset CSS 0.11.0
Copyright (c) 2006, Yahoo! Inc.
http://developer.yahoo.net/yui/license.txt
-------------------------------------------------------------*/

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;}
fieldset,img{border:0;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
ul {list-style:none;}
ol {list-style-image:none;}
caption,th {text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;}
q:before,q:after{content:'';}

/* Base
-------------------------------------------------------------*/

body {
	font-family: "Trebuchet MS", "Trebuchet", "Helvetica", "Arial", sans;
	font-size: 76%;
	color: #333;
}

a {
	color: #506375;
	text-decoration: none;
	font-weight: bold;
}

a:focus, a:hover {
	text-decoration: underline;
}

:focus {
  -moz-outline-style: none;
}

a:visited {
	color: #677e94;
}

a[href^="http:"] {
	background: url("images/external-link.gif") top right no-repeat;
	padding-right: 10px;
}

#footer a[href^="http:"],
a[href^="http://lib-sta"],
a[href^="http://lib.calpoly"],
a[href^="http://www.lib.calpoly"],
a[href^="http://polycat.lib."] {
	background: none;
	padding-right: 0;
}

a[href^="mailto:"] {
	background: url("images/mail-link.gif") top right no-repeat;
	padding-right: 12px;
}

a.no-icon {
	background: none;
	padding-right: 0;
}

.clear {
	display: block;
	clear: both;
	line-height: 1px;
	height: 1px;
	width: 1px;
}

/* Skip
-------------------------------------------------------------*/

#skip {
	position: absolute;
	top: -1000px;
}

/* Header
-------------------------------------------------------------*/

#header {
	/* Has IE6 fix */
	
	position: relative;
	height: 100px;
	width: 76%;
	min-width: 740px;
	max-width: 1020px;
	
	background: url(images/header-faded-bg.gif) no-repeat right bottom;
	
	padding: 0;
	margin: 0 auto;
}

#header #logo {
	position: absolute;
	left: 0;
	bottom: 10px;
	
	width: 433px;
	height: 57px;
	
	overflow: visible;
}

#header #logo h1 a {
	/* "CalPoly" */
	
	position: absolute;
	bottom: 27px;
	left: 0;
	overflow: hidden;
	
	background: transparent url(images/header-calpoly-logo.gif) no-repeat;
	
	width: 134px;
	height: 37px;
	
	text-indent: -1000em;
}

#header #logo h2 a {
	/* "Library Services" */
	
	position: absolute;
	bottom: 27px;
	left: 150px;
	overflow: hidden;
	
	background: transparent url(images/header-logo.gif) no-repeat;
	
	width: 239px;
	height: 37px;
	
	text-indent: -1000em;
}

/* Contact numbers */

p.meta {
	position: absolute;
	bottom: 0px;
	left: 3px;
	
	line-height: 1;
	
	width: 45em;
	
	font-size: .92em;
}

p.meta .vcard .organization-name {
	display: none;
}

p.meta .vcard .organization-unit {
	font-weight: bold;
	color: #80724d;
}

p.meta .vcard .organization-unit:after {
	display: inline;
	color: #333;
	content: ':';
}

/* Search Boxes */

#header #search {
	position: absolute;
	bottom: 10px;
	right: 0;
}

#header #search ul {
	list-style: none;
}

#header #search ul li {
	text-align: right;
	
	padding: 1px 0;
	margin: 0;
}

#header #search ul li label {
	font-size: .87em;
	font-weight: bold;
	color: #506375;
	
	margin-right: .5em;
}

#header #search ul li #google-box {
	width: 125px;
	margin: 0;
}

#header #search ul li #google-submit {
	width: 40px;
	margin: 0;
}

#header #search ul li select {
	width: 173px;
}

#popular-dropdown, #iwantto-dropdown {
	/* JavaScript will set display to 'block' because the browser needs JS enabled
	   to make use of the dropdowns because we're not using server-side scripts
	   to handle the dropdowns. */
	display: none;
}

/* Basic Header for "stripped-down" pages */

#header.basic {
	z-index: 100;
	border-bottom: 1px #506375 solid;
	margin-bottom: -1px;
}

.sep-bar {
	width: 100%;
	height: 1px; /* IE 6 Fix */
	line-height: 0;
	background-color: #d0dce0;
	z-index: 5;
}

/* Main menu
-------------------------------------------------------------*/

#site-nav {
	/* Has IE6 fix */
	
	border-top: 1px #d0dce0 solid;
	border-bottom: 1px #d0dce0 solid;
}

ul.menu-bar {
	/* Has IE6 fix */
	
	position: relative;
	
	border-top: 1px #506375 solid;
	border-bottom: 1px #506375 solid;
	
	height: 5em;
	width: 76%;
	min-width: 740px;
	max-width: 1020px;
	
	padding: 0 2%;
	margin: -1px auto;
}

ul.menu-bar li {
	/* Has IE6 fix */
	
	float: left;
	width: 12%;
	height: 4.5em;
	
	padding: .5em 1% 0 1%;
	margin-right: -1px;
	
	border-left: 1px #506375 dotted;
	border-right: 1px #506375 dotted;
}

ul.menu-bar li a {
	/* Has IE6 fix */
	
	position: absolute;
	width: 12%;
	height: 3.3em;
	
	font-size: 1.2em;
}

ul.menu-bar li a:visited {
	color: #506375;
}

ul.menu-bar li .short-desc {
	/* Has IE7 fix */
	/* Has IE6 fix */
	
	color: #80724d;
	font-size: .92em;
	font-style: italic;
	
	margin-top: 1.8em;
}

/* Breadcrumbs
-------------------------------------------------------------*/

#breadcrumbs {
	/* Has IE7 fix */
	/* Has IE6 fix */
	
	padding: .5em 0 0;
	border-bottom: 1px #d0dce0 solid;
}

#breadcrumbs p {
	/* Has IE7 fix */
	/* Has IE6 fix */
	
	width: 78%;
	min-width: 756px;
	max-width: 1054px;
	
	padding: 0 1% .5em;
	margin: 0 auto -1px;
	
	border-bottom: 1px #506375 solid;
}

#breadcrumbs p a {
	padding: 0 .5em;
}

/* Footer
-------------------------------------------------------------*/

#footer {
	text-align: center;
	color: #fff;
	font-size: 1em;
	
	background: #c0b9a6;
	
	margin: 20px 0 0;
}

#footer a {
	color: #9bd5e5;
	font-weight: normal;
}

#footer .wrapper {
	/* Has IE6 fix */
	
	width: 80%;
	min-width: 780px;
	max-width: 1080px;
	
	background: #80724d;
	
	padding: .5em 0 1.5em 0;
	margin: 0 auto;
}

#footer p.links a.cp {
	position: relative;
	top: 7px;
}

/* Other
-------------------------------------------------------------*/
.hidden {
	display: none;
}

/* Search Bar
-------------------------------------------------------------*/
#searchbar {
	height: 32px;
	border-bottom: 1px #ccc solid;
	background: #fcfcfc url(images/searchbar-fade-light.gif) bottom left repeat-x;
}

#searchbar-wrap {
	/* TODO: IE7 fix */
	/* TODO: IE6 fix */
	
	position: relative;
	
	width: 78%;
	min-width: 756px;
	max-width: 1054px;
	
	padding: 2px 1% 0;
	margin: 0 auto -1px;
	
	border-bottom: 1px #999 solid;
	background: #f0f0f0 url(images/searchbar-fade-dark.gif) bottom left repeat-x;
	
	line-height: 30px;
	height: 30px;
}

/* Main search field */

#searchbar-search {
	float: left;
	position: relative;
	top: -1px;
}

#searchbar-quicksearch {
	color: #353535;
	font-size: 14px;
	
	position: relative;
	top: 1px;
	
	font-weight: bold;
	margin-left: 7px;
	margin-right: 5px;
}

#searchbar-searchterms {
	width: 200px;
	margin-right: 2px;
	
	line-height: 16px;
}

#searchbar-service {
	display: none; /* Made visible with JS */
	
	margin-right: 6px;
}

#searchbar-submit {
	position: relative;
	top: -1px;
}

/* I need... */

#searchbar-ineed {
	position: absolute;
	top: 7px;
	right: 2%;
}

#searchbar-ineed-select {
	display: none; /* Made visible with JS */
	
	position: absolute;
	top: 0;
	right: 0;
}

