/* Reusable editorial chapters: supporting images, flowing copy, and deliberate photo groups. */
.case-story{--bg:#faf9f6;background:var(--bg)}
.case-story main{max-width:1200px;padding:0 clamp(22px,5vw,64px)}
.case-story .article-heading,.case-story .article-opening.text-only,.case-story .article-body,.case-story .article-end{margin-left:0;margin-right:0}
.case-story .article-heading{margin-top:32px}.case-story .back-link{margin-bottom:28px}
.case-story .article-heading:before{display:none}.case-story .article-heading h1{max-width:920px;font-size:clamp(38px,4.7vw,64px);line-height:1.08;letter-spacing:-.035em}
.case-story .article-heading>.eyebrow{margin-bottom:16px}
.case-story .article-meta{padding:20px 0;margin-top:16px}
.case-story .article-opening.text-only{display:block;max-width:none;margin-top:26px;margin-bottom:30px}
.case-story .article-opening .opening-copy{max-width:850px}
.case-story .opening-copy>p{font-size:20px;line-height:1.65}
.case-story .article-body{display:block;max-width:none}
.case-story .flow-chapter{display:flow-root;margin:0 0 30px;padding:0}
.case-story .flow-chapter h2{font-size:clamp(25px,2.6vw,34px);font-weight:600;letter-spacing:-.025em;color:#008ba6;line-height:1.2;margin:0 0 20px}
.case-story .flow-chapter p{font-size:18px;line-height:1.75;margin:0 0 18px;max-width:none;color:#465255}
.case-story .flow-chapter strong{font-weight:650;color:#303c40}
.case-story .flow-chapter .article-image.image-side{float:right;clear:none;width:31%;max-width:330px;margin:0 0 12px 34px}
.case-story .article-image img{width:100%;height:auto;max-height:235px;object-fit:contain;object-position:top right}
.case-story .article-corners{display:none}
.case-story .story-gallery{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:6px 0 24px;clear:both}
.case-story .story-gallery .article-image.image-full{float:none;clear:none;width:100%;margin:0}
.case-story .story-gallery img{width:100%;max-height:none;aspect-ratio:4/3;object-fit:cover}
.case-story .article-end{margin-top:24px;padding-bottom:30px}
@media(max-width:700px){.case-story main{padding:0 22px}.case-story .article-heading h1{font-size:38px}.case-story .opening-copy>p{font-size:18px}.case-story .flow-chapter p{font-size:17px;line-height:1.7}.case-story .flow-chapter .article-image.image-side{float:none;width:100%;max-width:none;margin:0 0 20px}.case-story .article-image img{max-height:270px;object-position:center}.case-story .story-gallery{gap:12px}.case-story .flow-chapter{margin-bottom:28px}}
.case-story .article-heading h1{text-wrap:balance}.case-story .story-gallery>.article-image{grid-column:auto;min-width:0}

/* The archive uses the same chapter rhythm, including lists and linked GIFs. */
.case-story .flow-chapter h3{color:#008ba6;font-size:26px;line-height:1.25;margin:0 0 20px}
.case-story .flow-chapter ul,.case-story .flow-chapter ol{font-size:18px;line-height:1.75;margin:0 0 20px;padding-left:26px;color:#465255}
.case-story .flow-chapter li{margin:0 0 8px}
.case-story .flow-chapter:has(.image-side)>ul,.case-story .flow-chapter:has(.image-side)>ol{display:flow-root}
.case-story .flow-chapter .article-image.image-side{width:32%;max-width:350px}
.case-story .flow-chapter .image-side img{width:100%;max-height:480px;object-fit:contain}
.case-story .flow-chapter .image-full{clear:both;margin:20px auto 28px;width:100%;max-width:900px}
.case-story .flow-chapter .image-full img{width:auto;max-height:520px;object-fit:contain}
.case-story .flow-chapter .article-media{max-width:100%}
.case-story .flow-chapter>p:has(>a>img){max-width:560px;margin:20px auto}
.case-story .flow-chapter blockquote{font-size:25px;line-height:1.5;margin:24px 0;padding:12px 24px}
.case-story .flow-chapter blockquote p{font:inherit}
.case-story .flow-chapter table{max-width:100%}
@media(max-width:700px){.case-story .flow-chapter .article-image.image-side{float:none;width:100%;max-width:none}.case-story .flow-chapter .image-side img{max-height:340px;width:auto}.case-story .flow-chapter ol,.case-story .flow-chapter ul{font-size:17px}.case-story .flow-chapter .image-full img{max-height:none}}

.case-story .flow-chapter .article-image.image-side{clear:right}.case-story .flow-chapter h2,.case-story .flow-chapter h3{scroll-margin-top:100px}
