/* reset! */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}

/* remember to define focus styles! */
a:focus {
	outline: 1px dotted #000;
}

abbr[title], dfn[title] {
	border-bottom:1px dotted #000;
	cursor:help;
}

del {
	text-decoration: line-through;
}

table {
	border: 1px solid #000;
	background-color: inherit;
	color: #000;
	margin-left: auto;
	margin-right: auto;
}

td, th {
	border-top: 1px solid #000;
	border-right: 1px solid #888;
	border-bottom: 1px solid #888;
	border-left: 1px solid #000;
	padding: .25em;
}

/* html5 stuff */
article, section, header, footer, nav {
	display: block;
}

/* default things */

body {
	font-family: Verdana, Arial, Helvetica, sans-serif; 
	color :#000;
	line-height: 1.5;
	background-color: #ffa;
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#ffa), to(#ff6));
	background: -moz-linear-gradient(top, #ffa, #ff5);
}

p {
	margin: 1.15em auto;
}

ol, ul {
	margin: 0 0 1.25em 1.25em;
	padding: 0;
}

li {
	margin: 0;
	padding: .3em 0;
}

a {
	color: #34d;
	text-decoration: underline;
}

a:visited {
	color: #804180;
}

a:hover, a:active, a:focus {
	color: #b12;
}

a img {
	border: 0;
}

/* highlight language differences */
body *[lang] {
	font-style: italic;
}

blockquote, q, p.quote {
	quotes: none;
	text-align :justify;
	margin-left: 3em; 
	margin-right: 3em;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

p.citation {
	text-align: right; 
	margin-right: 3em; 
}

li blockquote, li p.citation {
	font-size:inherit;
}

.annotation{
	padding-left: 3em;
	padding-right: 3em;
	font-style: italic;
}

/* navigation and layout */

#wrapper {
	width: 900px;
	margin: .5em auto;
	position:relative; 
}

#wrapper.single {
	width: 760px;
}

#wrapper > header {
	display: block;
	border-top: 1px solid #000;
	border-left: 1px solid #000;
	border-right: 1px solid #000;
}

#wrapper > header nav div {
	padding: .6em;
	float: right;
}

#wrapper > header nav ul {
	margin: -6px 0 0 0;
	padding: .6em 0;
	text-align: center;
	background-color: #bbb;
	border-bottom: 2px solid #999;
}

#wrapper > header nav li {
	display: inline;
	margin: 0;
	padding: 0;
	line-height: 1.6em;
}

#wrapper > header nav li a {
	padding: .3em .5em;
	background-color: #900;
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#c00), to(#900));
	background: -moz-linear-gradient(top, #c00, #900);
	font-size: .9em;
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px 2px #444;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}

#wrapper > header nav li a:hover, #wrapper > header nav li a:focus {
	background-color: #600;
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#a00), to(#600));
	background: -moz-linear-gradient(top, #a00, #600);
}

#wrapper > aside, #aside {
	display: block;
	position: fixed;
	width: 215px;
	word-wrap: break-word;
}

#aside, #wrapper > aside.tall {
	position: absolute;
	left: 0;
}

#wrapper > aside h2, #aside h2 {
	text-align: center;
	font-size:1.25em;
	margin: .75em 0 0 1px;
	padding: .7em .5em;
	border-radius: 0 13px 0 0;
	-webkit-border-radius: 0 13px 0 0;
	-moz-border-radius: 0 13px 0 0;
	border-top: 2px solid #369;
	border-right: 2px solid #369;
	border-bottom: 2px solid #369;
	background: #69c; 
	background: -webkit-gradient(linear, 0 0, 0 120%, from(#ccc), to(#58b));
	background: -moz-linear-gradient(top, #ccc, #58b);
}

#wrapper > aside ul, #aside ul {
	list-style-type: none;
	margin: 0 0 0 1px;
	padding: 0;
}

#wrapper > aside li, #aside li {
	margin: 0;
	padding: 0;
	border-bottom: 2px solid #369;
	border-right: 2px solid #369;
	background: #69c; 
	background: -webkit-gradient(linear, 0 0, 0 120%, from(#ccc), to(#58b));
	background: -moz-linear-gradient(top, #ccc, #58b);
	color: #000;
	font-weight: bold;
}

#wrapper > aside li a, #aside li a {
	display: block;
	font-size: .9em;
	padding: .8em .5em;
	color: #000;
	text-decoration: none;
}

#wrapper > aside li.current, #aside li.current {
	padding: .8em .5em;
}

#wrapper > aside li a:hover, #wrapper > aside li a:focus, #wrapper > aside li.current, #aside li a:hover, #aside li a:focus, #aside li.current {
	color: #fff;
	text-shadow: 1px 1px 2px #000;
	background: #333;
	background: -webkit-gradient(linear, 0 0, 0 120%, from(#333), to(#68c));
	background: -moz-linear-gradient(top, #333, #68c);
}

#wrapper > aside ul li:last-child, #aside ul li:last-child {
	border-radius: 0 0 13px 0;
	-webkit-border-radius: 0 0 13px 0;
	-moz-border-radius: 0 0 13px  0;
}

#content {
	display: block;
	border-left: 1px solid #000;
	border-right: 1px solid #000;
	padding: .75em 2em 1em 225px;
	min-height: 25em;
	word-wrap: break-word;
	background-color:#FFF;
}

#wrapper.single #content {
	padding: .75em 3em 1em 3em;
}

#wrapper > footer {
	display: block;
	position: relative;
	border-top: 1px solid #000;
}

/* Messing with text */

h1 {
	clear: both;
	font-size: 1.5em; 
	color: #900;
	text-align:center; 
	line-height:1.5em;
	margin-bottom: .5em;
}

h2 {
	font-size:1.3em; 
	text-align:center; 
	line-height:1.2em;
	margin: .5em auto;
}

h3 {
	font-size:1.15em;
	font-weight: bold;
	margin: .5em auto;
}	

h4 {
	font-size: 1.1em;
	font-weight:bold;
	text-align:left;

}

h4 + p {
	padding-top: 0;
	margin-top: 0;
}

h5 {
	font-weight:normal; 
	font-style:italic;
}

h6 {
	font-weight: normal;
}

.center {
	text-align:center;
	margin: inherit auto;
}

.right {
	text-align: right;
}

footer ul.tiny li {
	list-style-type: none;
	display: inline;
	margin: auto 2em;
}

.tiny {
	font-size: .65em;
	margin: 0;
	padding: 0;
}

.announcement {
	font-size: 1em;
	padding: 1em;
	background-color: #9CF;
	border: 2px solid #369;
	text-align: center;
	font-weight: bold;
	margin-left: auto;
	margin-right: auto;
}

.apa {
	padding-left: 3em;
	text-indent: -3em;
}

/* various bits used on pages */

#search {
	font-size: .9em;
}

#search article {
	position: relative;
	margin: 1em;
	padding: .5em .5em .5em 3em;
	text-indent: -2.5em;
	border: 1px solid #888;
	background-color: #ffe;
}

#search article:hover {
	background-color: #ffd;
}

#search nav {
	border:2px solid #888;
	padding: .5em;
}

/* the right nav */
#search nav p {
	float: right;
	width: 50%;
	text-align: right;
	margin-top: 1em;
	padding-top: 0;
}

#search nav p+p {
	float: none; 
	margin-right: 50%;
	text-align: left;
}

#rotated {
	position :relative;
}

#rotated p strong {
	margin-left: 17em;
}

#rotated p span {
	position: absolute;
	width: 17em; 
	text-align: right;
}

/* redo these */
#atoz {
	margin: 1em auto; 
	font-weight: bold; 
	text-align: center; 
}

#atoz li {
	display: inline;
	line-height: 2em;
}

#atoz li a {
	padding: .25em .75em; 
	letter-spacing: normal;
	border: 2px solid #000;
	border-radius: 10px;
}

#atoz li a:hover {
	background-color:#eee;
}

#faq ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

#faq li {
	padding-bottom: 1em;
}

#faq ul li: first-letter {
	font-weight: bold;
	color: #900;
	background-color: #FFF;
	font-size: 1.1em;
}

#faq li+li {
	padding-left: 1.5em;
}

/*For lists inside FAQs*/
#faq ul li * li: first-letter {
	font-weight: inherit;
	color: inherit;
	background-color: inherit;
	font-size: inherit;
} 

#faq li * li+li {
	padding-left: 0;
}

ol.upper {
	list-style-type: upper-alpha;
}	

ol.lower {
	list-style-type: lower-alpha;
}

ol.upperroman {
	list-style-type: upper-roman;
}

ol.lowerroman {
	list-style-type: lower-roman;
}

ul.space li, ol.space li, li.space {
	padding-bottom: 1em;
}

ul.space li li, ol.space li li, ul.space li p, ol.space li p, li.space p, ul.space li ul.example li {
	padding-bottom: 0;
	margin-bottom: 0;
}

ul.nav li {
	text-align: center;
	display: inline;
	font-size: .9em;
}

/* forms! */

#formwrapper {
	width: 95%;
	min-width: 440px;
}

#formwrapper form {
	border-top: 1px solid #ccc;
	border-right: 2px solid #ccc;
	border-bottom: 2px solid #ccc;
	border-left: 2px solid #ccc;
}

#formwrapper form label {
	width: 14em;
	float: left;
	font-size: .75em;
	margin: 0 .5em;
}

#formwrapper div.clearfix {
	border-top: 1px solid #ccc;
	padding: .3em 0;
	vertical-align: top;
}

#formwrapper div.clearfix p {
	font-size: .75em;
	margin: 0 .5em;
}

#formwrapper fieldset div.clearfix,#formwrapper fieldset+div.clearfix {
	border-top: 0;
}

input, select, textarea {
	background-color: #fff;
	color: #000;
	border: 1px solid #69c;
}

input, textarea {
	padding-left: .3em;
}

* html input, * html textarea {
	padding-left: 0;
}

/* For IE */
input: focus, input: hover, select: focus, select: hover, textarea: focus, textarea: hover {
	background-color: #f0f8ff;
	color: #000;
}

#formwrapper div.buttongroup {
	float: left;
	border: 0;
	padding: 0;
}

#formwrapper div.buttongroup div.clearfix {
	border: 0;
	padding: 0;
}

#formwrapper div.buttongroup div {
	margin-bottom: .2em;
}

#formwrapper div.buttongroup input {
	margin-right: 3em;
}

#formwrapper div.buttongroup .clearfix {
	clear:both;
}

#formwrapper form .querywrapper label {
	width: auto;
	position: relative;
}

#formwrapper form .querywrapper {
	padding-left:  .5em;
	border-bottom: 1px solid #ccc;
	position: relative;
}

#formwrapper div.querywrapper div {
	position: absolute;
	top: 0;
	left: 1.5em;
	padding-top: 0;
	padding-bottom: 0;
	width: 20%;
	border-top: 0;
}

#formwrapper div.querywrapper div.query {
	left: 7em;
}

#formwrapper div.querywrapper  div.field {
	left: 23.5em;
}

#formwrapper div.querywrapper p {
	padding-top: 3em;
}

#formwrapper fieldset {
	display: block;
}

/*Aslett Clearing Method*/	
.clearfix: after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

* html .clearfix {
	height: 1%;
}

.clearfix {
	display: block;
}

/* this is dumb but so am I 
   (it's not used anywhere publicly on the site; 
   otherwise it'd be super inaccessible) */
pre a, pre a:visited {
	text-decoration: none;
	color: inherit;
}

