/* v159 — only the four case studies, not homepage, legal or site-wide layout. */
/* A modal for source screenshots. Native image URLs still work with JS off. */
.case159-modal-open{overflow:hidden!important}
.case159-modal{position:fixed;z-index:999999;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(12,21,29,.88);padding:max(env(safe-area-inset-top),16px) 16px max(env(safe-area-inset-bottom),16px);}
.case159-modal-panel{position:relative;width:min(96vw,1450px);height:min(94dvh,1100px);display:flex;align-items:center;justify-content:center;}
.case159-modal-panel img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:9px;background:#fff;box-shadow:0 24px 80px #0008;}
.case159-modal-panel button{position:absolute;z-index:3;right:10px;top:10px;width:46px;height:46px;background:#fff;color:#132d38;border:1px solid #d4dce2;border-radius:50%;font:400 32px/1 system-ui;cursor:pointer;box-shadow:0 6px 18px #0003;}
.case159-modal-panel button:focus-visible{outline:3px solid #a8caf5;outline-offset:3px;}
/* AppHalt: actual settings screenshot is portrait, not a horizontally cropped ad. */
body.sober-case .case-settings-proof{display:flex;flex-direction:column;align-items:center;gap:8px;background:#f5f6f8;border-radius:20px;padding:clamp(18px,3vw,38px);}
body.sober-case .case-settings-proof>a{display:flex;align-items:center;justify-content:center;width:100%;}
body.sober-case .case-settings-proof img{display:block;max-width:min(100%,420px);height:auto;max-height:720px;object-fit:contain;border-radius:15px;box-shadow:0 16px 44px #121b3030;background:#000;}
body.sober-case .case-settings-proof figcaption{font-size:12px;color:#5a6978;text-align:center;}
body.sober-case .app159-proof{padding-top:clamp(38px,6vw,86px);padding-bottom:clamp(42px,6vw,86px);}
body.sober-case .app159-proof .evidence-heading{margin-bottom:28px;}
body.sober-case .app159-proof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body.sober-case .app159-proof-card{min-height:240px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;border-radius:18px;padding:clamp(22px,2.8vw,40px);background:linear-gradient(145deg,#f5f8ff,#fff);border:1px solid #d7e2f1;color:#142c50;}

body.sober-case .app159-proof-eyebrow{font:750 11px/1.2 ui-monospace,monospace;letter-spacing:.12em;opacity:.68;}
body.sober-case .app159-proof-card>strong{font:550 clamp(28px,3vw,48px)/1.08 Georgia,serif;letter-spacing:-.045em;overflow-wrap:anywhere;}

body.sober-case .app159-proof-card>span:not(.app159-proof-eyebrow){font-size:15px;line-height:1.4;}
body.sober-case .app159-proof-card>small{display:block;margin-top:auto;font-size:11px;line-height:1.4;opacity:.72;}
body.sober-case .app159-proof-card>a{margin-top:auto;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px;}
@media(max-width:850px){body.sober-case .app159-proof-grid{grid-template-columns:1fr;gap:10px;}body.sober-case .app159-proof-card{min-height:150px;padding:22px;gap:9px;}}
/* Cetelem: partner introduction reads like a chapter, not another splash
   screen. Reduce empty space and keep real evidence on white surfaces. */
body.sober-case #partenaires .c143-partners__hero{padding:clamp(30px,4.5vw,65px)!important;gap:clamp(20px,3vw,36px);align-items:center;}
body.sober-case #partenaires .c143-partners__hero h2{font-size:clamp(33px,3.8vw,56px)!important;max-width:21ch;line-height:1.09;}
body.sober-case #partenaires .c143-partners__brands{align-self:center;}
body.sober-case #orange-parcours-public{background:#fff;}
body.sober-case #orange-parcours-public .c152-orange__header{padding-bottom:clamp(22px,3vw,36px);align-items:end;gap:18px;}
body.sober-case #orange-parcours-public .c152-orange__header h2{max-width:21ch;}
body.sober-case .c115-source-gallery{display:none!important;}
/* Allianz: separate the two wireframes and give the end-of-study evidence
   an equal two-card hierarchy rather than pseudo-impact metrics. */
body.sober-case .ux142-board--allianz .ux142-pair, body.sober-case .v138-allianz-research .ux142-pair{gap:clamp(24px,3vw,46px);}
body.sober-case .ux142-board--allianz .ux142-artifact,body.sober-case .v138-allianz-research .ux142-artifact{padding:clamp(18px,2vw,30px);}
body.sober-case #resultat .at124-result-signals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
body.sober-case #resultat .at124-result-signals article{min-height:146px;padding:19px;border-radius:14px;border:1px solid #ffffff35;background:#ffffff0a;}
body.sober-case #resultat .at124-attribution{border-top:1px solid #ffffff30;padding-top:16px;margin-top:20px;}
body.sober-case #resultat .at124-attribution p{max-width:44ch;line-height:1.6;}
@media(max-width:760px){body.sober-case #resultat .at124-result-signals{grid-template-columns:1fr;}body.sober-case #partenaires .c143-partners__hero{padding:30px 22px!important;}}
/* Malakoff research playback: backward action is always available after first
   step; no need to start the whole animation again. */
body.sober-case .ux159-prev{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:7px 9px;border:1px solid #e6d6d1;border-radius:9px;background:#fff;color:#8d3c29;cursor:pointer;font:700 12px/1.25 var(--sans,Arial,sans-serif);white-space:nowrap;}
body.sober-case .ux159-prev svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;}
body.sober-case .ux159-prev:disabled{opacity:.36;cursor:default;}
body.sober-case .ux159-prev:focus-visible{outline:2px solid #c9604c;outline-offset:3px;}
body.sober-case .ux148-playback{gap:12px;}
body.sober-case .ux148-next{white-space:nowrap;}
@media(max-width:550px){body.sober-case .ux148-playback{gap:8px;}body.sober-case .ux159-prev{font-size:11px;padding:6px;}body.sober-case .ux159-prev span{display:none}body.sober-case .ux148-next{font-size:11px;padding-left:3px}}
/* A flow diagram—not a row of fake buttons. Conditions are editorial model
   questions, not undocumented production branch rules. */
body.sober-case .mh159-flowmap{display:flex;flex-direction:column;align-items:center;gap:11px;margin-top:26px;padding:26px clamp(16px,2.7vw,35px);border:1px solid #e5d7d2;border-radius:20px;background:radial-gradient(#ddbfb7 0.7px,transparent .7px) 0 0/18px 18px,#fcfaf8;}
body.sober-case .mh159-flowmap :is(.mh159-flow-start,.mh159-flow-question,.mh159-flow-outcome){display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;max-width:100%;border-radius:12px;padding:13px 22px;}
body.sober-case .mh159-flowmap :is(.mh159-flow-start,.mh159-flow-outcome){background:#263d4c;color:#fff;}
body.sober-case .mh159-flowmap .mh159-flow-question{border:1px solid #d5bbac;background:#fff5ec;min-width:min(100%,300px);}
body.sober-case .mh159-flowmap span{font:750 10px/1.35 ui-monospace,monospace;letter-spacing:.075em;}
body.sober-case .mh159-flowmap strong{font-size:15px;line-height:1.35;}
body.sober-case .mh159-flow-arrow{height:24px;width:2px;background:#b9acaa;position:relative;}
body.sober-case .mh159-flow-arrow:after{content:'';position:absolute;bottom:-3px;left:-4px;width:10px;height:10px;border-right:2px solid #b9acaa;border-bottom:2px solid #b9acaa;transform:rotate(45deg)}
body.sober-case .mh159-flow-branches{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;position:relative;padding-top:24px;}
body.sober-case .mh159-flow-branches:before{content:'';position:absolute;top:10px;left:16.6%;right:16.6%;height:1.5px;background:#bea5a0;}
body.sober-case .mh159-flow-branches:after{content:'';position:absolute;top:0;left:50%;height:11px;width:1.5px;background:#bea5a0;}
body.sober-case .mh159-flow-lane{position:relative;padding:17px;border:1px solid #dfc9c2;background:#fff;box-shadow:0 4px 10px #6539230c;border-radius:13px;display:flex;flex-direction:column;gap:9px;min-height:140px;}
body.sober-case .mh159-flow-lane:before{content:'';position:absolute;top:-15px;left:50%;height:15px;width:1.5px;background:#bea5a0;}
body.sober-case .mh159-flow-lane>span{color:#ab6250;}
body.sober-case .mh159-flow-lane>p{margin:0;font-size:12px;color:#596a72;line-height:1.4;}
body.sober-case .mh159-flow-decision{width:min(100%,690px);display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:8px;padding:18px;border:1px dashed #b88c7c;border-radius:15px;background:#fff4e9;}
body.sober-case .mh159-flow-decision>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;}
body.sober-case .mh159-flow-decision>div>span{padding:12px;border-radius:9px;background:#fff;border:1px solid #ead3c3;color:#5b4c4b;font-size:11px;letter-spacing:0;}
body.sober-case .mh159-flow-outcome{background:#3f7268!important;padding:16px 23px;}
body.sober-case .mh159-flow-note{font-size:11px!important;line-height:1.4!important;color:#7b716f!important;margin:4px 0 0!important;text-align:center;}
@media(max-width:720px){body.sober-case .mh159-flow-branches{grid-template-columns:1fr;max-width:540px;gap:10px;padding:14px 0 0;}body.sober-case .mh159-flow-branches:before,body.sober-case .mh159-flow-branches:after,body.sober-case .mh159-flow-lane:before{display:none}body.sober-case .mh159-flow-lane{min-height:auto;padding:14px;}body.sober-case .mh159-flow-decision>div{grid-template-columns:1fr;}body.sober-case .mh159-flowmap{padding:18px 13px;}}
/* Screenshot gallery is a photograph, not a UI card to crop. */
body.sober-case .ux142-board--mh .ux142-artifact--screen a{overflow:visible;display:grid;gap:15px;background:transparent;border:0;}
body.sober-case .ux142-board--mh .ux142-artifact--screen img{height:auto!important;max-height:none!important;object-fit:contain!important;width:100%;border-radius:12px;border:1px solid #dfe8eb;background:white;}
