/*new left-hand nav*/
table#container td.leftnav .navlist {font-size: 85%; } 
table#container td.leftnav .navlist ul {margin: 0; padding: 0 3px 0 0; list-style: none; line-height: 98%;}
table#container td.leftnav .navlist ul li {padding-bottom: 6px;}
table#container td.leftnav .navlist ul li ul {padding-left: 1em; padding-top: 1px; list-style: none;}
table#container td.leftnav .navlist ul li ul li {padding-bottom:1px;}
table#container td.leftnav .navhead {font-weight: bold; font-size: 90%; color: #333333; font-family: Arial, Helvetica, sans-serif; margin:9px 0 4px 0;}

.list ul {margin: 0; padding: 20px; list-style: none; text-align: right; font-size:90%;}
.list ul li {padding-top: 0em;}


/*layout for pages with lefthand panel of pictures*/
#layout {position: relative; padding: 0; margin:0; width: 98%;}
#leftpanel {width: 137px; margin:6px 12px 6px 0; border-right: 2px #666 solid; float:left; 
padding-left: 113px; padding-bottom:30px;}
#rightpanel {margin: 6px 0 0 240px; padding-left: 20px; padding-top: 3px;}

/* for new cambarea index */
.calist ul {list-style: none; margin-left: 0; padding-left: 0; font-size: 95%;}

/*for a-z and addresses pages (on cam.ac.uk)*/
table.index {border:0; width:80%;margin-top: 24px;  margin-left:10%; margin-right:10%;}
table.index td {font-size: 90%; background: #ffffff; padding:2px; text-align: center;border-top: solid
#cccccc
2px; border-left: solid #cccccc 1px; border-right: solid #cccccc 1px; border-bottom: 0px;}
table.index td.active {font-size: 90%; background: #0099cc; color: #ffffff;  padding:2px;border-top: solid black
2px; border-left: solid black 1px; border-right: solid black 1px; border-bottom: 0px;}
table.index td.blank {font-size: 90%; background: #ffffff; padding:2px; text-align: center;border: 0px;}
table.index td.blue {font-size: 90%; background: #0099cc; padding:0; border: 0px;}
table.index td.grey {font-size: 90%; background: #cccccc; padding:0; border: 0px;}

/*for hiding explanation and heading inserted for old netscape browsers*/
h1.indexns {display: none;}
p.indexns {display:none;}


/***************************************
 *                                     *
 *   Computer Laboratory extensions    *
 *                                     *
 ***************************************/

/* ucampas-autogenerated table of contents */

td.content div.right {
  float: right;
  clear: right;
  margin: 0 0 1.125em 20px;
  max-width: 30%;
}

div.ucampas-toc table {
  background-color: #eeeeee;
  margin: 0.5em 0em 1.5em 1px;
  border: 1px solid black;
}
div.ucampas-toc td {
  padding: 0em 1em;
}
div.ucampas-toc p {
  font-size: 90%;
  font-weight: bold;
  text-align: center;
  margin: 5px;
}
div.ucampas-toc ul {
  margin: 0 !important;
  padding: 0 3px 0 0;
  list-style: none;
  line-height: 98%;
}
div.ucampas-toc ul li {
  padding-left: 0 !important;
  font-size: 90%;
}
div.ucampas-toc ul li ul {
  padding-left: 10px !important;
}

/* The following are used by embedded talk announcements served from talks.cam
 * from JavaScript URLs such as
 *   http://talks.cam.ac.uk/show/old_talks/6180?layout=embed
 * They are a slightly modified version of the rules found in
 * http://talks.cam.ac.uk/stylesheets/embedcss.css?1239207568 */
div.old_talks div.talklist_date {
   background-color: #dddddd; font-weight: bold;
   margin: 1em 0 0 0; padding: 0 0.3em 0 0.3em; }
div.old_talks p { margin: 0.5em 0 0 0; }
div.old_talks div.talklist_speaker { font-style:  italic; }
div.old_talks div.talklist_header  { font-weight: bold; }
div.old_talks span.special_message { 
   display: block; color: #900; font-weight: bold; }
div.old_talks div.talklist_details { font-size:  85%; }
p.talks { font-size: 85%; font-style:  italic; }

/*
 * Some hopefully useful additions by Markus Kuhn
 */

/* <ul class=compact>: denser list-item variant, without padding */
ul.compact li, ol.compact li { margin: 0ex; padding: 0ex; }

/* note paragraphs (for side remarks similar to like footnotes)
 * in smaller font and with grey background */

p.note, div.note {
  font-size: small;
  line-height: 120%;
  background: #eee;
  margin: 1em 0;
}
p.note, div.note p { padding: 3pt; }
div.note p { margin: 0.5ex 0; }

/* <table class=solid>: nice table with 2px solid lines */

table.solid {
  margin: 0.2ex 1.5em 0.2ex 1.5em;
  border-collapse: collapse;
}

table.solid tbody tr td,
table.solid tbody tr th,
table.solid thead tr th,
table.solid tr td,
table.solid tr th
 {
  border: 2px solid black;
  padding: 2px 4px;
}

table.solid tbody tr th,
table.solid thead tr th,
table.solid tr th {
  font-size: 100%;
  font-style: normal;
  font-weight: bold;
  line-height: 100%;
  background: #eee;
}

table.solid tbody td { vertical-align: top; }

/* <table class=grey>: nice table with grey background and white separators */

table.grey {
  margin: 0.2ex 1.5em 0.2em 1.5em;
  border-style: hidden;
  border-collapse: collapse;
}
table.grey tbody tr { background: #EEEEEE; vertical-align: top; }
table.grey tbody tr td,
table.grey tbody tr th
  { padding: 3px; border: 5px solid white; }

/* <table class=plain>: simple table without visible separators */

table.plain { border-spacing: 0; margin: 0; padding: 0; }
table.plain tbody tr { vertical-align: top; margin: 1ex 0; padding: 0; }
table.plain tbody tr td,
table.plain tbody tr th { padding: 0 0.5em 0 0; margin: 0; }
table.plain tbody tr th { text-align: left; }

/* marker of current node in navbar */
ul.navmenu li div {
  padding-left: 4px;
}
ul.navmenu li div.navcurrent {
  padding-left: 2px;
  border-left: 2px solid #0099cc;
}

/* If you want more prominent <h2> headings, to make long and
 * deeply-nested documents more readable, simply use
 * <body class="prominent-h2"> */

body.prominent-h2 h2 {
  background: #efeeef;
  border:solid 5px #efeeef;
  clear: right;
}

body.prominent-h2 h3 {
  font-style: normal;
  font-size: 105%;
}

/* shell command-line examples */

pre.sh, samp.sh {
  font-family: "B&H LucidaTypewriter", "Courier", monospace;
  background: #efeeef;
}

pre.sh {
  padding: 1ex 1em;
}

samp.sh {
  padding: 2px 0.2em;
}

pre.sh kbd, samp.sh kbd, kbd.sh {
  font: inherit;
  color: green;
  font-weight: bold;
}

pre.sh var, samp.sh var, var.sh {
  font-style: normal;
  background: #ddddff;
  border-bottom: 1px solid #aaaaff;
  margin-bottom: -1px;
}

pre.sh em, samp.sh em, em.sh {
  font-style: normal;
  background: #ffcccc
}

/* ucampas RSS feeds */
div.ucampas-newsfeed {
  float: right;
  width: 33%;
  border: 1px solid;
  margin: 0 0 1em 2em;
  padding: 5px;
  background: #eee;
  font-size: 90%;
}
div.ucampas-newsfeed h2 {
  text-align: center;
}
div.ucampas-newsfeed h3 {
  font-style: normal;
  margin-top: 1.2em;
}

/* floating images, for ucam2008 forward compatibility */

p img.right, li img.right {
  float: right;
  margin: 0 0 1.125em 20px;
  clear: right;
}

p img.left, li img.left {
  float: left;
  margin: 0 20px 0.5em 0;
  clear: left;
}

img.centre {
  display: block;
  float: none;
  border: 0;
  margin: 1em auto;
  padding: 0;
}
