/* @override http://rg.ollantaytambo.local/css/site.css */

/* Reset Styles */
/* Adapted from Blueprint CSS (http://www.blueprintcss.org/) */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
html, body {line-height:1.5; background-color: #fff9bf;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;}
table, td, th {vertical-align:middle;}
blockquote:before, blockquote:after, q:before, q:after {content:"";}
blockquote, q {quotes:"" "";}
a img {border:none;}

/* Utilities */
/* Once upon a time I thought I would be clever and use the name contain-float
 * instead of the standard, clearfix. That was a mistake, but I'm still using
 * it so the class name is aliased for now */
/* New clearfix from http://perishablepress.com/press/2009/12/06/new-clearfix-hack/ */
.clearfix:after, .contain-floats:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}
* html .clearfix, * html .contain-floats { zoom: 1; } /* IE6 */
*:first-child+html .clearfix, *:first-child+html .contain-floats { zoom: 1; } /* IE7 */

/* Typography and Colors */
h1, h2, h3, h4, h5, h6, p, li, div, body {
	font-family: Georgia, sans-serif;
	color: #333;
}

code {
    font-family: monospace;
}

#header h2 {
	font-size: 10px;
}

.blog-entry h2, #body.wide h2 {
	font-size: 24px;
	font-weight: bold;
}

.blog-details, .blog-details h3 {
	font-size: 12px;
	line-height: 21px;
	text-align: right;
	font-weight: bold;
}

.blog-body h3, .blog-comments h3 {
	font-size: 16px;
	font-weight: bold;
}

.comment-details {
	
}

.comment-details h3 {
	font-weight: normal;	
}

.blog-entry p {
	font-size: 14px;
}

.blog-entry ul, ol {
	margin-left: 54px;
	margin-right: 54px;
	margin-bottom: 10px;
}

.blog-entry li {
	font-size: 14px;
	list-style-position: inside;
}

.blog-entry blockquote, .comment-body blockquote {
	font-size: 14px;
	margin: 10px 54px 10px 54px;
	border-left: 1px solid #666;
	padding-left: 5px;
}

.blog-toolbar li {
	font-size: 14px;
}

.photo-caption, .photo-entry h2 {
	font-size: 10px;
	font-weight: bold;
}

.photo-entry h2 {
	text-align: right;	
}

.photo-entry .photo-caption {
	font-size: 12px;
	font-weight: normal;
}

/* Check support for child selector in IE
 * If not supported, .comment-details h3 should be styled #333 */
.blog-details, .blog-details h3, .blog-details a:link, .photo-caption, .photo-entry h2, .blog-body h3, .blog-body h4, .blog-comments > h3, #footer h2, #month-archives h3 {
	/* Brown */
	color: #5a3c0c;
}

.blog-details, .photo-details .photo-caption, .photo-entry h2, #search, #footer-outer, #month-archives h3, table.data th  {
	/* Light Yellow */
	background-color: #fff9bf;
}

#sidebar {
	line-height: 1.3;
}

#sidebar h2 {
	font-size: 14px;
	font-weight: bold;
}

#sidebar p {
	font-size: 12px;
}

#sidebar .sidebar-more {
	text-transform: uppercase;
}

#twitter p {
	margin-bottom: 10px;
}

#delicious-links li a {
	font-size: 14px;
}

#delicious-links li p {
	padding-left: 12px;
}

#footer {
	font-size: 12px;
}

#footer h2 {
	font-size: 14px;
	font-weight: bold;
}

.current-book-title {
	font-size: 14px;
	font-style: italic;
	text-align: center;
}

.current-author {
	font-size: 12px;
	text-align: center;
}

.book-title {
	font-style: italic;
}

#quotation {
	font-size: 14px;
}

.quote-speaker {
	text-align: right;
}

.quote-attribution {
	font-size: 12px;
	font-style: italic;
}

/* Links */
/* Links are underlined except for headline and menu links */
a:link {
	text-decoration: underline;
	color: #000;
}

a:visited {
	color: #666;	
}

a:hover {
	background-color: #fff9bf;
	text-decoration: none;
}

.blog-entry h2, h2 a:link, h2 a:visited, #body.wide h2 {
	text-decoration: none;	
	/* Orange */
	color: #ff7f00;
}

/* Orange borders on Flickr photo links */
#flickr-photos li a:hover {
	background: none;
}

#flickr-photos li a:hover img {
	border: 1px solid #ff7f00;
}

.blog-toolbar li a {
	text-decoration: none;
}

#menubar a:hover {
	background-color: inherit;
}

ul#menubar li a:hover {
	background-color: #006; /* Avoids hover background in IE 6/7 */
}

/* White link highlighting when link is on yellow background */
#footer a:hover, .comment a:hover, .blog-details a:hover {
	background-color: #fff;
}

/* Lists */
ul.hanging li {
	text-indent: -20px;
	padding-left: 20px;
}

#delicious-links {
	margin-top: -3px; /* Fixes optical illustion, I think */
	list-style-type: none;
	font-size: 12px;
}

#delicious-links li {
	margin-bottom: 10px;
}

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

/* Tables */
table.data {
	font-size: 14px;
	margin: 20px auto 20px auto;	
}
table.data th {
    padding: 2px 12px 2px 12px;
}
table.data td {
    padding: 2px 20px 2px 12px;    
}

table.data th {
    font-size: 12px;
    font-weight: bold;
    border-bottom: 1px solid #666;
    border-right: 5px solid #fff;
}
table.numeric td, table td.numeric {
    text-align: right;
}
/* Layout */
#header-outer {
	background: url('/images/header-background.png') repeat-x;
}

#header {
	position: relative;
	width: 962px;
	height: 108px;
	margin: 0 auto;
}

#header h1 a {
	position: absolute;
	top: 26px;
	width: 908px;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #fff;
	padding-left: 54px;
	height: 40px;
	background: url('/images/ryan-greenberg-h1.png') no-repeat 54px center;
	text-indent: -9000px;
}

#header h2 {
	background: url('/images/tagline.png') no-repeat left;
	height: 7px;
	left: 54px;
	position: absolute;
	text-indent: -9000px;
	top: 15px;
	width: 55px;
}

#header ul {
	list-style-type: none;
	position: absolute;
	top: 27px;
	right: 54px;
	width: 250px;
	height: 40px;

}

#header ul li {
	display: inline;
	height: 40px;
}

#header ul li a {
	margin-left: 20px;
	float: left;
	padding-top: 40px;
	height: 0px;
	overflow: hidden;
	background-image: url('/images/menubar.png');
	background-repeat: no-repeat;
	 /* IE Hack
	   Explained at http://www.daharsh.net/tech/2006/08/ie6-bug-with-semitransparent-png.htm */
	/*_background: url(/images/menubar-blog.gif) no-repeat;*/ 
}

#menubar-blog a { width: 46px; background-position: 0 12px; }
#menubar-projects a { width: 79px; background-position: -47px 12px; }
#menubar-gallery a { width: 74px; background-position: -127px 12px; }
#menubar-about a { width: 61px; background-position: -201px 12px; }

#page-outer {
    background-color: #fff;
	padding-bottom: 30px;
}

#page {
	padding: 15px 0 0 0;
	width: 962px;
	margin: 0 auto;
}

#body {
	float: left;
	width: 692px;
}

#body.wide {
    /* For pages without a sidebar */
    float: right; /* IE 6 shifts the main content left without float: right */
    width: 962px;
}

/* Inset */
div.blog-body p, .blog-details, .blog-body h3, .blog-body h4, .photo-caption, .blog-comments h3, .sidebar-item h2, #sidebar p, #sidebar ul {
	padding-left: 5px;
	padding-right: 5px;
}

/* Blog Layout */
.blog-entry {
	margin-bottom: 60px;
}

.blog-entry h2, #body.wide h2 {
	padding-left: 167px; /* 162px +5px inset */
	border-bottom: 1px solid #666;
}

.blog-details {
	float: left;
	width: 142px;
	padding-top: 10px;
	padding-bottom: 12px;
}

.blog-body {
	float: right;
	width: 530px;
	padding-top: 10px;
}

.blog-body p, .comment-body p {
	margin-top: 0px;
	margin-bottom: 10px;
}

.blog-body div.section-break {
	background: url('/images/hr.png') no-repeat center;
	margin: 20px auto 22px auto;
	width: 314px;
	height: 10px;
}

.blog-body div.section-break hr {
	display: none;
}

.blog-toolbar {
	clear: both;
	margin-left: 486px;
}

.blog-toolbar ul {
	clear: both;
	list-style-type: none;
    margin-right: 0;
}

.blog-toolbar li {
	display: block;
	width: 136px;
	margin-bottom: 5px;
}

.blog-toolbar li a {
	line-height: 14px;
	padding-left: 16px;
	background: url('/images/blog-toolbar-2.png') no-repeat;
}

li.continue-reading a { background-position: 0 2px; }
.continue-reading a:hover { background-position: 0 -25px; }
li.leave-comment a { background-position: -200px 2px; }
.leave-comment a:hover { background-position: -200px -25px; }
li.permalink a { background-position: -400px 2px; }
.permalink a:hover { background-position: -400px -25px; }

.blog-comments {
	float: right;
	width: 530px;
	padding-top: 10px;
}

.comment {
	margin-bottom: 30px;
}

.comment-body {
	padding: 15px;
	padding-top: 10px;
	background: #fff9bf url('/images/comment-arrow-5.png') no-repeat -20px bottom;
	/*background: #fff9bf url(/images/comment-arrow-4.png) no-repeat -48px bottom;*/ /* Alternate arrow style */
}

.comment-details {
	padding-left: 54px;
}

.comment-details h3 {
	padding-left: 0;
	display: inline;
	font-size: 14px;
}

#comments-form {
}

#comment-text {
	width: 500px;
	height: 150px;
	margin-bottom: 15px;
	font-family: Georgia, sans-serif;
	font-size: 16px;
}

#comments-form label {
	clear: left;
	float: left;
	display: block;
	padding-left: 5px;
	width: 60px;

}

ul.entry-navigation {
	list-style-type: none;
}

.entry-navigation li.previous-entry {
	margin-right: 55px;
}

.entry-navigation li.next-entry {
	text-align: right;
	margin-left: 54px;
}

/* Blog accouterments */
div.photo.vertical, div.photo.horizontal {
	width: 260px;
	margin-top: 4px; /* To align photos with paragraph text better */
	margin-left: 10px;
	margin-bottom: 10px;
	float: right;
	clear: right;
}

div.photo.highlight {
	margin: 16px 0 16px 0;
}

.photo.wide {
	float: none;
	margin: 16px 0 16px -162px;
	position: relative;
}

div.photo.wide .photo-caption {
	width: 142px;
	height: 0px;
	position: absolute;
	top: 0px;
}

div.photo.wide .photo-caption span {
	position: absolute;
	bottom: 20px;
}

div.photo a img, div.photo img, div.photo object {
	display: block;
	border: 1px solid #666;
	margin: 0 auto;
}

div.photo img.no-border {
	border: 0;
}

div.photo .photo-caption {
	margin-top: 10px;
}

img.no-border img, div.no-border a img {
	border: 0px;
}

.photo-credit, .photo-credit a {
	display : inline;
}

.book-detail {
	float: right;
	width: 206px;
	margin-top: 4px; /* To align photos with paragraph text better */
	margin-left: 10px;
}

div.rating {
	width: 121px;
	padding-top: 27px;
	height: 0px;
	overflow: hidden;
	margin: 0 auto;
	background: url('/images/book-rating.png') no-repeat 0 6px;
}

.book-detail img {
	display: block;
	margin: 0 auto;
}

.book-detail a img {
	border: 1px solid #666;
}

.book-detail .book-rating {
	margin: 6px auto 6px auto;
}

.book-detail h3 a {
	font-size: 12px;
	text-decoration: none;
	font-weight: bold;
	text-align: center;
}

.book-detail h4 {
	font-size: 12px;
	
}

/* Photolog Layout */
.photo-entry {
	position: relative;
	margin-bottom: 60px;
}

.photo-entry .photo-details {
	position: absolute;
}

.photo-entry.horizontal .photo-details {
	width: 152px;
	top: 40px;
}

.photo-entry.horizontal h2 {
	width: 142px;
	padding: 10px 50px 10px 10px;
}

.photo-entry.vertical .photo-details, .photo-entry.vertical h2 {
	width: 206px;
	top: 40px;
}

.photo-entry.vertical h2 {
	width: 196px;
	padding: 10px 50px 10px 10px;
	top: 40px;
}

.photo-entry .photo-caption {
	padding-top: 10px;
	background: none;
	text-align: left;
}

.photo-body {
	padding: 20px 0 20px 0;
	border-top: 1px solid #666;
	border-bottom: 1px solid #666;
	float: right;
	width: 530px;
}

div.photo-body img {
	position: relative; /* So z-index works */
	z-index: 2;
	display: block;
	margin: 0 auto;
	border: 1px solid #666;
}

/* Sidebar Layout */
#sidebar {
	float: right;
	width: 260px;
}

.sidebar-item {
	margin: 30px 0 30px 0;
	clear: both;
}

.sidebar-item h2 {
	margin-bottom: 5px;
}

#search {
	margin-left: 5px;
	padding: 6px;
	margin-top: 0px;
	text-align: right;
}

#search-field {
	float: left;
	width: 170px;
}

p.more {
	display: block;
	text-align: right;
	margin-right: 5px;
	text-transform: uppercase;
}

p.more a {
	text-decoration: none;
	color: #666 !important;
	font-size: 10px;
	padding: 3px;
}

/* Flickr */
#flickr-photos {
	list-style-type: none;
	line-height: 1px;
}

#flickr-photos li {
	display: inline;
	padding-right: 3px;
}

#flickr-photos li img {
	border: 1px solid #666;
	margin-bottom: 6px;
}

/* Blog Archives */
#blog-archives select {
	margin-left: 5px;
	width: 201px;
}

/* Footer Layout*/
#footer-outer {
	clear: both;
/*  margin-top: 30px;*/
    background: url('/images/footer_shadow.png') repeat-x;
	padding: 26px 0 26px 0;
}

#footer {
	position: relative;
	border-top: 1px solid #666;
	border-bottom: 1px solid #666;
	width: 874px;
	margin: 0 auto;
	padding: 0px 44px 16px 44px;
}

#footer.mini {
	height: 0px;
	padding-bottom: 0px;
	border-bottom: none;
}

#about, #content-guide, #reading, #quotation {
	float: left;
	width: 206px;
	padding-left: 10px;
}

/* Previously included #quotation when display was hidden */
#footer h2 {
	margin-top: 12px;
}

#content-guide ul {
	list-style-type: none;
	/*font-size: 12px;*/
}

#reading img {
	display: block;
	margin: 8px auto;
}

p.creative-commons {
	margin-top: 20px;
	font-size: 12px;
	text-align: center;
}

/* Quote Controls */
/*#quotation h2 {
	display: none;
}*/

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

#previous-quote	{
	float: left;
	width: 83px;
	padding-left: 20px;
	background: url('/images/previous.png') no-repeat left center;
}

#next-quote {
	float: right;
	width: 83px;
	text-align: right;
	padding-right: 20px;
	background: url('/images/continue.png') no-repeat right center;
}

/* Errors */
#error {
    text-align: center;
}

#error h1 {
    font-size: 96px;
    letter-spacing: -6px;
}

/* Grid checking */
body.grid {
	background: #fff url('/images/grid-gray.png') repeat-y center top;
}

body.grid #page-outer {
    background: transparent;
}