/* Start of CMSMS style sheet 'Standard' */
/*****************
browsers interpret margin and padding a little differently, 
we'll remove all default padding and margins and
set them later on
******************/
* {
  margin:0;
  padding:0;
}

html {
   background: #3B4C58;
}

/*
Set initial font styles
*/
body {
   font-family: Verdana,Arial,sans-serif;
   font-size: 75%;
}

/*
set font size for all divs,
this overrides some body rules
*/
div {
   font-size: 1em;
}

/*
if img is inside "a" it would have 
borders, we don't want that
*/
img {
   border: 0;
   margin-bottom: 2px;
}

/*
default link styles
*/
/* set all links to have underline and bluish color */
a,
a:link 
a:active {
/* css validation will give a warning if color is set without background color. this will explicitly tell this element to inherit bg colour from parent element */
   #background-color: inherit; 
   color: #4C1D11;
}

a:visited {
  background-color: inherit;
  color: #4C1D11;                /* a different color can be used for visited links */
}


/* remove underline on hover and change color */
a:hover {
   text-decoration: underline;
}

/*****************
basic layout 
*****************/
body {
   background:#3B4C58;
   color: #333;
   margin:1em auto; /* gives some air for the pagewrapper */
   width: 770px;
   padding: 20px;
}

/* center wrapper, min max width */
div#pagewrapper {
   margin: 0;
   background-color: #5D3B2E;
   width: 770px;   /* Tony added this to solve width problem on IE */
}

/*** header ***
we will hide text and replace it with a image
we need to assign a height for it
*/

div#header {
   background: #fff;
   height: 149px; /* adjust according your image size */
}

div#header h1 a {
   background: url(images/cms/header_roundtop.jpg) left no-repeat; 
   display: block; 
   height: 149px;             /* adjust according your image size */
   text-indent: -999em;  /* this hides the text */
   text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}

div#search {
   float: right;
/*   width: 20em;     enough width for the search input box */
   text-align: right;
   padding-top: 8px;
   padding-bottom: 11px;
   margin: 0 1em;
   color: #CFBDAE;
}

/* Added by Tony */
div#search input.btn {
  background-color: #754E40;
  color: #CFBDAE;
  font-family: Arial;
  font-size: 0.75em;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4em 1.0em 0.4em 1.0em;
  border-style: none;
  cursor: pointer;
}

div#search input.btn:hover {
  background-color: #9C6343;
}

div.breadcrumbs {
   color: #CFBDAE;
   width: 50%;
   padding-top: 13px;
   padding-bottom: 16px;
   margin: 0 1em;              /* css shorthand rule will be opened to be "0 1em 0 1em" */
}

div.breadcrumbs a,
div.breadcrumbs a:visited {
   color: #CFBDAE;
}

div#content {
   width: 100%;
   background-color: #CFBDAE;
   color: #4C1D11;
}

div#main {
   background-color: #DAD0C6;
   margin-top: 0;
   margin-right: 22%; /* this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */
   margin-left: 22%; /* and some air on the right */
   padding: 10px;
   line-height: 140%;
   min-height: 300px;
}

div#sidebar {
   float: right;  /* set sidebar on the left side. Change to right to float it right instead. */
   height: 100%;
   width: 20%;    /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX ie doublemargin bug */
   padding: 5%;
}

div#sidebar img {
   margin-top: 20px;
}

/* if sidebar doesnt include menu but content add class="hascontent" */
div#sidebar.hascontent {
   padding: 0 1%;
   width: 20%;  /* make width smaller if there's padding, or it will get too wide for the floated divs in IE */
}

/* added by Tony */
div#printbutton {
   float: left;
   display: inline;  /* FIX ie doublemargin bug */
   margin-left: 10px;
   margin-top: 10px;
}

div#footer {
   display: inline;
   clear: both;       /* keep footer below content and menu */
   color: #fff;
   background-color: #5D3B2E; /* same bg color as in header */
}

div#footer p {
   font-size: 0.8em;
   padding: 1.5em;      /* some air for footer */
   text-align: center; /* centered text */
   margin:0;
}

div#footer p a {
   color: #fff; /* needed because footer link would be same color as background otherwise */
}

/* as we hid all hr for accessibility we create new hr with extra div element */
div.hr {
   height: 1px;
   margin: 1em;
   border-bottom: 1px dotted black;
}

/* relational links under content */
div.left49 {
  float: left;
  width: 49%;  /* 50% for both left and right might lead to rounding error on some browser */
}

div.right49 {
  float: right;
  width: 49%;
  text-align: right;
}




/********************
CONTENT STYLING
*********************/

/* HEADINGS */
div#content h1 {
   font-size: 2em;  /* font size for h1 */
   line-height: 1em;
   margin: 0;
}
div#content h2 {
   color: #9c6343;
   font-family: Helvetica;
   font-size: 1.5em;
   font-style: italic;
   text-align: left; 
/* some air around the text */
   padding-bottom: 1px;
/* and some air under the border */
   margin: 0 0 0.5em 0;
}
div#content h3 {
   color: #5D3B2E; 
   font-size: 1.3em;
   line-height: 1.3em;
   margin: 0 0 0.5em 0;
}
div#content h4 {
   color: #294B5F; 
   font-size: 1.2em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}
div#content h5 {
   font-size: 1.1em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}
h6 {
   font-size: 1em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}
/* END HEADINGS */

/* TEXT */
p {
   font-size: 1em;
   margin: 0 0 1.5em 0;  /* some air around p elements */
   line-height:1.4em;
   padding: 0;
}
blockquote {
   border-left: 10px solid #ddd;
   margin-left: 10px;
}
pre {
   font-family: monospace;
   font-size: 1.0em;
}
strong, b {
/* explicit setting for these */
   font-weight: bold;
}
em, i {
/* explicit setting for these */
   font-style:italic;
}

/* Wrapping text in <code> tags. Makes CSS not validate */
code, pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
 font-family: "Courier New", Courier, monospace;
 font-size: 1em;
}

pre {
   border: 1px solid #000;  /* black border for pre blocks */
   background-color: #ddd;
   margin: 0 1em 1em 1em;
   padding: 0.5em;
   line-height: 1.5em;
   font-size: 90%;   /* smaller font size, as these are usually not so important data */
}

/* END TEXT */

/* LISTS */
div#main ul,
div#main ol,
div#main dl {
  font-size: 1.0em;
   line-height:1.4em;
   margin: 0 0 1.5em 0;
}
div#main ul li,
div#main ol li {
   margin: 0 0 0.25em 3em;
}

div#dl dt {
   font-weight: bold;
   margin: 0 0 0.25em 3em;
}
div#dl dd {
   margin: 0 0 0 3em;
}
/* END LISTS */

table#table-staff tr td {
   border-bottom: 1px solid #4C1D11;
}

table.leadership tr td img {
   margin-top: 5%;
}

table.leadership tr td {
   vertical-align: top;
}
/* End of 'Standard' */

/* Start of CMSMS style sheet 'Navigation: CSSMenu - Horizontal' */
/* Horizontal menu for the CMS CSS Menu Module */
/* by Alexander Endresen */

#menu_vert {
/* top margin needs to be about 14px if using the border */
/* margin: 0 14px 10px 10px; */
   margin: 2px 5px 10px 10px;
   padding: 0 0 2px 2px;
/*   border: #754E40 solid 2px;      LEAVE THIS OFF FOR NOW */
}

/* The wrapper clears the floating elements of the menu */

/* Fix for Opera 8 */
.clearb { clear: both; }
#menuwrapper { 
   /* Fix for Opera 8 */ 
   /* overflow: hidden; */
   background-color: #5D3B2E;
   height: 100%;
}

/* Set the width of the menu elements at second level. Leaving first level flexible. */
#primary-nav li li { 
   width: 200px;
}

/* Unless you know what you do, do not touch this */ 
#primary-nav, #primary-nav ul { 
   white-space: no-wrap;
   list-style: none; 
   padding: 0;
}
#primary-nav ul { 
   position: absolute;
   top: auto; 
   display: none;
   width: 200px;
}

#primary-nav ul ul { 
   margin-top: 1px;
   margin-left: -1px;
   left: 100%; 
   top: 0px; 
}

#primary-nav li { 
   margin-left: -1px;
   float: left; 
}

#primary-nav li li { 
   margin-left: 0px;
   margin-top: -1px;
   float: none; 
   position: relative; 
}

/* Styling the basic appearance of the menu elements */
#primary-nav a { 
   background-color: #754E40;
   display: block; 
   margin: 2px 1px 0 1px;
   padding: 7px 13px 7px 13px;
   text-decoration: none; 
   font-family: Arial;
   font-weight: bold;
   font-size: 0.75em;
   color: #CFBDAE;
   letter-spacing: 0.125em; 
   text-transform: uppercase;  /* Matt asked me to turn this off */
   white-space: nowrap;
}

/* Styling the basic appearance of the active page elements 
    (shows what page in the menu is being displayed) */

#primary-nav li.menuactive.menuparent a.menuactive.menuparent { 
   background-color: #9c6343;
   color: #CFBDAE;
}

#primary-nav li.menuparent a.menuparent {
   _background-color: #754E40;
}

#primary-nav li.menuactive a.menuactive { 
   background-color: #9c6343;
   color: #CFBDAE;
}

#primary-nav li a:hover { 
   background-color: #9c6343;
   color: #CFBDAE;
}

/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */

/* 
just add 
#primary-nav li:hover ul ul, 
#primary-nav li.menuparenth ul ul ul,
for fourth level 
*/
#primary-nav ul, 
#primary-nav li:hover ul, 
#primary-nav li:hover ul ul, 
#primary-nav li.menuparenth ul, 
#primary-nav li.menuparenth ul ul { 
   background-color: #5D3B2E;
   display: none; 
}

/* add 
#primary-nav ul ul ul li:hover ul, 
#primary-nav ul ul ul li.menuparenth ul,
for fourth level
*/
#primary-nav li:hover ul, 
#primary-nav ul li:hover ul, 
#primary-nav ul ul li:hover ul, 
#primary-nav li.menuparenth ul, 
#primary-nav ul li.menuparenth ul, 
#primary-nav ul ul li.menuparenth ul { 
   display: block; 
}


/* IE Hacks */
#primary-nav li li { 
   float: left; 
   clear: both; 
}
#primary-nav li li a { 
   height: 1%; 
}
/* End of 'Navigation: CSSMenu - Horizontal' */

/* Start of CMSMS style sheet 'Accessibility and cross-browser tools' */
/* accessibility */

/* 
menu links accesskeys 
*/
span.accesskey {
   text-decoration:none;
}

/* 
accessibility divs are hidden by default 
text, screenreaders and such will show these 
*/
.accessibility, hr {
   position: absolute;
   top: -999em;
   left: -999em;
}

/* 
definition tags are also hidden 
these are also used for menu links    
*/
dfn {
   position: absolute;
   left: -1000px;
   top: -1000px;
   width: 0;
   height: 0;
   overflow: hidden;
   display: inline;
}
/* end accessibility */


/* wiki style external links */
/* external links will have "(external link)" text added, lets hide it */
a.external span {
  position: absolute;
  left: -5000px;
  width: 4000px;
}

/* make some room for the image */
a.external {
/* css shorthand rules, read: first top padding 0 then right padding 12px then bottom then right */
  padding: 0 12px 0 0;
}
/* colors for external links */
a.external:link {
  color: #18507C;
/* background image for the link to show wiki style arrow */
  background: url(images/cms/external.gif) no-repeat 100% 0;
}
a.external:visited {
  color: #18507C; /* a different color can be used for visited external links */

/* 
Set the last 0 to -100px to use that part of the external.gif image for different color for active links 
external.gif is actually 300px tall, we can use different positions of the image to simulate rollover image changes.
*/
  background: url(images/cms/external.gif) no-repeat 100% 0; 
}

a.external:hover {
  color: #18507C;
/* Set the last 0 to -200px to use that part of the external.gif image for different color on hover */
  background: url(images/cms/external.gif) no-repeat 100% 0; 
  background-color: #C3D4DF;
}
/* end wiki style external links */


/* clearing */
/* 
clearfix is a hack for divs that hold floated elements. it will force the holding div to span all the way down to last floated item.
We strongly recommend against using this as it is a hack and might not render correctly but it is included here for convenience.
Do not edit if you dont know what you are doing
*/
	.clearfix:after {
		content: "."; 
		display: block; 
		height: 0; 
		clear: both; 
		visibility: hidden;
	}
	* html>body .clearfix {
		display: inline-block; 
		width: 100%;
	}
	
	* html .clearfix {
		/* Hides from IE-mac \*/
		height: 1%;
		/* End hide from IE-mac */
	}

/* end clearing */
/* End of 'Accessibility and cross-browser tools' */

