.innerpage-nav {
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 2px 5px var(--color-drop-shadow);
  background-color: var(--color-white);
  z-index: 500;
  position: relative;
}

.innerpage-nav.sticky {
  position: fixed;
  /* Bug fix (Phase 5a): 120px was one of three disagreeing, inaccurate
     hardcoded pixel offsets that caused the sticky-header "grey bar" bug
     (see Phase 3b Task 4's js/sticky-nav.js and css/base/reset.css
     changes). Previously coordinated via a temporary
     "#innerpage-nav.sticky" override in css/base/customizations.css,
     which this component's own CSS now replaces natively -- that
     override is removed in this same task. Consumes the same
     --sticky-header-height custom property js/sticky-nav.js already
     computes and sets on the root element on every scroll event; 120px
     is kept only as the pre-JS/no-JS fallback. */
  top: var(--sticky-header-height, 120px);
  width: 100%;
  max-width: 1920px;
}

@media only screen and (min-width: 769px) {
  .innerpage-nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .innerpage-nav-list li {
    padding: var(--space) var(--space-double);
    font-size: 0.875rem;
    line-height: 1;
  }

  .innerpage-nav-list li a {
    color: var(--color-lehigh-brown);
    font-weight: bold;
  }

  .innerpage-nav-list li a:hover {
    text-decoration: none;
  }

  .innerpage-nav-list li.active,
  .innerpage-nav-list li:hover {
    background-color: var(--color-golden-hour);
    position: relative;
  }

  .innerpage-nav-list li.active::before,
  .innerpage-nav-list li:hover::before {
    content: '';
    position: absolute;
    left: -2.8rem;
    top: 0;
    width: 0;
    height: 0;
    border-top: 46px solid transparent;
    border-right: 46px solid var(--color-golden-hour);
  }

  .innerpage-nav-list li.active::after,
  .innerpage-nav-list li:hover::after {
    content: '';
    position: absolute;
    right: -2.8rem;
    top: 0;
    width: 0;
    height: 0;
    border-top: 46px solid var(--color-golden-hour);
    border-right: 46px solid transparent;
  }

  .innerpage-nav #innerpage-nav-select {
    display: none;
  }

  .innerpage-nav #innerpage-nav-select + button {
    display: none;
  }
}

@media only screen and (max-width: 768px) {
  .innerpage-nav-list {
    display: none;
  }

  .innerpage-nav {
    display: flex;
    justify-content: center;
  }
}
