/* Public surface tokens. Scoped color overrides intentionally win over later
   legacy page styles; geometry, images, typography and behavior stay unchanged. */
body:has(.precision-header){
  --surface-page:#fff;
  --surface-product:#f5f7f9;
  --surface-functional:#f3f5f7;
  --surface-subtle:#f8fafc;
  --surface-selected:#fff1f4;
  --surface-border:#e2e7ed;
}
body:has(.precision-header) :is(.hx-product-grid .hx-model-image,.catalog-image,.product-main-image,.detail-thumbnails button,.product-detail-card .overview-photo,.feature-image-button,.industry-featured-products img){
  background-color:var(--surface-product)!important;
}
body:has(.precision-header) :is(.hx-product-grid article,.catalog-card,.product-detail-card,.product-detail-caption,.hero-specs>div){
  background-color:var(--surface-page)!important;
  border-color:var(--surface-border);
}
body:has(.precision-header) :is(.catalog-filters,.filter-drawer-actions,.selection-guide,.editorial-cta,.catalog-help,.company-cta,.public-quote-entry,.detail-help){
  background-color:var(--surface-functional)!important;
}
body:has(.precision-header) .catalog-filters :is(.catalog-all-products.is-current,label:has(input:checked)),
body:has(.precision-header) :is(.catalog-active-filters a,.filter-selected-count,.hx-tags span,.catalog-industry-tags span,.detail-industry-tags button){
  background-color:var(--surface-selected)!important;
  color:#ce0730!important;
}
body:has(.precision-header) :is(.company-contact-layout aside,.contact-help-card){
  background-color:var(--surface-page)!important;
}
/* Inset rule separates the now-white help cards without changing their size. */
body:has(.precision-header) .contact-help-card{box-shadow:inset 0 0 0 1px var(--surface-border)}
body:has(.precision-header) .contact-help-card>i{color:#26384c}
body:has(.precision-header) .design-contact .human-verification{
  background-color:var(--surface-subtle)!important;
}
body:has(.precision-header) .design-contact .human-verification:not(.has-error){border-color:var(--surface-border)!important}
body:has(.precision-header) .design-contact .human-verification.has-error{background-color:var(--surface-selected)!important}
body:has(.precision-header) :is(.design-contact,.hx-quick-fields) :is(input,select,textarea){background-color:var(--surface-page)!important}
body:has(.precision-header) main :is(.editorial-cta,.catalog-help,.company-cta,.public-quote-entry,.detail-help) :is(a,button){background-color:var(--surface-page)!important}
body:has(.precision-header) main :is(.editorial-cta,.catalog-help,.public-quote-entry,.detail-help) :is(.design-button,.primary),
body:has(.precision-header) main .public-quote-entry>div:last-child>a:first-child{background-color:#ce0730!important;color:#fff!important}
body:has(.precision-header) main .catalog-help .catalog-contact-button{background-color:var(--surface-page)!important;color:#ce0730!important}
