/* Shared page rhythm for authored Elementor/HTML content and native application screens. */
.cq-platform-site{--cq-content-width:1136px;--cq-copy-width:760px;--cq-section-gap:40px;--cq-radius:18px}
.cq-platform-site .cq-existing-content{font-family:inherit;color:var(--cq-ink);line-height:1.75;min-width:0}
.cq-platform-site .cq-existing-content .cq-unified-shell{width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.cq-platform-site #cq-page-main .cq-existing-content .cq-unified-shell{width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0!important}
body.cq-platform-site:not(.cq-platform-article) .cq-page-intro{max-width:var(--cq-content-width);margin-inline:auto}
.cq-platform-site .cq-existing-content :is(h1,h2,h3,h4,h5,h6,p,a,li,label,input,textarea,select,button){font-family:inherit!important}
.cq-platform-site .cq-existing-content .elementor-invisible{visibility:visible!important;opacity:1!important;animation:none!important;transform:none!important}
.cq-platform-site .cq-existing-content :is(.elementor,.e-con.e-parent,.cq-unified-page){width:100%!important;max-width:100%!important;margin-inline:0!important;min-width:0}
.cq-platform-site .cq-existing-content .e-con.e-parent{--container-max-width:var(--cq-content-width);padding-inline:0!important}
.cq-platform-site .cq-existing-content .e-con.e-parent:not(.cq-unified-section):not(.cq-unified-hero){padding:0!important;margin:0!important;background:transparent!important;min-height:0!important}
.cq-platform-site .cq-existing-content .e-con-inner{max-width:100%;min-width:0}
.cq-platform-site .cq-existing-content .cqw{width:100%!important;max-width:100%!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important}
body.cq-platform-site #cq-page-main .cq-existing-content .cqw{width:100%!important;max-width:100%!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;margin:0!important}
.cq-platform-site .cq-existing-content :is(.elementor-widget-html,.elementor-widget-shortcode,.elementor-widget-text-editor,.elementor-widget-container){min-width:0;max-width:100%}
.cq-platform-site :is(.cq-page-overview,.cq-unified-hero){width:100%!important;max-width:var(--cq-content-width)!important;box-sizing:border-box!important;background:linear-gradient(115deg,#edf4ff,#effaf7)!important;border:1px solid #dfe7f1!important;border-radius:22px!important;padding:48px 40px!important;margin:0 auto 36px!important;text-align:left!important;box-shadow:none!important;min-height:0!important}
.cq-platform-site .cq-unified-hero :is(.cq-container,.cq-cl-inner,.cq-pitch-inner,.wrap){width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
.cq-platform-site :is(.cq-page-overview,.cq-unified-hero) h1{font-size:clamp(34px,4.1vw,54px)!important;line-height:1.12!important;letter-spacing:-.04em!important;font-weight:750!important;color:var(--cq-ink)!important;margin:14px 0 20px!important;max-width:950px!important;text-align:left!important}
.cq-platform-site .cq-unified-hero p{max-width:var(--cq-copy-width)!important;margin:12px 0!important;font-size:17px!important;line-height:1.75!important;color:#4c5e78!important;text-align:left!important}
.cq-platform-site .cq-unified-hero :is(.cq-label,.cq-eyebrow,.cqs-eyebrow,.cqw-eyebrow,.cq-cl-eyebrow,.cq-pitch-eyebrow){font-size:11px!important;letter-spacing:.1em!important;color:var(--cq-teal)!important;text-transform:uppercase!important}
.cq-platform-site .cq-unified-hero :is(.elementor-widget-container,.hfe-infocard,.hfe-infocard-content,.hfe-infocard-title-wrap){text-align:left!important}
.cq-platform-site .cq-unified-hero{display:block!important;--min-height:0px!important;--overlay-opacity:0!important}
body.cq-platform-site #cq-page-main .cq-unified-hero{padding:48px 40px!important}
.cq-platform-site .cq-unified-hero::before,.cq-platform-site .cq-unified-hero::after,.cq-platform-site .cq-unified-hero .e-con::before,.cq-platform-site .cq-unified-hero .e-con::after{display:none!important;background:none!important}
.cq-platform-site .cq-unified-hero :is(.e-con,.e-con-inner,.elementor-widget,.elementor-widget-container,.hfe-infocard,.hfe-infocard-content,.hfe-infocard-title-wrap){width:100%!important;max-width:100%!important;min-height:0!important;height:auto!important;flex-basis:auto!important;background:transparent!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important}
.cq-platform-site .cq-unified-hero .e-con-inner{display:block!important}
.cq-platform-site .cq-unified-hero :is(.hfe-infocard-text,.hfe-infocard-text p,.elementor-heading-title){color:var(--cq-ink)!important;text-transform:none!important}
body.cq-platform-site #cq-page-main .cq-unified-hero .hfe-infocard-text{max-width:var(--cq-copy-width)!important;font-size:17px!important;line-height:1.75!important;margin-top:16px!important;color:#4c5e78!important}
.cq-platform-site :is(h1,h2,h3,h4,h5,h6){text-transform:none!important}
.cq-platform-site .cq-existing-content .cq-unified-section{width:100%!important;max-width:var(--cq-content-width)!important;box-sizing:border-box!important;margin:var(--cq-section-gap) auto!important;padding:32px 28px!important;background:#fff!important;border:1px solid var(--cq-line)!important;border-radius:var(--cq-radius)!important;color:var(--cq-ink)!important;box-shadow:none!important;min-width:0}
.cq-platform-site .cq-existing-content .cq-unified-soft{background:#f0f5fc!important}
.cq-platform-site .cq-existing-content .cq-unified-section :is(h2,h3,h4,h5){color:var(--cq-ink)!important;letter-spacing:-.025em!important}
.cq-platform-site .cq-existing-content .cq-unified-section h2{font-size:clamp(25px,2.6vw,34px)!important;line-height:1.25!important;margin-top:0!important}
.cq-platform-site .cq-existing-content .cq-unified-section p{font-size:16px!important;line-height:1.8!important;color:#4c5e78!important}
.cq-platform-site .cq-existing-content .cq-unified-section :is(.cq-container,.cq-cl-inner,.cq-pitch-inner){max-width:100%!important;padding-inline:0!important;min-width:0}
.cq-platform-site .cq-existing-content .cq-unified-grid{gap:22px!important;min-width:0}.cq-platform-site .cq-unified-grid>*{min-width:0}
body.cq-platform-site #cq-page-main .cq-existing-content :is(a[class*="btn"],a[class*="button"],a.elementor-button,a[class*="-cta"]){background:#1d4ed8!important;color:#fff!important;border:1px solid #1d4ed8!important;border-radius:9px!important;box-shadow:none!important;min-height:44px;line-height:1.5!important;text-decoration:none!important;padding:12px 20px!important;font-weight:650!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;max-width:100%;white-space:normal}
body.cq-platform-site #cq-page-main .cq-existing-content :is(a[class*="btn"],a[class*="button"],a.elementor-button,a[class*="-cta"]):is(:hover,:focus-visible,:active){background:#173fae!important;border-color:#173fae!important;color:#fff!important}
body.cq-platform-site #cq-page-main .cq-existing-content :is(a[class*="btn"],a[class*="button"],a.elementor-button,a[class*="-cta"]) *{color:inherit!important}
.cq-platform-site .cq-existing-content .cq-unified-hero :is(a[class*="btn"],a[class*="button"]){margin-top:10px}
.cq-platform-site .cq-existing-content .cq-seo-landing{max-width:100%!important}
.cq-platform-site .cq-existing-content .cq-seo-landing>div{border-radius:var(--cq-radius)!important}
.cq-platform-site .cq-existing-content .cq-seo-landing>div:not(.cq-unified-hero){margin-block:32px!important;padding:28px!important;border:1px solid var(--cq-line)!important;background:#fff!important}
.cq-platform-site .cq-existing-content .cq-seo-landing>div:not(.cq-unified-hero) :is(h2,h3,p){color:var(--cq-ink)!important}
.cq-platform-site .cq-existing-content .cq-seo-landing a[style*="background"]{background:#1d4ed8!important;color:white!important;min-height:44px;border-radius:9px!important}
.cq-platform-site .cq-existing-content .cq-seo-landing :is(h2,h3){font-size:clamp(22px,2.3vw,30px)!important;line-height:1.3!important}
.cq-platform-site .cq-existing-content .cq-seo-landing p{font-size:16px!important;line-height:1.8!important}
.cq-platform-site .cq-existing-content .cqai-pricing{max-width:100%!important;margin:32px 0!important}
.cq-platform-site .cq-existing-content .cqai-plan{border-radius:var(--cq-radius)!important}
.cq-platform-site .cq-existing-content .cqai-plan h3{font-size:25px!important}
.cq-platform-site .cq-existing-content .cqai-table-scroll{max-width:100%;overflow-x:auto}
.cq-platform-site :is(.cqai-account,.cqai-auth-wrap,.cqai-auth-tabs,.cqai-checkout,.cqai-checkout-wrap,.cqd-login-wrap){max-width:960px!important;margin:28px auto!important;border-radius:var(--cq-radius)!important;min-width:0}
.cq-platform-site .cq-existing-content .cqai-application-guide{margin-block:24px}
.cq-platform-site .cq-existing-content :is(.wpforms-container,.wpforms-form,.wpforms-field-container,.wpforms-field){min-width:0!important;max-width:100%!important;box-sizing:border-box}
.cq-platform-site .cq-existing-content .wpforms-form :is(input:not([type=checkbox]):not([type=radio]),textarea,select){width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;font:inherit;min-height:44px}
@media(max-width:1100px){.cq-platform-site .cq-existing-content .cq-unified-grid[style*="grid-template-columns"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){
 .cq-platform-site{--cq-section-gap:26px}
 .cq-platform-site :is(.cq-page-overview,.cq-unified-hero){padding:30px 22px!important;border-radius:16px!important;margin-bottom:26px!important}
 body.cq-platform-site #cq-page-main .cq-unified-hero{padding:30px 22px!important}
 .cq-platform-site :is(.cq-page-overview,.cq-unified-hero) h1{font-size:32px!important;line-height:1.16!important}
 .cq-platform-site .cq-unified-hero p{font-size:16px!important}
 .cq-platform-site .cq-existing-content .cq-unified-section{padding:24px 18px!important;border-radius:14px!important}
 .cq-platform-site .cq-existing-content .cq-unified-grid{grid-template-columns:minmax(0,1fr)!important}
 .cq-platform-site .cq-unified-section div[style*="min-width"]{min-width:0!important;max-width:100%!important}
 .cq-platform-site .cq-unified-section>div,.cq-platform-site .cq-unified-section>div>div{min-width:0!important;max-width:100%!important}
 .cq-platform-site .cq-existing-content .cq-seo-landing>div:not(.cq-unified-hero){padding:22px 18px!important}
 .cq-platform-site .cq-existing-content .cq-seo-landing [style*="display:grid"]{grid-template-columns:minmax(0,1fr)!important}
}

/* Live-site correction: Astra page padding and mixed wide-screen caps must not shrink sibling panels. */
body.cq-platform-site:not(.cq-platform-blog):not(.cq-platform-article) #cq-page-main.cq-page-main{max-width:1200px!important}
body.cq-platform-site #cq-page-main>article.cq-content-surface:not(.cq-reading-surface){width:100%!important;max-width:100%!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.cq-platform-site #cq-page-main .cq-layout-stack{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:var(--cq-section-gap)!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.cq-platform-site #cq-page-main .cq-layout-panel{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;align-self:stretch!important}
body.cq-platform-site #cq-page-main .cq-layout-panel.e-con.e-parent:not(.cq-unified-hero){padding:32px 28px!important}
body.cq-platform-site #cq-page-main .cq-layout-panel.cq-unified-hero{padding:48px 40px!important}
body.cq-platform-site #cq-page-main .cq-existing-content .cq-unified-page{padding-inline:0!important}
body.cq-platform-site #cq-page-main .cq-layout-panel.e-con.e-parent>.e-con-inner{width:100%!important;max-width:100%!important;padding:0!important;margin:0!important}
@media(max-width:650px){
 body.cq-platform-site #cq-page-main .cq-layout-panel.e-con.e-parent:not(.cq-unified-hero){padding:24px 18px!important}
 body.cq-platform-site #cq-page-main .cq-layout-panel.cq-unified-hero{padding:30px 22px!important}
}

body.cq-platform-site #cq-page-main .cq-layout-stack>*{margin-block:0!important}

/* Legal documents keep a reading measure without inheriting Astra's oversized article padding. */
body.cq-platform-site.cq-platform-legal #cq-page-main .cq-reading-surface{max-width:820px!important;padding:44px 50px!important;margin-inline:auto!important;border:1px solid var(--cq-line)!important;border-radius:18px!important;background:#fff!important}
body.cq-platform-site.cq-platform-legal #cq-page-main .cq-page-intro{max-width:820px!important;margin-inline:auto!important}
body.cq-platform-site.cq-platform-legal #cq-page-main h1{font-size:clamp(32px,3.6vw,46px)!important;line-height:1.2!important}
@media(max-width:650px){body.cq-platform-site.cq-platform-legal #cq-page-main .cq-reading-surface{padding:24px 18px!important;border-radius:14px!important}}
@media(max-width:650px){body.cq-platform-home #top>.hero>.wrap,body.cq-platform-home #top>.block>.wrap,body.cq-platform-home #top>.wrap{padding-inline:18px!important}}

/* Auth forms use one content surface; stacked card padding squeezes mobile fields. */
body.cq-platform-site #cq-page-main .cqai-auth-tabs .tab-body>.cqai-auth-wrap,
body.cq-platform-site #cq-page-main .cqai-auth-wrap>.cqai-form{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}

/* Pale Studio banners need link colours independent of the original dark banner. */
body.cq-platform-site #cq-page-main .cqs-hero-links a{color:#1d4ed8!important;background:transparent!important;text-decoration:underline!important}
body.cq-platform-site #cq-page-main .cqs-hero-links a:is(:hover,:focus-visible){color:#173fae!important}
body.cq-platform-site #cq-page-main .cqs-hero-links a:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}

/* The authored tool directory must not combine theme button backgrounds with blue link text. */
body.cq-platform-site #cq-page-main #career-tools a.cq-tool-link{color:#fff!important;background:#1d4ed8!important}
body.cq-platform-site #cq-page-main #career-tools a.cq-tool-link:is(:hover,:focus-visible,:active){color:#fff!important;background:#173fae!important}
body.cq-platform-site #cq-page-main #career-tools a.cq-tool-link:focus-visible{outline:3px solid #15223d;outline-offset:3px}

/* Links inherited from old dark CTA panels must remain readable on unified pale panels. */
body.cq-platform-site #cq-page-main .cq-seo-conversion p a,
body.cq-platform-site #cq-page-main #cq-faq .cq-faq-hero p a{color:#1d4ed8!important;text-decoration:underline}
body.cq-platform-site #cq-page-main .cq-seo-conversion p a:is(:hover,:focus-visible),
body.cq-platform-site #cq-page-main #cq-faq .cq-faq-hero p a:is(:hover,:focus-visible){color:#173fae!important}
body.cq-platform-site #cq-page-main article.page a[style*="color:#0070f3"]:not([class]){color:#1d4ed8!important}
