/* stolen from mnot.net */
/* layout -------------------------------------------------- */

#main {
    float: left;
}

#sidebar { 
    margin: 1em 0em 1em 2em;
    width: 18em;
    clear: both;
    float: right;
}

.sidebox {
    padding: 0.5em 0em 1em 0.75em;
    margin-top: 12px;
    font-size: 0.9em;
}  

@media print {
    #main { width: 100%; }
    #sidebar { display: none; }
}


/* links --------------------------------------------------------- */

a:link, a:visited, a:active { 
    color: #00C; 
    text-decoration: none; 
    background-color: transparent;
}
a:active { background-color: #FD0; }
a:hover { text-decoration: underline; }
a.offsite:hover { background-color: #ddd; text-decoration: none; }
a img { border: none; }

[id]:hover:after { 
  content: " #" attr(id) " "; 
  font-size: 50%;
  color: #ccc;
  text-decoration: none;
}
.galimg:hover:after, div:hover:after {
  display: none;
}

@media print {
    a.offsite:after {
        content: " <" attr(href) "> ";
        font-size: 75%;
        font-weight: lighter;
    }
} 

         
/* blocks ------------------------------------------------------- */

@media screen {
    body {
        background-color: #fafafa;
        margin: 0pt 64pt;
    }
    p, td, th, li, dt, dd { 
        font: 0.9em/1.3em Geneva, Verdana, Arial, Helvetica, generic; 
        color: #111;
    }
    p { margin: 0.1em 0em }
    p + p { margin-top: .5em; }
    pre { font-family: helvetica, sans-serif, generic; }  
}

@media print {
    body {
        color: black;
        margin: 18pt 18pt 18pt 18pt;
    }
    p, td, th, li, dt, dd { 
        font: 10pt Palatino Linotype, palatino, Book Antiqua, serif; 
    } 
    p { 
    	margin: 0;
    }
    p + p { margin-top: .5em; }
}


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

h1, h2, h3, h4 {
    page-break-after: avoid;
    page-break-inside: avoid;
    background-color: transparent;
    font-family: Palatino, Palatino Linotype, serif, generic;
    font-weight: normal;
    padding: 0;
    text-indent: -0.25em;
}

@media screen {
  h1, h2, h3, h4 {
    margin: 1em 0 0 0; 
    color: #303;
  }
  
  h1 {
    font-family: "HelveticaNeue-UltraLight", "Helvetica Neue UltraLight", "GillSans-Light", helvetica, sans-serif, generic;
    font-weight: 100;  
    font-size: 2.7em;
    margin: 0pt -64pt -3pt -64pt;
    line-height: 0.65em;
    padding: 9pt 18pt 0pt 9pt;
    text-align: left;
    background-color: #aaaaff;
    color: #00f
  }
  
  h1 + p {
  	margin-top: 1.5em;
  }

  h2 {
    font-size: 1.8em;
  }

  h3 {
    font-size: 1.2em;
    color: #444;
    margin-top: 1em;
  }

  h4 {
    font-size: 1em;
    margin-top: .3em;
  }
}

@media print {
  h1, h2, h3, h4 {
    margin: 8pt 0 0 0;
    color: black;
  }

  h2 {
    font-size: 14pt;
    margin-top: 16pt;
    margin-bottom: 10.5pt;
  }

  h3 {
    font-size: 12pt;
    margin-top: 10.5pt;
    margin-bottom: 0pt;
  }

  h4 {
    font-size: 10pt;
    margin-top: 5.5pt;
    margin-bottom: 0pt;
  }
}

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

table.grid th {
  font-weight: normal;
  text-align: right;
  color: white;
  background-color: #333;
  padding: 3px 6px;
}

table.grid td {
  background-color: #eee;
  padding: 3px 6px;
}


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

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


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

acronym:hover, abbrev:hover { cursor: help; }
abbrev[title], acronym[title], span[title] {
  border-bottom: thin dotted;
  cursor: help;
}
    
em {
  font-style: normal;
  background-color: #FF9;
}

@media print {
  em {
    background-color: transparent;
    font-style: italic;
  }
}

input, textarea, select {
  border-color: black;
  border-style: solid;
  border-width: 1px;
  margin: 2px 1px;
  padding: 1px;
}

@media print {
  form {
    display: none;
  }
}

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;
}

blockquote p {
  font-style: italic;
}

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


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

@media screen {
  p.subtitle {
    text-align: right; 
    margin: 3pt -64pt;
    padding: 2pt 18pt 1pt 10pt;
    background-color: #ddd;
  }
}

/* a special section, banner, text callout, etc. */
@media screen {
  .callout {
    margin: 2em 0;
    padding: 1em;
    background-color: #eee;
    border-left: #258 solid 1em;
    clear: both;
  }
}

@media print {
  .callout {
    margin: 8pt 0;
    padding: 12pt;
	border-left: solid black 12pt;
  }
}

.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 */
a.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;
}

@media print {
  a.textbutton, .ad {
    display: none;
  }
}

/* navigation banner at the bottom of the page */
.navigation {
  font-family: helvetica, arial, sans-serif, generic;
  font-weight: lighter;
  font-size: 10pt;
  text-align: right;
  word-spacing: 0.2em;
  margin: 36pt -64pt 0pt -64pt;
  padding: 4pt 18pt 6pt 64pt;
  background-color: #ddd;
  border-top: black solid 1px;
  clear: both;
/*  position: fixed;
  bottom: 0;
  left: 64pt;
  right: 64pt; */
}

/* navigation banner at the top of the page */
p.navtop {
  text-align: right;
  margin-right: -64pt;
  padding-right: 18pt; 
  font-size: 0.8em;
}

h1 + p.navtop {   /* ooh, ahh */
    margin: 0pt -64pt;
    padding: 2pt 18pt 1pt 10pt;
    background-color: #aaaaff;
}


@media print {
  .navigation, .navtop {
    display: none;
  }
}

.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;
}

.example {
  font-family: monospace;
  font-size: 0.9em;
  background: #ddd;
  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;
}

@media print {
  .example, .spec {
	font: 9pt/10pt monospace;
	page-break-inside: avoid;
	text-align: left;
    border-color: black;
    border-style: solid;
    border-width: 0.5pt;
    padding: 6pt 3pt;
  }
}


/* search results formatting -------------------------------------- */

.searchbody {
  font-family: helvetica, arial, sans-serif;
  font-size: 0.9em;
  color: black;
  background-color: white;
  margin: 18pt 36pt 18pt 0pt;
}

