/* 72.148 — Case Study only; native wrapper, typeface, navigation and cubes reused. */
.ecs-case-study-hero{position:relative;background:linear-gradient(125deg,#001923,#0d3243);color:#fff;padding:clamp(110px,10vw,160px) 0 clamp(48px,6vw,88px)}
.ecs-case-study-heading{position:relative;z-index:1;max-width:1040px}
.ecs-case-study-heading.has-image{display:grid;grid-template-columns:minmax(0, .85fr) minmax(0,1.3fr);gap:clamp(28px,4vw,64px);align-items:center;max-width:none}
.ecs-case-study-heading h1{color:#fff;font-size:clamp(30px,3.4vw,52px);line-height:1.15;margin:20px 0}
.ecs-case-study .ecs-case-study-hero p.ecs-case-study-deck{font-size:clamp(18px,1.6vw,24px);line-height:1.5;font-style:italic;color:#fff;margin:0}
.ecs-case-study-cover{margin:0}
.ecs-case-study-cover img{display:block;width:100%;height:auto}
.ecs-case-study-paper{background:linear-gradient(#f0efff,#fff);padding:clamp(40px,6vw,80px) 0}
.ecs-case-study-content{color:#0d3243}
.ecs-case-study-content p,.ecs-case-study-content li{font-size:18px;line-height:1.65}
.ecs-case-study-content h2{font-size:clamp(24px,2.3vw,32px);line-height:1.25;color:#0d3243;margin:1.6em 0 .7em}
.ecs-case-study-content>.ecs-case-study-subtitle{display:none} /* Excerpt supplies the hero subtitle. */
.ecs-case-study-overview{gap:clamp(28px,5vw,72px)!important;margin-bottom:48px}
.ecs-case-study-overview>.wp-block-column:first-child h2{font-size:16px;line-height:1.4;text-transform:uppercase;letter-spacing:.06em;border-top:1px solid #b8c8d2;padding-top:22px;margin:24px 0 14px}
.ecs-case-study-overview>.wp-block-column:first-child h2:first-child{border:0;margin-top:0;padding-top:0}
.ecs-case-study-overview ul{list-style:square;padding-left:20px}
.ecs-case-study-overview li{margin-bottom:12px}
.ecs-case-study-overview blockquote{border-left:4px solid #00b7cf;margin:28px 0;padding:8px 0 8px 24px}
.ecs-case-study-overview blockquote p{font-weight:600;font-style:italic}
.ecs-case-study-overview cite{display:block;font-size:15px;line-height:1.5;margin-top:12px}
.ecs-case-study-article{columns:2;column-gap:clamp(32px,5vw,72px)}
.ecs-case-study-article h2{break-after:avoid;margin-top:0}
.ecs-case-study-article p{orphans:3;widows:3}
.ecs-case-study-results{margin-top:48px;border-top:1px solid #b8c8d2;padding-top:28px}
.ecs-case-study-results ul{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;list-style:none;padding:0;margin:24px 0}
.ecs-case-study-results li{border:0;padding:0;margin:0}
.ecs-case-study-results strong{display:block;color:#0d3243;font-size:24px;margin-bottom:8px}
@media(max-width:781px){.ecs-case-study-heading.has-image{grid-template-columns:1fr}.ecs-case-study-cover{max-width:500px}.ecs-case-study-article{columns:1}.ecs-case-study-results ul{grid-template-columns:repeat(2,minmax(0,1fr))}.ecs-case-study-overview{gap:24px!important}}
@media(max-width:480px){.ecs-case-study-results ul{grid-template-columns:1fr}}

/* 72.148: keep the summary beside the entire story; no global block changes. */
.ecs-case-study-content .ecs-case-study-overview blockquote{background-position:24px 10px;padding:60px 24px 20px;color:#0d3243;opacity:1;visibility:visible;height:auto;overflow:visible}
.ecs-case-study-content .ecs-case-study-overview blockquote p,.ecs-case-study-content .ecs-case-study-overview blockquote cite{color:#0d3243;opacity:1;visibility:visible}
.ecs-case-study-results li+li{border-left:1px solid #b8c8d2;padding-left:24px}

/* 72.149: shared columns, naturally scrolling tall summaries, bounded sticky area. */
.ecs-case-study-heading.has-image,.ecs-case-study-story{grid-template-columns:minmax(0,1fr) minmax(0,2.1fr);gap:clamp(32px,5vw,72px)}
.ecs-case-study-story{display:grid;align-items:start}
.ecs-case-study-summary{position:sticky;top:var(--case-study-sticky-top,130px);align-self:start;min-width:0}
.ecs-case-study-narrative{min-width:0}
.ecs-case-study-narrative .ecs-case-study-article{columns:1}
.ecs-case-study-narrative>div,.ecs-case-study-narrative p,.ecs-case-study-narrative h2{margin-left:0;margin-right:0}
.ecs-case-study-narrative>h2:first-child{margin-top:0}
.ecs-case-study-narrative .ecs-case-study-article h2{margin-top:1.6em}
.ecs-case-study-summary h2{font-size:16px;line-height:1.4;text-transform:uppercase;letter-spacing:.06em;border-top:1px solid #b8c8d2;padding-top:22px;margin:24px 0 14px}
.ecs-case-study-summary h2:first-child{border:0;margin-top:0;padding-top:0}
.ecs-case-study-summary ul{list-style:square;padding-left:20px}
.ecs-case-study-summary li{margin-bottom:12px}
.ecs-case-study-narrative blockquote{border-left:4px solid #00b7cf;background-position:24px 10px;margin:28px 0;padding:60px 24px 20px;color:#0d3243}
.ecs-case-study-narrative blockquote p{color:#0d3243;font-weight:600;font-style:italic}
.ecs-case-study-narrative cite{display:block;font-size:15px;line-height:1.5;margin-top:12px}
.ecs-case-study-hero .hero-cubes{display:none}
.ecs-case-study-cover{position:relative}
.ecs-case-study-cover::before,.ecs-case-study-cover::after{content:"";position:absolute;pointer-events:none;box-sizing:border-box}
.ecs-case-study-cover::before{width:28px;height:28px;background:#f4770b;right:-14px;top:-14px}
.ecs-case-study-cover::after{width:38px;height:38px;background:#9388ff;left:-19px;bottom:-19px}
.ecs-case-study-results ul{padding-left:0!important}
.ecs-case-study-results li::before{display:none}
@media(max-width:1023px){.ecs-case-study-story{display:block}.ecs-case-study-summary{position:static;margin-bottom:40px}.ecs-case-study-article{columns:1}}
@media(max-width:781px){.ecs-case-study-heading.has-image{grid-template-columns:1fr}}
@media(min-width:481px) and (max-width:781px){.ecs-case-study-results li:nth-child(odd){border-left:0;padding-left:0}}
@media(max-width:480px){.ecs-case-study-results li+li{border-left:0;border-top:1px solid #b8c8d2;padding:20px 0 0}}

/* 72.150: accessible sidebar accordion, animated without a nested scrollbar. */
.ecs-case-study-summary .ecs-case-study-accordion{border-top:1px solid #b8c8d2;margin:0;padding:0}
.ecs-case-study-summary .ecs-case-study-accordion:first-child{border-top:0}
.ecs-case-study-summary .ecs-case-study-accordion h2{border:0;margin:0;padding:0}
.ecs-case-study-summary .ecs-case-study-toggle{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:56px;padding:18px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#0d3243;text-align:left;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
.ecs-case-study-summary .ecs-case-study-toggle::before{display:none}
.ecs-case-study-summary .ecs-case-study-toggle::after{content:"";position:static;display:block;flex:0 0 8px;width:8px;height:8px;border:solid currentColor;border-width:0 1.5px 1.5px 0;background:none;transform:rotate(45deg);transition:transform 300ms ease}
.ecs-case-study-summary .is-open .ecs-case-study-toggle::after{transform:rotate(225deg)}
.ecs-case-study-summary .ecs-case-study-toggle:focus-visible{outline:2px solid #00b7cf;outline-offset:4px}
.ecs-case-study-panel{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows 350ms ease,opacity 250ms ease}
.ecs-case-study-accordion.is-open .ecs-case-study-panel{grid-template-rows:1fr;opacity:1}
.ecs-case-study-panel-inner{min-height:0;overflow:hidden}
.ecs-case-study-panel-inner>:last-child{margin-bottom:24px}
@media(prefers-reduced-motion:reduce){.ecs-case-study-panel,.ecs-case-study-summary .ecs-case-study-toggle::after{transition:none}}

/* 72.151: native layout block and sidebar download. */
/* 72.152: align the final divider with the other collapsed accordion rows. */
.ecs-case-study-download{margin-top:0;padding-top:24px;border-top:1px solid #b8c8d2}
.ecs-case-study-download-link{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;padding:16px 22px;background:#00abc4;color:#001923!important;font-size:16px;font-weight:600;line-height:1.4;text-align:center;text-decoration:none;border:0;white-space:normal}
.ecs-case-study-download-link:hover{background:#f4770b;color:#001923!important}
.ecs-case-study-download-link:focus-visible{outline:2px solid #0d3243;outline-offset:4px}
.editor-styles-wrapper .ecs-case-study-block>.block-editor-inner-blocks>.block-editor-block-list__layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.1fr);gap:32px}
.editor-styles-wrapper .ecs-case-study-summary{position:static}
.editor-styles-wrapper .ecs-case-study-editor-hint{font-size:13px;color:#526977}
@media(max-width:781px){.editor-styles-wrapper .ecs-case-study-block>.block-editor-inner-blocks>.block-editor-block-list__layout{display:block}}

/* 72.155: opt-in case-study gate; match the approved readable/blurred teaser. */
.ecs-case-study-paper.ecs-case-gated{background:#fff}
.ecs-case-gated .ecs-case-study-narrative>h2:first-child{margin-top:0}
.ecs-case-gate-blur{filter:blur(5px);opacity:.48;user-select:none;pointer-events:none;mask-image:linear-gradient(#000,transparent);margin-bottom:-12px}
.ecs-case-gate-form{position:relative;background:#fff;border:0;padding:24px 0 0;scroll-margin-top:140px}
.ecs-case-gate-form .ecs-page-gate__form-card{border:0;border-top:0;background:#fff;color:#0d3243;padding:clamp(20px,3vw,48px);box-shadow:0 12px 36px rgba(13,50,67,.06)}
.ecs-case-gate-form .ecs-page-gate__form-card p{color:#526977}
.ecs-case-gate-form .ecs-page-gate__form-card a{color:#256d87}
.ecs-case-gate-continuation{position:relative;min-height:330px;pointer-events:none;user-select:none;background:radial-gradient(ellipse at 50% 0,rgba(39,87,110,.12),transparent 70%);mask-image:linear-gradient(transparent,#000 18%,#000 45%,transparent)}
.ecs-case-gate-lines{padding:38px 24px;filter:blur(7px);opacity:.3;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.ecs-case-gate-lines b,.ecs-case-gate-lines i{display:block;height:12px;margin:16px 0;background:#557b8e}
.ecs-case-gate-lines b{width:65%;height:22px;margin-top:26px}
.ecs-case-gate-lines i:nth-child(4n){width:82%}
@media(prefers-reduced-motion:no-preference){html:has(.ecs-case-gated){scroll-behavior:smooth}}

.ecs-case-gate-intro h2{margin-top:18px}
.ecs-case-gate-intro .small-kicker.boxed{display:inline-block;background:#9388ff;color:#fff;padding:6px 10px}

/* 72.157: align the page form to the narrative column on desktop. */
@media(min-width:1024px){
 .ecs-case-study-paper>.wrapper.ecs-case-study-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.1fr);column-gap:clamp(32px,5vw,72px)}
 .ecs-case-study-paper>.wrapper.ecs-case-study-content>*{grid-column:1/-1}
 .ecs-case-study-paper>.wrapper.ecs-case-study-content>.form-code.contact-form{grid-column:2}
}
