/*
  main-full-width.css: CSS for Cahiers pour l'Analyse site
  top/side menus, full width, liquid
  tested and working in: 
  Firefox 2-5/Win, IE6-7/Win, Opera 9.5/Win, Chrome 13/Win
  Firefox 6/Ubuntu 11.10, Chromium 13/Ubuntu 11.10
  Safari/iOS
  */

body {
  margin: 0;
  padding: 0;
  background: red;
  color: #222;
  font-family:  Arial, Helvetica, sans-serif;
  font-size: 90%;
}

/* Resets */
div,p,h1,h2,h3,h4,ul,ol,li,form,input,dl,dt,dd {
  margin: 0;
  padding: 0;
}

/* Page layout */
#wrapper {
  position: relative;
  margin: 10px 0;
  background: #fefefe;
  color: #222;
  border-top: 4px solid #aaa;
  border-bottom: 4px solid #aaa;
}

#menu {
  position: absolute;
  top: 140px;
  left: 0;
  margin: 0 10px 20px 10px;
  padding: 0;
  font-family: "Courier New", Courier, monospace;
}

#crumbs {
  margin: 0 0 10px;
  padding: 10px;
  border-top: 1px solid red;
  border-bottom: 1px solid red;
  font-size: 0.9em;
  clear: both;
}

#sidemenu {
  position: absolute;
  left: 0;
  width: 200px;
}

#content {
  margin: 0 0 0 200px;
  padding: 0 10px 10px 10px;
  min-height: 44em;  
  /* We need to set the 'min-height' of the #content column so that it is always longer than the menu.
     IE/Win doesn't recognise 'min-height' (except on table cells), but we can use 'height' instead */
  height: 45em;
}

/* IE/Win doesn't recognise attribute selectors, so we can use this to set the height to the correct value for compliant browsers */
#content[id] {
  height: auto;
}

/* pages with expanded side menu need a longer min-height */
#expanded-menu #content {
  min-height: 77em;
  height: 78em;
}

/* IE/Win doesn't recognise attribute selectors, so we can use this to set the height to the correct value for compliant browsers */
#expanded-menu #content[id] {
  height: auto;
}

#footer {
  clear: both;
  background: #222;
  color: #faf7de;
  padding: 10px;
  font-size: 0.85em;
}

#footer a {
  color: #faf7de;
}

#header {
  position: relative; /* for search box absolute position */
  width: 960px;
  height: 180px;
  background: url('/images/background-banner.gif') top left no-repeat;
}

#acknowledge {
  margin: 15px 7px 0;
  line-height: 140%;
  font-size: 0.85em;
}

#acknowledge p {
  margin-bottom: 15px;  
}

#info-banner {
  border: 2px solid black;
  padding: 5px;
  padding-bottom: 0px;
  text-align: center;
  font-size: 0.85em;
}

.clearfloat {
  clear: both;
}

/* Navigation */
#menu ul {
  font-size: 1.0em;
  color: #222;
  list-style: none;
  float: left;
}

#menu li {
  float: left;
  margin: 0 5px 5px 0;
  list-style: none;
}

#menu li a {
  display: block;
  text-decoration: none;
  color: #222;
  background: white;
  padding: 2px 5px;
  border: 1px solid #222;
}

#menu li.selected a {
  background: #222;
  color: #faf7de;
}

#menu li a:hover, #menu li a:focus {
  background: #222;
  color: #faf7de;
}

#menu form {
  padding: 10px 0;
  clear: both;
  font-size: 0.85em;
}

#sidemenu ul {
  list-style: none;
  margin: 5px;
}

#sidemenu li {
  display: inline;
}

#sidemenu li a {
  display: block;
  border: 1px solid white;
  border-top: none;
  background: #ddd;
  color: black;
  padding: 5px;
  text-decoration: none;
}

#sidemenu li.first a {
  border-top: 1px solid white;
}

#sidemenu li.selected a {
  color: red;
  font-weight: bold;
}

#sidemenu li.selected li a {
  color: black;
  font-weight: normal;
}

#sidemenu li a:hover, #sidemenu li.selected li a:hover {
  background: black;
  color: white;
}

/* Search box */
#search-form
{
  position: absolute;
  width: 300px;
  top: 15px;
  left: 640px;
}

input {
  font-size: 1em;
  line-height: 1.5em;
}

/* Content styles */
.non-article #content {
  font-size: 90%;
}

h1 {
  font-family: "Courier New", Courier, monospace;
  font-size: 23px;
  font-weight: bold;
  padding: 10px 0 0 10px;
}

h2 {
  font-size: 1.2em;
  margin: 1.0em 0;
  font-weight: bold;
}

h3 {
  font-size: 1.1em;
  font-weight: bold;
  margin: 2.5em 0 1.5em;
}

h4 {
  font-size: 1.0em;
  font-weight: bold;
  margin: 2.5em 0 1.5em;
}

a img {
  border: 0;
}

a.external {
  background: transparent url('/images/icon-external-link.png') no-repeat right center;
  padding-right: 14px;
}

#content p {
  margin: 0 0 1em;
  line-height: 160%;
}

.non-article #content p {
  line-height: 150%;
}

#content table {
  border-collapse: collapse;
  border: 1px solid black;
  margin: 0 0 10px;
}

#content td, #content th {
  border: 1px solid black;
  padding: 5px;
  font-size: 100%;
}

#content table.borderless,
#content table.borderless td,
#content table.borderless th {
  border: 0 none white;
}

#content ul {
  margin-bottom: 10px;
  padding-bottom: 10px;
  line-height: 160%;
}

#content ul li {
  margin: 5px 10px 5px 15px;
  padding-left: 10px;
}

#content ul.plain {
  list-style: none;
}

#content ol {
  margin-top: 10px;
  line-height: 160%;
}

#content ol li {
  margin: 0 0 5px 30px;
  padding-left: 0;
}

#content ol ol li {
  list-style-type: lower-roman;
}

#content p.listhead {
  font-weight: bold;
  text-indent: 0;
}

dl {
  margin-bottom: 10px;
  padding-bottom: 10px;
  line-height: 160%;
}

dt {
  font-weight: bold;
  margin-bottom: 5px;
  padding-top: 5px;
}

dd {
  margin: 5px 10px 5px 15px;
  padding-left: 10px;
}

.pb {
  font-weight: bold;
}

.img-frame {
  margin: 10px 10px 10px 0;
  padding: 0;
}

.img-frame img {
  margin: 0;
  display:block;
}

.img-frame div.caption {
  padding: 5px;
}

#content .img-frame div.caption p {
  margin: 0 0 0.5em;
  padding: 0;
  font-size: 0.85em;
  line-height: 120%;
  text-indent: 0;
}

#content p img {
  vertical-align: middle;
}

sub, sup  {
  font-size: 0.8em;
}

.indent {
  padding-left: 5px;
}

.symbol /* make sure some of the more obscure symbols are accurately rendered in a Unicode font */ {
  font-family: "Arial Unicode MS", "Microsoft Sans Serif", "Free Sans", "DejaVu Sans", "Bitstream Cyberbit", "Bitstream CyberBase";
}

/* Opening */
.opener {
  margin-bottom: 3em;
}

.non-article .opener {
  font-size: 1.2em;
}

/* References/bibliographies */
#refs table, #refs table th, #refs table td  {
  border: none;
}

#refs table th {
  text-align: left;
}

#refs table th, #refs table td {
  padding-left: 0;
  padding-right: 15px;
}

#refs ul {
  padding-bottom: 2px;
  margin-bottom: 5px;
}

#refs ul li {
  list-style: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
}

/* Footnotes */
#notes, #editorial-notes {
  border-top: 1px solid black;
  margin: 10px 5px 0;
  font-size: 0.9em;
}

#notes p, #editorial-notes p, #content p.opening, #content blockquote p  {
  text-indent:0;
}

#notes p, #editorial-notes p {
  font-size: 0.9em;
}

.note {
  font-size: 0.9em;
}

a.ednotelink {
  color: red;
}

/* Articles */
.author {
  font-size: 1.2em;
}

p.pdflink {
  font-size: 0.9em;
  font-style: italic;
}

#content .article-contents ul {	
  list-style-type: none;
}

#content .article-contents ul li {
  margin-left: 0;
  padding-left: 0;
}

/* Concepts */
div.authors ul,
div.concepts ul {
  float: left;
  width: 30%;
  color: #222;	
}

.title-trans {
  font-weight: normal;
  font-style:italic;
}

#content .concept-desc {
  font-style: italic;
}

#content .concept-desc em {
  font-style: normal;
}

#content .see-also {
  font-weight: bold;
  margin: 0 0 1em;
}

#content .see-also ul {
  display: inline;
}

#content .see-also ul li {
  display: inline;
  margin: 0;
  padding-left: 0;
}

/* Contents pages */
#content p.pubdetails {
  font-size: 0.9em;
}

#content table.contents {
  margin: 0 20px 15px;
  border: none;
  width: 90%;
}

#content table.contents tr {
  vertical-align: top;
}

#content table.contents td {
  padding: 0.25em;
  border: none;
}

#content table.contents td.article-num {
  width: 11%;
}

#content table.contents td.author-title {
  width: 61%;
}

#content table.contents td.html-link {
  width: 7%;
}

#content table.contents td.pdf-link {
  width: 7%;
}

#content table.contents td.syn-link {
  width: 7%;
}

#content table.contents td.trans-link {
  width: 7%;
}

/* Books page */
.contents .chapter-num {
  width: 5%;
}

/* Names page */
div.names div.col-3 {
  float: left;
  width: 30%;
}

div.names div.col-2 {
  float: left;
  width: 45%;
}

div.names h3,
div.names ul,
div.names p {
  margin-right: 20px;
}

/* Abbreviations page */
.abbreviations dt {
  float: left;
  padding: 0;
}

.abbreviations dd {
  margin: 0 0 1em 30px;
}