/* Compact pathway strip — above search, collapsed by default */
.pathway-strip {
  width: min(100%, 36rem);
  margin: 0 auto 0.35rem;
  padding: 0 0.25rem;
}
.pathway-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  opacity: 0.75;
  cursor: pointer;
  padding: 0.15rem 0;
}
.pathway-toggle:hover { opacity: 1; }
.pathway-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  max-height: 5.5rem;
  overflow: auto;
}
.pathway-card {
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 4%, transparent);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  max-width: 100%;
}
.pathway-card-title {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Full-screen pathway detail — never stacks on home search */
.pathway-overlay[hidden] { display: none !important; }
.pathway-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg, #0f1418) 92%, transparent);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: auto;
}
.pathway-overlay-inner {
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 1rem 1.1rem 2.5rem;
}
.pathway-overlay-bar {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.pathway-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 0.35rem;
}
.pathway-title {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.pathway-why {
  opacity: 0.85;
  margin: 0 0 0.75rem;
}
.pathway-step { margin: 1rem 0; }
.pathway-step h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}
.pathway-step ul { padding-left: 1.1rem; margin: 0.35rem 0 0; }
.pathway-step-res {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
@media (max-width: 760px) {
  .pathway-cards { max-height: 4.2rem; }
  .pathway-card-title { max-width: 11rem; }
}
