/* basic styles */

body div#main {margin-top: 1em; padding: 1em 2%;
   border: 2px solid rgb(30%,30%,50%);}

body div#sidebar {border: 2px solid rgb(45%,45%,65%);
   border-width: 2px 1px 1px;
   margin: 1em 2% 0 0;}

div#sidebar h4 {margin: 0; padding: 0.25em 0.33em 0.167em;
   text-align: right;
   border-bottom: 0 none; border-top: 1px solid;}
div#sidebar h4#sidetop {margin-top: 0; padding-top: 0.125em;}
div#sidebar form, div#sidebar p {margin: 0; border-style: none;}
div#sidebar p.subhead {padding: 0 0.5em 0.25em; text-align: right;}

div#sidebar a {display: block; 
   padding: 4px 5px 2px; margin: 0;
   border-left-style: none;
   border-top: 1px solid;
   text-decoration: none; outline-width: 0;}
div#sidebar a:hover {border-left-style: none;
   padding-left: 5px; margin-left: 0; text-align: center;}
div#sidebar img {width: 95%; max-width: 150px; 
   margin: 3px 0 5px; border-style: none;}

div.sublinks {border-left-style: none; margin: 0;}
div#sidebar div.sublinks a {border-top: 1px solid;
   border-left: 0.75em solid; margin-left: 0; font-size: 90%;}
div#sidebar div.sublinks a:hover {border-left-width: 0.75em;
   margin-left: 0;}

div.entry {clear: both; border-top: 1px solid;
   padding: 0 1em 0 0; margin: 0 -3% 2.5em 0;}

/* book-specific styling */

body#book div#main {margin: 1em 17% 0 140px !important;
  padding: 1em 7.5% 1em 0;}
body#book div#main img.cover {position: absolute; width: 125px;
  top: -2px; left: -135px; padding: 0;
  border-style: solid; border-width: 1px 2px 2px 1px;
  border-color: gray black black gray;}
body#book p#excerpt {border: 2px solid; border-left-width: 2em;
  padding: 0.5em; margin-bottom: 2em;}

/* colors */

h1#sitemast {border-color: rgb(20%,20%,40%);}
h1#sitemast span {background: transparent;}

body div#main {background-color: white;}
div#sidebar {background-color: rgb(90%,88%,80%);}
div#sidebar h4 {background-color: rgb(90%,88%,90%);
   border-color:  rgb(75%,73%,70%);}
div#sidebar p.subhead {background-color: rgb(90%,88%,90%);}
div#sidebar a {border-color: rgb(75%,73%,70%);} 
div#sidebar a:hover {background-color: white; border-color: rgb(75%,73%,70%);}
div#sidebar div.sublinks a {border-color: rgb(75%,73%,70%);}
