/* The same reading scale is used on the catalogue and its four product entries.
   The independent technical libraries, logos and approved gauze film are not targets. */
/* The JTM508 heading shares a relatively narrow column with its specifications.
   Keep the family/weight of the common hero, with a measure suited to this layout. */
body.wj-native[data-af-page="waterjet"] {--af-type-display:clamp(1.5rem,2.15vw,1.875rem)}
@media (max-width:860px) {
  body.wj-native[data-af-page="waterjet"] {--af-type-display:clamp(1.25rem,3vw,1.5rem)}
}
@layer home-editorial-type {
  .wj35-copy #hero-title > .wj-title-phrase {display:inline-block;max-inline-size:100%;vertical-align:top}
  body.wj-native[data-af-page="waterjet"] main #hero-title {
    font-weight:600 !important;
    line-height:1.17 !important;
    letter-spacing:-.02em !important;
    text-wrap:balance;
  }
  html[lang="ar"] body.wj-native[data-af-page="waterjet"] main #hero-title {line-height:1.35 !important;letter-spacing:normal !important}
}
body[data-af-page] {
  --af-type-family: Inter, "Helvetica Neue", Arial, sans-serif;
  --af-type-display: clamp(2.625rem, 3.5vw, 3.25rem);
  --af-type-section: clamp(1.25rem, 1.02rem + .82vw, 1.6875rem);
  --af-type-copy: 1rem;
  --af-type-action: .9375rem;
  --af-type-label: .8125rem;
  --af-lead-section: 1.25;
  --af-lead-small: 1.4;
  --af-lead-copy: 1.5;
}
html[dir="rtl"] body[data-af-page], html[lang="ar"] body[data-af-page] {
  --af-lead-section: 1.4;
  --af-lead-small: 1.5;
  --af-lead-copy: 1.6;
}

/* Legacy catalogues contain scoped and important declarations. Put only text
   properties in an explicit priority layer; leave component layout/color alone. */
@layer home-editorial-type {
  /* Join the airjet import's first layer (important layers have reversed
     priority). Unnamed legacy styles on the other templates remain below it. */
  body.home-editorial[data-af-page="airjet"] {
    --ed-family:var(--af-type-family);
    --ed-display:var(--af-type-display);
    --ed-section:var(--af-type-section);
    --ed-item:var(--af-type-copy);
    --ed-heading-leading:var(--af-lead-section);
    --ed-item-leading:var(--af-lead-small);
  }
  body[data-af-page] :is(main,.main-nav,.language-links,.company-footer,.wm-section-tabs,.product-page-nav) {
    font-family: var(--af-type-family) !important;
  }
  body[data-af-page]:not([data-af-page="gauze"]) main h1 {
    font: 650 var(--af-type-display)/1.08 var(--af-type-family) !important;
    letter-spacing: -.035em !important;
    text-wrap: balance;
  }
  body[data-af-page]:not([data-af-page="gauze"]) main h1 :is(.hero-product-name,.e190-product-line,.e190-patent-line,.e190-model-tail),
  body[data-af-page="home"] .hero h1 > span {
    font: inherit !important; letter-spacing: inherit !important;
  }
  /* Product chapter names and imported h3/h4 section names are section heads,
     not captions, regardless of how the source template numbered its headings. */
  body[data-af-page]:not([data-af-page="gauze"]) main :is(
    h2:not(.enquiry-band *), .chapter-heading h3, .airjet-product-intro h3,
    .detail-section-title h4, .visual-config-heading h4, .shedding-system-heading h4, .e190-buyer-faq > h4
  ) {
    font: 650 var(--af-type-section)/var(--af-lead-section) var(--af-type-family) !important;
    letter-spacing: -.023em !important;
    text-wrap: balance;
  }
  body[data-af-page]:not([data-af-page="gauze"]) main :is(
    .support-heading h2 > span, .detail-section-title h4 > span, .visual-config-heading h4 > span
  ) {font: inherit !important; letter-spacing: inherit !important}
  body[data-af-page]:not([data-af-page="gauze"]) main :is(
    h3:not(.chapter-heading h3,.airjet-product-intro h3,.enquiry-band *),
    h4:not(.detail-section-title h4,.visual-config-heading h4,.shedding-system-heading h4,.e190-buyer-faq > h4,.enquiry-band *),
    h5,h6,summary,.knowledge-card > strong,.visual-card figcaption > strong,.production-card figcaption > strong,
    .field-proof-card figcaption > strong,.fabric-row
  ) {
    font: 650 var(--af-type-copy)/var(--af-lead-small) var(--af-type-family) !important;
    letter-spacing: -.008em !important;
  }
  body[data-af-page]:not([data-af-page="gauze"]) main :is(
    p:not(.enquiry-band *, .eyebrow, .kicker, .af-kicker, .wj35-kicker, .hero-manufacturer,
      .support-stat,.support-brow,.service-topic,.spec-config-copy,.spec-guidance),
    li:not(.enquiry-band *, .quality-step),.af-fact-grid dd,.chapter-copy dd
  ) {
    font: 400 var(--af-type-copy)/var(--af-lead-copy) var(--af-type-family) !important;
    letter-spacing: normal !important;
  }
  body[data-af-page]:not([data-af-page="gauze"]) main :is(
    .eyebrow,.kicker,.af-kicker,.wj35-kicker,.hero-manufacturer,.support-brow,
    .knowledge-card-label,.chapter-heading > small,dt,.visual-card > div > span:not(.config-status)
  ) {
    font: 650 var(--af-type-label)/1.35 var(--af-type-family) !important;
  }
  body[data-af-page]:not([data-af-page="gauze"]) main :is(th,td,.spec-config-copy,.spec-guidance) {
    font: 400 var(--af-type-action)/1.45 var(--af-type-family) !important;
    letter-spacing: normal !important;
  }
  body[data-af-page]:not([data-af-page="gauze"]) main th {font-weight:650 !important}
  body[data-af-page] :is(.main-nav > a, .button, .af-btn, .text-link, .range-detail,
    .wj35-actions > a, .wj-final-links a, .buyer-faq-links a, .e190-spec-inquiry > a, .support-project-link) {
    font: 600 var(--af-type-action)/1.4 var(--af-type-family) !important;
  }
  body[data-af-page] :is(.wm-section-tabs,.product-page-nav) > a {
    font:650 .9rem/1.25 var(--af-type-family) !important;
  }
  html[lang="ar"] body[data-af-page]:not([data-af-page="gauze"]) main :is(h1,h2,h3,h4,h5,h6,summary,.support-brow,.eyebrow) {
    letter-spacing:normal !important;
  }
}
@media (max-width:860px) {
  body[data-af-page] {--af-type-display:clamp(1.25rem,5.6vw,1.625rem)}
  @layer home-editorial-type {
    body[data-af-page]:not([data-af-page="gauze"]) main h1 { line-height:1.2 !important;letter-spacing:-.025em !important }
    body[data-af-page] :is(.wm-section-tabs,.product-page-nav) > a {
      font-size:clamp(.75rem,3.2vw,.82rem) !important;
    }
  }
}
@media (max-width:640px) {
  /* Keep informational sections compact without introducing a new scroll model
     for the catalogue's product chapters or shrinking body text. */
  body[data-af-page="home"] main > :is(.fabric-bg,.mill-support),
  body[data-af-page="rapier"] .rp-native > :is(.fabric-applications,.visual-section,.specs-section,.production-section,.field-proof-section,.maintenance-section,.quality-section,.buyer-faq-section) {
    padding-block:clamp(1rem,4.5vw,1.375rem);
  }
  body:is([data-af-page="airjet"],[data-af-page="waterjet"]) main :is(.visual-config-heading,.component-system-heading,.knowledge-hub-heading,.buyer-knowledge__intro) {
    margin-block-end:.7rem;
  }
  body[data-af-page="rapier"] main .section-heading,
  body[data-af-page="home"] main .support-heading { margin-block-end:.75rem; }
}

/* Match the waterjet component list; retain the shared, localized body type. */
body[data-af-page="airjet"] #airjet-specs #airjet-service-list {
  --service-row-pad: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0 32px;
  margin: 12px 0 0;
  padding: 0;
  scroll-margin-block-start: 8rem;
}
body[data-af-page="airjet"] #airjet-specs #airjet-service-list > li {
  min-inline-size: 0;
  margin: 0;
  padding: var(--service-row-pad) 0;
  padding-inline-start: 18px;
  border-block-start: 1px solid #d9e2ec;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 95%);
  color: #4c627a;
  text-align: start;
}
body[data-af-page="airjet"] #airjet-specs #airjet-service-list > li::before {
  inset: auto;
  inset-inline-start: 0;
  inset-block-start: calc(var(--service-row-pad) + .63em);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #a90f22;
}
body[data-af-page="airjet"] #airjet-specs #airjet-service-list > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-block-end: 0;
}
@media (max-width: 980px) {
  body[data-af-page="airjet"] #airjet-specs #airjet-service-list {
    --service-row-pad: 8px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-block-start: 8px;
  }
  body[data-af-page="airjet"] #airjet-specs #airjet-service-list > li { padding-inline-start: 15px; }
}
@media (max-width: 600px) {
  /* The imported layout already supplies a page gutter and a panel gutter. */
  body[data-af-page="airjet"] #airjet-specs #airjet-support + .quality-strip-single {
    margin-inline: -.5rem;
  }
  body[data-af-page="airjet"] #airjet-specs #airjet-support + .quality-strip-single > div {
    padding-inline: .65rem;
  }
}
