main.info-page:has(> .therapy-page) {
  padding-top: 32px;
}

.therapy-page {
  --therapy-space: clamp(44px, 6.3vw, 72px);
  --therapy-radius: 29px;
  display: grid;
  scroll-margin-block-start: 56px;
}

.therapy-page > section + section {
  margin-top: var(--therapy-space);
}

.therapy-page > .therapy-intro + .education-panel,
.therapy-page > .therapy-intro + .group-enrollment,
.therapy-page > .group-enrollment + .education-panel,
.therapy-page > .education-panel + section {
  margin-top: var(--education-gap);
}

.therapy-page a:not(.booking):is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.therapy-page p,
.therapy-page li,
.therapy-facts dd {
  text-wrap: pretty;
}

.therapy-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  color: var(--muted);
  font-size: .875rem;
}

.therapy-page > .therapy-intro {
  margin-top: 28px;
}

.therapy-intro {
  display: grid;
  row-gap: 10px;
}

.therapy-intro-text br {
  display: none;
}

.therapy-intro-terms {
  margin-top: 12px;
}

.therapy-intro-price {
  font: 400 36px/1.16 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.therapy-intro-duration {
  margin-top: 8px;
  color: var(--muted);
}

.therapy-intro-terms .action {
  display: inline-block;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.therapy-intro-terms .action::after {
  display: none;
}

.therapy-terms-tail {
  white-space: nowrap;
}

.therapy-terms-tail svg {
  margin-inline-start: 5px;
  vertical-align: -1px;
}

@media (min-width: 720px) {
  .therapy-intro {
    grid-template-columns: minmax(0, 1fr) 216px;
    column-gap: clamp(32px, 6vw, 72px);
  }

  .therapy-intro h1 {
    grid-column: 1 / -1;
  }

  .therapy-intro-main,
  .therapy-intro-terms {
    display: grid;
    align-self: stretch;
    align-content: space-between;
  }

  .therapy-intro-main {
    container-type: inline-size;
  }

  .therapy-intro-terms {
    margin-top: 0;
    /* Bring the link's smaller last line level with the opening paragraph. */
    padding-bottom: 3px;
  }

  .therapy-intro-duration {
    margin-top: 14px;
  }

  .therapy-intro-terms .action {
    margin-top: 10px;
  }

  @container (min-width: 480px) {
    .therapy-intro-text br:not(.supervision-lead-break) {
      display: revert;
    }
  }

  @container (min-width: 520px) {
    .therapy-intro-text br.supervision-lead-break {
      display: revert;
    }
  }
}

.therapy-page .section-title {
  text-wrap: balance;
}

.therapy-page > section:not(.education-panel) > .section-title,
.therapy-terms-heading .section-title {
  font-size: clamp(28px, 3.7vw, 39px);
}

.therapy-reading {
  max-inline-size: 50rem;
  margin-block-start: clamp(16px, 2.4vw, 24px);
  font-size: 1.0625rem;
  line-height: 1.68;
}

.therapy-reading-intro {
  max-inline-size: none;
}

.therapy-reading-intro + .therapy-reading {
  margin-block-start: 1em;
}

.therapy-reading p + p,
.therapy-reading ol + p {
  margin-block-start: 1em;
}

.therapy-reading :is(ol, ul) {
  margin-block: 7px 0;
  padding-inline-start: 1.6em;
}

.therapy-reading li + li {
  margin-block-start: .3em;
}

.therapy-reading li::marker,
.therapy-topics li::marker {
  color: var(--teal);
}

.therapy-page .therapy-section-lead {
  margin-block-start: 13px;
  color: var(--muted);
  text-wrap: balance;
}

.therapy-section-lead,
.therapy-topics {
  font-size: 1.0625rem;
}

.therapy-topics {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .52fr) minmax(0, 1.36fr);
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  gap: 10px clamp(18px, 2.5vw, 28px);
  margin: 14px 0 0;
  padding-inline-start: 1.25em;
}

.therapy-topics li {
  padding-inline-start: 3px;
}

.therapy-topics li::first-letter {
  text-transform: uppercase;
}

.therapy-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 21px);
  margin-block-start: clamp(16px, 2.5vw, 24px);
}

.therapy-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-inline-size: 0;
  border-radius: var(--therapy-radius);
  padding: clamp(20px, 3vw, 30px);
}

.therapy-card h3 {
  margin: 0 0 10px;
  font: 400 clamp(24px, 3.4vw, 34px)/1.12 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.therapy-card p > .action {
  display: flex;
  min-block-size: 24px;
  font-size: inherit;
}

.therapy-card--sand {
  background: var(--sand);
}

.therapy-confidentiality-card {
  background: var(--sage-light);
}

.therapy-method {
  background: var(--sage);
}

.therapy-method + .therapy-method {
  background: var(--blue);
}

.therapy-method > .action {
  margin-block-start: 15px;
}

@media (width > 740px) {
  .therapy-method-grid {
    row-gap: 0;
  }

  .therapy-method {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    align-items: start;
    justify-items: start;
  }
}

.therapy-terms-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 34%, 320px);
  align-items: center;
  gap: clamp(14px, 3.5vw, 40px);
}

.therapy-terms-heading p {
  margin-block-start: 12px;
  color: var(--muted);
}

.therapy-position-below {
  display: none;
}

.therapy-facts {
  margin: clamp(18px, 3vw, 28px) 0 0;
  border-block-end: 1px solid var(--line);
}

.therapy-facts > div {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 2fr);
  gap: 5px clamp(24px, 5vw, 52px);
  align-items: baseline;
  border-block-start: 1px solid var(--line);
  padding-block: 15px;
}

.therapy-facts dt {
  font-weight: 650;
}

.therapy-facts dd {
  margin: 0;
  line-height: 1.62;
}

.therapy-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  margin-block-start: clamp(18px, 3vw, 28px);
  background: var(--blue);
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--therapy-radius);
}

.therapy-next .section-title {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
}

.therapy-next p {
  margin-block-start: 8px;
}

.therapy-next p .action {
  display: inline;
  font-size: inherit;
  font-weight: 650;
  white-space: nowrap;
}

.therapy-next p .action::after {
  margin-inline-start: .2em;
}

.therapy-next .booking {
  justify-self: start;
  padding-inline: 22px;
  font-size: 1rem;
}

.therapy-document {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  background: var(--sand);
  border-radius: 14px;
  padding: 12px 16px;
}

.therapy-document a {
  font-weight: 700;
}

.therapy-document svg {
  flex: none;
  color: var(--teal);
}

.therapy-document small {
  display: block;
  margin-block-start: 2px;
  color: var(--muted);
  font-size: .875rem;
}

.agenda h1 {
  margin-block-start: 18px;
}

.agenda-section {
  margin-block-start: clamp(24px, 4vw, 40px);
}

.agenda-section .section-title {
  font-size: clamp(26px, 3.5vw, 36px);
}

@media (min-width: 720px) {
  #groups-top .therapy-intro-main {
    align-content: start;
  }

  #groups-top .therapy-intro-terms {
    align-self: end;
    min-block-size: 100%;
    /* Keep the link level with the lead when the text wraps to two lines. */
    margin-block-start: -20px;
    padding-block-end: 2px;
  }

  #groups-top .therapy-intro-duration,
  #groups-top .therapy-intro-terms .action {
    margin-block-start: 6px;
  }
}

.group-enrollment {
  justify-self: center;
  inline-size: fit-content;
  max-inline-size: 100%;
  padding: clamp(16px, 2.5vw, 24px) clamp(18px, 4vw, 52px);
  border-radius: var(--therapy-radius);
  background: var(--sage);
}

.group-schedule {
  display: grid;
  row-gap: 10px;
  margin-block-start: 12px;
}

.group-schedule p {
  display: grid;
  row-gap: 3px;
}

.group-schedule p + p {
  padding-block-start: 10px;
  border-block-start: 1px solid var(--line);
}

.group-schedule-time {
  color: var(--muted);
}

.group-process > section {
  margin-block-start: 20px;
}

.group-process h3 {
  margin: 0 0 6px;
  font-size: 1em;
  font-weight: 650;
}

#groups-terms .therapy-document {
  background: var(--sage);
}

@media (min-width: 680px) {
  .group-schedule {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    column-gap: clamp(14px, 2vw, 24px);
  }

  .group-schedule p {
    grid-column: span 3;
    grid-template-columns: subgrid;
    align-items: baseline;
  }
}

@media (min-width: 980px) {
  .group-enrollment {
    inline-size: clamp(690px, 54vw, 716px);
    padding-inline-start: 36px;
  }
}

@media (width < 1024px) {
  .therapy-section-lead br {
    display: none;
  }
}

@media (max-width: 975px) {
  .therapy-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
  }
}

@media (max-width: 740px) {
  .therapy-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .therapy-page {
    --therapy-radius: 23px;
  }

  .therapy-terms-heading,
  .therapy-next,
  .therapy-facts > div {
    grid-template-columns: 1fr;
  }

  .therapy-document {
    width: fit-content;
  }

  .therapy-position-side {
    display: none;
  }

  .therapy-position-below {
    display: inline;
  }

  .therapy-topics {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}

@media (max-width: 640px) {
  main.info-page:has(> .therapy-page) {
    padding-top: 24px;
  }

  .therapy-page > .therapy-intro {
    margin-top: 24px;
  }

  .therapy-intro {
    row-gap: 8px;
  }

  .therapy-intro-terms {
    margin-top: 14px;
  }

  #supervision-top .intro-subtitle {
    font-size: clamp(16px, 4.9vw, 21px);
    letter-spacing: -.02em;
  }

  .therapy-intro-price {
    font-size: 32px;
  }
}
