/* Keep the authored scenario together; its supporting illustration has its own column. */
#professional-content .mk-section-inner:has(>.professional-scenario-aside){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);grid-template-rows:auto auto;gap:20px clamp(32px,5vw,72px);align-items:start}
#professional-content .mk-section-inner:has(>.professional-scenario-aside)>.professional-section-heading{grid-column:1;grid-row:1;margin:0;max-width:none}
#professional-content .mk-section-inner:has(>.professional-scenario-aside)>.professional-section-heading h2{margin:0;max-width:25ch}
#professional-content .mk-section-inner:has(>.professional-scenario-aside)>.mk-section-content{grid-column:1;grid-row:2;max-width:none;margin:0;padding:0}
#professional-content .mk-section-inner:has(>.professional-scenario-aside)>.mk-section-content>.mk-prose{max-width:65ch}
#professional-content .mk-section-inner:has(>.professional-scenario-aside)>.mk-section-content>.mk-prose>p:last-child{margin-bottom:0}
#professional-content .professional-scenario-aside{grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:end;width:100%;max-width:420px;min-width:0;margin:0;padding:0}
#professional-content .professional-scenario-aside>.professional-scenario-visual{width:100%;height:250px;margin:0}
#professional-content .professional-scenario-aside .professional-scenario-orbit{width:220px;height:220px;right:-28px;bottom:-65px}
#professional-content .professional-scenario-aside .professional-scenario-paper{left:12%;top:40px;width:125px;height:160px;padding:28px 20px}
#professional-content .professional-scenario-aside .professional-scenario-paper i{height:5px;margin-top:16px}
#professional-content .professional-scenario-aside .professional-scenario-symbol{right:12%;top:68px;width:92px;height:92px;border-radius:21px}
#professional-content .professional-scenario-aside .professional-scenario-symbol .studio-icon{width:48px;height:48px;font-size:48px}
#professional-content .professional-scenario-aside .professional-scenario-check{left:40%;bottom:33px;width:36px;height:36px}
@media(max-width:800px){#professional-content .mk-section-inner:has(>.professional-scenario-aside){grid-template-columns:minmax(0,1fr);grid-template-rows:auto;gap:24px}#professional-content .mk-section-inner:has(>.professional-scenario-aside)>.professional-section-heading,#professional-content .mk-section-inner:has(>.professional-scenario-aside)>.mk-section-content{grid-column:1;grid-row:auto}#professional-content .professional-scenario-aside{grid-column:1;grid-row:auto;justify-self:center;margin-top:2px}#professional-content .professional-scenario-aside>.professional-scenario-visual{height:180px}#professional-content .professional-scenario-aside .professional-scenario-paper{top:25px;left:14%;width:102px;height:123px;padding:20px 18px}#professional-content .professional-scenario-aside .professional-scenario-paper i{height:4px;margin-top:13px}#professional-content .professional-scenario-aside .professional-scenario-symbol{top:47px;right:14%;width:74px;height:74px;border-radius:18px}#professional-content .professional-scenario-aside .professional-scenario-symbol .studio-icon{width:38px;height:38px;font-size:38px}#professional-content .professional-scenario-aside .professional-scenario-check{left:41%;bottom:20px;width:30px;height:30px}}

/* Bespoke examples share the same text-and-proof reading order. */
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #example>.mk-section-inner:has(>.professional-scenario-aside){display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);grid-template-rows:auto auto;gap:22px clamp(32px,4vw,64px);align-items:start}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #example>.mk-section-inner>.professional-section-heading{grid-column:1;grid-row:1;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:18px;margin:0;padding:0;max-width:none}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #example>.mk-section-inner>.professional-section-heading:not(:has(.studio-support-icon)){grid-template-columns:minmax(0,1fr)}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #example>.mk-section-inner>.professional-section-heading>.studio-support-icon{position:static;width:48px;height:48px;padding:10px;margin:0;border:1px solid #c5ddcf;border-radius:12px;background:#fff;color:#087f78;display:grid;place-items:center;grid-column:auto;grid-row:auto}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #example>.mk-section-inner>.professional-section-heading>h2{grid-column:auto;grid-row:auto;font-size:clamp(29px,2.8vw,38px);line-height:1.22;margin:0;max-width:25ch}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #example>.mk-section-inner>.mk-section-content{grid-column:1;grid-row:2;display:block;align-self:start;margin:0;padding:0;max-width:none;min-width:0}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #example>.mk-section-inner>.professional-scenario-aside{grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:center;width:100%;max-width:480px;min-width:0;margin:0}
#crm-feature-preview #example .professional-scenario-aside>.crm-context-visual{margin:0;padding:28px;min-width:0}
#professional-content #example>.mk-section-inner>.professional-scenario-aside{max-width:420px}
#crm-feature-preview #example .crm-context-centre strong{font-size:16px;line-height:1.5}
.professional-agreement-story{padding:26px;border:1px solid #c8ded0;border-radius:16px;background:#eef7f1}
.professional-agreement-story>.professional-agreement-caption{margin:0 0 19px;color:#416557;font-size:14px;line-height:1.6}
.professional-agreement-story>ol{display:grid;gap:13px;list-style:none;margin:0;padding:0}
.professional-agreement-story li{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:14px;padding:14px;background:#fff;border:1px solid #d3e4d9;border-radius:10px;transition:background-color .2s,border-color .2s}
.professional-agreement-story li.is-current{background:#e0f1e7;border-color:#79ad92}
.professional-agreement-icon{display:grid;place-items:center;color:#087f78}
.professional-agreement-icon svg{width:27px;height:27px}
.professional-agreement-story strong,.professional-agreement-story small{display:block;line-height:1.5}
.professional-agreement-story strong{font-size:16px;color:#173e31;font-weight:600}
.professional-agreement-story small{font-size:14px;color:#49695b;margin-top:4px}
/* A single mobile composition replaces the nested panel on every renderer. */
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context>.mk-section-inner{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);grid-template-rows:auto auto auto;gap:20px clamp(30px,4vw,64px);align-items:start}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context .professional-section-heading{grid-column:1;grid-row:1;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:18px;margin:0;padding:0;max-width:none}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context .professional-section-heading:not(:has(.studio-support-icon)){grid-template-columns:minmax(0,1fr)}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context .professional-section-heading>.studio-support-icon{position:static;grid-column:auto;grid-row:auto;display:grid;place-items:center;width:48px;height:48px;padding:10px;margin:0;border:1px solid #c5ddcf;border-radius:12px;background:#fff;color:#087f78}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context .professional-section-heading>h2{grid-column:auto;grid-row:auto;margin:0;max-width:25ch;font-size:clamp(29px,2.8vw,38px);line-height:1.22}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context :is(.mk-section-content,.professional-mobile-context,.crm-mobile-story){display:contents}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context .mk-section-content>.mk-prose{grid-column:1;grid-row:2;align-self:start;max-width:68ch;margin:0}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context :is(.professional-mobile-note,.crm-mobile-copy){grid-column:1;grid-row:3;min-width:0;max-width:68ch;border-top:1px solid #cddfd4;padding:22px 0 0;margin:0}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context :is(.professional-mobile-note,.crm-mobile-copy) h3{font-size:24px;line-height:1.35;margin:0 0 14px;max-width:none}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context :is(.professional-mobile-note,.crm-mobile-copy) p{font-size:16px;line-height:1.75;margin:0 0 15px}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context .crm-mobile-copy .crm-mobile-kicker{font-size:14px;margin-bottom:12px}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context .professional-mobile-icon{display:none}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context :is(.professional-mobile-capture,.crm-mobile-product){grid-column:2;grid-row:1 / span 3;align-self:center;justify-self:center;width:min(100%,220px);max-width:220px;min-width:0;padding:0;margin:0}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context :is(.professional-mobile-capture,.crm-mobile-product) .te-media{margin:0;border:5px solid #fff;border-radius:23px;background:#fff;box-shadow:0 14px 35px #173e3015;overflow:hidden}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context :is(.professional-mobile-capture,.crm-mobile-product) .te-media-frame{min-height:0;max-height:none;aspect-ratio:auto!important}
:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context :is(.professional-mobile-capture,.crm-mobile-product) img{display:block;width:100%;height:auto;max-height:none;object-fit:contain!important}
/* The agency calculator keeps the width its controls need; the introduction reads together. */
.agency-preview #example>.agency-section-inner{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
.agency-preview #example .agency-section-heading{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px 18px;max-width:850px;margin:0}
.agency-preview #example .agency-section-heading>.agency-kicker{grid-column:1/-1;margin:0}
.agency-preview #example .agency-section-heading>h2{grid-column:2;margin:0;max-width:none}
.agency-preview .professional-agency-section-icon{display:grid;place-items:center;grid-column:1;width:48px;height:48px;padding:10px;border:1px solid #c5ddcf;border-radius:12px;background:#fff;color:#087f78}
.agency-preview .professional-agency-section-icon svg{width:27px;height:27px}
.agency-preview #example .agency-section-content>.agency-prose{grid-column:1;max-width:85ch;margin:0}
.agency-preview #example .agency-retainer{grid-column:1;margin-top:4px}
.agency-preview #mobile-context>.agency-section-inner{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);grid-template-rows:auto auto auto;gap:22px 55px;align-items:start}
.agency-preview #mobile-context .agency-section-heading{grid-column:1;grid-row:1;display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px 18px;max-width:none;margin:0}
.agency-preview #mobile-context .agency-section-heading>.agency-kicker{grid-column:1/-1;margin:0}
.agency-preview #mobile-context .agency-section-heading>h2{grid-column:2;margin:0}
.agency-preview #mobile-context :is(.agency-section-content,.agency-mobile-story){display:contents}
.agency-preview #mobile-context .agency-section-content>.agency-prose{grid-column:1;grid-row:2;margin:0;align-self:start}
.agency-preview #mobile-context .agency-mobile-copy{grid-column:1;grid-row:3;max-width:68ch;border-top:1px solid #cddfd4;padding:22px 0 0;margin:0}
.agency-preview #mobile-context .agency-mobile-copy h3{font-size:24px;line-height:1.35;margin:0 0 14px}
.agency-preview #mobile-context .agency-mobile-copy>p{font-size:16px;line-height:1.75;margin:0 0 15px}
.agency-preview #mobile-context .agency-mobile-copy>.agency-kicker{font-size:14px;margin-bottom:12px}
.agency-preview #mobile-context .agency-mobile-product{grid-column:2;grid-row:1 / span 3;align-self:center;justify-self:center;width:min(100%,220px);max-width:220px;padding:0;margin:0}
.agency-preview #mobile-context .agency-mobile-product .te-media{margin:0;border:5px solid #fff;border-radius:23px;background:#fff;box-shadow:0 14px 35px #173e3015;overflow:hidden}
.agency-preview #mobile-context .agency-mobile-product .te-media-frame{min-height:0;max-height:none;aspect-ratio:auto!important}
.agency-preview #mobile-context .agency-mobile-product img{display:block;width:100%;height:auto;max-height:none;object-fit:contain!important}
@media(max-width:800px){
 :is(#professional-content,#crm-feature-preview,#quotation-feature-preview) :is(#example,#mobile-context)>.mk-section-inner:has(.professional-section-heading){grid-template-columns:minmax(0,1fr);grid-template-rows:auto;gap:23px}
 :is(#professional-content,#crm-feature-preview,#quotation-feature-preview) :is(#example,#mobile-context)>.mk-section-inner>.professional-section-heading{grid-column:1;grid-row:auto;grid-template-columns:42px minmax(0,1fr);gap:15px}
 :is(#professional-content,#crm-feature-preview,#quotation-feature-preview) :is(#example,#mobile-context)>.mk-section-inner>.professional-section-heading>.studio-support-icon{width:42px;height:42px;padding:9px}
 :is(#professional-content,#crm-feature-preview,#quotation-feature-preview) :is(#example,#mobile-context)>.mk-section-inner>.professional-section-heading>h2{font-size:29px;max-width:none}
 :is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #example>.mk-section-inner>.mk-section-content,:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #example>.mk-section-inner>.professional-scenario-aside{grid-column:1;grid-row:auto}
 :is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context :is(.mk-section-content>.mk-prose,.professional-mobile-note,.crm-mobile-copy,.professional-mobile-capture,.crm-mobile-product){grid-column:1;grid-row:auto}
 :is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #mobile-context :is(.professional-mobile-capture,.crm-mobile-product){width:200px;margin-top:4px}
 .agency-preview #mobile-context>.agency-section-inner{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;gap:23px}
 .agency-preview #mobile-context :is(.agency-section-heading,.agency-section-content>.agency-prose,.agency-mobile-copy,.agency-mobile-product){grid-column:1;grid-row:auto}
 .agency-preview #mobile-context .agency-mobile-product{width:200px;margin-top:4px}
}
@media(max-width:420px){#crm-feature-preview #example .professional-scenario-aside>.crm-context-visual{padding:22px 16px}#crm-feature-preview #example .crm-context-branches{gap:9px}#crm-feature-preview #example .crm-context-branches>span{padding:13px 6px;overflow-wrap:anywhere}.professional-agreement-story{padding:21px}.professional-agreement-story li{padding:12px;gap:11px;grid-template-columns:30px minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.professional-agreement-story li{transition:none}}

/* Centre the complete text group beside taller artwork without expanding its internal gap. */
@media(min-width:801px){:is(#professional-content,#crm-feature-preview,#quotation-feature-preview) #example>.mk-section-inner:has(>.professional-scenario-aside)>.professional-section-heading{align-self:end}}
