.services-page {
  overflow-wrap: anywhere;
}

.services-page h1 {
  max-width: 28ch;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.services-heading {
  margin-bottom: var(--s-8);
}

.services-heading .lede {
  max-width: 64ch;
}

.services-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
}

.services-actions .btn,
.services-page .services-text-link,
.services-link-list a,
.service-directory-row h3 a,
.home-services a,
.catalogue-services a {
  min-height: 44px;
  height: auto;
}

.services-actions .btn {
  white-space: normal;
  padding-block: var(--s-2);
  text-align: center;
}

.services-text-link,
.services-link-list a,
.service-directory-row h3 a {
  display: inline-flex;
  align-items: center;
  padding-block: var(--s-2);
}

.services-context {
  max-width: 75ch;
  margin: var(--s-3) 0 0;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.services-directory {
  border-top: 1px solid var(--border-strong);
  padding-top: var(--s-6);
}

.services-directory-labels {
  display: none;
}

.service-directory-row {
  display: grid;
  gap: var(--s-2);
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--border);
}

.service-directory-row > * {
  min-width: 0;
}

.service-directory-row h3,
.service-directory-row p {
  margin: 0;
}

.service-directory-row h3 {
  font-size: var(--fs-lg);
}

.service-directory-row p {
  max-width: 58ch;
  color: var(--text-2);
}

.service-saved,
.service-mobile-label {
  font-size: var(--fs-sm);
}

.services-notes,
.service-explanation {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-8);
}

.services-notes h2,
.service-explanation h2,
.services-related h2,
.services-other h2,
.service-limits h2 {
  font-size: var(--fs-xl);
}

.services-notes p,
.service-explanation p,
.service-preparation li,
.services-related p,
.service-limits p {
  color: var(--text-2);
  max-width: 75ch;
}

.service-preparation {
  background: var(--surface-2);
  padding: var(--s-5);
  border-radius: var(--r-md);
}

.service-preparation > :last-child {
  margin-bottom: 0;
}

.service-preparation ul {
  padding-left: var(--s-5);
}

.service-preparation li + li {
  margin-top: var(--s-2);
}

.service-example {
  margin-top: var(--s-10);
  border-block: 1px solid var(--border-strong);
  padding-block: var(--s-6);
}

.service-example h2 {
  max-width: 42ch;
  font-size: clamp(1.35rem, 3vw, 1.625rem);
}

.service-example-label {
  max-width: 85ch;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.service-example-setting {
  margin-block: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--surface-2);
  border-radius: var(--r-sm);
}

.service-example-setting h3,
.service-interpretation h3 {
  font-size: var(--fs-md);
}

.service-example-setting p {
  max-width: 85ch;
  margin-bottom: 0;
}

.service-outcomes {
  margin: 0;
}

.service-outcomes > div {
  display: grid;
  gap: var(--s-2);
  padding-block: var(--s-4);
}

.service-outcomes > div + div {
  border-top: 1px solid var(--border);
}

.service-outcomes dt {
  color: var(--text);
  font-weight: 600;
}

.service-outcomes dd {
  margin: 0;
  max-width: 80ch;
  color: var(--text-2);
}

.service-interpretation,
.service-example-followup {
  max-width: 90ch;
  margin: var(--s-5) 0 0;
}

.service-interpretation > :last-child {
  margin-bottom: 0;
}

.service-limits,
.services-related,
.services-other {
  margin-top: var(--s-8);
}

.services-related,
.services-other {
  border-top: 1px solid var(--border);
  padding-top: var(--s-6);
}

.services-link-list {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: var(--s-1) var(--s-5);
}

.services-related .services-link-list {
  margin-top: var(--s-2);
}

.home-services {
  margin-top: var(--s-6);
  padding-block: var(--s-6);
  border-block: 1px solid var(--border-strong);
}

.home-services-heading h2 {
  margin-bottom: var(--s-2);
}

.home-services-heading p {
  max-width: 76ch;
  margin-bottom: var(--s-3);
  color: var(--text-2);
}

.home-services-heading > a {
  display: inline-flex;
  align-items: center;
  padding-block: var(--s-2);
}

.home-service-links {
  display: grid;
  margin-top: var(--s-3);
}

.home-service-links li {
  border-top: 1px solid var(--border);
  padding-block: var(--s-3);
}

.home-service-links a {
  display: inline-flex;
  align-items: center;
  padding-block: var(--s-2);
  font-weight: 600;
}

.home-service-links p {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.catalogue-services {
  margin-bottom: var(--s-5);
  padding-block: var(--s-3);
  border-block: 1px solid var(--border-strong);
}

.catalogue-services p {
  margin: 0;
  color: var(--text-2);
}

.catalogue-services a {
  display: inline-flex;
  align-items: center;
  margin-top: var(--s-1);
  padding-block: var(--s-2);
}

@media (min-width: 640px) {
  .services-heading {
    margin-bottom: var(--s-10);
  }

  .service-directory-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: var(--s-8);
  }

  .service-directory-row > .services-text-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .service-outcomes > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--s-6);
  }

  .home-service-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--s-6);
  }

  .home-service-links li:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .services-directory-labels,
  .service-directory-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(10rem, .7fr);
    gap: var(--s-8);
    align-items: start;
  }

  .services-directory-labels {
    margin-top: var(--s-5);
    color: var(--muted);
    font-size: var(--fs-sm);
  }

  .service-directory-row > .services-text-link {
    grid-column: auto;
  }

  .service-mobile-label {
    display: none;
  }

  .services-notes,
  .service-explanation {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-10);
    align-items: start;
    margin-top: var(--s-10);
  }

  .service-example {
    padding-block: var(--s-8);
  }

  .home-service-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-service-links li:last-child {
    grid-column: auto;
  }
}
