body {
	background: #f9f8f3 url('bg.png');
	font: 15px Georgia, sans-serif;
	color: #222;
	line-height: 140%;
	margin: 0;
	padding: 0;
}

/* --- Header --- */

#header  {
	width: 810px;
	margin: 30px auto;
	background: #4d6ca0;
	height: 44px;
	-moz-box-shadow: 0 1px 2px #ccc;
	-webkit-box-shadow: 0 1px 2px #ccc;
	box-shadow: 0 1px 2px #ccc;
}

#site_title {
	font: 38px Georgia;
	height: 68px;
	width: 210px;
	line-height: 68px;
	padding: 0 15px;
	color: white;
	float: left;
	margin-top: -12px;
	margin-left: 40px;
	background: #d2c4a0 url('fai_title.png') center center no-repeat;
	text-indent: -8000px;
	overflow: hidden;
	-moz-box-shadow: 0 1px 1px #ccc;
	-webkit-box-shadow: 0 1px 1px #ccc;
	box-shadow: 0 1px 1px #ccc;
}

#site_title a { display: block; }

ul#nav {
	list-style: none; 
	padding: 10px;
	height: 30px;
	margin-right: 20px;
	text-align: right;
	font: 14px Verdana;
	/*text-shadow: 1px 1px 0 #444;*/
}

ul#nav li {
	display: inline-block;
	*display: inline;
	vertical-align: middle;
	zoom:1;
}

ul#nav a, ul#nav a:link {
	color: #fcfcfc; 
	text-decoration: none; 
	padding: 3px 7px;
	display: block;
}
ul#nav #selected { background: #6993d7; color: #e9f1fa; }
ul#nav a:visited { color: #fcfcfc; text-decoration: none; }
ul#nav a:hover { background: #6993d7; color: #e9f1fa; }


/* --- Content --- */

#wrap {
	width: 810px;
	background: white;
	margin: 0 auto;
	border-top: 1px solid #e8e8e8;
	-moz-box-shadow: 0 1px 2px #ccc;
	-webkit-box-shadow: 0 1px 2px #ccc;
	box-shadow: 0 1px 2px #ccc;
}

#content {
	padding: 1px 40px 10px 40px;
}


#content a, #content a:link { color: #006eb5; line-height: 160%; text-decoration: none; border-bottom: 2px dotted #dde5ef;  }
#content a:visited { color: #004978; }
#content a:hover { color: #9b7231; background: #f6f8e5; padding: 3px 0; text-decoration: none; border: none; }

h1 {
	font: 58px Georgia;
	height: 150px;
	line-height: 210px;
	padding: 0 40px;
	color: #3382d3;
	vertical-align: bottom;
	background: #f6f6f6;
	margin: 0 0 0px 0;
	text-shadow: 0px 1px 1px #fff;
	border-bottom: 8px solid #dde5ef;
	position: relative;
	white-space: nowrap;
}

h1:before {
	content: "";
	font: 16px Courier New, Courier;
	line-height: 16px;
	color: #dfdfdf;
	text-align: right;
	display: block;
	position: absolute;
	padding: 10px 40px;
	margin-left: -40px;
	background: url('dots.png') bottom left no-repeat;
	width: 730px;
	word-wrap: break-word;
	text-shadow: none;
	white-space: normal;
}
h1#bibliography:before { content: "010000100110100101100010011011000110100101101111011001110111001001100001011100000110100001111001"; }
h1#faq:before { content: "0100011001110010011001010111000101110101011001010110111001110100011011000111100100100000010000010111001101101011011001010110010000100000010100010111010101100101011100110111010001101001011011110110111001110011"; }
h1#people:before { content: "0100011001110010011010010110010101101110011001000110110001111001001000000100000101001001001000000101010001101000011010010110111001101011011001010111001001110011"; }
h1#index:before { content: "0100000101100010011011110111010101110100001000000100011001110010011010010110010101101110011001000110110001111001001000000100000101001001"; }
h1#media:before { content: "01001100011010010110111001101011011100110010000000100110001000000100110101100101011001000110100101100001"; }

h3 {
	font: 34px Georgia;
	color: #555;
	margin: 75px 0 25px -40px;
	padding-left: 30px;
	border-left: 10px solid #dde5ef;
}

h3.media {
	font: 28px Georgia;
	border: none;
	color: #555;
	background: #f6f6f6;
	margin: 40px -40px 20px -40px;
	padding: 5px 40px;
}
h3.media:first-child { margin-top: 30px; }

h3.media#video:before,
h3.media#audio:before,
h3.media#links:before {
	content: "";
	width: 46px;
	height: 33px;
	display: block;
	float: left;
	margin-right: 10px;
}

h3.media#video:before { background: url('icon_video.png') center left no-repeat; }
h3.media#audio:before { background: url('icon_audio.png') center left no-repeat; }
h3.media#links:before { background: url('icon_links.png') center left no-repeat; }

h4 {
	font: 24px Georgia;
	color: #444;
	margin: 50px -40px 20px -40px;
	padding: 3px 40px;
	background: #f3fafc;
}

h3:first-child { margin-top: 30px; }

h5 {
	font:  21px Georgia;
	margin: 50px 0 10px 0; 
	color: #1b5699;
}

h6 {
	font:  16px Georgia;
	margin: 40px 0 15px 0; 
	color: #1b5699;
}

#content sup, 
#content sup a:link, 
#content sup a:hover { 
	line-height: 40%;
	padding: 0;
}

blockquote {
	padding: 1px 6px;
	background: #fbfae8;
}
blockquote p { padding: 0; margin: 6px; }

#content a img { border: none; }
#content a:hover + img { background: none; }

p.center { text-align: center; }

td { background: #f8f8f8; }

/* --- Footer --- */

#footer {
	font: 15px Georgia;
	width: 730px;
	margin: 15px auto 20px auto;
	background: #4d6ca0;
	color: #CFD9E9;
	padding: 5px 40px;
	clear: both;
	text-align: center;
	-moz-box-shadow: 0 1px 2px #bbb;
	-webkit-box-shadow: 0 1px 2px #bbb;
	box-shadow: 0 1px 2px #bbb;
}

#footer a, #footer a:link { color: #f1f1f1; }
#footer a:hover { color: #fff; }

#footer p { margin: 6px 0; }

form { color: #CFD9E9; display: inline; }

input { 
	background: #7E97C0; 
	border: none; 
	color: white;
	border: 1px solid #7E97C0;
	display: inline;
	margin-left: 2px;
}
input:hover,
input:focus { background: #CFD9E9; color: #111; }
input:focus { border: 1px solid white; }


/* --- Index page --- */

#link_boxes {
	margin: 30px -40px -15px -40px;
	padding: 0 40px;
	height: 180px;
	background: #f6f6f6;
}

#link_boxes a.box, 
#link_boxes a.box:link {
	width: 160px;
	height: 150px;
	float: left;
	display: block;
	background: #f6f6f6;
	border: none;
	text-align: center;
	padding: 15px 11px;
}
#link_boxes a.box:hover { background: #efecd9; padding: 15px 11px; }

#link_boxes .title { font: 24px Georgia; color: #222; }

#link_boxes p { margin: 0 0 10px 0; line-height: 100%; color: #999; }

#link_boxes + h3 { margin-top: 50px; }

/* --- People page --- */

.profile {
	width: 320px;
	height: 98px;
	float: left;
	background: #f8f8e5;
	margin: 40px 40px 20px 0;
	position: relative;
	box-shadow: 1px 0 1px #ccc;
	font: 14px Arial, sans-serif;
}

/* clearfix*/
#profiles:before,
#profiles:after {
	content:"";
	display:table;
}
#profiles:after {clear: both;}
#profiles {zoom: 1;} /* IE < 8 */

.profile img {
	float: left;
	position: relative;
	top: -42px;
	margin: 8px 0 2px 0;
	border: 3px solid #f4f4f4;
	-moz-box-shadow: 0 0 2px #bbb;
	-webkit-box-shadow: 1px 2px 0 #ddd;
	box-shadow: 2px 0 2px #726d61;
}

#content a.name, 
#content a.name:link  {
	font: 22px Georgia;
	background: #c7b075;
	color: white;
	text-decoration: none;
	border: none;
	display: block;
	padding: 5px 5px 5px 122px;
	text-shadow: 1px 1px 0 #606060;
}

#content a.name:hover { background: #a68957; }

.profile  p {
	margin: 0 0 0 115px;
	padding: 7px;
	line-height: 150%; 
}

/* --- Media Queries --- */

@media all and (max-width: 790px) {
	html, body { overflow-x: hidden; }
	
	#header, #wrap, #footer { width: 100%; }
	
	#site_title { margin-left: 10px; }
	
	ul#nav { font-size: 12px; line-height: 18px; margin-right: 5px; }
	
	ul#nav a, ul#nav a:link { padding: 3px 2px; }
	
	h1 { font-size: 44px; height: 100px; line-height: 100px; text-align: center; padding: 0 5px; white-space: normal; }
	h1:before { content: "" !important; background: none; }
	
	#content { padding: 1px 20px 10px 20px; overflow: hidden; }
	
	.profile { margin: 40px 10px 20px 0; }
	
	#footer { padding: 7px 0; }
	
	#link_boxes a.box, #link_boxes a.box:link { width: 24%; padding: 7px 1px; font-size: 12px; height: 146px; }
	#link_boxes a.box:hover { padding: 7px 1px; }
	#link_boxes .title { line-height: 22px; }
	
	#link_boxes { margin-left: -60px; margin-right: -70px; height: 160px; }

}

@media all and (max-width: 590px) {
	#header  { height: 95px; margin: 0; padding: 0;}
	#site_title { float: none; width: 100%; padding: 0; margin: 0; height: 55px; }
	ul#nav { width: 100%; text-align: center; padding: 8px 0; margin: 0; }
	
	h1 { line-height: 50px; height: auto; padding: 10px 0; white-space: normal; }
	
	#content { padding: 1px 10px 10px 10px; }
	
	#link_boxes { height: auto; padding: 0; margin: 0 -10px 0 -10px; }
	#link_boxes .title { font-size: 22px; }
	#link_boxes a.box, #link_boxes a.box:link { float: none; width: 100%; height: auto; padding: 1px 15px; margin: 0; }
	#link_boxes a.box:hover { padding: 1px 15px; }
}