/* =============================================================================
   SPECIALIZATIONS AND LIFE STAGES
   Specializations hub (/specializations), service pages (/specializations/{slug}) and the strips that
   were added to the Life Stages pages. Loaded after styles.css by includes/metatags-icons-css.php
   (versioned by file time).

   Built from the pieces the rest of the site already uses, in styles.css:
     capsule photo overlapping a cream card  .intro-strip (home)
     photo left / copy right + wave          .inner-intro (inner pages)
     teal badge breaking a card's top edge   .wtc-strip (Our Therapists)
     lavender band                           .feat-spec (home), .about-mission (About Us)
     capsule photo + plus/minus togglers     .strip-list, .faq-wrapper (Life Stages)
     photo call to action with a wave        .book-cta (site-wide)

   Contents
     1. Shared            6. Meet your therapist
     2. Hero              7. Related items
     3. Understanding     8. FAQs
     4. Patterns          9. Closing call to action
     5. Therapy band     10. Hub: intro and cards
                         11. Pathway band (both hubs)
                         12. Life Stage pages
                         13. Articles, resources, home, menus (unchanged)
   ============================================================================= */

:root {
  /* the deeper lavender styles.css uses for accents in .spec-intro: 4.7:1 on cream, where --main is only 2.7:1 */
  --main-deep: #7a6b88;
  /* on the lavender bands: cards and pills, the quote (halfway between the two lavenders), and their edges */
  --band-card: var(--main-deep);
  --band-quote: #8f819d;
  --band-line: hsla(34 21% 94% / 0.5);
  /* height of the wave graphics at the current width (1366 x 86), for sections that a wave overlaps */
  --wave: 6.4vw;
  --hairline: 2px solid hsla(0 0% 0% / 0.1);
}

/* ---------- 1. Shared ---------- */
/* Keep the copy's capitalisation (the site default is text-transform: capitalize) */
.svc-page h1,
.svc-page h2,
.svc-page h3,
.svc-page h4,
.svc-page .superbutton,
.pathway h2,
.svc-related h2,
.svc-related h3 {
  text-transform: none;
}
.svc-page :is(h2, h3),
.pathway h2,
.svc-related :is(h2, h3) {
  text-wrap: balance;
}
.svc-page p,
.svc-page li {
  text-wrap: pretty;
}
.svc-page :is(a, button):focus-visible,
.pathway a:focus-visible,
.svc-related a:focus-visible,
.ls-therapists a:focus-visible {
  outline: 3px solid var(--main-deep);
  outline-offset: 3px;
}
:is(.svc-page, .ls-page, .ls-hub) .colour a:focus-visible {
  outline-color: var(--dark);
}
.svc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem 3.2rem;
  margin-top: 3.2rem;
}
.svc-actions .superbutton {
  margin: 0;
}

/* The wave graphics stop a hair short of the screen edges, which shows as a thin line beside photos */
.svc-page,
.ls-page,
.ls-hub {
  overflow-x: clip;
}
:is(.svc-page, .ls-page, .ls-hub) :is(.wave-top, .wave-bottom) img {
  left: -1px;
  width: calc(100% + 2px);
  max-width: none;
}

/* Reading column: plain text sections, only used for content that does not fit a designed layout */
.svc-prose {
  max-width: 760px;
}
.svc-prose h2 {
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  margin-bottom: 2.4rem;
}
.svc-prose h3 {
  font-size: clamp(2.1rem, 3.5vw, 2.6rem);
  margin: 3.2rem 0 1.6rem;
}
.svc-prose p,
.svc-prose li {
  font-size: 1.8rem;
  line-height: 1.7;
}

/* The site's entrance animation (.animate) starts elements at opacity 0. Show everything when scripting is
   off, and skip the movement for visitors who ask for less of it. */
@media (scripting: none) {
  .svc-page .animate,
  .pathway .animate,
  .ls-therapists .animate {
    opacity: 1 !important;
    transform: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .svc-page .animate,
  .pathway .animate,
  .ls-therapists .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .svc-page *,
  .pathway * {
    transition-duration: 0s !important;
  }
}

/* ---------- 2. Hero ---------- */
/* The heading, intro line and booking button, centred. No therapist up here: the round 2 work order keeps the
   therapists to their own section further down the page (one or more per page, migration 010). */
.svc-hero {
  background: var(--light-light);
  padding-block: 3.2rem calc(var(--wave) + 4rem);
}
.svc-hero-inner {
  display: grid;
  justify-items: center;
  text-align: center;
}
.svc-hero-text {
  max-width: 88rem;
}
.svc-hero h1 {
  margin-bottom: 2.4rem;
  text-wrap: balance;
}
.svc-lede {
  font-style: italic;
  font-size: clamp(2rem, 3vw, 2.4rem);
  line-height: 1.5;
  color: var(--dark);
  margin: 0 auto;
  max-width: 46ch;
}
.svc-hero .svc-actions {
  justify-content: center;
}
@media (min-width: 641px) {
  .svc-hero {
    padding-top: 4.8rem;
  }
}
@media (min-width: 960px) {
  .svc-hero {
    padding-block: 8rem calc(var(--wave) + 4.8rem);
  }
}

/* ---------- 3. Understanding: a cream card with a capsule photo overlapping it (like the home intro) ---------- */
.svc-feature-media {
  display: block;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 40rem;
}
.svc-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-feature-card {
  border-radius: 1.6rem;
  background: var(--light-light);
  box-shadow: var(--shadow);
}
.svc-feature-card h2 {
  font-size: clamp(2.8rem, 3.4vw, 4rem);
  margin-bottom: 2.4rem;
}
.svc-feature-card p {
  font-size: 1.7rem;
  line-height: 1.7;
}
.svc-understanding .svc-feature-card > h2 + p {
  font-size: 2rem;
  line-height: 1.6;
  color: var(--dark);
}
/* the closing line of the text, set apart */
.svc-understanding .svc-feature-card > p:last-child:not(h2 + p) {
  margin-top: 2.8rem;
  padding-top: 2.8rem;
  border-top: var(--hairline);
  font-style: italic;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--dark);
}
.svc-understanding .svc-feature-card > p:last-child strong {
  color: var(--main-deep);
}
@media (max-width: 960px) {
  .svc-feature {
    padding-inline: 1.6rem;
  }
  .svc-feature-media {
    width: calc(100% - 3.2rem);
    max-width: 28rem;
    aspect-ratio: 4 / 6;
    margin: 0 auto -12rem;
  }
  .svc-feature-card {
    padding: 15.2rem 2.4rem 3.2rem;
  }
}
@media (min-width: 961px) {
  .svc-feature {
    padding-block: 14.4rem;
  }
  .svc-feature > .content {
    display: grid;
    grid-template-columns: 10% 23% minmax(0, 1fr);
    align-items: center;
  }
  .svc-feature-media {
    grid-area: 1 / 1 / 2 / 3;
    height: calc(100% + 11.2rem); /* 5.6rem past the card, above and below */
    min-height: 52rem;
    max-height: 84rem;
    margin-block: -5.6rem;
  }
  .svc-feature-media img {
    position: absolute;
    inset: 0;
  }
  .svc-feature-card {
    grid-area: 1 / 2 / 2 / 4;
    padding: 5.6rem 6.4rem 5.6rem calc(25.6% + 5.6rem);
  }
  /* mirrored: card left, photo right */
  .svc-feature-flip > .content {
    grid-template-columns: minmax(0, 1fr) 23% 10%;
  }
  .svc-feature-flip .svc-feature-media {
    grid-area: 1 / 2 / 2 / 4;
  }
  .svc-feature-flip .svc-feature-card {
    grid-area: 1 / 1 / 2 / 3;
    padding: 5.6rem calc(25.6% + 5.6rem) 5.6rem 6.4rem;
  }
}

/* Plain text sections */
.svc-section {
  border-top: 1px solid hsla(280 18% 17% / 0.08);
}
.wave-bottom + .svc-section {
  padding-top: calc(var(--wave) + 4.8rem);
  border-top: none;
}

/* ---------- 4. Patterns: cards floating either side of a capsule that holds the heading ---------- */
.svc-patterns {
  background: var(--light-light);
}
.svc-patterns-grid {
  display: grid;
  gap: 3.2rem 2.4rem;
}
.svc-patterns-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.8rem 3.2rem;
  border-radius: 20rem;
  background: var(--second);
  text-align: center;
}
.svc-patterns-head h2 {
  margin: 0;
  font-size: clamp(2.8rem, 3vw, 3.8rem);
}
.svc-pattern {
  position: relative;
  z-index: 1;
  padding: 3.6rem 2.8rem 2.8rem;
  border-radius: 1.6rem;
  background: hsl(0 0% 100%);
  box-shadow: var(--shadow);
}
.svc-pattern::before {
  content: "";
  position: absolute;
  top: -2rem;
  left: 2.8rem;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--main) url(/assets/images/layout/icon-check.svg) center / 1.6rem auto no-repeat;
}
.svc-pattern h3 {
  margin: 0 0 .8rem;
  font-size: 2.2rem;
}
.svc-pattern p {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.6;
}
@media (min-width: 640px) and (max-width: 1024px) {
  .svc-patterns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .svc-patterns-head {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1025px) {
  .svc-patterns {
    padding-top: 14.4rem;
  }
  .svc-patterns.wave-after {
    padding-bottom: calc(var(--wave) + 14.4rem);
  }
  .svc-patterns-grid {
    grid-template-columns: minmax(0, 1fr) 34rem minmax(0, 1fr);
    gap: 5.6rem 0;
  }
  .svc-patterns-head {
    grid-column: 2;
    grid-row: 1 / span var(--rows, 3);
    align-self: stretch;
    margin-block: -4.8rem;
    padding: 12rem 5.6rem;
  }
  /* odd items (the 2nd, 4th... child, after the heading) go left, even ones right; the first and last rows
     tuck further in, over the capsule's rounded ends */
  .svc-pattern:nth-child(even) {
    grid-column: 1;
    margin-right: -1.6rem;
  }
  .svc-pattern:nth-child(odd) {
    grid-column: 3;
    margin-left: -1.6rem;
  }
  .svc-pattern:nth-child(even):is(:nth-child(-n + 3), :nth-last-child(-n + 2)) {
    margin-right: -6.4rem;
    margin-left: 4.8rem;
  }
  .svc-pattern:nth-child(odd):is(:nth-child(-n + 3), :last-child) {
    margin-left: -6.4rem;
    margin-right: 4.8rem;
  }
}

/* ---------- 5. Therapy band: lavender, with the cards floating beside the text ---------- */
.svc-therapy {
  padding-block: 4.8rem;
}
.svc-therapy-grid {
  display: grid;
  gap: 4.8rem;
}
.svc-therapy-intro h2 {
  margin-bottom: 2.4rem;
}
.colour .svc-therapy-intro p {
  font-size: 1.9rem;
  line-height: 1.7;
}
.svc-therapy-cards {
  display: grid;
  gap: 2.4rem;
}
.svc-card {
  position: relative;
  padding: 2.8rem 2.8rem 2.8rem 5.2rem;
  margin-left: 2.8rem;
  border: 1px solid var(--band-line);
  border-radius: 1.6rem;
  background: var(--band-card);
}
.svc-card-icon {
  position: absolute;
  top: calc(50% - 2.8rem);
  left: -2.8rem;
  display: grid;
  place-items: center;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: var(--second);
  color: var(--dark);
  font-size: 2.2rem;
}
/* phones: the icon moves to the card's top edge, so the text gets the full width */
@media (max-width: 640px) {
  .svc-therapy-cards {
    gap: 4.8rem;
    padding-top: 2.4rem;
  }
  .svc-card {
    margin-left: 0;
    padding: 4.4rem 2.4rem 2.4rem;
  }
  .svc-card-icon {
    top: -2.8rem;
    left: 2.4rem;
  }
}
.svc-card h3 {
  margin: 0 0 .8rem;
  font-size: 2.2rem;
}
.svc-card p {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.6;
}
.svc-quote {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 4rem 2.8rem;
  border: 1px solid var(--band-line);
  border-radius: 1.6rem;
  background: var(--band-quote);
  text-align: center;
}
/* the quotation mark, large and faint behind the words */
.svc-quote::before {
  content: "\f10d";
  position: absolute;
  z-index: -1;
  top: -.4rem;
  left: 1.6rem;
  color: hsla(34 21% 94% / 0.12);
  font: 900 14rem/1 "Font Awesome 6 Free";
}
.colour .svc-quote p {
  margin: 0 auto;
  max-width: 36em;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 2.3vw, 3.2rem);
  font-style: normal;
  font-weight: 500;
  font-size-adjust: var(--heading-size-adjust);
  line-height: 1.4;
  color: var(--light-light);
  text-wrap: balance;
}
@media (min-width: 1025px) {
  .svc-therapy {
    padding-block: 3.2rem 8rem;
  }
  .svc-therapy-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 9.6rem 8rem;
    align-items: center;
  }
  .svc-card {
    margin-right: 4rem;
  }
  .svc-card:nth-child(even) {
    margin-right: 0;
    margin-left: 6.8rem;
  }
  .svc-quote {
    grid-column: 1 / -1;
    padding: 5.6rem 9.6rem;
  }
  .svc-quote::before {
    top: 50%;
    left: 2.4rem;
    transform: translateY(-50%);
    font-size: 30rem;
  }
}

/* ---------- 6. Meet your therapist: the Understanding card, mirrored, with the portrait ---------- */
/* the lavender wave hangs over the top of this section */
.wave-bottom + .svc-therapist {
  padding-top: calc(var(--wave) + 4.8rem);
}
.svc-therapist-body h2 {
  margin-bottom: 1.6rem;
}
.svc-therapist-body h3 {
  margin: 0 0 2rem;
  font-family: var(--font);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--main-deep);
  font-size-adjust: none; /* Lato, not the heading font */
}
.svc-therapist .svc-actions {
  margin-top: 2.8rem;
}
@media (min-width: 961px) {
  .wave-bottom + .svc-therapist {
    padding-top: calc(var(--wave) + 12.8rem);
  }
  .svc-therapist .svc-feature-media {
    min-height: 48rem;
  }
}
/* Two or more therapists (migration 010): "Meet Your Therapists" centred above all the rows (like "Related
   Support"), then one row each, the photo side alternating, starting on the right */
.svc-therapists > .svc-therapists-head {
  display: block;
  text-align: center;
  margin-bottom: 4.8rem;
}
.svc-therapists-head h2 {
  margin: 0;
}
.svc-therapists > .svc-therapist-row + .svc-therapist-row {
  margin-top: 6.4rem;
}
@media (min-width: 961px) {
  .svc-therapists > .svc-therapists-head {
    margin-bottom: 11.2rem; /* the first photo reaches 5.6rem above its card */
  }
  .svc-therapists > .svc-therapist-row + .svc-therapist-row {
    margin-top: 16.8rem; /* clears the photos, which reach 5.6rem past their cards */
  }
  .svc-therapists > .svc-therapist-row-alt {
    grid-template-columns: 10% 23% minmax(0, 1fr);
  }
  .svc-therapists > .svc-therapist-row-alt .svc-feature-media {
    grid-area: 1 / 1 / 2 / 3;
  }
  .svc-therapists > .svc-therapist-row-alt .svc-feature-card {
    grid-area: 1 / 2 / 2 / 4;
    padding: 5.6rem 6.4rem 5.6rem calc(25.6% + 5.6rem);
  }
}

/* ---------- 7. Related items (widgets/related-items.php) ---------- */
.svc-related {
  background: var(--light-light);
}
.svc-related.light {
  background: var(--light);
}
.svc-related h2 {
  text-align: center;
}
.svc-related-grid {
  display: grid;
  gap: 2.4rem;
  max-width: 1264px;
  margin: 0 auto;
}
.svc-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.6rem;
  background: hsl(0 0% 100%);
  box-shadow: var(--shadow);
}
.svc-related-img {
  display: block;
  overflow: hidden;
}
.svc-related-img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .5s ease-in-out;
}
.svc-related-card:hover .svc-related-img img {
  transform: scale(1.05);
}
.svc-related-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2.4rem;
}
.svc-related-type {
  position: relative;
  align-self: flex-start;
  padding: .7rem 1.6rem;
  border-radius: 999px;
  background: var(--second);
  color: var(--dark);
  font-size: 1.2rem;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}
/* the label straddles the bottom edge of the photo */
.svc-related-img + .svc-related-body .svc-related-type {
  margin-top: -3.8rem;
}
.svc-related-body h3 {
  margin: 0;
  font-size: 2.2rem;
}
.svc-related-body h3 a {
  color: var(--dark);
  text-decoration: none;
}
/* the whole card is the link */
.svc-related-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.svc-related-body p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.6;
}
.svc-related-body .text-link {
  margin-top: auto;
  padding-top: .8rem;
}
.svc-related-card:hover .text-link::before {
  width: 4rem;
}
@media (min-width: 641px) {
  .svc-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 961px) {
  .svc-related-grid {
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  }
}
/* two cards: photo left, text right, with the label straddling the photo's edge */
@media (min-width: 961px) {
  .svc-related-pair .svc-related-card {
    flex-direction: row;
  }
  .svc-related-pair .svc-related-img {
    flex: 0 0 38%;
  }
  .svc-related-pair .svc-related-img img {
    height: 100%;
    aspect-ratio: auto;
  }
  .svc-related-pair .svc-related-img + .svc-related-body .svc-related-type {
    margin: 0 0 0 -5.6rem;
  }
}
/* a card left alone on its row turns sideways and fills it */
@media (min-width: 641px) and (max-width: 960px) {
  .svc-related-card:last-child:nth-child(odd) {
    flex-direction: row;
    grid-column: 1 / -1;
  }
  .svc-related-card:last-child:nth-child(odd) .svc-related-img {
    flex: 0 0 42%;
  }
  .svc-related-card:last-child:nth-child(odd) .svc-related-img img {
    height: 100%;
    aspect-ratio: auto;
  }
  .svc-related-card:last-child:nth-child(odd) .svc-related-type {
    margin-top: 0;
  }
}
/* lavender band: heading left, cards floating on the right */
.svc-related-band {
  background: var(--main);
}
.svc-related-band .svc-related-type {
  display: none; /* the heading already says it */
}
.svc-related-band .svc-related-card {
  border: 1px solid var(--band-line);
  background: var(--band-card);
  box-shadow: none;
}
.svc-related-band .svc-related-body :is(h3, h3 a, .text-link) {
  color: var(--light-light);
}
.svc-related-band .text-link::before {
  background: var(--light-light);
}
.svc-related-band .svc-related-body {
  padding: 3.2rem;
}
@media (min-width: 961px) {
  .svc-related-band > .content {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 8rem;
    align-items: center;
  }
  .svc-related-band h2 {
    margin: 0;
    text-align: left;
  }
  .svc-related-band .svc-related-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .svc-related-band .svc-related-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .svc-related-band .svc-related-pair .svc-related-card:nth-child(even) {
    translate: 0 3.2rem;
  }
}
/* links to other specializations: one line under the cards, not a card */
.svc-related-also {
  max-width: 1264px;
  margin: 3.2rem auto 0;
  font-size: 1.7rem;
  line-height: 1.6;
  text-align: center;
}
.svc-related-also a {
  font-weight: 700;
}

/* ---------- 8. FAQs: capsule photo beside plus/minus togglers (like the Life Stage FAQs) ---------- */
.svc-faqs {
  padding-bottom: 8rem;
}
.svc-faqs-grid {
  display: grid;
  gap: 4rem;
}
.svc-faqs-media {
  display: none;
  aspect-ratio: 4.5 / 6;
  overflow: hidden;
  border-radius: 20rem;
}
.svc-faqs-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-faqs-body h2 {
  margin-bottom: 2.4rem;
}
.svc-faq-note {
  margin: 0 0 2.4rem;
  font-style: italic;
}
.svc-faq-note p {
  font-size: 1.6rem;
  line-height: 1.6;
}
.svc-faq-list {
  padding: .8rem 2.4rem;
  border-radius: 1.6rem;
  background: var(--light-light);
  box-shadow: var(--shadow);
}
.svc-faq + .svc-faq {
  border-top: var(--hairline);
}
.svc-faq h3 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.3;
}
.svc-faq-button {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  padding: 2rem 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}
.svc-faq-button:hover {
  color: var(--main-deep);
}
.svc-faq-icon {
  position: relative;
  flex: 0 0 2.6rem;
  height: 2.6rem;
  transition: var(--animate);
}
.svc-faq-icon::before,
.svc-faq-icon::after {
  content: "";
  position: absolute;
  top: calc(50% - .1rem);
  left: calc(50% - .8rem);
  width: 1.6rem;
  height: .2rem;
  background: var(--main-deep);
}
.svc-faq-icon::after {
  transform: rotate(90deg);
}
.svc-faq.is-open .svc-faq-icon {
  transform: rotate(135deg);
}
.svc-faq-answer {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .35s ease-in-out;
}
.svc-faq-text {
  min-height: 0;
  overflow: hidden;
  padding-left: 3.8rem;
}
.svc-faq-text > :last-child {
  padding-bottom: 2.4rem;
}
.svc-faq-text p {
  font-size: 1.7rem;
  line-height: 1.7;
}
/* closed: from the first paint when scripting is on, and by services.js where that media feature is unknown */
@media (scripting: enabled) {
  .svc-faq:not(.is-open) .svc-faq-answer {
    grid-template-rows: 0fr;
  }
}
.svc-faq-list.is-ready .svc-faq:not(.is-open) .svc-faq-answer {
  grid-template-rows: 0fr;
}
@media (min-width: 641px) {
  .svc-faqs-media {
    display: block;
  }
  .svc-faqs-grid {
    grid-template-columns: 18rem minmax(0, 1fr);
    align-items: start;
  }
}
@media (min-width: 961px) {
  .svc-faqs {
    padding-bottom: 9.6rem;
  }
  .svc-faqs-grid {
    grid-template-columns: 30rem minmax(0, 1fr);
    gap: 6.4rem;
  }
  .svc-faq-list {
    padding: 1.2rem 3.2rem;
  }
}

/* ---------- 9. Closing call to action (the site-wide .book-cta, with the page's own copy) ---------- */
.svc-cta .editable_content p {
  font-size: 1.7rem;
  line-height: 1.6;
}
.svc-cta .content .editable_content .btn-wrapper {
  margin-top: 3.2rem;
}

/* ---------- 10. Hub: intro and cards ---------- */
.svc-hub-intro .img-wrapper img {
  object-position: 72% 50%;
}
.svc-hub-intro .editable_content p {
  font-size: 1.8rem;
  line-height: 1.7;
}
@media (min-width: 961px) {
  .svc-hub-intro .content {
    align-items: center;
    min-height: 36rem;
  }
}
.svc-hub-grid {
  display: grid;
  gap: 2.4rem;
}
.svc-hub-grid > * {
  width: auto;
}
.svc-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 3.2rem;
  border-radius: 1.6rem;
  background: var(--light-light);
  box-shadow: var(--shadow);
}
.svc-hub-card h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 2.6rem);
}
.svc-hub-card h2 a {
  color: var(--dark);
  text-decoration: none;
}
/* the whole card is the link */
.svc-hub-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.6rem;
  transition: var(--animate);
}
.svc-hub-card:hover h2 a::after {
  box-shadow: inset 0 0 0 3px var(--second);
}
.svc-hub-card:hover .text-link::before {
  width: 4rem;
}
.svc-hub-card p {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.6;
}
.svc-hub-card-foot {
  margin-top: auto;
  padding-top: 1.6rem;
  border-top: var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
}
.svc-hub-therapist {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--medium);
}
.svc-hub-therapist img {
  flex: 0 0 4.8rem;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
/* a page with several therapists: their faces overlap (migration 010) */
.svc-hub-faces {
  display: inline-flex;
  flex: 0 0 auto;
}
.svc-hub-faces img + img {
  margin-left: -1.4rem;
  box-shadow: 0 0 0 .3rem var(--light-light);
}
.svc-hub-faces:empty {
  display: none;
}
.svc-hub-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 3.2rem;
  border-radius: 1.6rem;
  background: var(--second);
}
.svc-hub-cta h2 {
  margin: 0 0 .8rem;
  font-size: clamp(2.4rem, 3vw, 3.2rem);
}
.svc-hub-cta p {
  margin: 0;
  color: var(--dark);
  font-size: 1.7rem;
  line-height: 1.6;
}
.svc-hub-cta-faces {
  display: flex;
}
.svc-hub-cta-faces img {
  width: 7.2rem;
  height: 7.2rem;
  border: .3rem solid var(--second);
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}
.svc-hub-cta-faces img + img {
  margin-left: -1.6rem;
}
.svc-hub-cta .svc-actions {
  margin-top: 2.4rem;
}
.svc-hub-cta .superbutton {
  background: white;
  color: var(--dark);
}
.svc-hub-cta .superbutton:hover {
  background: var(--dark);
  color: white;
}
/* the closing tile widens to complete the last row */
@media (min-width: 640px) and (max-width: 1024px) {
  .svc-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .svc-hub-cta:nth-child(odd) {
    grid-column: span 2;
  }
}
@media (min-width: 1025px) {
  .svc-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .svc-hub-cta:nth-child(3n + 2) {
    grid-column: span 2;
  }
  .svc-hub-cta:nth-child(3n + 1) {
    grid-column: span 3;
  }
  .svc-hub-cta:not(:nth-child(3n)) {
    padding-inline: 4.8rem;
  }
}

/* ---------- 11. Pathway band: lavender, copy left, links right (both hubs) ---------- */
.pathway-grid {
  display: grid;
  gap: 4rem;
}
.pathway h2 {
  margin-bottom: 2.4rem;
}
.colour.pathway p {
  font-size: 1.8rem;
  line-height: 1.7;
}
.pathway .superbutton {
  margin-top: 1.6rem;
}
.pathway-list {
  display: grid;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pathway-list li {
  margin: 0;
}
.pathway-list a {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .9rem 3.2rem .9rem .9rem;
  border: 1px solid var(--band-line);
  border-radius: 999px;
  background: var(--band-card);
  color: var(--light-light);
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: var(--animate);
}
.pathway-list a::after {
  content: "";
  flex: 0 0 auto;
  width: 2.4rem;
  height: .1rem;
  margin-left: auto;
  background: currentColor;
  transition: var(--animate);
}
.pathway-list a:hover {
  border-color: transparent;
  background: var(--second);
  color: var(--dark);
}
.pathway-list a:hover::after {
  width: 4rem;
}
.pathway-photo {
  flex: 0 0 6.4rem;
  width: 6.4rem;
  height: 6.4rem;
  overflow: hidden;
  border-radius: 50%;
}
.pathway-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* pills without a photo (the Life Stages hub): an icon, picked by where the link goes */
.pathway-list-icons a::before {
  content: "\f0c1";
  display: grid;
  flex: 0 0 6.4rem;
  place-items: center;
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  background: var(--second);
  color: var(--dark);
  font: 900 2.4rem/1 "Font Awesome 6 Free";
}
.pathway-list-icons a[href^="/specializations"]::before {
  content: "\f004";
}
.pathway-list-icons a[href^="/articles"]::before {
  content: "\f518";
}
.pathway-list-icons a[href^="/resources"]::before {
  content: "\f552";
}
.pathway-list-icons a:hover::before {
  background: var(--light-light);
}
@media (min-width: 961px) {
  .pathway-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 8rem;
    align-items: start;
  }
  .pathway-text h2 {
    margin-top: -.8rem; /* lines the capitals up with the top edge of the first pill */
  }
}

/* ---------- 12. Life Stage pages ---------- */
/* the lavender wave hangs over the top of the strip that follows it */
.ls-page .wave-bottom + .content_container:not(.book-cta) {
  padding-top: calc(var(--wave) + 5.6rem);
}
.ls-therapists h2 {
  text-align: center;
  text-wrap: balance;
}
.ls-therapists-list {
  justify-content: center;
  gap: 3.2rem 4.8rem;
}
.ls-therapists-list > .ls-therapist {
  width: 100%;
  max-width: 26rem;
  color: var(--medium);
  text-align: center;
  text-decoration: none;
}
.ls-therapist-photo {
  display: block;
  aspect-ratio: 4.5 / 6;
  margin: 0 0 1.6rem;
  overflow: hidden;
  border-radius: 20rem;
  box-shadow: var(--shadow);
}
.ls-therapist-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease-in-out;
}
.ls-therapist:hover .ls-therapist-photo img {
  transform: scale(1.05);
}
.ls-therapist h3 {
  margin: 0 0 .4rem;
  font-size: 2.4rem;
}
.ls-therapist:hover h3 {
  color: var(--main-deep);
}
.ls-therapist-credential {
  font-size: 1.5rem;
}
@media (max-width: 960px) {
  .ls-page .wave-bottom + .content_container:not(.book-cta) {
    padding-top: calc(var(--wave) + 4.8rem);
  }
  .ls-therapists-list {
    gap: 2.4rem;
  }
  .ls-therapists-list > .ls-therapist {
    flex: 1 1 0;
    min-width: 0;
    max-width: 18rem;
  }
  .ls-therapist h3 {
    font-size: 2rem;
  }
}
@media (max-width: 640px) {
  .ls-therapists-list > .ls-therapist {
    flex: 0 1 calc(50% - 1.2rem);
    max-width: 22rem;
  }
  .ls-therapists-list > .ls-therapist:only-child {
    flex-basis: 22rem;
  }
}

/* ---------- 13. Articles, resources, home, menus (unchanged) ---------- */

/* Menu: the "Life Stages" group inside the Specializations dropdown */
.jqueryslidemenu ul li ul li.nav-group-label {
  border-top: 1px solid hsla(0 0% 100% / 0.35);
}
.jqueryslidemenu ul li ul li.nav-group-label > a,
.jqueryslidemenu ul li:hover ul li.nav-group-label > a {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.jqueryslidemenu ul li ul li.nav-group-item > a,
.jqueryslidemenu ul li:hover ul li.nav-group-item > a {
  padding-left: 3.2rem;
}
.mm-menu li.nav-group-label > a {
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.mm-menu li.nav-group-item > a {
  padding-left: 4rem;
}

/* Article: "Looking for Support With This?" (Article -> Specialization -> Therapist) */
.article-support {
  margin: 32px 0 0;
  padding: 24px 28px;
  border-left: 4px solid var(--second);
  border-radius: 12px;
  background: var(--light-light);
}
.article-support h2 {
  margin: 0 0 12px;
  font-size: 2.2rem;
  text-transform: none;
}
.article-support ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-support li {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.5;
}
.article-support li > a {
  font-weight: 700;
}
.article-support li span {
  color: var(--medium);
}

/* Resources: link back to the related service page */
.resource-related {
  font-size: 1.4rem;
  line-height: 1.5;
}

/* Home: button under the Life Stages cards (index.php sets $featured_more_link) */
.feat-spec .content .feat-more {
  width: calc(58.5% - 3.2rem);
  margin-top: 3.2rem;
}
@media screen and (max-width: 960px) {
  .feat-spec .content .feat-more { width: 100%; }
}
/* Home "Therapy Specializations" (components/specializations/widgets/home-specializations.php, December 2026):
   the Life Stages block's design, with titles that are buttons (keyboard and screen readers) and an open card
   that grows to fit its line, which can run to four lines on a phone */
.feat-spec-specializations .content .flex .card .content-wrapper h3 {
  text-transform: none; /* the names as written ("Adult Children of ..."), as on the specialization pages */
}
.feat-spec-specializations .content .flex .card .content-wrapper h3 .feat-spec-toggle {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
}
.feat-spec-specializations .content .flex .card .content-wrapper h3 .feat-spec-toggle:focus-visible {
  outline: 2px solid var(--light-light);
  outline-offset: 4px;
  border-radius: 2px;
}
.feat-spec-specializations .content .flex .card .content-wrapper .content-holder {
  height: auto;
  max-height: 0;
}
.feat-spec-specializations .content .flex .card.active .content-wrapper .content-holder {
  height: auto;
  max-height: 32rem;
}
.feat-spec-specializations .content .flex .card:not(.active) .content-holder a {
  visibility: hidden; /* closed cards: their links are out of the tab order too */
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Header menu: 7 items + the booking button (Life Stages has its own item) */
/* Narrow desktop widths (the full header starts at 960px): keep the logo full size and every label on
   one line, and below 1100px make the labels and the booking button a little smaller so they fit */
@media screen and (min-width: 960px) and (max-width: 1200px) {
  .header-test .jqueryslidemenu a.logo { width: 10rem; flex-shrink: 0; }
  .header-test .jqueryslidemenu nav > ul > ul > li > a { white-space: nowrap; }
}
@media screen and (min-width: 960px) and (max-width: 1100px) {
  .header-test .jqueryslidemenu nav > ul > ul { column-gap: 1rem; }
  .header-test .jqueryslidemenu nav > ul > ul > li > a { font-size: 1.4rem; }
  .header-test .jqueryslidemenu a.button { padding-inline: 1.6rem; letter-spacing: 0; flex-shrink: 0; }
}
