/* blocks ------------------------------------------------------- */
body {
    margin: 36px 72px 36px 72px;
    max-width: 800px;
    font: 0.85em/1.35em Helvetica Neue, Geneva, sans-serif;
    color: #222;
    background-color: #fefefe;
}

/* iPhone, Wii, etc... */
@media screen and (max-width: 800px) {
	body {
        margin: 2em 1em;	
	}
}

p { margin-top: 0.5em; }

p, li, blockquote, pre, dt, dd {
    max-width: 800px;
}

pre { font-family: helvetica, sans-serif; }



/* links --------------------------------------------------------- */
	
a:link, a:visited, a:active { 
    color: #303b97; 
    text-decoration: none; 
    background-color: transparent;
}
a:hover { 
    color: #ffd700; 
    text-decoration: none; 
    background-color: transparent;
}
a:active { background-color: #FD0; }
a.offsite:hover { 
  background-color: #d0dbe7; 
  text-decoration: none;
  border-bottom: none;
}
a img { border: none; }

/* headings  -------------------------------------------------- */

h1, h2, h3, h4, h5 {
    font-weight: normal;
    background-color: transparent;
    margin: 0 0 0 0; 
    padding: 0;
    line-height: 1.15em;
    page-break-after: avoid;
    page-break-inside: avoid;
	letter-spacing: -0.05em;
}

h1 { font-size: 20pt; }
h2 { font-size: 18pt; }
h3 { font-size: 14pt; margin-bottom: 4px; }
h4 { font-size: 12pt; }
h5 { font-size: 10pt; }

h1 .accent, h2, h3 .accent, h4, h5 .accent { color: #BC001B; } 
h1, h2 .accent, h3, h4 .accent, h5 { color: #BC001B; }

h1 a:link, h1 a:visited, h2 a:active { 
    color: #BC001B; 
}
h2 a:link, h2 a:visited, h2 a:active { 
    color: #BC001B; 
}
h3 a:link, h3 a:visited, h3 a:active { 
    color: #BC001B; 
}

h1 a:hover { 
    color: #ffd700; 
}
h2 a:hover { 
    color: #ffd700; 
}
h3 a:hover { 
    color: #ffd700; 
}

h1 {
    margin-top: 0.5em;
    margin-bottom: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #333;
    background-color: transparent;
}
h1 + .subtitle { margin-top: 6px; font-size: 90%; }
h1 + .navtop, h1 + .subtitle + .navtop {
    margin: 0.2em 0 0 0;
    position: relative;
    top: -4.9em;
    text-align: right;
    max-width: 800px;
}
h1 + .navtop { top: -2em; }
.navtop + .date {
    position: relative;
    top: -4.25em;
    text-align: right;
    max-width: 800px;
    font-size: 90%;
}
h1 + p {margin-top: 1.5em; }  

/* feed button in sidebar */
h4 + .navtop {
    position: relative;
    top: -1.5em;
    text-align: right;
    margin: 0;
}

h1#banner
{
color: #BC001B;
font-size: 30pt;
font-weight: bold;
}


/* tables -------------------------------------------------------- */

table.grid th {
  font-weight: normal;
  text-align: right;
  padding: 3px 6px;
}

table.grid td {
  padding: 3px 6px;
}


/* lists -------------------------------------------------------- */

ul { list-style-type: disc; margin: 0 0 0.5em 0.5em; padding-left: 1.5em; }
dt { font-weight: bold; }
dd { padding-bottom: 0.5em; }


ul.inline { list-style-type: none; }
ul.inline li { display: inline; margin-right: 1em; white-space: nowrap}
ul.inline li:before { content: ''; }


/* other redefinitions ------------------------------------------ */

@media screen {
  strike { text-decoration: none; }
  strike:after { content: "^H^H^H^H^H"; }
}

acronym:hover, abbrev:hover { cursor: help; }
abbrev[title], acronym[title], span[title] {
  border-bottom: thin dotted;
  cursor: help;
}

input[type='text'], textarea, select {
  border-color: black;
  border-style: solid;
  border-width: 1px;
  margin: 2px 1px;
  padding: 1px;
}

hr {
  border-style: none;
  background-color: #ddd;
  padding: 1px;
}

/* hack for apache directory listings */
h1 + pre hr { visibility: hidden; }


blockquote {
  border-style: solid;
  border-color: #d0dbe7;
  border-width: 0 0 0 .25em;
  padding-left: 0.5em;
}


q { quotes: '\201C' '\201D' '\2018' '\2019'; }          
q:before {
  content: "\201C";
  content: open-quote;
  font-size: 1.5em;
}
q:after {
  content: "\201D";
  content: close-quote;
  font-size: 1.5em;
}


/* specialisations --------------------------------------------------- */

.blog {
    max-width: 580px;
}
.intro {
	font-size: 1.1em;
	line-height: 1.35em;
    font-family: Helvetica Neue, Geneva, sans-serif;
	page-break-inside: avoid;
}

.intro a {
	font-weight: bolder;
}

.intro+h2, .intro+h3, .intro+h4 {
	margin-top: 2em;
}

.callout {
    width: 250px;
    font: 1.3em/1.3em Garamond, "Times New Roman", Times, serif;
    padding: 0em 0em 0em 1em;
    border-left: #a30 solid 0.25em;
    page-break-inside: avoid;
}

.left {
    float: left;
    margin: .5em 2em .5em 0em;
}

.right {
    float: right;
    margin: .5em 0em .5em 2em;
}

.ad1 {
    margin: 1em 0;
}

.banner {
    margin: 2em 0;
    padding: 1em;
    background-color: #ececda;
    border-left: #a30 solid 1em;
}


.footnote {	 /* piddling detail */
    text-align: right;
    font-size: 0.8em;
    margin-top: 0px;
}

.button {   /* one of those little buttons that say I'm a good boy */
    text-align: right;
}

/* text-based button */
.textbutton, a.textbutton:link, a.textbutton:visited, a.textbutton:active, a.textbutton:hover {
    border:1px solid;
    border-color:#FC9 #630 #330 #F96;
    padding:0 3px;
    font:bold 10px verdana,sans-serif;
    color:#fff;
    background:#F60;
    text-decoration:none;
    margin:0;
}

p.navtop {
    font-family: arial, helvetica, sans-serif;
    font-size: 0.9em;
}

/* navigation banner at the bottom of the page */
span.navigation {
    font-family: arial, helvetica, sans-serif;
    font-weight: bold;
    color: white;
    padding: 2px 2px 2px 72px;
    background-color: #BC001B;
    opacity: .9;
    border-top: #999 solid 1px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    max-width: 800px;
}

span.navigation img {
	margin: 0px;
	padding: 0px;
	border: none;
}

span.navigation a {
    margin-left: 1em;
	color: #ffd700;
    margin-right: 1em;
}

span.navigation a:hover {
	color: red;
}

.detail {
    font-size: 0.8em;
    page-break-inside: avoid;
}

.warning {
    background-color: #F60;
    border: #C30 solid 1px;
    padding: 3px;
    text-align: center;
}

.author {
    text-align: right;
    font-style: italic;
    font-size: 0.8em;
    margin: 0pt;
}

.version {  /* bottom right or in the top right header */
    text-align: right;
    font-style: italic;
    font-size: 0.8em;
    margin: 0pt;
    padding-top: 12px;
    color: #999;
}

.date { /* to the right of a headline */
    margin: 0.25em 0 0 0;
    text-align: right;
}
.date + * {
    margin-top: 0.10em;
}

.example {
    font-family: monospace;
    font-size: 0.9em;
    background: #ececda;
    margin-left: 2em;
    margin-right: 2em;
    overflow: auto;
}

.spec {
    font-family: monospace;
    font-size: 0.9em;
    margin-left: 1.2em;
    margin-right: 1.2em;
    overflow: auto;
}

.story + .story {
    margin-top: 2em;
}


/* images -------------------------------------------------------- */


.image {
	text-align: center;
}

.image img, .flickrimg, .flickr_badge_image {
	background-color: white;
	padding: 1.5em 1.5em 2em 1.5em;
	border: solid 1px #ddd;
    margin: 0.25em 0;
}


.galimg img {
	background-color: white;
	padding: 1em;
	border: solid #eee 2px;
}

.galimg a:hover img {
    border-style: inset;
    border-color: blue;
    border-width: 2px;
}

.galimg a:hover {
    background-color: transparent;
}

.galimg:hover:after, div:hover:after {
    display: none;
}

/* print --------------------------------------------------------- */

@media print {
    #main { width: 100%; }
    #sidebar { display: none; }
    body { 
        margin: 18pt 48pt 18pt 32pt; 
        max-width: 100%;
        font: 8.5pt/10.5pt Palatino Linotype, palatino, Book Antiqua, serif; 
    }
    form, .navtop, .navigation, a.textbutton, .imgnav, .ad1, .sharesb {
        display: none;
    }
}

/* social bookmarks --------------------------------------------------------- */
.sharesb ul li a
{
padding-top: 0pt;
padding-right: 0pt;
padding-bottom: 0pt;
padding-left: 18px;
margin-top: 0pt;
margin-right: 12px;
margin-bottom: 0pt;
margin-left: 0px;
}
.sharesb
{
clear: both;
position: relative;
padding-top: 3px;
padding-right: 3px;
padding-bottom: 3px;
padding-left: 3px;
margin-top: 15px;
margin-right: 0pt;
margin-bottom: 10px;
margin-left: 0pt;
}
.sharesb ul li
{
text-align: center;
display: inline;
padding-top: 0pt;
padding-right: 4px;
padding-bottom: 6px;
padding-left: 0pt;
}
.sharesb ul li.delicious
{
background-color: transparent;
background-image: url(http://www.permanentrevolution.net/images/delicious.gif);
background-repeat: no-repeat;
background-attachment: scroll;
background-x-position: 0pt;
background-y-position: 0pt;
}
.sharesb ul li.digg
{
background-color: transparent;
background-image: url(http://www.permanentrevolution.net/images/digg.gif);
background-repeat: no-repeat;
background-attachment: scroll;
background-x-position: 0pt;
background-y-position: 0pt;
}
.sharesb ul li.reddit
{
background-color: transparent;
background-image: url(http://www.permanentrevolution.net/images/reddit.gif);
background-repeat: no-repeat;
background-attachment: scroll;
background-x-position: 0pt;
background-y-position: 0pt;
}
.sharesb ul li.facebook
{
background-color: transparent;
background-image: url(http://www.permanentrevolution.net/images/facebook.gif);
background-repeat: no-repeat;
background-attachment: scroll;
background-x-position: 0pt;
background-y-position: 0pt;
}
.sharesb ul li.stumbleupon
{
background-color: transparent;
background-image: url(http://www.permanentrevolution.net/images/stumbleupon.gif);
background-repeat: no-repeat;
background-attachment: scroll;
background-x-position: 0pt;
background-y-position: 0pt;
}

input#search
{
	border: 1px solid silver; 
}