/*-------------------------------------------
Default styles
---------------------------------------------

Default formatting, relevant to all pages.

------------------------------------------*/

body {
  position: relative; /* allow for absolute positioning relative to the body */
  font-size: 81%;
  border-left: 1px solid #9bc;
  border-right: 1px solid #9bc;
  margin: 0 auto;
  color: #333;
}


/* Regular elements --------------------*/
th,td {
  border: 1px solid #ccc;
}

li { margin-bottom: 0.5em; }

h2 { clear: both; }

a:link { color: #005da4; }


/* General layout blocks --------------------*/
#content-wrapper {
  clear: both;
  overflow: auto;
}

#main-content {
  min-height: 400px;

  _height: 400px;
}

#main-content .inner {
  padding: 0.3em 1.5em 1.5em;

}

#sub-content-a {
  min-height: 400px;
  padding: 0 0 1.5em;

  _height: 400px;
}

#sub-content-a .inner {
  padding: 0.3em 1.5em;
}

#sub-content-b {
  min-height: 400px;
  padding: 0 0 1.5em;

  _height: 400px;
}

#sub-content-b .inner {
  padding: 0.3em 1.5em;
}


/* Header & branding --------------------*/
#header {
  /*overflow: auto; /* stop bottom margin of content being passed on */
  position: relative;
}

#header .inner {
  _width: 100%; /* IE6 not making this box full width */
}

h1#site-title {
  height: 75px;
  background: #006fc3 url(../image/bg-header.jpg) right top no-repeat;
  margin: 0;
  position: relative;
}

h1#site-title a {
  font-size: 1.3em;
  color: white;
  text-decoration: none;
  position: absolute;
  left: 0.8em;
  bottom: 0.3em;
}


/* Footer --------------------*/
#footer {
  background: #006fc3;
  color: white;
  clear: both;
  padding: 1em 1.5em;
  border-bottom: #336 1px solid;
}

#footer .inner {}

#footer p {
  max-width: 100%;
  text-align: right;
  margin: 0;
}

#footer a { color: white;}

#footer-terms a { color: white; }


/* Search --------------------*/
#search-form { 
  position: relative;
}
#search-form fieldset {
  margin: 9px 0 0 1.6em;

  _display: inline;
}
#search-form legend {
  display: none;
}
#search-form #search-input { width: 10em; }


/* Menus --------------------*/
ul#top-menu {
  position: absolute;
  top: 0; right: 0;
  background: #6D6DA2;
  padding: 0 0.5em;
}

#top-menu li {
  font-size: 0.9em;
}

#top-menu li a {
  color: #dde;
  font-weight: bold;
  padding: 0.7em 23px 0.4em 0;
  border: none;
  margin: 0 1em 0;
  background: url(../image/button-icon-forward.png) right center no-repeat;
}

#top-menu li.current a {
  color: #fff;
  background: #8587A9;
}

#top-menu li.logout a { 
  background-image: url(../image/button-icon-logout.png);
}

#main-menu {
  padding: 0; margin: 0;
}

#main-menu table {
  width: 100%;
  padding: 0;
  margin: 0;
}
#main-menu td { padding: 0; border: none; margin: 0; }

#main-menu table td.menu {
  width: 74%;
  background: #4cb900 url(../image/bg-main-menu-corner.png) right bottom no-repeat;
}
#main-menu table td.search {
  background: #ededed url(../image/bg-search.png) left top repeat-x;
  width: 26%;
  vertical-align: top;
}

#main-menu ul {
  padding: 0 0 0 0.7em;
}

#main-menu li {
  font-weight: bold;
  font-size: 1em;
}

#main-menu li a {
  color: white;
  padding: 0.3em 0.8em 0.4em;
  border: none;
/*  border-right: 1px solid #94d566; */
  background: url(../image/bg-main-menu-divider.png) left center no-repeat;
  margin: 0.3em 0;

  _padding: 0.7em 1em 0.7em;
  _border: none;
}

#main-menu li a:hover,
#main-menu li.current a { text-decoration: underline;}

#main-menu #link-1 a {
  background: none;
  position: absolute;
  left: 1em; top: 0;
}

#main-menu #link-2 a { background: none; }

#main-menu #link-7 a,
#main-menu #link-8 a {
  padding-left: 1em;
}

#main-menu #link-7 {
  position: absolute;
  left: 6em; top: 0;
}

#main-menu #link-8 {
  position: absolute;
  left: 14.1em; top: 0;
}


/* Main content --------------------*/
#main-content {}

h1#page-title {
  padding: 0 0 0.3em 0;
  border-bottom: 1px solid #ddd;
  margin-top: 0.7em;
}

#main-content blockquote {
  font-size: 1.1em;
  overflow: auto;
  background: #eee;
  font-style: italic;
  width: 50%;
  float: right;
  padding: 1em 1em 0;
  margin: 0 0 0.5em 1em;
}

#main-content blockquote p {
}

#main-content #summary p {
  font-size: 1.1em;
  font-style: italic;
}


/* Sub-content --------------------*/
#sub-content-a {
  color: #000;
  background: #ededed;
}

#sub-content-a .top {
  overflow: auto;
  padding: 0;
  margin: 0;

  _position: relative;
}

#sub-content-b {
  color: #000;
  background: #ededed;
}

#sub-content-b .top {
  overflow: auto;
  padding: 0 1.5em;
  margin: 0 -1.5em;

  position: relative;
}

#sub-content-b h2 {
  color: #157000;
  font-style: italic;
}

#sub-content-b h3 {
  color: #006fc3;
}

#sub-menu ul {
  margin-top: 0.2em;
  margin-left: -1.5em;
}

#sub-menu li {
}

#sub-menu li a {
  font-weight: bold;
  padding-left: 1.5em;
  border: none;
  margin: 0;
}

#sub-menu li.current a {
  text-decoration: underline;
}


/* Images --------------------*/
#main-content img, /* image on its own treated as a .figleft */
#main-content .figleft {
  float: left;
  margin: 0 1em 0.3em 0;

  _display: inline; /* avoid IE6 doubled margin float bug */
}

#main-content .figright,
#main-content img[align=right] {
  float: right;
  margin: 0 0 0.3em 1em;

  _display: inline;  /* Note: avoid IE6 doubled margin float bug */
}

#main-content .figleft img, #main-content .figright img {
  float: none;
  display: block;
}

#main-content .figleft p,
#main-content .figright p { font-size: 0.9em; }


/* Misc ----------------------*/
.more-link {
  display: block;
  text-align: right;
}

.blog-item-date { margin-top: -0.75em; }


/* Page info panel --------------------*/
#page-info {
  width: 16em;
  float: right;
  padding: 0;
  margin: 0.2em 0 0.2em 0.5em;
}

#page-info {
  color: #999;
  font-size: 0.85em;
}

#page-info h2 { display: none; }

#page-info ul {
  list-style: none;
  padding: 0;
  border-top: 1px dotted #fff;
  margin: 0;
}

#page-info li {
  line-height: 2em;
  padding: 0 0 0 35px;
  border: 1px solid #ddd;
  margin: 0 0 0.2em 0;
  list-style: none;
}

#page-info a {
  color: #999;
  text-decoration: none;
  padding: 0;
}

#page-info a:hover {
  text-decoration: underline;
}

#page-info li.author {
  background: url(../image/icon-author.png) no-repeat 10px center;
}
#page-info li.e-update {
  background: url(../image/icon-mail.png) no-repeat 10px center;
}
#page-info li.discuss {
  background: url(../image/icon-discuss.png) no-repeat 10px center;
}
#page-info li.sendfriend {
  background: url(../image/icon-send-to-friend.png) no-repeat 10px center;
}
#page-info li.searchterm {
  background: url(../image/icon-searchwords.png) no-repeat 14px 50%;
}
#page-info li.send-photo {
  background: url(../image/icon-photo.png) no-repeat 8px center;
}


/* Editing ----------------------*/
#overall-menu {
  height: 34px;
  background: #ddd;
  position: relative;
  border-bottom: 1px solid #666;
}

#overall-menu ul {
  list-style: none;
  padding: 0; margin: 0;
  float: left;
}

#overall-menu li {
  line-height: 2.2em;
  float: left;
  padding: 0;
  margin: 0 0.8em 0 0;
  list-style: none;
}

#overall-menu fieldset { float: left; margin: 0; padding: 1px 0 0 5px;}


/* Editing buttons ----------------------*/
button.back {
  clear: both;
  float: left;
}
button.forward { float: right; }

* html button { background-image: none; }

button img {
  vertical-align: middle;
  margin: 0 1px;
  display: inline;
}

button {
  background-image: url(../image/bg-button-off3.png);
  background-position: bottom left;
  background-repeat: repeat-x;
  color: #333;
}

#main-content button img {
  float: none;
  border: none;
  margin: 0 1px;
}

button, input { vertical-align: middle; align: top;}


/* Misc ----------------------*/
table.no-lines td {
  border: none;
}

p#breadcrumbs {
  font-size: 0.9em;
  margin: 0.4em 0 0.5em;
}

