/* Menu entry "Lenovo Black Deals": a white tile with the Lenovo + Black Deals logo.
   In WP Menus, add a custom link to the deals page and give it the CSS class "menu-lenovo-deals". */
#navbarNavDropdown .menu-lenovo-deals { align-self: stretch; display: flex; }
#navbarNavDropdown .menu-lenovo-deals > a.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 152px;
  padding: 0 24px !important;
  background: #fff url("lenovo-black-deals.svg") center / 92px auto no-repeat;
  color: transparent !important;
  font-size: 0 !important;
  transition: background-color .15s;
}
#navbarNavDropdown .menu-lenovo-deals > a.nav-link:hover { background-color: #f1f1f1; }
/* Mobile menu: the other items are centered 60px rows with a 1px separator.
   Center the white tile in a row of the same height. */
@media (max-width: 991.98px) {
  #navbarNavDropdown .menu-lenovo-deals {
    justify-content: center;
    padding: 8px 0;
  }
  #navbarNavDropdown .menu-lenovo-deals > a.nav-link {
    min-width: 152px;
    height: 44px;
    margin: 0;
    padding: 0 !important;
    background-size: 72px auto;
  }
}

/* The live header has ~55px spare at 1280px. With the extra tile, tighten nav spacing
   on laptop widths so "Swiss Cup Ranking" doesn't wrap. Only applies when the Lenovo item exists. */
@media (min-width: 992px) and (max-width: 1499.98px) {
  #navbarNavDropdown #main-menu:has(.menu-lenovo-deals) > li > .nav-link {
    padding-left: 1vw;
    padding-right: 1vw;
    white-space: nowrap;
  }
  #navbarNavDropdown .menu-lenovo-deals > a.nav-link {
    min-width: 112px;
    padding: 0 12px !important;
    background-size: 76px auto;
  }
}
#navbarNavDropdown .menu-lenovo-deals.current-menu-item > a.nav-link { background-color: #fff; }

/* Theme hover/active draw a blue bottom bar (#004b80 / #0090eb).
   On the Lenovo tile: no bar when it's the current page, Lenovo red only on hover/keyboard focus.
   Same specificity, so the hover rule must stay below the active one. */
#navbarNavDropdown .menu-lenovo-deals.active > a.nav-link,
#navbarNavDropdown .menu-lenovo-deals.current-menu-item > a.nav-link {
  border-bottom-color: transparent;
}
#navbarNavDropdown .menu-lenovo-deals > a.nav-link:hover,
#navbarNavDropdown .menu-lenovo-deals > a.nav-link:focus-visible {
  border-bottom: .25rem solid #c12a21;
}
