/**
 *  chui_layout.css
 *    Presentation base-layer style sheet.
 *    Provides positions and visual structure
 *    to the web site.
 *
 *    @version 0.0.3100
 *    @copyright Stephen Karl Lang 2006 - 2007
 *    @author Stephen Karl Lang <s.lang@screwlessdesign.co.uk>
 */


/**
 *  Remove default browser margin
 *  and padding.
 */
html, body {
	margin: 0px 0px 20px 0px;
	padding: 0;
}


/**
 *  Hide accessibility links by default.
 *
 *  'display: none;' is not used here as
 *  some screen reader software does not
 *  acknowledge these elements.
 */
#accessibility {
	position: fixed;
	left: -999px;
}


/**
 *  Make wrapper full screen.
 *
 *  All other classes and elements will appear
 *  within this wrapper.
 */
#wrapper {
	position: relative;
	top: 0; right: 0; bottom: 0; left: 0;
	margin: 0;	padding: 0;
	min-height: 100%;
}


/**
 *  Fix header to top of screen and
 *  set height. Z-index set to appear
 *  above module_sub_wrapper instances.
 */
#header {
	position: fixed;
	top: 0; right: 0; left: 0;
	height: 60px;
	z-index: 1000;
}
#header h1 {
	padding: 4px 0px 0px 4px;
	float: left;
	clear: none;
	z-index: 1010;
}
#header h2 {
	float: right;
	margin-top: 35px;
	letter-spacing: 5px;
	z-index: 1020;
}
#header img {
	z-index: 1001;
}


/**
 *  Contains all instances
 *  of module_sub_wrapper.
 *
 *  Set top and bottom margins
 *  according to header and
 *  footer heights respectively.
 */
#module_wrapper {
	position: relative;
	margin: 60px 0px 20px 0px;
	padding: 0;
	z-index: 2;
}


/**
 *  The individual module wrapper.
 *
 *  Z-index is set to auto so that each
 *  module appears on top of the next.
 *  Works well with drag and drop as the
 *  dragged module appears always on top.
 */
.module_sub_wrapper {
	position: absolute;
	margin: 5px 0px 0px 5px;
	padding: 0px;
	width: 250px;
	height: auto;
	z-index: auto;
}


/**
 *  The content class for each module.
 *
 *  Height must not be set to 'inherit'.
 *  This causes modules to shrink
 *  significantly in Opera. Setting
 *  overflow to auto enables scroll bars.
 */
.module_content {
	position: relative;
	margin: 0;
	padding: 0px 2px 2px 2px;
	width: 246px;
	height: auto;
	overflow: hidden; /* hide scroll bars */
	clear: both;
}
.module_content ul {
	margin: 0px;
	padding: 0px;
	list-style: none;
}
.module_content li {
	margin: 0px;
	padding: 0px 0px 2px 0px;
	clear: both;
}
.module_content li a {
	display: block; /* increase clickable area */
}
.module_content h4 {
	margin: 0px;
	padding: 0px;
	letter-spacing: 3px;
	font-weight: bolder;
}
.module_content p {
	margin: 2px 0px 10px 0px;
	padding: 0px;
}


/**
 *  The options class for each module.
 *
 *  Runs along the top of module_sub_wrapper.
 *  Contains maximise/minimise icons as well as
 *  module_icon and refresh icon.
 */
.module_options {
	position: relative;
	margin: 4px;
	padding: 0;
	height: 18px;
	text-align: right;
	overflow: hidden;
}
.module_option {
	margin: 0;
	padding: 0;
}
.module_options h3 {
	margin: 0;
	padding: 2px 0px 0px 5px;
	float: left;
	width: 165px;
	overflow: hidden;
	text-align: left;
	line-height: 1;
	cursor: move;
}
.module_options ul {
	margin: 0;
	padding: 0;
	clear: both;
	list-style: none;
}
.module_options li {
	margin: 0;
	padding: 0;
	float: right;
	list-style: none;
}

.module_options li a {
	display: block; /* increase clickable area */
}
.module_icon {
	margin: 0;
	padding: 0;
	float: left;
	cursor: pointer;
}


/**
 *  The module sub options class.
 *
 *  Runs along the bottom of each
 *  module_sub_wrapper. contains module
 *  resize_handle and information icon.
 */
.module_sub_options {
	position: relative;
	margin: 0;
	padding: 2px 0px 0px 0px;
	height: 16px; /* corresponds to icon height */
	background-color: #666;
}
.resize_handle {
	cursor: n-resize;
	float: right;
}


/**
 *  Fix footer to bottom of screen and
 *  set Z-index to same level as header.
 */
#footer {
	position: fixed;
	right: 0; bottom: 0; left: 0;
	height: 20px;
	z-index: 1000;
}
#footer ul, li {
	margin: 0;
	padding: 0;
	clear: none;
}
#footer li {
	padding: 0px 8px 0px 8px;
	list-style: none;
	clear: none;
	display: inline;
}


/**
 *  Style for mootools generated tool-tip
 */
.tool-tip {
	padding:5px 10px;
	width: 250px;
	height: auto;
	background-color:#333;
	border:2px solid #ccc;
	overflow: hidden;
	z-index: 1030;
	letter-spacing: 2px;
}
.tool-tip * {
	line-height:2;
	color: white;
}
.tool-title {
	color: #ccc;
	border-bottom: 1px solid #999;
	letter-spacing: normal;
}


/**
 *  Generic class to float elements left.
 */
.floatLeft {
	float: left !important;
}


/**
 *  Generic class to float elements right.
 */
.floatRight {
	float: right !important;
}


/**
 *  Remove browser defaults.
 */
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding: 0;
}
img {
	margin: 0;
	padding: 0;
}
label {
	cursor: pointer; /* emphasise form labels to user */
}
acronym, abbr {
	border-bottom: 1px dotted white;
	cursor: help;
}