/* Local V6 review: scoped editorial placement; approved figure files remain unchanged. */
#judi-case-study #judi-project-preview .pj-review-note { font-size:14px; line-height:1.6; color:#59625d; margin-top:24px; }
#judi-case-study #judi-project-preview #success-metrics .pj-metrics { margin-top:28px; }
#judi-case-study #judi-project-preview .pj-approved-diagram img { border-radius:0; }
#judi-case-study #judi-project-preview .pj-approved-diagram { margin-top:36px; }
#judi-case-study #judi-project-preview #design-snapshot [data-pd-snapshot-demo] { margin-top:28px; }
#judi-case-study #judi-project-preview #admin-oversight > .pj-interactive-slot { margin-top:36px; }
#judi-case-study #judi-project-preview .pj-ai-direction > .pj-copy { margin-top:24px; }

/* Small-screen image enlargement preserves diagram text at a readable scale. */
@media(max-width:600px){
 #judi-case-study #judi-project-preview .pj-lightbox [data-modal-content]{overflow:auto;max-height:75vh;}
 #judi-case-study #judi-project-preview .pj-lightbox [data-modal-content] img{width:900px;min-width:900px;max-width:none;}
}

/* Full-copy local review: keep editorial hierarchy separate from embedded product UI. */
#judi-case-study #judi-project-preview .pj-detail-group { margin-top:36px; }
#judi-case-study #judi-project-preview .pj-detail-group > h4,
#judi-case-study #judi-project-preview .pj-task-comparison > h4,
#judi-case-study #judi-project-preview .pj-ai-direction-heading > h4 { font-family:inherit; font-size:20px; line-height:1.45; font-weight:500; margin:0 0 24px; }
#judi-case-study #judi-project-preview .pj-task-comparison > h4 { margin-top:48px; }
#judi-case-study #judi-project-preview .pj-editorial-table { width:100%; overflow-x:auto; margin:28px 0; }
#judi-case-study #judi-project-preview .pj-editorial-table table { width:100%; border-collapse:collapse; font-size:17px; line-height:1.6; text-align:left; }
#judi-case-study #judi-project-preview .pj-editorial-table th,
#judi-case-study #judi-project-preview .pj-editorial-table td { padding:18px 20px 18px 0; border-bottom:1px solid #e2e6e3; vertical-align:top; min-width:120px; }
#judi-case-study #judi-project-preview .pj-editorial-table th { font-weight:500; }
#judi-case-study #judi-project-preview .pj-editorial-table thead th { color:#59625d; font-size:15px; }
#judi-case-study #judi-project-preview .pj-role-illustration { max-width:440px; margin:36px auto 0; }
#judi-case-study #judi-project-preview .pj-role-illustration img { width:100%; }
#judi-case-study #judi-project-preview .pj-subsection > .pj-interactive-slot,
#judi-case-study #judi-project-preview .pj-subsection > .pj-micro-slot,
#judi-case-study #judi-project-preview .pj-subsection > .pj-ai-directions { margin-top:36px; }
#judi-case-study #judi-project-preview .pj-detail-group .pj-figure { margin-top:36px; }
@media(max-width:600px){
 #judi-case-study #judi-project-preview .pj-editorial-table table { font-size:16px; }
 #judi-case-study #judi-project-preview .pj-editorial-table th,
 #judi-case-study #judi-project-preview .pj-editorial-table td { padding:14px 14px 14px 0; }
}

/* User-requested layout corrections. No editorial wording or scenario data changes. */
#judi-case-study #judi-project-preview .pj-key-underline {
 font-weight:400; text-decoration-line:underline; text-decoration-color:#DCD8F7;
 text-decoration-thickness:3px; text-underline-offset:2px; text-decoration-skip-ink:none;
}
#judi-case-study #judi-project-preview .pj-editorial-table tbody th { font-weight:400; }
#judi-case-study #judi-project-preview .pj-user-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:40px; margin-top:40px; }
#judi-case-study #judi-project-preview .pj-user-groups > .pj-subsection { margin:0; display:flex; flex-direction:column; min-width:0; }
#judi-case-study #judi-project-preview .pj-user-groups .pj-subsection-heading { margin:0; }
#judi-case-study #judi-project-preview .pj-user-groups h3 { margin:0; }
#judi-case-study #judi-project-preview .pj-user-groups .pj-role-illustration { width:100%; max-width:none; margin:28px 0 0; padding-top:0; }
#judi-case-study #judi-project-preview .pj-task-comparison > h4 { margin-top:32px; margin-bottom:0; }
#judi-case-study #judi-project-preview .pj-task-comparison > .pj-approved-diagram { margin-top:24px; }
#judi-case-study #judi-project-preview #final-design-enter-with-what-you-know .pj-editorial-table th:first-child { width:190px; min-width:190px; white-space:nowrap; }
#judi-case-study #judi-project-preview #final-design-enter-with-what-you-know .pj-editorial-table td { min-width:0; }
@media(max-width:600px){
 #judi-case-study #judi-project-preview .pj-user-groups { grid-template-columns:minmax(0,1fr); gap:40px; }
 #judi-case-study #judi-project-preview .pj-user-groups .pj-role-illustration { max-width:440px; margin-left:auto; margin-right:auto; }
 #judi-case-study #judi-project-preview #final-design-enter-with-what-you-know .pj-editorial-table th:first-child { width:132px; min-width:132px; padding-right:14px; }
}

/* November 3 visual delivery: preserve native image proportions and desktop demos. */
#judi-case-study #judi-project-preview .pj-imagebutton img { height:auto; }
#judi-case-study #judi-project-preview .pj-delivery-demo { margin-top:28px; min-width:0; }
#judi-case-study #judi-project-preview .pj-delivery-demo iframe { display:block; width:100%; height:720px; border:1px solid #dce0e6; border-radius:12px; background:#f7f8fa; }
#judi-case-study #judi-project-preview .pj-delivery-controls { display:flex; justify-content:flex-end; gap:24px; margin-top:12px; align-items:center; }
#judi-case-study #judi-project-preview .pj-delivery-controls :is(a,button) { background:none; border:0; padding:4px 0; color:#59625d; line-height:1.5; font-family:inherit; font-size:14px; font-weight:400; cursor:pointer; text-decoration:none; }
#judi-case-study #judi-project-preview .pj-delivery-controls :is(a,button):hover { text-decoration:underline; }
#judi-case-study #judi-project-preview .pj-demo-entries { display:flex; flex-wrap:wrap; gap:24px; margin-bottom:16px; }
#judi-case-study #judi-project-preview .pj-demo-entries button { font:inherit; font-size:14px; font-weight:400; color:#59625d; background:none; border:0; border-bottom:2px solid transparent; padding:8px 0; cursor:pointer; }
#judi-case-study #judi-project-preview .pj-demo-entries button[aria-pressed="true"] { color:#262927; border-color:#DCD8F7; }
#judi-case-study #judi-project-preview .pj-demo-scroll-hint { display:none; }
#judi-case-study #judi-project-preview .pj-delivery-details { margin-top:24px; }
#judi-case-study #judi-project-preview .pj-delivery-details summary { font-size:16px; color:#59625d; cursor:pointer; }
#judi-case-study #judi-project-preview .pj-lightbox [data-modal-content] { overflow:auto; max-height:80vh; }
#judi-case-study #judi-project-preview .pj-lightbox [data-modal-content] img { width:auto; min-width:min(1200px,90vw); max-width:none; height:auto; }
@media(max-width:900px){
 #judi-case-study #judi-project-preview .pj-delivery-demo iframe { height:680px; }
 #judi-case-study #judi-project-preview .pj-demo-scroll-hint { display:block; font-size:13px; line-height:1.5; color:#59625d; margin:12px 0 0; }
 #judi-case-study #judi-project-preview .pj-lightbox [data-modal-content] img { width:1200px; min-width:1200px; }
}

/* One shared 1440 × 960 desktop viewport. No content-driven height or nested frames. */
#judi-case-study #judi-project-preview .pj-desktop-scroll{overflow-x:auto;max-width:100%;padding:0;border:0;border-radius:0}
#judi-case-study #judi-project-preview .pj-desktop-viewport{position:relative;width:100%;min-width:900px;aspect-ratio:3/2;overflow:hidden;border:1px solid #dce0e6;border-radius:12px;background:#F6F8F9;box-sizing:border-box}
#judi-case-study #judi-project-preview .pj-desktop-viewport iframe{position:absolute;top:0;left:0;width:1440px;min-width:1440px;height:960px!important;border:0;border-radius:0;transform-origin:0 0;max-width:none}
#judi-case-study #judi-project-preview .pj-screen-image{display:block;border:1px solid #dce0e6;border-radius:12px;overflow:hidden;padding:0;background:#F6F8F9}
#judi-case-study #judi-project-preview .pj-screen-image img{width:100%;height:auto;aspect-ratio:3/2;display:block;border:0;border-radius:0;object-fit:contain}
#judi-case-study #judi-project-preview .pj-approved-diagram .pj-imagebutton,#judi-case-study #judi-project-preview .pj-walkthrough-image{border:0;border-radius:0;background:transparent;box-shadow:none}
#judi-case-study #judi-project-preview .pj-walkthrough-image img{border:0;border-radius:0}
#judi-case-study #judi-project-preview [data-tooth-components]{margin-top:36px}

#judi-case-study #judi-project-preview #judi-tooth-components.jtc-root{font-family:'Source Sans 3',sans-serif;border-radius:12px}

/* November 3: native editorial labels and dividers; original-size PNG components. */
#judi-case-study #judi-project-preview .pj-web-flow { padding:0; border:0; border-radius:0; background:none; margin:28px 0 0; }
#judi-case-study #judi-project-preview .pj-flow-scroll { overflow-x:auto; padding:0; border:0; max-width:100%; }
#judi-case-study #judi-project-preview .pj-flow-canvas { width:100%; min-width:900px; padding:0; border:0; font-family:inherit; color:#27332F; }
#judi-case-study #judi-project-preview .pj-flow-canvas :is(h4,h5),
#judi-case-study #judi-project-preview .pj-before-after h4 { font-family:inherit; font-size:20px; font-weight:500; line-height:1.45; margin:0 0 24px; }
#judi-case-study #judi-project-preview .pj-flow-canvas p,
#judi-case-study #judi-project-preview .pj-before-after p { font-family:inherit; font-size:18px; font-weight:400; line-height:1.6; margin:12px 0 0; }
#judi-case-study #judi-project-preview .pj-flow-png { display:block; width:var(--flow-w)!important; min-width:var(--flow-w); height:var(--flow-h); max-width:var(--flow-w); flex:none; border:0!important; border-radius:0!important; margin:0; }
#judi-case-study #judi-project-preview .pj-task-row { display:flex; align-items:center; width:100%; }
#judi-case-study #judi-project-preview .pj-flow-arrow { display:flex; flex:1; align-items:center; position:relative; min-width:32px; height:10px; color:#8D979F; margin:0 16px; }
#judi-case-study #judi-project-preview .pj-flow-arrow i { flex:1; border-top:1.5px solid currentColor; }
#judi-case-study #judi-project-preview .pj-flow-arrow svg { display:block; flex:none; width:8px; height:10px; margin-left:-1px; overflow:visible; }
#judi-case-study #judi-project-preview .pj-flow-arrow svg path { fill:none; stroke:currentColor; stroke-width:1.5; }
#judi-case-study #judi-project-preview .pj-flow-arrow span { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); font-size:16px; line-height:1.5; color:#59625D; white-space:nowrap; }
#judi-case-study #judi-project-preview .pj-flow-down { width:10px; height:44px; min-width:0; flex:none; flex-direction:column; margin:28px auto; }
#judi-case-study #judi-project-preview .pj-flow-down i { border-top:0; border-left:1.5px solid currentColor; }
#judi-case-study #judi-project-preview .pj-flow-down svg { transform:rotate(90deg); margin:0 0 0 -1px; }
#judi-case-study #judi-project-preview .pj-flow-divider { border:0; border-top:1px solid #E2E6E3; margin:32px 0; width:100%; }
#judi-case-study #judi-project-preview .pj-requirement-row { display:flex; align-items:center; }
#judi-case-study #judi-project-preview .pj-requirement-row > div:last-child { width:430px; flex:none; }
#judi-case-study #judi-project-preview .pj-requirement-row h5 { margin:0; }
#judi-case-study #judi-project-preview .pj-flow-route { display:block; overflow:visible; pointer-events:none; }
#judi-case-study #judi-project-preview .pj-return-loop { position:relative; height:70px; }
#judi-case-study #judi-project-preview .pj-return-loop svg { position:absolute; bottom:0; left:0; }
#judi-case-study #judi-project-preview .pj-return-loop span { position:absolute; top:-6px; left:50%; transform:translateX(-50%); padding:0 16px; color:#35445B; font-size:16px; white-space:nowrap; }
#judi-case-study #judi-project-preview .pj-context-bracket { margin:20px auto 0; width:calc(100% - 296px); border:1.5px solid #8D979F; border-top:0; height:16px; text-align:center; position:relative; }
#judi-case-study #judi-project-preview .pj-context-bracket span { display:inline-block; padding:0 16px; position:relative; top:4px; background:#fff; font-size:16px; line-height:1.5; color:#59625D; white-space:nowrap; }
#judi-case-study #judi-project-preview .pj-flow-option:has(.pj-context-bracket) { padding-bottom:28px; }
#judi-case-study #judi-project-preview .pj-scattered-flow { position:relative; width:900px; height:524px; }
#judi-case-study #judi-project-preview .pj-source-lane { position:absolute; left:0; width:900px; height:116px; display:flex; align-items:flex-start; }
#judi-case-study #judi-project-preview .pj-source-lane:not(:first-child) { border-top:1px solid #E2E6E3; }
#judi-case-study #judi-project-preview .pj-source-lane span { width:100px; box-sizing:border-box; border-radius:8px; padding:12px 8px; margin-top:32px; text-align:center; font-size:14px; line-height:1.5; }
#judi-case-study #judi-project-preview .pj-source-window { position:absolute; }
#judi-case-study #judi-project-preview .pj-scattered-flow > svg { position:absolute; top:0; left:0; }
#judi-case-study #judi-project-preview .pj-reopen-label { position:absolute; left:620px; top:161px; font-size:16px; color:#35445B; }
#judi-case-study #judi-project-preview .pj-memory-label { position:absolute; left:480px; top:433px; width:132px; padding:10px; box-sizing:border-box; background:#FFF0B8; border-radius:8px; text-align:center; font-size:14px; line-height:1.5; }
#judi-case-study #judi-project-preview .pj-walkthrough-step h4 { margin:0 0 24px; }
#judi-case-study #judi-project-preview .pj-ui-excerpt { width:100%; height:auto; }
#judi-case-study #judi-project-preview .pj-ai-flow-top { display:grid; grid-template-columns:1fr 80px 1fr; align-items:start; }
#judi-case-study #judi-project-preview .pj-ai-flow-top > .pj-flow-arrow { margin-top:110px; }
#judi-case-study #judi-project-preview .pj-flow-canvas .pj-flow-statement { font-size:20px; line-height:1.5; }
#judi-case-study #judi-project-preview .pj-flow-canvas .pj-flow-label { font-size:14px; color:#59625D; margin-top:24px; }
#judi-case-study #judi-project-preview .pj-contribution-bar { width:314px; height:12px; background:#ECEFF4; margin-top:20px; border-radius:3px; overflow:hidden; }
#judi-case-study #judi-project-preview .pj-contribution-bar span { display:block; width:75%; height:100%; background:#B9B3EA; }
#judi-case-study #judi-project-preview .pj-evidence-records { display:flex; justify-content:space-between; }
#judi-case-study #judi-project-preview .pj-ai-evidence .pj-context-bracket { margin-bottom:40px; }
#judi-case-study #judi-project-preview .pj-ai-evidence .pj-hypothesis { max-width:740px; }
#judi-case-study #judi-project-preview .pj-parallel-actions { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
#judi-case-study #judi-project-preview .pj-parallel-actions p + p { border-left:1px solid #E2E6E3; padding-left:24px; }
#judi-case-study #judi-project-preview .pj-before-after-scroll { max-width:100%; overflow-x:auto; margin:28px 0; }
#judi-case-study #judi-project-preview .pj-before-after { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); min-width:600px; }
#judi-case-study #judi-project-preview .pj-before-after > section:first-child { padding-right:24px; }
#judi-case-study #judi-project-preview .pj-before-after > section + section { border-left:1px solid #E2E6E3; padding-left:24px; }
#judi-case-study #judi-project-preview .pj-compare-image { display:block; width:100%; padding:0; border:0; border-radius:0; background:none; margin:0 0 24px; }
#judi-case-study #judi-project-preview .pj-compare-image img { display:block; width:100%; aspect-ratio:3/2; height:auto; object-fit:contain; border:0; border-radius:0!important; }
#judi-case-study #judi-project-preview .pj-before-after h4 { margin-bottom:12px; }
#judi-case-study #judi-project-preview .pj-editorial-table tr > :not(:last-child) { border-right:1px solid #E2E6E3; padding-right:24px; }
#judi-case-study #judi-project-preview .pj-editorial-table tr > :not(:first-child) { padding-left:24px; }

/* November 3 review: Framework v1.2 story rhythm. Each block owns its gap. */
#judi-case-study #judi-project-preview { --judi-group-gap:48px; --judi-chapter-gap:var(--pf-chapter-gap,120px); --judi-story-gap:var(--pf-subsection-gap,80px); --judi-visual-gap:var(--pf-visual-gap,36px); }
#judi-case-study #judi-project-preview .pj-section { margin-top:var(--judi-chapter-gap); }
#judi-case-study #judi-project-preview .pj-subsection { margin-top:var(--judi-story-gap); margin-bottom:0; }
#judi-case-study #judi-project-preview .pj-section > h2 + .pj-subsection { margin-top:var(--pf-first-subheading-gap,32px); }
#judi-case-study #judi-project-preview .pj-copy { margin-top:var(--pf-paragraph-gap,24px); margin-bottom:0; }
#judi-case-study #judi-project-preview :is(h2,h3,h4,.pj-subsection-heading) + .pj-copy { margin-top:var(--pf-heading-copy-gap,28px); }
#judi-case-study #judi-project-preview :is(.pj-detail-group,.pj-task-comparison) { display:flow-root; margin-top:var(--judi-story-gap); margin-bottom:0; }
#judi-case-study #judi-project-preview :is(.pj-detail-group,.pj-task-block,.pj-ideation-workflow) > h4 { font-family:inherit; font-size:20px; line-height:1.45; font-weight:500; margin:0; }
#judi-case-study #judi-project-preview .pj-task-block { display:flow-root; margin:0; }
#judi-case-study #judi-project-preview .pj-task-block + .pj-task-block { margin-top:var(--judi-story-gap); }
#judi-case-study #judi-project-preview :is(.pj-subsection,.pj-detail-group,.pj-task-block,.pj-ideation-workflow) > :is(.pj-figure,.pj-web-flow,.pj-interactive-slot,.pj-micro-slot,.pj-delivery-demo,.pj-ai-directions),
#judi-case-study #judi-project-preview [data-tooth-components],
#judi-case-study #judi-project-preview #design-snapshot [data-pd-snapshot-demo] { margin-top:var(--judi-visual-gap); margin-bottom:0; }
#judi-case-study #judi-project-preview .pj-interactive-slot > .pj-delivery-demo { margin-top:0; }
#judi-case-study #judi-project-preview .pj-figure + .pj-copy { margin-top:var(--pf-paragraph-gap,24px); }
#judi-case-study #judi-project-preview .pj-editorial-table { margin:var(--judi-visual-gap) 0 0; }
#judi-case-study #judi-project-preview .pj-editorial-table table { border-top:1px solid #E2E6E3; }
#judi-case-study #judi-project-preview .pj-editorial-table + .pj-copy { margin-top:var(--pf-paragraph-gap,24px); }
#judi-case-study #judi-project-preview .pj-ai-directions { gap:var(--judi-story-gap); }
#judi-case-study #judi-project-preview .pj-ai-direction + .pj-ai-direction { margin-top:0; }
#judi-case-study #judi-project-preview .pj-ai-direction > .pj-figure { margin-top:var(--judi-visual-gap); }
#judi-case-study #judi-project-preview .pj-ideation-workflow { display:flow-root; margin-top:var(--pf-first-subheading-gap,32px); }
#judi-case-study #judi-project-preview .pj-user-groups { margin-top:var(--judi-story-gap); }
#judi-case-study #judi-project-preview .pj-user-groups > .pj-subsection { margin:0; }
#judi-case-study #judi-project-preview .pj-user-groups .pj-role-illustration { margin:0 0 28px; padding:0; }
#judi-case-study #judi-project-preview .pj-user-groups .pj-copy { margin-top:var(--pf-heading-copy-gap,28px); }
#judi-case-study #judi-project-preview .pj-ai-flow-top > section,
#judi-case-study #judi-project-preview .pj-ai-evidence,
#judi-case-study #judi-project-preview .pj-ai-actions { border:1px solid #DCE0E6; border-radius:12px; padding:24px; min-width:0; background:#fff; }
#judi-case-study #judi-project-preview .pj-ai-flow-top { align-items:stretch; }
#judi-case-study #judi-project-preview .pj-ai-flow-top > .pj-flow-arrow { align-self:center; margin-top:0; }
#judi-case-study #judi-project-preview .pj-ai-flow-top .pj-contribution-bar { max-width:100%; }
@media(max-width:480px){
 #judi-case-study #judi-project-preview { --judi-group-gap:36px; --judi-chapter-gap:80px; --judi-story-gap:56px; --judi-visual-gap:32px; }
}

/* Selected gap illustration and editorial hierarchy, November 3. */
#judi-case-study #judi-project-preview :is(.pj-ai-direction,.pj-direction) { border-bottom:0; padding-bottom:0; }
#judi-case-study #judi-project-preview .pj-walkthrough-step > h5 { font-family:inherit; font-size:18px; font-weight:400; line-height:1.5; margin:0 0 24px; }
#judi-case-study #judi-project-preview #design-exploration-table-or-tooth-chart > .pj-subsection-heading + .pj-detail-group { margin-top:var(--pf-first-subheading-gap,32px); }
#judi-case-study #judi-project-preview .pj-analysis-gap-illustration img { width:100%; max-width:640px; margin:0 auto; border:0; border-radius:0; }

/* Analysis gap pairs explanation with the selected illustration; mobile reads text then image. */
#judi-case-study #judi-project-preview .pj-analysis-gap-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:40px; align-items:start; }
#judi-case-study #judi-project-preview .pj-analysis-gap-copy { min-width:0; }
#judi-case-study #judi-project-preview .pj-analysis-gap-copy > .pj-copy { margin-top:var(--pf-heading-copy-gap,28px); }
#judi-case-study #judi-project-preview .pj-analysis-gap-layout > .pj-analysis-gap-illustration { margin:0; min-width:0; }
#judi-case-study #judi-project-preview .pj-analysis-gap-layout > .pj-analysis-gap-illustration img { width:100%; max-width:344px; margin:0 auto; }
/* Short connectors between steps within one investigation workflow. */
#judi-case-study #judi-project-preview [data-flow-id="A02"] .pj-flow-down { height:28px; margin:12px auto; }
/* Headings do not add a second gap before their related image. */
#judi-case-study #judi-project-preview .pj-ai-direction-heading > h4 { margin:0; }
@media(max-width:700px){
 #judi-case-study #judi-project-preview .pj-analysis-gap-layout { grid-template-columns:minmax(0,1fr); gap:var(--judi-visual-gap); }
 #judi-case-study #judi-project-preview .pj-analysis-gap-layout > .pj-analysis-gap-illustration { width:100%; max-width:344px; justify-self:center; }
}

/* Wrapper owns media spacing, including nested demos and Before/After. */
#judi-case-study #judi-project-preview :is(.pj-figure,[data-pd-snapshot-demo]) > .pj-delivery-demo { margin-top:0; }
#judi-case-study #judi-project-preview .pj-before-after-scroll { margin:var(--judi-visual-gap) 0 0; }

/* A/B alternatives are subordinate to the task heading. */
#judi-case-study #judi-project-preview .pj-task-block .pj-flow-option > h5 { font-size:18px; line-height:27px; font-weight:400; }

/* Approved November 3 copy: preserve existing geometry and readable A05. */
#judi-case-study #judi-project-preview .pj-contribution > ul.pj-value { list-style:disc; padding-left:20px; margin-bottom:0; }
#judi-case-study #judi-project-preview .pj-contribution > ul.pj-value li + li { margin-top:12px; }
#judi-case-study #judi-project-preview .pj-detail-group.pj-task-block { margin-top:var(--judi-story-gap); }
#judi-case-study #judi-project-preview .pj-final-ai-three-step { display:block; width:900px; min-width:900px; max-width:none; height:332px; border:0; border-radius:0; }
#judi-case-study #judi-project-preview .pj-approved-metric-range .pj-metric-before { font-size:32px; letter-spacing:-1px; }
#judi-case-study #judi-project-preview .pj-approved-metric-range .pj-metric-to { font-size:24px; letter-spacing:0; }
#judi-case-study #judi-project-preview #mvp-launch-impact .pj-metrics { margin-top:28px; }

/* Editorial hierarchy: chapter > subsection > direction/task/step > option label. */
#judi-case-study #judi-project-preview .pj-ai-directions .pj-ai-direction .pj-ai-direction-heading > h4,
#judi-case-study #judi-project-preview [data-flow-id="A02"] .pj-walkthrough-step > h4 {
 font-family:inherit; font-size:20px; line-height:1.45; font-weight:500; letter-spacing:normal;
}
#judi-case-study #judi-project-preview [data-flow-id="A02"] .pj-walkthrough-step > h4 { margin:0 0 24px; }
#judi-case-study #judi-project-preview .pj-requirement-row h5 { font-size:18px; line-height:1.5; font-weight:400; }
@media(max-width:480px){
 #judi-case-study #judi-project-preview .pj-ai-directions .pj-ai-direction .pj-ai-direction-heading > h4,
 #judi-case-study #judi-project-preview :is(.pj-detail-group,.pj-task-block,.pj-walkthrough-step) > h4,
 #judi-case-study #judi-project-preview [data-flow-id="A02"] .pj-walkthrough-step > h4,
 #judi-case-study #judi-project-preview .pj-before-after h4 { font-size:20px; }
}

/* Editorial comparisons use the project page lavender. */
#judi-case-study { --judi-challenge-violet: #6328e4; --judi-comparison-highlight: #c3a6ff; }
#judi-case-study #judi-project-preview .pj-value-comparison{display:grid;grid-template-columns:minmax(0,1fr) 60px minmax(0,1fr);align-items:start;margin-top:var(--judi-visual-gap,36px)}
#judi-case-study #judi-project-preview .pj-value-panel{min-width:0;margin:0;padding:0;border:0}
#judi-case-study #judi-project-preview .pj-value-stage{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:420/288;padding:24px;margin:0;border:0;border-radius:12px;box-shadow:none;background:#F0F1F3;overflow:hidden}
#judi-case-study #judi-project-preview .pj-value-after .pj-value-stage{background:var(--judi-comparison-highlight)}
#judi-case-study #judi-project-preview .pj-value-stage img{display:block;width:100%;height:100%;min-height:0;max-height:100%;object-fit:contain;border:0;border-radius:4px;box-shadow:none;aspect-ratio:auto}
#judi-case-study #judi-project-preview .pj-value-stage .pj-value-placeholder{font-family:inherit;font-size:26px;line-height:1.4;font-weight:400;text-align:center;color:#59625D;max-width:304px;margin:0}
#judi-case-study #judi-project-preview .pj-value-placeholder span{display:block;margin-top:12px}
#judi-case-study #judi-project-preview .pj-value-caption{padding:22px 0 0}
#judi-case-study #judi-project-preview .pj-value-caption :is(h4,.pj-value-label,.pj-copy,li) { font-family:inherit; font-size:16px; font-weight:400; line-height:1.55; letter-spacing:normal; color:#59625d; }
#judi-case-study #judi-project-preview .pj-value-caption > :is(h4,.pj-value-label,.pj-copy) { margin:0; }
#judi-case-study #judi-project-preview .pj-option-comparison { grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px,4vw,60px); }
#judi-case-study #judi-project-preview .pj-value-arrow{display:flex;align-items:center;justify-content:center;height:clamp(180px,28.8vw,288px);color:#8D979F}
#judi-case-study #judi-project-preview .pj-value-arrow svg{width:34px;height:18px}
#judi-case-study #judi-project-preview .pj-final-design-demo>h4{font-size:20px;font-weight:500;line-height:1.45;margin:0}
#judi-case-study #judi-project-preview .pj-demo-format{font-size:16px;font-weight:400;line-height:1.5;color:#59625D;margin:12px 0 0}
#judi-case-study #judi-project-preview .pj-final-design-demo>.pj-delivery-demo{margin-top:24px}
@media(max-width:600px){
#judi-case-study #judi-project-preview .pj-value-comparison{grid-template-columns:minmax(0,1fr)}
#judi-case-study #judi-project-preview .pj-value-arrow{height:64px}
#judi-case-study #judi-project-preview .pj-value-arrow svg{transform:rotate(90deg)}

}

/* Refreshed case study copy and paired Dental workflows. */
#judi-project-preview .pj-editorial-list { margin:24px 0 0; padding-inline-start:1.4em; list-style:disc; }
#judi-project-preview .pj-editorial-list li + li { margin-top:12px; }
#judi-project-preview .pj-scope { margin-top:var(--judi-visual-gap); padding:24px; border:1px solid #dce0de; border-radius:12px; }
#judi-case-study #judi-project-preview .pj-scope .pj-copy { margin:12px 0 0; }
#judi-project-preview .pj-impact-caption { margin:20px 0 0; font-size:14px; }
#judi-project-preview .pj-paired-flows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; margin-top:var(--judi-visual-gap); }
#judi-case-study #judi-project-preview .pj-paired-flows .pj-web-flow { min-width:0; margin:0; }
#judi-case-study #judi-project-preview .pj-paired-flows .pj-flow-canvas { min-width:0; }
#judi-case-study #judi-project-preview .pj-paired-flows .pj-flow-png { width:36%!important; min-width:0; height:auto; }
#judi-case-study #judi-project-preview .pj-paired-flows .pj-flow-arrow { margin-inline:6px; }
#judi-case-study #judi-project-preview .pj-paired-flows .pj-flow-arrow span { font-size:14px; bottom:14px; }
#judi-case-study #judi-project-preview .pj-walkthrough-step .pj-step-caption { margin:0 0 12px; }
#judi-case-study #judi-project-preview .pj-value-caption .pj-copy { margin-top:8px; }
#judi-case-study #judi-project-preview .pj-editorial-table { overflow-x:auto; }
@media(max-width:760px){
 #judi-project-preview .pj-paired-flows { grid-template-columns:minmax(0,1fr); }
}

/* Editorial hierarchy and user workflows in the Judi case study. */
#judi-case-study #judi-project-preview {
  .pj-team-row { grid-column:1 / -1; min-width:0; }
  .pj-team-row dd { white-space:nowrap; overflow-x:auto; }
  .pj-contribution h2.pj-label { margin:0; font-family:inherit; font-size:16px; line-height:1.5; font-weight:500; letter-spacing:normal; }
  .pj-metrics [data-pd-grid] { grid-template-columns:minmax(max-content,1.55fr) repeat(2,minmax(max-content,1fr)); }
  .pj-metrics [data-pd-metric] > [data-pd-metric-label] { font-weight:400!important; }
  .pj-metrics { container-type:inline-size; container-name:judi-results; }
  .pj-editorial-group { margin:var(--pf-first-subheading-gap,32px) 0 0; }
  .pj-editorial-group + .pj-editorial-group { margin-top:var(--judi-group-gap); }
  .pj-child-heading { margin:0; font-family:inherit; font-size:20px; line-height:1.45; font-weight:500; letter-spacing:normal; }
  .pj-editorial-group > .pj-copy { margin:12px 0 0; }
  .pj-editorial-group > .pj-figure { margin:var(--judi-visual-gap,36px) 0 0; }
  .pj-lookup-figure { border:0; background:none; padding:0; margin:var(--judi-visual-gap,36px) 0 0; }
  .pj-lookup-figure .pj-task-row { max-width:100%; }
  .pj-lookup-figure .pj-flow-png { width:35%!important; max-width:var(--flow-w); min-width:0; height:auto; }
  .pj-lookup-figure .pj-flow-arrow span { font-size:14px; }
  .pj-scope-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:20px; }
  .pj-scope-cards section, .pj-step-track > li { border:1px solid #dce0de; border-radius:12px; padding:20px; min-width:0; }
  .pj-scope-cards section:first-child { background:#f3effb; border-color:#e4dcf2; }
  .pj-scope-cards h4 { margin:0; font-family:inherit; font-size:20px; line-height:1.45; font-weight:500; }
  .pj-scope-cards ul { margin:12px 0 0; padding-left:1.2em; list-style:disc; }
  .pj-scope-cards li + li { margin-top:6px; }
  .pj-step-track { --connector:32px; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:var(--connector); list-style:none; margin:16px 0 0; padding:0; }
  .pj-step-track > li { position:relative; margin:0; line-height:1.5; }
  .pj-entry-track > li { display:flex; align-items:center; padding:16px; }
  .pj-step-track > li:not(:last-child)::after { content:""; position:absolute; height:12px; width:20px; left:calc(100% + (var(--connector) - 20px)/2); top:calc(50% - 6px); background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6h17m-5-5 5 5-5 5' fill='none' stroke='%23828d94' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .pj-ai-investigation { margin-top:var(--judi-visual-gap,36px); }
  .pj-step-badge { display:inline-grid; place-items:center; width:48px; height:48px; border-radius:50%; background:#eee8f9; font-size:14px; margin-bottom:16px; }
  .pj-ai-investigation .pj-copy { font-size:16px; margin-top:12px; }
}
@media(max-width:760px) {
  #judi-case-study #judi-project-preview .pj-metrics [data-pd-grid] {grid-template-columns:1fr;}
  #judi-case-study #judi-project-preview .pj-ai-investigation {grid-auto-flow:row;grid-template-columns:minmax(0,1fr);}
  #judi-case-study #judi-project-preview .pj-ai-investigation > li:not(:last-child)::after {left:calc(50% - 10px);top:calc(100% + 10px);transform:rotate(90deg);}
}
@media(max-width:600px) {
  #judi-case-study #judi-project-preview .pj-scope-cards { grid-template-columns:1fr; }
  #judi-case-study #judi-project-preview .pj-entry-track { grid-auto-columns:minmax(142px,1fr); overflow-x:auto; padding-bottom:8px; }
  #judi-case-study #judi-project-preview .pj-lookup-figure .pj-flow-arrow { margin-inline:5px; }
  #judi-case-study #judi-project-preview .pj-lookup-figure .pj-flow-arrow span { font-size:13px; }
}

#judi-case-study #judi-project-preview {
  .pj-entry-track > li { justify-content:center; text-align:center; }
  .pj-approved-metric-range:has(.pj-metric-before) { display:flex!important; align-items:center; column-gap:.09em; }
  .pj-approved-metric-range :is(.pj-metric-before,.pj-metric-to,.pj-metric-end) { display:block; line-height:1; }
  .pj-approved-metric-range .pj-metric-before { color:var(--judi-challenge-violet); }
  .pj-approved-metric-range :is(.pj-metric-before,.pj-metric-end) { align-self:baseline; }
  .pj-metrics .pj-approved-metric-range { line-height:1!important; }
  [data-flow-id="A02"] figcaption { display:block; padding:0; margin:0 0 24px; }
  [data-flow-id="A02"] .pj-action-title { display:block; margin:0 0 12px; font-family:inherit; font-size:18px; line-height:1.5; font-weight:500; }
  .pj-action-title span { font:inherit; color:inherit; white-space:nowrap; }
}

/* Selected editorial treatments for interview findings. */
#judi-case-study #judi-project-preview {
  .pj-finding { margin:var(--judi-visual-gap,36px) 0 0; scroll-margin-top:64px; }
  .pj-finding > :is(h3,h4) { margin:0 0 8px; font:500 16px/1.55 var(--pe-font,inherit); font-family:inherit; font-size:16px; font-weight:500; line-height:1.55; letter-spacing:normal; }
  .pj-finding .pj-copy { margin:0; max-width:68ch; text-wrap:pretty; }
  .pj-finding-tinted { background:#f3effa; border-radius:12px; padding:24px 28px; }
}
@media(max-width:600px){
  #judi-case-study #judi-project-preview .pj-finding-tinted { padding:20px; }
}

#judi-case-study #judi-project-preview .pj-value-before .pj-value-stage { background:#f7f7f7; }

#judi-case-study #judi-project-preview .pj-scope-heading { display:flex; align-items:center; gap:12px; }
#judi-case-study #judi-project-preview .pj-scope-heading svg { width:50px; height:50px; flex:none; }

#judi-case-study #judi-project-preview {
  .pj-subsection.pj-finding { margin-top:var(--judi-visual-gap); }
  .pj-finding > :is(h3,h4) + .pj-copy { margin:0; }
  .pj-user-groups { row-gap:var(--judi-story-gap); }
  #design-snapshot h2 + [data-pd-snapshot-item] { margin-top:var(--pf-first-subheading-gap,32px); }
  #design-snapshot [data-pd-snapshot-item] + [data-pd-snapshot-item] { margin-top:var(--judi-story-gap); }
  .pj-editorial-group > .pj-delivery-demo { margin-top:var(--judi-visual-gap); }
}

@container judi-results (max-width: 740px) {
  #judi-case-study #judi-project-preview .pj-metrics [data-pd-grid] { grid-template-columns:1fr; }
}
/* 2026-11-05: screens keep their own height (no 3:2 letterbox); UI excerpts read as cards */
#judi-case-study #judi-project-preview .pj-screen-image img{aspect-ratio:auto!important}
#judi-case-study #judi-project-preview .pj-flow-png.pj-ui-excerpt{border:1px solid #dce0e6!important;border-radius:12px!important;background:#F7F8FA;box-sizing:content-box}
#judi-case-study #judi-project-preview .pj-flow-png.pj-ui-excerpt{box-sizing:border-box!important;max-width:100%!important;height:auto!important}
/* images already carry their own card edge: no extra frame; Before/After images share the 12px radius */
#judi-case-study #judi-project-preview .pj-flow-png.pj-ui-excerpt{border:0!important;border-radius:0!important;background:transparent!important}
#judi-case-study #judi-project-preview .pj-value-stage img{border-radius:12px}
#judi-case-study #judi-project-preview .pj-value-stage img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:initial}

/* The approved 80% role size keeps both transparent scenes on the same desk baseline. */
#judi-case-study #judi-project-preview .pj-user-groups .pj-role-illustration {
  position: relative;
  width: 80%;
  max-width: none;
  margin-left: 0;
  margin-right: auto;
  aspect-ratio: 430 / 365;
}
#judi-case-study #judi-project-preview .pj-user-groups .pj-role-illustration .pj-imagebutton {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
#judi-case-study #judi-project-preview .pj-user-groups .pj-role-illustration img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  max-width: none;
  transform: none;
}

/* Keep the cutoff Before neutral and clearly separate from the mint After. */
#judi-case-study #judi-project-preview #back-to-the-cutoff-half-data-problem-half-review-work .pj-value-before .pj-value-stage {
  background:transparent;
  padding:0;
  border-radius:0;
  overflow:visible;
}
#judi-case-study #judi-project-preview #back-to-the-cutoff-half-data-problem-half-review-work .pj-value-before .pj-value-stage img {
  width:100%;
  height:auto;
  object-fit:contain;
  border-radius:0;
  /* Align visible artwork with its caption, accounting for transparent top/left margins. */
  transform:translate(-3.65%, -10%);
}

/* Context and launch illustrations share the project page's reading width. */
#judi-case-study #judi-project-preview .pj-story-cards {
  margin-top: var(--judi-story-gap);
}
#judi-case-study #judi-project-preview .pj-story-cards ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
#judi-case-study #judi-project-preview .pj-story-goal ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#judi-case-study #judi-project-preview .pj-story-cards li {
  padding: 24px;
  border-radius: 12px;
  background: #f9f8fc;
  margin: 0;
  min-width: 0;
}
#judi-case-study #judi-project-preview :is(.pj-story-goal, .pj-story-challenge) li {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
#judi-case-study #judi-project-preview .pj-story-challenge img {
  transform: scale(.80);
  transform-origin: center;
}
#judi-case-study #judi-project-preview .pj-story-cards img {
  display: block;
  width: 100%;
  height: 144px;
  object-fit: contain;
}
#judi-case-study #judi-project-preview .pj-story-cards .pj-copy { margin: 20px 0 0; }
#judi-case-study #judi-project-preview .pj-story-impact { margin-top: var(--judi-visual-gap); }
#judi-case-study #judi-project-preview .pj-story-impact ul { margin: 0; }
#judi-case-study #judi-project-preview .pj-story-impact li:nth-child(1) { background: #f2f9f5; }
#judi-case-study #judi-project-preview .pj-story-impact li:nth-child(2) { background: #f4f8fd; }
#judi-case-study #judi-project-preview .pj-story-impact li:nth-child(3) { background: #f8f5fb; }
#judi-case-study #judi-project-preview .pj-story-number {
  margin: 24px 0 0;
  color: #101010;
  width: 100%;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.15;
  font-weight: 500;
}
#judi-case-study #judi-project-preview .pj-story-number + .pj-copy { margin-top: 8px; }
@media (max-width: 740px) {
  #judi-case-study #judi-project-preview .pj-story-cards ul { grid-template-columns: 1fr; }
}

#judi-case-study #judi-project-preview #client-users .pj-user-groups { margin-top: var(--judi-visual-gap); }
#judi-case-study #judi-project-preview #client-users .pj-subsection-heading h4 { margin: 0; }
@media (min-width: 741px) and (max-width: 979px) {
  #judi-case-study #judi-project-preview .pj-story-challenge ul { grid-template-columns: 1fr; }
}

#judi-case-study #judi-project-preview .pj-story-challenge .pj-copy {
  max-width: 28ch;
  margin-inline: auto;
  text-align: left;
}

#judi-case-study #judi-project-preview { --pe-metric-accent: var(--judi-challenge-violet); }
#judi-case-study #judi-project-preview :is(.pj-story-cards .pj-copy, .pj-finding .pj-copy, .pj-scope-cards li, .pj-value-caption li) { text-wrap: balance; }
