/* Footer, launch copy. Owner 3 Nov: "footer - i like B for mobile, but for desktop i like the original one's layout better. Just give it
   B's color, font sizing/spacing + the same font for the caregiver-first hub subheader. you can place fred on the left". Owner 4 Nov:
   "mobile: 3b, though id reduce the space between the left text/wordmark and the right fred". Moved from the design copy's option d
   (design/d1.css section 4); html[data-opt-d1-footer] became html:root (same weight). Fred: <picture class="d1ft-fred"> from mvp_transform. */
/* ============================================================ 4. FOOTER (every page) */
/* Switch "Footer": a = today's, b = Fred's close, c = Fred's close + the wordmark at size. Same links, words and order. */
html:root footer.gchr-f {
  --ft-ground: #1f003d; --ft-raised: transparent; --ft-line: transparent; --ft-head: #f4f1f8; --ft-ink: #cdbfdd; --ft-muted: #cdbfdd; --ft-focus: #f4f1f8; /* m29: one palette */
  background: var(--ft-ground) !important; color: var(--ft-ink); border-top: 0 !important;
}
html:root footer.gchr-f .gchr-f__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
html:root footer.gchr-f :not(#_):not(#_) { letter-spacing: 0 !important; } /* m29: the theme's -0.3px reached every footer link */
/* the close: Fred passing the card, the lockup and the check-in on one raised panel */
html:root footer.gchr-f .gchr-f__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 72px 0 56px; }
html:root footer.gchr-f .gchr-f__action { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 36px; background: none; border-radius: 0; padding: 0; /* m29: no raised box */ margin: 0; max-width: none; width: auto; flex: none; order: -1; text-align: left; }
html:root footer.gchr-f .d1ft-fred { display: block; width: 132px; height: auto; margin: 0; grid-column: 1; grid-row: 1; }
html:root footer.gchr-f .gchr-f__lockup { grid-column: 2; margin: 0; }
html:root footer.gchr-f .gchr-f__logo { display: block; width: 168px !important; height: auto; aspect-ratio: 746 / 231; max-width: none; margin: 0 0 10px; } /* r23: keep the logo's own shape (the page sets an inline 130px width; it was stretched to 130 x 52) */
html:root footer.gchr-f .gchr-f__blurb { font: 400 22px/1.3 'ChadHeading', Georgia, serif !important; color: var(--ft-head) !important; margin: 0; letter-spacing: 0 !important; }
html:root footer.gchr-f .gchr-f__cta { grid-column: 3; justify-self: end; min-height: 52px; padding: 0 30px; border-radius: 999px !important; display: inline-flex; align-items: center; font-size: 17px; white-space: nowrap; }
/* columns */
html:root footer.gchr-f .gchr-f__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; width: 100%; }
html:root footer.gchr-f .gchr-f__col-h { font: 600 18px/1.3 'ChadHeading', Georgia, serif !important; color: var(--ft-head) !important; letter-spacing: 0 !important; text-transform: none !important; margin: 0 0 14px; }
html:root footer.gchr-f .gchr-f__list { display: grid; gap: 0; margin: 0; padding: 0; }
html:root footer.gchr-f .gchr-f__list a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ft-ink); font-size: 16px; text-decoration: none; text-underline-offset: 4px; }
html:root footer.gchr-f .gchr-f__list a:hover { color: var(--ft-head); text-decoration: underline; }
html:root footer.gchr-f a:focus-visible { outline: 2px solid var(--ft-focus); outline-offset: 3px; border-radius: 4px; }
/* social, fine print, base: one quiet band */
html:root footer.gchr-f .gchr-f__social { border-top: 0; padding: 8px 0 0; margin: 0; }
html:root footer.gchr-f .gchr-f__fine { padding: 18px 0 24px; margin: 0; border: 0; }
html:root footer.gchr-f .gchr-f__fine-text { color: var(--ft-muted) !important; font-size: 13px; line-height: 1.55; max-width: 82ch; margin: 0; }
html:root footer.gchr-f .gchr-f__base { border-top: 0; padding: 8px 0 40px; margin: 0; }
html:root footer.gchr-f :is(.gchr-f__copy, .gchr-f__email) { color: var(--ft-muted) !important; font-size: 14px; }
html:root footer.gchr-f .gchr-f__email { display: inline-flex; align-items: center; min-height: 44px; }
/* c: the wordmark at size closes the page (decorative copy of the same logo; the real one stays in the lockup) */
@media (max-width: 989px) {
  html:root footer.gchr-f .gchr-f__inner { padding: 0 20px; }
  html:root footer.gchr-f .gchr-f__top { padding: 64px 0 40px; gap: 40px; }
  html:root footer.gchr-f .gchr-f__action { grid-template-columns: minmax(0, 1fr) auto; padding: 0; gap: 20px 16px; text-align: left; }
  html:root footer.gchr-f .d1ft-fred { grid-column: 2; grid-row: 1; width: 96px; margin: 0; align-self: center; }
  html:root footer.gchr-f .gchr-f__lockup { grid-column: 1; grid-row: 1; }
  html:root footer.gchr-f .gchr-f__logo { width: 142px !important; }
  html:root footer.gchr-f .gchr-f__blurb { font-size: 20px !important; }
  html:root footer.gchr-f .gchr-f__cta { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
  html:root footer.gchr-f .gchr-f__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  html:root footer.gchr-f .gchr-f__base { padding-bottom: 88px; }
}
html:root footer.gchr-f .frend-social-row__list { justify-content: flex-start; gap: 4px; margin-left: -4px; }
html:root footer.gchr-f .frend-social-row__link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 989px) {
  html:root footer.gchr-f .gchr-f__lockup { grid-column: 1; } /* m29: Fred sits beside the lockup, no overlap box */
  /* owner 4 Nov: "reduce the space between the left text/wordmark and the right fred" -> Fred follows the lockup, not the far edge */
  /* owner 4 Nov: "the spacing is proper now in phone version of footer, just shift both rightwards so they are centered better over
     the button" -> empty side tracks centre the lockup + Fred pair over the full-width button; the 12px gap stays */
  html:root footer.gchr-f .gchr-f__action { grid-template-columns: minmax(0, 1fr) max-content max-content minmax(0, 1fr); column-gap: 12px; }
  html:root footer.gchr-f .gchr-f__lockup { grid-column: 2; }
  html:root footer.gchr-f .d1ft-fred { grid-column: 3; width: 104px; justify-self: start; }
}

@media (min-width: 990px) {
  html:root footer.gchr-f .gchr-f__top { grid-template-columns: max-content minmax(0, 1fr); gap: 64px; align-items: start; padding: 72px 0 48px; }
  html:root footer.gchr-f .gchr-f__action { grid-template-columns: auto minmax(0, 1fr); gap: 18px 22px; align-items: center; order: 0; }
  html:root footer.gchr-f .d1ft-fred { grid-column: 1; grid-row: 1 / span 2; width: 128px; align-self: center; }
  html:root footer.gchr-f .gchr-f__list a { white-space: nowrap; }
  html:root footer.gchr-f .gchr-f__lockup { grid-column: 2; grid-row: 1; }
  html:root footer.gchr-f .gchr-f__cta { grid-column: 2; grid-row: 2; justify-self: start; }
  html:root footer.gchr-f .gchr-f__cols { grid-template-columns: repeat(4, max-content); justify-content: space-between; gap: 28px; }
}
@media (min-width: 990px) and (max-width: 1199px) {
  html:root footer.gchr-f .gchr-f__top { gap: 36px; }
  html:root footer.gchr-f .d1ft-fred { width: 92px; }
  html:root footer.gchr-f .gchr-f__action { gap: 16px; }
  html:root footer.gchr-f .gchr-f__cols { grid-template-columns: repeat(4, minmax(0, auto)); gap: 20px; }
  html:root footer.gchr-f .gchr-f__list a { white-space: normal; }
}
/* the Fred is a <picture> here (phones get the mirrored render), so its img fills the grid cell */
footer.gchr-f .d1ft-fred img { display: block; width: 100%; height: auto; }
