/* Image-led case cards. Natural image proportions also support prepared collages. */
.official-home .case-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start}
.official-home .case-gallery>.library-card-wrap,.official-home .case-gallery>.case-card{break-inside:avoid;display:block;min-width:0;margin:0}
.official-home .case-gallery .case-card{display:block;height:auto;border:1px solid #e9edf2;border-radius:12px;box-shadow:none}
.official-home .case-gallery .case-photo{aspect-ratio:auto;max-height:none;background:#f7f8fa}
.official-home .case-gallery .case-photo img{display:block;width:100%;height:auto;object-fit:contain}
.official-home .case-gallery .case-photo small{top:auto;bottom:8px;left:8px;padding:3px 7px;font-size:11px}
.official-home .case-gallery .case-card-copy{display:block;padding:12px 14px}
.official-home .case-gallery .case-card h3{font-size:17px;min-height:0;line-height:1.5;margin:0}
.case-card-summary{font-size:13px;color:#687589;line-height:1.6;margin:7px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.case-stories-page .catalog-heading{padding-top:20px}.case-stories-page .catalog-back{margin-bottom:12px}
.case-stories-page .catalog-heading h1{font-size:30px}.case-stories-page .catalog-heading>p:not(.official-kicker){margin-bottom:16px}
.case-stories-page .catalog-tabs{margin-bottom:18px}
/* A single reading column, with controls available while the note scrolls. */
.catalog-case-detail.case-note.case-detail-minimal,.catalog-case-detail.case-note{width:min(680px,calc(100vw - 32px));padding:0;max-height:92dvh;overscroll-behavior:contain;border-radius:16px}
.case-note .case-note-toolbar{position:sticky;top:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;background:#fff;border-bottom:1px solid #edf0f4}
.case-note .case-note-toolbar>span{font-size:14px;color:#566578}
.case-note .case-note-toolbar button{margin:0;min-height:44px;border:0;background:#fff;color:#17304e;font-size:15px;padding:8px;cursor:pointer;border-radius:6px}
.case-note .case-note-toolbar .case-note-share{color:#1767e8}
.catalog-case-detail.case-note .case-detail-content{display:block;padding:0}
.catalog-case-detail.case-note .case-detail-large img{width:100%;height:auto;max-height:42dvh;object-fit:contain;background:#f7f8fa}
.case-note .case-detail-gallery{min-width:0}
.case-note .case-detail-copy{padding:16px 22px 4px}
.case-note.case-detail-minimal .case-detail-copy h1{font-size:24px;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}
.case-note .case-short-intro,.case-note-description{font-size:16px;line-height:1.8;color:#425166;white-space:pre-wrap;overflow-wrap:anywhere}
.case-note-description{margin:10px 0 0}
.case-note-description.is-collapsed{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.case-note-description.is-expanded{display:block}
.case-note .case-note-expand{font:inherit;font-size:14px;border:0;background:none;color:#1767e8;padding:8px 0;cursor:pointer}
.case-note .case-short-tags{margin:14px 0;gap:8px}.case-note .case-short-tags span{font-size:13px;padding:4px 9px}
.case-note .case-demo-caption{text-align:left;font-size:12px;margin:8px 0;color:#84714c}
.case-note .case-detail-caption{text-align:center;font-size:13px;color:#69778a;margin:0;padding:0 16px 8px}
.case-note .case-note-dots{display:flex;justify-content:center;gap:0;margin:0;padding:6px 0;overflow:visible}
.case-note .case-note-dots button{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:0;padding:0;background:transparent;cursor:pointer}
.case-note .case-note-dots button span{display:block;width:6px;height:6px;background:#cbd1da;border-radius:50%}
.case-note .case-note-dots button[aria-pressed=true] span{background:#1767e8;width:8px;height:8px}
.case-note .case-detail-disclosures{margin:8px 22px 18px;padding-top:8px}
.case-note .case-note-actions{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px max(12px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e7edf4}
.case-note-actions p{font-size:14px;line-height:1.5;margin:0}.case-note-actions small{display:block;font-size:12px;color:#69778a;margin-top:3px}
.case-note-actions .official-primary{display:flex;align-items:center;justify-content:center;white-space:nowrap;margin:0;min-height:46px;padding:10px 22px;font-size:16px;box-sizing:border-box}
.case-note .case-share-panel{position:sticky;top:64px;z-index:5;padding:16px 22px;background:#f5f8fd;border-bottom:1px solid #dce5f1}
.case-share-panel[hidden]{display:none}.case-share-heading{display:flex;justify-content:space-between;align-items:center}
.case-share-panel p{font-size:14px;color:#566578;line-height:1.6;margin:8px 0}.case-share-panel label{display:block;font-size:13px;color:#566578}
.case-share-panel input{box-sizing:border-box;display:block;width:100%;min-width:0;border:1px solid #c9d6e7;background:#fff;padding:10px;font:inherit;font-size:14px;line-height:1.5;margin:6px 0 12px;border-radius:6px}
.case-share-panel button{border:1px solid #c9d6e7;background:#fff;border-radius:7px;padding:10px 14px;font-size:14px;color:#1767e8;cursor:pointer;min-height:44px}
.case-share-heading button{border:0;background:none;font-size:24px;padding:0 10px}.case-share-actions{display:flex;gap:10px;flex-wrap:wrap}.case-share-status:empty{display:none}
.case-note button:focus-visible,.case-note a:focus-visible{outline:3px solid #1767e8;outline-offset:2px}
@media(max-width:1100px){.official-home .case-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 .official-home .case-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.official-home .case-gallery>.library-card-wrap,.official-home .case-gallery>.case-card{margin-bottom:0}
 .official-home .case-gallery .case-card-copy{padding:10px}.official-home .case-gallery .case-card h3{font-size:15px}.case-card-summary{font-size:12px}
 .case-stories-page .catalog-heading{padding-top:12px}.case-stories-page .catalog-heading h1{font-size:23px}.case-stories-page .catalog-heading .official-kicker{display:none}
 .catalog-case-detail.case-note.case-detail-minimal,.catalog-case-detail.case-note{width:100%;height:100dvh;max-height:100dvh;max-width:100vw;margin:0;border:0;border-radius:0}
 .case-note .case-note-toolbar{padding:6px 10px}.case-note .case-note-toolbar>span{font-size:13px}
 .catalog-case-detail.case-note .case-detail-large img{max-height:65dvh}
 .case-note .case-detail-copy{padding:12px 16px 4px}.case-note.case-detail-minimal .case-detail-copy h1{font-size:21px}
 .case-note .case-detail-disclosures{margin:8px 16px 18px}.case-note .case-note-actions{padding:10px 16px max(10px,env(safe-area-inset-bottom))}
 .case-note-actions .official-primary{padding:10px 16px;font-size:15px}.case-note-actions p{font-size:12px}.case-note-actions small{font-size:11px}
 .case-note .case-share-panel{top:56px;padding:14px 16px}
}

/* Keep case photography clear; collection lives beside the detail CTA. */
.case-note-action-buttons{display:flex;align-items:center;gap:10px;flex-shrink:0}
.case-note .case-note-actions .library-favorite{position:static;display:flex;align-items:center;justify-content:center;min-height:46px;white-space:nowrap;font-size:14px!important;border-radius:8px!important;padding:10px 12px!important;box-sizing:border-box}
.catalog-case-detail.case-note:focus{outline:none}
.case-note .case-detail-close:focus{outline:none;box-shadow:none}
.case-note .case-detail-close:focus-visible{outline:2px solid #8794a4;outline-offset:2px}
@media(max-width:760px){.case-note .case-note-actions{flex-wrap:wrap;gap:8px}.case-note-actions>p{flex-basis:100%}.case-note-action-buttons{width:100%}.case-note-action-buttons .official-primary{flex:1}.case-note .case-note-actions .library-favorite{min-width:82px}}

/* Mobile browsing gives the photograph priority; full copy stays in details. */
@media(max-width:560px){
 .official-home .case-gallery{margin-left:-10px;margin-right:-10px;gap:12px 6px}
 .official-home .case-gallery .case-card{border:0;border-radius:7px;overflow:hidden}
 .official-home .case-gallery .case-card-copy{padding:7px 6px 9px}
 .official-home .case-gallery .case-card h3{font-size:13px;font-weight:600;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .official-home .case-gallery .case-card-summary{display:block;font-size:11px;line-height:1.5;margin:4px 0 0;overflow:visible;overflow-wrap:anywhere;-webkit-line-clamp:unset}
}

.official-home .product-visual[data-structure-visual]{background:#f0f6f9;padding:14px;box-sizing:border-box}.official-home .product-visual[data-structure-visual] img{width:100%;height:100%;object-fit:contain}.official-home .product-copy .box-feature{display:block;font-size:13px;line-height:1.6;color:#65758a;margin:8px 0 14px}.box-compare{width:min(900px,calc(100vw - 32px));max-height:90dvh;overflow:auto;box-sizing:border-box;border:1px solid #dce5ed;border-radius:14px;padding:22px;color:#17304e}.box-compare::backdrop{background:#17304e66}.box-compare header{display:flex;justify-content:space-between;align-items:center}.box-compare h2{margin:0;font-size:22px}.box-compare button{background:white;border:0;font-size:26px;min-width:44px;min-height:44px;cursor:pointer}.box-compare-images{display:grid;grid-template-columns:1fr 1fr;gap:16px}.box-compare figure{margin:0;min-width:0;background:#f4f8fa;padding:12px;border-radius:8px}.box-compare figcaption{font-size:14px;margin-bottom:12px}.box-compare figure img{width:100%;height:260px;object-fit:contain}.box-compare-note{font-size:12px;color:#65758a}.box-compare footer{display:flex;justify-content:flex-end;margin-top:16px}@media(max-width:560px){.box-compare{padding:16px}.box-compare-images{grid-template-columns:1fr}.box-compare figure img{height:200px}.official-home .product-copy .box-feature{font-size:12px}}

.official-home .product-visual[data-structure-visual]{overflow:hidden}.official-home .product-visual[data-structure-visual] img{max-width:100%;max-height:100%;flex-shrink:1}

/* Fit the complete structure drawing; no blue framing. */
.official-home .product-visual[data-structure-visual]{background:#fff;padding:12px;display:flex;align-items:center;justify-content:center}
.official-home .product-visual[data-structure-visual] img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.box-compare figure{background:#fff;border:1px solid #e5e7eb}
/* Fit both box views into the available mobile dialog height. */
@media(max-width:560px){.box-compare{padding:12px;max-height:90dvh}.box-compare header{min-height:32px}.box-compare h2{font-size:18px;line-height:1.3}.box-compare>p:not(.box-compare-note){font-size:12px;line-height:1.5;margin:4px 0 10px}.box-compare-images{gap:8px}.box-compare figure{padding:8px}.box-compare figcaption{font-size:12px;line-height:1.4;margin-bottom:4px}.box-compare figure img{height:clamp(60px,calc((90dvh - 310px)/2),180px)}.box-compare .box-compare-note{font-size:10px;line-height:1.4;margin:8px 0}.box-compare footer{margin-top:8px}.box-compare footer a{font-size:12px;min-height:38px;padding:7px 14px}.box-compare [data-box-close]{font-size:24px;min-width:40px;min-height:36px;padding:0;color:#52616f}}

.case-note .case-share-hint{position:fixed;inset:0;z-index:100;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:rgba(15,23,42,.72);color:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;box-sizing:border-box;padding:12px 22px;font:inherit;outline:none;box-shadow:none}
.case-share-hint[hidden]{display:none!important}.case-share-hint svg{width:86px;height:92px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.case-share-hint span{font-size:17px;line-height:1.6;margin-top:8px;max-width:100%;text-align:right}.case-share-hint:focus-visible span{outline:1px dashed #fff;outline-offset:6px}
/* Preserve the photo proportions without tinted side bands; center vector controls. */
.catalog-case-detail.case-note .case-detail-large{background:#fff}
.catalog-case-detail.case-note .case-detail-large img{display:block;width:auto;height:auto;max-width:100%;max-height:42dvh;margin:0 auto;background:#fff}
.catalog-case-detail .case-carousel :is(.case-carousel-prev,.case-carousel-next){display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0;line-height:1}
.catalog-case-detail .case-carousel button svg{display:block;flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
/* The direct case document remains readable before JavaScript loads. */
.seo-case-detail{max-width:760px;margin:0 auto 32px}.seo-case-detail>p{white-space:pre-wrap;overflow-wrap:anywhere}.seo-case-detail figure{margin:20px 0}.seo-case-detail img{display:block;max-width:100%;max-height:60vh;margin:auto;object-fit:contain}.seo-case-detail figcaption{margin:8px 0;text-align:center;color:#65758a}
