/* Shared full-site integration: do not import prototype header/footer overrides. */
/* The existing subpage shell's overflow:hidden creates a non-scrolling sticky
   container. Keep clipping without swallowing the newer AI hero's scroll pin. */
html body .jr-home:has(> .jr-ai-landing){overflow:clip!important}
html body[class] #masthead,html body .jr-mobile-header-bar,html body .jr-worker-entry{transform:translate3d(0,var(--vf-header-shift,0px),0)!important;transition:transform .24s ease!important}
html body[data-vf-header-hidden="1"] #masthead,html body[data-vf-header-hidden="1"] .jr-mobile-header-bar,html body[data-vf-header-hidden="1"] .jr-worker-entry{pointer-events:none!important}
.jr-worker-entry{position:fixed;top:8px;left:0;right:0;height:28px;z-index:9997;display:flex;align-items:center;justify-content:center;gap:6px;font:12px/1.4 Nunito,system-ui,sans-serif;color:#536663;background:#f7fbfa}
.jr-worker-entry a{color:#263f3b!important;text-decoration:underline;text-underline-offset:3px;font-weight:600;display:inline-flex;align-items:center;min-height:28px;background:transparent!important}
html body[class] #masthead,html body .jr-mobile-header-bar{top:40px!important;margin-top:0!important}
html body .jr-mobile-menu-panel{top:126px!important;max-height:calc(100dvh - 142px)!important}
html body #masthead a[data-ai-open],html body .jr-mobile-actions a[data-ai-open]{background:#fff!important;color:#102222!important;border-color:#c9d9d4!important;box-shadow:none!important}
html body[data-vf-scrolled="1"] #masthead a[data-ai-open],html body[data-vf-scrolled="1"] .jr-mobile-actions a[data-ai-open]{background:#F7931A!important;color:#102222!important;border-color:#F7931A!important}
html body [data-ai-open]:focus-visible{outline:3px solid #102222!important;outline-offset:4px!important}
html body #vf-launch .vf-cta,html body.vf-result-page .vf-request #submit-button{color:#102222!important;background:#F7931A!important}
html body #vf-launch .vf-mini{background:transparent!important;color:#fff!important}
html body #vf-launch.vf-pill{z-index:9996!important;width:max-content!important;box-sizing:border-box!important}
html body #vf-dialog{margin:auto!important;box-sizing:border-box;z-index:100001}
html body #vf-dialog h2{overflow-wrap:anywhere;padding-right:20px}
html body #vf-dialog .vf-controls{flex-wrap:wrap}
/* Keep elapsed status on the same centre axis as the microphone controls. */
html body #vf-dialog #pending{width:100%;padding:8px 0 12px;text-align:center}
html body #vf-dialog #pending .lattice-loader{display:flex;width:100%;justify-content:center;align-items:center;margin-inline:auto}
html body #vf-dialog-help{margin:12px 0 18px;color:#3d5954;line-height:1.55}
html body .vf #pending .lattice-loader{--ll-color:#102222}
html body:has(#jr-cookie-consent:not([hidden])) #vf-launch{visibility:hidden!important;pointer-events:none!important}
/* No extra clones, empty shell, or footer language overlay. */
html body .vf-cta-mic{display:none;color:inherit;background:transparent}
html body[data-vf-scrolled="1"] .vf-cta-mic{display:inline-flex;margin-right:6px}
html body.vf-result-page main.vf-result{padding-top:0!important}
html body.vf-page:not(.vf-result-page) main.vf{padding-top:110px}
html body .vf :is(input,textarea,button){font-family:inherit}
/* One bottom row: reserve the language control's width beside the pill. */
html body:has(#vf-launch) [data-campaign-language]{bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;margin:0!important}
html body:has(#vf-launch):has(#jr-cookie-consent:not([hidden])) [data-campaign-language]{bottom:var(--jr-campaign-lang-bottom,122px)!important}
html body #vf-launch.vf-pill{bottom:calc(18px + env(safe-area-inset-bottom,0px))!important}
@media(max-width:600px){
 html body #vf-launch.vf-pill{display:grid!important;grid-template-columns:24px minmax(0,1fr);gap:5px 8px!important;padding:10px 12px!important;border-radius:26px!important;min-height:0!important;left:max(12px,env(safe-area-inset-left,0px))!important;right:auto!important;transform:none!important;animation:none!important;opacity:1;width:calc(100vw - 100px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))!important;max-width:none!important}
 html body #vf-launch .vf-mini{grid-row:1 / span 2;width:24px!important;height:32px!important}
 html body #vf-launch .vf-pill-text{font-size:13px;line-height:1.35;min-width:0;overflow-wrap:anywhere}
 html body #vf-launch .vf-cta{grid-column:2;justify-self:stretch;justify-content:center;box-sizing:border-box;min-width:0;max-width:100%;white-space:normal;font-size:13px;line-height:1.3;text-align:center;padding:8px!important;gap:5px!important}
 html body:has(#vf-launch) [data-campaign-language]{width:64px!important}
 html body:has(#vf-launch) [data-campaign-language] nav>ul{padding:0 4px!important;box-sizing:border-box!important}
 html body:has(#vf-launch) [data-campaign-language] .lang-item{min-width:0!important;padding:0!important}
 html body:has(#vf-launch) [data-campaign-language] a{justify-content:center;gap:4px!important;min-height:44px}
 html body:has(#vf-launch) [data-campaign-language] .jr-lang-flag{font-size:18px!important}
}
@media(min-width:601px) and (max-width:1000px){html body #vf-launch.vf-pill{left:12px!important;transform:none!important;animation:none!important;opacity:1;max-width:calc(100vw - 160px)!important}}
html body #vf-launch .vf-mini::after{display:none!important}
@media(prefers-reduced-motion:reduce){html body[class] #masthead,html body .jr-mobile-header-bar,html body .jr-worker-entry{transition:none!important}}

/* Keep the supported language control visible, without a result-page header. */
html body:has(#vf-dialog[open]) [data-campaign-language],html body:has(#vf-dialog[open]) #vf-launch{visibility:hidden!important;pointer-events:none!important}
html body [data-campaign-language] a:focus-visible{outline:2px solid #F7931A!important;outline-offset:3px!important}
html body [data-campaign-language] .lang-item{min-height:44px!important}
html body [data-campaign-language]{position:fixed!important;inset:auto!important;right:max(12px,env(safe-area-inset-right,0px))!important;bottom:var(--jr-campaign-lang-bottom,122px)!important;z-index:99990!important;margin:0 0 env(safe-area-inset-bottom,0px)!important;padding:0!important;transform:none!important}
