/* The shared case-study shell owns spacing, cards and motion. */
.auto-case .native-image-item{display:block;margin:0;min-width:0;background:transparent}
.auto-case .native-image-item button{display:block;border:0;padding:0;background:transparent;width:100%;height:auto;cursor:zoom-in}
.auto-case .native-image-item img{display:block;width:100%;height:auto;object-fit:contain}
.auto-case .native-image-item figcaption{margin-top:14px;font-size:12px;line-height:1.6;color:var(--case-muted)}
.auto-case .auto-diagram-stack{display:grid;gap:40px}
.auto-case .auto-final-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:40px}
.auto-case .auto-final-pair button{--render-height:clamp(230px,40vw,540px);display:flex;align-items:center;justify-content:center;height:var(--render-height)}
.auto-case .auto-product-frame{position:relative;display:block;width:min(100%,calc(var(--render-height) * var(--subject-aspect)));aspect-ratio:var(--subject-aspect);overflow:hidden}
.auto-case .auto-final-pair .auto-product-frame img{position:absolute;max-width:none;width:var(--image-width);height:var(--image-height);left:var(--image-left);top:var(--image-top)}
.auto-case .auto-final-pair figcaption{text-align:center}
.auto-case .auto-final-detail{margin-top:36px}
/* Preserve the native transparent diagrams on paper, including the enlarged view.
   The generic v82 canvas rule must not remove this project's explanation cards. */
@media screen{
 .app-surface .unified-case.auto-case .case-section{background:#fff}
 .app-surface .work-home .featured-media[href="#auto-equipment"] .render-object{--render-fill:1;--render-max-width:100%}
 .app-surface .unified-case.auto-case .auto-hero-media{background:transparent}
 .app-surface .unified-case.auto-case .auto-hero-media button{--render-height:clamp(360px,49vw,700px);display:flex;align-items:center;justify-content:center;height:var(--render-height)}
 .app-surface .unified-case.auto-case .auto-hero-media .auto-product-frame{width:min(92%,calc(var(--render-height) * var(--subject-aspect)))}
 .app-surface .unified-case.auto-case .auto-hero-media img{position:absolute;left:var(--image-left);top:var(--image-top);width:var(--image-width);height:var(--image-height);max-width:none;max-height:none;padding:0;object-fit:fill;aspect-ratio:auto}
 .app-surface .auto-case .auto-finale{display:block;min-height:0;padding:28px 0 0;margin:28px 0 52px;border:0;overflow:visible}
 .app-surface .auto-case .auto-finale .case-section-heading{padding-inline:8px;margin-bottom:36px}
 .app-surface .auto-case .auto-finale h3{font-size:27px;font-weight:750;line-height:1.25;letter-spacing:-.045em;margin:12px 0 0;word-break:keep-all}
 @media (min-width:1000px){
.app-surface .auto-case .auto-finale h3{font-size:30px}}
 @media (min-width:1100px){
.app-surface .auto-case .auto-finale h3{font-size:33px}}
 @media (min-width:1200px){
.app-surface .auto-case .auto-finale h3{font-size:36px}}
 @media (min-width:1300px){
.app-surface .auto-case .auto-finale h3{font-size:39px}}
 @media (min-width:1400px){
.app-surface .auto-case .auto-finale h3{font-size:42px}}
 .app-surface .auto-case .auto-finale .eyebrow{font-size:12px;color:var(--case-muted);letter-spacing:.07em}
 .auto-case .auto-final-detail button{width:100vw;margin-inline:calc(50% - 50vw);background:#000}
 .auto-case .auto-final-detail img{height:auto;max-height:760px;object-fit:contain}
 #viewer-stage[data-surface="paper"] #viewer-image{background:#fff}
}

/* Full-width original sketch boards. Only the board scrolls on narrow screens;
   the page and its text remain within the common navigation guides. */
@media screen{
 .app-surface .unified-case.auto-case .auto-sketch-section{background:transparent;padding:28px 0 0;border-radius:0;clip-path:none!important;overflow:visible}
 .auto-case .auto-sketch-section .case-section-heading{padding-inline:8px}
 .auto-case .auto-sketch-board{width:100vw;max-width:none;margin-inline:calc(50% - 50vw);background:#fff;overflow:visible;padding-block:18px 22px}
 .auto-case .auto-sketch-scroll{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#b7b7bf transparent;touch-action:pan-x pan-y}
 .auto-case .auto-sketch-scroll button{width:100%;min-width:1100px}
 .auto-case .auto-sketch-scroll img{width:100%;height:auto;max-height:none;aspect-ratio:auto}
 .auto-case .auto-sketch-board figcaption{padding-inline:var(--page-gutter);margin:16px 0 0;max-width:none}
 .auto-case .auto-pan-hint{display:none;align-items:center;gap:10px;padding-inline:var(--page-gutter);font-size:12px;color:var(--case-muted);margin-top:10px}
 .auto-case .auto-pan-hint svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.4}
}

/* Each illustration uses a window onto the original transparent artwork.
   Captions are real text, independent of the small labels in the source sheet. */
.auto-case .auto-diagram-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;background:#fff;align-items:start}
.auto-case .auto-diagram-step{min-width:0;margin:0;display:block;background:#fff}
.auto-case .auto-step-visual{--step-height:clamp(290px,29vw,410px);height:var(--step-height);display:flex;align-items:center;justify-content:center;min-width:0}
.auto-case .auto-diagram-window{position:relative;display:block;overflow:hidden;width:min(100%,calc(var(--step-height) * var(--crop-aspect)));aspect-ratio:var(--crop-aspect)}
.auto-case .auto-diagram-window img{position:absolute;display:block;left:var(--crop-left);top:var(--crop-top);width:var(--crop-width);height:var(--crop-height);max-width:none;max-height:none;object-fit:fill}
.auto-case .auto-diagram-step figcaption{padding:20px 4px 0;max-width:360px;margin-inline:auto}
.auto-case .auto-diagram-step h4{margin:0 0 8px;font-size:18px;line-height:1.4;font-weight:650;letter-spacing:-.025em;color:var(--case-ink)}
.auto-case .auto-diagram-step p{margin:0;font-size:15px;line-height:1.65;color:var(--case-muted);word-break:keep-all}
.auto-case .auto-diagram-footer{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:24px}
.auto-case .auto-source-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:6px 0;border:0;background:none;font:inherit;font-size:12px;color:var(--case-muted);cursor:zoom-in}
.auto-case .auto-source-open svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4}
.auto-case .auto-step-hint{display:none;font-size:12px;color:var(--case-muted)}
.auto-case :is(.auto-sketch-scroll,.auto-diagram-steps):focus-visible{outline:2px solid #777780;outline-offset:3px}
@media screen and (max-width:1100px){.auto-case .auto-pan-hint{display:flex}}
@media screen and (max-width:900px){
 .auto-case .auto-diagram-steps{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(82%,420px);gap:24px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c5c5cc transparent;padding-bottom:12px;touch-action:pan-x pan-y}
 .auto-case .auto-diagram-step{scroll-snap-align:start}
 .auto-case .auto-step-visual{--step-height:clamp(290px,58vw,410px)}
 .auto-case .auto-diagram-footer{justify-content:space-between;gap:10px;flex-wrap:wrap}
 .auto-case .auto-step-hint{display:block}
}
@media(max-width:760px){
 .app-surface .unified-case.auto-case .auto-hero-media button{--render-height:clamp(360px,86vw,520px)}
 .auto-case .auto-diagram-stack{gap:28px}
 .auto-case .auto-final-pair{gap:12px;margin-bottom:24px}
 .auto-case .native-image-item figcaption{font-size:12px;line-height:1.5;margin-top:12px}
 .auto-case .auto-final-detail{margin-top:24px}
}
@media print{.auto-case .case-section{break-inside:avoid}.auto-case .native-image-item img{max-height:130mm}.auto-case .case-hero-media img{max-height:150mm}.auto-case .auto-diagram-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.auto-case .auto-step-visual{--step-height:70mm}.auto-case :is(.auto-pan-hint,.auto-diagram-footer){display:none}}
.auto-case .auto-ideas{margin-bottom:28px}

/* v101: illustration rails live on the page canvas, outside card clipping. */
@media screen{
 .app-surface .auto-case .auto-diagram-section{display:block;min-height:0;padding:36px 0 0;margin:0 0 64px;border:0;background:transparent;overflow:visible}
 .app-surface .auto-case .auto-diagram-section .case-section-heading{padding-inline:8px;margin-bottom:32px}
 .app-surface .auto-case .auto-diagram-section h3{font-size:27px;font-weight:750;line-height:1.25;letter-spacing:-.045em;margin:12px 0 0;word-break:keep-all}
 @media (min-width:1000px){
.app-surface .auto-case .auto-diagram-section h3{font-size:30px}}
 @media (min-width:1100px){
.app-surface .auto-case .auto-diagram-section h3{font-size:33px}}
 @media (min-width:1200px){
.app-surface .auto-case .auto-diagram-section h3{font-size:36px}}
 @media (min-width:1300px){
.app-surface .auto-case .auto-diagram-section h3{font-size:39px}}
 @media (min-width:1400px){
.app-surface .auto-case .auto-diagram-section h3{font-size:42px}}
 .app-surface .auto-case .auto-diagram-section .eyebrow{font-size:12px;color:var(--case-muted);letter-spacing:.07em}
 .auto-case .auto-diagram-group{width:100vw;max-width:none;margin-inline:calc(50% - 50vw)}
 .auto-case .auto-diagram-steps{padding-inline:var(--page-gutter);background:transparent;gap:32px}
 .auto-case .auto-diagram-step{background:transparent}
 .auto-case .auto-diagram-step figcaption{display:block}
 .auto-case .auto-step-visual{--step-height:clamp(320px,30vw,450px)}
 .auto-case .auto-diagram-footer{padding-inline:var(--page-gutter)}
 .auto-case .auto-diagram-stack{gap:64px}
}
@media screen and (max-width:1100px){
 .auto-case .auto-diagram-steps{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(82%,420px);gap:26px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scroll-padding-inline:var(--page-gutter);scrollbar-width:thin;scrollbar-color:#c5c5cc transparent;padding-bottom:12px;touch-action:pan-x pan-y}
 .auto-case .auto-diagram-step{scroll-snap-align:start}
 .auto-case .auto-step-visual{--step-height:clamp(320px,60vw,430px)}
 .auto-case .auto-diagram-footer{justify-content:space-between;gap:10px;flex-wrap:wrap}
 .auto-case .auto-step-hint{display:block}
}
@media screen and (max-width:760px){
 .app-surface .auto-case .auto-diagram-section{padding-top:24px;margin-bottom:44px}
 .app-surface .auto-case .auto-diagram-section h3{font-size:30px;margin-top:8px}
 .auto-case .auto-diagram-stack{gap:48px}
}

/* v102: centered slides, quieter headings and readable project credits. */
.auto-case .auto-step-open{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;cursor:zoom-in;-webkit-tap-highlight-color:transparent}
.auto-case .auto-step-open:focus-visible{outline:2px solid #777780;outline-offset:4px}
@media screen{
 .app-surface .auto-case .case-section-heading{display:block;margin-bottom:32px}
 .app-surface .auto-case .case-section-heading h3{margin-top:0}
 .app-surface .auto-case .case-section-heading .case-heading-description{max-width:760px;margin-top:18px}
 .app-surface .auto-case .case-section-heading .case-heading-description p{margin-bottom:0}
 .auto-case .case-phrase{display:block}
 .app-surface .auto-case .case-hero .auto-project-facts{grid-template-columns:1fr 1.2fr 1.6fr 2.2fr;gap:24px;margin:0 8px 36px;padding:24px 0 0}
 .app-surface .auto-case .case-hero .auto-project-facts>div:last-child{grid-column:auto}
 .app-surface .auto-case .case-hero .auto-project-facts dt{font-size:12px;color:#68686f;margin-bottom:7px}
 .app-surface .auto-case .case-hero .auto-project-facts dd{font-size:15px;font-weight:500;color:#29292e;line-height:1.6}
 .auto-case .auto-diagram-steps{scroll-behavior:smooth}
 .auto-case .auto-diagram-step figcaption{text-align:center;padding-inline:10px}
}
@media screen and (min-width:1101px),screen and (min-width:900px) and (min-aspect-ratio:6/5){
 .auto-case .case-section-heading .case-phrase{display:inline}
}
@media screen and (min-width:1101px){
 .auto-case .native-lead .case-phrase{display:inline}
 .app-surface .auto-case .case-hero .native-lead{font-size:21px}
 @media (min-width:1500px){
.app-surface .auto-case .case-hero .native-lead{font-size:24px}}
}
@media screen and (max-width:1100px){
 .auto-case .auto-diagram-group{--slide-width:min(82vw,420px)}
 .auto-case .auto-diagram-steps{grid-auto-columns:var(--slide-width);padding-inline:calc((100% - var(--slide-width))/2);scroll-padding-inline:0;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:0}
 .auto-case .auto-diagram-steps::-webkit-scrollbar{display:none}
 .auto-case .auto-diagram-step{scroll-snap-align:center;scroll-snap-stop:always}
 .app-surface .auto-case .case-hero .auto-project-facts{grid-template-columns:1fr 1fr;gap:22px 24px}
}
@media screen and (max-width:760px){
 .app-surface .auto-case .case-hero .auto-project-facts{margin-inline:4px;margin-bottom:28px}
 .app-surface .auto-case .case-hero .auto-project-facts>div:last-child{grid-column:1/-1}
 .app-surface .auto-case .case-section-heading h3{font-size:24px}
 @media (min-width:416px){
.app-surface .auto-case .case-section-heading h3{font-size:27px}}
 @media (min-width:462px){
.app-surface .auto-case .case-section-heading h3{font-size:30px}}
 .app-surface .auto-case .case-section-heading .case-heading-description{margin-top:16px}
}
@media(prefers-reduced-motion:reduce){.auto-case .auto-diagram-steps{scroll-behavior:auto}}
