/* =========================================================
   HU CAREERS - GLOBAL HEADER OVERRIDES (768px to 991px)

   The header and its stylesheet are loaded from the WordPress
   theme. Between 768px and 991px its top links slide under the
   logo, so this file gives the logo its own space and makes the
   desktop menu more compact. Other widths are not changed, and
   only HU Careers pages are affected.

   The remote stylesheet loads after this file, so every rule
   starts with "html" to take priority over it.

   .menu-item-272113 is the "Commencement" item in the
   WordPress menu. Recheck this width if the top menu changes.
   ========================================================= */

@media (min-width: 768px) and (max-width: 991px) {
  /* Logo, top menu and search share one row without overlapping */
  html #hu-global-header-root .oct_23_inner_header {
    align-items: stretch;
    padding: 0 14px;
  }

  html #hu-global-header-root .oct_23_logo {
    display: flex;
    flex: 0 0 146px;
    align-items: center;
    width: 146px;
    padding: 0;
  }

  html #hu-global-header-root .oct_23_logo a {
    display: flex;
    align-items: center;
  }

  html #hu-global-header-root img.oct_23_logo_img {
    position: static;
    width: 136px;
  }

  html #hu-global-header-root .oct_23_top_menu {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  html #hu-global-header-root .oct_23_search {
    flex: 0 0 34px;
    width: 34px;
  }

  /* Top utility menu */
  html #hu-global-header-root .oct_23_menu-header ul#menu-top-mega-menu,
  html #hu-global-header-root .oct_23_menu-header > ul {
    gap: 6px;
    padding: 16px 0;
  }

  html #hu-global-header-root .oct_23_top_menu ul li a,
  html #hu-global-header-root .oct_23_top_menu .dropbtn {
    font-size: 10.5px;
  }

  html #hu-global-header-root .oct_23_top_menu ul li.top-apply-now-btn > a,
  html #hu-global-header-root .oct_23_top_menu ul li:first-child > a,
  html #hu-global-header-root .oct_23_top_menu li.menu-item-272113 {
    padding: 3px !important;
  }

  /* Main navigation stays grouped on the right, as on desktop,
     ending in line with the divider above it */
  html #hu-global-header-root .oct_23_vav_wrap {
    padding: 0 8px 0 14px;
  }

  html #hu-global-header-root .mega-menu-main > li > a {
    padding: 5px 6px !important;
    font-size: 12.5px;
  }
}
