.senior-relocation-pathway {
  margin-block: clamp(2.5rem, 7vw, 6rem);
}

.senior-relocation-pathway__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
  gap: var(--space-3);
  align-items: end;
  padding: clamp(1.4rem, 4vw, 3.25rem);
  color: var(--paper-bright);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--green) 42%, var(--ink)),
      var(--ink) 66%
    );
  border-radius: 2px var(--radius-large);
}

.senior-relocation-pathway__heading h2 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
}

.senior-relocation-pathway__heading p:last-child {
  max-width: 68ch;
  margin-block: 0.9rem 0;
  color: color-mix(in srgb, var(--paper-bright) 80%, transparent);
  line-height: 1.6;
}

.senior-relocation-pathway__heading > aside {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
  color: var(--green-dark);
  background: var(--green-pale);
  border-inline-start: 4px solid var(--sand);
  font-family: var(--font-data);
  font-size: 0.75rem;
  line-height: 1.5;
}

.senior-relocation-pathway__heading > aside strong {
  font-size: 0.875rem;
}

.senior-relocation-pathway__index {
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-block: 1.25rem;
  background: var(--sand-light);
  border: var(--border-standard);
  border-radius: var(--radius-medium);
}

.senior-relocation-pathway__index ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.senior-relocation-pathway__index a {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 760;
  line-height: 1.35;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.senior-relocation-pathway__index a span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: var(--paper-bright);
  background: var(--green-dark);
  border-radius: var(--radius-pill);
  font-family: var(--font-data);
  font-size: 0.75rem;
}

.senior-relocation-pathway__index a:focus-visible,
.senior-relocation-pathway__sources a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.senior-relocation-pathway__steps {
  display: grid;
  gap: var(--space-3);
}

.senior-relocation-pathway__step {
  scroll-margin-top: 24px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--paper-bright);
  border: var(--border-standard);
  border-block-start: 0.4rem solid var(--green);
  border-radius: 2px var(--radius-medium);
}

.senior-relocation-pathway__step > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.senior-relocation-pathway__step > header > span {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: var(--paper-bright);
  background: var(--coral-dark);
  border-radius: 2px var(--radius-medium);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.senior-relocation-pathway__step > header p {
  margin: 0 0 0.25rem;
  color: var(--green-dark);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.senior-relocation-pathway__step h3 {
  max-width: 28ch;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.senior-relocation-pathway__tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin-block: 1rem;
  list-style: none;
}

.senior-relocation-pathway__tracks li {
  padding: 0.35rem 0.6rem;
  color: var(--green-dark);
  background: var(--green-pale);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  border-radius: var(--radius-pill);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 760;
}

.senior-relocation-pathway__gate {
  display: grid;
  gap: 0.35rem;
  max-width: 76ch;
  padding: 0.9rem 1rem;
  margin-block: 1rem 0;
  background: var(--green-pale);
  border-inline-start: 4px solid var(--coral-dark);
  font-size: 0.875rem;
  line-height: 1.6;
}

.senior-relocation-pathway__gate strong,
.senior-relocation-pathway__sources > strong {
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.senior-relocation-pathway__sources {
  margin-block-start: 1.25rem;
}

.senior-relocation-pathway__sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding: 0;
  margin-block: 0.45rem 0;
  list-style: none;
}

.senior-relocation-pathway__sources a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--green-dark);
  font-size: 0.8125rem;
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.senior-relocation-pathway__reading-note {
  max-width: 74ch;
  padding: 0.9rem 1rem;
  margin: var(--space-3) 0 0;
  color: var(--green-dark);
  background: var(--sand-light);
  border-inline-start: 4px solid var(--green);
  font-size: 0.875rem;
  font-weight: 680;
  line-height: 1.6;
}

.senior-relocation-pathway__offline-sheet {
  margin-top: var(--space-3);
  background: var(--paper-bright);
  border: var(--border-standard);
  border-top: 0.4rem solid var(--signal);
}

.senior-relocation-pathway__offline-sheet > summary {
  min-height: 2.75rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 800;
}

.senior-relocation-pathway__offline-sheet > div {
  padding: clamp(1.1rem, 3vw, 2rem);
  border-top: var(--border-standard);
}

.senior-relocation-pathway__offline-sheet h3 {
  max-width: 28ch;
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
}

.senior-relocation-pathway__offline-sheet header > p:last-child,
.senior-relocation-pathway__offline-sheet > div > p,
.senior-relocation-pathway__offline-sheet-boundary p {
  max-width: 76ch;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.senior-relocation-pathway__offline-sheet-meta {
  padding-block: 0.8rem;
  border-block: 1px solid var(--line);
}

.senior-relocation-pathway__offline-sheet-boundary {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.senior-relocation-pathway__offline-sheet-boundary p {
  margin: 0;
}

.senior-relocation-pathway__offline-sheet ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.senior-relocation-pathway__offline-sheet li {
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.senior-relocation-pathway__offline-sheet h4 {
  margin: 0 0 0.6rem;
  font-size: 0.875rem;
}

.senior-relocation-pathway__offline-sheet li p {
  margin: 0.35rem 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.senior-relocation-pathway__private-note {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.25fr);
  gap: var(--space-3);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  margin-block-start: var(--space-3);
  color: var(--paper-bright);
  background: var(--ink);
  border-block-start: 0.4rem solid var(--coral);
  border-radius: var(--radius-medium);
}

.senior-relocation-pathway__private-note h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

.senior-relocation-pathway__private-note p:last-child {
  margin: 0;
  color: color-mix(in srgb, var(--paper-bright) 82%, transparent);
  line-height: 1.65;
}

@media (max-width: 760px) {
  .senior-relocation-pathway__heading,
  .senior-relocation-pathway__private-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .senior-relocation-pathway__index ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .senior-relocation-pathway__offline-sheet ol {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .senior-relocation-pathway__heading,
  .senior-relocation-pathway__step,
  .senior-relocation-pathway__private-note {
    border-radius: 0;
  }

  .senior-relocation-pathway__step > header {
    grid-template-columns: minmax(0, 1fr);
  }

  .senior-relocation-pathway__step > header > span {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}

@media print {
  html[data-print-surface="senior-continuity-sheet"] {
    body * {
      display: none !important;
    }

    body *:not([data-senior-print-sheet]):has([data-senior-print-sheet]) {
      display: contents !important;
    }

    [data-senior-print-sheet],
    [data-senior-print-sheet] * {
      display: revert !important;
    }

    [data-senior-print-sheet] {
      margin: 0;
      color: var(--ink);
    }

    [data-senior-print-sheet] > div {
      padding: 0;
    }

    :is([data-senior-print-sheet] > summary, [data-senior-print-action]) {
      display: none !important;
    }
  }
}
