/* Health-service page layout (Men's Wellness, Men's Sexual Health and the rest of that family), 2026-10-26.
   Scoped to body.nao-v2-wellness or body.nao-health-service.
   Layout only: no text, link, image file or head tag is changed here.
   Section order is set in the HTML by scripts/restructure-wellness.py (session folder). */

html { background: #fff; font-variant-ligatures: no-common-ligatures; }
:is(body.nao-v2-wellness, body.nao-health-service) { background: #fff; }
:is(body.nao-v2-wellness, body.nao-health-service) h1,
:is(body.nao-v2-wellness, body.nao-health-service) h2,
:is(body.nao-v2-wellness, body.nao-health-service) h3 { text-wrap: balance; }

/* 1. Hero collage: the image file crops its right-hand column of photos, so fade that edge
      out instead of showing sliced photos against the screen edge. */
:is(body.nao-v2-wellness, body.nao-health-service) .hero-img img {
  -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 98%);
  mask-image: linear-gradient(to right, #000 70%, transparent 98%);
}

/* Health-service pages other than Wellness (which keeps its Oct 23 hero offset): hero text centred
   beside the taller photo collage on desktop, so no empty band sits under the button. */
@media (min-width: 1081px) {
  body.nao-health-service .hero-section { align-items: center; }
}

/* 2. The three stat cards next to the clinician photo have icons but no text on the live page.
      Their markup stays; the section is hidden and the photo now sits in the steps panel. */
:is(body.nao-v2-wellness, body.nao-health-service) .second-fold { display: none; }

/* 3. Empty container that left a blank band before the footer */
:is(body.nao-v2-wellness, body.nao-health-service) > .container-6:not(:has(*)) { display: none; }

/* 5. Service cards: all five in one row on desktop, 3 + 2 on tablet, a list on phones */
:is(body.nao-v2-wellness, body.nao-health-service) .our-services-section { margin: 72px auto 0; }
:is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
:is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container {
  flex: 0 0 20%;
  width: 20%;
  padding: 28px 18px;
  border: 0;
  border-right: 1px solid #f1f1f1;
}
:is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container:last-child { border-right: 0; }
:is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container h3 { margin: 16px 0 10px; }
:is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container .book-now-btn { line-height: 1.4; }

@media (max-width: 899px) {
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper { row-gap: 8px; }
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container { flex-basis: 33.333%; width: 33.333%; }
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container:nth-child(3) { border-right: 0; }
}

@media (max-width: 600px) {
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section { margin-top: 40px; }
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper { row-gap: 0; padding: 0 16px; }
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container,
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container:nth-child(n) {
    flex: 0 0 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
    align-items: center;
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid #f1f1f1;
    text-align: left;
  }
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container:last-child { border-bottom: 0; }
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container img { grid-row: 1 / span 2; width: 56px; height: 56px; }
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container h3 { margin: 0; text-align: left; }
  :is(body.nao-v2-wellness, body.nao-health-service) .our-services-section .service-list-wrapper .service-container .book-now-btn { justify-self: start; }
}

/* 6. Steps: intro panel (with the clinician photo) beside the three steps, one title colour scheme */
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 64px;
  align-items: start;
  max-width: 1200px;
  min-height: 0;
  margin: 96px auto;
  padding: 0 24px;
  box-sizing: border-box;
}
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .button-title {
  width: auto;
  min-height: 0;
  padding: 40px;
  box-sizing: border-box;
  text-align: left;
}
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .button-title .text-20 { text-align: left; }
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .button-title .text-21 { text-align: left; margin-top: 16px; }
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .image-container img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 28px;
  border-radius: 16px;
}
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items {
  left: 0;
  row-gap: 40px;
  padding-top: 40px;
}
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items > div {
  display: flex;
  align-items: flex-start;
  column-gap: 24px;
  width: 100%;
}
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items .number { flex: 0 0 auto; }
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items .text-23,
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items .text-25 { flex: 1 1 auto; width: auto; align-items: stretch; }
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items .text-20 { display: block; text-align: left; text-wrap: balance; }
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items .text-20 span { display: inline; color: #1e3565; }
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items .text-20 span.partner-with-your-primary-care-provider-1,
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items .text-20 span.first-dose-of-compounded-semaglutide-1 { color: #4f9a3d; }
/* Some titles split into two spans with no space between them ("Private" + "Consultation");
   a space here keeps the words apart without editing the copy (extra spaces collapse). */
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items .text-20 span + span::before { content: " "; }
:is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items .text-24 { text-wrap: pretty; }

@media (max-width: 1080px) {
  :is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    margin: 64px auto;
    padding: 0 16px;
  }
  :is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .button-title { width: auto; min-height: 0; padding: 32px 24px; }
  :is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items { margin-bottom: 0; padding-top: 24px; }
}
@media (max-width: 600px) {
  :is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .button-title { padding: 24px 20px; }
  :is(body.nao-v2-wellness, body.nao-health-service) .how-it-works-section .items > div { column-gap: 16px; }
}

/* Phone tap targets: hero and location-search buttons at least 44px tall */
@media (max-width: 600px) {
  :is(body.nao-v2-wellness, body.nao-health-service) .hero-section .button.w-button,
  :is(body.nao-v2-wellness, body.nao-health-service) .map-wrapper .search-loc-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
  }
}

/* 7. Spacing between the reordered blocks */
:is(body.nao-v2-wellness, body.nao-health-service) .map-wrapper { margin-top: 0; margin-bottom: 0; }
:is(body.nao-v2-wellness, body.nao-health-service) .nao-completion-guide { margin-top: 72px; }
:is(body.nao-v2-wellness, body.nao-health-service) .nao-discovery-related { margin: 48px auto 64px; }

/* Health & Wellness menu pages on other layouts (body.nao-health-other): Men's Mental Health shows a
   strip of reviewer name tags placed at scattered offsets, which left a blank band; one centred row. */
body.nao-health-other .frame-1618873086 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: static;
  width: auto;
  max-width: 1100px;
  height: auto;
  margin: 40px auto;
  padding: 0 24px;
  box-sizing: border-box;
}
body.nao-health-other .frame-1618873086 > div {
  /* the column wrappers drop out so every tag sits in the same row */
  display: contents;
}
body.nao-health-other .frame-1618873086 [class^="div-tile_root"] {
  flex: 0 0 auto;
  width: auto;
  min-width: 150px;
  position: static;
  margin: 0;
  transform: none;
  inset: auto;
}
