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

Default formatting, relevant to all pages.

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

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

  min-width: 580px;
  max-width: 1200px;
}


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

li { margin-bottom: 0.5em; }

h2 { clear: both; }


/* 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: #9CD1F9 url(../image/bg-header.jpg) left top repeat-x;
  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: #bbddee;
  color: #000;
  clear: both;
  padding: 1em 1.5em;
  border-bottom: #9bc 1px solid;
}

#footer .inner {}

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

#footer a {}

#footer-terms a { }


/* Search --------------------*/
#search-form fieldset { margin: 5px 0 0; padding: 0; }
#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 {
  background: #00a0a2 url(../image/bg-main-menu.png) left top repeat-x;
  float: left;
  width: 100%;
}

#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.6em 0.8em 0.6em;
  border: none;
  margin-top: 6px 0 0.3em;

  _padding: 0.7em 1em 0.7em;
}

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

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

#content-wrapper h1 {
}

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


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

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

  _position: relative;
}

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

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

  position: relative;
}

#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 img.figleft {
  clear: left;
  margin: 0 1em 1em 0;
  display: block;

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

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

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

.figblock {
  float: none;
  display: block;
  margin: 0.5em 0;
}

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

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-off2.png);
  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 ----------------------*/
.backwards-breadcrumb {
  margin: 1.3em 0;
}
.backwards-breadcrumb h1,
.backwards-breadcrumb p {
  display: inline;
}


#title-field {
  font-size: 1.5em;
}

#content-field {
  width: 95%;
  height: 25em;
}

#summary-field {
  width: 95%;
  height: 10em;
}

#street-field {
  width: 14.8em;
  height: 3em;
}

#postcode-field {
  width: 4em;
}

/* Forms */
form, fieldset, legend { padding: 0; border: none; margin: 0; }

legend {
  font-weight: bold;
  margin: 0 0 0.5em;
}

fieldset div {
  margin: 0 0 0.4em 0;
  clear: left;
}

fieldset label span {
  text-align: left;
  width: 4em;
  float: left;
  padding: 0.2em 0.5em 0 0;
}

label.radio input {
  display: inline;
}

label.long input {

}

fieldset {
  margin: 0 0 0.9em;
  padding: 0 0 0.5em;
}

div.submit { text-align: right; }

input[type=submit] { font-size: 1em; }

input { font-family: sans-serif; font-size: 0.9em; }
textarea { font-family: sans-serif; font-size: 0.9em; }