/* Override Cover Block Dimmer from blocking navigation */
.ucla-main-nav {
  z-index: 10;
}

.ucla-header--school__logo-link {
  inline-size: unset;
}

.ucla-header--school__custom-logo, .ucla-header--mobile-logo {
  max-height: 2.75rem;
}

.ucla-header--school__custom-logo.ucla-header--has-mobile-logo, .ucla-dept-footer__custom-logo.ucla-footer--has-mobile-logo {
  display: none;
}

.skip-nav__link {
  color: #ffffff;
  background-color: #00598c;
  position: absolute;
  left: 50%;
  transform: translateY(-100%);
  padding: 4px;
}

.skip-nav__link:focus {
  transform: translateY(0%);
  transition: transform 0.3s;
}

.ucla-header__site-name > a.ucla-header__site-name-img {
  line-height: 0;
  display: inline-block;
}

.ucla-header__site-name > a.ucla-header__site-name-img > img {
  width: 100%;
  max-width: 450px;
  height: auto;
}

/*
 * Mega Menu Styles
 */
 .ucla-main-nav__mega-menu ul.wp-block-list.is-style-unstyled {
  padding-left: 0;
 }

 .ucla-main-nav__mega-menu a {
  text-decoration: none;
 }

 .ucla-main-nav__mega-menu a:not([class]):visited {
  color: #00598C;
 }

/* 
 * Secondary Navigation active class.
 * WordPress Menu CSS Class field only adds CSS classes to
 * the <li> element. This is the fix for the active class
 * in Design System 2.0.
 */

 li.ucla-secondary-nav__link--active > a.ucla-secondary-nav__link {
  background-color: #00598c;
  color: #fff;
}

/* Search */
.search.search-results > .ucla-header,
.search.search-no-results > .ucla-header {
  margin-bottom: 32px;
}

.post-template:not(.home) > .ucla-header,
.page-template:not(.home, .page-template-page-landing) > .ucla-header,
.page-template-default:not(.home) > .ucla-header,
.archive > .ucla-header,
.blog:not(.home) > .ucla-header,
.single-post > .ucla-header {
  margin-bottom: 32px;
}

@media (min-width:768px) {
  .ucla-header--school__custom-logo {
    max-height: 3.563rem;
  }
  .ucla-header--school__custom-logo.ucla-header--has-mobile-logo, .ucla-dept-footer__custom-logo.ucla-footer--has-mobile-logo {
    display: block;
  }

  .ucla-header--mobile-logo, .ucla-footer--mobile-logo {
    display: none;
  }
}

@media (min-width: 1024px) {
  .post-template:not(.home) > .ucla-header,
  .page-template:not(.home, .page-template-page-landing) > .ucla-header,
  .page-template-default:not(.home) > .ucla-header,
  .archive > .ucla-header,
  .blog:not(.home) > .ucla-header,
  .single-post > .ucla-header {
    margin-bottom: 64px;
  }
}