/* Shared text and surface rules. Loaded with header.html on every page. */
:root{--as-ink:#17263b;--as-muted:#536279;--as-link:#165d99;--as-panel:#fff;--as-border:#c6d0dd}
body.active-body{--as-ink:#f3f6fc;--as-muted:#ccd6e4;--as-link:#9edbff;--as-panel:#202832;--as-border:#59697c;color:var(--as-ink);color-scheme:dark}
body:not(.active-body){color-scheme:light}
/* Consistent controls, including the theme button shown over page artwork. */
body #themeBtn{position:fixed!important;top:auto!important;right:1rem!important;bottom:6rem!important;transform:none!important;width:44px!important;height:44px!important;min-width:44px;min-height:44px;display:grid!important;place-items:center;padding:0!important;border:1px solid #79899e!important;border-radius:50%;background:#182333!important;color:#fff!important;box-shadow:0 4px 16px #0003;z-index:10001;line-height:1}
body.active-body #themeBtn{background:#f7faff!important;color:#142237!important;border-color:#b8c8dc!important}
body #themeBtn i{font-size:21px!important;line-height:1;color:inherit!important;display:block}
body #themeBtn:focus-visible,body #scrollBtn:focus-visible{outline:3px solid #35adcf;outline-offset:4px}
body .ibt-btn.ibt-btn-secondary{background:#b93f50!important;color:#fff!important}
body .ibt-btn.ibt-btn-secondary:hover{background:#973247!important}
body .ibt-btn.ibt-btn-secondary :is(span,i){color:#fff!important}
body:not(.active-body) :is(.blog-content,.blog-img) :is(.blog-meta,span:not(.word,.letter)),
body:not(.active-body) .team-content .designation,
body:not(.active-body) .post-nav-content .designation,
body:not(.active-body) .post-nav-content2 .designation{color:#536279}
body:not(.active-body) :is(input,select,textarea){color:#263950}
body:not(.active-body) :is(input,textarea)::placeholder{color:#607087;opacity:1}
/* Expandable service directories share the same dark surface and readable text. */
body.active-body main .mobile-platform-option{background:#202832!important;border-color:#59697c!important;color:#f3f6fc!important}
body.active-body main .mobile-platform-option :is(h2,h3,h4,p,li,span,strong,summary){color:#f3f6fc!important}
body.active-body main .mobile-platform-option .mobile-platform-note{color:#ccd6e4!important}
body.active-body main .mobile-platform-option a{color:#9edbff!important;text-decoration-color:#9edbff}
body.active-body main .mobile-platform-option summary:is(:hover,:focus-visible),
body.active-body main .mobile-platform-option[open]>summary{background:#2a394a!important}
body.active-body main .mobile-platform-option summary::after{color:#9edbff!important}
body.active-body :is(.accordion-button,.accordion-body){background:#202832!important;color:#f3f6fc!important;border-color:#59697c}
body.active-body .accordion-button:not(.collapsed){background:#2a394a!important;color:#fff!important;box-shadow:none}
body.active-body .accordion-button::after{filter:brightness(0) invert(1)}
/* Text-only technology links and labels no longer inherit the light theme ink. */
body.active-body main :is(a.content-icon-free,[class$="-stack-link"],[class*="-stack-link "],.swiper-slide>a:not(.agent-chip,.gen-chip,.consult-topic-chip,.consult-tech-chip),.form-label,.form-check-label,dt,dd,th,td,.user-count>.user){color:#f3f6fc!important}
body.active-body main :is(a.content-icon-free,[class$="-stack-link"],[class*="-stack-link "],.swiper-slide>a:not(.agent-chip,.gen-chip,.consult-topic-chip,.consult-tech-chip)) :is(span,strong){color:inherit!important}
body.active-body main :is(p,.choose-block,.feature-card)>a:not(.ibt-btn){color:#9edbff!important}
body.active-body main a.text-decoration-underline{color:#9edbff!important}
body.active-body main :is(.video-box3,.ser-video-box)>a{color:#f3f6fc!important}
body :is(.video-box3,.ser-video-box){background:#172333}
body :is(.video-box3,.ser-video-box)>a{color:#fff!important}
body.active-body :is(#assessment-status,#assessment-answer-count){color:#ccd6e4!important}
/* Inputs stay readable in both themes, including typed values and placeholders. */
body.active-body :is(input:not([type="checkbox"],[type="radio"],[type="range"],[type="hidden"]),select,textarea){background-color:#202832!important;color:#f3f6fc!important;border-color:#65758a!important;caret-color:#fff}
body.active-body :is(input,textarea)::placeholder{color:#c4d0df!important;opacity:1}
body.active-body select option{background:#202832;color:#f3f6fc}
body.active-body :is(input,select,textarea):focus-visible{outline:2px solid #78d7ed;outline-offset:3px}
body.active-body main label{color:#e4ecf7!important}
body.active-body main :is(.agent-searchbar,.feature-block,.feature-block8){background:#202832!important;color:#f3f6fc!important;border-color:#59697c!important}
body.active-body main :is(.feature-block,.feature-block8) .title{color:#f3f6fc!important}
body.active-body main .nav-link.active :is(.feature-block,.feature-block8){background:#30465c!important;box-shadow:inset 3px 0 #7bdbe5}
body.active-body main :is(.agent-chip,.consult-topic-chip,.consult-tech-chip){color:#17263b!important}
body.active-body main :is(.agent-chip,.consult-topic-chip,.consult-tech-chip) span{color:inherit!important}
body.active-body main .consult-deliverable{background:#30465c!important;color:#f3f6fc!important}
/* White caption panels remain light even when the page is dark. */
body.active-body :is(.bg-white,.content-visual-caption,.contact-form.v2){--as-ink:#17263b;--as-muted:#536279;--as-link:#165d99;color:#17263b!important;color-scheme:light}
body.active-body :is(.bg-white,.content-visual-caption,.contact-form.v2) :is(h1,h2,h3,h4,h5,h6,p,li,span,strong,label){color:#17263b!important}
body.active-body :is(.bg-white,.content-visual-caption,.contact-form.v2) a:not(.ibt-btn){color:#165d99!important}
body.active-body .contact-form.v2 :is(input,select,textarea){background:#fff!important;color:#17263b!important;caret-color:#17263b}
body.active-body .contact-form.v2 :is(input,textarea)::placeholder{color:#536279!important}
body.active-body .contact-form.v2 label{color:#17263b!important}
body.active-body :is(.bg-white,.contact-form.v2) .ibt-btn-secondary :is(span,i){color:#fff!important}
body.active-body .ibt-btn.ibt-btn-outline :is(span,i){color:inherit!important}
/* Keep dark project cards and light pricing cards explicit. */
body .ser-card21.text-white{background-color:#14213a}
body .ser-card21.text-white::before{filter:brightness(.55)}
body .ser-card21.text-white :is(h3,p,a,span){color:#fff!important}
body .ser-card11{background-color:#14213a}
body .ser-card11 .ser-content11 :is(.title,p,a,span){color:#fff!important}
body.active-body.ai-consulting-page .price-card2.v2{background:#eef3f9!important}
body.active-body.ai-consulting-page .price-card2.v2 :is(.title,li,.price,.price-heade2 span){color:#18263b!important}
body.active-body.ai-consulting-page .consult-definition-table thead th{color:#17263b!important}
body .testimonial-content:has(>.consult-line-art){background:#14213a}
body .testimonial-content:has(>.consult-line-art) .title-area2{background:#101b32e8;border-radius:16px;padding:1.5rem;left:1.5rem;right:1.5rem;top:1.5rem}
body .testimonial-content:has(>.consult-line-art) .title-area2 :is(.sub-title,.sub-text,.title,.testi-count,span){color:#fff!important}
body .testimonial-content .testi-count>span{color:inherit}
body.active-body :is(.blog-content,.blog-img) :is(.blog-meta,span:not(.word,.letter)),
body.active-body .team-content .designation{color:#ccd6e4}
body .blog-img .blog-meta{color:#263950!important}
body .video-popup:has(>span){background:#172333;color:#fff!important}
body .video-popup:has(>span) span{color:#fff!important}
body:not(.active-body) .post-meta-item dd p{color:#536279}
body.iot-hire-page .iot-breadcrumb li,
body.iot-hire-page .iot-service-tree strong{color:#e5edf8!important}
body.active-body .mobile-platform-option summary{border-radius:inherit!important}
body.active-body main :is(.feature-block,.feature-block8) p,
body.active-body main .agent-searchbar .agent-result-count{color:#ccd6e4!important}
body.active-body main .gen-search{background:#202832!important;color:#f3f6fc!important}
body.active-body main :is(.gen-chip,.gen-chip span){color:#17263b!important}
body.active-body.ai-agent-page :is(.feature-img9,.project-block7) .ibt-btn,
body.active-body.ai-agent-page :is(.feature-img9,.project-block7) .ibt-btn :is(span,i){color:#17263b!important;background-color:#fff}
body.active-body.generative-ai-page .project-content4 .ibt-btn :is(span,i){color:#245d90!important}
body.active-body.generative-ai-page .testimonial-content .title-area2 :is(.sub-title,.sub-text){color:#32475d!important}
body .bg-dark>a{color:#fff!important}
body .blog-img .blog-meta{background:#fff!important;padding:.35rem .65rem;border-radius:5px;line-height:1.5}
body:not(.active-body) .ser-widget.side-widget a{color:#3a4d63}
body:not(.active-body) #ai-tool-specialists p>a.ser-btn3{color:#165d99!important}
body.active-body main .gen-search .gen-result-count{color:#ccd6e4!important}
body.active-body.ai-agent-page .project-sec7 .ibt-btn,
body.active-body.ai-agent-page .project-sec7 .ibt-btn :is(span,i){color:#17263b!important}
body.active-body #hiring-specialisms .bg-dark>a{color:#fff!important}
body.active-body .addonstack-header .addonstack-mega-panel .mega-featured-title{color:#151821!important}
body.active-body .main-sec .custom-form{color:#17263b!important;color-scheme:light}
body.active-body .main-sec .custom-form :is(h1,h2,h3,h4,p,li,label,span,strong){color:#17263b!important}
body.active-body .main-sec .custom-form .ibt-btn-outline{color:#17263b!important}
body.active-body .main-sec .custom-form a:not(.ibt-btn){color:#165d99!important}
body.active-body .main-sec .custom-form li::before{color:#1c779a!important;filter:none}
/* Content containers must shrink with the viewport, including long control labels. */
body main :is(.row>* , .tab-content,.tab-pane,.sec-title,.feature-tab-body){min-width:0}
body main :is(p,li,dt,dd,td,th,label,summary,.mobile-platform-title,.mobile-platform-note){overflow-wrap:anywhere}
body main :is(input,select,textarea){max-width:100%;min-width:0}
body main .mobile-platform-option summary{min-width:0;gap:.75rem}
body main .mobile-platform-option summary> :not(img,svg){min-width:0}
body main .mobile-platform-option summary::after{flex-shrink:0;margin-left:auto}
body main :is(section[id],details[id]){scroll-margin-top:8rem}
body .blog-img img{object-fit:cover}
/* Service-specific CTA labels can wrap without changing the template's layout. */
.shared-page-cta .ibt-btn{max-width:100%;height:auto;min-height:65px;white-space:normal;line-height:1.5}
.shared-page-cta .ibt-btn>span{min-width:0;white-space:normal;overflow-wrap:break-word}
.shared-page-cta .ibt-btn>i{flex-shrink:0}
.shared-page-cta .footer-content{gap:32px}
.shared-page-cta .footer-content>.title{flex:1;min-width:0}
.shared-page-cta .footer-content>.ibt-btn{flex-shrink:0}
.contact-page .shared-page-cta .footer-top{padding-top:clamp(40px,5vw,72px)}
.footer-box>.site-footer-privacy{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;align-items:center}
.contact-addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.contact-address-card{display:flex;flex-direction:column;align-items:start;gap:.75rem;min-width:0;padding:1.25rem;border:1px solid var(--as-border,#c6d0dd);border-radius:14px;background:var(--as-panel,#fff);color:var(--as-ink,#17263b)}
.contact-address-card h2{font-size:1.05rem;line-height:1.5;letter-spacing:normal;margin:0;color:inherit!important}
.contact-address-card address{font-size:.9rem;line-height:1.85;font-style:normal;color:inherit;margin:0}
.contact-address-card a{font-size:.85rem;line-height:1.6;color:var(--as-link,#165d99);text-decoration:underline;text-underline-offset:.2em;margin-top:auto}
.site-captcha{width:100%;min-width:0;margin:1rem 0;color:#17263b}
.site-captcha-widget{min-height:78px;max-width:100%}
.site-captcha[data-captcha-size="compact"] .site-captcha-widget{min-height:144px}
.site-captcha .site-captcha-note,.site-captcha .site-captcha-message{font-size:.8rem!important;line-height:1.65!important;color:inherit!important;margin:.6rem 0!important}
.site-captcha .site-captcha-message:empty{display:none}
.site-captcha .site-captcha-note a{color:#165d99!important;text-decoration:underline}
.site-captcha .site-captcha-retry{min-height:44px;padding:.5rem .8rem;margin:.25rem 0;border:1px solid #8aa4bf;border-radius:8px;background:#fff;color:#17263b;font:inherit;font-size:.85rem}
.site-captcha .site-captcha-retry[hidden]{display:none!important}
@media(max-width:575px){.contact-addresses{grid-template-columns:minmax(0,1fr)}}
.site-footer-privacy button{appearance:none;border:0;padding:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:.2em;cursor:pointer}
.site-analytics-choice[hidden]{display:none!important}
.site-analytics-choice{position:fixed;z-index:20000;right:1rem;bottom:1rem;width:min(620px,calc(100% - 2rem));padding:1.5rem;background:var(--as-panel,#fff);color:var(--as-ink,#17263b);border:1px solid var(--as-border,#c6d0dd);border-radius:16px;box-shadow:0 8px 35px #0003}
.site-analytics-choice h2{color:inherit!important;font-size:1.15rem;line-height:1.4;margin:0 0 .5rem;letter-spacing:normal}
.site-analytics-choice p{color:inherit!important;font-size:.9rem;line-height:1.65;margin:0}
.site-analytics-choice a{color:var(--as-link,#165d99);text-decoration:underline}
.site-analytics-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem}
.site-analytics-actions button{min-height:44px;flex:1;padding:.65rem 1rem;border:1px solid var(--as-border,#c6d0dd);border-radius:9px;background:var(--as-panel,#fff);color:var(--as-ink,#17263b);font:inherit;font-size:.9rem;cursor:pointer}
.site-analytics-actions button:focus-visible,.site-footer-privacy button:focus-visible{outline:3px solid #31bfc8;outline-offset:3px}
@media(max-width:420px){.site-analytics-choice{padding:1.1rem}.site-analytics-actions{gap:.5rem}.site-analytics-actions button{padding:.65rem .5rem}}
body .breadcrumbs{flex-wrap:wrap;white-space:normal;gap:.2rem .4rem}
body .breadcrumbs li:last-child{max-width:100%!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
@media(max-width:820px){
 body .side-bar2{width:min(349px,100vw);max-width:100%;right:0;transform:translateX(100%);visibility:hidden;pointer-events:none;transition:transform .25s ease,visibility .25s}
 body .side-bar2.active{right:0;transform:none;visibility:visible;pointer-events:auto}
 body.active-body .side-bar2{background:#202832;color:#f3f6fc}
}
@media(min-width:578px) and (max-width:1199px){
 body.ai-agent-page .video-banner3>.ser-video-box{position:absolute;inset:auto auto 1.25rem 1.25rem;max-width:calc(100% - 2.5rem);margin:0;transform:none}
}
@media(max-width:767px){
 body #themeBtn{right:.75rem!important;bottom:6rem!important;width:42px!important;height:42px!important;min-width:42px;min-height:42px}
 body main :is(section[id],details[id]){scroll-margin-top:5rem}
 body main :is(.sec-title .title,h2.title){overflow-wrap:normal;word-break:normal}
 body main .ibt-btn{max-width:100%;white-space:normal;line-height:1.5;min-height:44px}
 body .testimonial-content:has(>.consult-line-art) .title-area2{padding:1rem;left:1rem;right:1rem;top:1rem}
 body.iot-hire-page .iot-filter-row{grid-template-columns:minmax(0,1fr)}
 body.iot-hire-page .iot-filter-row>*{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box}
}
