/* The anatomy plate links each selected team to the team it needs. */
.atlas .actor.atlas-partner {
  border-color: #307768;
  box-shadow: 0 0 0 3px #37908d2c;
  background: #eef8f8;
  color: #245d52;
}
.atlas .route-line { stroke: #5c3584; stroke-width: 3.5; opacity: .9 }
.atlas .route-line.back { stroke: #efe8f8; stroke-width: 7; opacity: .65; stroke-dasharray: none }
.atlas .route-line:first-of-type { paint-order: stroke }
.atlas .atlas-note { min-height: 61px }
@media (min-width: 761px) {
  .atlas .route-art { z-index: 2 }
}

/* The illustration stays at its natural aspect so every stop remains visible. */
.care-network-band { background: #f0e7f4; border-block: 1px solid #dccfe4 }
.care-network .heading { align-items: end }
.care-network .heading p:last-child { max-width: 32ch }
.care-scene {
  overflow: hidden;
  border: 1px solid #cdbbd5;
  border-radius: clamp(20px, 3.3vw, 43px);
  background: #f7f4fa;
}
.care-map { position: relative; background: #ddd3e9 }
.care-map img { display: block; width: 100%; height: auto }
.care-map svg { position: absolute; inset: 0; width: 100%; height: 100% }
.map-route { color: #30243b; transition: opacity .3s }
.map-route.map-heart { color: #1a5a50; --route-delay: .34s }
.map-route.map-brain { color: #58327e; --route-delay: .57s }
.map-route.map-liver { color: #4c2181; --route-delay: .8s }
.map-route use { fill: none; stroke-linecap: round; stroke-linejoin: round }
.map-route-paper { stroke: #eddeff; stroke-width: 8 }
.map-route-ink { stroke: currentColor; stroke-width: 3.8 }
.map-route circle { fill: currentColor; stroke: #eddeff; stroke-width: 2.8 }
.map-route text {
  fill: currentColor;
  stroke: #eddeff;
  stroke-width: 5;
  stroke-linejoin: round;
  paint-order: stroke;
  font: 790 17px/1 var(--sans);
  text-anchor: middle;
}
.care-scene:not([data-care-system=all]) .map-route:not(.map-entry) { opacity: .13 }
.care-scene[data-care-system=heart] .map-route.map-heart,
.care-scene[data-care-system=brain] .map-route.map-brain,
.care-scene[data-care-system=liver] .map-route.map-liver { opacity: 1 }
.care-scene.is-tracing .map-route use {
  animation: care-trace 1.05s cubic-bezier(.2,.65,.35,1) var(--route-delay, 0s) both;
}
.care-scene.is-tracing .map-route :is(circle, text) {
  animation: care-arrive .35s ease calc(var(--route-delay, 0s) + .55s) both;
}
@keyframes care-trace { from { stroke-dasharray: 1; stroke-dashoffset: 1 } to { stroke-dasharray: 1; stroke-dashoffset: 0 } }
@keyframes care-arrive { from { opacity: 0 } to { opacity: 1 } }

.care-map-key,
.care-map-notes { margin-inline: clamp(12px, 2.8vw, 32px) }
.care-map-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 15px 10px;
}
.care-map-controls { display: flex; flex-wrap: wrap; gap: 7px }
.care-map-controls .pill { min-height: 44px; background: #faf6ff }
.care-map-controls .pill:hover { background: #eee3f2 }
.care-map-controls [data-care-choice="heart"] { color: #1a5a50 }
.care-map-controls [data-care-choice="brain"] { color: #58327e }
.care-map-controls [data-care-choice="liver"] { color: #4c2181 }
.care-map-controls .pill[aria-pressed=true] { background: #3b2851; border-color: #3b2851; color: white }
.care-map-notes { min-height: 74px; padding-block: 8px 22px; color: #463953 }
.care-map-notes p { max-width: 83ch; line-height: 1.55 }
.care-network-next { display: flex; justify-content: flex-end; margin-top: 14px }
@media (max-width: 760px) {
  .care-map .map-route text { font-size: 23px; stroke-width: 7 }
  .care-map .map-route-paper { stroke-width: 10 }
  .care-map .map-route-ink { stroke-width: 5 }
  .care-map-notes { min-height: 120px }
}
@media (prefers-reduced-motion: reduce) {
  .care-scene.is-tracing .map-route * { animation: none }
  .map-route { transition: none }
}

.map-route .map-route-gap-paper { stroke: #eddeff; stroke-width: 8; stroke-dasharray: 5 7 }
.map-route .map-route-gap { stroke: currentColor; stroke-width: 3.8; stroke-dasharray: 5 7 }
.map-route .map-stop-unknown { fill: #eddeff; stroke: currentColor; stroke-width: 3 }
.care-scene.is-tracing .map-route :is(.map-route-gap-paper, .map-route-gap) {
  animation: care-arrive .38s ease both;
  animation-delay: 1.36s;
}
.care-network-next { flex-wrap: wrap; gap: 8px }
