@import url("/css/paragraphs");
@import url("/css/syntax");

@media screen {
  body {
    background-color: #eee;
    color: #333;
    margin: 0 0;
    padding: 0 0;
    font-family: "Trebuchet MS", serif;
    font-size: 12px;
  }
}

@media print {
  body {
    font-family: "Trebuchet MS", serif;
    font-size: 10pt;
  }
}

@media all {
  div#header {
    display: none;
  }
}

@media screen {
  div#header {
    display: block;
    width: 800px;
    height: 210px;
    padding: 0 0;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    border-left: 2px solid #ddd;
    border-right: 2px solid #ddd;
    background-color: white;
    border-bottom: 2px solid #ddd;
  }

  div#header img {
    margin: 5px;
  }
}

@media screen {
  body > div#outer_wrapper {
    width: 800px;
  }
  #outer_wrapper {
    width: 792px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    border-left: 2px solid #ddd;
    border-right: 2px solid #ddd;
  }
}

#container {
  width: 100%;
  float: left;
}

@media screen {
  #container { 
    margin-right: -152px;  /* width + 2*border */
  }
}

@media screen { 
  #content {
    margin-right: 150px;
  }
}

@media screen { 
  #main {
    margin-left: 150px;
    padding: 1ex;
    background-color: white;
  }
}

@media screen {
  #left {
    width: 130px;
    margin: 10px;
    float: left;
    background-color: #f7f7f7;
    border: 1px solid #eee;
  }

  #sidebar {
    width: 130px;
    float: right;
    background-color: #f7f7f7;
    border: 1px solid #eee;
    margin: 10px;
    font-size: 85%;
  }
}

@media print {
  #left {
    display: none;
  }

  #sidebar {
    display: none;
  }
}

@media screen { 
  #footer {
    background-color: #f7f7f7;
    margin: 0 0;
    padding: 0 0;
    text-align: center;
    font-size: 80%;
    color: #aaa;
    width: 800px;
    padding: 0 0;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    border-left: 2px solid #ddd;
    border-right: 2px solid #ddd;
    background-color: white;
    border-top: 2px solid #ddd;
    clear: both;
  }
}

@media print {
  #footer {
    border-top: 1pt solid black;
    width: 100%;
    clear: both;
    font-size: 80%;
  }
}

div#footer p {
  margin: 0 0;
  padding: 0 0;
}

@media screen { 
  a {
    text-decoration: none;
    color: #ffaa00;
  }

  a:hover {
    text-decoration: underline;
  }
}

@media print {
  a {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

h1 {
  margin-top: 0pt;
}

.clearing {
  height: 0pt;
  clear: both;
}

@media screen { 
  p.date {
    color: #bbb;
    font-size: 80%;
    border-top: 1px dashed #bbb;
    margin: 1ex -20px 1ex -20px;
  }
}

@media print {
  p.date {
    color: #bbb;
    font-size: 80%;
    border-top: 1pt dashed #bbb;
    margin: 1ex -20pt 1ex -20pt;
  }
}

div.entry { 
  text-align: justify;
}

@media screen { 
  div.entry {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media print {
  div.entry {
    margin-left: 20pt;
    margin-right: 20pt;
  }
}

@media screen { 
  div#left, div#otherstories {
    padding: 2px;
  }
}

@media screen { 
  h1, h2, h3, h4, h5, h6,
  div#otherstories dt {
    color: #036;
  }
}

@media screen { 
  h1 {
    font-size: 22px;
  }

  div.entry > h1 {
    margin: 3em -20px 10px -20px;
  }
}

@media print {
  div.entry > h1 {
    margin: 3em -20pt 10pt -20pt;
  }
}

div#otherstories > dl {
  margin: .5em 0 1em;
  padding-left: 0;
}

div#otherstories dt {
  letter-spacing: 0.1em;
  line-height: 1.5em;
  font-weight: bold;
}

div#otherstories dd {
  padding: 0 0;
  margin: 0 0 1em;
}

img.categoryimg {
  float: left;
  width: 60px;
  height: 80px;
  border: 1px solid red;
  margin: 0 1em 1em -20px;
}

pre {
/*   clear: left; */
}

p.postinfo {
  clear: both;
}

pre {
  border: 1px solid #ddd;
  padding: 3pt;
  font-family: "Lucida Console", "fixed", "monospace";
  font-size: 80%;
}

@media print {
  span.categorytitle {
    text-transform: uppercase;
    font-size: 60%;
    font-weight: bold;
    padding-left: 1em;
  }
}

@media screen { 
  span.categorytitle {
    color: #00aaff;
    text-transform: uppercase;
    font-size: 60%;
    font-weight: bold;
    padding-left: 1em;
  }

  span.navigation a {
    display: block;
    width: 120px;
    border: 1px solid #ddd;
    background-color: white;
    margin: 1px 3px 1px 3px;
    padding: 1pt;
  }
}

table.oldernews {
}

table.oldernews td.newsdate {
  color: #aaa;
  font-size: 80%;
  padding-top: 1ex;
}

ul.archives, ul.categories {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

ul.archives li, ul.categories li {
  list-style-type: none;
  margin-left: 0;
}

ul.archives ul, ul.categories ul {
  padding-left: 1em;
  margin-left: 0;
}

p.copyright {
  color: #aaa;
  font-size: 80%;
}

p.date + p {
  text-indent: 0;
}

blockquote {
  color: #666;
}

pre {
  color: black;
}
