@import url("../site.css");

/* General elements */

*
{
	font-family: "Lucida Grande", Tahoma, Verdana, Helvetica, Arial, sans-serif;
	font-size: 12px;
	margin: 0;
	padding: 0;
}

a
{
	color: #080;
	text-decoration: none;
}

a:hover
{
	color: #0C0;
	text-decoration: underline;
}

a img
{
	border: none;
}

a, b, i, u, span
{
	font-family: inherit;
	font-size: inherit;
}

html
{
	background: url(metal.png);
}

body
{
	background: url(gradient.png) repeat-x;
	padding: 1em;
}

h1, h2, h3, h4, h5
{
	color: #040;
	padding-top: 0.5em;
}

h1
{
	font-size: 133.3%;
	padding-top: 0;
}

h2
{
	font-size: 125%;
}

h3
{
	font-size: 120%;
}

h4
{
	font-size: 110%;
}

h5
{
	font-size: 100%;
}

sup
{
	font-size: 75%;
}

code, pre, tt
{
	font-family: monospace;
}

button, input, textarea
{
	border: 1px solid silver;
	border-radius: 3px;
	padding: 2px;
}

button
{
	background: #EEE;
	box-shadow: 1px 1px 2px rgba(0,0,0,0.25);
	padding: 2px 2ex;
	position: relative;
}

button:focus,
button:hover
{
	background: silver;
	border-color: grey;
	box-shadow: 2px 2px 2px rgba(0,0,0,0.25);
	left: -1px;
	top: -1px;
}

button:active
{
	background: grey;
	border-color: black;
	box-shadow: none;
	color: white;
	left: 1px;
	top: 1px;
}

input:focus,
textarea:focus
{
	border-color: grey;
}

input[type="email"],
input[type="password"],
input[type="text"]
{
	width: 200px;
}

.sr-only
{
	border: 0;
	clip: rect(0,0,0,0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

/* Default content styles */

#content a[href^="http://"],
#content a[href^="https://"]
{
	background-image: url(external.png);
	background-position: right;
	background-repeat: no-repeat;
	padding-right: 14px;
}

#content a[href^="http://"]:hover
{
	background-image: url(external_hover.png);
}

#content a.icon-link
{
	background: none;
	font-size: 16px;
	padding-right: 0;
	text-decoration: none !important;
}

#content p
{
	line-height: 175%;
	margin-top: 1em;
}

#content ul, #content ol
{
	margin-top: 1em;
	padding-left: 2em;
}

#content li
{
	line-height: 150%;
	margin-top: 1em;
}

#content .compact > li
{
	margin-top: 0;
}

/* Main elements */

#container
{
	background-image: url(container_bg.png);
	background: rgba(64,64,64,0.25) none;
	border: 1px solid silver;
	border-radius: 15px;
	box-shadow: black 0 0 5px;
	margin: 0 auto;
	max-width: 1280px;
	padding: 2em 2em 1em;
}

#page
{
	background: white;
	border-radius: 15px;
	box-shadow: black 0 0 5px;
	margin: 0 auto;
}

/* Header and subcomponents */

#header
{
	background: white url(header_bg.png) repeat-x;
	border-radius: 15px 15px 0 0;
	margin-bottom: 1em;
	position: relative;
}

#header .container
{
	background: url(header.png) top left no-repeat;
	border-radius: 15px 15px 0 0;
	padding-top: 125px;
	width: 100%;
}

#logo
{
	background-image: url(logo.png);
	background-repeat: no-repeat;
	background-size: 100%;
	height: 88px;
	left: 32px;
	position: absolute;
	top: 24px;
	width: 548px;
}

#logo span
{
	display: none;
}

#navbar
{
	background: #040;
	color: #CFC;
	color: rgba(255,255,255,0.75);
	display: block;
	position: relative;
}

#navbar a
{
	color: inherit;
}

#navbar ul
{
	padding: 1ex;
}

#navlinks
{
}

#navlinks li
{
	display: inline;
	padding: 0 1ex;
	position: relative;
	text-shadow: black 1px 1px 2px;
	white-space: nowrap;
}

#navlinks li:hover
{
	text-shadow: #8C8 0 0 2px;
}

#navlinks *
{
	font-weight: bold;
}

#navlinks a.active
{
	color: white;
}

#navlinks li ul
{
	background-image: url(submenu_bg.png);
	background: rgba(0,68,0,0.75) none;
	border: 1px solid #040;
	border-color: rgba(0,0,0,0.25);
	box-shadow: black 2px 2px 5px;
	display: none;
	left: 0;
	padding-left: 2em;
	position: absolute;
	top: 100%;
	z-index: 999;
}

#navlinks li:hover > ul
{
	display: block;
}

#navlinks li:hover > ul li
{
	display: list-item;
	list-style-type: square;
	padding: 0.5ex;
	text-shadow: none;
}

#navlinks li:hover > ul li:hover
{
	text-shadow: #8C8 0 0 2px;
}

#navlinks ul li:hover > ul
{
	display: block;
	left: 100%;
	top: 0;
}

#form_search
{
	bottom: 0;
	height: 20px;
	padding: 4px 0;
	position: absolute;
	right: 2ex;
}

#input_search_term
{
	background: white url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAMAAABhq6zVAAAAIVBMVEW/v7+/v78AAAC/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v79QUkolAAAAC3RSTlOLYAAJeoMjRhpOcbsbtd4AAABJSURBVHjaVc1JDsAgDATB9uAF8v8Hx0QcSN9KssZI5eClDj18PRsFlmlQDcfUGd6A3EgYP1xncQ+sa5qYOk9jRQt1Y0izhU5bL2o2AW3ZQKeJAAAAAElFTkSuQmCC) 6px center no-repeat;
	border: 1px solid silver;
	border-color: rgba(0,0,0,0.2);
	border-radius: 10px;
	box-shadow: none;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	display: inline-block;
	font-size: 11px;
	height: 20px;
	outline: none;
	padding: 3px 23px;
	width: 130px;
}

#form_search button,
#form_search button:hover,
#form_search button:active
{
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
	padding: 0;
	position: absolute;
	top: 50%;
}

#input_search_submit,
#input_search_submit:hover,
#input_search_submit:active
{
	height: 12px;
	left: 7px;
	margin: -6px 0 0;
	text-indent: -999px;
	width: 12px;
}

#input_search_reset
{
	visibility: hidden;
}

#input_search_reset[type="reset"],
#input_search_reset[type="reset"]:hover,
#input_search_reset[type="reset"]:active
{
	background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAGFBMVEUAAAC/v7+/v7+/v7+/v7+/v7+/v7+/v7+hAPa4AAAAB3RSTlMAQNCwkKDgPaU3lgAAAEZJREFUeNplj9EKACAIA2dm+/8/bkj4sI6wDsIpRCRFBprNxx4bD12LrwRSDxRZkCcoCqVDIW1v+9Q+W6sOOhNkY9iQtsIFhO0DtcbsWN0AAAAASUVORK5CYII=) no-repeat;
	height: 14px;
	left: auto;
	margin: -7px 0 0;
	right: 5px;
	text-indent: -999px;
	visibility: visible;
	width: 14px;
}

#input_search_term:invalid ~ button
{
	visibility: hidden;
}

#input_search_submit span
{
	visibility: hidden;
}

/* Body and subcomponents */

#body
{
	position: relative;
}

/* Sidebar and subcomponents */

#sidebar
{
	border-right: 1px solid #040;
	clear: left;
	float: left;
	margin-left: 20px;
	margin-bottom: 1em;
	padding-right: 16px;
	width: 150px;
}

#sidebar .section
{
	border-top: 1px dotted #040;
	padding: 1ex 0 1em;
}

#sidebar h4
{
	font-size: 100%;
}

#sidebar ul
{
	color: silver;
	list-style-type: disc;
	padding-left: 3ex;
	padding-top: 1ex;
}

#sidebar ul li
{
	font-size: smaller;
	line-height: 150%;
}

#calendar *
{
	font-size: 8px;
}

#calendar h4
{
	text-align: center;
}

#calendar table
{
	border: none;
	border-collapse: collapse;
	width: 100%;
}

#calendar th
{
	border-bottom: 1px solid #E0E0E0;
	font-weight: normal;
	padding: 3px;
	text-align: center;
}

#calendar td
{
	padding: 3px;
	text-align: center;
}

#calendar .prev, #calendar .next
{
	color: silver;
}

#calendar .today
{
	border: 1px solid #040;
	font-weight: bold;
}

/* Crumbtrail */

#crumbtrail
{
	border-left: 1px solid #040;
	color: grey;
	margin-left: 186px;
	padding-left: 1em;
	padding-bottom: 1em;
}

#crumbtrail ul:before
{
	display: inline;
	content: 'You are here:';
}

#crumbtrail li
{
	display: inline;
	margin: 0;
}

#crumbtrail li:before
{
	content: '> ';
}

#crumbtrail li:first-child:before
{
	content: '';
}

/* Main content and subcomponents */

#main
{
	border-left: 1px solid #040;
	margin-left: 186px;
	margin-right: 144px;
	padding-left: 1em;
}

#main .post
{
	margin-bottom: 1em;
	overflow-y: hidden;
}

#main .post.excerpt
{
	margin: 1em 0 2em;
}

#main .post.has_thumbnail .thumbnail
{
	float: left;
	border: 2px solid white;
	box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
	margin: 1ex 0 1em 1ex;
}

#main .post.has_thumbnail .content
{
	margin-left: 150px;
}

#main .post.full h2,
#main .post.full h3,
#main .section h2,
#main .section h3
{
	margin-top: 2em;
	padding-top: 0;
}

#main .post .meta
{
	color: silver;
	font-size: 90%;
	margin-top: 1ex;
	margin-bottom: -1ex;
	position: relative;
}

#main .post .meta .plusone
{
	position: absolute;
	right: 0;
	top: 0;
}

#main .post .actions
{
	margin-top: 1ex;
	position: relative;
}

#main .post .actions a
{
	background-position: left;
	background-repeat: no-repeat;
	padding: 0 8px 0 16px;
	margin-right: 4px;
}

#main .post .actions a.readmore
{
	background-image: url(readmore.png);
	border-right: 1px solid #808080;
}

#main .post .actions a.comment
{
	background-image: url(comment.png);
}

#main .post .actions .plusone
{
	bottom: 0;
	position: absolute;
	right: 0;
}

#main h1
{
	border-bottom: 1px solid #040;
	margin-bottom: 1ex;
	padding-left: 1em;
}

#main .share
{
	float: right;
	margin-top: 1em;
}

#main .share a
{
	background: none !important;
	padding-right: 0 !important;
}

#main .share a img
{
	padding: 3px 0 0;
}

#main .share a:hover img
{
	padding: 0 0 3px;
}

#main .tags
{
	line-height: 16px;
	margin: 1em 0;
	overflow: hidden;
}

#main .tags span
{
	float: left;
	line-height: 20px;
	padding-right: 1ex;
}

#main .tags ul
{
	display: inline;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: relative;
}

#main .tags li
{
	display: inline-block;
	float: left;
	margin: 0 1ex 1ex 0;
	padding: 0;
}

#main .pingbacks ul
{
	padding-left: 2em;
}

#main .pingbacks li
{
	line-height: 125%;
	list-style-type: square;
	margin-top: 1ex;
}

#main .comments .comment
{
	background-image: url(comment.png);
	background-position: 8px 16px;
	background-repeat: no-repeat;
	border-top: 1px dotted silver;
	padding-left: 40px;
	position: relative;
}

#main .comments h4 + .comment
{
	border-top: 1px solid white;
}

#main .comments .comment .gravatar
{
	left: 0;
	position: absolute;
	top: 1em;
}

#main .comments .comment p
{
	line-height: normal;
}

#main .comments .comment .meta
{
	margin-bottom: 1em;
}

#form_comment
{
	padding: 1em;
}

#form_comment .field
{
	display: block;
	margin-top: 1ex;
	overflow: hidden;
}

#form_comment button
{
	clear: both;
	margin-top: 1ex;
	padding: 2px;
}

#form_comment img
{
	float: left;
	margin-right: 1ex;
}

#form_comment #captcha
{
	font-size: 20px;
	height: 28px;
	padding: 0;
	text-align: center;
	width: 88px;
}

#form_comment input
{
	width: 200px;
}

#form_comment label
{
	display: block;
}

#form_comment textarea
{
	height: 150px;
	width: 450px;
}

.archive_navigation
{
	background-color: #E0E0E0;
	overflow-y: hidden;
	padding: 1em;
}

.archive_navigation .older
{
	float: left;
}

.archive_navigation .older:before
{
	content: '\00AB';
	padding-right: 1ex;
}

.archive_navigation .newer
{
	float: right;
}

.archive_navigation .newer:after
{
	content: '\00BB';
	padding-left: 1ex;
}

/* Footer */

#footer
{
	border-top: 1px solid #040;
	clear: both;
	font-size: 80%;
	margin: 1em;
	padding: 1em 0 1em 186px;
	text-align: left;
}

#footer ul
{
	list-style-type: none;
}

#footer ul li
{
	display: inline;
	margin-right: 1em;
}

/* Make things a little more responsive */

@media(max-width: 1023px)
{
	#form_search, #sidebar { display: none; }
	#container { padding: 1em; }
	#header, #header .container { background-position: left bottom; }
	#header .container { padding-top: 60px; }
	#logo { height: 44px; left: 8px; top: 8px; width: 274px; }
	#crumbtrail { border: none; margin: 1ex 1em; padding: 0 }
	#main { border: none; margin: 0 2em; padding: 0; }
	#main .post.has_thumbnail .thumbnail { height: 64px; width: 64px; }
	#main .post.has_thumbnail .content { margin-left: 86px; }
	#ads { display: none; }
	#footer { padding: 1em 0; text-align: center; }
}

@media(max-width: 640px)
{
	#container { background: none; border: none; box-shadow: none; padding: 0; }
	#header { overflow: hidden; }
	#navbar { display: none; }
	#crumbtrail ul, #crumbtrail li { font-size: x-small; }
	#main { margin: 0 1em; }
	#main .post.has_thumbnail .thumbnail { height: 48px; width: 48px; }
	#main .post.has_thumbnail .content { margin-left: 70px; }
}

@media(max-width: 360px)
{
	html { background: white; }
	body { background: none; padding: 0; }
	#header, #page { border-radius: 0; box-shadow: none; }
	#crumbtrail ul, #crumbtrail li { font-size: xx-small; }
	#main h1 { padding: 0; }
}
