@media print {
body {
background:#FFF;
color:#000;
font-size:85%;
font-family:FreeSerif, "Times New Roman", serif;
margin:0;
}

a {
color:#222;
text-decoration:underline;
}

h1,h1 a,h2,h2 a,h3,h4,h5,h6 {
margin-bottom:0;
color:#000;
text-align:left;
font-family:FreeSans, "Segoe UI", Arial, sans-serif;
text-decoration:none;
}

h1 {font-size:2.4em;}
h2 {font-size:2em;}
h3 {font-size:1.6em;}
h4 {font-size:1.2em;}
h6 {font-size:.8em;}

img {
border:0;
page-break-inside:avoid;
page-break-after:avoid;
margin:5px;
}

input,textarea {
border:1px solid #aaa;
font-size:1.2em;
}

#header {
margin:0;
padding:1em 0;
}

#headertitle {
position:relative;
padding-left:0;
top:-8px;
z-index:2;
margin:0;
}

#headertitle h1 {
font-size:1.2em;
margin:0;
}

#headertitle h1:before {content:"(Printed from ";}
#headertitle h1:after {content:")";}

#headertitle p {
font-size:.9em;
font-style:italic;
margin:0;
}

.post {
clear:both;
margin:0;
}

.post p,.post ol li,.post ul li {
margin-top:0;
font-size:1.2em;
line-height:1.3em;
text-align:justify;
}

.post blockquote {
border-left:.4em solid #ccc;
background-color:#eee;
padding:.2em .3em 0 .2em;
}

.post blockquote blockquote {
margin-left:0;
}

.postmetadata {
font-size:.9em;
color:#888;
text-align:justify;
margin:1em 0;
}

#comments {
margin:0 2em;
}

.commentlist {
list-style:none;
margin:0;
padding:0;
}

.commentlist li {
overflow:auto;
border-bottom:.1em solid #eee;
padding:2em 0;
}

.commentlist p {
margin:.5em 0;
}

textarea#comment {
width:100%;
}

abbr {
border-bottom:.1em dotted;
}

.alignleft {
float:left;
}

.alignright {
float:right;
}

div.codeblock:before {
content:"Warning: The following code block may be truncated.";
}

div.codeblock {
background-color:#eee;
border:1px dashed #ccc;
margin-top:1em;
margin-bottom:1em;
overflow:auto;
padding:0;
}

div.codeblock pre {
font-family:FreeMono, monospace;
margin:.5em;
padding:0;
}

code {
font-family:FreeMono, monospace;
}

.PreProc {color:#ff40ff;}
.Statement {color:#8080ff;font-weight:bold;}
.Special {color:#ff6060;font-weight:bold;}
.Constant {color:#0a0;}
.Comment {color:#ff6060;}
.Identifier {color:#0aa;}

h1,h2,h3,h4,h5,h6 {page-break-after:avoid;page-break-inside:avoid;}
blockquote,table,pre {page-break-inside:avoid;}
ul,ol,dl {page-break-before:avoid;}

h5,.post li li {
font-size:1em;
}

img.wp-smiley,#wrapper,.commentlist h4 {
margin:0;
}

#sidebar,#headerad,.search,#hmenu,#content .navigation,#footer,#respond,#commentform,embed {
display:none;
}

#content .postentry a:link:after, #content .postentry a:visited:after,
#comments a:link:after, #comments a:visited:after {
   content: " (" attr(href) ") ";
   font-size: 90%;
}
#comments .commentmetadata:after {
  content: "";
}
#content a[href^="/"]:after {
   content: " (http://cad.cx" attr(href) ") ";
}


}

