/* Fit complete source images inside the visible slide, without cropping. */
.paged-deck .deck>.ai-response,.paged-deck .deck>.capabilities{height:calc(100dvh - var(--header-height) - var(--deck-controls-space));min-height:0;padding-top:76px;padding-bottom:24px;overflow:hidden}
.ai-response .slide-content,.capabilities .slide-content{height:100%;min-height:0;display:flex;flex-direction:column}
.response-heading,.capabilities .section-heading{flex:none}
.response-figure{flex:1;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:14px;margin:18px 0 0}
.response-image-link{width:100%;height:100%;min-width:0;min-height:0;border:0;background:transparent;overflow:visible}
.ai-response .response-image{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.response-figure figcaption{margin:0}
.ai-openai-response .response-figure{grid-template-rows:minmax(0,2fr) minmax(0,3fr);gap:16px}
.ai-openai-response .response-image-link+.response-image-link{margin-top:0}
.results-screenshot .response-figure{grid-template-rows:minmax(0,1fr)}
.deck .capability-map{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;margin-top:24px}
.capability-image-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0}
.mobile-image-hint{display:none}
.deck .capability-visual{width:100%;height:100%;max-height:100%;object-fit:contain}
.capability-details{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
@media(max-width:700px){.paged-deck .deck>.ai-response,.paged-deck .deck>.capabilities{padding-top:64px;padding-bottom:20px}.response-figure{margin-top:16px;gap:12px}.ai-openai-response .response-figure{gap:12px}.response-figure figcaption{margin:0}.response-figure figcaption a{margin-top:8px;padding:0}.deck .capability-map{margin-top:20px}}
@media(max-height:650px){.paged-deck .deck>.ai-response,.paged-deck .deck>.capabilities{padding-top:56px;padding-bottom:16px}.deck .ai-response h2,.deck .capabilities h2{font-size:26px}.deck .ai-response .section-subtitle,.deck .capabilities .section-subtitle{font-size:14px;margin-top:6px}.response-logo{height:30px;width:110px}.response-figure{margin-top:12px;gap:8px}.response-figure figcaption strong{font-size:17px}.response-figure figcaption p,.response-figure figcaption a{font-size:14px}}
/* On phones, group headings and original images together, with one clear image link. */
@media(max-width:700px){
 .paged-deck .deck>.capabilities,.paged-deck .deck>.results-screenshot{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
 .deck .capabilities h2,.deck .results-screenshot h2{font-size:28px;line-height:1.15;max-width:none}
 .deck .capabilities .section-subtitle,.deck .results-screenshot .section-subtitle{font-size:16px;line-height:1.4;margin-top:10px}
 .deck .capability-map{margin-top:20px}
 .capability-image-link,.results-screenshot .response-image-link{flex-direction:column;align-items:stretch;justify-content:flex-start;gap:14px}
 .mobile-image-hint{display:flex;align-items:center;justify-content:space-between;flex:none;width:100%;min-height:44px;padding:10px 14px;border:1px solid #cbd4c1;border-radius:8px;background:#f5f8f0;color:#25351a;font-size:15px;font-weight:500;line-height:1.4}
 .mobile-image-hint>span{font-size:20px;line-height:1}
 .deck .capability-visual,.results-screenshot .response-image{flex:1;min-height:0;height:0;object-position:center top}
 .capability-image-link:focus-visible,.results-screenshot .response-image-link:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
}
/* Phone-only full-size viewing, using the unchanged landscape image. */
.capability-viewer{position:fixed;inset:0;width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0 0 env(safe-area-inset-bottom,0px);border:0;background:#080b06;color:#fff;overflow:hidden;color-scheme:dark}
.capability-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.capability-viewer::backdrop{background:#080b06}
.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(12px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 12px max(16px,env(safe-area-inset-left,0px));border-bottom:1px solid #30382a}
.viewer-toolbar p{font-size:16px;font-weight:500}
.viewer-toolbar button{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;border:1px solid #61704e;border-radius:8px;background:#151a11;color:#fff;font:inherit;font-size:16px;cursor:pointer}
.viewer-toolbar button:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
.viewer-stage{position:relative;min-height:0}
.viewer-image{position:absolute;left:50%;top:50%;width:auto;height:auto;max-width:calc(100dvw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));max-height:calc(100dvh - 100px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));object-fit:contain;transform:translate(-50%,-50%)}
@media(orientation:portrait){
 .viewer-image{width:min(calc(100dvh - 100px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)),calc((100dvw - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))*1862/845));max-width:none;max-height:none;transform:translate(-50%,-50%) rotate(90deg)}
}
@media print{.paged-deck .deck>.ai-response,.paged-deck .deck>.capabilities{height:900px;min-height:0;break-inside:avoid}.response-figure figcaption a{display:none}}
