/* Global Navigation */
#globalnav {
  position: relative;
  z-index: 2;
  box-shadow: 0 0 3px #aaa;
  -moz-box-shadow: 0 0 3px #aaa;
  -webkit-box-shadow: 0 0 3px #aaa;
  background: #fff;
  min-height: 40px;
}

#site-name {
  margin-left: 40px;
  font-size: 22px;
  font-weight: normal;
  padding: 10px 0 0;
  float: left;
}

#site-name a {
  color: #555;
  padding-left: 27px;
  position: relative;
}

.twitter-bird {
  position: absolute;
  height: 19px;
  width: 24px;
  top: 0;
  left: 0;
  background: url("../img/sprite.png") 0 -119px no-repeat transparent;
}

#site-name a:hover {
  text-decoration: none;
}

#globalnav .search-form {
  position: relative;
  float: right;
  margin: 6px 0 0;
}

#globalnav .search-form form {
  margin: 0;
  display: inline;
}

#globalnav .search-form .control-group {
  margin: 0;
}

#subnav .search-form input,
#globalnav .search-form input {
  line-height: normal;
  height: auto;
  font-size: 12px;
  margin: 0;
  padding: 6px 28px 5px 12px;
  width: 163px;
  border-color: #e0e0e0;
  box-shadow: inset 0 1px 1px #aaa;
  -moz-box-shadow: inset 0 1px 1px #aaa;
  -webkit-box-shadow: inset 0 1px 1px #aaa;
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
  -webkit-appearance: none;
}

#subnav .search-form .controls,
#globalnav .search-form .controls {
  position: relative;
}

#globalnav .search-form .search-form-submit,
#subnav .search-form .search-form-submit {
  display: block;
  position: absolute;
  top: 7px;
  right: 8px;
  content: '';
  height: 13px;
  width: 13px;
  border-radius: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  border: none;
  box-shadow: none;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  padding: 0;
  margin: 0;
  text-transform: capitalize;
  zfont-size: 1px;
  color: transparent;
  text-indent: -2000px;
  overflow: hidden;
  background: url('../img/sprite.png') -30px -76px no-repeat transparent;
  cursor: pointer;
}

#subnav .search-form {
  display: none;
}

/* Language Switcher */

.locale-switcher {
  font-size: 13px;
	float: right;
  margin: 10px 0 0 24px;
}

.locale-switcher > a {
  color: #868686;
}

.locale-current {
  position: relative;
  display: inline-block;
  padding-right: 18px;
}

.locale-current:after {
  position: absolute;
  top: 8px;
  right: 4px;
  content: '';
  display: block;
  border: 4px solid #ccc;
  border-color: #828282 transparent transparent;
}

/* Profile Menu */

.profile-menu {
  float: right;
  margin: 6px 40px 0 15px;
  font-size: 13px;
}

.profile-menu.signed-out {
  margin-top: 9px;
}

.profile-menu.signed-out a {
  margin-left: 10px;
}

.profile-menu > a {
  color: #777;
  text-decoration: none !important;
}

.profile-menu-handle .name {
  margin-top: 2px;
  display: inline-block;
  vertical-align: middle;
}

.profile-menu-handle .picture {
  display: inline-block;
  padding: 1px 18px 1px 1px;
  position: relative;
  vertical-align: middle;
  height: 24px;
  width: 24px;
}

.profile-menu-handle .picture img {
  display: block;
  border: 1px solid #e8e8e8;
  height: 24px;
  width: 24px;
  background: #fafafa;
}

.profile-menu-handle .picture:after {
  position: absolute;
  top: 11px;
  right: 4px;
  content: '';
  display: block;
  border: 4px solid #ccc;
  border-color: #828282 transparent transparent;
}

#globalnav .dropdown-menu:before,
#globalnav .dropdown-menu:after {
  position: absolute;
  top: -7px;
  right: 23px;
  display: inline-block;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #CCC;
  border-left: 7px solid transparent;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  content: '';
}

#globalnav .dropdown-menu:after {
  top: -6px;
  right: 24px;
  border-right: 6px solid transparent;
  border-bottom: 6px solid white;
  border-left: 6px solid transparent;
}

/* Main Menu Navigation */

.navbar {
  margin-bottom: 0;
  position: relative;
}

.navbar-inner {
  padding: 0;
}

#subnav {
  background: url("../img/bg-nav.png") repeat-x #efefef;
  border-top: 1px solid #eee;
  height: auto;
  clear: both;
}

#subnav .navbar-inner {
  padding: 0;
  background: none;
  border: 0 none;
  border-radius: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  box-shadow: 0 0 0 transparent;
  min-height: 0;
  filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
}

.navbar .nav {
  margin: 0;
  float: none;
}

#subnav li {
  list-style: none;
  position: relative;
}

#subnav a {
  color: #555;
  margin: 0 -1px;
  padding: 20px 50px;
  font-size: 13px;
  text-shadow: none;
  line-height: 1;
  vertical-align: middle;
  border-style: solid;
  border-color: transparent;
  border-width: 0 1px;
}

#subnav .leaf.first a {
	margin-left: 18px;
}

#subnav .leaf.last a {
	margin-right: 0;
}

#subnav a:hover,
#subnav a.active,
#subnav a.active-trail {
  color: #2290bf;
  background: #e9e9e9;
  border-color: #d9d9d9;
  position: relative;
}

#subnav a.active:before,
#subnav a.active:after,
#subnav a.active-trail:before,
#subnav a.active-trail:after {
  position: absolute;
  content: '';
  display: block;
  bottom: -10px;
  left: 50%;
  content: '';
  border: 5px solid #ccc;
  border-color: #e9e9e9 transparent transparent;
  margin-left: -5px;
  z-index: 2;
}

#subnav a.active:after,
#subnav a.active-trail:after {
  z-index: 1;
  bottom: -12px;
  border-width: 6px;
  margin-left: -6px;
  border-color: #999 transparent transparent;
}

.navbar .nav > .active > a,
.navbar .nav > .active > a:hover,
.navbar .nav > .active > a:focus {
  border: none;
  background: transparent;
  box-shadow: none;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
}

#subnav ul.menu li,
#subnav li.leaf {
  margin: 0;
  padding: 0;
}

.btn-close {
  display: none;
  position: absolute;
  border: 1px solid #c4c4c4;
  border-top-width: 0;
  border-radius: 0 3px 3px 0;
  -moz-border-radius: 0 3px 3px 0;
  -webkit-border-radius: 0 0 3px 3px;
  height: 30px;
  width: 40px;
  bottom: -30px;
  right: 40px;
  z-index: 5;

  background: #efefef;
  background-image: linear-gradient(bottom, rgb(250,250,250) 0%, rgb(255,255,255) 32%, rgb(239,239,239) 96%);
  background-image: -o-linear-gradient(bottom, rgb(250,250,250) 0%, rgb(255,255,255) 32%, rgb(239,239,239) 96%);
  background-image: -moz-linear-gradient(bottom, rgb(250,250,250) 0%, rgb(255,255,255) 32%, rgb(239,239,239) 96%);
  background-image: -webkit-linear-gradient(bottom, rgb(250,250,250) 0%, rgb(255,255,255) 32%, rgb(239,239,239) 96%);
  background-image: -ms-linear-gradient(bottom, rgb(250,250,250) 0%, rgb(255,255,255) 32%, rgb(239,239,239) 96%);
  background-image: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0, rgb(250,250,250)),
    color-stop(0.32, rgb(255,255,255)),
    color-stop(0.96, rgb(239,239,239))
  );

  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-close span {
  position: absolute;
  color: #666;
  font-weight: bold;
  line-height: 1;
  font-size: 20px;
  top: 50%;
  left: 50%;
  margin: -13px 0 0 -6px;
}