/* Editorial case studies: scoped to the three selected references. */
.ref-detail:has(.ref-case) .ref-article{max-width:1110px;padding:38px 0 48px}.ref-detail:has(.ref-case) h1{font-size:36px;line-height:1.2}.ref-detail:has(.ref-case) .ref-label,.ref-case .case-eyebrow{color:#00AEDB}.ref-case{font-family:Raleway,sans-serif}.ref-case .case-eyebrow{display:block;font-size:12px;line-height:1.5;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:10px}.ref-case .case-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;border-bottom:1px solid #ddd;padding:0 0 28px}.ref-case .case-summary p{margin:0;font-size:16px;line-height:1.65}.ref-case .case-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#ddd;border:1px solid #ddd;margin:32px 0 10px}.ref-case .case-stats>div{padding:24px;background:#f6f6f6}.ref-case .case-stats strong{display:block;font-size:34px;line-height:1.2;font-weight:800;color:#242424}.ref-case .case-stats span{display:block;font-size:14px;line-height:1.6;margin-top:9px;color:#666}.ref-case .case-section{padding:34px 0;border-bottom:1px solid #e4e4e4;scroll-margin-top:130px}.ref-case .case-section>h2{font-size:29px;line-height:1.3;margin:0 0 25px;max-width:850px}.ref-case .case-split{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.ref-case .case-reverse .case-photo{order:-1}.ref-case .case-prose p,.ref-case .case-reading p{font-size:17px;line-height:1.8;margin:0 0 20px}.ref-case .case-prose p:last-child{margin-bottom:0}.ref-case .case-reading{max-width:780px;margin:24px auto 0}.ref-case .case-reading:empty{display:none}.ref-case .case-reading>h3{font-size:22px;margin:24px 0 12px}.ref-case .case-reading li{padding-left:5px;margin-bottom:9px}.ref-case .case-photo .gallery{display:block!important;margin:0!important}.ref-case .case-photo .gallery .g-img img{aspect-ratio:16/10;object-fit:cover;width:100%;border-radius:0}.ref-case .case-photo{min-width:0}.ref-case .case-photo a{outline-offset:4px}.ref-case .case-quote{border:0;border-left:4px solid #00AEDB;background:#f6f6f6;padding:24px 28px;margin:26px 0;font:500 18px/1.8 Raleway,sans-serif;color:#242424}.ref-case .case-services{padding:36px 0 0}.ref-case .case-services>h2{margin-top:0}.ref-case .case-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.ref-case .case-service-grid>div{display:flex;flex-direction:column;background:#f6f6f6;padding:24px;border-top:3px solid #00AEDB}.ref-case .case-service-grid h3{font-size:21px;line-height:1.35;margin:0 0 12px}.ref-case .case-service-grid h3 a{color:#242424;text-decoration:none}.ref-case .case-service-grid p{font-size:16px;line-height:1.7;margin:0 0 18px}.ref-case .case-service-link{margin-top:auto;font-size:14px;font-weight:700}.ref-case .case-video{max-width:900px}.ref-detail:has(.ref-case) .ref-quote{max-width:780px;margin:32px auto 0}.ref-case blockquote:before,.ref-case blockquote:after{content:none}
@media(max-width:991px){.ref-case .case-split{gap:25px}.ref-detail:has(.ref-case) h1{font-size:30px}.ref-case .case-service-grid{grid-template-columns:1fr}.ref-case .case-section>h2{font-size:26px}}
@media(max-width:650px){.ref-case .case-summary{grid-template-columns:1fr;gap:20px}.ref-case .case-stats{grid-template-columns:1fr}.ref-case .case-stats>div{display:flex;align-items:center;gap:20px;padding:18px 20px}.ref-case .case-stats strong{font-size:28px;flex:0 0 110px}.ref-case .case-stats span{margin:0}.ref-case .case-split{grid-template-columns:1fr;gap:22px}.ref-case .case-reverse .case-photo{order:0}.ref-case .case-section{padding:28px 0}.ref-case .case-section>h2{font-size:25px}.ref-case .case-reading{margin-top:22px}.ref-case .case-quote{padding:20px;font-size:17px}.ref-detail:has(.ref-case) h1{font-size:29px}.ref-detail:has(.ref-case) .ref-article{padding-top:28px}}
/* Keep each story section on one reading axis; no narrow text tails under photos. */
.ref-case .case-flow .case-split{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);align-items:start;gap:48px}.ref-case .case-flow .case-prose>h2{font-size:28px;line-height:1.3;margin:0 0 20px}.ref-case .case-flow .case-photo{position:sticky;top:130px;margin-top:4px}.ref-case .case-flow .case-photo .gallery .g-img img{aspect-ratio:auto;height:auto;object-fit:contain}.ref-case .case-flow .case-prose p{font-size:16px;line-height:1.8;margin:0 0 17px}.ref-case .case-flow .case-prose li{font-size:16px;line-height:1.7;margin-bottom:7px}.ref-case .case-flow{padding:40px 0}.ref-case .case-section>.case-reading{margin:0;max-width:850px}.ref-case .case-section>.case-reading>h2:first-child{margin-top:0}.ref-case .case-section>.case-video{max-width:100%}.ref-case .case-quote{background:transparent;border-left:3px solid #00AEDB;padding:4px 0 4px 22px;margin:24px 0;font-size:19px;line-height:1.6}.ref-case .case-quote p{font-size:19px!important;font-weight:600;line-height:1.6!important;margin:0 0 10px!important}.ref-case .case-quote footer{background:none;padding:0;font:700 13px/1.6 Raleway,sans-serif;color:#242424}.ref-case .case-quote footer span{display:block;font-weight:400;color:#666}.ref-case .case-quote footer:before{content:none}
@media(max-width:850px){.ref-case .case-flow .case-split{gap:28px}.ref-case .case-flow .case-prose>h2{font-size:25px}}
@media(max-width:650px){.ref-case .case-flow .case-split{grid-template-columns:1fr;gap:20px}.ref-case .case-flow .case-photo{position:static;margin:0}.ref-case .case-flow{padding:28px 0}.ref-case .case-flow .case-prose>h2{font-size:24px}.ref-case .case-quote{margin:20px 0;padding-left:18px}}

/* Compact editorial photo groups: thumbnails never inherit portrait image height. */
.ref-case .case-flow .case-photo{position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:14px;align-self:start}
.ref-case .case-photo>br{display:none}
.ref-case .case-photo .gallery,.ref-case .case-photo .gallery .item-list{display:contents!important}
.ref-case .case-photo .gallery .item{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;min-width:0}
.ref-case .case-photo .gallery .g-img{margin:0!important;padding:0!important}
.ref-case .case-photo .gallery .g-img a{display:block;height:clamp(200px,25vw,320px);overflow:hidden;background:#f6f6f6}
.ref-case .case-flow .case-photo .gallery .g-img img{display:block;width:100%;height:100%;max-height:100%;aspect-ratio:auto;object-fit:cover;object-position:center;border-radius:0}
@media(max-width:650px){.ref-case .case-flow .case-photo{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:10px}.ref-case .case-photo .gallery .g-img a{height:220px}.ref-case .case-photo:has(.gallery~.gallery) .gallery .g-img a,.ref-case .case-photo:has(.item~.item) .gallery .g-img a{height:190px}}
