/* ABS V4.27 — Routes organized by development stage */

.route-library-intro{
  padding-bottom:58px;
}

.route-stage-toc-wrap{
  position:sticky;
  top:84px;
  z-index:50;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:rgba(244,241,233,.96);
  backdrop-filter:blur(12px);
}

.route-stage-toc{
  justify-content:center;
  min-height:62px;
  display:flex;
  align-items:center;
  gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
}

.route-stage-toc::-webkit-scrollbar{
  display:none;
}

.route-stage-toc-label{
  flex:0 0 auto;
  margin-right:14px;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--muted);
}

.route-stage-toc a{
  flex:0 0 auto;
  padding:9px 11px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:750;
  color:#5c6660;
  transition:.2s ease;
}

.route-stage-toc a:hover,
.route-stage-toc a.is-active{
  background:var(--forest);
  color:#fff;
}

.route-stage-section{
  padding:92px 0 100px;
  scroll-margin-top:166px;
}

.route-stage-section-alt{
  background:var(--sand);
}

.route-stage-heading{
  display:grid;
  grid-template-columns:minmax(0,.82fr) minmax(360px,1.18fr);
  gap:74px;
  align-items:end;
  margin-bottom:42px;
}

.route-stage-heading h2{
  margin:8px 0 0;
  font-size:clamp(3rem,5.5vw,5.5rem);
  line-height:.96;
}

.route-stage-copy{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
}

.route-stage-copy p{
  max-width:690px;
  margin:0;
  color:#505b55;
  font-size:1.04rem;
  line-height:1.65;
}

.route-stage-count{
  flex:0 0 auto;
  padding-bottom:3px;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--moss);
}

.route-stage-section .route-grid{
  margin-top:0;
}

/* Route Alerts remain a condition layered onto the route's normal stage.
   They do not create a fourth maturity section. */

@media (max-width:900px){
  .route-stage-heading{
    grid-template-columns:1fr;
    gap:20px;
    align-items:start;
  }

  .route-stage-copy{
    align-items:flex-start;
  }
}

@media (max-width:700px){
  .route-library-intro{
    padding-bottom:42px;
  }

  .route-stage-toc-wrap{
    top:72px;
  }

  .route-stage-toc{
    min-height:58px;
  }

  .route-stage-toc-label{
    margin-right:8px;
  }

  .route-stage-section{
    padding:64px 0 72px;
    scroll-margin-top:148px;
  }

  .route-stage-copy{
    display:block;
  }

  .route-stage-count{
    display:inline-block;
    margin-top:14px;
  }
}


.route-standard-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:24px;
}

.section-dark .route-standard-actions .btn-outline{
  color:#fff;
  border-color:rgba(255,255,255,.45);
}


@media (max-width:700px){
  .route-stage-toc{
    justify-content:flex-start;
  }
}

/* V4.51 — route origin filters */
.route-origin-filter-wrap{
  padding:0 0 34px;
}
.route-origin-filter{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.route-origin-filter-label{
  margin-right:8px;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.route-origin-filter button{
  min-height:40px;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#4f5a54;
  font:inherit;
  font-size:.78rem;
  font-weight:750;
  cursor:pointer;
}
.route-origin-filter button:hover,
.route-origin-filter button.is-active{
  border-color:var(--forest);
  background:var(--forest);
  color:#fff;
}
.route-library-principle{
  margin-top:30px;
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:#4f5b54;
  line-height:1.6;
}
.route-library-principle strong{color:var(--ink)}
@media(max-width:700px){
  .route-origin-filter-wrap{padding-bottom:26px}
  .route-origin-filter-label{width:100%;margin:0 0 2px}
}

/* V4.52 — Route library intro baseline alignment */
.route-library-intro .split{
  align-items:end;
}
.route-library-intro .split h2,
.route-library-intro .split .lead{
  margin-bottom:0;
}
@media (max-width:980px){
  .route-library-intro .split{
    align-items:start;
  }
}
