/* Shared theme surfaces. Loaded after page-specific styles. */
:root,body{--ac-action:#7650d8;--ac-edge:#1e293b;--ac-extrusion:#1e293b;--ac-surface:#fff;--ac-text:#1e293b;--ac-help:#f3efff;--ac-help-title:#633ab6;--ac-help-text:#1e293b;--ac-elevation:1px 1px 0 var(--ac-extrusion),2px 2px 0 var(--ac-extrusion),3px 3px 0 var(--ac-extrusion),4px 4px 0 var(--ac-extrusion)}
html[data-theme="dark"],body[data-theme="dark"],html[data-theme="dark"] body{--ac-edge:#c2bed0;--ac-extrusion:#a9a2bc;--ac-surface:#202436;--ac-text:#f8f7fc;--ac-help:#29243c;--ac-help-title:#d0bcff;--ac-help-text:#f8f7fc}
body :is(#theme-toggle,.theme-toggle,.insights-theme-toggle){position:fixed!important;left:20px!important;bottom:20px!important;right:auto!important;top:auto!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;display:grid!important;place-items:center!important;border:2px solid var(--ac-edge)!important;border-radius:50%!important;background:var(--ac-surface)!important;color:var(--ac-text)!important;box-shadow:var(--ac-elevation)!important;z-index:100!important;cursor:pointer;transition:transform .15s ease!important}
body :is(#theme-toggle,.theme-toggle,.insights-theme-toggle) svg{width:22px;height:22px;display:block;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body :is(#theme-toggle,.theme-toggle,.insights-theme-toggle):active{transform:translate(2px,2px)!important}
body :is(.res,.calc-card,.tool-modal,.article-card,.dealbreakers,.copy-card,.panel,.toc,.tool-card,.cta,.library-link-grid){border-color:var(--ac-edge)!important;box-shadow:var(--ac-elevation)!important}
body :is(.hero-actions a,.footer-call,.case a,.see-more,.res .cta-link,.button,.nav-calc,.copy-noes){border:2px solid var(--ac-edge)!important;box-shadow:var(--ac-elevation)!important;transition:transform .15s ease!important}
body :is(.hero-actions a.primary,.footer-call,.book-call,#float-cta,.call-float,.button,.nav-calc,.copy-noes){background:var(--ac-action)!important;color:#fff!important;border:2px solid #171321!important;box-shadow:var(--ac-elevation)!important}
body :is(.hero-actions a.primary,.footer-call,.book-call,#float-cta,.call-float,.button,.nav-calc,.copy-noes):hover{background:#6840c8!important;color:#fff!important;transform:translateY(-1px)!important}
body :is(.hero-actions a,.footer-call,.book-call,#float-cta,.call-float,.button,.nav-calc,.copy-noes):active{transform:translate(2px,2px)!important}
body .site-nav .nav-links a:last-child,body .nav-links a[href*="cal.com"]{background:var(--ac-action)!important;color:#fff!important;border:2px solid #171321!important;box-shadow:var(--ac-elevation)!important}
body .term-popup{background:var(--ac-help)!important;color:var(--ac-help-text)!important;border:2px solid var(--ac-edge);box-shadow:var(--ac-elevation)!important;font-size:16px;line-height:1.55;max-width:min(320px,calc(100vw - 28px));padding:16px 18px;border-radius:12px}
body .term-popup .term-title{color:var(--ac-help-title)!important;font-size:14px;line-height:1.5}
body a[href*="glossary.html"]{position:relative;pointer-events:auto;min-height:44px;max-width:100%;white-space:normal;touch-action:manipulation}
body .term{touch-action:manipulation}
body :focus-visible{outline:3px solid #a88bfa!important;outline-offset:4px}
/* Centred desktop page widths; fluid gutters on smaller screens. */
body .wrap{max-width:1120px!important;margin-left:auto!important;margin-right:auto!important}
body:not(#andchill-calculator) .hero .wrap,body:not(#andchill-calculator)>section>.wrap,body:not(#andchill-calculator)>main>.wrap{max-width:960px!important}
body#andchill-calculator .wrap{width:min(960px,calc(100% - 48px))!important;max-width:960px!important;margin-inline:auto!important}
body#andchill-calculator .result{background:#eee8fb!important;color:#1e293b!important;border:2px solid #c8badf!important}
body#andchill-calculator .result :is(span,b){color:#1e293b!important}
body#andchill-calculator[data-theme="dark"] .result{background:#302742!important;color:#f8f7fc!important;border-color:#9f86c9!important}
body#andchill-calculator[data-theme="dark"] .result :is(span,b){color:#f8f7fc!important}
body#andchill-calculator .book-call{width:auto!important;height:auto!important;padding:12px 16px!important;font-size:15px!important;min-height:44px!important;right:20px!important;bottom:20px!important;z-index:100!important}
body#andchill-calculator .book-call span{display:inline!important}
@media(max-width:600px){body#andchill-calculator .wrap{width:calc(100% - 32px)!important}.panel{padding:18px!important}body :is(#theme-toggle,.theme-toggle,.insights-theme-toggle){left:16px!important;bottom:16px!important}body#andchill-calculator .book-call{right:16px!important;bottom:16px!important;font-size:14px!important}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
