/* Formal design overlay for the existing Legix Protect assessor. Does not modify form fields or scripts. */
body.legix-unified-protect .lg-protect-unified{width:min(1600px,calc(100vw - 28px));margin:0 auto;min-width:0;background:#f3f6f8;color:#183347;border:1px solid #d7e1e6;font-family:"Segoe UI",Arial,sans-serif}
body.legix-unified-protect #legix-switcher{display:none!important}
body.legix-unified-protect #legitix-app{font-family:"Segoe UI",Arial,sans-serif!important;--lx-blue:#175e78;--lx-blue-dark:#12384f;--lx-blue-soft:#eaf2f5;--lx-green:#237681;--lx-green-soft:#e9f4f3;color:#1a3447;background:#f3f6f8!important;max-width:100%!important;width:100%;margin:0}
body.legix-unified-protect #legitix-app :is(.lx-shell,.lx-container,.lx-wrap){max-width:1536px!important;min-width:0}
body.legix-unified-protect #legitix-app .lx-shell{width:calc(100% - 40px)!important;margin-left:auto!important;margin-right:auto!important}
body.legix-unified-protect #legitix-app :is(.lx-hero,.lx-scan,.lx-section,.lx-card,.lx-tile,.lx-panel,.lx-summary,.lx-results,.lx-step-card,.lx-report-card,.lx-safety,.lx-assessment,.lx-risk-card,.lx-feature,.lx-form-panel,.lx-tech-card,.lx-scan-item,.lx-process-card,.lx-app-frame,.lx-app-header,.lx-choice,.lx-warning-box,.lx-result-card,.lx-score-card,.lx-breakdown-card,.lx-final-panel,.lx-stat,.lx-status-pill,.lx-disclaimer,.lx-warning-item,.lx-recommendation-item){border-radius:3px!important;box-shadow:none!important}
body.legix-unified-protect #legitix-app :is(.lx-card,.lx-tile,.lx-panel,.lx-step-card,.lx-report-card,.lx-risk-card,.lx-feature,.lx-tech-card,.lx-process-card,.lx-choice,.lx-result-card,.lx-score-card,.lx-breakdown-card,.lx-final-panel){border-color:#d3dfe5!important}
body.legix-unified-protect #legitix-app :is(button,input:not([type="checkbox"]):not([type="radio"]),textarea,select,.lx-btn,.lx-button){border-radius:2px!important;box-shadow:none!important}
body.legix-unified-protect #legitix-app :is(h1,h2,h3){font-family:"Segoe UI",Arial,sans-serif!important;letter-spacing:-.022em!important;color:#142f43}
body.legix-unified-protect #legitix-app :is(.lx-hero,.lx-hero-section){background:linear-gradient(115deg,#e7f0f3,#fff 75%)!important;border-bottom:1px solid #cbdde3}
body.legix-unified-protect #legitix-app :is(.lx-kicker,.lx-eyebrow,.lx-label){letter-spacing:.1em}
body.legix-unified-protect #legitix-app :is(.lx-primary,.lx-btn-primary,button[type="submit"]){border-radius:2px!important}
body.legix-unified-protect #legitix-app :is(.lx-btn,.lx-button,button){min-height:44px}
body.legix-unified-protect #legitix-app :is(.lx-card,.lx-panel,.lx-tile){background:#fff}
body.legix-unified-protect #legitix-app *{max-width:100%}
body.legix-unified-protect #legitix-app :is(input,textarea,select){font-size:16px}
body.legix-unified-protect #legitix-app :is(a,button,input,select,textarea):focus-visible{outline:3px solid #176a7e!important;outline-offset:2px!important}
@media(max-width:790px){body.legix-unified-protect .lg-protect-unified{width:calc(100vw - 14px)}body.legix-unified-protect #legitix-app .lx-shell{width:calc(100% - 30px)!important}body.legix-unified-protect #legitix-app :is(.lx-card,.lx-panel,.lx-tile){padding-left:16px;padding-right:16px}}

body.legix-unified-protect #legitix-app :is(.lx-app-frame,.lx-tech-card,.lx-process-card,.lx-result-card,.lx-final-panel){box-shadow:none!important;border-color:#cddbe1!important}
body.legix-unified-protect #legitix-app :is(.lx-window-bar,.lx-app-header){background:#16374b!important;color:#fff!important}
body.legix-unified-protect #legitix-app .lx-app-frame{background:#fff!important;border:1px solid #c7d7de!important}
body.legix-unified-protect #legitix-app .lx-topbar{display:none!important}


/* v0.4.5: the Protect assessor now runs as a real shortcode. Align its page frame to the
   centre of the viewport without imposing a 1600px child on a narrower theme container. */
body.legix-unified-protect #content .ast-container,
body.legix-unified-protect #content .content-area,
body.legix-unified-protect #content .site-main,
body.legix-unified-protect #content .entry-content{max-width:100%!important;width:100%!important;margin-inline:auto!important;min-width:0}
body.legix-unified-protect #content .entry-content{margin-block:0!important}
body.legix-unified-protect .lg-protect-unified{
    box-sizing:border-box!important;position:relative;left:50%;transform:translateX(-50%);
    width:min(1480px,calc(100vw - 32px))!important;max-width:none!important;
    margin:0!important;overflow:visible!important;border-radius:2px!important;
}
body.legix-unified-protect #legitix-app{width:100%!important;max-width:none!important;overflow-x:clip!important}
body.legix-unified-protect #legitix-app .lx-shell{width:min(100% - 36px,1400px)!important;max-width:1400px!important;margin-inline:auto!important}
body.legix-unified-protect .lg-protect-unified .lg-unit-header{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:300}
body.legix-unified-protect #legitix-app .lx-topbar,
body.legix-unified-protect #legix-switcher{display:none!important}
body.legix-unified-protect .lg-protect-next{background:#eaf1f3;color:#183347;border:1px solid #c9d9df;border-left:4px solid #1c657b;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;padding:clamp(20px,3.5vw,42px);margin:0}
body.legix-unified-protect .lg-protect-next h2{color:#112e44!important;font:750 clamp(23px,2.6vw,34px)/1.2 'Segoe UI',Arial,sans-serif!important;max-width:28ch;margin:7px 0}
body.legix-unified-protect .lg-protect-next p{font-size:15px;max-width:60ch;margin:8px 0 0}
body.legix-unified-protect .lg-protect-next-kicker{color:#206278;font-size:11px;font-weight:850;letter-spacing:.12em}
body.legix-unified-protect .lg-protect-next-actions{display:flex;gap:9px;flex-wrap:wrap}
body.legix-unified-protect .lg-protect-next-actions a{display:inline-flex;align-items:center;min-height:46px;background:#fff;border:1px solid #b2c8d2;color:#143e50!important;padding:10px 15px;text-decoration:none;font-size:14px;font-weight:750;border-radius:2px}
body.legix-unified-protect .lg-protect-next-actions a:first-child{background:#15556e;color:white!important;border-color:#15556e}
body.legix-unified-protect .lg-protect-unavailable{padding:32px;background:white;border:1px solid #cbd6dc;color:#24445b}
@media(max-width:600px){body.legix-unified-protect .lg-protect-unified{width:calc(100vw - 14px)!important}body.legix-unified-protect #legitix-app .lx-shell{width:calc(100% - 28px)!important}body.legix-unified-protect .lg-protect-next-actions{width:100%}body.legix-unified-protect .lg-protect-next-actions a{flex:1 1 100%;justify-content:center}}


/* v0.4.7 — Extend the native-masthead-compatible full-width shell to Protect.
   Preserve the six-step assessment markup, scripts and interactions. */
body.legix-unified-protect.legix-app-shell #content #legix-protect-unit.lg-protect-unified {
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    left:auto!important;
    transform:none!important;
    border-left:0!important;
    border-right:0!important;
}
body.legix-unified-protect.legix-app-shell #content #legitix-app .lx-shell {
    box-sizing:border-box!important;
    width:calc(100% - clamp(24px,5.6vw,92px))!important;
    max-width:none!important;
    margin-inline:auto!important;
}
body.legix-unified-protect.legix-app-shell #content #legitix-app :is(.lx-container,.lx-wrap) {
    max-width:100%!important;
}
@media(max-width:600px) {
    body.legix-unified-protect.legix-app-shell #content #legitix-app .lx-shell {
        width:calc(100% - 26px)!important;
    }
}
