/* v157 — HOME ONLY. Editorial clarity and legibility, not a new motion engine.
   Restrict every rule to the homepage; client pages and case studies are untouched. */

/* MALAKOFF — one design decision rather than a 'Shipped' status badge. */
body.sober-home #malakoff-experience .mh-outcome.mh157-outcome {
  display:flex; align-items:flex-start; gap:12px; width:100%; max-width:415px;
  margin:16px 0 0; padding:0; background:none; border:0; border-radius:0;
  box-shadow:none; color:var(--mh3-ink,#fff);
}
body.sober-home #malakoff-experience .mh157-rule {
  display:block; flex:0 0 3px; width:3px; height:54px; margin-top:2px;
  background:var(--mh3-accent,#ffb398); border-radius:4px;
}
body.sober-home #malakoff-experience .mh157-outcome > div {min-width:0}
body.sober-home #malakoff-experience .mh157-outcome .mh157-eyebrow {
  display:block; margin:0 0 6px; font:700 10px/1.35 var(--sans,Arial,sans-serif);
  letter-spacing:.12em; color:var(--mh3-accent,#ffb398);
}
body.sober-home #malakoff-experience .mh157-outcome p {
  margin:0; max-width:30ch; font:500 15px/1.45 var(--sans,Arial,sans-serif);
  color:var(--mh3-ink,#fff);
}
/* Reduce low-value filler in the portal preview, focus the reimbursement action. */
body.sober-home #malakoff-experience .mh10-products--single .mh10-product-mobile .mh10-app-row:last-child {display:none}
body.sober-home #malakoff-experience .mh10-products--single .mh10-product-mobile .mh10-app-services {display:none}
body.sober-home #malakoff-experience .mh10-products--single .mh10-product-mobile .mh10-app-feed>p {display:none}
body.sober-home #malakoff-experience .mh10-products--single .mh10-product-mobile .mh10-app-row strong {font-size:13px}
body.sober-home #malakoff-experience .mh10-products--single .mh10-product-mobile .mh10-app-row small {font-size:10px}
@media(max-width:1100px){
  body.sober-home #malakoff-experience .mh3-main{gap:5px}
}
@media(max-width:600px){
  body.sober-home #malakoff-experience .mh3-main {grid-template-rows:148px minmax(0,1fr)!important;gap:4px}
  body.sober-home #malakoff-experience .mh3-copy-stack {height:148px!important;padding-right:4px}
  body.sober-home #malakoff-experience .mh3-copy {padding-top:4px;justify-content:flex-start}
  body.sober-home #malakoff-experience .mh3-copy h2 {font-size:clamp(24px,6.35vw,30px);line-height:1.02;max-width:24ch}
  body.sober-home #malakoff-experience .mh3-copy .mh3-intro {font-size:12px;line-height:1.4;margin-top:9px;max-width:44ch}
  body.sober-home #malakoff-experience .mh157-outcome {margin-top:10px;gap:9px}
  body.sober-home #malakoff-experience .mh157-rule {height:42px}
  body.sober-home #malakoff-experience .mh157-outcome .mh157-eyebrow {font-size:8px;margin-bottom:2px}
  body.sober-home #malakoff-experience .mh157-outcome p {font-size:11px;line-height:1.35;max-width:36ch}
  body.sober-home #malakoff-experience .mh3-visual {max-height:none;min-height:0}
}
@media(max-width:600px) and (max-height:740px){
  body.sober-home #malakoff-experience .mh3-main{grid-template-rows:128px minmax(0,1fr)!important}
  body.sober-home #malakoff-experience .mh3-copy-stack{height:128px!important}
  body.sober-home #malakoff-experience .mh3-copy h2{font-size:25px}
  body.sober-home #malakoff-experience .mh3-copy .mh3-intro{font-size:11px;margin-top:6px}
}

/* ALLIANZ — preserve the five-phase morph, make every phase answer one question.
   The business order is the anchor; duplicated metadata should not compete. */
body.sober-home #allianz-trade-pay .ap-order-status,
body.sober-home #allianz-trade-pay .ap-module-number,
body.sober-home #allianz-trade-pay .ap-note,
body.sober-home #allianz-trade-pay .ap-schedule-total,
body.sober-home #allianz-trade-pay .ap-footer{display:none!important}
body.sober-home #allianz-trade-pay .ap-art[data-ap-phase="0"] .ap-need p{display:none}
body.sober-home #allianz-trade-pay .ap-art[data-ap-phase="0"] .ap-need strong{max-width:none}
body.sober-home #allianz-trade-pay .ap-art[data-ap-phase="0"] .ap-module-heading{margin-bottom:10px}
body.sober-home #allianz-trade-pay .ap-art:is([data-ap-phase="3"],[data-ap-phase="4"]) .ap-payment-details{display:none}
body.sober-home #allianz-trade-pay .ap-art:is([data-ap-phase="3"],[data-ap-phase="4"]) .ap-dates>div:first-child{display:none}
body.sober-home #allianz-trade-pay .ap-art:is([data-ap-phase="3"],[data-ap-phase="4"]) .ap-dates>div:last-child{text-align:left}
body.sober-home #allianz-trade-pay .ap-module-heading {letter-spacing:.01em}
body.sober-home #allianz-trade-pay .at84-beat p {max-width:37ch}
@media(max-width:800px){
  body.sober-home #allianz-trade-pay .at84-stage-inner{padding-right:35px;gap:12px}
  body.sober-home #allianz-trade-pay .at84-beat h3{font-size:clamp(29px,7.5vw,38px);line-height:1.07}
  body.sober-home #allianz-trade-pay .at84-beat p{font-size:13px;line-height:1.45}
  body.sober-home #allianz-trade-pay .ap-context{margin-bottom:8px}
  body.sober-home #allianz-trade-pay .ap-art[data-ap-phase="0"] .ap-module{box-shadow:none}
  body.sober-home #allianz-trade-pay .ap-art[data-ap-phase="0"] .ap-need strong{font-size:14px;line-height:1.3}
  body.sober-home #allianz-trade-pay .ap-art[data-ap-phase="0"] .ap-module-heading{margin-bottom:5px}
  body.sober-home #allianz-trade-pay .ap-art[data-ap-phase="0"] .ap-module {padding:11px 13px}
}
@media(max-width:600px) and (max-height:720px){
  body.sober-home #allianz-trade-pay .at84-stage-inner{padding-right:40px;gap:8px}
  body.sober-home #allianz-trade-pay .at84-beat h3{font-size:28px}
  body.sober-home #allianz-trade-pay .at84-beat p{font-size:12px}
}

/* APPHALT — an idea, one relevant choice, then a real product screenshot.
   Do not crowd the native screenshot with invented annotations or metrics. */
body.sober-home #apphalt-produit .ah157-guardrail{
  margin:12px 0 0; font:500 12px/1.4 var(--sans,Arial,sans-serif);
  color:#c3d3f2;
}
body.sober-home #apphalt-produit .ah157-resume{margin:8px 0 0;font-size:11px;line-height:1.4}
body.sober-home #apphalt-produit .ah-wire-rows{display:grid;grid-template-rows:repeat(3,minmax(34px,1fr))}
body.sober-home #apphalt-produit .ah-wire-row{height:auto}
body.sober-home #apphalt-produit .ah-real-capture[data-capture-view="action"] img{
  width:min(100%,680px);height:auto;max-height:60%;object-fit:contain;
  border-radius:14px;box-shadow:0 20px 60px #09142e35;
}
body.sober-home #apphalt-produit .ah-real-capture[data-capture-view="dashboard"] img{
  width:min(100%,460px);max-height:calc(100% - 52px);object-fit:contain;
}
body.sober-home #apphalt-produit .ah-capture-views {gap:8px}
body.sober-home #apphalt-produit .ah-capture-views button{white-space:normal;text-align:center;line-height:1.2}
body.sober-home #apphalt-produit .ah-real-capture[data-capture-view="action"] figcaption {max-width:42ch}
body.sober-home #apphalt-produit .ah-real-capture figcaption small {display:none}
@media(max-width:800px){
  body.sober-home #apphalt-produit .ah-real-capture[data-capture-view="action"] img{width:min(100%,610px);max-height:63%;border-radius:12px}
  body.sober-home #apphalt-produit .ah-real-capture[data-capture-view="dashboard"] img{width:min(100%,420px);max-height:calc(100% - 65px)}
  body.sober-home #apphalt-produit .ah157-guardrail{font-size:11px}
}
@media(max-width:600px){
  body.sober-home #apphalt-produit .ah-real-capture[data-capture-view="action"] img{width:min(100%,380px);max-height:60%}
  body.sober-home #apphalt-produit .ah-real-capture figcaption{font-size:11px;line-height:1.4}
  body.sober-home #apphalt-produit .ah-capture-views button{min-height:42px;font-size:12px}
  body.sober-home #apphalt-produit .ah-logic-decisions>strong{max-width:24ch}
}
@media(prefers-reduced-motion:reduce){
  body.sober-home #malakoff-experience .mh157-outcome,
  body.sober-home #apphalt-produit .ah-real-capture img{transition:none!important}
}
/* The scene already has an accessible provenance note after the animation.
   Avoid an unreadable micro-caption inside the illustrated screen. */
body.sober-home #malakoff-experience .mh3-visual .gn146-provenance {display:none}
body.sober-home #malakoff-experience .mh-fallback .mh-outcome>strong {font-size:14px;letter-spacing:0;line-height:1.35}
@media(max-width:600px){
 body.sober-home #malakoff-experience .client-story-position .gn93-progress{display:none}
}
