/* Multipage overrides for legacy SPA visibility rules */
.ts-multipage .detail-view,.ts-multipage main > section,.ts-multipage main > div{display:block;}
.ts-multipage main{min-height:60vh;}
.ts-multipage .detail-view{position:relative;opacity:1;visibility:visible;}
.ts-multipage #ts-page-content{width:100%;}

/* V84.53.1: Standalone multipage sections must not inherit legacy dialog dimensions. */
html, body.ts-multipage { width:100%; max-width:100%; min-height:100%; margin:0; }
body.ts-multipage { overflow-x:clip; overflow-y:auto; }
body.ts-multipage > main#ts-page-content { display:block; width:100%; max-width:none; min-width:0; min-height:60vh; margin:0; padding:0; overflow:visible; }
body.ts-multipage main#ts-page-content > .detail-view,
body.ts-multipage main#ts-page-content > section,
body.ts-multipage main#ts-page-content > div {
 display:block; position:relative; inset:auto; float:none;
 box-sizing:border-box; width:100%; max-width:none; min-width:0;
 height:auto; max-height:none; min-height:0; margin:0;
 padding:0; border:0; border-radius:0; box-shadow:none;
 overflow:visible; opacity:1; visibility:visible; transform:none;
}
body.ts-multipage main#ts-page-content > .detail-view .dialog-toolbar { position:relative; }
@media (max-width: 767px) {
 body.ts-multipage main#ts-page-content > .detail-view { width:100%; max-width:100%; }
}

/* V84.54.2: restore homepage hero containment after broad multipage reset. */
body.ts-multipage main#ts-page-content > section.hero {
  position:relative;
  overflow:hidden;
  padding:110px clamp(20px,5vw,80px) 180px;
  min-height:650px;
  height:auto;
}
body.ts-multipage main#ts-page-content > section.hero .ribbon { pointer-events:none; }
@media(max-width:767px){
 body.ts-multipage main#ts-page-content > section.hero {padding:72px 20px 125px;min-height:0;}
}

/* V84.54.3: multipage pages must not inherit SPA contact visibility state. */
body.ts-multipage main#ts-page-content > #contact,
body.ts-multipage.ts-contact-active main#ts-page-content > #contact {
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  padding:95px clamp(22px,6vw,100px) !important;
  min-height:0;
}
body.ts-multipage main#ts-page-content > section.hero,
body.ts-multipage.ts-contact-active main#ts-page-content > section.hero {
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}
@media(max-width:767px) {
  body.ts-multipage main#ts-page-content > #contact {padding:70px 24px !important;}
}

/* V84.57.2: restore section gutters only on the approved Home and Careers pages.
   The generic multipage reset zeroes direct-child padding; these scoped rules
   reinstate the original spacing without changing any other page. */
body.ts-multipage.ts-layout-home main#ts-page-content > section.expertise-wrap {
  padding:88px clamp(38px,5vw,80px) 90px;
}
body.ts-multipage.ts-layout-home main#ts-page-content > section.approach-section {
  padding:95px clamp(38px,5vw,80px);
}
body.ts-multipage.ts-layout-home main#ts-page-content > section.ts79-opportunities {
  padding:90px clamp(38px,5vw,80px);
}
body.ts-multipage.ts-layout-home main#ts-page-content > section.faq-section {
  padding:90px clamp(38px,6vw,100px);
}
body.ts-multipage.ts-layout-home main#ts-page-content > div.spotlight {
  padding-inline:clamp(38px,5vw,80px);
}
body.ts-multipage.ts-layout-careers main#ts-page-content > section.ts-careers-v821 {
  padding:clamp(48px,6vw,90px) max(38px,calc((100vw - 1180px)/2));
}
@media(max-width:767px) {
  body.ts-multipage.ts-layout-home main#ts-page-content > section.expertise-wrap,
  body.ts-multipage.ts-layout-home main#ts-page-content > section.approach-section,
  body.ts-multipage.ts-layout-home main#ts-page-content > section.ts79-opportunities,
  body.ts-multipage.ts-layout-home main#ts-page-content > section.faq-section {
    padding-left:24px; padding-right:24px;
  }
  body.ts-multipage.ts-layout-home main#ts-page-content > div.spotlight {padding-inline:24px;}
  body.ts-multipage.ts-layout-careers main#ts-page-content > section.ts-careers-v821 {
    padding-left:24px; padding-right:24px;
  }
}

/* V84.57.4 — consistent content inset on Services and Industries overview only. */
body.ts-multipage main#ts-page-content > section.expertise-wrap,
body.ts-multipage main#ts-page-content > section.ts-industry-overview {
  box-sizing: border-box;
  width: 100%;
  padding-left: clamp(38px, 5vw, 80px) !important;
  padding-right: clamp(38px, 5vw, 80px) !important;
}
@media (max-width: 767px) {
  body.ts-multipage main#ts-page-content > section.expertise-wrap,
  body.ts-multipage main#ts-page-content > section.ts-industry-overview {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* V84.59.2: bilingual first-party inquiry form */
.ts60-contact-form{max-width:980px}.ts60-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}.ts60-form>label{display:flex;flex-direction:column;gap:8px;font-weight:650;color:#173b70}.ts60-form input,.ts60-form select,.ts60-form textarea{width:100%;box-sizing:border-box;border:1px solid #b7c8e4;border-radius:8px;padding:12px 14px;font:inherit;color:#16365e;background:white}.ts60-form>label:has(textarea),.ts60-privacy,.ts60-fallback{grid-column:1/-1}.ts60-form button{justify-self:start;border:0;cursor:pointer}.ts60-honey{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}.ts60-privacy,.ts60-fallback{margin:0;font-weight:400}@media(max-width:700px){.ts60-form{grid-template-columns:1fr}.ts60-form>label{grid-column:1/-1}}
