/* Shared scale for every page. Kept last so legacy page-specific rules cannot drift. */
:root { --content-width:100vw; --page-gutter:32px; --section-space:48px; --chrome-bg:#151515; --chrome-soft:#1c1c1c; --chrome-text:#f7f7f7; --chrome-muted:#bcbcbc; --chrome-line:#ffffff20; }
html[data-theme="light"] { --chrome-bg:#fff; --chrome-soft:#f7f7f7; --chrome-text:#222; --chrome-muted:#666; --chrome-line:#e8e8e8; }
html { scroll-padding-top:180px; }
html body .chrome-container { width:min(calc(100% - var(--page-gutter)*2),var(--content-width)); }
html body main > :is(.section,.section-band) { width:min(100%,calc(var(--content-width) + var(--page-gutter)*2)); max-width:calc(var(--content-width) + var(--page-gutter)*2); margin-inline:auto; padding:var(--section-space) var(--page-gutter); min-height:0; }
html body main > section:first-child::after { display:none; }
html body main :is(.section-heading,.business-section-heading) { margin-bottom:24px; }
html body main :is(h1,.product-detail-title,.business-hero h1) { font-size:clamp(28px,3vw,42px); line-height:1.45; margin:10px 0 16px; letter-spacing:0; }
html body main :is(.section-heading h2,.business-section-heading h2,.document-toolbar h2) { font-size:clamp(23px,2.4vw,32px); line-height:1.5; margin:6px 0 12px; }
html body main :is(.hero-text,.business-intro) { font-size:16px; line-height:1.9; max-width:76ch; }
html body main .eyebrow { font-size:12px; padding:5px 12px; margin:0 0 8px; }
html body main :is(.primary-action,.secondary-action) { min-height:44px; padding:10px 20px; border-radius:8px; font-size:14px; line-height:1.6; display:inline-flex; align-items:center; justify-content:center; text-align:center; }
html body main :is(.hero-actions,.business-actions) { gap:12px; }

/* One continuous neutral header with red accents, in both appearance modes. */
html body .site-header.enterprise-header { background:var(--chrome-bg); color:var(--chrome-text); box-shadow:0 3px 14px #00000012; }
html body .enterprise-header :is(.chrome-utility,.chrome-masthead,.chrome-nav-band) { background:var(--chrome-bg); color:var(--chrome-text); }
html body .enterprise-header .chrome-utility { background:var(--chrome-soft); border-bottom:1px solid var(--chrome-line); }
.enterprise-header .utility-inner { min-height:36px; }
.enterprise-header .utility-links { gap:22px; }
html body .enterprise-header .utility-links > a:hover { color:var(--red); }
html body .enterprise-header .masthead-inner { min-height:82px; padding-block:10px; }
html body .site-header.enterprise-header .brand strong { font-size:21px; color:var(--chrome-text); }
html body .site-header.enterprise-header .brand small { color:var(--chrome-muted); }
html body .site-header.enterprise-header .brand-mark { height:58px; width:88px; border:1px solid var(--chrome-line); border-radius:7px; }
html body .enterprise-header .masthead-contacts strong { color:var(--chrome-text); }
html body .enterprise-header .masthead-contacts small { color:var(--chrome-muted); }
html body .enterprise-header .masthead-contacts svg { width:26px; height:26px; }
html body .enterprise-header .chrome-nav-band { border-top:1px solid var(--chrome-line); border-bottom:2px solid var(--red); }
html body .site-header.enterprise-header .nav > .chrome-top-link,html body .enterprise-header .chrome-nav-toggle { color:var(--chrome-text); padding:10px 15px; min-height:48px; font-size:13px; }
html body .site-header.enterprise-header .nav > .chrome-top-link:hover,html body .site-header.enterprise-header .nav > .chrome-top-link[aria-current],html body .enterprise-header .chrome-nav-toggle:is(:hover,[aria-expanded="true"],.has-current-page) { color:var(--red); background:var(--chrome-soft); box-shadow:inset 0 -3px var(--red); }
html body .site-header.enterprise-header :is(.language-toggle,.theme-toggle,.chrome-cart,.menu-button,.chrome-search-toggle) { border:1px solid var(--chrome-line); color:var(--chrome-text); background:var(--chrome-soft); border-radius:7px; box-shadow:none; }
html body .site-header.enterprise-header :is(.language-toggle,.theme-toggle):hover { border-color:var(--red); color:var(--red); }
html body .enterprise-header .chrome-search-toggle { min-width:40px; width:40px; height:36px; }
html body .enterprise-header .chrome-dropdown-panel { border:1px solid var(--biz-line); border-top:3px solid var(--red); border-radius:0 0 10px 10px; }
html body .enterprise-header .chrome-search-panel { background:var(--chrome-bg); }

/* Catalog: compact introductions, repeatable cards and readable controls. */
html body.products-page .catalog-hero { display:grid; grid-template-columns:1fr; gap:18px; padding-block:30px 22px; }
html body.products-page .catalog-hero h1 { font-size:34px; }
html body.products-page .catalog-summary { display:flex; flex-wrap:wrap; gap:10px 24px; padding:0; border:0; box-shadow:none; background:transparent; }
html body.products-page .catalog-summary span { display:flex; align-items:center; gap:8px; padding:0; font-size:12px; background:transparent; border:0; min-height:0; }
html body.products-page .catalog-summary strong { font-size:16px; }
html body.products-page .brand-showcase { padding-block:20px; }
html body.products-page .brand-showcase .section-heading { margin-bottom:16px; }
html body.products-page .brand-showcase .section-heading h2 { font-size:22px; margin:0; }
html body.products-page .brand-showcase .section-heading .eyebrow { display:none; }
html body.products-page .brand-logo-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); grid-auto-flow:row; grid-auto-columns:auto; gap:12px; margin:0; overflow:visible; }
html body.products-page .brand-logo-card { min-height:0; height:auto; aspect-ratio:auto; grid-template-rows:auto auto; align-content:start; padding:10px; gap:5px; border-radius:10px; }
html body.products-page .brand-logo-card img { width:100%; height:60px; min-height:0; object-fit:contain; }
html body.products-page .brand-logo-card strong { font-size:13px; }
html body.products-page .brand-logo-card span { display:none; }
html body:is(.products-page,.business-page,.product-detail-page) .product-list-grid,html body .featured-products-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; align-items:stretch; grid-auto-rows:auto; }
html body .catalog-brand-heading { grid-column:1/-1; min-height:0; padding:12px 16px; margin:12px 0 0; font-size:20px; line-height:1.5; border-radius:8px; }
html body :is(.product-list-grid .catalog-card,.featured-product-card) { display:flex; flex-direction:column; min-width:0; height:auto; min-height:0; padding:0; border:1px solid var(--biz-line); border-radius:12px; background:var(--biz-surface); color:var(--biz-text); box-shadow:0 4px 14px #00000008; overflow:hidden; }
html body .product-list-grid :is(.product-image-link,.related-image-link) { display:block; height:200px; min-height:0; width:100%; flex:none; padding:0; background:white; }
html body .product-list-grid .catalog-card :is(img.product-photo,img.product-brand-logo,img),html body .featured-product-card img { width:100%; height:200px; min-height:0; max-height:none; margin:0; padding:16px; object-fit:contain; background:white; border-radius:0; }
html body .product-list-grid .catalog-card-body { display:flex; flex-direction:column; min-width:0; flex:1; padding:14px; gap:8px; }
html body :is(.product-list-grid .catalog-card h3,.featured-product-card h3) { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:16px; line-height:1.6; height:3.2em; min-height:3.2em; margin:0; color:var(--biz-text); }
html body .product-list-grid .catalog-card-body > p { display:none; }
html body .product-list-grid .product-tag { align-self:flex-start; font-size:10px; padding:2px 7px; line-height:1.8; }
html body .product-list-grid .product-meta { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0; font-size:11px; }
html body .product-list-grid .product-meta div { padding:6px; display:block; border-radius:6px; min-width:0; }
html body .product-list-grid .product-meta :is(dt,dd) { margin:0; font-size:11px; line-height:1.6; }
html body :is(.product-list-grid .catalog-card-actions,.featured-actions) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:auto; padding-top:6px; }
html body :is(.product-list-grid .catalog-card-actions,.featured-actions) > :is(a,button) { display:flex; justify-content:center; align-items:center; font-size:11px; line-height:1.5; min-height:40px; min-width:0; padding:7px; border-radius:7px; text-align:center; white-space:normal; overflow-wrap:anywhere; }
html body :is(.product-list-grid .catalog-card-actions,.featured-actions) > .quick-add-to-cart { grid-column:1/-1; font-size:12px; }
html body .product-list-grid .tds-link { align-self:flex-start; width:auto; min-height:28px; margin:0; padding:3px 10px; font-size:11px; }
html body .featured-product-card { padding:12px; gap:10px; }
html body .featured-product-card img { border-radius:7px; }
html body .featured-badge { top:20px; inset-inline-start:20px; inset-inline-end:auto; font-size:10px; padding:4px 8px; }
html body .catalog-filters { gap:8px; flex-wrap:wrap; overflow:visible; margin-bottom:22px; }
html body .catalog-filters .filter { white-space:normal; font-size:12px; min-height:40px; padding:8px 12px; }

/* Detail, media, forms and technical pages use the same content scale. */
html body.product-detail-page .product-detail-product { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); padding:0; border-radius:12px; align-items:start; }
html body.product-detail-page .product-detail-product > img { width:100%; max-width:400px; height:370px; min-height:0; max-height:none; padding:24px; margin:24px auto; object-fit:contain; }
html body .product-detail-product .catalog-card-body { padding:24px; gap:16px; min-width:0; }
html body .product-detail-product h3 { font-size:24px; line-height:1.6; }
html body .product-breadcrumb { margin-bottom:18px; font-size:12px; }
html body .product-detail-heading { margin-bottom:16px; }
html body .product-applications,html body .product-document-panel { padding:24px; border-radius:12px; }
html body .media-section { grid-template-columns:1fr; gap:24px; }
html body .media-section .split-image { display:none; }
html body .media-section .media-copy { min-width:0; max-width:none; }
html body .media-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
html body .media-card { min-height:0; padding:24px; display:flex; flex-direction:column; gap:14px; border-radius:12px; }
html body .media-card-actions { margin-top:auto; }
html body .media-card > strong { font-size:20px; }
html body .media-card > small { font-size:14px; }
html body .media-gallery-grid { gap:20px; }
html body .media-gallery-card { border-radius:12px; }
html body .contact-hero { grid-template-columns:1.25fr .75fr; gap:30px; align-items:center; }
html body .contact-hero-card { padding:22px; border-radius:12px; min-height:0; }
html body .contact-page-grid { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:24px; align-items:start; }
html body :is(.contact-info-panel,.contact-form-card) { padding:26px; border-radius:12px; min-width:0; }
html body :is(.contact-form,.cart-customer-grid) :is(input,select,textarea) { min-width:0; width:100%; font-size:16px; border-radius:8px; }
html body .contact-form :is(input,select) { min-height:46px; }
html body .contact-direct-link { min-width:0; overflow-wrap:anywhere; }
html body .contact-direct-link strong { font-size:14px; }
html body :is(.guide-grid,.download-grid) { gap:20px; }
html body .solution-guide-card { border-radius:12px; padding:22px; }
html body .solution-guide-card h2 { font-size:21px; }
html body .download-card { border-radius:12px; padding:22px; }
html body .download-card h2 { font-size:19px; line-height:1.7; }
html body .quick-add-dialog { width:min(480px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; }

@media(max-width:1100px) {
  :root { --page-gutter:24px; --section-space:36px; }
  html body:is(.products-page,.business-page,.product-detail-page) .product-list-grid,html body .featured-products-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  html body .enterprise-header .masthead-inner { padding-inline-end:56px; }
  html body .enterprise-header .chrome-search-toggle { top:-60px; height:40px; }
  html body .site-header.enterprise-header .nav.corporate-nav.open { max-height:calc(100dvh - 200px); }
}
@media(max-width:800px) {
  html body main > :is(.contact-hero,.contact-page-grid,.document-hero) { grid-template-columns:1fr; }
  html body.product-detail-page .product-detail-product { grid-template-columns:1fr; }
  html body.product-detail-page .product-detail-product > img { height:300px; margin:12px auto; }
  html body .media-grid { grid-template-columns:1fr; }
  html body:is(.products-page,.business-page,.product-detail-page) .product-list-grid,html body .featured-products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
}
@media(max-width:720px) {
  html body .site-header.enterprise-header .menu-button { display:none!important; }
  html body .enterprise-header .chrome-nav-inner { display:block; }
  html body .site-header.enterprise-header .nav.corporate-nav,
  html body .site-header.enterprise-header .nav.corporate-nav.open {
    display:flex!important;
    flex-direction:row;
    align-items:center;
    gap:6px;
    width:100%;
    max-height:none;
    padding:6px 0 8px;
    overflow-x:auto;
    overflow-y:visible;
    scrollbar-width:none;
    scroll-snap-type:x proximity;
  }
  html body .site-header.enterprise-header .nav.corporate-nav::-webkit-scrollbar { display:none; }
  html body .site-header.enterprise-header .nav > .chrome-top-link,
  html body .enterprise-header .chrome-nav-toggle {
    flex:0 0 auto;
    width:auto;
    min-height:40px;
    padding:8px 12px;
    border:1px solid var(--chrome-line);
    border-radius:999px;
    font-size:12px;
    scroll-snap-align:start;
  }
  html body .enterprise-header .chrome-dropdown { position:static; }
  html body .enterprise-header .chrome-dropdown-panel {
    position:absolute;
    top:100%;
    inset-inline:0;
    width:100%;
    max-height:calc(100dvh - 190px);
    overflow:auto;
    z-index:3;
  }
}
@media(max-width:600px) {
  :root { --page-gutter:16px; --section-space:28px; }
  html { scroll-padding-top:140px; }
  html body .site-header.enterprise-header .brand strong { font-size:16px; }
  html body .site-header.enterprise-header .brand-mark { width:60px; height:48px; }
  html body .enterprise-header .masthead-inner { min-height:74px; gap:8px; }
  html body .enterprise-header .utility-inner { min-height:40px; }
  html body .enterprise-header .utility-links { gap:10px; }
  html body .enterprise-header .chrome-search-toggle { top:-58px; }
  html body main :is(h1,.product-detail-title,.business-hero h1) { font-size:28px; }
  html body.products-page .catalog-hero h1 { font-size:28px; }
  html body.products-page .brand-logo-grid { gap:6px; }
  html body.products-page .brand-logo-card { padding:6px; }
  html body.products-page .brand-logo-card img { height:38px; }
  html body.products-page .brand-logo-card strong { font-size:10px; line-height:1.5; }
  html body.products-page .brand-showcase .section-heading h2 { font-size:18px; }
  html body .catalog-brand-heading { font-size:18px; padding:10px 12px; margin-top:8px; }
  html body .product-list-grid :is(.product-image-link,.related-image-link),html body .product-list-grid .catalog-card :is(img.product-photo,img.product-brand-logo,img),html body .featured-product-card img { height:158px; padding:10px; }
  html body .product-list-grid :is(.product-image-link,.related-image-link) { padding:0; }
  html body .product-list-grid .catalog-card-body { padding:10px; gap:7px; }
  html body :is(.product-list-grid .catalog-card h3,.featured-product-card h3) { font-size:14px; line-height:1.6; height:4.8em; min-height:4.8em; -webkit-line-clamp:3; }
  html body .product-list-grid .product-meta { display:none; }
  html body :is(.product-list-grid .catalog-card-actions,.featured-actions) > :is(a,button) { min-height:44px; padding:6px 4px; font-size:11px; }
  html body .featured-product-card { padding:10px; gap:8px; }
  html body .featured-badge { top:16px; inset-inline-start:16px; font-size:9px; }
  html body .catalog-filters { display:flex; flex-wrap:nowrap; overflow-x:auto; gap:6px; padding-block:4px; }
  html body .catalog-filters .filter { font-size:12px; padding:8px 12px; min-height:44px; flex-shrink:0; max-width:190px; }
  html body .product-detail-product .catalog-card-body { padding:18px; }
  html body .product-detail-product h3 { font-size:22px; }
  html body.product-detail-page .product-detail-product > img { height:280px; max-width:320px; }
  html body :is(.contact-info-panel,.contact-form-card,.product-applications,.product-document-panel) { padding:18px; }
  html body .contact-form { gap:14px; }
  html body .contact-page-grid { gap:20px; }
  html body .library-tools { grid-template-columns:1fr 1fr; }
  html body .document-toolbar { gap:16px; }
}
@media(max-width:380px) {
  :root { --page-gutter:12px; }
  html body .site-header.enterprise-header .brand strong { font-size:13px; }
  html body .site-header.enterprise-header .brand-mark { width:44px; height:44px; }
  html body:is(.products-page,.business-page,.product-detail-page) .product-list-grid,html body .featured-products-grid { gap:10px; }
  html body .product-list-grid :is(.product-image-link,.related-image-link),html body .product-list-grid .catalog-card :is(img.product-photo,img.product-brand-logo,img),html body .featured-product-card img { height:140px; }
}
