/* The map and its guides share the illustrated homepage palette. */
.roadmap {
  padding:clamp(16px,3vw,36px); border:1px solid #3e4940; border-radius:18px;
  background:radial-gradient(#91ae8124 .8px,transparent 1px) 0 0 / 12px 12px,#141816;
}
.roadmap-intro {text-align:left;margin:0 0 22px}
.roadmap-intro h3 {font-size:clamp(2rem,4vw,3.5rem);line-height:1;letter-spacing:-.065em}
.roadmap .map-base {max-width:none;justify-content:flex-start;gap:16px}
.map-base>.map-course {flex:1;max-width:none;background:#242e23;border-color:#596d4a;border-radius:10px}
.map-fork {display:none!important}
.map-cert {justify-content:flex-start;margin:14px 0 24px}
.map-choices {justify-content:flex-start;gap:6px}
.map-choices button {border-radius:7px;background:#202622;padding:8px 12px;font-size:.875rem}
.map-choices button[aria-pressed=true] {color:#172012;background:var(--lime);font-weight:700}
.map-lanes,.roadmap.is-focused .map-lanes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:none;margin:16px 0 0}
.map-lane {min-width:0;border:1px solid #465049;border-radius:12px;overflow:hidden;padding:0;background:#191e1a}
.map-lane h4 {color:#191b19;background:var(--lane-color);padding:16px;margin:0;font-size:clamp(1.15rem,2vw,1.6rem);letter-spacing:-.04em}
.map-step {color:inherit;border:1px solid currentColor;border-radius:7px;font:700 1rem monospace}
.map-lane>p,.roadmap.is-focused .map-lane>p {min-height:0;margin:0;padding:12px 16px 0;font-size:.85rem}
.map-nodes {padding:8px 16px 12px;gap:0}
.map-nodes .map-course {border:0;border-top:1px solid #3b453e;padding:12px 3px;border-radius:0;background:transparent;gap:4px}
.map-nodes .map-course:first-child {border-top:0}
.map-course:focus-visible,.map-choices button:focus-visible {outline-offset:-3px}
.map-nodes .map-course:hover {transform:translateX(3px);color:var(--lane-color)}
.roadmap.is-focused .map-lanes {grid-template-columns:1fr}
.roadmap.is-focused .map-nodes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.roadmap.is-focused .map-course {border-color:#3b453e}
.route-brand {display:inline-flex;align-items:center;gap:10px}
.route-brand img {width:38px;height:38px}
.route-steps details {border-radius:12px;overflow:hidden}
.route-steps details[open] .route-num {background:var(--lime);color:#172012;border-radius:7px}
.route-start {border-radius:6px}
@keyframes route-arrive {from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference) {
  .map-lane,.route-steps details[open] .route-body {animation:route-arrive .25s ease-out both}
  .roadmap:not(.is-focused) .map-lane:nth-child(2){animation-delay:40ms}
  .roadmap:not(.is-focused) .map-lane:nth-child(3){animation-delay:80ms}
  .roadmap:not(.is-focused) .map-lane:nth-child(4){animation-delay:120ms}
  .roadmap.is-focused .map-nodes .map-course {animation:route-arrive .26s ease-out backwards}
  .roadmap.is-focused .map-nodes .map-course:nth-child(2){animation-delay:45ms}
  .roadmap.is-focused .map-nodes .map-course:nth-child(3){animation-delay:90ms}
  .roadmap.is-focused .map-nodes .map-course:nth-child(4){animation-delay:135ms}
}
@media(max-width:700px) {
  .map-lanes,.roadmap.is-focused .map-nodes {grid-template-columns:1fr}
  .roadmap .map-base {align-items:stretch;gap:8px}
}
@media(prefers-reduced-motion:reduce) {
  .roadmap,.map-lane,.map-course,.route-body {animation:none!important;transition:none!important}
  .map-nodes .map-course:hover {transform:none}
}

/* Dots travel in the gutters without crossing course labels. */
.roadmap .map-base {gap:24px}
.roadmap .map-base::before {display:block;z-index:0;left:10%;right:10%}
.roadmap .map-base>.map-course {z-index:1}
.roadmap .map-base>.map-course:first-child::after {display:block;left:calc(100% + 1px);animation:studio-base-flow 2.6s linear infinite}
.map-nodes::before {display:block;left:10px;top:20px;bottom:24px;z-index:0}
.map-nodes .map-course {padding-left:16px}
.map-nodes>.map-course:not(:last-child)::after {display:block;left:-9px;top:12px;animation:studio-node-flow 2.6s linear infinite}
@keyframes studio-node-flow {0%{opacity:0;transform:translateY(0)}15%,80%{opacity:1}100%{opacity:0;transform:translateY(52px)}}
@keyframes studio-base-flow {0%{opacity:0;transform:translateX(0)}15%,80%{opacity:1}100%{opacity:0;transform:translateX(24px)}}
.roadmap.is-focused .map-nodes {display:flex;flex-direction:column}
@media(max-width:620px){
 .roadmap .map-base {gap:18px}
 .roadmap .map-base::before {left:50%;right:auto}
 .roadmap .map-base>.map-course:first-child::after {left:calc(50% - 3px);top:calc(100% + 1px);animation-name:base-dot-flow-mobile}
}
@media(prefers-reduced-motion:reduce){
 .roadmap .map-base>.map-course::after,.map-nodes>.map-course::after {display:none!important}
}
