#main > nav.ed-quick {
  --rail-ink: #253545;
  --rail-teal: #375956;
  --rail-line: #546f6552;
  --rail-pad: clamp(12px, 1.35vw, 24px);
  box-sizing: border-box;
  padding: clamp(12px, 1.55vw, 22px) 0 clamp(11px, 1.2vw, 17px);
  color: var(--rail-ink);
  border: 0;
  opacity: 1;
  transform: none;
}

#main > nav.ed-quick > .ed-shell {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(10.5rem, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0 0 clamp(9px, 1.2vw, 16px);
  background: none;
  overflow: visible;
}

#main > nav.ed-quick > .ed-shell::before,
#main > nav.ed-quick > .ed-shell::after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  content: "";
  pointer-events: none;
}

#main > nav.ed-quick > .ed-shell::before {
  background: var(--rail-line);
}

#main > nav.ed-quick > .ed-shell::after {
  background: linear-gradient(90deg, #587a70, #7b998b 58%, #9b886f);
  transform: scaleX(1);
  transform-origin: left center;
  opacity: .7;
}

#main > nav.ed-quick > .ed-shell > a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 58px;
  height: 100%;
  margin: 0;
  padding: 0 var(--rail-pad);
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  background: none;
  color: var(--rail-ink);
  font-size: clamp(.91rem, 1.18vw, 1.07rem);
  font-weight: 680;
  line-height: 1.27;
  text-align: start;
  text-decoration: none;
  transform: none;
  opacity: 1;
  white-space: normal;
}

#main > nav.ed-quick > .ed-shell > a:first-child { padding-left: 0; }

#main > nav.ed-quick > .ed-shell > a:nth-child(n + 2):nth-child(-n + 4)::before {
  position: absolute;
  inset: 24% auto 24% 0;
  width: 1px;
  content: "";
  background: var(--rail-line);
}

#main > nav.ed-quick > .ed-shell > a > .zodar-category-rail-label { min-width: 0; }
#main > nav.ed-quick > .ed-shell > a[data-hero-related] > .zodar-category-rail-label {
  color: var(--rail-teal);
  text-decoration: underline;
  text-underline-offset: .35em;
  text-decoration-thickness: 1px;
}
#main > nav.ed-quick > .ed-shell > a > .zodar-category-rail-arrow {
  display: inline-grid;
  flex: 0 0 1.41rem;
  place-items: center;
  width: 1.41rem;
  height: 1.41rem;
  box-sizing: border-box;
  border: 1px solid #52716660;
  border-radius: 50%;
  color: var(--rail-teal);
  font-size: .8rem;
  font-weight: 640;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

#main > nav.ed-quick > .ed-shell > a:last-child {
  align-self: center;
  height: auto;
  min-height: 45px;
  margin-left: clamp(8px, 1vw, 16px);
  padding: 7px 13px 7px 16px;
  border: 1px solid #25354560;
  border-radius: 999px;
  color: var(--rail-ink);
  background: #25354509;
  font-weight: 730;
}

#main > nav.ed-quick > .ed-shell > a:last-child > .zodar-category-rail-arrow {
  border-color: #25354560;
  color: var(--rail-ink);
}

/* No added motion should take ownership of the neighboring reveal or the hero. */
#main > nav.ed-quick[data-zodar-rail-motion="true"] > .ed-shell::after {
  transition: transform 650ms cubic-bezier(.2,.76,.22,1), opacity 340ms ease;
}

#main > nav.ed-quick[data-zodar-rail-motion="true"] > .ed-shell > a {
  transition: transform 340ms cubic-bezier(.2,.76,.22,1), opacity 320ms ease;
  transition-delay: calc(var(--rail-order, 0) * 42ms);
}

#main > nav.ed-quick[data-zodar-rail-motion="true"][data-zodar-rail-visible="false"] > .ed-shell::after {
  transform: scaleX(.06);
  opacity: .25;
}

#main > nav.ed-quick[data-zodar-rail-motion="true"][data-zodar-rail-visible="false"] > .ed-shell > a {
  transform: translateY(-7px);
  opacity: .78;
  transition-delay: 0ms;
}

#main > nav.ed-quick[data-zodar-rail-motion="true"][data-zodar-rail-visible="true"] > .ed-shell::after {
  transform: scaleX(1);
}

#main > nav.ed-quick > .ed-shell > a:focus-visible {
  outline: 2px solid var(--rail-teal);
  outline-offset: 3px;
}
#main > nav.ed-quick > .ed-shell > a:is(:hover, :focus-visible) > .zodar-category-rail-arrow {
  background: var(--rail-teal);
  color: #fff;
  transform: translate(2px, -2px);
}
#main > nav.ed-quick > .ed-shell > a:last-child:is(:hover, :focus-visible) > .zodar-category-rail-arrow {
  background: #25354519;
  color: var(--rail-ink);
}

@media (max-width: 890px) {
  #main > nav.ed-quick > .ed-shell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main > nav.ed-quick > .ed-shell > a { min-height: 53px; padding: 0 12px; }
  #main > nav.ed-quick > .ed-shell > a:is(:nth-child(1), :nth-child(3)) { padding-left: 0; }
  #main > nav.ed-quick > .ed-shell > a:nth-child(3)::before { content: none; }
  #main > nav.ed-quick > .ed-shell > a:last-child {
    grid-column: 1 / -1;
    margin: 7px 0 0;
    padding-left: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #main > nav.ed-quick > .ed-shell::after,
  #main > nav.ed-quick > .ed-shell > a,
  #main > nav.ed-quick > .ed-shell > a > .zodar-category-rail-arrow {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
