
/******************************************************************************************************************************//*
 * Global header positioning/styles 
*********************************************************************************************************************************/

/*
 * The skip-link link will be completely hidden until a user tabs to the link.
 */
#skip-link {
  margin: 0;
}
#skip-link a,
#skip-link a:visited {
  display: block;
  width: 100%;
  padding: 2px 0 3px 0;
  text-align: center;
  background-color: #666;
  color: #fff;
}

.header {
  border-top: 3px solid #044F7D;
  border-bottom: 1px solid #ddd;
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.front .header {
  margin-bottom: 1.25rem;
}

.logo {
  max-width: 140px;
  border-bottom: 1px solid #777;
  margin-bottom: -1px;
  padding: 1rem 0;
}

.logo img {
  float: left;
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  float: right;
  margin-top: 50px;
  margin-right: 1.5rem;
  background: url(../../images/hamburger.svg) center center no-repeat;
  background-size: 100%;
}

.header.megamenu-open .hamburger-icon {
  background-image: url(../../images/hamburger-close.svg);
  background-size: 90%;
}

/******************************************************************************************************************************//*
 * Nav area 
*********************************************************************************************************************************/

#navigation {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  margin-left: -5.5%;
  width: 111%;
  padding: 0.4rem 0;
}

.login-menu ul.menu,
.marketing-menu ul.menu {
  margin: 0;
  text-align: center;
}
.marketing-menu .menu-item {
  display: inline-block;
  text-align: left;
}

.marketing-menu .menu-item {
  font-size: 0.9rem;
  line-height: 140%;
}

.marketing-menu .menu-item.action-item {
  display: inline-block;
}
.marketing-menu .menu-item a,
.marketing-menu .menu-item span {
  color: #777;
  display: inline-block;
  padding: 0.3rem 0.2rem;
  cursor: pointer;
  cursor: hand;
  transition-property: color;
  transition-duration: 0.2s;
}
.megamenu-toggle-trigger {
  cursor: pointer;
  cursor: hand;
}
.megamenu-toggle-trigger.clicked {
  
}
.marketing-menu .menu-item a.action-item {
  font-weight: 500;
}
.marketing-menu .menu-item .desktop-button {
  font-weight: 600 !important;
  background: transparent;
  margin: 0;
}
.marketing-menu li.search {
  padding-left: 0rem;
}
.marketing-menu .free-newsletters {
  background-image: none;
}

.marketing-menu .menu-item .search,
.marketing-menu .menu-item .sections,
.marketing-menu .menu-item .free-newsletters {
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 14px;
  margin-left: 0.5rem;
  padding-left: 20px;
}

.marketing-menu .menu-item .free-newsletters {
  background-image: url(../../images/cc-newsletters-yellow.svg);
  background-size: 15px;
  padding-left: 20px;
  margin-left: 0;
}

/* This adds the hamburger icon to the SECTIONS link */
.marketing-menu .menu-item .sections {
  background-image: url(../../images/hamburger.svg);
  padding-right: 0.3rem;
}

.header.megamenu-open .marketing-menu .menu-item .sections,
.header.search-open .marketing-menu .menu-item .search {
  background-image: url(../../images/hamburger-close.svg);
  background-size: 12px;
  padding-left: 18px;
  color: #222;
}

/* This adds the search icon to the SEARCH link */
.marketing-menu .menu-item .search {
  background-image: url(../../images/search-icon.svg);
  padding-right: 0.1rem;
}

@media screen and (min-width: 480px) {
  .front .header,
  .header {
    margin-bottom: 1.666rem;
  }
}

@media screen and (min-width: 640px) {
  .front .header,
  .header {
    margin-bottom: 2rem;
  }
  .marketing-menu .menu-item {
    font-size: 1rem;
  }
  .marketing-menu .menu-item a,
  .marketing-menu .menu-item span {
    padding: 0.3rem 0.5rem;
  }
}

@media screen and (min-width: 800px) {
  .front .header {
    margin-bottom: 1.6666rem;
  }
  .not-front .header {
    margin-bottom: 2.5rem;
  }
  .header .inner {
    display: grid;
    grid-template-columns: 158px auto;
  }
  .logo {
    max-width: 158px;
  }
  #navigation {
    border-top: none;
    margin-left: 0;
    padding: 0;
    width: auto;
    margin-bottom: 0;
    margin-top: 5.5rem;
    position: relative;
    text-align: right;
  }
  .marketing-menu ul.menu {
    text-align: right;
  }
  .marketing-menu .menu .menu-item {
    border-left: 1px solid #ccc;
  }
  .marketing-menu .menu-item a,
  .marketing-menu .menu-item span {
    padding: 0.3rem 0.5rem 0.3rem 0.6rem;
  }
  .marketing-menu .menu-item a:hover,
  .marketing-menu .menu-item span:hover {
    color: #222;
  }
  .marketing-menu .menu-item .search {
    margin-left: 0.9rem;
  }
  
  /* The following removes the border from the SUBSCRIBE button */
  .marketing-menu .menu-item:first-child,
  .marketing-menu .menu-item:last-child {
    border-left: none; 
  }
  .marketing-menu .menu-item .free-newsletters {
    margin-left: 0;
    padding-left: 0.6rem;
    background-image: none;
  }
  .marketing-menu .menu-item .desktop-button {
    padding: 0.5rem 0.8rem;
    color: #fff !important;
    background-color: #e6aa49;
    border-radius: 4px;
    transition-property: background;
    transition-duration: 0.2s;
  }
  .marketing-menu .menu-item .desktop-button:hover {
    background-color: #ce8e28;
  }
  
  /* This positions and styles the "Subscriber Login" button on the header */
  .login-menu {
    position: absolute;
    top: -5.5rem;
    right: 0;
    padding: 0 0.3rem;
    border: 1px solid #ddd;
    border-top: none;
  }
  .login-menu .menu-item {
    padding: 0.2rem 0.3rem;
    text-align: center;
    display: inline-block;
  }
  .login-menu .menu-item a {
    color: #999;
    display: inline-block;
    font-size: 0.9rem;
  }
  .login-menu .menu-item a.with-icon {
    background-image: url(../../images/person-gray.svg);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 12px;
    padding-left: 18px;
  }
  .login-menu .menu-item a.with-icon.orange {
    background-image: url(../../images/person-orange.svg);
  }
}/* <----@media screen and (min-width: 800px) */

@media screen and (min-width: 900px) {
  .front .header {
    margin-bottom: 2.5rem;
  }
}

/* The following declarations place the menu icons on wider screens */
@media screen and (min-width: 1050px) {
  
  .marketing-menu .menu-item .search,
  .marketing-menu .menu-item .sections {
    margin-left: 0.6rem;
    padding-right: 0.5rem;
  }
  
  /* This adds the paper airplane icon to the FREE NEWSLETTERS link */
  .marketing-menu .menu-item .free-newsletters {
    background-image: url(../../images/cc-newsletters-yellow.svg);
    margin-left: 0.6rem;
    padding-left: 20px;
  }
}/* <----@media screen and (min-width: 1050px) */

@media all and (min-width: 1250px) {
  .front .header,
  .header {
    margin-bottom: 3.5rem;
  }
  .header .inner {
    grid-template-columns: 268px auto;
  }
  .logo {
    max-width: 268px;
  }
  .marketing-menu .menu-item .search,
  .marketing-menu .menu-item .sections {
    margin-left: 12px;
    padding-right: 12px;
  }
  .header.search-open .marketing-menu .menu-item .search {
    margin-left: 14px;
  }
  .marketing-menu .menu-item .free-newsletters {
    margin-left: 0.8rem;
  }
  .marketing-menu .menu-item a,
  .marketing-menu .menu-item span {
    padding: 0.3rem 0.7rem 0.3rem 0.8rem;
  }
  .marketing-menu .menu-item .free-newsletters {
    background-size: 18px;
    padding-left: 24px;
  }
}/* <----@media screen and (min-width: 1250px) */

/******************************************************************************************************************************//*
 * Header mega-menu
*********************************************************************************************************************************/

#header-megamenu {
  display: none;
  margin-top: 1px;
  position: absolute;
  left: 0;
  z-index: 100;
  width: 100%;
  margin-top: 1px;
  box-shadow: 0 3px 5px rgb(0 0 0 / 30%);
  background-color: #f3f3f3;
  border-bottom: 1px solid #999;
}

#header-megamenu .region-megamenu {
  padding: 1.5rem 0 2rem;
}

#header-megamenu h2 {
  margin-top: 0;
  font-family: "Crimson Text", "Merriweather", Georgia, "Times New Roman", Times, serif;
}

#header-megamenu .block.mega-menu {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

#header-megamenu .block.search {
  margin-bottom: 1.25rem;
}

#header-megamenu .block.search form {
  margin: 0 auto;
}

@media all and (min-width: 480px) {
  #header-megamenu .region-megamenu {
    padding: 2rem 0 1.5rem;
  }
  #header-megamenu .block.search {
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed #ccc;
  }
}

@media all and (min-width: 800px) {
  
  #header-megamenu .block {
    display: none;
  }
  
  .megamenu-open #header-megamenu .sections,
  .search-open #header-megamenu .search {
    display: block;
  }
  
  #header-megamenu .block.search {
    text-align: center;
    margin: 0 auto;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  #header-megamenu {
    background-color: #f7f7f7;
  }
  #header-megamenu .region-megamenu {
    padding: 2.5rem 0 1.5rem;
  }
  .search-open #header-megamenu .region-megamenu {
    padding-top: 1.75rem;
  }
}

@media all and (min-width: 930px) {
  #header-megamenu .region-megamenu {
    display: grid;
    grid-template-columns: 75% 25%;
  }
  #header-megamenu .block.mega-menu {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
  }
}

@media all and (min-width: 1050px) {
  #header-megamenu .region-megamenu {
    display: block;
  }
  #header-megamenu .block.mega-menu {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
  }
  #header-megamenu .block.mega-menu > .menu {
    grid-template-columns: 20% 20% 20% 20% 20%;
  }
}/* <-------@media all and (min-width: 1050px) */

@media all and (min-width: 1250px) {
  .megamenu-open #header-megamenu .region-megamenu {
    display: grid;
    grid-template-columns: 75% 25%;
  }
  #header-megamenu .block.mega-menu {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
  }
}
