/* v158: home-only hardening after seven-perspective review.
   Keep engines, sticky geometry, project routes and client pages unchanged. */

/* On Malakoff mobile the progress rail already identifies the chapter. The
   duplicate bottom-left label is both tiny and visually disconnected. */
@media (max-width: 800px) {
  body.sober-home #malakoff-experience .client-story-position .gn93-progress { display: none !important; }
  body.sober-home #malakoff-experience .mh10-product-mobile .mh158-breakdown {
    display: block;
    margin-top: 10px;
    padding: 12px 14px;
    background: #f3f7f6;
    border: 1px solid #e1eae8;
  }
  body.sober-home #malakoff-experience .mh10-product-mobile .mh158-breakdown h3 {
    font-size: 12px;
    margin: 0 0 5px;
  }
  body.sober-home #malakoff-experience .mh10-product-mobile .mh158-breakdown > div {
    display: flex;
    justify-content: space-between;
    min-height: 24px;
    font-size: 11px;
    border-color: #d9e6e2;
  }
  body.sober-home #malakoff-experience .mh10-product-mobile .mh158-breakdown strong {
    font-size: 12px;
    margin-left: 8px;
  }
  body.sober-home #malakoff-experience .mh10-product-mobile .mh158-breakdown .mh158-balance {
    color: #244b42;
    font-weight: 700;
    border-top: 1px solid #c9dbd4;
    border-bottom: 0;
  }
  body.sober-home #malakoff-experience .mh10-product-mobile .mh10-app-row:first-of-type b { font-size: 17px; }
  body.sober-home #malakoff-experience .mh10-product-mobile .mh10-app-row:first-of-type b small { font-size: 10px; }
}
/* Desktop also has enough information without an extra footer chapter label. */
body.sober-home #malakoff-experience .client-story-position .gn93-progress { opacity: .6; }

/* The native AppHalt screenshot was spread across three stretched grid rows:
   buttons, picture and caption appeared unrelated. Treat them as one figure. */
body.sober-home #apphalt-produit .ah-product-demo-host .ah-real-capture {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 1.7svh, 16px);
}
body.sober-home #apphalt-produit .ah-product-demo-host .ah-real-capture .ah-capture-views {
  flex: 0 0 auto;
}
body.sober-home #apphalt-produit .ah-product-demo-host .ah-real-capture img {
  flex: 0 1 auto;
  min-height: 0;
}
body.sober-home #apphalt-produit .ah-product-demo-host .ah-real-capture figcaption {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
  max-width: 35ch;
}
/* Minimum text sizes for supporting product context without enlarging the
   full scene beyond the short portrait viewport. */
@media (max-width: 600px) {
  body.sober-home #apphalt-produit .ah-product-demo-host .ah-real-capture figcaption { font-size: 12px; line-height: 1.45; }
  body.sober-home #allianz-trade-pay .at84-beat p { font-size: clamp(13px, 3.45vw, 15px); }
}

/* Labels are never a substitute for an interface. At reduced motion the
   same content remains readable in ordinary document flow. */
@media (prefers-reduced-motion: reduce) {
  body.sober-home #apphalt-produit .ah-product-demo-host .ah-real-capture { transition: none !important; }
}
