/* CBCA (http://www.cbca.gsa.gov/) CSS Style. Based on HTML5 Boilerplate */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}
/*
 * A better looking default horizontal rule
 */
 
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   CBCA Custom Styles
   ========================================================================== */
/*Overall Style*/
body{
	background: #44555F;
}
a{
	color: #0054A4;	
}
   
/*Wrapper sets fixed width for desktop layout*/
div#wrapper{
	width:65em; /* 72em - 10% for margins */
	margin:0 auto;
 }

/*Header*/ 
div#header{
	height: 13em;
	background: #0D0E0F;
}   
/*Search Strip*/
div#searchstrip{
	height: 3em;
}    
/*Search box*/
div#searchbox{
	float:	right;
	width: 30%;
	margin: -.75em 0;
}
input#query {
	background: #fff url(../img/search.png) no-repeat 5px 6px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	font-size: 14px;
	height: 1.5em;
	width: 20em;
	line-height: 1.25em;
	padding: 4px 10px 4px 28px;
}
input#searchsubmit {
	background: #0055A4;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#0055A4), to(#011932));
	background: -webkit-linear-gradient(#0055A4, #011932);
	background: -moz-linear-gradient(#0055A4, #011932);
	background: -ms-linear-gradient(#0055A4, #011932);
	background: -o-linear-gradient(#0055A4, #011932);
	background: linear-gradient(#0055A4, #011932);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0055A4', endColorstr='#011932',GradientType=0 );
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	border-radius: 2px;
	border:1px solid #013D79;
	display:inline-block;
	color:#ffffff;
	font-family:arial;
	font-size:16px;
	font-weight:bold;
	padding:6px 19px;
	text-decoration:none;
}
input#searchsubmit:hover {
	background: #011932;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#011932), to(#0055A4));
	background: -webkit-linear-gradient(#011932, #0055A4);
	background: -moz-linear-gradient(#011932, #0055A4);
	background: -ms-linear-gradient(#011932, #0055A4);
	background: -o-linear-gradient(#011932, #0055A4);
	background: linear-gradient(#011932, #0055A4);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#011932', endColorstr='#0055A4',GradientType=0 );
}
input#searchsubmit:active {
	position:relative;
	top:1px;
}

/*Header Title and Logo*/
div#titlebox{
	height: 7em;
}
img#cbcaseal{
	float: left;
	margin: -2.2em 1em 0 1em;
}
div#headertitle{
	padding: 2em 1em 1.75em 11em;
}
span#headertitletext{
	color: #fff;
	font-size: 2em;
	line-height: .9em;
	font-family: 'Arial Narrow', Helvetica, Arial, sans-serif;
	text-transform: uppercase;
}

/*Main site navigation*/
nav select {
  display: none;
}
div#nav{
	height: 3em;
	background: #0D0E0F;
}

/*Menu*/
/*Style overall list*/
ul#menu{
	padding: 0;
}
ul#menu li{
	list-style: none;
}
ul#menu a{
	text-decoration: none;
	color: #fff;
}

/*Kill auto list indent*/
#menu ul {
	margin: .5em 0 0 0;
	padding: 0px;
}
#menu ul.highermenu {
	margin: .2em 0 0 0;
	padding: 0px;
}

/*Hide level two and three links*/
ul.leveltwo, ul.levelthree {
	background:#fff;
	background:rgba(255,255,255,0); /*transparent for supportive browsers */
	position: relative;
	left:-9999px; /* Hide off-screen*/
}
	
/* Display level two links on hover */
ul.levelone li:hover > ul.leveltwo{
	left: 0;
	position: relative; 
}

/*Make list item a containing element, for proper positioning of sub-menus*/
ul.leveltwo li{
	display:block; 
	float: left;
	position: relative;
}

/* Display level three links on hover */
ul.leveltwo li:hover ul.levelthree{
	position:absolute; 
	top: -.5em; 
	left: 11.5em;
}

/*Style top buttons*/
ul.levelone li{
	background: #959CA2;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#959CA2), to(#000000));
	background: -webkit-linear-gradient(#959CA2, #000000);
	background: -moz-linear-gradient(#959CA2, #000000);
	background: -ms-linear-gradient(#959CA2, #000000);
	background: -o-linear-gradient(#959CA2, #000000);
	background: linear-gradient(#959CA2, #000000);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#959CA2', endColorstr='#000000',GradientType=0 );
	width: 10.5em;
	height: 2.5em;
	margin-right: .4em;
	float: left;
	display: block;
	text-align: center;
	font-weight: bold;
	line-height: 2em;
	padding: .5em 0 0 0;
	font-family: 'Arial Narrow', sans-serif;
	text-transform: uppercase;
	font-size: 100%;
}
#menu li.menuwrap{
	line-height: 1em;
}
#menu li.lastitem{
	margin-right: 0em;	/*remove margin for last button for even spacing*/
}

/*Style submenus*/
ul.leveltwo li, ul.levelthree li{
	background: #44555F;
	background: -webkit-gradient(linear, 0 0, 0 bottom, from(#44555F), to(#959CA2));
	background: -webkit-linear-gradient(#44555F, #959CA2);
	background: -moz-linear-gradient(#44555F, #959CA2);
	background: -ms-linear-gradient(#44555F, #959CA2);
	background: -o-linear-gradient(#44555F, #959CA2);
	background: linear-gradient(#44555F, #959CA2);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#44555F', endColorstr='#959CA2',GradientType=0 );
	height: 2.2em;
	margin: 0;
	padding: .25em .5em;
	width: 11em;
	text-align: left;
	font-weight: normal;
	line-height: normal; 
}
/*Shrink last submenu to prevent overrun*/
li.lastitem ul.leveltwo  li{
	width: 9.5em;
}


/*Page body*/
div#pagebody{
	background: #fff;
	padding: 1.5em 2em;
	margin: 1em 0 0 0;
}
h1{
	color: #44555F;
	font-size: 2em;
	font-family: 'Arial Narrow', Helvetica, Arial, sans-serif;
	margin-top: 0;
}
h3{
	font-size: 100%;
	font-weight: bold;
}

/*Special class for rules pages*/
div#toc ol, ul{
	padding-left: 3em;
}

/*Footer*/
div#footer{
	background: #0D0E0F;
	margin: 0 0 2em 0;
	padding: 1.5em;
	text-align: center;
	color: #fff;
}
div#footer p {
	margin: 0;
	display: none;
}

/*List styles*/

.boldFirstSentence { font-weight: bold; }

ol.lower-alpha{

	list-style-type: lower-alpha;
	font-weight:normal;
}

ol > li {
  list-style: none;
    margin-bottom: .5em;
}

ol.upper-alpha{
	list-style-type: upper-alpha;
	font-weight:normal;
}
ol.decimal{
	list-style-type: decimal;
	font-weight:normal;
}
ol.lower-roman {
	counter-reset: lower-roman;
	list-style-type: lower-roman;
	font-weight:normal;
}
ol.upper-roman {
	list-style-type: upper-roman;
	font-weight:normal;
}
ol.bold {
	font-weight:bold;
}
ul.no-bullet{
	list-style-type: none;
	margin-top: 0;
	padding: 0;
	font-weight:normal;
}

li.padding-bottom {
	line-height: 1; 
	padding-bottom: .5em;	
}

dt { 
	font-weight: bold;
	display: inline;
	margin-left: 2em;
 }

 dd {
	margin-bottom: .5em;
 }
 
li > dt { margin-left: 0; }

ol li {list-style-type: none; }

ol.lower-alpha{
	list-style-type: lower-alpha;
	font-weight:normal;
}

ol.lower-alpha  { counter-reset: alpha; }

ol.lower-alpha > li:before {
	counter-increment: alpha;
	content:"(" counter(alpha, lower-alpha) ") ";
	padding-right: .5em;
}

ol.decimal { counter-reset: decimal; }

ol.decimal > li:before {
	counter-increment: decimal;
	content:"(" counter(decimal, decimal) ") ";
	padding-right: .5em;
}

ol.lower-roman { counter-reset: roman; }

ol.lower-roman > li:before {
	counter-increment: roman;
	content:"(" counter(roman, lower-roman) ") ";
	padding-right: .5em;

}

.p-rules-padding-left { padding-left: 2.5em; }



/* tables */
table.tablesorter {
	font-family:arial;
	background-color: #CDCDCD;
	margin:10px 0pt 15px;
	font-size: .8em;
	text-align: left;
	border: 1px solid #CCC;
	border-collapse: collapse;
	table-layout:fixed;
	width: 76em;
}
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
	background-color: #455560;
	color: #fff;
	padding: 4px;
	border: 1px solid #CCC;
}
table.tablesorter thead tr .header {
	background-image: url(../img/tables/bg.png);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}
table.tablesorter tbody td {
	color: #3D3D3D;
	padding: 4px;
	background-color: #FFF;
	vertical-align: top;
	border: 1px solid #CCC;
}
table.tablesorter tbody tr.odd td {
	background-color:#F0F0F6;
}
table.tablesorter thead tr .headerSortUp {
	background-image: url(../img/tables/asc.png);
}
table.tablesorter thead tr .headerSortDown {
	background-image: url(../img/tables/desc.png);
}
table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp {
	background-color: #6A747C;
}
table.rightleft {
	border: none;
	width: 100%:
}

/*column width*/
table.tablesorter th.date{
	width:8em;
}
table.tablesorter th.cbcanum{
	width:15em;
}
table.tablesorter th.judge{
	width:8em;
}
table.tablesorter th.decision-type{
	width:6em;
}
table.rightleft th.right{
	width: 10em;
	text-align: right; 
}
table.rightleft td.right{
	text-align: right;
	padding-right: .5em;
	font-weight: bold; 
}

/*custom classes*/
.smallfont{
	font-size:80%;
}
.alignright{
	float: right;
	padding: 1em 0 1em 1em;
}
.alignleft{
	float: left;
	padding: 1em 1em 1em 0;
}
.aligninline{
	display: block;
	padding: .5em 0 2em 0;
}
.textright{
	text-align: right;
}
.textcenter{
	text-align: center;
}
.rightcolumn{
	width: 320px;
	float: right;
	margin: 0 0 0 2%;
}
.threecolumn{
	width: 33%;
	float: left;
}

/* News */
p.date { 
	margin-top: 2em;
	font-weight: bold;
  }

/* ==========================================================================
   Mobile site display options
   ========================================================================== */

@media (max-width: 960px) {
	/*Hide main nav, show special select nav*/
	div#nav ul	{ display: none; }
	nav select {
		display: inline-block;
		width: 100%;
	}	
	/*Kill fixed width*/
	div#wrapper{
		width:100%;
		margin:0 auto;
	}	
	/*Sizing for top elements*/
	div#searchbox { padding: .5em; }	
	input#query	{ max-width: 50%; }
	#titlebox	{ display: table; }
	div#headertitle{
		padding: 0;
		display: table-cell;
		vertical-align: middle;
	}
	span#headertitletext{
		color: #fff;
		font-size: 1em;
		line-height: .9em;
		font-family: 'Arial Narrow', Helvetica, Arial, sans-serif;
		text-transform: uppercase;		
	}
	img#cbcaseal{
		float: left;
		max-height: 7em;
		margin: 1em;
	}
	
	/*Less padding on page body*/
	div#pagebody{
		padding: 1.5em .5em;
	}
	
	/*no columns*/
	.rightcolumn, .threecolumn{
		width: 100%;
		float: left;
	}
	
	/*keep images small*/	
	img.largeimage{
		max-width: 100%;	
	}
	
	/*Small decision tables*/	
	table.tablesorter{
		width: 100%;
		font-size: .7em;
	}	
	table.tablesorter th.date {
		width: 25%;
	}
	table.tablesorter th.cbcanum{
		width: 20%;
	}
	table.tablesorter th.judge{
		width: 25%;
	}
	
	/*Hide certain objects*/
	span.hidemobile{
		display: none;
	}
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */
.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}
/*
 * Hide visually and from screenreaders, but maintain layout
 */
.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}
.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}


/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }
    a,
    a:visited {
        text-decoration: underline;
    }
    a[href]:after {
        content: " (" attr(href) ")";
    }
    abbr[title]:after {
        content: " (" attr(title) ")";
    }
	
    /* Don't show links for images, or javascript/internal links */
    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }
    thead {
        display: table-header-group; /* h5bp.com/t */
    }
    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

}
