:root {
  --therapist-dna-ink: #031820;
  --therapist-dna-deep: #073846;
  --therapist-dna-blue: #155f7a;
  --therapist-dna-cyan: #58c4da;
  --therapist-dna-ice: #b9e8f0;
  --therapist-dna-white: #f7fdfd;
  --therapist-dna-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.therapist-network-section {
  --therapist-rail-height: 48rem;
  --therapist-rail-progress: 0;
  --therapist-rail-head-y: 0px;
  --therapist-rail-definition: 1;
  position: relative;
  overflow: clip;
}

.therapist-network-section::before {
  transform: none;
}

.therapist-network-shell,
.therapist-network-container,
.therapist-network-layout,
.therapist-network-copy,
.therapist-network-search-column {
  min-width: 0;
}

.therapist-network-layout {
  align-items: stretch;
}

.therapist-network-dna-column {
  display: flex;
  min-width: 0;
}

.therapist-network-copy {
  display: flex;
  flex-direction: column;
}

.therapist-network-copy > p {
  max-width: 34rem;
}

.therapist-network-section .therapist-search {
  transform: none;
}

.therapist-network-section .therapist-search::before,
.therapist-network-section .therapist-search::after,
.therapist-network-section .therapist-signal {
  display: none;
}

.therapist-network-section .therapist-helix-stage::before,
.therapist-network-section .therapist-helix-aura {
  display: none;
}

/* Long-form DNA rail: the artwork occupies the negative space beside the list. */
.therapist-helix-stage {
  position: relative;
  width: min(100%, 23rem);
  height: var(--therapist-rail-height);
  min-height: 42rem;
  margin: clamp(2rem, 4vw, 3.25rem) auto 0;
  isolation: isolate;
  pointer-events: none;
}

.therapist-helix-stage::before {
  content: '';
  position: absolute;
  inset: 0 12%;
  z-index: -2;
  background:
    linear-gradient(180deg, transparent, rgba(88, 196, 218, 0.04) 12%, rgba(7, 56, 70, 0.035) 88%, transparent),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34) 48%, rgba(255, 255, 255, 0.16) 52%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}

.therapist-helix-stage::after {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  z-index: -1;
  width: 84%;
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(88, 196, 218, 0.11), rgba(185, 232, 240, 0.035) 44%, transparent 72%);
  opacity: var(--therapist-rail-definition);
  filter: blur(5px);
  transform: translate3d(0, calc(var(--therapist-rail-head-y) - 7rem), 0);
}

.therapist-network-section.is-helix-active .therapist-helix-stage::after {
  will-change: transform, opacity;
}

.therapist-helix-aura {
  position: absolute;
  inset: 8% 0;
  z-index: -1;
  width: 100%;
  height: auto;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(88, 196, 218, 0.045), rgba(21, 95, 122, 0.018) 46%, transparent 72%);
  opacity: calc(0.3 + var(--therapist-rail-progress) * 0.35);
}

.therapist-helix-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.therapist-helix-trace,
.therapist-helix-orbit,
.therapist-helix-rail,
.therapist-helix-rung {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.therapist-helix-trace {
  stroke: rgba(7, 56, 70, 0.065);
  stroke-width: 1;
  stroke-linecap: round;
}

.therapist-helix-orbit {
  stroke: rgba(21, 95, 122, 0.12);
  stroke-width: 0.75;
  stroke-dasharray: 2 8;
}

.therapist-helix-rail,
.therapist-helix-rung {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.therapist-helix-rail.is-light {
  stroke: url(#therapistHelixLight);
}

.therapist-helix-rail.is-deep {
  stroke: url(#therapistHelixDeep);
}

.therapist-helix-rail.is-front {
  stroke-width: 2.15;
}

.therapist-helix-rail.is-back {
  stroke-width: 1.15;
}

.therapist-helix-rung {
  stroke: url(#therapistHelixConnection);
  stroke-width: 1.05;
}

.therapist-helix-node,
.therapist-helix-particle,
.therapist-helix-fragment,
.therapist-helix-head-element {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.therapist-helix-node {
  fill: var(--therapist-dna-white);
  stroke: rgba(88, 196, 218, 0.56);
  stroke-width: 0.75;
  filter: url(#therapistHelixGlow);
}

.therapist-helix-particle {
  fill: var(--therapist-dna-ice);
}

.therapist-helix-fragment {
  fill: none;
  stroke: rgba(88, 196, 218, 0.46);
  stroke-width: 0.85;
  stroke-linecap: round;
}

.therapist-helix-head-line {
  stroke: rgba(88, 196, 218, 0.38);
  stroke-width: 0.8;
  stroke-dasharray: 2 5;
}

.therapist-helix-head-ring {
  fill: rgba(247, 253, 253, 0.66);
  stroke: rgba(88, 196, 218, 0.72);
  stroke-width: 1;
  filter: url(#therapistHelixGlow);
}

.therapist-helix-head-core {
  fill: var(--therapist-dna-white);
}

/* Preserve the original vertical therapist directory. */
.therapist-network-section .therapist-results-panel {
  display: block;
}

.therapist-network-section .therapist-results-panel[hidden] {
  display: none;
}

.therapist-network-section .therapist-results-list {
  display: grid;
  width: 100%;
  height: auto;
  gap: 0;
  padding: 0;
  transform: none !important;
}

.therapist-network-section .therapist-result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, auto);
  width: 100%;
  min-width: 0;
  height: auto;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(10, 61, 77, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.therapist-network-section .therapist-result-item:first-child {
  border-top: 0;
}

.therapist-network-section .therapist-result-item:hover {
  background: linear-gradient(90deg, transparent, rgba(88, 196, 218, 0.035), transparent);
}

.therapist-network-section .therapist-result-contact {
  align-content: center;
  justify-items: end;
  text-align: right;
}

@media (min-width: 1024px) {
  .therapist-helix-stage {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    margin-top: 0;
  }
}

@media (max-width: 1023px) {
  .therapist-network-section {
    --therapist-rail-height: 34rem;
  }

  .therapist-network-layout {
    align-items: start;
  }

  .therapist-network-copy {
    order: 1;
  }

  .therapist-network-search-column {
    order: 2;
  }

  .therapist-network-dna-column {
    order: 3;
    width: 100%;
  }

  .therapist-helix-stage {
    width: min(76vw, 21rem);
    height: var(--therapist-rail-height, 34rem);
    min-height: 30rem;
    max-height: 38rem;
    margin-top: 2.5rem;
  }

  .therapist-helix-aura {
    position: absolute;
    inset: 12% 0;
  }
}

@media (max-width: 767px) {
  .therapist-network-section {
    --therapist-rail-height: 25rem;
    --therapist-rail-definition: 0.78;
  }

  .therapist-helix-stage {
    width: min(82vw, 17rem);
    min-height: 23rem;
    max-height: 27rem;
    margin-top: 2rem;
  }

  .therapist-helix-stage::before {
    inset-inline: 5%;
  }

  .therapist-helix-stage::after {
    height: 8rem;
    filter: blur(4px);
  }

  .therapist-helix-orbit,
  .therapist-helix-fragment:nth-child(n + 6),
  .therapist-helix-particle:nth-child(n + 11) {
    display: none;
  }

  .therapist-helix-rail.is-front {
    stroke-width: 1.8;
  }

  .therapist-network-section .therapist-result-item {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .therapist-network-section .therapist-result-contact {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .therapist-network-section {
    --therapist-rail-height: 22.5rem;
  }

  .therapist-helix-stage {
    width: min(86vw, 15.5rem);
    min-height: 21rem;
    max-height: 24rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .therapist-network-section .therapist-helix-svg,
  .therapist-network-section .therapist-helix-aura,
  .therapist-network-section .therapist-helix-stage::after,
  .therapist-network-section .therapist-result-item {
    animation: none !important;
    transition: none !important;
  }

  .therapist-network-section .therapist-helix-aura,
  .therapist-network-section .therapist-helix-stage::after {
    display: none;
  }
}
