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

Default formatting, relevant to all pages.

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

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


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

li { margin-bottom: 0.5em; }

h2 { clear: both; }


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

  background: url(../image/bg-footer.jpg) center bottom no-repeat;
  padding-bottom: 44px;
  overflow: auto;
}

#main-content {
  min-height: 400px;
  padding: 0 0 72px; /* space for the footer bg */
}

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

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

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

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

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


/* Header & branding --------------------*/
#header {
  height: 135px;
  background: url(../image/bg-header.jpg) left top no-repeat;
  /*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 {
  position: absolute;
  top: 38px; left: 33px;
  margin: 0;
}

h1#site-title a {
  display: block;
}

/* Footer --------------------*/
#footer {
  clear: both;
  color: #000;
  position: relative;
}

#footer .inner {
  position: absolute;
  top: -44px;
  height: 44px;
  width: 100%;
  background: transparent;
}

#footer p { text-align: right; }

#footer a { }

#footer-slogan em {
  font-size: 1.5em;
  font-style: normal;
  font-family: serif;
  color: #fff;
  font-variant: small-caps;
  width: 100%;
  position: absolute;
  top: 2px;
  left: 0;
  text-align: center;
}

#footer-terms {
  position: absolute;
  left: 1.5em;
  top: -2em;
}

/* Search --------------------*/
#search {
  display: none;
  position: absolute;
  right: 1em; top: 93px;
  width: 18em;
  margin-top: 2px;
}


/* 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 {
}

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

#main-menu li {
  font-family: serif;
  font-weight: normal;
  font-variant: small-caps;
  font-size: 1.2em;
  position: absolute;
  top: 50px;
  z-index: 100;
}

#main-menu li a {
  color: #000;
  padding: 0;
  border: none;
  margin: 0;
  text-align: center;

  float: none;
  white-space: normal;

  text-decoration: none;

  height: 35px;
  display: block;
  padding-top: 52px;
}

#main-menu li a:hover,
#main-menu li.current a { color: white; }

#main-menu #link-1 {
  width: 92px;
  left: 214px;
}

#link-1 a:hover,
#link-1.current {
  background: url(../image/bg-header-foot-over.png) 0px 17px no-repeat;
  _background-image: url(../image/bg-header-foot-over-bin-trans.png);

}

#main-menu #link-2 {
  width: 110px;
  left: 306px;
}

#link-2 a:hover,
#link-2.current {
  background: url(../image/bg-header-foot-over2.png) 10px 43px no-repeat;
  _background-image: url(../image/bg-header-foot-over2-bin-trans.png);
}

#main-menu #link-3 {
  width: 140px;
  left: 416px;
}

#link-3 a:hover,
#link-3.current {
  background: url(../image/bg-header-foot-over.png) 18px 35px no-repeat;
  _background-image: url(../image/bg-header-foot-over-bin-trans.png);
}

#main-menu #link-4 {
  width: 160px;
  left: 556px;
}

#link-4 a:hover,
#link-4.current {
  background: url(../image/bg-header-foot-over2.png) 27px 43px no-repeat;
  _background-image: url(../image/bg-header-foot-over2-bin-trans.png);
}

#main-menu #link-5 {
  width: 180px;
  left: 716px;
}

#link-5 a:hover,
#link-5.current {
  background: url(../image/bg-header-foot-over.png) 13px 34px no-repeat;
  _background-image: url(../image/bg-header-foot-over-bin-trans.png);
}

/* Main content --------------------*/
#main-content {
  position: relative; /* to overlap the footer bg */
  z-index: 10;
  background: transparent url(../image/bg-main-content.jpg) left top no-repeat;
  padding-top: 35px;
}

#content-wrapper h1 {
}

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

#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 {
}


/* Sub-content --------------------*/
#sub-content-a {
  color: #000;
  background: #fef7ed;
  position: relative; /* to overlap the footer background */
  z-index: 10;
}

#sub-content-a .top {
  background: #F5AE4C url(../image/bg-sub-a-3-col.jpg) left top no-repeat;
  overflow: auto;
  padding: 35px 1.5em 0.5em;
  margin: 0 -1.5em 1em;

  _position: relative;
}

#sub-content-b {
  color: #000;
  background: #eef7f5;
  position: relative; /* to overlap the footer background */
  z-index: 10;
}

#sub-content-b .top {
  background: #5BB399 url(../image/bg-sub-b-3-col.jpg) left top no-repeat;
  overflow: auto;
  padding: 35px 1.5em 0.5em;
  margin: 0 -1.5em 1em;

  position: relative;
}

#sub-content-b .top h2 { color: #fff; }

#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 {
  color: #fff;
  background: url(../image/bullet-sub-menu-current.png) left center no-repeat;
}


/* Images --------------------*/
#main-content img.figleft {
  float: left;
  border: 1em solid #F2E2CD;
  margin: 0 1em 1em 0;

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

#main-content img.figright {
  float: right;
  border: 1em solid #F2E2CD;
  margin: 0 0 0.5em 1em;

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

/* 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: #EBDFC4;
  position: relative;
}

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

fieldset { border: none;}

/* 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-off1.png);
  background-repeat: repeat-x;
  color: #333;
}

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