/* ──────────────────────────────────────────────
   Gradient-Flow directory nav (Option B)
   Thread-matched blue palette for solutions.html
   ────────────────────────────────────────────── */

/* Reset base styles from pages.css */
.page-intro__grid--threads .intro-directory {
  border-top: none;
  margin-bottom: 0;
  align-self: center;
}

.page-intro__grid--threads .intro-directory a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 16px 17px 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--editorial-ink, #0f2a40) 6%, transparent);
  border-left: 2.5px solid transparent;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
  background: transparent;
  transition: padding .4s var(--ease-glide, cubic-bezier(.16,1,.3,1)),
              color .3s ease;
}

.page-intro__grid--threads .intro-directory a:first-child {
  border-top: 1px solid color-mix(in srgb, var(--editorial-ink, #0f2a40) 6%, transparent);
}

/* Gradient accent bar on the left */
.page-intro__grid--threads .intro-directory a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #4da3e8, #2a6aa6);
  opacity: .18;
  transition: opacity .4s ease, width .4s ease, top .4s ease, bottom .4s ease;
}

/* Blue wash flowing in from the left */
.page-intro__grid--threads .intro-directory a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(59, 141, 212, .07), transparent 65%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  border-radius: 0 6px 6px 0;
}

/* Hover state */
.page-intro__grid--threads .intro-directory a:is(:hover, :focus-visible) {
  padding-left: 30px;
  color: #1a5a8e;
}
html[data-site-theme="dark"] .page-intro__grid--threads .intro-directory a:is(:hover, :focus-visible) {
  color: #ffffff;
}

.page-intro__grid--threads .intro-directory a:is(:hover, :focus-visible)::before {
  opacity: 1;
  width: 3.5px;
  top: 4px;
  bottom: 4px;
}

.page-intro__grid--threads .intro-directory a:is(:hover, :focus-visible)::after {
  opacity: 1;
}

/* Arrow icon */
.page-intro__grid--threads .intro-directory a > span[aria-hidden] {
  font-size: 18px;
  color: #3b8dd4;
  opacity: .35;
  transition: opacity .3s ease, translate .3s ease;
}

.page-intro__grid--threads .intro-directory a:is(:hover, :focus-visible) > span[aria-hidden] {
  opacity: .9;
  translate: 2px 2px;
}

/* Dark theme adjustments */
html[data-site-theme="dark"] .page-intro__grid--threads .intro-directory a::before {
  background: linear-gradient(180deg, #f3f3f1, #8e8e94);
}

html[data-site-theme="dark"] .page-intro__grid--threads .intro-directory a::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 65%);
}

html[data-site-theme="dark"] .page-intro__grid--threads .intro-directory a > span[aria-hidden] {
  color: #d6d6da;
}

/* ──────────────────────────────────────────────
   Flowing particles bridge (commented out)
   ──────────────────────────────────────────────
@keyframes particle-flow {
  0%   { left: -2px; opacity: 0; }
  12%  { opacity: .9; }
  85%  { opacity: .6; }
  100% { left: calc(100% + 4px); opacity: 0; }
}

.threads-bridge {
  position: relative;
  width: 28px;
  align-self: center;
  height: 220px;
  flex-shrink: 0;
  pointer-events: none;
  z-index: 2;
}

.threads-bridge span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3b8dd4;
  box-shadow: 0 0 6px 1px rgba(59,141,212,.4);
  opacity: 0;
  animation: particle-flow linear infinite;
}

.threads-bridge span:nth-child(1)  { top: 8%;  animation-duration: 2.4s; animation-delay: 0s; }
.threads-bridge span:nth-child(2)  { top: 12%; animation-duration: 3.1s; animation-delay: 1.2s; width: 3px; height: 3px; }
.threads-bridge span:nth-child(3)  { top: 5%;  animation-duration: 2.8s; animation-delay: 2.5s; width: 3px; height: 3px; opacity: 0; }

.threads-bridge span:nth-child(4)  { top: 32%; animation-duration: 2.6s; animation-delay: .6s; }
.threads-bridge span:nth-child(5)  { top: 36%; animation-duration: 3.3s; animation-delay: 1.8s; width: 3px; height: 3px; }
.threads-bridge span:nth-child(6)  { top: 29%; animation-duration: 2.2s; animation-delay: 3.2s; width: 3px; height: 3px; }

.threads-bridge span:nth-child(7)  { top: 58%; animation-duration: 2.9s; animation-delay: .3s; }
.threads-bridge span:nth-child(8)  { top: 63%; animation-duration: 2.5s; animation-delay: 2.0s; width: 3px; height: 3px; }
.threads-bridge span:nth-child(9)  { top: 55%; animation-duration: 3.4s; animation-delay: 1.4s; width: 3px; height: 3px; }

.threads-bridge span:nth-child(10) { top: 82%; animation-duration: 2.7s; animation-delay: .9s; }
.threads-bridge span:nth-child(11) { top: 87%; animation-duration: 3.0s; animation-delay: 2.6s; width: 3px; height: 3px; }
.threads-bridge span:nth-child(12) { top: 79%; animation-duration: 2.3s; animation-delay: 1.7s; width: 3px; height: 3px; }
*/

/* Mobile: directory cards styling */
@media (max-width: 760px) {
  .threads-bridge { display: none; }
  .page-intro__grid--threads .intro-directory a {
    padding: 14px 12px 14px 18px;
  }
  .page-intro__grid--threads .intro-directory a:is(:hover, :focus-visible) {
    padding-left: 24px;
  }
}
