/* ================ Basics ================= */


html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: center; /* IE / Win bug fix */
	background-image: none;
}


h1 {
	font-family: "Lucida Bright", Georgia, "Times New Roman", serif;
	color: #733;
	font-size: 2em;
	line-height: 1.4em;
	font-weight: normal;
	margin-top: 0.05em;
}
h2 {
/*	font-family: "Lucida Bright", Georgia, "Times New Roman", serif; */
	font-family: "Lucida Sans", "Century Gothic", Verdana, Helvetica, Arial, sans-serif;
	color: #555;
	font-size: 1.3em;
	line-height: 1.4em;
	font-weight: bold;
	font-style: italic;
	margin-top: 2em;
}

h3 {
	font-family: "Lucida Sans", "Century Gothic", Verdana, Helvetica, Arial, sans-serif;
	color: #555;
	font-size: 1.1em;
	line-height: 1em;
	font-weight: bold;
	font-style: normal;
	margin-top: 2em;
}
p {
	margin-bottom: 1.8em;
}

a {
	white-space: nowrap;
	color: blue;
}

/* ======================================== */
/* ============= Site layout ============== */
/* ======================================== */

div#wrapper {
/*	height: 100%; /* for IE6 to make footer stick at bottom. */
	width: 100%;
	text-align: left;
	margin: 0 auto;
	padding: 0;
	border: 0;
	font-family: "Lucida Sans", "Century Gothic", Verdana, Helvetica, Arial, sans-serif;
	min-width: 760px;
	position: relative;
}

/* Faux left column */
body.leftnavbar-bg {
	background-image: url("../img/leftnavbar-bg.jpg");
	background-position: top left;
	background-repeat: repeat-y;
}


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

div#siteheader {
	width: 100%;
	height: 164px;
	min-width: 760px;
/*	border-bottom: 4px solid #606569; */
	border-bottom: 2px solid #999;
	background-color: #d0c4c6;
	background-repeat: no-repeat;
}
div#siteheader #grid {
/*	background-image: url(../img/sitehdr-grid.jpg); */
	width: 560px;
	height: 164px;
	position: absolute;
	left: 0;
	top: 0;
	border: 0;
}
div#siteheader #name {
	width: 317px;
	height: 62px;
	position: absolute;
	left: 20px;
	top: 5px;
	background-repeat: no-repeat;
	border: 0;
}
div#siteheader #subtitle {
	width: 554px;
	height: 48px;
	position: absolute;
	left: 378px;
	top: 73px;
	border: 0;
}


div#sitecontent {
	margin-left: 150px;
	font-family: "Lucida Sans", "Century Gothic", Verdana, Helvetica, Arial, sans-serif;
	font-size: 85%;
	line-height: 1.6em;
	padding: 2em 3em 10em 3em;
	min-height: 300px;

	/* Opera fix for footer disappearing below browser window */
	margin-bottom: 50px;	
	
	
}
div#sitecontent a, 
div#sitecontent a:visited, 
div#sitecontent a:focus, 
div#sitecontent a:active {
	color: #00f;
	text-decoration: none;
}
div#sitecontent a:hover, 
div#sitecontent a:visited:hover {
	text-decoration: underline;
}


div#sitefooter {
	clear: both;
	width: 100%;
	height: 40px;
	border-top: 2px solid #999;
/*	background-color: #cfc6c9; disabled cos leaves gap at bottom for short pages */
	color: #777;
	font-size: 0.8em;
	padding: 0;
	margin: 0;
/* position: absolute and bottom: 0 make footer stick at page bottom for short content. 
	note that height should not be too short else there will be gap at bottom. */
	position: absolute;
	bottom: 0;
	
	/* Opera fix for footer disappearing below browser window */
	margin-bottom: 0px;
	margin-top: 150px;
}
div#sitefooter div {
	height: 100%;
	padding: 20px 20px 0 190px;
}


/* =================================================== */
/* ============ Navigation Bar and Menus ============= */
/* =================================================== */

div#sitenavbar {
	display: block;
	width: 148px;
	height: 300px;
	position: absolute;
	top: 200px;
	left: 0px;
	color: white;
}

ul.hovermenu {
	width: 100%;
	padding: 0; /* default padding not 0 */
	margin: 0; /* default margin not 0 */
	text-align: right;
	font-family: "Century Gothic", "Lucida Sans", Verdana, Helvetica, Arial, sans-serif;
	font-weight: normal;
	font-size: 16px;
	list-style-type: none;
	list-style-position: outside;
}
/* Note: all line elements need to have same height 35px and 1 dotted line border
so that they won't move around when the border becomes bright on hover */
ul.hovermenu li {
	display: block;
	border: 0;
	margin: 0;
	margin-bottom: 1px; /* 1px separation for border lightup */
	padding: 0;
	min-height: 30px;
}

/* <=IE6 */
* html ul.hovermenu li {
	height: 30px; /* need this to set correct height */
}

ul.hovermenu li#current-page {
	background-color: #222;
	color: #555;
	display: block;
	border: 0;
	border-bottom: 1px dotted #222;
	padding: 0px 8px 0px;
	line-height: 35px;
	height: 35px;
	margin-bottom: 1px;
	/* margin-top: 1px; 1px separation for border lightup */
}

ul.hovermenu li a, 
ul.hovermenu li a:visited {
	display: block;
	border: 0;
	border-bottom: 1px dotted #222;
	margin: 0;
	padding: 0px 8px 0px;
	text-decoration: none;
	color: #806f86;
}

ul.hovermenu li a:hover, 
ul.hovermenu li a:visited:hover {
	border-bottom: 1px solid #bbb;
	color: #b9a1c2;
}

/* IE 6 and below 
   IE 6 counts the margin outside the border whereas 
   modern browsers include the border in the margin */
* html ul.hovermenu li {
	margin-bottom: 0px;
}
* html ul.hovermenu li#current-page {
	margin-bottom: 0px;
}

/* IE 7 and modern browsers only */
html>body {
	margin-bottom: 1px;
}


ul.hovermenu li a:active {
	color: #806f86;
}



/* Special link to forthcoming event */
ul.hovermenu li ul {
  margin: 0; /* must state margins=0 to keep in correct pos in IE6+ */
  padding: 0 0 10px 0;
  list-style-type: none;
  list-style-position: outside;
}
ul.hovermenu li ul li {
  border: 0;
  padding: 0;
  margin: 0;
  margin-bottom: 1px;
  min-height: 16px;
  font-size: 11px;
  list-style-type: none;
  list-style-position: outside;
}
ul.hovermenu li ul li a, 
ul.hovermenu li ul li a:visited, 
ul.hovermenu li ul li a:focus {
  display: block;
  padding-left: 14px;
  line-height: 16px;
  white-space: normal;
  color: #a5a5a5;
}
ul.hovermenu li ul li a:hover, 
ul.hovermenu li ul li a:visited:hover {
  display: block;
  padding-left: 14px;
  line-height: 16px;
  color: white;
}



/* ============== Nice page breaks for printing ============ */
@media all {
	.print-break { 
		display: none;
	}

	.print-keepwithnext {
/*		display: none; */
	}
}

@media print {
	.print-pagebreak { 
		display: block; 
		page-break-before: always; 
	}
	.print-keepwithnext {
		display: block;
		page-break-after: avoid;
	}
	
	div#sitefooter {
		position: relative;
		display: none;
	}
	
	/* Avoid page breaks straight after a heading. */
	h1, h2, h3, h4, h5, h6 {
		page-break-after: avoid;
	}
	/* Avoid page breaks inside paragraphs, blockquotes, lists, and preformatted text. */
	p, blockquote, ul, ol, dl, pre, td, tr {
		page-break-inside: avoid;
	}
}

/* =============== Book titles ================ */
.book-title {
	font-style: italic;
	white-space: nowrap;
}
.book-author {
	font-style: normal;
	white-space: nowrap;
}
/* if author name inside header it needs to be smaller than the title above */
h1 .book-author, h2 .book-author {
	font-size: small;
	font-style: normal;
}

/*=============== Foreign terms ============== */
.foreign-term {
	font-style: italic;
}

/* ================ Pretty quotes and blockquotes ================= */

blockquote {
/*	background: url(../img/dblquote-start.gif) 10px 0 no-repeat; */
	padding: 0px;
	margin: 0 0 20px 0; /* move the next item further down 
	as double-quote moving up had caused a vacuum on the bottom */
	width: 100%;
	display: block;
	text-align: left;
	float: left;
}
blockquote div.quote-wrapper {	
	padding: 20px;
	background-color: #eeddee;
	text-align: left;
	margin: 10px;
	display: block;
	float: left; /* IE needs this else it will attempt to vertically center elements within it? */
}
img.quote-start {
	margin: 0;
	border: 0;
	position: relative;
	left: 0px;
	top: -10px; /* move it up a bit so the towgay head aligns with the letters.
	make sure the wrapper padding gives enough room within coloured area for this. */	
	vertical-align: top;
	float: left;
	display: inline;
}
img.quote-end {
	position: relative;
	right: 0px;
	bottom: 35px;	/* move it up 35px */
	display: inline;
	float: right;
	margin-bottom: 0px;
}

div.quote-quote {
/*	background: url(../img/dblquote-end.gif) bottom right no-repeat; */
	padding-top: 0px;
	padding-bottom: 0px;
	padding-left: 0px;
	padding-right: 0px;
	margin-top: 0px;
	margin-left: 50px;
	margin-right: 50px;
	margin-bottom: 0px;
	text-align: left;
	font-style: italic;
	display: block;
	margin-bottom: 0px;
}
div.quote-source {
	clear: both;
	text-align: right;
	margin-top: 0px; 
	/* dblquote-end.gif moved up so left a gap. this moves in to fill the gap */
	padding: 0px;
	position: relative;
	bottom: 25px; /* move it up but not until 35px as we want to leave a space
	between the quote and the source */
	margin-bottom: -35px; /* since quote-source moved up, drag the next item up too */
	display: block;
}
div.quote-wrapper p {
	margin-top: .1em;
	margin-bottom: .3em;
}
q:before { content: '\201C'; }
q:after { content: '\201D'; }
q q:before { content: '\2018'; }
q q:after { content: '\2019'; }

/* =========== Drop caps and small caps first line =========== */
/*h1 + p:first-letter, h2 + p:first-letter, 
h1 + blockquote + p:first-letter, h2 + blockquote + p:first-letter,
h1 + img + p:first-letter, h2 + img + p:first-letter,	*/

span.dropcap {
	position: relative;
	font-family: Georgia, "Book Antiqua", "Times New Roman", serif;
	font-size:3em;
	display: inline; /* this fixes the prob of inline images at the side 
	                    causing first line with drop cap to mash up */
	float: left;
	margin-top: 0;
	margin-right: 0.1em;
	margin-bottom: 0.0em;
	padding-top: -0.2em;
	padding-bottom: 0em;
	border: 0;
	line-height: 1em;
	vertical-align: top;
}

/* IE tends to have a larger padding on top of letter
   so need to move the dropped cap up a bit.
   Use some IE hacks */

/* IE 6 and below */
* html span.dropcap {
	bottom: 0.15em;
	margin-right: 0.1em;
}

/* IE 7 only */
html>body span.dropcap {
	bottom: 0.15em;
	margin-right: 0.2em;
}

/* Modern browsers only (Not IE7) */
html>/**/body span.dropcap {
	bottom: 0;
	margin-right: 0.1em;
}

/* Don't have small caps for first line as a name or book name may be split
   between first and second lines
h1 + p:first-line, h2 + p:first-line, 
h1 + blockquote + p:first-line, h2 + blockquote + p:first-line, 
h1 + img + p:first-line, h2 + img + p:first-line {
	font-variant:small-caps;
}
*/

/* ========== Figures and captions ========== */

div.figure {
	float: right;
/*	width: 25%; */
	border: 1px silver solid;
	margin: 0.5em;
	padding: 5px;
	background-color: #fff;
	text-align: center;
}
/*
div.figure p {	for IE only
	margin-bottom: 1em;
	text-align: center;
	font-style: italic;
	text-indent: 0;
	width: expression(document.body.clientWidth > (500/12) * parseInt(document.body.currentStyle.fontSize)?"220px":"auto" );
}
*/

div.figure p { /* if not IE then values will reset here */
	margin: 0;
	text-align: left;
	font-style: normal;
	font-size: 80%;
	line-height: 1.6em;
	text-indent: 0;
	width: auto;
	max-width: 220px;
}
div.figure img {
	margin: 0;
	border: 1px solid silver;
	padding: 0;
	line-height: 0;
}

/* ================= Image links ================= */
a.imglink {
	text-decoration: none;
}
a.imglink img {
	border: 1px solid silver;
}
a.imglink img:hover {
	border: 1px solid blue;
}

/* ================= "Top of page" links ================= */
div.toplink {
  position: absolute;
  margin-left: -192px;
/*  margin-top: 38px;*/
  width: 128px;
  text-align: right;
  /* color matches with mainmenu subsection link */
  color: #a5a5a5;
  font-size: 11px;
}

div#sitecontent div.toplink a {
  display: block;
  padding-right: 20px; /* for image */
  background-image: url(../img/toplink-uparrow-grey.gif);
  background-repeat: no-repeat;
  background-position: center right;
  color: #a5a5a5;
}

div#sitecontent div.toplink a:hover {
  color: white;
  text-decoration: none;
  background-image: url(../img/toplink-uparrow-white.gif);
  border-bottom: 1px solid white;
}

/* Don't print "top of page" link */
@media print { 
  div.toplink { 
    display: none; 
  }
}