/* Services — continuous collection spine refinement */

.service-library-hero {
  z-index: 0;
}

.service-library-chapters {
  z-index: 4;
}

.service-collection-rail {
  height: 6rem;
  margin-top: -3rem;
}

.service-library-hero__index {
  width: 100%;
  height: 6rem;
  margin-inline: 0;
  border: 1px solid rgba(184, 150, 90, 0.62);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #0c1a2a;
  box-shadow: 0 1.25rem 2.75rem rgba(0, 0, 0, 0.2);
}

.service-library-hero__index a {
  color: rgba(250, 246, 238, 0.82);
  border-right-color: rgba(184, 150, 90, 0.38);
}

.service-library-hero__index a span {
  color: var(--services-gold-strong);
}

.service-library-hero__index a:hover,
.service-library-hero__index a:focus-visible,
.service-library-hero__index a.is-active {
  color: var(--services-cream);
  background: rgba(184, 150, 90, 0.12);
  box-shadow: inset 0 -0.2rem 0 var(--services-gold-strong);
}

.service-library-hero__index a:hover span,
.service-library-hero__index a:focus-visible span,
.service-library-hero__index a.is-active span {
  color: var(--services-gold-strong);
}

.service-collection-rail.is-docked .service-library-hero__index {
  width: 100%;
  height: 3.75rem;
  border-radius: 0;
  background: rgba(8, 19, 33, 0.985);
  box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.24);
}

@media (max-width: 900px) {
  .service-collection-rail {
    height: 5.25rem;
    margin-top: -2.6rem;
  }

  .service-library-hero__index,
  .service-collection-rail.is-docked .service-library-hero__index {
    width: 100%;
    height: 5.25rem;
    border-radius: 0;
  }

  .service-collection-rail.is-docked .service-library-hero__index {
    height: 3.75rem;
  }
}

@media (max-width: 620px) {
  .service-collection-rail {
    height: 4.85rem;
    margin-top: -2.2rem;
  }

  .service-library-hero__index,
  .service-collection-rail.is-docked .service-library-hero__index {
    width: 100%;
    height: 4.85rem;
    border-radius: 0;
  }

  .service-collection-rail.is-docked .service-library-hero__index {
    height: 3.3rem;
  }
}
