/*
 * magic.css
 * Last Revision: June 14, 2011
 * 
 * Main CSS file for layout of site
 */

* { margin: 0; padding: 0; }

body
{ 
	background: #FFF url('/images/layout/tea_cup_new.jpg') top right no-repeat fixed;
	color: #28550a;
	font-family: Verdana, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	margin: 0 auto;
}

#wrapper
{
	background: url('/images/layout/trans75.png');
	border: solid #333;
	border-width: 0 1px;
	max-width: 90em;
	padding-bottom: 0;
}

#content
{
	margin-left: 20em;
	margin-top: 2em;
	max-width: 80em;
	padding: 0;
	position: relative;
}

#content-container
{
	float: right;
	font-size: 0.9em;
	margin: 0 0.5em 0 -20em;
	width: 100%;
}

section, nav, article
{
	display: block;
}

#copyright:after, #blog-posts:after, .gallery:after, dl.table:after, dl.numberbox:after, .clearfix:after
{
	content: '.';
	display: block;
	font-size: 1px;
	visibility: hidden;
	clear: both;
}

nav.internal-jumps
{
	font-size: 0.8em;
	position: relative;
	width: 100%;
}

nav.internal-jumps a
{
	color: #28550a;
}

nav.internal-jumps ul
{
	position: absolute;
	right: 0;
}

nav.internal-jumps ul li
{
	display: inline;
} 


/* == TYPOGRAPHY
=== === === === === === === === === ===*/

a
{
	color: #2C5197;
}

a:hover, a:focus
{
	color: #4372AA;
	text-decoration: none;
}

a.block-link
{
	color: #28550a;
	display: block;
	padding: 1em;
	text-decoration: none;
}

a.block-link:hover
{
	background-image: url(/images/layout/stripes_green.png);
	color: #333;
}

a.footnote-ref
{
	font-size: 1.1em;
	font-weight: bold;
	text-decoration: none;
}

abbr
{
	cursor: help;
	border: 0;
}

#content aside, section.sidebar
{
	float: right;
	font-size: 0.9em;
	line-height: 1.68;
	margin: 1em;
	padding: 1em;
	max-width: 30em;
}

#content aside h1, section.sidebar h1
{
	font-size: 1.2em;
}

section.sidebar ul
{
	margin-left: 1.5em;
}

em.accesskey
{
	font-style: normal;
}

h1, h2, h3, h4, h5, h6
{
	font-family: Georgia, "Times New Roman", serif;
}

#header h1
{
	background: url('/images/layout/h1_stripes.png');
	border-bottom: 1px solid #666;
	color: #666;
	font-size: 3em;
	line-height: 1.3;
	padding: 0.84em 0.5em 0.15em 5.8em;
}

h1
{
	font-size: 1.7em;
}

h2, section section h1, section article h1
{
	font-size: 1.5em;
	margin: 1em 0;
	padding: 0;
}

h3, section section section h1, section article section h1
{
	font-size: 1.1em;
}

.no-display { font-size: 1px !important; margin: 0 !important; padding: 0 !important; text-indent: -999em !important; }

hr, p#jump-sub-nav, sup.link-ref, #link-hrefs { display: none; }

img { border: 0; }

img.inline, figure.single-image, figure.image
{
	border: 1px solid #666;
	display: block;
	margin: 1em auto;
}

img.left, figure.left
{
	float: left;
	margin: 1em;
}

img.right, figure.right
{
	float: right;
	margin: 1em;
}

p
{
	margin: 1.5em 1em 1.5em 0;
}

p.empty-result {
	font-size: medium;
	font-weight: bold;
	text-align: center;
}

p.jumplink
{
	border-bottom: 1px solid #BCC378;
	clear: both;
	text-align: right;
}

p.jumplink a
{
	color: #BCC378;
	font-size: 0.9em;
	text-decoration: none;
	text-transform: uppercase;
}

p.more-link
{
	font-size: 0.9em;
	text-align: right;
}

p.more-link a
{
	font-weight: bold;
	text-decoration: none;
}

p.jumplink a:hover, p.more-link a:hover
{
	text-decoration: underline;
}

#main-sidebar p.more-link
{
	text-align: center;
	text-indent: 0;
	font-size: 0.9em;
}

.contrast, .alt-contrast, ul.emotes, ul.toolbar, div.prompt-, blockquote, #content aside, figure.single-image, nav.sidebar, div.definition
{
	background: url('/images/layout/h1_stripes.png') top left;
	border: 1px solid #666;
	border-width: 1px 0;
	color: #333;
}

.alt-contrast, figure.single-image, div.definition
{
	background-image: url(/images/layout/stripes_green.png);
	border-color: #28550a;
	color: #28550a;
}

.boxed
{
	background: #FAFAFA;
	border: 1px solid #666;
}

.site-nav, .boxed > h1, .boxed > footer, .boxed p.more-link, #main-sidebar .boxed > h1
{
	background: #666 url('/images/layout/nav_bg.png') top center repeat-x;
	border-bottom: 5px double #FFF;
	color: #FFF;
}

.boxed p.more-link a
{
	color: #FFF;
}

.boxed > h1
{
	font-size: 1.2em;
	padding: 0.2em 0.5em;
}

.boxed footer, .boxed p.more-link
{
	border-bottom: 0;
	margin: 0;
	padding: 0.2em 0.5em;
}

blockquote, div.definition
{
	margin: 1em auto;
	padding: 0 2em;
	width: 70%;
}

figure.nobackground
{
	background: none;
	border: 0;
}

figure.image
{
	text-align: center;
	padding: 1em 0.5em;
}

figure.single-image img
{
	display: block;
	margin: 0 auto;
}

figcaption, table caption
{
	font-size: 0.9em;
	font-style: italic;
	margin: 0.8em auto 0 auto;
	max-width: 30em;
	text-align: center;
}

figcaption { display: block; }

span.cite, p.cite
{
	display: block;
	font-size: 0.8em;
	text-align: center;
}


/* == HEADER
=== === === === === === === === === ===*/

#ben-babcock
{
	background: url('/images/layout/sandals.jpg') no-repeat top center;
	font-family: Georgia, "Times New Roman", serif;
	height: 320px;
	margin: 0 0 0 1.2em;
	padding-top: 50px;
	text-align: center;
	text-indent: 0;
	z-index: 100;
	position: absolute;
	top: 0;
}

#ben-babcock img
{
	display: none;
}

#ben-babcock h1, p#ben-babcock a
{
	border: 3px double #004600;
	background: url('/images/layout/trans75.png');
	color: #004600;
	display: block;
	font-size: 1.9em;
	font-variant: small-caps;
	font-weight: bold;
/*	margin-top: 6em;*/
	padding: 2px 5px;
	text-decoration: none;
}


/* == FOOTER
=== === === === === === === === === ===*/

#page-footer, #footer
{
	float: left;
	font-family: Verdana, Arial, sans-serif;
	font-size: 0.7em;
	margin: 4em 0 3em 23em;
	max-width: 115em;
	padding: 0;
	text-align: center;
}

#page-footer h1, #footer h3
{
	font-size: 1.3em;
}

#footer-left, #footer-right
{
	float: left;
	margin: 0 2%;
	text-align: left;
	width: 45%;
}

#page-footer p, #footer p
{
	margin: 0 0 1em 0;
	text-indent: 0;
}

#page-footer p.jumplink, #footer p.jumplink
{
	font-size: 1.2em;
	margin: 1.8em;
}

#copyright
{
	background: #333 url('/images/layout/footer_bg.png') bottom center repeat-x;
	border-top: 5px double #FFF;
	clear: both;
	color: #FFF;
	font-size: 0.7em;
	margin: 0;
	padding: 5px;
	overflow: auto;
}

#copyright p
{
	float: left;
	margin: 0;
	text-indent: 0;
}

p#copyright-text
{
	float: right;
}

#copyright a
{
	color: #FFF;
}

#bottom-banners img
{
	padding-right: 5px;
}


/* == SIDEBAR
=== === === === === === === === === ===*/

#main-sidebar-container
{
	float: left;
	margin-top: 230px;
	width: 16em;
}

#main-sidebar
{
	font-size: 0.9em;
	margin: 1em;
	padding: 0 0 1.2em 0;
}


#main-sidebar h1
{
	background: none;
	font-size: 1.2em;
	text-align: center;
	padding: 0;
}

#main-sidebar ul
{
	list-style: none;
	margin: 0 auto;
}

#main-sidebar li
{
	margin: 0;
	padding: 0;
}

#main-sidebar nav ul, #sub-nav ul
{
	margin-left: 15px;
}

#main-sidebar nav li a, #sub-nav li a
{
	background: url('/images/layout/triangle_icon.png') left 6px no-repeat;
	display: block;
	padding: 1px 1px 1px 15px;
}


/* == LISTS
=== === === === === === === === === ===*/

dl, ol, ul
{
	margin: 0.5em;
	max-width: 60em;
}

ol, ul
{
	margin-left: 5em;
}

li
{
	margin: 1em 0;
}

.entry-listing
{
	margin-left: 0;
	max-width: 90em;
}

.entry-listing > li
{
	border-bottom: 1px solid #BCC378;
	list-style: none;
}

.entry-listing header
{
	float: left;
	font-size: 1em;
}

.entry-listing footer
{
	color: #666;
	float: left;
	font-weight: bold;
}

.entry-listing footer ul
{
	float: left;
	margin: 0 0 0 1.5em;
}

.entry-listing footer li
{
	float: left;
	margin: 0.6em;
}

.entry-listing p
{
	clear: both;
}

ol.gallery, ul.gallery
{
	margin: 0.5em;
}

ol.gallery li, ul.gallery li
{
	float: left;
	list-style: none;
	margin: 0;
	min-height: 75px;
	min-width: 52px;
	text-align: center;
	padding: 0.2em;
}

ol.big-books, ul.big-books
{
	max-width: 100em;
}

ol.books li, ul.books li
{
	min-height: 81px;
}

ol.big-books li, ul.big-books li
{
	min-width: 110px;
	min-height: 180px;
}

dd
{
	margin-left: 1.5em;
	margin-bottom: 1em;
}

dt
{
	font-weight: bold;
}

dl.numberbox dd, dl.numberbox dt
{
	float: left;
	margin-left: 0;
	margin-bottom: 5px;
}

dl.table
{
	margin: 0.5em auto;
}

dl.table dt
{
	clear: left;
	max-width: 30%;
	text-align: right;
}

dl.table dd
{
	border-bottom: 1px solid #BCC378;
	margin: -2.6em 0 1em 0;
	padding: 1em 0 1em 32%;
}

dl.numberbox dt
{
	clear: left;
	font-size: 1.5em;
	padding-right: 0.2em;
	text-align: right;
	width: 2.8em;
}

dl.numberbox dd
{
	padding: 0.55em 0 0 0;
}

ul
{
	list-style-type: square;
}


/* == TABLES
=== === === === === === === === === ===*/

table
{
	border-collapse: collapse;
	margin: 1em auto;
}

table caption
{
	margin-bottom: 1em;
}

td, th
{
	padding: 0.1em 2em;
}

th
{
	font-weight: bold;
	text-align: center;
}

thead th
{
	border-bottom: 2px solid #28550a;
	font-size: 1.1em;
	padding: 0.5em 2em;
	padding-top: 0;
}

tbody tr
{
	border-bottom: 1px solid #28550a;
}

colgroup.heading
{
	border-right: 1px solid #28550a;
}


/* == NAVIGATION
=== === === === === === === === === ===*/

.site-nav
{
	float: right;
	margin: 0;
	position: relative;
	width: 100%;
	z-index: 200;
}

.site-nav h1
{
	display: none;
}

.site-nav ul
{
	float: right;
	list-style: none;
	margin: 0 auto;
	padding: 0;
}

.site-nav li
{
	float: left;
	font-size: 0.8em;
	margin: 0;
	padding: 0;
	text-align: center;
}

.site-nav a
{
	color: #FFF;
}

.site-nav a, .site-nav li.current
{
	display: block;
	font-variant: small-caps;
	font-weight: bold;
	padding: 3px 3em;
	margin: 0;
	text-decoration: none;
}

.site-nav a:hover, .site-nav a:focus
{
	border-bottom: 2px double #AAA;
	color: #DBE6E0;
	margin-bottom: -3px;
}

.tocs
{
	border-top: 1px solid #666;
}

div.sidebar, nav.sidebar
{
	padding: 1em 0;
}

div.sidebar ul.level-1, nav.sidebar ul.level-1
{
	margin-top: 1em;
}

#section-nav a.current
{
	color: #666;
	font-weight: bold;
	text-decoration: none;
}

nav.sidebar
{
	border-bottom: 0;
}

#main-sidebar nav.sidebar:last-of-type
{
	border-bottom: 1px solid #333;
}

div.pagination
{
	clear: both;
	text-align: center;
	width: 100%;
}

div.pagination p
{
	float: left;
	margin: 0;
	text-align: right;
	width: 45%;
}

div.pagination ul
{
	float: left;
	list-style: none;
	margin: 0;
	padding: 0.75em 0;
}

div.pagination li
{
	float: left;
}

div.pagination li a, div.pagination li strong
{
	display: block;
	margin: 0 3px;
	padding: 3px;
}


/* == NAV BLOCKS
=== === === === === === === === === ===*/

.navblock {
	overflow: hidden;
}

.navblock a {
	display: block;
	float: left;
	text-decoration: none;
	width: 50%;
}

.navblock a:hover {
	background: url('/images/layout/h1_stripes.png') top left;
}

.navblock a div {
	background: left center no-repeat;
	padding-left: 90px;
}

.navblock a p {
	color: #28550a;
}

.navblock a h1, .navblock a h2, .navblock a h3 {
	text-decoration: underline;
}

.navblock a:hover h1, .navblock a:hover h2, .navblock a:hover h3 {
	text-decoration: none;
}
