* {
    padding: 0;
    margin: 0;
}

/* shows the left scrollbar in Firefox, regardless of the length of the page */
html {
    overflow-y: scroll;
}

h1, h2, h3, h4, h5, h6, p, pre, blockquote, label, ul, ol, dl, fieldset, address {
    margin: 1em 0;
}

li, dd {
    margin: 0 5% 0;
}

fieldset {
    padding: .5em;
}

select option {
    padding: 0 5px;
}

select, option {
    color: black;
}

.hide, .print-logo, .close-button {
    display: none;
}

.left {
    float: left;
}

.right {
    float: right;
}

.clear {
    clear: both;
    height: 1px;
    font-size: 1px;
    line-height: 1px;
}

a img {
    border: none;
}


/* layout / base page styling */

body {
    color: #bfbfbf;
    font-size: 12px;
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Arial, sans-serif;
    background: #272727 url(images/tile.gif) 0 0 repeat;
}

/* This class sets the width and position for all rows */
.inside {
    margin: 0px auto 0px auto;
    width: 840px;
}

a {
    color: #e8e8e8;
}

a:hover {
    color: #66ccff;
}

h1 {
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

h2, h3 {
    font-size: 1.3em;
    color: #ccc;
    font-weight: bold;
}

h3 {
    font-size: 1.15em;
}

p {
    line-height: 1.5em;
    padding-bottom: 1em;
}

#primary ul li {
    list-style-type: square;
    margin: 0.5em 0 0.5em 2em;
}

#primary h2 {
    color: #ccc;
}

blockquote {
    margin-left: 1em;
    padding-left: 1em;
    border-left: 2px solid #ccc;
    color: #ccc;
}

pre {
    width: 100%;
    padding: 1em 0;
    overflow: auto;
    border-top: 1px dotted #333;
    border-bottom: 1px dotted #333;
}

table {
    width: 100%;
    border-spacing: 2px;
    margin: 1.5em 0;
}

table th, table td {
    padding: 0.3em 0.75em;
}

table th {
    background: #ccc;
    color: #fff;
    text-align: left;
}

table td {
    background: #333;
    color: #e8e8e8;
}

table td h2 {
    margin-top: 0;
}

table caption {
    text-align: left;
    color: #e8e8e8;
    margin-bottom: -1em;
    margin-top: 1em;
}

table.entry {
    margin: 2em 0 1em 0;
    border-spacing: 0;
}

td.entry-cell {
    background-color: #000;
    padding: 0;
    text-align: left;
}

td.entry-book {
    background-color: #000;
    padding-top: 0;
    padding-left: 0;
}

td.entry-book-desc {
    background-color: #000;
    padding-top: 0;
}

td.entry-book-desc p.note {
    margin-top: 0;
    padding-top: 0;
}

.rule {
    border-top: 1px solid #ccc;
    height: 1px;
    font-size: 1px;
    line-height: 1px;
    margin: 1.5em 0;
}

.note {
	color: #aaa;
	font-size: 11px;
	text-align: left;
}

.cite {
    font-style: italic;
}

.author {
    text-align: right;
    color: #ccc;
    font-size: 11px;
    text-transform: uppercase;
}


/* header */

#header {
    background: #000;
}

#header .inside {
    padding: 25px 0 25px 0;
}

#header h2 {
    margin: 0 16px 0 0;
    float: left;
    display: block;
    background: transparent url(images/logo.gif) 0 0 repeat;
    width: 140px;
    height: 63px;
    text-indent: 140px;
    overflow: hidden;
    font-size: 63px;
}

#header h2 a {
    text-decoration: none;
}

#header p {
    padding: 50px 0 15px 0;
    margin: 0;
    line-height: 1em;
    border-bottom: 1px solid #444;
}


/* main nav */

#main-nav {
    display: block;
    position: relative;
    top: 10px;
    right: 0;
    width: 840px;
}

#main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    float: right;
}

#main-nav li {
    float: left;
    padding: 0;
    margin: 0;
    list-style-type: none;
    background-image: none;
}

#main-nav a,
#main-nav a:link {
    text-decoration: none;
    margin: 0;
    padding-left: 1.2em;
    color: #999;
    font-size: 10px;
}

#main-nav a:hover {
    color: #66ccff;
}

/* primary items */

#primary {
    background: #000;
    padding: 1px 0 2em 0;
    color: #e8e8e8;
}

#primary.onecol-stories .primary {
    float: left;
    width: 50%;
}

#primary.onecol-stories .secondary {
    float: right;
    width: 40%;
    margin: 0 0 0 10%;
}

#primary.onecol-stories .story,
#primary.twocol-stories .story {
    float: left;
    width: 48%;
    margin: 0 0 0 4%;
    display: inline;
}

#primary.onecol-stories .story{
    width: 100%;
    margin: 0;
}

* html #primary.twocol-stories .story {
    margin-left: 2%;
}

#primary.twocol-stories .first, * html #primary.twocol-stories .first {
    margin: 0 0 0 0;
}

.story h3 {
    font-size: 1.15em;
    margin: 0 0 1.5em 0;
    font-weight: normal;
    color: #ccc;
}

.story h3 a {
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px dotted #666;
}

.story .details {
    margin: 1em 0;
    text-align: right;
    border-top: 1px solid #333;
    padding: 0.5em 0;
    font-size: 0.95em;
    color: #4d4d4d;
}

.story .details .read-on {
    background: url(images/readon_black.gif) 100% 60% no-repeat;
    padding-right: 20px;
}

.story .details a {
    color: #4d4d4d;
    text-decoration: none;
}

.story .details a:hover {
    color: #66ccff;
}


/* single post styles */

#primary .primary {
    float: right;
    width: 76%;
}

#primary .secondary {
    float: right;
    width: 22%;
    margin-right: 2%;
    display: inline;
}

* html #primary .secondary {
    margin-right: 4%;
}

.secondary h2 {
    color: #aaa;
    font-size: 1.5em;
    margin: 0;
}

.secondary .featured p {
    border-bottom: 1px solid #333;
    border-top: 1px solid #333;
    padding: 0.5em 0 0.6em 0;
    line-height: 1.5em;
    margin: 1em 0 0 0;
}

.secondary .featured dl {
    margin: 0 0;
    border-bottom: 1px solid #333;
    padding: 0.5em 0 0.6em 0;
}

.secondary dt {
    display: inline;
    margin: 0;
    padding: 0;
    color: #aaa;
}

.secondary dd {
    display: inline;
    margin: 0;
    padding: 0;
}

.secondary dd a {
    color: #808080;
}

.secondary dd a:hover {
    color: #66ccff;
}

.single-post h1, .single-post h2 {
    margin-top:0;
}


/* secondary items */

#secondary {
    background: #040404;
    padding: 1px 2em;
    border-top: 1px solid #1C1C1C;
}

.comment-head {
    border-bottom: 1px solid #1C1C1C;
    padding: 1em 2em 1em 0;
}

.comment-head h2 {
    font-size: 1.5em;
    margin: 0;
}

.comment-head a {
    text-decoration: none;
    color: #868686;
}

.comment-head .details {
    font-size: 0.95em;
}

ol#comments {
    list-style-type: none;
    margin: 2em 0;
}

ol#comments li {
    list-style-type: none;
    margin: 2em 0;
}

ol#comments li .avatar {
    border: 1px solid #222;
    padding: 2px;
}

#comments cite {
    float: left;
    width: 31%;
    font-style: normal;
    text-align: right;
}

* html #comments cite {
    width: 30.6%;
}

#comments cite span {
    display: block;
}

#comments cite span.avatarspan {
    float: left;
}

#comments cite .author {
    font-size: 1.2em;
}

#comments cite .author a {
    text-decoration:none;
}

#comments cite .admin-tools {
  margin: 5px 0;
}

#comments cite .admin-tools a {
    float: right;
    margin: 0 5px;
    padding: 0px 3px 3px;
    background: #666;
    border: 1px solid #999;
    text-decoration: none;
}

#primary .secondary .admin-tools {
    margin: 1em 0;
}

#preview {
    margin: 1em 0;
    padding: 0.5em;
    border: 1px solid #333;
}

#preview p {
    margin: 1em 0 0 0;
}

#errors {
    color: #ff0000;
    font-weight: bold;
}

#comments .pingback cite .author {
    display: block;
    padding-top: 68px;
    background: url(images/trackback_pingback.gif) 100% 0 no-repeat;
}

#comments .content {
    float: left;
    width: 60%;
    margin-left: 1.9%;
    border-left: 1px solid #868686;
    padding: 0 0 0 2%;
}

#comments .content p {
    margin:0 0 1em 0;
}

#comments .content h3 {
    margin: 0;
    font-size: 1em;
}

#comment-form {
    margin: 5em 0 5em 35.4%;
    width: 36em;
}

input.textfield {
    width: 15em;
    margin: 5px 0 0 0;
    border: 1px solid #999;
    background-color: #d8d8d8;
    color: #000;
}

input.submit {
    border: 1px solid #999;
    background-color: #d8d8d8;
    color: #000;
}

textarea.commentbox {
    width: 28em;
    height: 10em;
    padding: 0.25em;
    margin: 5px 0;
    font-size: 1.25em;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #999;
    background-color: #d8d8d8;
    color: #000;
}

label.text {
    position: relative;
    left: 0.5em;
}

.formactions input.submit {
    float: right; 
    margin: 0 3px 0 0;
    padding: .3em .6em .4em .6em;
    border: none;
    background-color: #444;
    text-shadow: #222 0px -1px 0px;
    color: #fff;
}

.formactions .spinner {
    float: right;
    margin: -8px -20px 0 0;
}


/* ancillary items */

#ancillary {
    padding: 2em 0 0 0;
    background: transparent url(images/bg_footer.png) 0 0 repeat-x;
}

#ancillary .block {
    float: left;
    width: 30%;
    margin: 0 0 0 5%;
}

#ancillary .twice-length {
    width: 65%;
}

#ancillary .thrice-length {
    width: 100%;
}

* html #ancillary .block {
    margin:0 0 0 4%;
}

#ancillary .first, * html #ancillary .first {
    clear: both;
    margin: 0;
}

#ancillary .block-separator {
    clear: both;
    height: 2.5em;
}

#ancillary .block h2, #ancillary .block h3 {
    color: #66ccff;
    margin: 0 0 2em 0;
}

ul.dates, ul.counts, ul.blogroll ul, ul.pages {
    list-style-type: none;
    margin: 1.5em 0 2em 0;
    border-top: 1px solid #3d3d3d;
}

ul.dates li, ul.counts li, ul.blogroll ul li, ul.pages li {
    list-style-type: none;
    margin: 0;
    padding: 0.5em 0;
    border-bottom: 1px solid #3d3d3d;
}

ul.pages li ul li {
    padding: 0;
}

ul.dates .date {
    color: #858585;
    padding: 0 1.5em 0 0;
}

ul.counts .count {
    float: right;
    color: #858585;
}

ul.dates a, ul.counts a, ul.blogroll a, ul.pages a {
    color: #bfbfbf;
    text-decoration: none;
}

ul.dates a:hover, ul.dates a:hover .date, ul.counts a:hover, ul.counts a:hover .count, ul.blogroll a:hover, ul.pages a:hover {
    color: #66ccff;
}

ul.blogroll {
    margin-top: 0;
}

ul.blogroll li {
    list-style-type: none;
    margin: 0;
}

ul.pages ul {
    margin: .2em 0;
}

ul.pages ul li {
    border: none;
    margin-left: 2em;
    list-style-type: disc;
}


/* foooter */

#footer {
    clear: both;
    color: #939393;
    margin: 2em 0 3em 0;
}

#footer .inside {
    border-top: 3px solid #444;
    padding: 1em 0;
}

#footer p {
    margin: 0;
    font-size: 0.95em;
}

#footer p.copyright {
    float: left;
    padding-bottom: 0;
}

#footer p.attributes {
    float: right;
    padding-bottom: 0;
}

#footer p.attributes a {
    padding: 0 0 0 1em;
    text-decoration: none;
    color: #939393;
}

#footer p.attributes a:hover {
    color: #66ccff;
}


/* search */

#search {
    position: relative;
    right: 0;
    float: right;
    width: 200px;
    margin: 43px 0 0 0;
    text-align: right;
}

#search .searchimg {
    float: left;
    width: 14px;
    height: 13px;
    background: url(images/search.gif) 0 0 no-repeat;
    position: relative;
    top: 4px;
}

#search input {
    border: 1px solid #999;
    background-color: #d8d8d8;
    color: #000;
    width: 175px; 
    font-size: 0.85em; 
    margin-top: 2px;
    padding: 1px;
}

#searchform {
    margin: 1em 0;
}

#searchform #s {
    background: #f8f8f8;
    border: none;
    width: 30em;
    color: #d8d8d8;
    padding: 0.25em;
}

#searchform #searchsubmit {
    background: #000;
    color: #666;
    border: none;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}


/* legacy typo css */

#search-results {
    width: 30%;
    background: #333;
    padding: 0 0 0 0;
    float: right;
    -moz-opacity: 0.9;
    border-top: 1em solid #000;
}

#search-results h3 {
    font-weight: bold;
    text-align: left;
    margin: 0;
    padding: 0 0 1em 0;
    background: #000;
}

#search-results small {
    display: block;
    text-align: left;
    font-size: 0.9em;
    padding: 0.5em 1em 0.7em 1em;
    border-top: 1px solid #666;
    border-bottom: 1px solid #555;
}

#search-results small a {
    color: #ccc;
}

#search-results ul li {
    list-style-type: none;
    padding: 0 1em 0.5em 1em;
    margin: 0.5em 0;
}

#search-results ul li:hover {
    background: #202020;
}

#search-result ul {
    margin:0;
}

#search-results ul li a {
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
}

#search img.archives-icon {
    margin: 0 7px 0 0;
    top: 1px;
}

img.centered, img.aligncenter {
    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;
}

.aligncenter, div.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    border: 1px solid #ddd;
    text-align: center;
    background-color: #f3f3f3;
    padding-top: 4px;
    margin: 10px;
    -moz-border-radius: 3px;
    -khtml-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
}

.wp-caption img {
    margin: 0;
    padding: 0;
    border: 0 none;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    color: #000;
    line-height: 17px;
    padding: 0 4px 5px;
    margin: 0;
}