/* Immigration pathway hierarchy: route index -> selected route -> full guidance. */
.identity-route-context {
  max-width: 760px;
  margin-top: 18px;
  color: #536b80;
  font-size: 15px;
  line-height: 1.78;
}

.identity-route-context p {
  margin: 0;
}

.identity-route-context p + p {
  margin-top: 10px;
}

.identity-route-directory.is-explorer-ready {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.42fr);
  overflow: hidden;
  border: 1px solid #cedae3;
  background: #fff;
  box-shadow: 0 18px 44px rgba(6, 38, 77, 0.07);
}

.identity-route-tree {
  padding: 18px;
  border-right: 1px solid #d5e0e8;
  background: #eef4f8;
}

.identity-route-root-button,
.identity-route-tree-button {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.identity-route-root-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 15px 16px;
  background: #0a3b6c;
  color: #fff;
}

.identity-route-root-button:hover,
.identity-route-root-button:focus-visible {
  background: #0d4f8e;
}

.identity-route-root-button:focus-visible,
.identity-route-tree-button:focus-visible {
  outline: 2px solid #07559c;
  outline-offset: 2px;
}

.identity-route-root-chevron {
  width: 18px;
  color: #cfe3f5;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  transition: transform .2s ease;
}

.identity-route-root-button[aria-expanded="false"] .identity-route-root-chevron {
  transform: rotate(-90deg);
}

.identity-route-root-copy {
  min-width: 0;
}

.identity-route-root-copy strong,
.identity-route-root-copy small {
  display: block;
  color: inherit;
}

.identity-route-root-copy strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.identity-route-root-copy small {
  margin: 4px 0 0;
  color: #cfe3f5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.identity-route-tree-children {
  display: grid;
  gap: 7px;
  padding: 10px 0 0 20px;
}

.identity-route-tree-children[hidden],
.identity-route-preview article[hidden] {
  display: none !important;
}

.identity-route-tree-button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 11px 12px;
  background: transparent;
  color: #49637a;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.identity-route-tree-button:hover,
.identity-route-tree-button:focus-visible {
  background: #dfeaf2;
  color: #073b70;
}

.identity-route-tree-button.is-selected {
  background: #0d5aa7;
  color: #fff;
  box-shadow: 0 8px 20px rgba(6, 56, 108, 0.18);
}

.identity-route-index {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: #dce8f0;
  color: #48677f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.identity-route-tree-button.is-selected .identity-route-index {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.identity-route-tree-copy {
  min-width: 0;
}

.identity-route-tree-copy small,
.identity-route-tree-copy strong {
  display: block;
}

.identity-route-tree-copy small {
  margin: 0 0 4px;
  color: #7890a3;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.identity-route-tree-copy strong {
  color: #173c5d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.identity-route-tree-button.is-selected .identity-route-tree-copy small {
  color: #d6e7f5;
}

.identity-route-tree-button.is-selected .identity-route-tree-copy strong {
  color: #fff;
}

.identity-route-tree-arrow {
  color: #8299aa;
  font-size: 15px;
}

.identity-route-tree-button.is-selected .identity-route-tree-arrow {
  color: #fff;
}

.identity-route-preview {
  min-width: 0;
  padding: 42px 44px 46px;
  background: #fff;
  scroll-margin-top: 92px;
}

.identity-route-preview-path {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 30px;
  color: #6e8497;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.identity-route-preview-path strong {
  color: #0d5aa7;
}

.identity-route-preview article {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .identity-route-directory.is-explorer-ready .identity-route-preview article:hover {
    background: transparent;
    box-shadow: none;
  }
}

.identity-route-preview article > div:first-child {
  margin-bottom: 24px;
}

.identity-route-preview article small {
  margin-bottom: 10px;
  font-size: 10px;
}

.identity-route-preview article h3 {
  max-width: 590px;
  font-size: clamp(28px, 3vw, 37px);
  line-height: 1.14;
}

.identity-route-preview article p {
  max-width: 620px;
  color: #4d687f;
  font-size: 15px;
  line-height: 1.8;
}

.identity-route-summary {
  margin-bottom: 0;
}

.identity-route-key-focus {
  margin-top: 22px !important;
  padding: 14px 16px;
  background: #edf4f9;
  color: #36536d !important;
  line-height: 1.6 !important;
}

.identity-route-preview article b {
  display: inline;
  margin-right: 3px;
  color: #0a4b84;
}

.identity-route-detail {
  margin-top: 30px;
  padding: 26px 28px 10px;
  background: #f5f8fa;
}

.identity-route-detail-label {
  margin: 0 0 8px !important;
  color: #0d5aa7 !important;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

.identity-route-detail-body p {
  margin: 0 0 17px;
  color: #4d687f;
  font-size: 14px;
  line-height: 1.82;
}

.identity-route-detail-body p + p {
  margin-top: 0;
  padding: 0;
  background: transparent;
}

@media (max-width: 760px) {
  .identity-route-directory.is-explorer-ready {
    grid-template-columns: 1fr;
  }

  .identity-route-tree {
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid #d5e0e8;
  }

  .identity-route-tree-children {
    padding-left: 14px;
  }

  .identity-route-tree-button {
    min-height: 66px;
  }

  .identity-route-preview {
    padding: 30px 24px 34px;
  }

  .identity-route-preview-path {
    margin-bottom: 24px;
  }

  .identity-route-preview article {
    padding: 0;
  }

  .identity-route-preview article h3 {
    font-size: 30px;
  }

  .identity-route-detail {
    padding: 24px 20px 8px;
  }

}
