/**
 * Section sub-navigation ("subnav")
 * ==============================================================================
 *
 * Structure + default palette for the section subnav bar rendered by
 * template-parts/common/nav-subnav.php, directly below the primary nav. It
 * lists the child menu items (subpages) of the current section, and is loaded
 * site-wide (see config/config-assets.php).
 *
 * Default palette is NFL mid-blue; the Efe Obada variant re-skins it green in
 * css/efeobada.css (scoped under .theme--efeobada).
 * ==============================================================================
 */

.subnav {
  display: flex;
  align-items: stretch;
  justify-content: flex-end; /* desktop: sits under the (right-aligned) nav */
  background-color: rgb(43, 104, 161);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.subnav__menu {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subnav__item {
  display: flex;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.subnav__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 30px;
  color: #ffffff;
  font-family: "All-Pro Sans Bold", sans-serif;
  font-size: 13px;
  line-height: 19px;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 200ms ease;
}

.subnav__link:hover {
  background-color: rgba(0, 0, 0, 0.12);
}

/* Current page within the section — darker fill + white "strike" under the
   label. The section landing (root) page matches nothing, so it stays plain. */
.subnav__item.is-current .subnav__link {
  background-color: rgba(0, 0, 0, 0.18);
}

.subnav__item.is-current .subnav__label {
  position: relative;
}

.subnav__item.is-current .subnav__label:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 42px;
  height: 4px;
  transform: translateX(-50%);
  background-color: #ffffff;
  clip-path: polygon(0 0, 96.1% 0, 100% 100%, 2.4% 100%);
}

/* Tablet — centre the items. */
@media (max-width: 959px) {
  .subnav {
    justify-content: center;
  }
}

/* Below 720px the primary nav collapses into the off-canvas menu, so hide
   the bar. */
@media (max-width: 719px) {
  .subnav {
    display: none;
  }
}
