/* Health Advice home: visual structure from the approved hub design. */
.health-advice-home {
  background: #fff;
  color: var(--pharmacy-text);
}

.health-home-shell {
  margin-inline: auto;
  max-width: 1420px;
  padding-inline: var(--page-pad);
}

.health-home-hero {
  background: var(--pharmacy-navy);
  color: #fff;
  padding-block: 30px 58px;
}

.health-home-breadcrumbs {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 30px;
}

.health-home-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.health-home-breadcrumbs li {
  align-items: center;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  gap: 8px;
}

.health-home-breadcrumbs a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.health-home-hero__grid {
  align-items: end;
  display: grid;
  gap: 40px 64px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 290px);
}

.health-home-eyebrow {
  color: var(--pharmacy-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 13px;
  text-transform: uppercase;
}

.health-home-eyebrow--light {
  color: var(--pharmacy-blush);
}

.health-home-hero h1 {
  color: #fff;
  font-size: clamp(2.375rem, 4vw, 3.875rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 18em;
}

.health-home-hero__intro {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 42em;
  text-wrap: pretty;
}

.health-home-search {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(3, 12, 32, 0.28);
  display: flex;
  gap: 10px;
  max-width: 640px;
  padding: 6px 8px 6px 20px;
}

.health-home-search svg {
  fill: none;
  flex: 0 0 auto;
  height: 20px;
  stroke: #6b7280;
  stroke-linecap: round;
  stroke-width: 2;
  width: 20px;
}

.health-home-search input {
  background: transparent;
  border: 0;
  color: #111827;
  flex: 1 1 auto;
  font-size: 1rem;
  min-width: 0;
  outline: 0;
  padding: 12px 0;
}

.health-home-search input:focus-visible {
  box-shadow: 0 2px 0 var(--pharmacy-blue);
}

.health-home-search button,
.health-home-cta > a {
  align-items: center;
  background: var(--pharmacy-navy);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9375rem;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  text-decoration: none;
}

.health-home-quick-search {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 18px;
}

.health-home-quick-search > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8125rem;
}

.health-home-quick-search button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font-size: 0.8125rem;
  min-height: 36px;
  padding: 7px 14px;
}

.health-home-search button:hover,
.health-home-search button:focus-visible,
.health-home-quick-search button:hover,
.health-home-quick-search button:focus-visible {
  outline: 2px solid var(--pharmacy-blush);
  outline-offset: 2px;
}

.health-home-quick-search button[aria-pressed="true"] {
  background: #fff;
  border-color: #fff;
  color: var(--pharmacy-navy);
}

.health-home-facts {
  display: grid;
  margin: 0;
}

.health-home-facts > div {
  border-bottom: 1px solid rgba(243, 184, 189, 0.34);
  padding: 16px 0;
}

.health-home-facts > div:last-child {
  border-bottom: 0;
}

.health-home-facts dt {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.health-home-facts dd {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 3px 0 0;
}

.health-home-section,
.health-home-search-results {
  padding-block: 58px 66px;
  scroll-margin-top: 24px;
}

.health-home-section--flush {
  padding-top: 0;
}

.health-home-search-results {
  border-bottom: 1px solid var(--pharmacy-line);
}

.health-home-section-heading {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.health-home-section-heading h2 {
  color: var(--pharmacy-navy);
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin: 0;
}

.health-home-section-heading > a,
.health-home-section-heading > button,
.health-home-text-link {
  background: transparent;
  border: 0;
  color: var(--pharmacy-link);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.health-home-featured {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 1fr);
}

.health-home-featured article {
  border: 1px solid var(--pharmacy-line);
  border-radius: 22px;
  overflow: hidden;
}

.health-home-featured article > a {
  color: inherit;
  display: grid;
  height: 100%;
  text-decoration: none;
}

.health-home-featured article > a:hover strong,
.health-home-featured article > a:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.health-home-featured [data-home-card="lead"] > a > img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.health-home-card-copy {
  display: grid;
  gap: 10px;
  padding: 22px 24px 25px;
}

.health-home-card-copy strong {
  color: var(--pharmacy-navy);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.25;
}

.health-home-card-copy > span:not(.health-home-pill) {
  color: var(--pharmacy-muted);
  line-height: 1.65;
}

.health-home-card-copy small,
.health-home-featured [data-home-card="compact"] small {
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.5;
}

.health-home-pill {
  background: var(--pharmacy-pale-blue);
  border-radius: 999px;
  color: var(--pharmacy-link);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  text-transform: uppercase;
  width: fit-content;
}

.health-home-featured__compact {
  align-content: start;
  display: grid;
  gap: 16px;
}

.health-home-featured [data-home-card="compact"] > a {
  align-items: center;
  gap: 17px;
  grid-template-columns: 116px minmax(0, 1fr);
  padding: 13px;
}

.health-home-featured [data-home-card="compact"][data-has-image="false"] > a {
  grid-template-columns: minmax(0, 1fr);
}

.health-home-featured [data-home-card="compact"] img {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  height: 88px;
  object-fit: cover;
  width: 116px;
}

.health-home-featured [data-home-card="compact"] > a > span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.health-home-featured [data-home-card="compact"] strong {
  color: var(--pharmacy-navy);
  font-size: 1rem;
  line-height: 1.35;
}

.health-home-category-grid,
.health-home-team-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
}

.health-home-category-card,
.health-home-team-card {
  align-content: start;
  border: 1px solid var(--pharmacy-line);
  border-radius: 22px;
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 25px;
}

.health-home-category-card__title {
  color: var(--pharmacy-navy);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.health-home-category-card > div > p {
  color: var(--pharmacy-muted);
  font-size: 0.875rem;
  margin: 6px 0 0;
}

.health-home-category-card ul {
  border-top: 1px solid #eceff3;
  list-style: none;
  margin: 0;
  padding: 0;
}

.health-home-category-card li {
  border-bottom: 1px solid #eceff3;
}

.health-home-category-card li a {
  align-items: center;
  color: #1f2937;
  display: flex;
  font-size: 0.9rem;
  font-weight: 500;
  gap: 12px;
  justify-content: space-between;
  line-height: 1.45;
  padding: 11px 0;
  text-decoration: none;
}

.health-home-trust {
  background: var(--pharmacy-surface);
  border-radius: 24px;
  padding: 42px clamp(24px, 5vw, 52px);
}

.health-home-trust__grid {
  display: grid;
  gap: 24px 30px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
}

.health-home-trust__grid > div {
  border-top: 2px solid var(--pharmacy-blue);
  padding-top: 18px;
}

.health-home-trust h3 {
  color: var(--pharmacy-navy);
  font-size: 1.02rem;
  margin: 0 0 8px;
}

.health-home-trust p,
.health-home-team-card > p {
  color: var(--pharmacy-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

.health-home-team-card > div {
  align-items: center;
  display: flex;
  gap: 15px;
}

.health-home-team-card img {
  border-radius: 50%;
  flex: 0 0 auto;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.health-home-team-card > div > span {
  display: grid;
  gap: 4px;
}

.health-home-team-card a {
  color: var(--pharmacy-navy);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.health-home-team-card small {
  color: var(--pharmacy-muted);
  line-height: 1.5;
}

.health-home-team-card__registration {
  color: var(--pharmacy-link) !important;
  font-weight: 600;
}

.health-home-guide-list {
  counter-reset: health-guide;
  display: grid;
  gap: 0 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.health-home-guide-list li {
  border-bottom: 1px solid var(--pharmacy-line);
  counter-increment: health-guide;
}

.health-home-guide-list a {
  align-items: baseline;
  color: inherit;
  display: grid;
  gap: 5px 15px;
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 16px 4px;
  text-decoration: none;
}

.health-home-guide-list a::before {
  color: #9aa2af;
  content: counter(health-guide, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 700;
  grid-row: 1 / span 2;
}

.health-home-guide-list strong {
  color: var(--pharmacy-navy);
  line-height: 1.4;
}

.health-home-guide-list span {
  color: #6b7280;
  font-size: 0.8rem;
}

.health-home-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.health-home-topics a {
  border: 1px solid var(--pharmacy-line);
  border-radius: 999px;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 15px;
  text-decoration: none;
}

.health-home-topics a:hover,
.health-home-topics a:focus-visible,
.health-home-category-card a:hover,
.health-home-category-card a:focus-visible,
.health-home-team-card a:hover,
.health-home-team-card a:focus-visible {
  color: var(--pharmacy-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.health-home-section--cta {
  padding-bottom: 88px;
}

.health-home-cta {
  align-items: center;
  background: var(--pharmacy-navy);
  border-radius: 24px;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  justify-content: space-between;
  padding: 42px clamp(24px, 5vw, 56px);
}

.health-home-cta > div {
  flex: 1 1 420px;
}

.health-home-cta h2 {
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 12px;
}

.health-home-cta p:last-child {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
  margin: 0;
}

.health-home-cta > a {
  background: var(--pharmacy-blush);
  color: var(--pharmacy-navy);
}

.health-home-search-results__list {
  border-top: 1px solid var(--pharmacy-line);
  display: grid;
}

.health-home-search-results__list > a {
  border-bottom: 1px solid var(--pharmacy-line);
  color: inherit;
  padding: 18px 8px;
  text-decoration: none;
}

.health-home-search-results__list > a > span {
  display: grid;
  gap: 6px;
}

.health-home-search-results__list small {
  color: var(--pharmacy-link);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.health-home-search-results__list strong {
  color: var(--pharmacy-navy);
  font-size: 1.05rem;
}

.health-home-search-results__list span span {
  color: var(--pharmacy-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.health-home-search-results__empty {
  border: 1px dashed #d5d9e0;
  border-radius: 20px;
  color: var(--pharmacy-muted);
  margin: 22px 0 0;
  padding: 34px 24px;
  text-align: center;
}

@media (max-width: 900px) {
  .health-home-hero__grid,
  .health-home-featured {
    grid-template-columns: 1fr;
  }

  .health-home-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .health-home-facts > div {
    border-bottom: 0;
    border-right: 1px solid rgba(243, 184, 189, 0.34);
    padding: 0 16px;
  }

  .health-home-facts > div:first-child {
    padding-left: 0;
  }

  .health-home-facts > div:last-child {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .health-home-hero {
    padding-block: 24px 42px;
  }

  .health-home-breadcrumbs {
    margin-bottom: 24px;
  }

  .health-home-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .health-home-search {
    align-items: stretch;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    padding: 8px 12px 12px;
  }

  .health-home-search svg {
    align-self: center;
  }

  .health-home-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .health-home-facts,
  .health-home-guide-list {
    grid-template-columns: 1fr;
  }

  .health-home-facts > div {
    border-bottom: 1px solid rgba(243, 184, 189, 0.34);
    border-right: 0;
    padding: 14px 0;
  }

  .health-home-facts > div:last-child {
    border-bottom: 0;
  }

  .health-home-section,
  .health-home-search-results {
    padding-block: 44px 52px;
  }

  .health-home-section--flush {
    padding-top: 0;
  }

  .health-home-featured [data-home-card="compact"] > a {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .health-home-featured [data-home-card="compact"] img {
    height: 78px;
    width: 92px;
  }

  .health-home-category-card,
  .health-home-team-card {
    padding: 21px;
  }

  .health-home-trust,
  .health-home-cta {
    border-radius: 20px;
    padding: 30px 22px;
  }

  .health-home-cta > a {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   Weight-loss pathways (Health Advice hub, below the hero)
   --------------------------------------------------------------------------- */
.health-home-section--pathways {
  padding-block: 52px 8px;
}

.wl-pathways {
  background: var(--pharmacy-surface);
  border-radius: 24px;
  padding: 40px min(6vw, 48px);
}

.wl-pathways .health-home-section-heading {
  align-items: flex-end;
  margin-bottom: 28px;
}

.wl-pathways__intro {
  color: var(--pharmacy-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 42em;
}

.wl-pathways__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.wl-pathways__tab {
  align-items: baseline;
  background: #fff;
  border: 1px solid #d5d9e0;
  border-radius: 999px;
  color: #1f2937;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  gap: 8px;
  padding: 11px 20px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wl-pathways__tab:hover {
  border-color: var(--pharmacy-navy);
}

.wl-pathways__tab[aria-selected="true"] {
  background: var(--pharmacy-navy);
  border-color: var(--pharmacy-navy);
  color: #fff;
}

.wl-pathways__molecule {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.75;
}

.wl-pathways__summary {
  align-items: baseline;
  border-bottom: 1px solid #dfe3ea;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 20px;
}

.wl-pathways__summary p {
  color: var(--pharmacy-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 48em;
}

.wl-pathways__summary a {
  color: var(--pharmacy-link);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wl-pathways__steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.wl-pathways__step {
  align-content: start;
  background: #fff;
  border: 1px solid var(--pharmacy-line);
  border-radius: 20px;
  display: grid;
  gap: 6px;
  padding: 24px;
  transition: border-color 0.18s ease;
}

.wl-pathways__step:hover {
  border-color: var(--pharmacy-navy);
}

.wl-pathways__stage {
  color: #9aa2af;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.wl-pathways__step h3 {
  color: var(--pharmacy-navy);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.wl-pathways__step-blurb {
  color: var(--pharmacy-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 8px;
}

.wl-pathways__step ul {
  border-top: 1px solid #eceff3;
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wl-pathways__step li {
  border-bottom: 1px solid #eceff3;
}

.wl-pathways__step li a {
  align-items: center;
  color: #1f2937;
  display: flex;
  font-size: 0.9375rem;
  font-weight: 500;
  gap: 12px;
  justify-content: space-between;
  padding: 11px 0;
  text-decoration: none;
}

.wl-pathways__step li a:hover,
.wl-pathways__step li a:focus-visible {
  color: var(--pharmacy-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wl-pathways__step li span {
  color: #9aa2af;
}

.wl-pathways__cta {
  align-items: center;
  background: var(--pharmacy-navy);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: space-between;
  margin-top: 28px;
  padding: 20px 24px;
}

.wl-pathways__cta p {
  color: #fff;
  font-size: 1.0625rem;
  line-height: 1.5;
  margin: 0;
  max-width: 46em;
}

.wl-pathways__cta a {
  align-items: center;
  background: var(--pharmacy-blush);
  border-radius: 999px;
  color: var(--pharmacy-navy);
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 600;
  gap: 10px;
  padding: 13px 26px;
  text-decoration: none;
  transition: background 0.18s ease;
  white-space: nowrap;
}

.wl-pathways__cta a:hover,
.wl-pathways__cta a:focus-visible {
  background: #fff;
}

/* ---------------------------------------------------------------------------
   Team carousel
   --------------------------------------------------------------------------- */
.health-home-team-heading-actions {
  align-items: center;
  display: flex;
  gap: 20px;
}

.health-home-team-controls {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.health-home-team-arrow {
  align-items: center;
  background: #fff;
  border: 1px solid #d5d9e0;
  border-radius: 50%;
  color: var(--pharmacy-navy);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  width: 44px;
}

.health-home-team-arrow svg {
  height: 18px;
  width: 18px;
}

.health-home-team-arrow:hover:not([disabled]) {
  background: var(--pharmacy-surface);
  border-color: var(--pharmacy-navy);
}

.health-home-team-arrow[disabled] {
  cursor: default;
  opacity: 0.4;
}

.health-home-team-rail {
  display: flex;
  gap: 20px;
  margin-inline: -4px;
  overflow-x: auto;
  padding: 4px 4px 8px;
  /* Smoothness is requested per call in JS so programmatic paging stays
     reliable; a CSS scroll-behavior here silently swallows scrollBy(). */
  scroll-padding-left: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.health-home-team-rail::-webkit-scrollbar {
  display: none;
}

.health-home-team-rail .health-home-team-card {
  flex: 0 0 clamp(258px, 80%, 320px);
  scroll-snap-align: start;
}

.health-home-team-progress {
  background: #e5e7eb;
  border-radius: 2px;
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
}

.health-home-team-progress span {
  background: var(--pharmacy-navy);
  border-radius: 2px;
  display: block;
  height: 100%;
  transition: transform 0.18s ease, width 0.18s ease;
  width: 20%;
}

@media (prefers-reduced-motion: reduce) {
  .health-home-team-progress span,
  .wl-pathways__tab,
  .wl-pathways__step {
    transition: none;
  }
}

@media (max-width: 760px) {
  .wl-pathways {
    border-radius: 20px;
    padding: 28px 20px;
  }

  .wl-pathways__cta {
    padding: 20px;
  }

  .wl-pathways__cta a {
    width: 100%;
    justify-content: center;
  }

  .health-home-team-heading-actions {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* Video guides. The rail itself is styled by the shared video-rail sheet, which
   contributor profiles use too, so both surfaces stay identical. */
.health-home-video-intro {
  color: var(--pharmacy-muted, #4b5563);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 62ch;
}
