.headerwrapper a:link:not(.skip-link),
.headerwrapper a:visited,
.headerwrapper p {
  color: var(--white);
}

.headerwrapper {
  border: 0;
  margin: 0;
  margin-bottom: 0;
  background-color: var(--indigo-500);
}

.headerwrapper.headerwrapper--isLogin {
  background-color: var(--light-gray);
}

.headerwrapper h1 {
  margin: 0;
  padding: 30px 20px 0;
  font-weight: normal;
}

#header-menu-items {
  color: var(--white);
}

#header-menu-items a,
#headerrightlinksgroup a {
  text-decoration: none;
}

#header-menu-items a:hover,
#headerrightlinksgroup a:hover {
  color: #ffd600;
  text-decoration: none;
}

.headerbar-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

div#headerbar-menu-toggle {
  display: none;
}

div#headercontent {
  height: 86px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

div#headerbarlogo img {
  vertical-align: -60%;
}

div#headerhome,
div#homelinkbox {
  padding-top: 8px;
}

div#homelinkbox {
  display: block;
  float: none;
  margin-bottom: 1rem;
  text-align: right;
}

#headermanageqset h2 img {
  padding: 0 0.25em;
  cursor: pointer;
}

#headerrightlinks {
  margin-left: 0.75em;
  margin-right: 1.5em;
}

.headerwrapper {
  background-color: var(--white);
  color: var(--primary-text);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;

  &:not(:has(> .courseNav)):not(.headerwrapper--isLogin) {
    border-bottom: 2px solid rgba(234, 232, 227, 1);
  }
}

.headerwrapper--isLogin {
  border-bottom: none;
}

.headerwrapper a:link:not(.skip-link),
.headerwrapper a:visited,
.headerwrapper p,
#myname {
  color: var(--primary-text);
}

#headercontent {
  font-size: 14px;
  min-height: 94px;
}

.navMain_ul {
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  display: flex;
}

.navMain_li:not(:last-child) {
  border-right: 1px solid var(--primary-text);
  padding-right: 10px;
  margin-right: 10px;
}

.headerwrapper h1.header_title,
.headerwrapper span.header_title {
  color: var(--primary-text);
  font-family: var(--serif-family);
  font-size: 24px;
  font-weight: 400;
  line-height: 100%;
  margin: 0;
  padding: 0;
}

a.lumen-logo[target="_blank"]::after {
  display: none;
}

.wrapper {
  max-width: 1920px;
  padding: 0 2em;
  margin: 0 auto;
}

.breadcrumbs {
  background: linear-gradient(
    to right,
    rgba(243, 190, 54, 1) 0%,
    rgba(243, 190, 54, 1) 50%,
    rgba(21, 185, 118, 1) 50%
  );
  grid-row: 1;
  height: 40px;

  .wrapper {
    align-items: center;
    background: linear-gradient(
      90deg,
      rgba(243, 190, 54, 1) 0%,
      rgba(21, 185, 118, 1) 100%
    );
    display: flex;
    height: 40px;
    justify-content: space-between;
  }

  .crumbs {
    display: flex;
    gap: 4px;
    align-items: center;
    line-height: 40px;

    a {
      color: var(--primary-text);

      &:hover,
      &:focus {
        text-decoration: underline;
        text-underline-offset: 3px;
      }
    }

    /* Ensure LTI dropdown works correctly in breadcrumb */
    .dropdown.inlinediv {
      position: relative;
      display: inline-block;
      vertical-align: middle;
    }

    .dropdown-toggle {
      color: var(--primary-text);
      text-decoration: none;
      cursor: pointer;

      &:hover,
      &:focus {
        text-decoration: underline;
        text-underline-offset: 3px;
      }
    }

    /* Ensure dropdown menu displays above breadcrumb and other content */
    .dropdown-menu {
      z-index: 1000;
    }
  }
}

.emulate-banner {
  background-color: var(--primary-text);
  color: var(--white);
  font-weight: 700;
  padding: 20px;
  text-align: center;

  a,
  a:visited {
    background-color: var(--indigo-500);
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
    color: var(--white);
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    height: 40px;
    line-height: 40px;
    margin: 0 20px;
    text-align: center;
    text-decoration: none;
    padding: 0 20px;
  }
}

.emulate-banner-name {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--indigo-500);
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
}

#help-icon {
  height: 14px;
  margin-right: 10px;
}

#help-button {
  background-color: #ffd600;
  border-color: #ffd600;
  border-radius: 4px;
  padding: 12px 24px 12px 20px;
  color: #000;
  display: flex;
  align-items: center;
}

#myname {
  color: var(--white);
  font-weight: bold;
  padding-right: 0.5em;
  cursor: default;
  border-right: 1px solid #eee;
}

#avatar {
  height: 14px;
  width: 14px;
  background-size: cover;
  background-position: center;
  margin: 0 0.5em;
}

/*Breadcrumb bar*/
div.breadcrumb {
  background-color: var(--light-gray);
  border: 0;
  width: 100%;
  margin-bottom: 5px;
}

@media (max-width: 900px) {
  div#headercontent {
    flex-direction: column;
    justify-content: center;
    height: 116px;
  }

  #headerbarlogo {
    margin-bottom: 0.75em;
  }

  .headerbarlogo--isLogin {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 650px) {
  div#headerbar-menu-toggle {
    display: block;
    cursor: pointer;
  }

  div#headercontent {
    height: auto;
    display: block;
    padding: 1em;
    padding-bottom: 0.5em;
  }

  div#headerrightlinks a {
    line-height: 1.8;
    padding: 0.3em 0;
  }

  div#headerrightlinks {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  a.header-menu-item {
    padding: 0.3em 0.5em !important;
  }

  .emulate-banner {
    a,
    a:visited {
      margin-top: 10px;
    }
  }
}

@media only screen and (max-width: 480px) {
  div#headercontent {
    display: block !important;
  }
}

@media (max-width: 599px) {
  .hideMobile {
    display: none;
  }

  .showMobile {
    display: initial;
  }

  .midwrapper,
  .wrapper {
    padding: 0 1rem !important;
  }

  header .crumbs {
    display: none !important;
  }

  .midwrapper > .mBreadcrumbNav {
    padding-top: 1rem;
  }

  #headercontent {
    min-height: auto;
    display: none;
  }

  #mobileclassesmenu .tabwrap {
    background-color: var(--indigo-300);
  }

  #mobileclassesmenu div.tabpanel {
    border: none;
    background-color: var(--indigo-300);
    margin: 0;
    padding: 0;
  }

  #mobileclassesmenu ul.courselist {
    padding: 0 !important;
    margin: 0 !important;
  }

  #mobileclassesmenu ul.courselist > li {
    padding: 0 !important;
  }

  #mobileclassesmenu ul.courselist > li > a {
    color: var(--primary-text);
    text-indent: 0;
  }
}

@media (max-width: 650px) {
  #myname {
    padding-bottom: 0.5em;
  }

  div.linksgroup {
    display: none;
  }

  div.linksgroup.responsive {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-top: 1em;
  }

  a#help-modal-open {
    line-height: 1.8;
  }

  span#help-button {
    background-color: transparent;
    color: var(--white);
    padding: 0;
    padding-left: 7px;
  }

  span#help-button img {
    display: none;
  }

  span#myname {
    border: none;
  }

  #viewbuttoncont {
    display: flex;
    flex-direction: column;
  }

  #viewbuttoncont a {
    margin-bottom: 4px;
  }

  #avatar {
    display: none;
  }
}
