/* ==========================================================================
   Header: top bar, language selector, logo, product navigation,
   sticky (fixed) header and mobile/touch menu
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 1505;
  width: 100%;
  background-color: #201547;
}

/* Top bar ----------------------------------------------------------------- */
.top-bar-container {
  background-color: #232323;
  border-bottom: 1px solid transparent;
}

.top-bar {
  display: table;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.top-bar__part {
  display: table-cell;
  width: 50%;
  height: 39px;
  vertical-align: top;
}
.top-bar__part--menu {
  text-align: right;
}

.top-bar__list {
  display: inline-block;
}
.top-bar__part--menu .top-bar__list {
  float: right;
}

.top-bar__item {
  position: relative;
  display: inline-block;
}

.top-bar__item > a,
.top-bar__item.like-a {
  display: inline-block;
  color: #fff;
  font-size: 11px;
  font-weight: normal;
  line-height: 39px;
  text-transform: none;
  outline-offset: -2px;
}
.top-bar__item.like-a {
  margin-right: 12px;
}
.top-bar__part--menu .top-bar__item > a {
  margin-left: 12px;
}
.top-bar__item > a:hover,
.top-bar__item:hover > a,
.top-bar__item.hovered > a {
  color: #ccc;
}
.top-bar__item .item-icon {
  margin-right: 7px;
  font-size: 13px; /* live site renders the FA5-shimmed glyph a little larger */
  vertical-align: -1px;
}

/* Language selector (top bar dropdown) */
.language-selector .flag {
  margin-right: 7px;
  margin-bottom: 3px;
}

.top-bar__item > .sub-menu {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  z-index: 302;
  border-radius: 2px;
  background-color: #333;
  box-shadow: 0 0 4px rgba(0, 0, 0, .09);
  opacity: 0;
  transition: opacity .2s;
}
.top-bar__item > .sub-menu.otherway {
  left: auto;
  right: 0;
}
.top-bar__item > .sub-menu:before {
  content: "";
  position: absolute;
  top: -4px;
  left: 20px;
  border-bottom: 4px solid #333;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.top-bar__item > .sub-menu.otherway:before {
  left: auto;
  right: 20px;
}
.top-bar__item > .sub-menu li {
  display: block;
  min-width: 120px;
  border-top: 1px solid #2c2c2c;
  border-radius: 2px;
  text-align: left;
  white-space: nowrap;
}
.top-bar__item > .sub-menu li:first-child {
  border-top: none;
}
.top-bar__item > .sub-menu li:hover {
  background-color: #000;
}
.top-bar__item > .sub-menu a {
  display: block;
  margin: 0;
  padding: 0 12px 1px;
  color: #fff;
  font-size: 11px;
  line-height: 31px;
}
.top-bar__item > .sub-menu a:hover {
  color: #ccc;
}

/* Head: logo + navigation ------------------------------------------------- */
.head {
  position: relative;
  display: table;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.logo-container,
.navigation-bar {
  display: table-cell;
  vertical-align: middle;
}

a.logo {
  display: inline-block;
  padding: 25px 0;
  line-height: 40px;
  vertical-align: top;
  transition: background-color .3s, color .3s;
}
a.logo img {
  display: block;
  height: auto;
  transition: opacity .3s ease;
}
a.logo:hover img {
  opacity: .7;
}

.navigation-bar {
  padding-left: 20px;
}

.menu-container {
  display: block;
}

/* Top menu (desktop) ------------------------------------------------------ */
.top-menu {
  min-height: 40px;
  font-family: "PT Sans", sans-serif;
  text-align: right;
}

.top-menu li {
  position: relative;
  white-space: nowrap;
}

.top-menu > li {
  display: inline-block;
  text-align: left;
}

.top-menu li a {
  display: block;
  padding: 0 12px;
  color: #fff;
  font-size: 17px;
  font-weight: normal;
  line-height: 40px;
  text-transform: uppercase;
  transition: all .3s ease;
  outline-offset: -2px;
}

.top-menu li:hover > a,
.top-menu li.hovered > a {
  color: #c6c7c8;
}

/* "NEW" label */
.top-menu a em {
  position: relative;
  bottom: 2px;
  display: inline;
  margin-left: 10px;
  padding: 0 3px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  line-height: 14px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Sub menus */
.top-menu ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 205;
  min-width: 200px;
  border-top: 2px solid #c6c7c8;
  background-color: #201547;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .09);
  opacity: 0;
  transition: opacity .2s;
}
.top-menu > li > ul {
  margin-top: 9px;
}
.top-menu ul ul {
  top: 0;
  left: 100%;
  border-top: none;
}
.top-menu ul.otherway {
  left: auto;
  right: 0;
}
.top-menu ul ul.otherway {
  left: auto;
  right: 100%;
}

.top-menu li li a {
  padding: 0 15px;
  border-top: 1px solid #c6c7c8;
  color: #fff;
  font-size: 14px;
  line-height: 36px;
}
.top-menu li li:first-child > a {
  border-top: none;
}
.top-menu li li:hover > a,
.top-menu li li.hovered > a {
  color: #201547;
  background-color: #c6c7c8;
}

/* Shared dropdown visibility states (set by dropdown-menu.js) */
[data-dropdown-menu] li.hovered > ul,
[data-dropdown-menu] li:focus-within > ul {
  display: block;
}
[data-dropdown-menu] li.is-visible > ul,
[data-dropdown-menu] li:focus-within > ul {
  opacity: 1;
}
[data-dropdown-menu] li.is-leaving > ul {
  transition-duration: .15s;
}

/* Menu opener (hamburger) – only in touch mode */
.menu-opener {
  display: none;
  position: absolute;
  top: 50%;
  right: 20px;
  width: 40px;
  height: 40px;
  margin: -20px 0 0;
  padding: 0;
  border: 1px solid #d7d7d7;
  border-radius: 3px;
  background-color: #fafafa;
  cursor: pointer;
}
.menu-opener:before {
  content: "\f0c9";
  display: block;
  height: 38px;
  color: #000;
  font: normal normal normal 18px/38px FontAwesome;
  text-align: center;
  transition: color .3s;
  -webkit-font-smoothing: antialiased;
}
.menu-opener:hover:before,
.menu-opener.open:before {
  color: #475577;
}

/* Sticky header (cloned by header.js) ------------------------------------- */
#fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1506;
  min-height: 40px;
  background-color: #201547;
  box-shadow: 0 0 12px rgba(0, 0, 0, .09);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform .4s ease-in-out, opacity .4s ease-in-out, visibility 0s .4s;
}
#fixed-header.is-shown {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: transform .4s ease-in-out, opacity .4s ease-in-out, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  #fixed-header,
  #fixed-header.is-shown {
    transition: none;
  }
}
#fixed-header .head {
  max-width: 1080px;
}
#fixed-header a.logo {
  padding: 5px 0;
}
#fixed-header a.logo img {
  width: auto;
  max-height: 40px;
}
#fixed-header .top-menu > li > ul {
  margin-top: 0;
}

/* Touch / mobile menu ----------------------------------------------------- */
.navigation-bar.touch .menu-opener {
  display: block;
}
.navigation-bar.touch .menu-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background-color: #201547;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .09);
}
.navigation-bar.touch .menu-container.open {
  display: block;
}
.navigation-bar.touch .top-menu {
  margin: 0 10px;
  border-top: 2px solid #475577;
  text-align: left;
}
.navigation-bar.touch .top-menu li {
  display: block;
  white-space: normal;
  text-align: left;
}
.navigation-bar.touch .top-menu li a {
  padding-left: 0;
  padding-right: 0;
  border-top: 1px solid #c6c7c8;
  line-height: 36px;
}
.navigation-bar.touch .top-menu > li:first-child > a {
  border-top: none;
}
.navigation-bar.touch .top-menu li li a {
  padding-left: 15px;
}
.navigation-bar.touch .top-menu ul {
  display: none;
  position: static;
  margin: 0;
  overflow: hidden;
  border-top: none;
  box-shadow: none;
  opacity: 1;
  transition: none;
}
.navigation-bar.touch .top-menu ul.open {
  display: block;
}

/* Responsive -------------------------------------------------------------- */
@media only screen and (max-width: 1120px) {
  .top-bar-container,
  #fixed-header {
    padding-left: 20px;
    padding-right: 20px;
  }
  .logo-container {
    padding-left: 20px;
  }
  #fixed-header .logo-container {
    padding-left: 0;
  }
}

@media only screen and (max-width: 800px) {
  a.logo img {
    max-width: 300px;
  }
}

@media only screen and (max-width: 680px) {
  .top-bar-container,
  #fixed-header {
    padding-left: 10px;
    padding-right: 10px;
  }
  .logo-container {
    padding-left: 10px;
  }
  .head,
  .logo-container,
  .navigation-bar {
    display: block;
  }
  .navigation-bar {
    padding-left: 0;
  }
  .menu-opener {
    right: 10px;
  }
  a.logo img {
    max-width: 200px;
  }
}

@media only screen and (max-width: 480px) {
  .top-bar-container {
    display: none;
  }
}

@media only screen and (max-width: 460px) {
  a.logo img {
    max-width: 100px;
  }
}
