html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, 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;
}
/* remember to define focus styles! */
:focus {
  outline: 0;
}
body {
  line-height: 1;
  color: black;
  background: white;
}
ol, ul {
  list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
  border-collapse: separate;
  border-spacing: 0;
}
caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: top;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
}
blockquote, q {
  quotes: "" "";
}

/*** LAYOUT ***/
body {
  background-image: url(../images/bg.gif);
}
#wrapper {
  width: 809px;
  margin: 0 auto;
  background: repeat-y url(../images/wrapper_bg.gif);
}
#shadow {
  background: bottom left no-repeat url(../images/wrapper_bottom.gif);
}
#shadow-padding {
  padding-bottom: 4px;
  margin: 0 4px;
}
h1#header {
  text-indent: -9999px;
  background: no-repeat url(../images/darwinweb_title.jpg);
  width: 793px;
  height: 50px;
  margin: 0;
}
h1#header a {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
#sidebars {
  float: right;
  width: 199px;
}
#sb1-tile {
  background: repeat-y url(../images/sb1_tile.gif);
}
#sb1, #sb2 {
  min-height: 210px;
  padding-top: 8px;
  padding-bottom: 1px; /** Avoid collapsing margins **/
}
#sb1 {
  background: no-repeat url(../images/sb1_top.gif);
}
#sb-divider {
  height: 10px;
  background: no-repeat url(../images/sb_transition.gif);
}
#sb2-tile {
  background: repeat-y url(../images/sb2_tile.gif);
}
#sb2-top {
  background: no-repeat url(../images/sb2_top.gif);
}
#sb2 {
  background: bottom left no-repeat url(../images/sb2_bottom.gif);
}

.sb1-header {
  background: repeat-y url(../images/sb1_head_tile.gif);  
}
.sb1-header div {
  background: no-repeat top left url(../images/sb1_head_top.gif);
}
.sb1-header div h4 {
  background: no-repeat bottom left url(../images/sb1_head_bottom.gif);
}

.sb2-header {
  background: repeat-y url(../images/sb2_head_tile.gif);  
}
.sb2-header div {
  background: no-repeat top left url(../images/sb2_head_top.gif);
}
.sb2-header div h4 {
  background: no-repeat bottom left url(../images/sb2_head_bottom.gif);
}

#content {
  margin: 0 0 8px 8px;
  width: 578px;
  padding: 8px 8px 8px 8px;
  background: white;
}
.non-comment-padding {
  padding: 0 8px;
}
.comments-tile {
  background: top left repeat-y url(../images/comments_tile.gif);
}
.comments {
  background: top left no-repeat url(../images/comments_top.gif);
  padding: 8px;
}
#clear-content {
  clear: both; 
  height: 0;
}
#footer {
  width: 750px;
  margin: 0 auto 2em;
  color: #6680CC;
  font-size: 10px;
  text-align: center;
}

/*** Typography ***/
body {
  line-height: 19px;
  font-family: helvetica, arial, sans-serif;
  font-size: 13px;
  color: #555;
}
/** sidebars **/
#sidebars {
  line-height: 18px;
  font-size: 12px;
}
#sb1 {
  color: #614A00;
}
#sb2 {
  color: #622100;
}
.sb1-header, .sb2-header {
  margin-bottom: 8px;
}
.sb2-header div h4, .sb1-header div h4 {
  color: white;
  letter-spacing: 5px;
  font-family: georgia, serif;
  font-size: 14px;
  font-weight: normal;
  text-transform: uppercase;
  line-height: 1.8;
  margin-top: 0;
}
.sb1-header div h4 {
  padding-left: 8px;
}
.sb2-header div h4 {
  padding-left: 16px;
}
#sb1 h5, #sb2 h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
}
#sb2 h5 {
  color: #CD4500;
}
#sb1 h5 {
  color: #CD9D00;
}
#sb1 ul, #sb1 p, #sb1 ol, #sb1 dl, #sb1 h5, #sb1 h6,
#sb2 ul, #sb2 p, #sb2 ol, #sb2 dl, #sb2 h5, #sb2 h6 {
  margin-bottom: 8px;
}
#sb1 ul, #sb1 p, #sb1 ol, #sb1 dl, #sb1 h5, #sb1 h6 {
  margin-left: 8px;
  margin-right: 16px;
}
#sb2 ul, #sb2 p, #sb2 ol, #sb2 dl, #sb2 h5, #sb2 h6 {
  margin-left: 16px;
  margin-right: 8px;
}
#sidebars dt img {
  float: right;
}
#sidebars a:link {
  color: #303B5F;
  font-weight: bold;
}
#sidebars a:visited {
  color: #303B5F;
  font-weight: bold;
}
#sidebars a:hover {
}
#sidebars a:active {
}
#recent-articles {
  padding-left: 8px;
}
#recent-articles li {
  text-indent: -8px;
}
#archive-link {
  font-style: italic;
  text-align: center;
}
#wwr {
  text-align: center;
}
#wwr img {
  border: 1px solid #be7a4b;
}
#wwr a {
  border: 0;
}

/** artices **/
.article h1 {
  font-size: 24px;
  line-height: 28px;
}
.article .meta {
  background-color: #6680CC;
  padding: 2px 8px 0;
  margin: 0 0 8px;
  color: white;
  font-size: 12px;
  line-height: 18px;
}
.article .meta .version {
  float: right;
}
.article .meta a {
  color: white;
  font-weight: bold;
}
div.body {
  padding-bottom: 32px;
}
h1,h2,h3,h4,h5,h6 { 
  color: #405080; 
  font-weight: bold;
  margin-top: 16px;
}
h1 {
  font-size: 24px;
}
h2 { 
  font-size: 16px;
}
h3 {
  font-size: 14px;
}
h5 {
  font-size: 11px;
}
h6 {
  font-size: 10px;
}
pre {
  font-family: monaco, courier, monospace;
  font-size: 11px;
  overflow: auto;
  margin: 4px 0;
}
blockquote {
  margin: 4px 24px;
  font-style: italic;
}
pre, blockquote {
  padding: 8px;
  line-height: 15px;
}
.article pre, .article blockquote {
  background-color: #E5EBFF;
}
p, ul, ol, dl {
  margin-bottom: 8px;
}
ul, ol {
  margin-left: 24px;
}
code {
  font-family: monaco, courier, monospace;
  background-color: #e5ebff;
  padding: 2px;
  font-size: 12px;
}
.article ul {
  list-style-type: circle;
}
.article ol {
  list-style-type: lower-roman;
}
strong {
  font-weight: bold;
}
em {
  font-style: italic;
}
a:link {
  text-decoration: none;
  color: #6680cc;
}
a:visited {
  text-decoration: none;
  color: #6680cc;
}
a:hover {
  border-bottom: 1px dotted;
  color: blue;
}
a:active {
  border-style: solid;
}

/** archives **/
.archive_article .date {
  float: left;
  width: 50px;
}
.archive_article h3 {
  font-size: 13px;
  font-weight: normal;
  margin-left: 50px;
  margin-top: 4px;
}


/** comments **/
h5.comment-header {
  margin: 0 0 8px;
  line-height: 20px;
  font-size: 14px;
  font-weight: normal;
  color: #614A00;
}
h5.comment-header img {
  float: left;
  margin-right: 8px;
}
h5.comment-header strong.name {
  font-weight: bold;
}
h5.comment-header .date {
  color: #cd9d00;
  font-size: 12px;
}
div.comment-content {
  margin-left: 48px;
  margin-bottom: 16px;
  line-height: 16px;
  font-size: 12px;
  border-bottom: 1px dotted #cd9d00;
}
div.comment-thankyou {
  margin-left: 48px;
  margin-bottom: 16px;
  color: #090;
  font-weight: bold;
}
.comment:last-child .comment-content {
  border-bottom: 0;
  margin-bottom: 8px;
}
.comments pre, .comments blockquote {
  background-color: #FFE588;
}
#comment-form {
  line-height: 30px;
}
#comment-form h2 {
  margin-top: 0;
}
#comment-form {
  margin-left: 48px;
}
#comment-form td:first-child {
  padding-right: 5px;
}
#comment-form input[type=text] {
  width: 200px;
}
#comment-form textarea {
  width: 400px;
  height: 200px;
  margin-top: 4px; /* To also align with text inputs */
}
#comment-form input[type=text], #comment-form textarea {
  border: none;
  padding: 4px;
  font-size: 12px;
  line-height: 14px;
  font-family: helvetica, arial, sans-serif;
}
label {
  font-size: 14px;
  color: #614A00;
}
#comment-form label span {
  color: #cd9d00;
}
#comment-form .desc {
  margin: -5px 0 13px;
  font-size: 10px;
  line-height: 12px;
}
#comment-preview h2 {
  margin: 0;
  color: #900;
}

#contact-form form {
  margin: 0 16px;
}

/*** Rails Errors ***/
.fieldWithErrors input, .fieldWithErrors textarea {
  background-color: #e6a273;
}
.errorExplanation {
  font-size: 11px;
  line-height: 16px;
  color: #622100;
  background: #e6a273;
}
.errorExplanation p {
  display: none;
}
.errorExplanation ul {
  padding: 4px 0;
  list-style-type: disc;
}
.errorExplanation h2, #comment-form .errorExplanation h2 {
  margin: 8px 0 0;
  padding: 4px;
  background-color: #622100;
  color: #fff;
}

/*** Rails Messages ***/
.notice { color: #090; }
div.notice {
  background-color: #cfc;
  padding: 0 4px;
  border-top: 1px dotted #6f6;
}
.warning { color: #997000; }
div.warning {
  background-color: #fed4ae;
  padding: 0 4px;
  border-top: 1px dotted #997000;
}
.alert { color: #900; }
div.alert {
  background-color: #feaeae;
  padding: 0 4px;
  border-top: 1px dotted #900;
}

/*** Generic Classes ***/
.clear { clear: both; }
.left { float: left; margin-right: 8px; }
.right { float: right; margin-left: 8px; }

/*** Admin Stuff ***/
#admin_wrap {
  width: 90%;
  margin: 0 auto;
  background-color: #FFF;
  padding: 16px;
}
#admin_nav {
  font-size: 14px;
}
#admin_nav li {
  display: inline;
  padding-right: 32px;
}

table.admin {
  border: 1px solid #ccc;
  border-collapse: collapse;
}
table.admin td {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 0 8px;
}