/* Copyright 2008 Hangleton and Knoll Project
 * 
 * Stylesheet broadly organised into the following sections
 *  * General styles
 *    - Reset declarations
 *    - base element styles
 * 
 *  * Helper styles
 *    - Generic helper classes eg notifications and errors
 *    - Normally just one class which affecting one element.
 *
 *  * Page structure
 *    - Skeleton inc page furniture
 *    - Header, footer, navigation
 *
 *  * Page components
 *    - Most styles will be here
 *    - Idealy will be reusable comonents
 * 
 *  * Overrides
 *    - Override general cases with specific non-standard behaviour here
 *      
 */

/*****************************************************
 * General Styles
 *****************************************************/

html, body {
  margin:0;
  padding:0;
  background-color: #FFF;
  font-family: helvetica, arial, sans-serif;
  font-size: 14px;
  color: #000;
  min-width: 1000px;
}
img {
  border: 0;
}
p {
  font-size: 14px;
}
em {
  font-weight: bold;
  font-size: 1.1em;
}
h1 {
  font-size: 17px;
  font-style: italic;
  font-weight: bold;
  letter-spacing: 1px;
  margin-top: 0;
  padding: 3px 10px;
  background: #EEF;
  border: 2px solid #CCF;
  -moz-border-radius: 15px 0 0 15px;
  -webkit-border-radius: 15px 0 0 15px;
}
h2 {
  font-size: 16px;
  font-style: italic;
  font-weight: bold;
  letter-spacing: -1px;
}
a {
  color: #00F;
}
ul {
  list-style-image: url(../images/gfx/handsmall.png);
  list-style-type: circle;
}
dl dt {
  float: left;
  font-weight: bold;
}
dl dd {
  margin-bottom: 15px;
}

input, textarea {
  width: 300px;
  padding: 4px 0 4px 4px;
  border: 2px solid #CCF;
  -moz-border-radius: 15px 0 0 15px;
  -webkit-border-radius: 15px 0 0 15px;
}
textarea {
  height: 200px
}
input[type="button"], input[type="submit"] {
  width:306px;
}


/*****************************************************
 * Helper Styles
 *****************************************************/

.intro {
  font-weight: bold;
  font-size: 16px;
}
.success {
  color: green;
}
.error {
  color: red;
}

/* Force elements to contain floats entirely */
.postclear:after {
  content : '';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}


/*****************************************************
 * Page Structure
 *****************************************************/

#header {
  padding: 10px;
  background: #CCF url(../images/gfx/hgrad.png) top left repeat-y;
  height: 110px; 
}
#header .pageicon {
  width: 90px; height: 90px;
  float: right;
  margin-top: 10px;
}


#nav {
  float: left;
  margin: 10px -220px 10px 0;
  width: 200px;
  padding: 0;
  border-right: 2px solid #CCF;
  list-style: none;
  list-style-image: none;
}
#nav li {
  margin: 0 10px 2px 10px;
  padding: 0;
}
#nav li a {
  display: block;
  padding: 0 0 0 20px;
  border: 2px solid #CCF;
  background: #000069;
  text-decoration: none;
  color: #000069;
  -moz-border-radius: 15px 0 0 15px;
  -webkit-border-radius: 15px 0 0 15px;
}
#nav li a span.navlink {
  display: block;
  padding: 4px;
  font-size: 13px;
  background: #EEF;
}
#nav li a.selected, ul#nav li a:hover {
  background: #CF0071;
  color: #CF0071;
}
#nav li a.selected {
  font-style: italic;
}
#nav li a .navicon {
  display: none;
}
#nav li a:hover .navicon {
  display: block;
}
.navicon {
  position: absolute;
  width: 100%;
  height: 90px;
  top: 20px; left:-10px;
  background-position: center right;
  background-repeat: no-repeat;
}
.icon_index        { background-image: url(../images/gfx/pageicon_index.png) }
.icon_about        { background-image: url(../images/gfx/pageicon_about.png) }
.icon_history      { background-image: url(../images/gfx/pageicon_history.png) }
.icon_communitydev { background-image: url(../images/gfx/pageicon_communitydev.png) }
.icon_youthwork    { background-image: url(../images/gfx/pageicon_youthwork.png) }
.icon_hakit        { background-image: url(../images/gfx/pageicon_hakit.png) }
.icon_annualreport { background-image: url(../images/gfx/pageicon_annualreport.png) }
.icon_contact      { background-image: url(../images/gfx/pageicon_contact.png) }
.icon_findus       { background-image: url(../images/gfx/pageicon_findus.png) }


#content {
  position: relative;
  margin: 10px 0 10px 200px;
  border-left: 2px solid #CCF;
  padding: 0 10px;
}

#footer {
  clear: both;
  border-top: 2px solid #CCF;
  margin: 10px;
  padding: 10px 0 0 0;
}
#footer p {
  float: right;
  text-align: right;
  margin: 0;
  padding: 0;
}

/*****************************************************
 * Page Components
 *****************************************************/

.formrow {
  padding: 4px 0;
}
.formrow label {
  float: left;
  width: 120px;
}
.nolabel input {
  margin-left: 122px;
}

/* Photocolumn and images */
img.pagemain {
  float: right;
  margin: 0 0 10px 10px;
}
.photocolumn {
  float: right;
  clear: right;
  padding: 0 0 0 10px;
}
img.withborder, .photocolumn img {
  display: block;
  padding: 0 0 10px 10px;
  border: solid #CCF;
  border-width: 0 0 3px 3px;
  margin: 0 0 10px 10px;
  -moz-border-radius: 0 0 0 15px;
  -webkit-border-radius: 0 0 0 15px;
}
.photocolumn .row img {
  display: inline;
}

/* contact details */
.vcard {
  margin: 0 10px 10px 0;
  padding: 4px 4px 4px 10px;
  background: #EEF;
  border: 2px solid #CCF;
  -moz-border-radius: 15px 0 0 15px;
  -webkit-border-radius: 15px 0 0 15px;
}
#contactuscontacts .vcard {
  margin-right: 322px;
}
#finduscontacts {
  float: left;
}
#finduscontacts .vcard {
  cursor: pointer;
}
#finduscontacts .vcard .org,
#contactuscontacts .vcard .organisation-name {
  display: none;
}
#map {
  float: left;
}

/*****************************************************
 * Overrides
 *****************************************************/

.photocolumn img.ysdf {
  border-left: 0;
  padding-left: 0;
  margin-left: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
}


/* 5ecret purple site override :-) */
.purple h1 { 
  background: #f6e0f4;
  border-color: #cd9cc9;
}
.purple img.withborder, .purple .photocolumn img {
  border-color: #cd9cc9;
}
.purple #header {
  background: #cd9cc9 url(../images/gfx/purple_hgrad.png) top left repeat-y;
}
.purple #nav li a {
  border-color: #cd9cc9;
}
.purple #nav li a span.navlink {
  background: #f6e0f4;
}
.purple .icon_index        { background-image: url(../images/gfx/purple_pageicon_index.png) }
.purple .icon_about        { background-image: url(../images/gfx/purple_pageicon_about.png) }
.purple .icon_history      { background-image: url(../images/gfx/purple_pageicon_history.png) }
.purple .icon_communitydev { background-image: url(../images/gfx/purple_pageicon_communitydev.png)}
.purple .icon_youthwork    { background-image: url(../images/gfx/purple_pageicon_youthwork.png) }
.purple .icon_hakit        { background-image: url(../images/gfx/purple_pageicon_hakit.png) }
.purple .icon_annualreport { background-image: url(../images/gfx/purple_pageicon_annualreport.png)}
.purple .icon_contact      { background-image: url(../images/gfx/purple_pageicon_contact.png) }
.purple .icon_findus       { background-image: url(../images/gfx/purple_pageicon_findus.png) }

.purple #content {
  border-color: #cd9cc9;
}
.purple #footer {
  border-color: #cd9cc9;
}
.purple .vcard {
  background: #f6e0f4;
  border-color: #cd9cc9;
}
.purple input, .purple textarea {
  border-color: #cd9cc9;
}
