/* Header styles */

body.no-scroll {
  height: 100vh;
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* media query added due to Chrome on Windows apply this up to 1040px */
@media screen and (max-width: 1024px) {
  body.no-scroll header {
    height: 100%;
    overflow-y: scroll;
  }
}

header {
  background-color: #fff;
  border-bottom: 1px solid #efefef;
  position: static;
  transition: top 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
  top: -200px;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.header-wrapper {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: auto;
  max-width: 1440px;
  padding: 20px;
  position: relative;
}

.header-logo {
  width: 90%;
}

.header-logo__link {
  display: inline-block;
}

.header-logo__img {
  width: 111px;
  height: 34px;
}

/* Menu Styles */

.menu-btn {
  background-color: transparent;
  border: none;
}

.menu-btn[aria-expanded="true"] .menu-icon {
  display: none;
}

.menu-icon--close {
  display: none;
}

.menu-btn[aria-expanded="true"] .menu-icon--close {
  display: block;
}

#menu-container {
  background-color: #fff;
  border-top: 1px solid #efefef;
  display: none;
  left: 0;
  position: absolute;
  top: 80px;
  width: 100%;
  z-index: 2;
}

/* media query added due to Chrome on Windows apply this up to 1040px */
@media screen and (max-width: 1024px) {
  body.no-scroll #menu-container {
    height: 100vh;
    overflow-y: scroll;
  }
}

/* List */
#menu-group {
  display: block;
  z-index: 2;
}

/* Top level nav items */
.menu-top-wrapper {
  position: relative;
}

.menu-top {
  background-color: transparent;
  background-image: url("../images/down-arrow.svg");
  background-position: 97% center;
  background-repeat: no-repeat;
  border: none;
  color: #222720;
  font-family: "UniversLTW05-55Roman";
  font-size: 18px;
  margin: 0;
  padding: 20px;
  position: relative;
  text-align: left;
  width: 100%;
  outline: none;
}
.menu-top:active{
  outline:  none;
}

.menu-top[aria-expanded="true"] {
  background-image: url("../images/up-arrow.svg");
}

.menu-top:before,
.menu-top:after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 0;
  height: 2px;
  margin: 2px 0 0;
  transition: width 0.5s;
  opacity: 0;
}

.menu-top:after {
  left: 0;
  background-color: #f0b41b;
}

.menu-top:hover,
.menu-top:focus,
.menu-top:active {
  cursor: pointer;
}

.menu-top:hover:after,
.menu-top:hover:before,
.menu-top:focus:after,
.menu-top:focus:before,
.menu-top:active:after,
.menu-top:active:before {
  width: 100%;
  opacity: 1;
}

.menu-top:focus, 
.menu-top a:focus {
  outline: none;
}
.menu-top:focus-visible, 
.menu-top a:focus-visible {
  outline: 1px rgb(0, 95, 204);
  outline-offset: 1px;
  outline-style: auto;
}

/* Menu sub-navigation */
.nav-panel {
  background-color: #fff;
  display: none;
  padding: 0 20px;
  z-index: 1;
}

.menu-group nav ul li:first-child a {
  padding-top: 28px;
}

.menu-group nav ul li a {
  color: #7c7d7d;
  font-family: "UniversLTW04-75Black";
  font-size: 15px;
  display: block;
  white-space: normal !important;
  padding: 12px 0;
  text-decoration: none;
  white-space: nowrap;
}

.menu-group nav ul li a:hover,
.menu-group nav ul li a:focus,
#menu-panel-1 .menu-group nav ul li a:hover,
#menu-panel-1 .menu-group nav ul li a:focus {
  color: #222720;
}

/* Contact and Careers navigation specific styles */
#menu-top-4,
#menu-top-5 {
  background-image: none;
}

#menu-top-4 a,
#menu-top-5 a {
  color: #222720;
  text-decoration: none;
}

/* Work navigation specific styles */

#menu-panel-1 .menu-group nav ul li:first-child a {
  color: #222720;
  font-family: "UniversLTW04-75Black";
  font-size: 15px;
  margin-bottom: 5px;
  padding-top: 28px;
}

#menu-panel-1 .menu-group nav ul li a {
  color: #7c7d7d;
  font-family: "UniversLTW05-55Roman";
  font-size: 14px;
  display: block;
  padding: 12px 0;
  text-decoration: none;
  white-space: nowrap;
}

#menu-panel-1 .menu-group nav ul#menu-a1 li:first-child a {
  pointer-events: none;
}

/* Work - On the Boards specific link style */
#menu-panel-1 .menu-group nav ul#menu-a6 li:first-child a {
  color: #7c7d7d;
  font-family: "UniversLTW05-55Roman";
  font-size: 14px;
  display: block;
  padding: 20px 0 12px 0;
  margin-bottom: 0;
}

#menu-panel-1 .menu-group nav ul#menu-a6 li:first-child a:hover,
#menu-panel-1 .menu-group nav ul#menu-a6 li:first-child a:focus {
  color: #222720;
}

#menu-panel-1 .menu-group nav ul#menu-a6:before {
  background-color: #222720;
  content: "";
  display: block;
  height: 2px;
  margin-top: 8px;
  position: relative;
  top: 0;
  width: 40px;
}

/* Menu-panel-2 styles same as above menu-panel-1 styles */

#menu-panel-2 .menu-group  ul li:first-child a {
  color: #222720;
  font-family: "UniversLTW04-75Black";
  font-size: 15px;
  margin-bottom: 5px;
  padding-top: 28px;
}

#menu-panel-2 .menu-group  ul li a {
  color: #7c7d7d;
  font-family: "UniversLTW05-55Roman";
  font-size: 14px;
  display: block;
  padding: 12px 0;
  text-decoration: none;
  white-space: nowrap;
}

/* Work - On the Boards specific link style */
#menu-panel-2 .menu-group  ul li:first-child a {
  color: #7c7d7d;
  font-family: "UniversLTW05-55Roman";
  font-size: 14px;
  display: block;
  padding: 20px 0 12px 0;
  margin-bottom: 0;
}

/* Search Styles */

.search-wrapper {
  position: relative;
}

.search-toggle {
  background-color: transparent;
  border: none;
  outline: none;
}

.search-toggle svg {
  fill: #222720;
}

.search-toggle[aria-expanded="true"] svg {
  fill: #f0b41b;
}

.search-toggle:hover,
.search-toggle-close:hover {
  cursor: pointer;
}

.search-toggle-close {
  display: none;
  background-color: transparent;
  border: none;
  right: 20px;
  position: absolute;
  top: 39px;
  z-index: 3;
}

.search-toggle-close.active {
  display: block;
}

#main-search {
  background-color: #fff;
  border-top: 1px solid #efefef;
  display: none;
  left: 0;
  padding: 20px;
  position: absolute;
  top: 80px;
  width: 100%;
  z-index: 2;
}

#main-search.active {
  display: block;
}

#edit-search-fulltext {
  border: none;
  border-left: 1px solid #969696;
  border-radius: 0;
  box-sizing: border-box;
  color: #222720;
  font-family: "UniversLTW04-75Black";
  font-size: 15px;
  padding: 20px;
  width: 100%;
}

#edit-search-fulltext:focus {
  border-left: 1px solid transparent;
}

/* clears the 'X' from Internet Explorer */
input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.form-submit {
  display: none;
}

/* Breakpoint: 768px */

@media (min-width: 1024px) {
  /* Header */
  .header-wrapper {
    align-items: baseline;
    justify-content: inherit;
    padding: 30px 40px;
  }

  .header-logo {
    margin-right: 30px;
    width: auto;
  }

  /* Menu */

  .menu-btn {
    display: none;
  }

  #menu-container {
    background-color: transparent;
    border-top: none;
    display: block !important;
    left: auto;
    margin-left: 30px;
    margin-right: 30px;
    position: relative;
    top: auto;
  }

  #menu-group {
    display: flex;
  }

  .menu-top {
    background-image: none;
    margin-right: 40px;
    padding: 2px 0;
    width: auto;
  }

  .menu-top[aria-expanded="true"] {
    background-image: none;
  }

  .nav-panel {
    margin-left: -50px;
    padding: 22px;
    position: absolute;
    top: 60px;
  }

  /* Work nav specific styles */

  #menu-panel-1 .nav-container {
    display: flex;
    flex-wrap: nowrap;
    min-width: 650px;
  }

  #menu-panel-1 .menu-group {
    padding-right: 20px;
  }

  #menu-panel-1 .menu-group:last-child {
    padding-right: 0;
  }

  #menu-group-a6 {
    bottom: 0;
    margin-top: 20px;
    padding-top: 20px;
    position: absolute;
  }

  #menu-group-a6:before {
    width: 40px;
    height: 2px;
    color: #222720;
  }

  #menu-panel-1 .menu-group nav ul li:first-child a {
    font-size: 14px;
  }

  #menu-panel-1 .menu-group nav ul li a {
    font-size: 13px;
  }

  /* Search */

  #main-search {
    padding: 20px 40px;
    right: 40px;
    top: 98px;
  }

  .search-toggle-close {
    right: 40px;
  }
}
#menu-panel-1 .menu-group {
  padding-right: 50px;
  min-width: 205px;
}
/* Breakpoint: 1280px */

@media (min-width: 1280px) {
  /* Work nav specific styles */
  #menu-panel-1 .menu-group {
    padding-right: 50px;
    min-width: 205px;
  }

  .menu-group nav ul li a {
    font-size: 14px;
  }

  #menu-panel-1 .menu-group nav ul li:first-child a {
    font-size: 15px;
  }

  .nav-panel {
    padding: 22px 50px;
  }
}
