/* Intro route map: "Your path to relief" */
@media (min-width:900px){
  .hero-v2 .hero-more{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:clamp(32px,5vw,80px);align-items:center;max-width:none;margin:0}
}
.routemap{width:100%;max-width:520px;justify-self:end;margin:0}
.routemap .routemap-title{margin:0 0 14px}
.routemap svg{display:block;width:100%;height:auto;overflow:visible}
.routemap .nm{font-family:var(--display);font-size:22px;fill:var(--ink)}
.routemap .zn{font-family:var(--body);font-size:15px;font-weight:500;fill:#4E5B67}
.routemap .ln{stroke-linecap:round;stroke-linejoin:round}
.routemap .seg-main{stroke:var(--signal);stroke-width:4}
.routemap .seg-spur{stroke:var(--signal);stroke-width:2;stroke-dasharray:4 4}
.routemap .seg-neuro{stroke:var(--ink);stroke-width:3}
.routemap .rm-base{transition:opacity .2s ease;pointer-events:none}
.routemap .hl{fill:none;stroke:var(--signal);stroke-width:6;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .2s ease;pointer-events:none}
.routemap .stn{fill:#fff;stroke:var(--ink);stroke-width:3;transition:fill .2s ease}
.routemap .stn-start{fill:var(--signal)}
.routemap .stn-end{fill:var(--ink);stroke:none}
.routemap .stn-in{fill:#fff;pointer-events:none}
.routemap .rm-hit{fill:transparent;stroke:transparent;stroke-width:2}
.routemap a{cursor:pointer;outline:none}
.routemap a:hover .stn,.routemap a:focus-visible .stn{fill:var(--signal)}
.routemap a:hover .stn-start,.routemap a:focus-visible .stn-start{fill:var(--signal)}
.routemap a:hover .hl,.routemap a:focus-visible .hl{opacity:1}
.routemap a:hover .nm,.routemap a:focus-visible .nm{fill:var(--deep)}
.routemap a:focus-visible .rm-hit{stroke:var(--signal)}
.routemap svg:has(a:hover,a:focus-visible) .rm-base{opacity:.55}
.routemap figcaption{margin-top:16px;padding-top:12px;border-top:1px solid var(--rule)}
.routemap .rm-cap{font-family:var(--body);font-size:15px;line-height:1.45;color:var(--text);margin:0 0 8px}
.routemap .rm-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 22px;font-size:14px;font-weight:600;color:var(--muted)}
.routemap .rm-legend li{display:inline-flex;align-items:center;gap:8px}
.routemap .rm-key{width:22px;border-radius:2px;flex:none}
.routemap .rm-key-main{height:4px;background:var(--signal)}
.routemap .rm-key-neuro{height:3px;background:var(--ink)}
.stop:target{scroll-margin-top:120px;background:var(--mist);border-radius:6px}

/* Draw once on entry, then stations in order */
.js .routemap.rm-ready .ln{stroke-dasharray:1 1;stroke-dashoffset:1}
.js .routemap.rm-ready .seg-spur{stroke-dasharray:none;opacity:0}
.js .routemap.rm-ready .st{opacity:0}
.js .routemap.rm-ready.is-visible .ln{animation:rm-draw .4s cubic-bezier(.2,.7,.3,1) var(--d,0s) forwards}
.js .routemap.rm-ready.is-visible .seg-spur{animation:rm-fade .4s ease-out .7s forwards}
.js .routemap.rm-ready.is-visible .st{animation:rm-fade .35s ease-out calc(1.2s + var(--step) * .1s) forwards}
.js .routemap.rm-done .ln,.js .routemap.rm-done .st,.js .routemap.rm-done .seg-spur{animation:none;opacity:1;stroke-dashoffset:0}
.js .routemap.rm-done .seg-spur{stroke-dasharray:4 4}
@keyframes rm-draw{to{stroke-dashoffset:0}}
@keyframes rm-fade{to{opacity:1}}

@media (max-width:899px){
  .hero-v2 .hero-more{grid-template-columns:1fr;gap:0}
  .routemap{max-width:520px;justify-self:stretch;margin:20px auto 0}
  .routemap .routemap-title{margin-bottom:10px}
  .routemap figcaption{margin-top:10px;padding-top:8px}
}
@media (prefers-reduced-motion:reduce){
  .js .routemap .ln,.js .routemap .st,.js .routemap .seg-spur{animation:none!important;opacity:1!important;stroke-dashoffset:0!important}
  .routemap .hl,.routemap .stn,.routemap .rm-base{transition:none}
}
