/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */


/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * 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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

   body { 	  background:#fff url('../images/gray_bg.png') repeat-x 0 0 ;   }
   
   a { color:steelblue; }
   a:hover { color:navy; }
   h3 { padding-bottom:5px; border-bottom:1px solid #ddd; }
   
   #wrap { 
	  max-width:1020px; margin:0 auto; 
    }
   #header {  height: 165px;  background-image: url('../images/banner.png');  background-size: cover; }
   #header a { 	  display:block; height:100%; width:30%;	}
	#contentWrap {
		background-color:#fff;
		background-image:url('../images/borderbottom.png');
		background-repeat:no-repeat;
		background-position:center 99.999%;
		padding:10px 30px 20px;
		margin:0 0 10px 0;
		overflow:auto;
	}
	.breadcrumb { list-style-type:none; padding:0; margin:0 0 10px; font-size:0.9em;}
	.breadcrumb li { display:inline-block; padding:0 3px; }
	.breadcrumb li:first-child { padding:0; }
	.breadcrumb li .divider { margin:0 0 0 6px;}
	#leftCol { float:left; width:176px; padding-right:2%; padding-bottom:20px; display:block; }
	#leftCol #search { padding:14px 0; }
	#leftCol #search input { width:97%;}
	
	#menu ul { list-style-type:none; list-style-position:outside; padding:0;	}
	#menu ul li { line-height:1.7; }
	#menu ul li a { display:block; padding:0 0 1px 14px; text-decoration:none; color:#333; border:1px solid #fff; }
	#menu ul li a:hover { border:1px solid #3169c6;background-color:#C6D3EF; }
	
	
	#rightCol { float:left; width:77%; padding-left:2%;  padding-bottom:20px; border-left:1px solid #ccc; min-height:450px; }
	#rightCol div.item-page div.btn-group { margin-top:-40px;  }
	#rightCol div.item-page.edit div.btn-group { margin-top:auto;  }
	#rightCol div.logout .form-horizontal .controls {    margin-left: 25px; margin-top:45px;  } /* WHAT */
	
	#counter { padding:0 1em; font-size:0.8em; margin-bottom:1em;}
	
	.mobiMenuButton { display:none; }
	#mobiMenu { background-color: #323443; }
	
	.loginButton { float:right; color:#333; text-decoration:none; }
	
	.chronoform a { /*display: none;*/ color:#ccc; } .chronoform a:hover { /*display: none;*/ color:#9ac; }
	
	.article-info-term { display:none; }
	dd.modified { margin:10px 0; font-size:.9em;}
	.wideFieldCF { width:33.3em; }
	#mem_radios_container_div div  { max-width:31em;  }
	#mem_radios_container_div div div { float:left;  }
	
	#searchForm div div { margin-left:0; }
	
	table.cTable tr:first-child { border-top:1px solid #ddd; }
  table.cTable tr { border-bottom:1px solid #ddd; }
  table.cTable tr:hover { background-color:#eee; }
  table.cTable th { background-color:#B4B9D7; }
  table.cTable tr td,table.cTable tr th { padding:4px; border-right:1px solid #ddd; text-align:left; }
  table.cTable tr td:last-child,table.cTable tr th:last-child { border-right:0 none; }

  table.cTable.revWar tr td:first-child { text-align: center; }
		
	
	dt.result-title { margin-top:10px; }
	dd.result-text {  margin-left:18px; }
	dd.result-category {  display:none; }
	.phrases-box div label {    float: left;    padding: 0 20px;  }
	.ordering-box {  clear: both; }
	.highlight { font-weight:bold; }
	




/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * 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
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 1025px) {
    /* Style adjustments for viewports that meet the condition */
	#wrap { max-width:800px;}
	#header {  height: 129px; }
	 
	#rightCol { width:71.5%; }
}

@media only screen and (max-width: 790px) {
    /* Style adjustments for viewports that meet the condition */
	#wrap { width:100%; }
	#header {  height:148px; width:100%;  background-image: url('../images/banner2.png');  background-size: auto; background-position:center; background-repeat:no-repeat; background-color:#484e6e; }
	#header a { 	  width:100%; height:90%; 	}
	.breadcrumb, #leftCol  {display:none; }
	#rightCol { width:99.5%;  padding-left:0; border:0 none; min-height:0; }
	#breadcrumb { margin-bottom:1em; }
	.mobiMenuButton {  display:inline;  line-height:0em; letter-spacing:0.07em; padding:2px 6px; background-color:#161758; color:white; vertical-align:middle; -webkit-border-radius: 0.35em; -moz-border-radius: 0.35em; border-radius: 0.35em; cursor:pointer;  }
	div.page-header h2 { margin-right:52px; }
	#contentWrap { padding:1.5em 1.2em 1em; }
		
}

@media only screen and (max-width: 502px) {
	#header {  height:7em;   background-size: contain;  }
}
@media only screen and (max-width: 482px) {
	.wideFieldCF { width:inherit; }
	.ccms_form_element input  { width:95%; }
	.multiline_start, .multiline_add { float:none !important;  padding-left:5px !important; }
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   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
     */

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

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
