/* Resource illustrations share these styles with the Staff preview. */
.pathway-diagram {
  container-type: inline-size;
  box-sizing: border-box;
  margin: 2.25rem 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #293b56;
  overflow-wrap: anywhere;
}
.pathway-diagram *, .pathway-diagram *::before, .pathway-diagram *::after { box-sizing: border-box; }
.pathway-diagram .pathway-diagram__title {
  margin: 0 0 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #293b56;
}
.pathway-diagram .pathway-diagram__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pathway-diagram .pathway-diagram__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0 0 1.75rem;
}
.pathway-diagram .pathway-diagram__step:last-child { padding-bottom: 0; }
.pathway-diagram__step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 54px;
  bottom: 10px;
  width: 2px;
  background: #9aaec8;
}
.pathway-diagram__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #9aaec8;
  border-bottom: 2px solid #9aaec8;
  transform: rotate(45deg);
}
.pathway-diagram .pathway-diagram__marker {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #bfcee1;
  border-radius: 12px;
  background: #e2eaf5;
  color: #415f87;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}
.pathway-diagram--family .pathway-diagram__marker { border-radius: 50%; }
.pathway-diagram__marker svg { width: 28px; height: 28px; }
.pathway-diagram .pathway-diagram__copy { padding-top: 2px; }
.pathway-diagram .pathway-diagram__label {
  display: block;
  color: #293b56;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}
.pathway-diagram .pathway-diagram__detail {
  display: block;
  margin-top: 0.45rem;
  color: #526279;
  font-size: 0.875rem;
  line-height: 1.55;
}
.pathway-diagram .pathway-diagram__condition {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #d9ccab;
  border-radius: 6px;
  background: #faf3e2;
  color: #70541c;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
}
.pathway-diagram .pathway-diagram__period {
  display: block;
  margin-bottom: 0.4rem;
  color: #415f87;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}
.pathway-diagram--timeline .pathway-diagram__marker {
  width: 14px;
  height: 14px;
  margin: 15px;
  border: 3px solid transparent;
  border-radius: 50%;
  outline: 1px solid #5c789f;
  background: #5c789f;
  background-clip: padding-box;
  font-size: 0;
}
.pathway-diagram .pathway-diagram__caption {
  margin: 1.3rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #d7dfea;
  color: #526279;
  font-size: 0.85rem;
  line-height: 1.6;
}
@container (min-width: 620px) {
  .pathway-diagram .pathway-diagram__steps { display: flex; gap: 18px; }
  .pathway-diagram .pathway-diagram__step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
  }
  .pathway-diagram__step:not(:last-child)::before {
    left: 56px;
    right: -5px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .pathway-diagram__step:not(:last-child)::after {
    left: auto;
    right: -5px;
    top: 18px;
    bottom: auto;
    transform: rotate(-45deg);
  }
}
@media print {
  .pathway-diagram { break-inside: avoid; }
}
