/**********************************************************************
* crn styles
**********************************************************************/

body, input, textarea {
    color: #373737;
    font: 300 15px/1.625 "Helvetica Neue",Helvetica,Arial,sans-serif;
	line-height: 1.4;
}

abbr, acronym, dfn {
	border: none;
	cursor: pointer;
}

b, strong {
	font-weight: bold;
}

blockquote {
	margin: 0.75em 20px;
	padding: 8px;
	background: #F0F0F0;
	border: 1px dotted #ccc;
	border-left: 4px solid #ccc;
	border-radius: 8px;
	box-shadow: 2px 2px 4px #C0C0C0;
}

cite {
	font-size: 90%;
	font-style: normal;
}

em {
	color:purple;
	font-weight:bold;
}

h1, h2, h3, h4, h5 {
	page-break-after: avoid;
	font-weight: bold;
}

h1 {
	width: 90%;
	margin: 0.5em auto;
	color: blue;
	font-weight: normal;
	font-size: 200%;
	text-align: center;
}
h2 {
	margin: 1.0em 1em 0.25em;
	color: #007000;
	font-size: 140%; 
	font-style: italic; 
}
h3 {
	margin:1.0em 1em 0.3em;
	color:#000060;
	font-size:115%;
}
h4	{ margin:1.0em 1em 0.2em; font-size:104%;					}
h5	{ margin:0.5em 1em 0.2em; font-size:100%;					}

h2+h3	{ margin-top:0.25em;		}
h2+h4	{ margin-top:0.25em;		}
h3+h4	{ margin-top:0.25em;		}

p {
	margin-top: 0.1em;
	margin-bottom:0.1em;
}
p+p		{ text-indent:1.5em;	}
p.ni	{ text-indent:0;		}

p.dent	{ text-indent:1.5em;	}

pre {
	padding: 8px;
	margin: 0.75em 1em;
	background: #F4F4F4;
}
div.pstd p		{ text-indent:0em;		margin-top:1.0em;	margin-top:1.0em;	}
div.pcrn p		{ text-indent:0em;		margin-top:0.1em;	margin-top:0.1em;	}
div.pcrn p+p		{ text-indent:1.5em;	margin-top:0.1em;	margin-top:0.1em;	}


li.even		{ }
li.odd		{ background-color:#E0E0F0;	}
li.author	{ background-color:#D8D8E0; border: solid #8C8 1px;	}

.oops	{ color:purple; font-weight:bold;	}

sup { 
	position: relative;
	bottom: 0.5em;
	font-size: 70%;
	line-height: 0;
	vertical-align: baseline;
}
sub {
	position: relative;
	top: 0.5em;
	font-size: 70%;
	line-height: 0;
	vertical-align: baseline;
}


code	{ color:#404040; font: 110% "Courier New", Courier, monospace;	}
tt		{ color:#700000;	}
dfn		{ font-style:italic; font-weight:bold;		}

/* lists */
dd		{ margin-left: 1em; margin-bottom: 0.25em;	}
dt		{ font-weight: bold; font-size: 114%; 		}
dt.spec	{ color:blue; }

/* --- tables --- */

table {
	border-spacing: 0px;
}

th, td {
	padding: 2px;
	vertical-align: top;
}

caption {
	caption-side: bottom;
	font: 80% Arial sans-serif;
	text-align: left; 
	margin: 2px 0 0 20px;
}

ul, ol {
	margin: 0.25em 0;
	padding: 0em 1.5em;
}

/* blah */
.sm {
	margin-top:0;
	margin-bottom:0; 
}

/* --- Note styles --- */

.fnote a {
	text-decoration: none;
}
.fnote a:hover {
	text-decoration: underline;
}

div.footnotes {
	font-size: 80%;
}

.note {
	margin: 0.75em auto;
	width: 95%;
	padding: 8px;
	background-color:#E0E0F0;
	border: 2px solid red;
	border-radius: 8px;
	box-shadow: 2px 2px 4px #808080;
}

div.nh, div.nhgood, div.nhbad, div.nhcare {
	margin: 0em 0.5em .1em;
	font-size:115%;
	font-weight:bold;
}
div.nhgood	{ color:green;		}
div.nhbad 	{ color:red;		}
div.nhcare	{ color:#C06000;	}


/* --- The all important code listing styles --- */
.proglist {
	width: 95%; 
	padding: 8px;
	margin: 0.75em 1em;
	background: #F4F4F4;
	border: 1px solid #C0C0C0;
	border-radius: 4px;
	box-shadow: 2px 2px 4px #C0C0C0;
	font: 95% "Courier New", Courier, monospace;
	letter-spacing: 0;
}

.keyw	{ color: blue;		}
.mini	{ font-size: 80%;	}
.cmt	{ color:green;		}
.str	{ color:purple;		}
.num	{ color:magenta;	}
.rem	{ color:red;		}
.rembad		{ color:red;	font-weight:bold;	}
.remgood	{ color:green;	font-weight:bold;	}
.shade	{	opacity:0.3; filter:alpha(opacity=30); }


/* --- Geshi styles --- */
.kw1, .kw4				{ color:blue;		}
.co1, .co2, .co3, .co4, .coMULTI	{ color:green;		}
.st0, .st1, .st_h		{ color:purple;		}
.nu0, .nu1				{ color:magenta;	}
.re1, .re2				{ color:blue;		}


/* --- table block styles --- */
/* yes, table and caption forms are required */

div.reg			{	margin: 8px auto;	text-align:center;	width:90%;	}
div.reg table		{	margin: 1px auto;	text-align:left;	}
div.reg caption	{	margin: 0px auto;	text-align:left;	}

.cblock			{	margin: 0.75em auto;	}
.lblock			{	margin: 0.75em 3em;	}

tr.rnum td, tr.rnum th	{	text-align:right;	}


/* --- reg table --- */
table.reg {
	font: 90% "Courier New";
	background: #E0E0E0; border: solid #C0C0C0 1px;
	page-break-inside: avoid;
}
caption.reg {
	caption-side: top;
	margin: 0 0 2px 20px;
}

tr.bits, tr.bf, col.bits, col.bf, col.def { text-align:center; }

col.bits, col.bf, col.def	{	vertical-align:top;					}
tr.bits, col.bits			{ font: 90% "Courier New", monospace;	}
tr.bf, col.bf				{ font-weight:bold;						}
col.def					{ font: 90% "Courier New", monospace;	}

tr.bg0, tr.bg1	
{
	border: 2px #C0C0C0 solid;
/*	opacity:0.75; filter:alpha(opacity=0);	*/
}
tr.bg0,td.bg0, th.bg0		{	background-color:#E0E0E0;			}
tr.bg1,td.bg1, th.bg1		{	background-color:#C0C0C0;			} 
tr.bg0 td	{	border-bottom: 1px solid #C0C0C0;	} 
tr.bg1 td	{	border-bottom: 1px solid #E0E0E0;	} 


/* read only, write only */
.rof	{ text-decoration:overline;  color:red;  }
.wof	{ text-decoration:underline; color:blue; }

/* reg colors */
.rclr0	{ color:red;		}
.rclr1	{ color:blue;		}
.rclr2	{ color:#006000;	}
.rclr3	{ color:magenta;	}
.rclr4	{ color:brown;		}
.rclr5	{ color:olive;		}
.rclr6	{ color:purple;		}
.rclr7	{ color:#C06000;	}
.rclr8	{ color:teal;		}
.rclr9	{ color:gray;		}


/* --- 'equation tables' --- */
.eqtbl {
	margin: 0.75em 0;
	font-size: 100%;
	page-break-inside: avoid;
	line-height: 1;
	vertical-align: middle;
}
.eqcell {
	padding: 4px 0;
	font-size:115%;
	vertical-align: middle;
}

.eqnrcell {
	min-width: 2.5em;
	padding-right: 8px; 
	font-weight: bold;
	text-align: left; 
	vertical-align: middle;
}

/* --- Border styles --- */

.bdr, tr.bdr th, tr.bdr td
{ border: 			1px black solid;	}

.bdrT, .bdrTL, .bdrTR,
tr.bdrT th, tr.bdrTL th, tr.bdrTR th
tr.bdrT td, tr.bdrTL td, tr.bdrTR td
{ border-top:		1px black solid;	}

.bdrL, .bdrTL, .bdrBL,
tr.bdrL th, tr.bdrTL th, tr.bdrBL th
tr.bdrL td, tr.bdrTL td, tr.bdrBL td
{ border-left:		1px black solid;	}

.bdrR, .bdrTR, .bdrBR,
tr.bdrR th, tr.bdrtr.h, tr.bdrBR th
tr.bdrR td, tr.bdrtr.d, tr.bdrBR td
{ border-right:		1px black solid;	}

.bdrB, .bdrBL, .bdrBR,
tr.bdrB th, tr.bdrBL th, tr.bdrBR th
tr.bdrB td, tr.bdrBL td, tr.bdrBR td
{ border-bottom:	1px black solid;	}

.bdr2						{ border:        2px black solid;	}
.bdrT2, .bdrTL2, .bdrTR2	{ border-top:    2px black solid;	}
.bdrL2, .bdrTL2, .bdrBL2	{ border-left:   2px black solid;	}
.bdrR2, .bdrTR2, .bdrBR2	{ border-right:  2px black solid;	}
.bdrB2, .bdrBL2, .bdrBR2	{ border-bottom: 2px black solid;	}


/* --- Caption frames --- */
div.cpt, div.cptc, div.cptfl, div.cptfr {
	margin: 0.75em;
	padding: 4px;
	border: black 1px solid;
	font-size: 80%; 
	page-break-inside: avoid;
}

div.cptc {
	margin: 0.75em auto;
}

div.cptfl	{ float:left;	}
div.cptfr	{ float:right;	}

a img {
	border: 0px;
	max-width: 100%;
}

/* Margins inside tables work differently. */
td div.cpt, td div.cpt_fl, td div.cpt_fr {
	margin: 0;
}

/* Begin Images */

p img {
	padding: 0;
	max-width: 100%;
}

/*	Using 'class="alignright"' on an image will (who would've
	thought?!) align the image to the right. And using 'class="centered',
	will of course center the image. This is much better than using
	align="center", being much more futureproof (and valid) */

img.centered
{
	display: block;
	margin-left: auto;
	margin-right: auto;
}

img.alignright
{
	padding: 4px;
	margin: 0 0 2px 7px;
	display: inline;
}

img.alignleft
{
	padding: 4px;
	margin: 0 7px 2px 0;
	display: inline;
}

.alignright	{	float: right;		}
.alignleft	{	float: left			}

/* debug */
.dbg	{	border: 1px solid red;	}


/**********************************************************************
* WP overrides
**********************************************************************/

#site-title {
	padding: 0 0 0 0;
}

#site-description {
	margin: 0 0 20px 0;
}

#branding #searchform {
	top: 1em;
}

#access ul ul {
	margin: 0;
	padding: 0;
	min-width: 256px;
}

#access ul ul li {
	float: none;
}

#access ul ul a {
	display: block;
	width: auto;
}

#page {
	margin: 0 auto;
	max-width: none;
	min-width: 980px;
}

#primary {
	width: 768px;
	margin: 0;
}

#secondary {
	width: 192px;
	margin: 0;
	padding: 0 0 0 20px;
}

#content {
	margin: 0 0 0 0px;
	padding: 20px;
	width: auto;
}

#content nav {
	padding: 0;
}

.entry-header {
}

h1.entry-title {
	margin: 0;
	padding: 0;
	text-align: center;
	text-shadow: 2px 2px 2px #A0A0A0;
}

.entry-meta .post-categories {
	display: inline-block;
	margin: 0;
	padding: 0;
}

.entry-meta .post-categories li {
	display: inline;
	margin: 0;
	padding: 0;
}

.entry-content, .entry-summary {
	padding: 1.625em 0 10px;
}

.singular .entry-content, .singular .entry-summary {
	padding-top: 0;
}


.entry-content h1 {
	margin: 0 0 0.5em 0;
	text-shadow: 2px 2px 2px #A0A0A0;
}

.commentlist {
	width: 80%;
	padding: 0 0 0 105px;
}

.commentlist>li.comment {
	padding: 10px;
}

.commentlist>li p {
	margin-bottom: 10px;
	text-indent: 0;
}

.commentlist > li.bypostauthor {
    background: none repeat scroll 0 0 #DDDDDD;
    border-color: #83D3D3;
}

#respond {
	width: auto;
	margin: 0 20px;
	padding: 10px 20px 20px 20px;
}

#respond h3 {
	margin: 0;
}

#respond p {
	margin: 0 0 1.625em 0;
	font-size: 12px;
	text-indent: 0px;
}

#respond .comment-form-author label, #respond .comment-form-email label, 
#respond .comment-form-url label, #respond .comment-form-comment label {
	position: absolute;
	top: 4px;
}
#respond .comment-form-author .required, #respond .comment-form-email .required {
    left: 0;
    top: 0;
}

#respond input#submit {
	left: -10px;
}



.singular .hentry {
	padding: 0;
}
.singular.page .hentry {
	padding-top: 20px;
}
