/* This rule resets a core set of elements so that they will appear consistent across browsers. Without this rule, content styled with an h1 tag, for example, would appear in different places in Firefox and Internet Explorer because each browser has a different top margin default value. By resetting these values to 0, the elements will initially be rendered in an identical fashion and their properties can be easily defined by the designer in any subsequent rule. */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
}
/* The body is the outermost layout component and contains the visible page content. Setting properties for the body element will help to create consistent styling of the page content and more manageable CSS. Besides using the body element to set global properties, it is common to use the body element to set the background color of the page and create a centered container for the page content to display. */
body {
  background-color: #e8e7e2;
  color: #2d2e2e;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 14px;
  margin: 0 0 0 0; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 0 0 0 0; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  text-align: center; /* Centers the page content container in IE 5 browsers. */
}
/* Commonly used to style page titles. */
.hide,.hidden {
display:none
}


/* Commonly used to style section titles. */
h2 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #004b94;
  font-size: 18px;
  font-weight: bold;
  line-height: 18px;
  padding-bottom:5px;
}


h3 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: black;
  font-size: 14px;
  font-weight: bold;
  line-height: 14px;
  padding-bottom:5px;
}

h4 {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #004b94;
  font-size: 12px;
  font-weight: bold;
  line-height: 12px;
  padding-bottom:0;
  padding-top:10px;
}


/* Sets the style for unvisited links. */
a,  a:link {
  color: #004b94;
  text-decoration: none;
  font-weight:bold;
}
/* Sets the style for visited links. */
a:visited {
  color: #bbb;
  text-decoration: none;
}
/* Sets the style for links on mouseover. */
a:hover {
  color: #00529b;
  text-decoration: underline;
}
/* Sets the style for a link that has focus. */
a:focus {
  color: #00529b;
}
/* Sets the style for a link that is being activated/clicked. */
a:active {
  color: #00529b;
}
/* This is a container for the page content. It is common to use the container to constrain the width of the page content and allow for browser chrome to avoid the need for horizontal scrolling. For fixed layouts you may specify a container width and use auto for the left and right margin to center the container on the page. IE 5 browser require the use of text-align: center defined by the body element to center the container. For liquid layouts you may simply set the left and right margins to center the container on the page. */
#container {
  background-color: #fff;
  background-image: url('http://www.st-andrews.ac.uk/media/sasi/container_bg_ext_2b_sasi.png');
  background-repeat: repeat-y;
  margin: 0 auto 0 auto; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 0px 10px 0px 10px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  text-align: left; /* Redefines the text alignment defined by the body element. */
  width: 959px;
}
#container #header {
  background: white url('http://www.st-andrews.ac.uk/media/sasi/top.jpg') no-repeat;
  border-style: none; /* Sets the border style properties for an element using shorthand notation */
  height: 90px;
  padding: 0; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
}

#container #header #sasi_logo{
	position:relative;
	left:10px;
	top:5px;
}

#container #header #sasi_text{
	position:relative;
	left:10px;
	top:5px;
}

#container #header #uni_crest{
    font-family: "Book Antiqua", Georgia, Times. serif;
	position:relative;
	top:10px;
	left:885px;
	width:60px;
	text-align:center;
	font-size:9px;
	line-height:8px;
}

#container #header #uni_text_small{
    font-family: "Book Antiqua", Georgia, Times. serif;
	font-size:8px;
	line-height:8px;
}

#container #contentWrapper {
    background-color: #fff;
    }

#container #contentWrapper #sidebar {
  background-color: #fff;
  border-style: none; /* Sets the border style properties for an element using shorthand notation */
  float: left;
  padding: 10px 10px 10px 10px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 190px;
}
#container #contentWrapper #relatedcontent {
  background-color: #fff;
  border-style: none; /* Sets the border style properties for an element using shorthand notation */
  float: right;
  padding: 10px 10px 10px 10px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  width: 220px;
}

#container #contentWrapper #relatedcontent ul{
  padding:10px 0 0 15px;
  margin:0;
}

#container #contentWrapper #relatedcontent li{
  padding:0 0 10px 0;
  margin:0;
}


/* Contains the main page content. When using a mutliple column layout the margins will be set to account for the floated columns' width, margins, and padding. */
#container #contentWrapper #content {
  background-color: #fff;
  margin: 0 240px 0 210px; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 10px 30px 10px 10px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
}
/* Using floated elements and a clear float class is a common method to accomplish multiple column tableless layouts. If floated elements are used without being cleared the elements following will wrap around the floated element. This class should be applied to an element after the last floated element and before the close of the container with floated elements. */
#container #contentWrapper .clearFloat {
  clear: both;
  display: block;
}

.feature,.notice,.success,.error {border: 2px solid #ddd;clear: both;margin-bottom: 1em;padding: .8em;}
.feature {background: #e9f1f9; color: #00529b; border-color: #c0d7ec;}
.notice {background: #FFF6BF; border-color: #FFD324; color: #514721;}
.success {background: #E6EFC2; border-color: #C6D880; color: #264409;}
.error {background: #FBE3E4; border-color: #FBC2C4; color: #8a1f11;}
.feature a {color: #00529b;}
.notice a {color: #514721;}
.success a {color: #264409;}
.error a {color: #8a1f11;}
.feature p:last-child,.notice p:last-child,.success p:last-child,.error p:last-child {margin: 0; padding: 0;}
.last-p {margin: 0; padding: 0;}
.fix {float:left;}

/* --------------- FOOTER Structure ----------------------------------------- */
/* #footer - footer information on each page */
#footer {
    height: 30px;
    padding: 15px 10px 10px 10px;
	text-align:left;
    width: 939px;                       /* header/menu width minus 10px padding L and R */
	color:#eee;
	}

#footer a{
	color:#eee;
}

/* container for #footer - displays container_footer (bottom shadow) image */
#bottom {
    background: transparent url("http://www.st-andrews.ac.uk/media/sasi/bottom.jpg") no-repeat;
    height: 50px;                       /* height of footer content plus 10px white border-top */
    margin: 0 auto;
    max-width: 959px;
    overflow: hidden;
    padding: 0 10px 10px 10px;
    position: relative;
    width: 959px;
    }

/* create gap above and below entire list */
#submenu ul {
    list-style: none;
    margin: 0;
    padding: 10px 10px 0 10px;
    list-style-type: none;
    width: 170px; /* fix for IE6 to allow hover borders  */
    }

    /* spacer below list items */
    #submenu li, #submenu ul ul li {
        padding: 0 0 7px 0;         /* GAP BETWEEN LIST ITEMS */
        }

/* indent sub list */
#submenu ul ul {
    margin: 0 0 0 10px;
    width: 110px; /* fix for IE6 */
    }

    /* selected item in sub-list -- class applied to the list item tag: <li class="selected"> */
    #submenu ul ul li.selected, .currentbranch3 {
        border-left: 5px solid #5f5f5f;
        color: #5f5f5f;                     /* Dark Grey (rgb 95, 95, 95) */
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
        padding-left: 5px;
        }

    #submenu ul ul ul li a {  /* fix for #sidebar spilling contents */
        padding-top: 1px;
        padding-bottom: 1px;
        width: 120px;
        }

/* border and padding control left-hand 'tick' marker */
#submenu li a {
    /* coloured padding found in sidebar colour css file */
    padding: 0 0 0 5px;
	color: #000;
    display: block;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
    width: 155px;                           /* fix for IE6 to allow hover borders */
	}

    #submenu li a:link, #submenu li a:visited {
        border-left: 5px solid #fff;
    	text-decoration: none;
    	}

    #submenu li a:hover, #submenu li a:active {
        border-left: 5px solid #5f5f5f;     /* Dark Grey (rgb 95, 95, 95) */
    	text-decoration: underline;
    	}

    /* selected item on list -- class applied to <a> tag: <a href="#" class="selected"> */
    #submenu a.selected, #submenu li a.selected {
        border-left: 5px solid #5f5f5f;     /* Dark Grey (rgb 95, 95, 95) */
        color: #5f5f5f;
        font-weight: bold;
        }

/* start added by T4 for SiteManager link menu code */
	#submenu .currentbranch0 {
		padding: 0 0 0 5px;
		display: block;
		font-family: Arial, Helvetica, sans-serif;
		width: 155px;                           /* fix for IE6 to allow hover borders */
        border-left: 5px solid #5f5f5f;     /* Dark Grey (rgb 95, 95, 95) */
        color: #5f5f5f;
        font-weight: bold;
	}
	#submenu .currentbranch0 a, #submenu .currentbranch0 a:hover, #submenu .currentbranch1 a, #submenu .currentbranch1 a:hover, #submenu .currentbranch2 a, #submenu .currentbranch2 a:hover {
		padding: 0;
		border-left: none;
        color: #5f5f5f;
        font-weight: bold;
 	}
	#submenu .currentbranch1 {
		padding: 0 0 0 5px;
		color: #5f5f5f;
		font-weight: bold;
		display: block;
		font-family: Arial, Helvetica, sans-serif;
        border-left: 5px solid #5f5f5f;     /* Dark Grey (rgb 95, 95, 95) */
	}

	#submenu .currentbranch2 {
		padding: 0 0 0 5px;
		color: #5f5f5f;
		font-weight: bold;
		display: block;
		font-family: Arial, Helvetica, sans-serif;
        border-left: 5px solid #5f5f5f;     /* Dark Grey (rgb 95, 95, 95) */
	}

/* End added by T4 */

        #submenu p a:link, #submenu p a:visited {
            border: 0;
            color: #5f5f5f;                 /* Dark Grey (rgb 95, 95, 95) */
            display: inline;
            margin: 0;
            padding: 0;
            text-decoration: none;
            }

        #submenu p a:hover, #submenu p a:active {
            text-decoration: underline;
            }
