/* eggnums-v24zw-same — Nov 17 2026
   Footer is one row: left = “©2026 Hatch Labs™” + privacy / terms / security,
   right = locked 157px product-of mark (clickable, linked to hatchlabs.com).
   Desktop: everything on one line, mark 157px, aspect 133/38.
   Phone: if the text + 157px mark cannot share one line, the legal text
   stacks as two short lines on the left (© line, then the links) and stays
   in the same row as the mark. 12px type kept. Mark may shrink via CSS
   only (no edits to the locked SVG) on very narrow widths so 320–393
   never sideways-scroll. Text and mark align to the bottom of the row.
   Bottom padding tightened so the page ends right after the footer.
*/

/* One row: legal group left, mark right. */
html body footer .footer-inner,
html body footer .wrap.footer-inner,
html body footer .footer-inner.wrap,
html body footer.site-foot .footer-inner{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  justify-content:space-between !important;
  align-items:flex-end !important;
  gap:12px !important;
  column-gap:12px !important;
  row-gap:0 !important;
  width:100%;
  box-sizing:border-box !important;
}
html body footer .footer-legal{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start !important;
  align-items:baseline !important;
  gap:1em !important;
  column-gap:1em !important;
  row-gap:0 !important;
  flex:1 1 auto;
  min-width:0;
  max-width:calc(100% - 169px); /* 157px mark + 12px gap */
}
html body footer .footer-copy{
  flex:0 0 auto !important;
  white-space:nowrap !important;
  color:#9C968E !important;
  margin:0 !important;
}
html body footer .footer-links{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  justify-content:flex-start !important;
  align-items:baseline !important;
  gap:1em !important;
  column-gap:1em !important;
  row-gap:0 !important;
  flex:0 0 auto !important;
  width:auto !important;
}

/* Mark sits in the same row, shrink-wrapped to the image. */
html body footer .hl-footer-credit-grokbot{
  box-sizing:border-box;
  display:block !important;
  flex:0 1 157px;
  width:157px;
  max-width:157px;
  min-width:0;
  margin:0 !important;
  padding:0 !important;
  text-align:right;
}
html body footer .hl-footer-credit-grokbot img{
  display:block;
  width:157px !important;
  max-width:100%;
  height:auto !important;
  aspect-ratio:133/38;
  border:0;
  opacity:1;
}

/* Below ~600px a single 12px text line + 157px mark does not fit
   (text alone is ~308px). Stack the legal text as two short lines
   on the left, keep the mark in the same row. */
@media (max-width: 600px){
  html body footer .footer-legal{
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    justify-content:flex-end !important;
    align-items:flex-start !important;
    gap:0.3em !important;
    row-gap:0.3em !important;
    column-gap:0 !important;
    max-width:none;
    flex:1 1 auto;
  }
  /* Let the mark shrink if the longest legal line + 157px would overflow
     (e.g. 320-wide). 12px Space Mono “privacy terms security” with 1em
     gaps is about 171px; leave a 10px gutter. */
  html body footer .hl-footer-credit-grokbot{
    flex:0 1 157px;
    width:auto;
    max-width:157px;
    min-width:96px;
  }
  html body footer .hl-footer-credit-grokbot img{
    width:min(157px, calc(100vw - 48px - 170px - 12px)) !important;
    max-width:100%;
    height:auto !important;
    aspect-ratio:133/38;
  }
}

/* End the page right after the footer. Keep a little room plus iPhone safe area. */
html body footer{
  padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}
