/*
 * @author McGowan www.anthum.com
 *
 * Justice Center header should stand alone and be insertable into other sites
 * CSS requires Font Awesome CSS for font icons http://www.bootstrapcdn.com/#fontawesome_tab
 * And Lato Font http://fonts.googleapis.com/css?family=Lato:300,400,700
 */

html, body {
	margin: 0;
	padding: 0;
}
html, body {
  margin: 0;
  padding: 0;
}
.jc-common,
.jc-common *,
.jc-common input[type=search],
.jc-common *:focus
{
  background: transparent;
  border: none;
  box-sizing: border-box;
  -moz-box-sizing: border-box;

  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;

  margin: 0;
  padding: 0;
  outline: none;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  text-indent: 0;
}
#jc-header {
  min-width: 550px;
}
.jc-common-container {
  margin: 0 auto;
  width: 960px;
  position: relative;
}
.jc-common a,
.jc-common a:visited {
  color: #005da8 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}
.jc-common a:hover {
  text-decoration: underline !important;
}
.jc-common .clearfix:after {
  content: "";
  display: table;
  clear: both;
}
.jc-common input[type="search"]::-webkit-search-cancel-button,
.jc-common input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

html.has-jc-navbar {
  margin-top: 42px !important;
}
html.has-jc-navbar.has-jc-navbar-subsite {
  margin-top: calc(42px + 1px + 70px) !important;
}
html.has-jc-navbar.has-jc-navbar-subsite.jc-navbar-subsite-56 {
  margin-top: calc(42px + 1px + 56px) !important;
}
html.has-jc-navbar.has-jc-navbar-subsite.jc-navbar-subsite-75 {
  margin-top: calc(42px + 1px + 75px) !important;
}

html.has-jc-navbar.wp-admin-bar {
  margin-top: calc(42px + 30px) !important;
}
html.has-jc-navbar.has-jc-navbar-subsite.wp-admin-bar {
  margin-top: calc(42px + 1px + 70px + 30px) !important;
}
html.has-jc-navbar.has-jc-navbar-subsite.jc-navbar-subsite-56.wp-admin-bar {
  margin-top: calc(42px + 1px + 56px + 30px) !important;
}
html.has-jc-navbar.has-jc-navbar-subsite.jc-navbar-subsite-75.wp-admin-bar {
  margin-top: calc(42px + 1px + 75px + 30px) !important;
}

#jc-header {
  position: fixed;
  background: #eee;
  top: 0;
  left: 0;
  right: 0;
  transition: box-shadow .3s ease-out;
	font-weight: 300;
  border-bottom: 1px solid #e3e0d2;
}

.wp-admin-bar #jc-header {
  top: 30px;
}
html.has-jc-navbar.wp-admin-bar.jc-menu-active #jc-header {
  top: 30px !important;
}

.jc-page-scrolled #jc-header {
  border: none;
  box-shadow: 0 0 20px 3px #666;
  /*background: rgba(47, 51, 62, .9);*/
  /*background: #2f333e;*/
  /*background: #f6f6f6;*/
}

#jc-header hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #ccc;
}

#jc-navbar {
  height: 42px;
  line-height: 42px;
  transition: all .3s ease-out;
}
#jc-navbar:hover,
.jc-menu-active #jc-navbar {
	opacity: 1 !important;
}
#jc-navbar-subsite {
	margin: 0;
	background: #fff;
	height: 70px;
	position: relative;
  border-top: 1px solid #eee;
  display: none;
  overflow: visible;
}
.jc-navbar-subsite-56 #jc-navbar-subsite {
  height: 56px;
}
.jc-navbar-subsite-75 #jc-navbar-subsite {
  height: 75px;
}

.has-jc-navbar-subsite #jc-navbar{
  opacity: 0.4;
}
.has-jc-navbar-subsite #jc-navbar-subsite {
  display: block;
}

#jc-menu-active-mask {
	display: none;
  pointer-events: none;
  opacity: 0;
  position: fixed;
  top: 42px;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,.7);
  transition: opacity .3s ease-out;
  transform: translate3d(0,0,0);
}
.wp-admin-bar #jc-menu-active-mask {
  top: 72px;
}

.jc-navbar-button {
  filter: grayscale(100%);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: #aaa;
  outline: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  height: 42px;
  line-height: 42px;
  transition: all .3s ease-out;
  background: none;
}
#jc-menu-button {
  width: 180px;
}
#jc-navbar-reveal-search-button {
  display: block;
  float: right;
  padding: 0 15px;
  color: #005da8;
  font-size: 10px;
}
.jc-navbar-button:hover,
.jc-menu-active #jc-menu-button {
  filter: grayscale(0%);
}
.jc-menu-active #jc-navbar-reveal-search-button {
  color: #ccc;
}
.jc-menu-active #jc-navbar-reveal-search-button:hover {
  color: #fff;
}

#jc-navbar-reveal-search-icon {
  font-size: 18px;
  text-align: right;
  position: relative;
  margin-right: 5px;
  top: -1px;
  vertical-align: middle;
}

#jc-navbar-search {
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s .1s ease-out;
  height: 26px;
  line-height: 42px;
  padding-right: 15px;
  position: absolute;
  top: 8px;
  right: 0;
}
#jc-navbar-search * {
  float: left;
}
#jc-navbar-search input {
  font-size: 12px;
  width: 250px;
  padding: 0 10px;
  background: #fff;
  height: 100%;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 2px 0 0 2px;
}
#jc-navbar-search button {
  border: 1px solid #4285f4;
  background: #4285f4;
  color: #fff;
  height: 100%;
  padding: 0 20px;
  border-radius: 0 2px 2px 0;
  cursor: pointer;
}
#jc-navbar-search button .fa {
  font-size: 18px;
  font-weight: 400;
}
.jc-navbar-search-active #jc-navbar-reveal-search-button {
  display: none;
}
.jc-navbar-search-active #jc-navbar-search {
  opacity: 1;
  pointer-events: all;
}


#jc-menu-button-icon {
  width: 42px;
  height: 42px;
  text-align: center;
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  transition: all .3s ease-out;
  color: #005da8;
}
#jc-menu-button-icon .fa {
  font-size: 1.2em;
}
.jc-menu-active #jc-menu-button-icon {
  color: #eee;
  font-size: 150%;
  transform: rotate(90deg);
}


#jc-menu-button img {
  display: inline-block;
  position: absolute;
  top: 10px;
  left: 45px;
}
#jc-navbar-logo-open {
  opacity: 0;
}
#jc-navbar-logo-closed {
  opacity: 1;
}
.jc-menu-active #jc-navbar-logo-open {
  opacity: 1;
}
.jc-menu-active #jc-navbar-logo-closed {
  opacity: 0;
}

#jc-menu-logo {
  text-align: center;
  margin: 1em 0 0;
}
#jc-menu-logo a {
  margin: 0;
  padding: 0;
  border: none;
}
#jc-menu-logo img {
  padding: 16px 0;
}

#jc-menu-social-buttons {
  text-align: center;
  height: 44px;
}
#jc-menu-social-buttons-inner {
  margin: 0 auto;
  display: inline-block;
}
#jc-menu-social-buttons a {
  padding: 0;
  font-size: 12px;
  background: none;
  border: none;
  display: inline-block;
  float:left;
  margin: 0 auto;
  height: 44px;
  min-width: 44px;
  line-height: 44px;
  text-align: center;
  color: #004b8d;
}
#jc-menu-social-buttons a i {
  font-size: 12px;
  background: none;
  display: inline-block;
  height: 20px;
  width: 20px;
  line-height: 20px;
  border: 1px solid #dadada;
  border-radius: 5px;
}
#jc-menu-social-buttons a:hover i {
  background: #005da8;
  border-color: #005da8;
  color: #fff;
}

#jc-subscribe-link {
  text-align: center;
}
#jc-subscribe-link a {
  font-size: 14px;
  height: 44px;
  border: none;
  line-height: 44px;
  padding: 0 10px;
  display: inline-block;
  margin: 0 auto;
}
#jc-subscribe-link i {
  margin-right: .5em;
}

.jc-menu-active body {
  overflow: hidden;
  height: 100vh;
}
.jc-menu-active #jc-menu-active-mask {
  display: block;
  opacity: 1;
  pointer-events: all;
}
.jc-menu-active #jc-navbar {
  background: #004b8d;
}
.jc-menu-active #jc-menu {
  display: block;
  pointer-events: all;
  left: 0;
}

#jc-menu {
  pointer-events: none;
  font-size: 14px;
  line-height: 1.25em;
  text-align: left;
  background: #fff;
  position: fixed;
  top: 42px;
  width: 280px;
  left: -280px;
  bottom: 0;
  transition: left .3s ease-out;
  overflow-y: auto;
  transform: translate3d(0,0,0);
  padding-bottom: 2rem;
}
.wp-admin-bar #jc-menu {
  top: 72px;
}

#jc-menu ul {
  padding-left: 0;
  list-style: none;
}
#jc-menu ul a {
  display: block;
  padding: .5em .5em;
  border-left: 4px solid transparent;
  /*color: blue;*/
}
#jc-menu ul a.active {
  border-color: #004b8d;
  background: #eaeaea;
  /*font-weight: 600;*/
}
#jc-menu ul ul a {
  padding: .5em 1em;
  padding-left: 1.5em;
}
#jc-menu .jc-menu-link-header {
  color: #666 !important;
  text-decoration: none !important;
  cursor: default !important;
}

#jc-menu-footer {
  padding: 0 10px;
  margin: 0 0 2em 0;
  border: none;
  text-align: center;
}
#jc-menu-footer * {
  font-size: 12px;
  color: #999;
  line-height: 1.5em;
}
#jc-menu-footer-credits {
  text-align: left;
  max-width: 235px;
}
#jc-menu-footer-credits a {
  white-space: nowrap;
}
#jc-menu-footer p {
  margin: 0 auto;
  margin-top: 3em;
}

#jc-footer {
  background: #fff;
}
#jc-footer * {
  font-size: 10px;
  line-height: 1.5em;
  color: #999;
}
#jc-footer a {
  color: #004b8d;
  font-weight: 400;
}
#jc-footer .jc-common-container {
  padding: 2em 0 3em 0;
  border-top: 6px solid #e3e0d2;
}
#jc-footer .jc-common-container > * {
  display: block;
  float: left;
}
#jc-footer .logo {
}
#jc-footer .logo img {
  width: auto;
  height: 35px;
}
#jc-footer #jc-footer-legal {
  width: 360px;
  text-align: justify;
  float: right;
  line-height: 1.2em;
}
#jc-footer #jc-footer-legal a {
  white-space: nowrap;
  line-height: inherit;
}
#jc-footer .footer-copy {
  margin-left: 100px;
  text-align: center;
}



/************************
        Z-indexes
************************/
#jc-header {
  z-index: 10000;
}
#jc-navbar-subsite {
  z-index: 10000;
}
#jc-menu-active-mask {
  z-index: 10001;
}
#jc-menu {
  z-index: 10001;
}
