#body:has(#mcm-nav.search-active) #page {
  position: fixed;
}

#mcm-nav,
#lcl-nav {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
}

#mcm-nav {
  height: 40px;
  border-bottom: 2px solid #fdbf57;
  background: #7a003c;
}

#mcm-nav .nav-link {
  color: #ffffff;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  transition: 0.3s ease-in-out;

  &:hover {
    color: #fdbf57;
  }

  @media (max-width: 567.98px) {
    padding: 0.5rem 1rem;
  }
}

#lcl-nav {
  background-color: var(--header-colour);
}

#lcl-nav > div.border-bottom {
  @media (min-width: 568px) {
    border-bottom: none !important;
  }
}

#lcl-nav .nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

#lcl-nav .nav-link,
#lcl-nav .navbar-toggler {
  font-weight: 500;
  font-size: 0.975rem;
  padding: 0.8rem;
  border-radius: 0;
}

body:not(:has(#mcm-nav)) #lcl-nav > li.nav-link {
  color: var(--primary-text);
}

#lcl-nav .active .nav-link {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Site Logo */
#lcl-logo {
  background-color: var(--header-colour);
}

#lcl-logo #mcm-logo {
  height: 70px;
}

#lcl-logo:not(:has(img)) h1 {
  font-size: 32px;
}

#lcl-logo h1 {
  font-size: 19px;
  line-height: 1.2;
  padding-bottom: 1px;
  color: var(--header-text-colour);
  margin-bottom: 0px;
  width: auto;
  max-width: 220px;
  max-height: 70px;
  overflow: visible;

  &.primary-text {
    color: var(--primary-colour-on-white);
  }
}

#lcl-logo h1.wide {
  max-width: 350px;
}

#lcl-logo:hover,
#lcl-logo a:hover {
  text-decoration: none;
}

#lcl-logo h1:has(img) {
  width: auto;
  max-width: unset;
  height: 100%;
  max-height: 85px;
}

#lcl-logo h1 img {
  min-height: 56px;
  max-height: 62px;
  height: auto;
  width: 100%;
  margin-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#lcl-logo h1.hospital img {
  max-height: 74px;
}

#lcl-logo h1:has(.tall) {
  overflow: visible;
}

#lcl-logo h1 img.tall {
  max-height: 79px;
  padding-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
  #lcl-logo h1:not(:has(img)) {
    margin-top: -1px;
    padding-top: 12px;
    padding-bottom: 12px;
    max-height: none;
  }

  #lcl-logo h1 img {
    max-width: 100%;
    width: auto;
  }

  #lcl-logo h1 img {
    max-width: 100%;
    width: auto;
  }

  #lcl-logo:not(:has(#hhs-logo)) {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  #lcl-logo:not(:has(#hhs-logo)):has(.wide) #mcm-logo {
    height: auto;
    width: 33%;
  }

  #lcl-logo:not(:has(#hhs-logo)):has(.wide) h1:not(:has(img)) {
    max-width: unset;
  }
}

/* Dropdowns */
#mcm-nav .dropdown-menu,
#lcl-nav .dropdown-menu {
  font-size: 0.85rem;
  margin-top: 1px;
  border-radius: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  box-shadow: 0 0 36px rgba(94, 106, 113, 0.4);
}

@media (min-width: 992px) {
  #mcm-nav .dropdown-menu li,
  #lcl-nav .dropdown-menu li {
    max-width: 260px;
    min-width: 200px;
  }
}

#mcm-nav .dropdown-item,
#lcl-nav .dropdown-item,
#hospital-menu .dropdown-menu > .nav-item > a {
  color: #000;
  padding: 0.6rem 1rem;
  line-height: 1.45rem;
  position: relative;
  border-bottom: 1px solid #dbdbdd;
  white-space: normal;
}

#mcm-nav .dropdown-item {
  text-wrap: nowrap;
  color: #ffffff;
  border-bottom: none;
  @media (max-width: 567.98px) {
    padding: 0.5rem 1rem;
  }
}

#mcm-nav .dropdown-item:before,
#lcl-nav .dropdown-item:before,
#hospital-menu .dropdown-menu > .nav-item > a:before {
  content: "";
  display: block;
  position: absolute;
  width: 4px;
  height: 100%;
  top: 0;
  left: -4px;
  transition: all 0.2s ease-out;
  background-color: var(--primary-colour);
}

#mcm-nav .dropdown-item,
#hospital-menu .dropdown-menu > .nav-item > a {
  &:hover,
  &:focus {
    background-color: transparent;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
  }
}

#mcm-nav .dropdown-item,
#lcl-nav .dropdown-item,
#hospital-menu .dropdown-menu > .nav-item > a {
  &:hover:before,
  &:focus:before {
    left: 0;
  }
}

#lcl-nav .navbar-nav {
  min-height: 50px;
}

#lcl-nav .navbar-nav > .nav-item:last-child > .dropdown-menu {
  left: auto;
  right: 0;
}

#lcl-nav-menu .dropdown-toggle::after {
  top: 2px;
}

#lcl-nav-menu .nav-link {
  line-height: 1.25;
  color: var(--lcl-nav-text);
}

#lcl-nav .navbar-toggler,
#lcl-nav-menu .nav-item {
  text-align: left;
}

#lcl-nav-menu .dropdown-menu {
  top: 110%;
}

/* Custom Colours / Hospital Colour Rewrite */
#lcl-nav-menu.w-100 {
  background-color: var(--primary-colour);
}

/* McMaster Global Colour Rewrites */
#mcm-nav .dropdown-menu {
  background-color: #56002a;
  border-color: #56002a;
}

#mcm-nav .dropdown-item:before {
  background-color: #fdbf57;
}

/* Search Icon */

#mcm-nav {
  #site-search {
    padding: 0.5rem 1.25rem 0.5rem 0.9375rem;
    color: #ffffff;
    z-index: 1101;

    &::after {
      content: "Search";
    }
  }

  &.search-active {
    #site-search {
      color: #000000;

      .search-icon::before,
      .search-icon::after {
        border-color: #000000;
      }
    }
  }

  a#site-search {
    transition: 0.3s ease-in-out;
  }

  a#site-search .search-icon {
    display: inline-block !important;
    position: relative !important;
    border: solid 2px #ffffff;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    top: 0 !important;
    left: -6px !important;
    transition: ease-in-out 0.3s;

    &::before,
    &::after {
      display: inline-block;
      position: absolute;
      content: "";
      background: #ffffff !important;
      background-image: none !important;
      border: solid 0.5px var(--primary-text);
      border-radius: 2px;
      width: 6px !important;
      left: 0.75rem;
      top: 0.75rem;
      transform: translateX(-6px) translateY(-3px) rotate(45deg);
      transition: ease-in-out 0.3s;
    }
  }

  #site-search:hover {
    color: #fdbf57;
    text-decoration: none;

    .search-icon,
    .search-icon::before,
    .search-icon::after {
      border-color: #fdbf57;
    }
  }

  &.search-active a#site-search .search-icon {
    border-color: transparent;

    &::before,
    &::after {
      width: 18px !important;
      left: -0.25rem;
      top: 0.25rem;
    }

    &::before {
      transform: rotate(-135deg);
    }

    &::after {
      transform: rotate(135deg);
    }
  }
}

#faculty-btn {
  border-color: var(--primary-colour);
  background-color: var(--primary-colour);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  min-height: 36px;
  height: unset;
  line-height: 1.25;
  border-radius: 0.2rem;
}

#faculty-btn:hover {
  border-color: var(--primary-colour);
  background-color: var(--primary-text);
  color: var(--primary-colour);
}

/* Navbar Togglers */

#mac-nav-menu {
  transition: 0.35s ease-in-out !important;
}

#mac-nav-menu:not(:has(.collapse)) {
  display: block;
}

#mac-nav-menu .dropdown-menu {
  z-index: 1121;
}

@media (max-width: 767.98px) {
  #mac-nav-menu.show {
    z-index: 1111;
  }
}

#mcm-nav .navbar-toggler {
  font-size: 0.9rem;
  color: var(--primary-text);
  line-height: unset;
}

#mcm-nav .navbar-toggler:hover {
  color: var(--secondary-colour);
}

#mcm-nav .navbar-toggler-icon,
#lcl-nav .navbar-toggler:before {
  display: inline-block;
  width: 1.375em;
  height: 1.375em;
  vertical-align: middle;
  content: "";
  background: 50%/100% 100% no-repeat;
}

#lcl-nav .navbar-toggler:before {
  margin-right: 6px;
}

#mcm-nav .navbar-toggler[aria-expanded="false"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mcm-nav .navbar-toggler[aria-expanded="false"]:hover .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23fdbf57' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mcm-nav .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' class='bi bi-x-lg' viewBox='0 0 16 16'%3E%3Cpath d='M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z'/%3E%3C/svg%3E");
}

#mcm-nav .navbar-toggler[aria-expanded="true"]:hover .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fdbf57' class='bi bi-x-lg' viewBox='0 0 16 16'%3E%3Cpath d='M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z'/%3E%3C/svg%3E");
}

#lcl-nav .navbar-toggler[aria-expanded="false"]:before {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23495965' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#lcl-nav .navbar-toggler[aria-expanded="false"]:hover::before {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#lcl-nav .navbar-toggler[aria-expanded="true"]:before,
#lcl-nav .navbar-toggler[aria-expanded="true"]:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FFFFFF' class='bi bi-x-lg' viewBox='0 0 16 16'%3E%3Cpath d='M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z'/%3E%3C/svg%3E");
}

/* 3 Tier Navbar */

#lcl-nav .dropdown-menu a,
.dropdown-menu button {
  height: stretch;
  overflow: hidden;
}

#lcl-nav .dropdown-submenu .dropdown-toggle::after {
  position: absolute;
  right: 50%;
  margin-right: -4px;
  margin-top: -3px;
  top: 50%;
  transition: 0.5s;
}

#lcl-nav
  .dropdown-submenu
  .dropdown-menu
  .dropdown-item:not(
    #lcl-nav .dropdown-submenu .dropdown-menu li:last-child .dropdown-item
  ) {
  border-bottom: 1px solid #dbdbdd;
}

#lcl-nav .dropdown-submenu .dropdown-toggle[aria-expanded="true"]:after {
  transform: scaleY(-1);
}

#lcl-nav .dropdown-submenu .dropdown-toggle {
  width: 33px;
  right: 0;
  display: inline-block;
  margin-bottom: 0;
  min-height: 33px;
}

#lcl-nav .dropdown-submenu > a.dropdown-item:first-child {
  max-width: calc(100% - 33px);
  display: inline-block;
  float: left;
}

#lcl-nav .dropdown-submenu .dropdown-menu {
  box-shadow: none;
  border-bottom: 1px solid #dbdbdd;
}

#lcl-nav .dropdown-submenu .dropdown-menu.show {
  position: relative;
}

#lcl-nav .dropdown-submenu .dropdown-menu li a {
  border: none;
  padding: 6px 12px 6px 24px;
  word-wrap: break-word;
}

li.nav-item::marker {
  display: none;
  line-height: 0;
  height: 0;
  width: 0;
  list-style-type: none;
}

#lcl-nav .gold,
#lcl-nav .lcl-nav-cta {
  background-color: transparent;

  a {
    color: var(--primary-colour);
    font-weight: 600;
  }
}

/* SEARCH OVERLAY */

#body {
  width: 100%;
}

#search {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 152px;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  background-color: #dbdbdd;
  z-index: 2;
  overflow: auto;
}

#search button {
  font-size: 1rem;
  font-weight: 400;
  padding: 6px 12px;
}

#mcm-nav .dropdown-toggle:after {
  top: 1px;
}

@media (max-width: 575.98px) {
  #search {
    top: 38px;
  }
}

/* HFCOPY STYLES */

.search-active #mcmaster-search-overlay {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;

  /* Firefox */
  &::-webkit-scrollbar {
    display: none;
  }
}

/* ===SEARCH OVERLAY=== */
#mcmaster-search-overlay {
  display: block;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1100;
  overflow-y: scroll !important;
  background-color: #c6cbce;
  opacity: 0;
  visibility: hidden;
  -webkit-transition:
    opacity 0.5s,
    visibility 0s 0.5s;
  transition:
    opacity 0.5s,
    visibility 0s 0.5s;

  button.btn-primary {
    color: #ffffff;
    background-color: #7a003c;
    &:hover {
      color: #000000;
      background-color: #fdbf57;
    }
  }

  .btn-group {
    display: block;
    margin: 10px auto !important;

    .btn {
      float: none;
    }
  }
}

body:has(section > .alert-message_gold) #mcmaster-search-overlay {
  top: 96px;
}

body:has(#wpadminbar) {
  &:not(:has(.alert-message_gold)) #mcmaster-search-overlay {
    top: 32px;
  }

  &:has(.alert-message_gold) #mcmaster-search-overlay {
    top: 128px;
  }
}

#mcmaster-search-form {
  width: 90%;
  max-width: 600px;
  font-size: 16px;
  padding-bottom: 0;

  .btn-mac-search {
    font-size: 1.125rem;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 400;
    text-align: center;
    width: 100%;
    height: unset !important;
    border-radius: 0 !important;
    height: 50px !important;
    margin-top: 5px !important;

    &:first-child {
      margin-right: 5px;
    }

    &:last-child {
      margin-left: 5px;
    }
  }

  @media (min-width: 768px) {
    margin: 10% auto 0;
  }

  @media (max-width: 767.98px) {
    margin: 25% auto 0;
  }
}

/*Results box */

#___gcse_0 {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;

  table {
    margin-bottom: 0;
  }
}

.gsc-control-cse {
  border-color: transparent !important;
  background-color: transparent !important;
  padding: 0 0 1rem !important;
}

.gsc-expansionArea {
  padding: 1rem;
}

#mcm-nav.search-active #site-search {
  color: #000;

  &:hover {
    text-decoration: underline;

    .search-icon::before,
    .search-icon::after {
      border-color: #000000;
    }
  }
}

#mcm-nav.search-active #mcmaster-search-overlay {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;

  #mcmaster-quick-links {
    background-color: #ffffff;
    opacity: 1;
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
  }

  #search-input {
    opacity: 1;
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
  }
}

#mcmaster-search-overlay #mcmaster-quick-links {
  display: block;
  width: 90%;
  max-width: 600px;
  padding: 0;
  margin: 0 auto 100px;
  border-top: solid #7a003c 5px;
  opacity: 0.4;
  -webkit-transform: translateY(-25%) rotateX(35deg);
  transform: translateY(-25%) rotateX(35deg);
  -webkit-transition:
    -webkit-transform 0.5s,
    opacity 0.5s;
  transition:
    transform 0.5s,
    opacity 0.5s;

  & > div:first-of-type {
    padding-top: 0.75rem;
  }

  & > div:last-of-type {
    padding-bottom: 1rem;
  }

  ul {
    margin-bottom: 0;
    padding-left: 40px;

    li {
      margin-bottom: 5px;
      padding-right: 10px;
      list-style-type: disc;

      a {
        display: inline;
        color: #ac1455;
        font-size: 16px;
        line-height: 20px;
        text-transform: none;
        letter-spacing: 0;
        text-decoration: none;
        border-bottom: none;

        &:hover {
          /* color: #147cac; */
          text-decoration: underline;
          text-underline-offset: 0.25rem;
        }
      }
    }
  }

  .link-row {
    .column {
      width: 50%;
      float: left;
      min-width: 255px;

      @media (max-width: 569.98px) {
        width: 100%;
      }
    }
  }

  .links-title {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 18px;
    line-height: 20px;
    text-transform: none;
    padding-left: 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: #000000;
  }
}

/* Quick Links */

#mcmaster-search-overlay #search-input {
  padding: 3px;
  border: solid 1px #e4e4e4;
  background-color: #fff;
  margin: 42px auto 0;
  -webkit-perspective: 1200px;
  perspective: 1200px;
  height: 50px;
  opacity: 0.4;
  -webkit-transform: translateY(-25%) rotateX(35deg);
  transform: translateY(-25%) rotateX(35deg);
  -webkit-transition:
    -webkit-transform 0.5s,
    opacity 0.5s;
  transition:
    transform 0.5s,
    opacity 0.5s;

  input {
    border: 0;
    box-shadow: none;
    font-size: 18px;
    padding: 10px 45px 10px 10px;
    color: #1e252b;
    width: 100% !important;
  }

  button {
    display: block;
    width: 60px;
    height: 48px;
    margin: 0;
    background: none;
    box-shadow: none;
    border: 0;
    padding: 9px;
    border-left: none !important;
    position: absolute;
    right: 0;
    top: 0;

    .search-icon {
      fill: #5e6a71;
    }

    &:hover .search-icon {
      fill: #7a003c;
    }

    svg {
      width: 30px;
      height: 30px;
    }
  }
}

.btn-primary.btn-mac-search {
  border-color: transparent !important;
  cursor: pointer;

  @media (max-width: 569.98px) {
    width: 100% !important;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#clearSearch {
  cursor: pointer;
}

#mcmenu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 32px;
  background: #5e6a71;
  -webkit-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
  border-radius: 2px;
  opacity: 1;
  top: 36px;
  left: 28%;

  &,
  &::before,
  &::after {
    -webkit-transition: 0.25s ease-in-out;
    transition: 0.25s ease-in-out;
    border-radius: 2px;
  }

  &::before,
  &::after {
    position: absolute;
    display: block;
    left: 0;
    width: 32px;
    height: 3px;
    background: #5e6a71;
    content: \'\';
  }

  &:before {
    top: -8px;
  }

  &:after {
    top: 8px;
  }
}

/* Mac Menu Icon Active (search icon) */
.sr-only {
  height: 1px;
  padding: 0px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0px, 0px, 0px, 0px);
  border: 0px none;
  position: absolute;
  width: 1px;
}

/* ===OFF CANVAS MENU=== */
#mcmaster-nav {
  background: #f0f0f0;
  border-left: 1px solid #f0f0f0;
  position: fixed;
  padding: 42px 0 0;
  margin: 0;
  width: 240px;
  height: 100%;
  top: 0;
  right: -240px;
  z-index: 1021;
  -webkit-overflow-scrolling: touch;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
  box-shadow: -5px 0px 10px rgba(0, 0, 0, 0.1);

  &:before {
    display: block;
    background: #7a003c;
    height: 142px;
    position: absolute;
    content: \'\';
  }

  a {
    display: inline-block;
    outline: none;
    width: 100%;
    color: #5e6a71;
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
    font-weight: 300;
    font-size: 15px;
    text-decoration: none;

    &:hover,
    &:focus {
      background-color: #e8e8e8;
    }
  }

  & > li > a {
    font-size: 20px;
    outline: none;
    padding: 15px 20px;
    background: #f0f0f0;
    border-top-color: #d9d9d9;

    &:hover,
    &:focus {
      background-color: #5e6a71;
      color: #fff;
    }
  }

  input {
    display: none;

    &:checked ~ ul {
      max-height: 720px;
    }
  }

  label {
    cursor: pointer;
    display: block;
    font-size: 20px;
    padding: 15px 20px;
    background: #7a003c;
    border-top: 1px solid #37001a;
    z-index: 20;
    color: #fff;
    font-weight: 300;

    &:hover,
    &:focus,
    &:checked + label {
      background-color: #ac1455;
    }
  }

  ul {
    background: #f7f7f7;
    overflow: hidden;
    z-index: 10;
    height: 0;
    overflow: hidden;
    -webkit-transition: max-height 0.8s;
    -moz-transition: max-height 0.8s;
    transition: max-height 0.8s;
  }

  li,
  ul {
    list-style-image: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }
}

nav#mcm-nav.menu-active {
  #mcmaster-nav {
    -webkit-transform: translate(-240px, 0);
    -ms-transform: translate(-240px, 0);
    transform: translate(-240px, 0);
  }

  .header__inner #navLinks {
    position: fixed !important;
    top: 42px;
    right: 2%;
  }
}

#mcm-nav.condensed {
  overflow: visible;
  height: 60px;

  #mcmenu,
  #mcmaster-search {
    text-indent: -9999px;
    height: 60px;
    padding-top: 5px;
  }

  #mcmenu span {
    top: 28px;
  }

  #mcmaster-brand {
    height: 60px;
  }

  #mcmaster-logo {
    width: 140px !important;
    height: auto !important;

    &:hover {
      border-bottom-color: transparent !important;
      background-color: transparent !important;
    }
  }
}

#skiptocontent a {
  padding: 6px;
  position: absolute;
  top: -40px;
  left: 0px;
  color: #fff !important;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  border-bottom-right-radius: 8px;
  background: #000 !important;
  transition:
    top 1s ease-out,
    background 1s linear;
  z-index: 999;

  /* &:focus {
        position: absolute;
        left: 0px;
        top: 0px;
        background-color: #bf1722;
        outline: 0;
        transition:
            top 0.1s ease-in,
            background 0.5s linear;
    } */
}

nav#mcm-nav {
  padding-top: 24px;
  padding-bottom: 16px;

  &.condensed #mcmaster-brand {
    height: 76px;
  }

  #mcm-nav__title {
    display: block;
    z-index: 1;
    text-align: center;
    top: 0;
    left: 0;
    width: calc(100vw - (360px + 8%));
    margin: 0 auto;
    max-width: 900px;
    position: relative;
    z-index: 1400;
  }

  .mcm-nav__department,
  .mcm-nav__tagline {
    text-transform: none;
    text-decoration: none;
    color: #7a003c;
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    letter-spacing: 1px;
    font-weight: 900;
    font-size: 2em;
    line-height: 1.5625em;
    margin: 0 0 24px 0;
    clear: none;
  }

  .mcm-nav__tagline {
    margin-bottom: 16px;
  }

  .mcm-nav__department > a,
  .mcm-nav__department > a:hover,
  .mcm-nav__department > a:visited {
    text-decoration: none;
    color: #7a003c;
  }

  .mcm-nav__header-title {
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 3.8em;
    text-decoration: none;
    letter-spacing: 1px;
    line-height: 1.2631578947;
    margin: 0 0 8px 0;
    font-weight: 400;
    color: #1a1c1d;
    clear: none;

    &.has-tagline {
      margin-bottom: 8px;
    }

    & > a,
    & > a:visited,
    & > a:hover {
      text-decoration: none;
      color: #1a1c1d;
    }

    &.title-only {
      color: #7a003c !important;
      text-transform: uppercase;
      font-size: 4em;
      letter-spacing: 1px;
      line-height: 1.2em;
      padding-top: 0.4em;

      & > a {
        color: #7a003c;
      }
    }
  }

  .header__inner {
    padding-left: 4%;
    padding-right: 4%;
    margin: 0 auto;
    position: relative;

    #navLinks {
      position: absolute;
      top: 0;
      right: 0;
      transition:
        width 0s,
        right 0.3s ease-out;
    }
  }

  svg#mcmaster-logo g#letters * {
    fill: #5e6a71 !important;
  }

  #mcmenu,
  #mcmaster-search:before,
  #mcmenu:before {
    text-transform: none;
    text-indent: 0;
    display: block;
    position: absolute;
    color: #5e6a71;
    width: 100%;
    text-align: center;
    font-family: \'Roboto\', \'RegCon\', "Arial Narrow", Arial, sans-serif;
    bottom: 0;
    transition: all 250ms;
    line-height: 1.3em;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 0, 0, 0);
    transition: border-bottom 250ms ease-out;
    padding-bottom: 4px;
    margin-bottom: -4px;
  }

  a#mcmaster-search:hover:before,
  a#mcmenu:hover:before {
    border-bottom: 2px solid #5e6a71;
  }

  #mcmaster-search:before,
  #mcmenu:before {
    color: #5e6a71;
  }

  #mcmenu span {
    top: 26px;
    left: 28px;

    &,
    &::before,
    &::after {
      width: 22px;
    }

    &:before {
      top: -8px;
    }

    &:after {
      top: 8px;
    }
  }

  .mcm-nav__site-logo {
    max-height: 76px;
    max-width: 100% !important;

    &[src*="nursing"] {
      height: 76px;
    }

    &[src*="brighter-world"] {
      height: 64px;
      margin-top: 16px;
    }

    &[src*="business"] {
      height: 66px;
      margin-top: 16px;
    }

    &[src*="cmcr"],
    &[src*="medicine"],
    &[src*="daily-news"],
    &[src*="brand-standards"] {
      height: 56px;
      margin-top: 16px;
    }
  }
}

@media (max-width: 768px) {
  nav#mcm-nav {
    padding-top: 0;
    padding-bottom: 34px;

    #navLinks {
      top: 8px;
    }
  }
}

@media (max-width: 768px) {
  nav#mcm-nav #mcm-nav__title {
    position: static;
    clear: both;
    width: 100%;
    padding-top: 16px;
  }

  nav#mcm-nav .mcm-nav__header-title {
    margin-bottom: 0;
  }

  nav#mcm-nav .header__inner {
    padding-left: 4%;
    padding-right: 4%;
  }

  nav#mcm-nav #navLinks {
    right: 2%;
  }

  #mcm-nav .nav-item {
    min-width: 60px !important;
  }

  #mcm-nav.search-active nav#mcm-nav #mcmenu span {
    left: 20px;
  }
}

@media (max-width: 359px) {
  #mcmaster-logo-header-st-joes {
    height: 40px !important;
  }
}

@media (max-width: 425px) {
  nav#mcm-nav #mcmaster-search:before,
  nav#mcm-nav #mcmenu:before {
    content: \'\';
  }
}

/* Popular Links */

@media (max-width: 767.98px) {
  #mac-nav-menu.show {
    background-color: #7A003C;
    opacity: 1;
    margin: 0 -1rem;
  }
}

/* ===MAC SEARCH ICON=== */
#mcmaster-search {
  padding-top: 52px;
}

#mcmaster-search span,
#mcmaster-search span::after,
#mcmaster-search span::before {
  -webkit-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}

#mcmaster-search span {
  display: block;
  position: absolute;
  height: 24px;
  width: 24px;
  border: 3px solid #5e6a71;
  border-radius: 50%;
  top: 12px;
  left: 30%;
}

#mcmaster-search span:before,
#mcmaster-search span:after {
  position: absolute;
  display: block;
  left: 20px;
  bottom: -7px;
  border-radius: 2px;
  width: 12px;
  height: 3px;
  background: #5e6a71;
  content: "";
  -webkit-transform: translateX(-6px) translateY(-3px) rotate(45deg);
  transform: translateX(-6px) translateY(-3px) rotate(45deg);
}

@media (max-width: 359px) {
  #mcmaster-logo-header-st-joes {
    height: 40px !important;
  }
}
