
/* layout -------------------------------------------------- */

#main {
  float: left;
  margin-right: -36pt;
}

#sidebar { 
  margin: 1em 2em 1em 2em;
  width: 50em;
  clear: both;
  float: right;
}

.sidebox {
  padding: 0.5em 1em 1em 0.75em;
  margin-top: 2px;
  font-size: 0.9em;
/*  border: solid #99a 1px; */
/*  background-color: #ddd; */
}  

@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; }

@media print {
  a.offsite:after {
    content: " <" attr(href) "> ";
    font-size: 85%;
    font-weight: lighter;
  }
} 

         
/* blocks ------------------------------------------------------- */

@media screen {
  body {
    background-color: #fafafa;
    margin: -18pt 0pt 18pt 18pt;
  }
  p, td, th, li, dt, dd { 
/*    font: 1.0em/1.1em Georgia, "Times New Roman", Times, serif; */
    font: 1.0em/1.25em "Gill Sans", Helvetica, helvetica, sans-serif; 
    color: #232;
  }
  p { margin: 0.75em 1em 0.1em 0em; }
  pre { font-family: helvetica, sans-serif; }  
}

@media print {
  body {
    color: black;
  	margin: 0 72pt 0 0;
  }
  p, td, th, li, dt, dd { 
    font: 10pt/12.5pt Palatino Linotype, palatino, Book Antiqua, serif; 
    line-height: 140%;
  } 
  p { 
    margin: 0 0 6.5pt 0;
    text-align: justify;
  }
}


/* headings  -------------------------------------------------- */

h1, h2, h3, h4 {
  page-break-after: avoid;
  page-break-inside: avoid;
  background-color: transparent;
  font-family: Palatino, Palatino Linotype, serif;
  font-weight: normal;
  color: #303;
  margin: 1.2em 0 0 0; 
  padding: 0;
}

@media screen {
  h1 {
    font-size: 2.25em;
    margin: 18pt -72pt 18pt -72pt;
    padding: 6pt 12pt 2px 10px;
    text-align: center;
/*    background-color: #258;  */
    color: white;
  }
}
  
h2 {
  font-size: 1.9em;
}

h3 {
  font-size: 1.5em;
  color: #888;
  margin-top: .4em;
}

h4 {
  font-size: 1.25em;
  margin-top: .4em;
}


/* 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;
}

blockquote p {
  font-style: italic;
}

hr {
  border-style: none;
  background-color: #EEE;
  padding: 1px;
}


/* specialisations --------------------------------------------------- */

/* a special section, banner, text callout, etc. */
@media screen {
  .callout {
    margin: 2em 0;
    padding: 1em;
    background-color: #ddd;
    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 {
    display: none;
  }
}      

@media print {
  .ad {
    display: none;
  }
}

/* navigation banner at the bottom of the screen */
.navigation {
  font-family: helvetica, arial, sans-serif;
  font-weight: lighter;
  font-size: 10pt;
  text-align: right;
  word-spacing: 0.2em;
  margin: 36pt -72pt -36pt -72pt;
  padding: 9px 48pt 9px 10px;
  background-color: #ddd;
  border-top: black solid 1px;
  clear: both;
}

@media print {
  .navigation {
    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;
}

@media screen {
  .subtitle {
    text-align: right;
    font-style: italic; 
    padding-right: 0;
    margin-right: 0;
  }
}

.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;
}


