/***************************/
/* General template layout */
/***************************/

*
{
  margin:0;
  padding:0;
}

body
{
  text-align: center;		/* centres the site in the web browser */
  font-size: 76.1%;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  line-height: 1.3em;
  background: #dedfe4;
}

#wrap
{
  width: 90%;
  max-width: 90em;
  min-width: 800px;
  margin: 0 auto;
  text-align: left;
  padding: 0.5em 0;
}

/* Top level items */

#logo, #breadcrumb, #mainbody, #footer
{
  width: 100%;
  clear: both;
}

div.spacer
{
  clear: both;
}

#maincolumn
{
  float: right;
  width: 79%;
}

/* Items within mainbody */

#maincolumn div.inside
{
  padding: 0 0.5em;
}

#sidebar
{
  width: 20%;
  float: left;
}

/* Items within maincolumn */

#top
{
  width: 90%;
  margin: auto;
}

#middle
{
  clear: both;
  margin-top: 0.5em;
}

/* Items within middle */

#right
{
  width: 25%;
  float: right;
  margin: -0.5em 0 0.5em 0.5em;
}

/**************/
/* Formatting */
/**************/

.left
{
  float: left;
}

.right
{
  float: right;
}

h2
{
  color: #ba102c;
  font-size: 1.8em;
  line-height: 1em;
  padding-bottom: 0.5em;
}

h3
{
  color: #ba102c;
  font-size: 1.2em;
  line-height: 1em;
  padding-bottom: 0.5em;
}

p
{
  padding-bottom: 1em;
}

/* Customrounded boxes */

div.whiteongreythin-tr-nofill
{
  background: url(../images/borders/whiteongrey/thin/tr-nofill.png) 100% 0 no-repeat;
}

div.whiteongreythin-tl-nofill
{
  background: url(../images/borders/whiteongrey/thin/tl-nofill.png) 0 0 no-repeat;
}

div.whiteongreythin-br
{
  background: url(../images/borders/whiteongrey/thin/br.png) 100% 100% no-repeat;
}

div.whiteongreythin-bl
{
  background: url(../images/borders/whiteongrey/thin/bl.png) 0 100% no-repeat;
  padding: 15px 15px 20px 20px;
}

div.whiteongreythick-tr-nofill
{
  background: url(../images/borders/whiteongrey/thick/tr-nofill.png) 100% 0 no-repeat;
}

div.whiteongreythick-tl-nofill
{
  background: url(../images/borders/whiteongrey/thick/tl-nofill.png) 0 0 no-repeat;
}

div.whiteongreythick-br
{
  background: url(../images/borders/whiteongrey/thick/br.png) 100% 100% no-repeat;
  padding: 0;
}

div.whiteongreythick-bl
{
  background: url(../images/borders/whiteongrey/thick/bl.png) 0 100% no-repeat;
  padding: 15px 18px 20px 23px; 
}

div.whiteonwhitethin-tr-nofill
{
  background: url(../images/borders/whiteonwhite/thin/tr-nofill.png) 100% 0 no-repeat;
}

div.whiteonwhitethin-tl-nofill
{
  background: url(../images/borders/whiteonwhite/thin/tl-nofill.png) 0 0 no-repeat;
}

div.whiteonwhitethin-br
{
  background: url(../images/borders/whiteonwhite/thin/br.png) 100% 100% no-repeat;
}

div.whiteonwhitethin-bl
{
  background: url(../images/borders/whiteonwhite/thin/bl.png) 0 100% no-repeat;
  padding: 15px 15px 20px 20px; 
}

div.whiteonwhitethick-tr-nofill
{
  background: url(../images/borders/whiteonwhite/thick/tr-nofill.png) 100% 0 no-repeat;
}

div.whiteonwhitethick-tr-fill
{
  background: url(../images/borders/whiteonwhite/thick/tr-fill.png) 100% 0 no-repeat;
}

div.whiteonwhitethick-tl-nofill
{
  background: url(../images/borders/whiteonwhite/thick/tl-nofill.png) 0 0 no-repeat;
}

div.whiteonwhitethick-tl-fill
{
  background: url(../images/borders/whiteonwhite/thick/tl-fill.png) 0 0 no-repeat;
}

div.whiteonwhitethick-br
{
  background: url(../images/borders/whiteonwhite/thick/br.png) 100% 100% no-repeat;
}

div.whiteonwhitethick-bl
{
  background: url(../images/borders/whiteonwhite/thick/bl.png) 0 100% no-repeat;
  padding: 15px 15px 20px 20px; 
}

/* Items within breadcrumb */

div#breadcrumb
{
  line-height: 1.6em;
  font-style: italic;
  font-weight: bold;
}

div#breadcrumb a
{
  color: black;
  text-decoration: none;
  font-weight: normal;
}

div#breadcrumb a:hover
{
  color: #ba102c;
  text-decoration: underline;
}

div#breadcrumb span.levelspacer
{
  color: #ba102c;
}

/* Items within footer */

#footer div.content
{
  text-align: center;
  color: #7b7787;
  font-style: italic;
}

#footer div.content a
{
  text-decoration: none;
  color: #7b7787;
}

#footer div.content a:hover
{
  text-decoration: underline;
  color: #ba102c;
}

/* Items within sidebar */

#sidebar h3
{
  background: #292c34;
  color: #fff;
}

#sidebar div.customrounded-fill h3    /* N.B. Need to add _menu suffix to menus */
{
  text-align: center;
  margin: 0 -5px 0.5em -5px;
  padding: 0 0.5em 0.5em;
  background: #292c34;
  color: #fff;
}

#sidebar div.customrounded-fill ul
{
  list-style: none;
  padding: 0;
}

#sidebar div.customrounded-fill li
{
  border-top: 1px solid #fff;
}

#sidebar div.customrounded-fill li a
{
  width: auto;
  display: block;
  padding: 0.3em 0.5em;
  border-style: solid;
  border-width: 0 10px;
  border-color: #000 #7b7787 #000 #7b7787;
  background: #ccc;
  color: #292c34;
  font-weight: bold;
  text-decoration: none;
}

#sidebar div.customrounded-fill li.active a,
#sidebar div.customrounded-fill li a:hover
{
  border-color: #000 #820b20 #000 #820b20;
  background: #ba102c;
  color: #fff;
}

#sidebar div.customrounded-fill li.active li a
{
  border-color: #fff;
  background: #e2e2e2;
  color: #292c34;
  font-weight: normal;
  font-style: italic;
}

#sidebar div.customrounded-fill li li.active a,
#sidebar div.customrounded-fill li li a:hover
{
  border-color: #fff;
  background: #ccc;
  color: #820b20;
}

div.login form
{
  display: block;
}

div.login #div_mod_login_username
{
  width:100%;
}

div.login #div_mod_login_username label,
div.login #div_mod_login_password label
{
  width: 40%;
  float:left;
  margin-bottom: 5px;
}

div.login #div_mod_login_username input,
div.login #div_mod_login_password input
{
  width:55%;
  float: right;
  margin-bottom: 5px;
}

div.login #div_mod_login_remember,
div.login #div_mod_login_submit
{
  text-align:center;
}

div.login #div_mod_login_submit input
{
  float: none;
  margin: auto;
  width: 50%;
  margin: 0.5em 0;
  padding: 0.1em 0;
}

/* Items within middle */

div.contentpaneopen h2
{
  color: #ba102c;
  font-size: 1.8em;
  line-height: 1em;
  padding-bottom: 0.5em;
}
  
div.contentpaneopen span.buttonheading
{
  float: right;
}

div.contentpaneopen span.last_updated
{
  color: #606477;
  font-style: italic;
  font-size: 0.8em;
}

div.contentpaneopen p
{
  padding-bottom: 1em;
}

/* Items within right */

div#right div.customrounded-fill h3
{
  text-align: center;
  margin: 0 -5px 0.5em -5px;
  padding: 0 0.5em 0.5em;
  background: #292c34;
  color: #fff;
}
