/*
	Reset thanks to:
	* http://developer.yahoo.com/yui/reset/
	* http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
	* Plus my own ideas on the matter :)
*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,p,blockquote,th,td { 
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
h1,h2,h3,h4,h5,h6 {
	font-size: 100%;
	font-weight: bold;
}

p {
	margin: 1em 0;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
caption {
	margin: 0;
	padding: 1.5em 0 .5em 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
th, td {
	border: 1px solid #ccc;
	border-width: 1px 0;
	padding: .5em 1.5em;
}
thead th {
	border-top: none;
	background: #efefef;
}
td ul {
	margin: 0;
	padding: 0;
}


fieldset,img { 
	border: 0;
}
address,caption,cite,code,dfn,em,strong,th,var {
	font-style: normal;
	font-weight: normal;
	font-size: 1em;/*?*/
}
strong, caption {
	font-weight: bold;
}
em,cite,q,dfn {
	font-style: italic;
}
ol,ul {
	padding-left: 2em;
}
ol, ul {
	margin: 1em 0;
}
ol ul, ol ol,
ul ul, ul ol {
	margin: 0;
}

caption,th {
	text-align: left;
}
q:before,q:after {
	content: '';
}
abbr,acronym { border:0; }
:focus {
	outline: 0;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}
blockquote {
	border-left: .3em solid #ccc;
	padding-left: 2em;
}



/* General content styles */
body {
	line-height: 1.5;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 85%;
}
h1,h2,h3,h4,h5,h6 {
	margin: 1.5em 0 .5em;
	font-weight: normal;
}
h1 {
	font-size: 2.8em;
	margin-top: 0;
}
h2 { font-size: 2.2em; }
h3 { font-size: 1.6em; }
h4 {
	font-size: 1.4em;
	font-weight: bold;
}
h5 {
	font-size: 1em;
	font-weight: bold;
}
h6 {
	font-size: 1em;
	font-style: italic;
}

a,
a:link,
a:visited {
	color: #0066CC;
	text-decoration: underline;
}
a:hover {
	color: #114477;
	text-decoration: underline;
}


h1 a,
h1 a:link,
h1 a:visited,
h2 a,
h2 a:link,
h2 a:visited,
h3 a,
h3 a:link,
h3 a:visited,
h4 a,
h4 a:link,
h4 a:visited {
	text-decoration: none;
}


dt {
	font-weight: bold;
}

code {
	font-family: "Courier New", Courier; /* can't use monospace on the end, causes bug in WebKit: http://archivist.incutio.com/viewlist/css-discuss/103622 */
}


.postmetadata {
	font-size: 80%;
	padding: .5em 1em;
	background-color: #efefef;
	border-bottom: 1px solid #ccc;
	overflow: hidden;
}
.postmetadata dt,
.postmetadata dd {
	float: left;
	margin: 0 1em 0 0;
}
.postmetadata dd {
	margin-right: 2em;
}


#content .section {
	margin: 3em 0;
}

.section.download {
	padding: 1em;
	background: #efefef url(/assets/images/download-arrow.png) no-repeat scroll right top;
}
.section.download h2 {
	margin-top: .5em;
}


.warning {
	background: #fee url(/assets/images/warning-48.png) 10px center no-repeat;
	margin: 0;
	padding: .1em 1em .1em 70px;
}
.warning h2,
.warning h3,
.warning h4 {
	margin-top: .5em;
}

del {
	text-decoration: line-through;
	color: #f00;
}

ins {
	text-decoration: none;
	font-style: italic;
	color: #090;
}

/* intra-page links */
a[href^="#"] {
	color: #090;
	text-decoration: underline;
}





/* Code styles */

/* Code styles */
/* non active syles */
	pre code {
		display: block;
		white-space: pre;
		background: #efefef;
		border: .3em solid #ccc;
		border-width: 0 0 0 .3em;
		margin: 1em 0;
		padding: .5em 1em;
		overflow: auto;
	}
	
/* active styles */
	pre.active-code-block {
		background-color: #efefef;
		overflow: hidden;
		border: 1px solid #ccc;
		white-space: normal;
	}
	pre.active-code-block code,
	pre.active-code-block .line-numbers {
		margin-top: 0;
		padding-top: .5em;
		white-space: normal;
	}
	
	pre.active-code-block code {
		background-color: #fff;
		display: block;
		overflow: auto;
		margin-left: 0;
		margin-right: 0;
		margin-bottom: 0;
		padding-left: 0;
		padding-right: 0;
		padding-bottom: .5em;
		border: none;
		/*border-left: 5px solid #fff;*/
	}
	
	pre.active-code-block .line-numbers {
		text-align: right;
		float: left;
		display: block;
		background: #efefef;
		/*padding-left: .7em;
		padding-right: .7em;*/
		/*white-space: normal;*/
	}
	 
	.ruby .subst {
	  color: black;
	}
	
	pre.active-code-block .line {
		display: block;
		margin: 0;
		padding: 0 1em;
		white-space: pre;
		height: 1.3em;
		line-height: 1.3em;
		background-color: #fff;
	}
	pre.active-code-block .line.even {
		background-color: #f6f6f6;
	}
	pre.active-code-block .line-numbers .line {
		background-color: #efefef;
	}
	pre.active-code-block .line-numbers .line.even {
		background-color: #e6e6e6;
	}
	
	
	.string,
	.function .title,
	.class .title, 
	.tag .attribute .value,
	.css .value,
	.preprocessor,
	.ruby .symbol,
	.built_in,
	.sql .aggregate,
	.django .template_tag,
	.django .variable,
	.smalltalk .class {
	  color: #800;
	}
	
	.comment,
	.java .annotation,
	.template_comment {
	  color: #888;
	}
	
	.number,
	.regexp,
	.javascript .literal,
	.smalltalk .symbol,
	.smalltalk .char {
	  color: #080;
	}
	
	.javadoc,
	.ruby .string,
	.python .decorator,
	.django .filter .argument,
	.smalltalk .localvars,
	.smalltalk .array,
	.css .attr_selector,
	.xml .pi {
	  color: #88F;
	}
	
	.keyword,
	.css .id,
	.phpdoc,
	.function .title,
	.class .title,
	.vbscript .built_in,
	.sql .aggregate,
	.rsl .built_in,
	.smalltalk .class,
	.xml .tag .title {
	  font-weight: bold;
	}
/* My code styles customisation */
	.javascript .string {
		color: #00f;
	}
	.javascript .keyword {
		color: #009;
	}
	.javascript .literal {
		font-weight: bold;
	}
	
	.css {
		/*background-color: #fff;*/
		color: #f0f;
	}
	.css .value {
		color: #00f;
	}
	.css .id {
		font-weight: normal;
	}
	.css .keyword {
		color: #009;
		font-weight: normal;
	}
	
	.html,
	.xhtml,
	.xml {
		color: /*#090*/ #080;
	}
	.html .tag,
	.xhtml .tag,
	.xml .tag {
		color: #009;
	}
	.html .tag .value,
	.xhtml .tag .value,
	.xml .tag .value {
		color: #00f;
	}
	
	.php {
		/*background-color: #fff;*/
	}
	.php .keyword {
		color: #00f;
		/*color: #060;*/
	}
	.php .string {
		color: #c00;
	}
	.php .variable {
		/*font-weight: bold;*/
		color: /*#060*/ #080;
	}
	.php .comment {
		color: #f90;
	}
	
	.sql .keyword {
		color: #00f;
	}
	.sql .string {
		color: #00f;
	}





.commentlist li {
	margin: 1em;
}

.entry dl {
	display: block;
	margin-left: 7em;
}
.entry dt {
	display: block;
	margin-left: -7em;
}
.entry dd {
	display: block;
	margin: -1.3em 0 2em 0;
}
.entry dd > * {
	margin: -1.2em 0 2em 0;
}

.cut-in {
	float: left;
	margin: 0 1em 1em 0;
}
.cut-in a img {
	display: block;
	margin: 0;
	border: .3em solid #efefef;
}
.cut-in a:hover img {
	border: .3em solid #ccc;
}

.cut-in.alternate {
	float: right;
	margin: 0 0 1em 1em;
}

q {
	border-left: .3em solid #ccc;
	padding-left: 1em;
}

sup.footnote a {
	text-decoration: none;
	padding: 0 .5em;
	font-weight: bold;
}
sup.footnote a:hover {
	background-color: #ff9;
}


.feature-thumb {
	float: left;
	margin: 0 1em 1em 0;
}
.feature-thumb.alt {
	float: right;
	margin: 0 0 1em 1em;
}




#contact-form ul,
#contact-form li {
	margin: 0;
	padding: 0;
	list-style-type: none;
	overflow: hidden;
	zoom: 1; /* For IE6&7 */
	margin-bottom: 1em;
}
#contact-form li {
	position: relative;
	padding-left: 1em;
}
#contact-form label {
	float: left;
	clear: left;
	width: 10em;
	margin-bottom: .2em
}
#contact-form input,
#contact-form select,
#contact-form textarea {
	float: left;
}
#contact-form .submit {
	padding-left: 11em;
}
#contact-form abbr.req {
	color: #f00;
	font-weight: bold;
}
#contact-form .required abbr.req {
	position: absolute;
	left: 0;
	top: .2em;
}
















samp, kbd, code {
	font-size: 1em;
	font-family: "Lucida Console", "Courier New", Courier, monospace;
}

table.numeric-data td {
	text-align: right;
}
table.numeric-data tr.averages th,
table.numeric-data tr.averages td {
	font-weight: bold;
}

.entry img {
	max-width: 100%;	
}

.figure img {
	border: 5px solid #efefef;
	border-radius: 3px;
}


samp.console {
	border: 1px solid #9cf;
	padding: .3em .5em;
	border-radius: .3em;
	-moz-border-radius: .3em;
	-webkit-border-radius: .3em;
}

samp.console.exception {
	background: #ffffe0 url(/assets/images/ui/console-exception.png) 5px center no-repeat;
	border: 1px solid #fc6;
	color: #f00;
	padding-left: 25px;
}






@media print {
	#access,
	#themes,
	#primary-nav {
		display: none;
	}
	
}