/* V6: normalize visible logo height and simplify each comparison to one loop. */
.jh-flow-card .jh-node,
.jh-flow-card .jh-result {
  display: none !important;
}

.jh-flow-card .jh-process {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  margin-top: 34px;
}

.jh-flow-card {
  min-height: 348px;
}

.jh-cycle-arrows {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.jh-direction-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 15px solid var(--jh-accent);
  filter: drop-shadow(0 3px 4px color-mix(in srgb, var(--jh-accent) 25%, transparent));
}

.jh-direction-arrow:nth-child(1) {
  left: 121px;
  top: 38px;
  transform: rotate(54deg);
}

.jh-direction-arrow:nth-child(2) {
  left: 86px;
  top: 143px;
  transform: rotate(176deg);
}

.jh-direction-arrow:nth-child(3) {
  left: 26px;
  top: 63px;
  transform: rotate(-63deg);
}

@media (prefers-reduced-motion: no-preference) {
  .jh-direction-arrow { animation: jh-arrow-breathe 3s ease-in-out infinite; }
  .jh-direction-arrow:nth-child(2) { animation-delay: 1s; }
  .jh-direction-arrow:nth-child(3) { animation-delay: 2s; }
  @keyframes jh-arrow-breathe {
    0%, 66%, 100% { opacity: .7; }
    15% { opacity: 1; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--jh-accent) 55%, transparent)); }
  }
}

.jh-partner-logo {
  display: grid;
  flex: none;
  place-items: center;
  width: auto;
  height: 66px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: 0;
  background: transparent !important;
  transition: transform .25s ease;
}

.jh-partner-logo:hover {
  background: transparent !important;
  transform: translateY(-3px);
}

.jh-partner-crop {
  height: 42px !important;
  mix-blend-mode: multiply;
}

.jh-partner-track {
  gap: 38px;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes jh-partner-scroll-v6 { to { transform: translateX(calc(-50% - 19px)); } }
  .jh-partner-track { animation-name: jh-partner-scroll-v6; animation-duration: 42s; }
}

@media (max-width: 767px) {
  .jh-partner-logo { height: 60px; padding-inline: 6px; }
  .jh-partner-crop { height: 38px !important; }
  .jh-partner-track { gap: 30px; }
}
