/* ==========================================================================
   JIELI THERMAL Unified Industrial Design System (2026-11-27 v2)
   ========================================================================== */

:root,
html:not(#_ds),
html:not(#_ds) body:not(#_ds) {
  --ds-canvas: #ffffff;
  --ds-surface: #f4f6f8;
  --ds-surface-alt: #edf1f5;
  --ds-ink: #0f2433;
  --ds-body: #273948;
  --ds-muted: #526575;
  --ds-border: #dce3ea;
  --ds-primary: #0f293a;
  --ds-accent: #c24c28;
  --ds-accent-hover: #a33b1b;
  --ds-glass-bg: rgba(244, 246, 248, 0.58);
  --ds-glass-bg-card: rgba(244, 246, 248, 0.62);
  --ds-glass-border: rgba(255, 255, 255, 0.74);
  --ds-shadow-sm: 0 6px 18px rgba(15, 41, 58, 0.05);
  --ds-shadow-md: 0 12px 30px rgba(15, 41, 58, 0.08);
  --ds-radius-btn: 8px;
  --ds-radius-card: 12px;

  /* Override ALL legacy Next/patch font variables to modern industrial Inter */
  --site-sans-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  --site-serif-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  --font-display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  --font-editorial: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  --font-serif: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  --font-lora: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  --font-poppins: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  --font-handwritten: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  --reading-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  --article-body-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;

  /* Override legacy warm beige tokens so sections harmonise with white/cool-gray */
  --anthropic-paper: #ffffff !important;
  --surface-offwhite: #f4f6f8 !important;
  --jieli-one-tone-bg: #f4f6f8 !important;
  --jieli-one-tone-card: #ffffff !important;
}

/* Arabic RTL font stack */
html:not(#_ds)[lang="ar"],
html:not(#_ds)[dir="rtl"],
html:not(#_ds)[lang="ar"] body:not(#_ds) {
  --site-sans-font: "Noto Sans Arabic", "Segoe UI", Tahoma, Inter, Arial, sans-serif !important;
  --site-serif-font: "Noto Sans Arabic", "Segoe UI", Tahoma, Inter, Arial, sans-serif !important;
  --font-display: "Noto Sans Arabic", "Segoe UI", Tahoma, Inter, Arial, sans-serif !important;
  --font-editorial: "Noto Sans Arabic", "Segoe UI", Tahoma, Inter, Arial, sans-serif !important;
  --font-serif: "Noto Sans Arabic", "Segoe UI", Tahoma, Inter, Arial, sans-serif !important;
  --reading-font: "Noto Sans Arabic", "Segoe UI", Tahoma, Inter, Arial, sans-serif !important;
}

/* 1. Clean Precision Canvas & Unified Inter Typography */
html:not(#_ds) {
  background-color: var(--ds-canvas) !important;
}
html:not(#_ds) body:not(#_ds) {
  background-color: var(--ds-canvas) !important;
  background-image: none !important;
  color: var(--ds-body) !important;
  font-family: var(--site-sans-font) !important;
  font-size: 16px !important;
  line-height: 1.68 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Force Inter across ALL headings & copy (eliminates Lora/Georgia/Arial clashes, incl. hero h1 spans) */
html:not(#_ds) body:not(#_ds) :is(h1, h2, h3, h4, h5, h6, p, li, td, th, dt, dd, blockquote, figcaption, label, input, select, textarea, button, summary, .eyebrow, .knowledge-kicker, .breadcrumb, .breadcrumbs, .intl-article-deck, .pks-deck, .skid-lede, .product-detail-lede, .knowledge-deck),
html:not(#_ds) body:not(#_ds) main > .hero .hero-copy :is(h1, h1 span, .hero-lead-line, .hero-product-line) {
  font-family: var(--site-sans-font) !important;
}
html:not(#_ds) body:not(#_ds) main > .hero .hero-product-routes a {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: var(--ds-primary) !important;
}
html:not(#_ds) body:not(#_ds) main > .hero .hero-product-routes a:hover {
  border-color: var(--ds-accent) !important;
  background-color: #f8fafc !important;
}

/* 2. Unified Type Scale & 4-Tier Line-Height System */
html:not(#_ds) body:not(#_ds) main h1:not(.hero-slide-caption *) {
  color: var(--ds-ink) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em !important;
}
/* Subpage H1: Always clearly larger than H2 (fixes /solutions/ & /about/ H1 < H2 inversion!) */
html:not(#_ds) body:not(#_ds) main :is(.page-hero-inner, .knowledge-article-header-inner, .intl-article-header, .engineering-note-header, .flow-design-header, .pks-heading, .product-detail-hero, .intl-hero, .skid-hero) h1 {
  font-size: clamp(32px, 3vw, 42px) !important;
  line-height: 1.18 !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}
/* Homepage Hero H1 */
html:not(#_ds) body:not(#_ds) main > .hero .hero-copy h1 {
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.022em !important;
}

html:not(#_ds) body:not(#_ds) main h2 {
  color: var(--ds-ink) !important;
  font-size: clamp(23px, 1.95vw, 28px) !important;
  line-height: 1.26 !important;
  font-weight: 700 !important;
  letter-spacing: -0.018em !important;
  margin-bottom: 14px !important;
}

html:not(#_ds) body:not(#_ds) main h3 {
  color: var(--ds-ink) !important;
  font-size: clamp(18px, 1.3vw, 20px) !important;
  line-height: 1.34 !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 10px !important;
}

html:not(#_ds) body:not(#_ds) main h4 {
  color: var(--ds-ink) !important;
  font-size: 16.5px !important;
  line-height: 1.4 !important;
  font-weight: 650 !important;
}

/* Running text and list spacing. */
html:not(#_ds) body:not(#_ds) main :is(p, li):not(.eyebrow):not(.knowledge-kicker):not(.breadcrumb):not(.breadcrumbs):not(.hero-slide-caption *):not(.hero-slide-caption) {
  line-height: var(--jt-cover-text-leading, var(--jt-copy-leading, 1.52)) !important;
}

html:not(#_ds) body:not(#_ds) main :is(.knowledge-body, .intl-article-body, .pks-section, .privacy-layout) :is(p, li) {
  font-size: 16px !important;
  line-height: var(--jt-copy-leading, 1.55) !important;
  color: var(--ds-body) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body, .intl-article-body, .pks-section) p {
  margin-top: 0 !important;
  margin-bottom: .5em !important;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body, .intl-article-body, .pks-section) li {
  margin-bottom: .18em !important;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body, .intl-article-body, .pks-section) h2 {
  margin-top: 1.05em !important;
  margin-bottom: .35em !important;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body, .intl-article-body, .pks-section) section:first-child > h2:first-child {
  margin-top: 0.4em !important;
}

html:not(#_ds) body:not(#_ds) main > .hero .hero-copy p,
html:not(#_ds) body:not(#_ds) main > .hero .hero-copy li {
  line-height: 1.56 !important;
}

html:not(#_ds) body:not(#_ds) main :is(.product-card, .project-card, .home-news-card, .seo-cluster-card, .industry-card-grid article, .solution-stage-grid li, .about-values-grid article, .about-strengths > div, .product-info-grid article) p {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--ds-body) !important;
}

/* Unified Eyebrow / Kicker Scale */
html:not(#_ds) body:not(#_ds) main :is(.eyebrow, .knowledge-kicker) {
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: 0.085em !important;
  text-transform: uppercase !important;
  color: var(--ds-accent) !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* Arabic RTL Generous Line-Heights & Natural Spacing */
html:not(#_ds)[lang="ar"] body:not(#_ds) main h1:not(.hero-slide-caption *) {
  line-height: 1.42 !important;
  letter-spacing: 0 !important;
}
html:not(#_ds)[lang="ar"] body:not(#_ds) main h2 {
  line-height: 1.48 !important;
  letter-spacing: 0 !important;
}
html:not(#_ds)[lang="ar"] body:not(#_ds) main h3 {
  line-height: 1.52 !important;
  letter-spacing: 0 !important;
}
html:not(#_ds)[lang="ar"] body:not(#_ds) main :is(p, li):not(.eyebrow):not(.knowledge-kicker):not(.breadcrumb):not(.breadcrumbs):not(.hero-slide-caption *):not(.hero-slide-caption) {
  line-height: var(--jt-cover-text-leading, 1.68) !important;
  letter-spacing: 0 !important;
}
html:not(#_ds)[lang="ar"] body:not(#_ds) main :is(.eyebrow, .knowledge-kicker) {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 13px !important;
}

/* 3. Comfortable Reading Width (74ch on Prose) & Responsive Grids */
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body, .intl-article-body) > :is(p, ul, ol, h2, h3, blockquote),
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body, .intl-article-body) section:not(.converter-panel) > :is(p, ul, ol, h2, h3, blockquote),
html:not(#_ds) body:not(#_ds) main .pks-section > :is(p, ul, ol, h2, h3),
html:not(#_ds) body:not(#_ds) main .pks-heading > :is(h1, p),
html:not(#_ds) body:not(#_ds) main .specification-note,
html:not(#_ds) body:not(#_ds) main .section-heading > p {
  max-width: 74ch !important;
}
html:not(#_ds) body:not(#_ds) main .pks-heading > h1 {
  max-width: 28ch !important;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-table-wrap, .buyer-guide-table-wrap, .table-wrap, .converter-panel, .seo-cluster-grid, .eeat-review-box, .intl-diagram, .pks-gallery) {
  max-width: 100% !important;
}

/* Fix /solutions/ Cramped 5-Column Strip -> Breathing Responsive Industrial Cards */
html:not(#_ds) body:not(#_ds) main .solution-stage-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 18px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
html:not(#_ds) body:not(#_ds) main .solution-stage-grid li {
  min-height: 0 !important;
  padding: 24px 22px !important;
  border-radius: var(--ds-radius-card) !important;
  border: 1px solid var(--ds-border) !important;
  background: #ffffff !important;
  box-shadow: var(--ds-shadow-sm) !important;
}
html:not(#_ds) body:not(#_ds) main .solution-stage-grid li h3 {
  margin-top: 12px !important;
  margin-bottom: 10px !important;
}

/* Fix Mobile (390px) Nested Padding Squeeze on Article Pages & Quick Answer Box */
/* Prevent horizontal overflow on mobile article figures & containers */
html:not(#_ds) body:not(#_ds) main :is(.knowledge-article-figure, .intl-diagram, figure) {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 768px) {
  html:not(#_ds) body:not(#_ds) main :is(.knowledge-article-figure, .intl-diagram) {
    width: 100% !important;
    margin-inline: 0 !important;
  }
  html:not(#_ds) body:not(#_ds) main .shell {
    padding-inline: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  html:not(#_ds) body:not(#_ds) main .knowledge-article-body,
  html:not(#_ds) body:not(#_ds) main .knowledge-layout,
  html:not(#_ds) body:not(#_ds) main .knowledge-body,
  html:not(#_ds) body:not(#_ds) main .intl-article-body {
    padding-inline: 16px !important;
    width: 100% !important;
  }
  html:not(#_ds) body:not(#_ds) main .knowledge-body > .shell,
  html:not(#_ds) body:not(#_ds) main .knowledge-layout > .knowledge-body {
    padding-inline: 0 !important;
  }
  html:not(#_ds) body:not(#_ds) main .knowledge-summary {
    padding: 18px 16px !important;
    margin-inline: 0 !important;
  }
  html:not(#_ds) body:not(#_ds) main .knowledge-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-top: 16px !important;
  }
  html:not(#_ds) body:not(#_ds) main .knowledge-summary-grid > div {
    padding: 14px 16px !important;
    border-radius: 10px !important;
  }
  html:not(#_ds) body:not(#_ds) main :is(.page-hero-inner, .knowledge-article-header-inner, .intl-article-header, .engineering-note-header, .flow-design-header, .pks-heading, .product-detail-hero, .intl-hero, .skid-hero) h1 {
    font-size: clamp(25px, 6.8vw, 32px) !important;
    line-height: 1.22 !important;
  }
  html:not(#_ds) body:not(#_ds) main h2 {
    font-size: clamp(21px, 5.4vw, 25px) !important;
  }
}

/* ==========================================================================
   4. SUBPAGE HERO IMAGE TEXT OVERLAYS — VERY LIGHT, HIGH-TRANSPARENCY GRAY
      (Exact user spec: 浅灰色，很浅的灰色，透明度要高一些 + Crisp Dark Ink)
   ========================================================================== */

/* Remove ALL heavy dark full-bleed overlays over subpage hero photography */
html:not(#_ds) body:not(#_ds) main .page-hero::before,
html:not(#_ds) body:not(#_ds) main .page-hero::after,
html:not(#_ds) body:not(#_ds) main .knowledge-article-header::before,
html:not(#_ds) body:not(#_ds) main .knowledge-article-header::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(15, 36, 51, 0.04) 100%) !important;
  background-color: transparent !important;
  opacity: 1 !important;
}
html:not(#_ds) body:not(#_ds) main .page-hero {
  background-color: #eef2f5 !important;
}

/* Subpage .page-hero (About, Manufacturing, Products, Solutions, News, Contact, Projects) */
html:not(#_ds) body:not(#_ds) main .page-hero > .shell.page-hero-inner {
  position: relative !important;
  isolation: isolate !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 26px 32px !important;
  border-radius: var(--ds-radius-card) !important;
  max-width: min(760px, calc(100% - 32px)) !important;
  color: var(--ds-ink) !important;
}
html:not(#_ds) body:not(#_ds) main .page-hero > .shell.page-hero-inner::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background: var(--ds-glass-bg) !important;
  background-image: none !important;
  backdrop-filter: blur(11px) saturate(118%) !important;
  -webkit-backdrop-filter: blur(11px) saturate(118%) !important;
  border: 1px solid var(--ds-glass-border) !important;
  border-radius: var(--ds-radius-card) !important;
  box-shadow: 0 10px 28px rgba(15, 41, 58, 0.08) !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Subpage Technical Guides / Field Cases (.knowledge-article-header-inner) */
html:not(#_ds) body:not(#_ds) main .knowledge-article-header {
  position: relative !important;
  padding-block: 44px !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-article-header > .shell.knowledge-article-header-inner {
  position: relative !important;
  isolation: isolate !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 26px 32px !important;
  border-radius: var(--ds-radius-card) !important;
  max-width: min(820px, calc(100% - 32px)) !important;
  color: var(--ds-ink) !important;
  margin-inline: auto !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-article-header > .shell.knowledge-article-header-inner::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background: var(--ds-glass-bg-card) !important;
  background-image: none !important;
  backdrop-filter: blur(12px) saturate(118%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(118%) !important;
  border: 1px solid var(--ds-glass-border) !important;
  border-radius: var(--ds-radius-card) !important;
  box-shadow: 0 10px 28px rgba(15, 41, 58, 0.08) !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Crisp High-Contrast Dark Steel Ink inside ALL Very-Light Translucent Gray Hero Overlays */
html:not(#_ds) body:not(#_ds) main :is(.page-hero > .shell.page-hero-inner, .knowledge-article-header > .shell.knowledge-article-header-inner) :is(h1, h2, h3, strong) {
  color: #0e2433 !important;
  -webkit-text-fill-color: #0e2433 !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.65) !important;
  -webkit-text-stroke: 0 transparent !important;
}
html:not(#_ds) body:not(#_ds) main :is(.page-hero > .shell.page-hero-inner, .knowledge-article-header > .shell.knowledge-article-header-inner) :is(p, a, span, li, time, bdi, .breadcrumb, .breadcrumbs, .knowledge-deck) {
  color: #182d3c !important;
  -webkit-text-fill-color: #182d3c !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.55) !important;
  -webkit-text-stroke: 0 transparent !important;
}
html:not(#_ds) body:not(#_ds) main :is(.page-hero > .shell.page-hero-inner, .knowledge-article-header > .shell.knowledge-article-header-inner) :is(.eyebrow, .eyebrow-light, .knowledge-kicker) {
  color: #b4421f !important;
  -webkit-text-fill-color: #b4421f !important;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.page-hero > .shell.page-hero-inner, .knowledge-article-header > .shell.knowledge-article-header-inner) a:hover {
  color: #b4421f !important;
  -webkit-text-fill-color: #b4421f !important;
}

/* Subpage Editorial / Solution / Tools / Regional Headers (Matching Airy Light-Gray Glass) */
html:not(#_ds) body:not(#_ds) main :is(.intl-article-header, .engineering-note-header, .flow-design-header) {
  background-color: #eef2f6 !important;
  border-bottom: 1px solid var(--ds-border) !important;
  padding-block: 38px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.intl-article-header, .engineering-note-header, .flow-design-header) > .shell {
  background: rgba(244, 246, 248, 0.68) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  border-radius: var(--ds-radius-card) !important;
  padding: 26px 32px !important;
  box-shadow: var(--ds-shadow-sm) !important;
}

/* Subpage Photo Captions (Light Translucent Gray; Homepage 20-slide carousel untouched!) */
html:not(#_ds) body:not(#_ds) main :is(.systems-visual .systems-visual-note, .manufacturing-card > span, .photo-gallery-item > span, .manufacturing-page-image > span) {
  background: rgba(244, 246, 248, 0.68) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  color: #0e2433 !important;
  -webkit-text-fill-color: #0e2433 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 8px !important;
}

@media (max-width: 768px) {
  html:not(#_ds) body:not(#_ds) main .page-hero > .shell.page-hero-inner,
  html:not(#_ds) body:not(#_ds) main .knowledge-article-header > .shell.knowledge-article-header-inner,
  html:not(#_ds) body:not(#_ds) main :is(.intl-article-header, .engineering-note-header, .flow-design-header) > .shell {
    padding: 20px 18px !important;
  }
}

/* 5. Clean Precision Industrial Surfaces (Eliminates warm beige remnants) */
html:not(#_ds) body:not(#_ds) .site-header {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--ds-border) !important;
  box-shadow: 0 2px 12px rgba(15, 41, 58, 0.04) !important;
}
html:not(#_ds) body:not(#_ds) main > .hero,
html:not(#_ds) body:not(#_ds) main > .hero .hero-copy {
  background: #f6f8fa !important;
  background-image: none !important;
}
html:not(#_ds) body:not(#_ds) main .product-detail-hero,
html:not(#_ds) body:not(#_ds) main .intl-hero,
html:not(#_ds) body:not(#_ds) main .skid-hero {
  background: linear-gradient(180deg, #f2f5f8 0%, #f8fafc 100%) !important;
  border-bottom: 1px solid var(--ds-border) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.product-subnav, .product-section-nav, .product-jump-nav, .section-nav, .anchor-nav, .sticky-section-nav) {
  background: rgba(255, 255, 255, 0.96) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--ds-border) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.spec-card, .spec-card-head, .product-spec-summary) {
  background-color: #f4f6f8 !important;
  border-color: var(--ds-border) !important;
}
html:not(#_ds) body:not(#_ds) main > section.section,
html:not(#_ds) body:not(#_ds) main article.knowledge-article,
html:not(#_ds) body:not(#_ds) main article.intl-article,
html:not(#_ds) body:not(#_ds) main.pks-case {
  background-color: var(--ds-canvas) !important;
  background-image: none !important;
}
html:not(#_ds) body:not(#_ds) main > section.section {
  padding-block: 60px !important;
}
html:not(#_ds) body:not(#_ds) main > section.section:nth-of-type(even):not(.embedded-rfq-section):not(.seo-cluster-section):not([class*="dark"]):not(.home-contact-band):not(.cta-band) {
  background-color: var(--ds-surface) !important;
}
html:not(#_ds) body:not(#_ds) main .seo-cluster-section {
  background-color: var(--ds-surface) !important;
  border-top: 1px solid var(--ds-border) !important;
  padding-block: 52px !important;
}
html:not(#_ds) body:not(#_ds) main .embedded-rfq-section {
  background: linear-gradient(145deg, #f0f4f8 0%, #e8eef4 100%) !important;
  border-top: 1px solid var(--ds-border) !important;
  padding-block: 56px !important;
}
@media (max-width: 768px) {
  html:not(#_ds) body:not(#_ds) main > section.section,
  html:not(#_ds) body:not(#_ds) main .seo-cluster-section,
  html:not(#_ds) body:not(#_ds) main .embedded-rfq-section {
    padding-block: 42px !important;
  }
}

/* 6. Unified Buttons (8px) & Cards (12px) */
html:not(#_ds) body:not(#_ds) main a.button,
html:not(#_ds) body:not(#_ds) main button.button,
html:not(#_ds) body:not(#_ds) .inquiry-form button[type="submit"] {
  border-radius: var(--ds-radius-btn) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.005em !important;
}
html:not(#_ds) body:not(#_ds) main .button-orange,
html:not(#_ds) body:not(#_ds) .inquiry-form .button-orange {
  background-color: var(--ds-accent) !important;
  border-color: var(--ds-accent) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html:not(#_ds) body:not(#_ds) main .button-orange:hover,
html:not(#_ds) body:not(#_ds) .inquiry-form .button-orange:hover {
  background-color: var(--ds-accent-hover) !important;
  border-color: var(--ds-accent-hover) !important;
}
html:not(#_ds) body:not(#_ds) main .button-outline {
  background-color: #ffffff !important;
  color: var(--ds-primary) !important;
  -webkit-text-fill-color: var(--ds-primary) !important;
  border: 1.5px solid #9db0be !important;
}
html:not(#_ds) body:not(#_ds) main .button-outline:hover {
  border-color: var(--ds-primary) !important;
  background-color: var(--ds-surface) !important;
}

/* Uniform 12px Industrial Card Language Across All Templates */
html:not(#_ds) body:not(#_ds) main :is(.product-card, .project-card, .home-news-card, .seo-cluster-card, .industry-card-grid > article, .about-values-grid > article, .about-strengths > div, .product-info-grid > article, .pks-facts, .eeat-review-box, .converter-panel, .knowledge-summary, .procurement-shortlist, .thank-you-card) {
  border-radius: var(--ds-radius-card) !important;
  border: 1px solid var(--ds-border) !important;
  background-color: #ffffff !important;
  box-shadow: var(--ds-shadow-sm) !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-summary {
  border-top: 4px solid var(--ds-accent) !important;
}
html:not(#_ds) body:not(#_ds) main .eeat-review-box {
  background-color: var(--ds-surface) !important;
  border-inline-start: 4px solid var(--ds-primary) !important;
}
html:not(#_ds) body:not(#_ds) main .product-quick-facts > * {
  border-radius: 10px !important;
  border: 1px solid var(--ds-border) !important;
  background-color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(15, 41, 58, 0.04) !important;
}
html:not(#_ds) body:not(#_ds) main .available-fuel {
  border-radius: 10px !important;
  background-color: #ffffff !important;
  border: 1px solid var(--ds-border) !important;
  border-inline-start: 4px solid var(--ds-accent) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.product-card, .project-card, .home-news-card, .seo-cluster-card):hover {
  border-color: #b7c6d4 !important;
  box-shadow: var(--ds-shadow-md) !important;
}
html:not(#_ds) body:not(#_ds) main .product-card .product-card-body > p:first-child {
  border-color: #c7d4df !important;
  background-color: #f4f7fa !important;
  color: var(--ds-primary) !important;
  border-radius: 999px !important;
}

/* Unified Form Inputs */
html:not(#_ds) body:not(#_ds) .inquiry-form :is(input, select, textarea) {
  border-radius: var(--ds-radius-btn) !important;
  border: 1px solid #c5d1dc !important;
  background-color: #ffffff !important;
  color: var(--ds-ink) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
html:not(#_ds) body:not(#_ds) .inquiry-form :is(input, select, textarea):focus {
  border-color: var(--ds-accent) !important;
  outline: 2px solid rgba(194, 76, 40, 0.18) !important;
}

/* 7. Unified Industrial Specification Tables (Beats ALL legacy table-columns-20260922 overrides!) */
html:not(#_ds) body:not(#_ds) main :is(.buyer-guide-table-wrap, .knowledge-table-wrap, .table-wrap, .specification-table-wrap) {
  border-radius: 10px !important;
  border: 1px solid var(--ds-border) !important;
  background: #ffffff !important;
  box-shadow: var(--ds-shadow-sm) !important;
  overflow-x: auto !important;
}
html:not(#_ds) body:not(#_ds) main :is(.specification-table, .buyer-guide-table, .model-shortlist-table, .knowledge-body table, .intl-article-body table, .regional-model-data table) {
  width: 100% !important;
  border-collapse: collapse !important;
  font-variant-numeric: tabular-nums !important;
  background-color: #ffffff !important;
}
html:not(#_ds) body:not(#_ds) main :is(.specification-table, .buyer-guide-table, .model-shortlist-table, .knowledge-body table, .intl-article-body table, .regional-model-data table) thead th,
html:not(#_ds) body:not(#_ds) main :is(.specification-table, .buyer-guide-table, .model-shortlist-table, .knowledge-body table, .intl-article-body table, .regional-model-data table) thead th:first-child,
html:not(#_ds) body:not(#_ds) main :is(.specification-table, .buyer-guide-table, .model-shortlist-table, .knowledge-body table, .intl-article-body table, .regional-model-data table) thead th:nth-child(2) {
  background: #0f293a !important;
  background-color: #0f293a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  padding: 8px 15px !important;
  border-bottom: 1px solid #091d2a !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  text-align: start !important;
}
html:not(#_ds) body:not(#_ds) main :is(.specification-table, .buyer-guide-table, .model-shortlist-table, .knowledge-body table, .intl-article-body table, .regional-model-data table) tbody :is(td, th) {
  font-size: 14.5px !important;
  line-height: 1.45 !important;
  padding: 5px 15px !important;
  color: var(--ds-body) !important;
  -webkit-text-fill-color: var(--ds-body) !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e6ecf1 !important;
  border-right: 1px solid #eef2f6 !important;
  vertical-align: top !important;
}
html:not(#_ds) body:not(#_ds) main :is(.specification-table, .buyer-guide-table, .model-shortlist-table, .knowledge-body table, .intl-article-body table, .regional-model-data table) tbody th,
html:not(#_ds) body:not(#_ds) main .specification-table tbody td:first-child {
  color: var(--ds-ink) !important;
  -webkit-text-fill-color: var(--ds-ink) !important;
  font-weight: 600 !important;
  background: #f5f8fb !important;
  background-color: #f5f8fb !important;
}
html:not(#_ds) body:not(#_ds) main :is(.specification-table, .buyer-guide-table, .model-shortlist-table, .knowledge-body table, .intl-article-body table, .regional-model-data table) tbody tr:nth-child(even) td:not(:first-child) {
  background: #f9fbfd !important;
  background-color: #f9fbfd !important;
}

/* 8. Compact Non-Intrusive Desktop Floating Contact Bar */
@media (min-width: 901px) {
  html:not(#_ds) body:not(#_ds) .desktop-conversion-dock {
    position: fixed !important;
    inset-inline-end: 16px !important;
    bottom: 14px !important;
    z-index: 95 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--ds-border) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(15, 41, 58, 0.14) !important;
  }
  html:not(#_ds) body:not(#_ds) .desktop-conversion-dock .desktop-dock-btn {
    padding: 7px 13px !important;
    font-size: 12.5px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    border-radius: 999px !important;
  }
  html:not(#_ds) body:not(#_ds) .desktop-conversion-dock .desktop-dock-quote {
    background-color: var(--ds-accent) !important;
  }
  html:not(#_ds) body:not(#_ds) .desktop-conversion-dock .desktop-dock-quote:hover {
    background-color: var(--ds-accent-hover) !important;
  }
  html:not(#_ds) body:not(#_ds) .site-footer {
    padding-bottom: 68px !important;
  }
}

/* Clean Architectural Skeleton Background on Image Containers */
html:not(#_ds) body:not(#_ds) :is(.product-detail-image, .product-card-image, .project-card > img, .project-card picture, .manufacturing-card, .photo-gallery-item, .about-image, .systems-visual) {
  background-color: #eaeff3 !important;
}

/* Keep existing navigation, image delivery, and the dark Projects text surface usable. */
html:not(#_ds) body:not(#_ds) .site-header {
  background: #fff !important;
}
html:not(#_ds) body:not(#_ds) .site-header .mobile-menu nav {
  background-color: #fff !important;
}
html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects {
  background-color: #142b3a !important;
}
html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects > .shell.page-hero-inner :is(h1, p, a, span, strong) {
  color: #f5f2ea !important;
  -webkit-text-fill-color: #f5f2ea !important;
  text-shadow: none !important;
}
html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects > .shell.page-hero-inner::before {
  display: none !important;
}

/* The photo stays legible through a thin veil, including over dark equipment. */
html:not(#_ds) body:not(#_ds) main :is(.page-hero:not(.page-hero-projects) > .shell.page-hero-inner, .knowledge-article-header > .shell.knowledge-article-header-inner)::before {
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  border-color: rgba(255, 255, 255, .35) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.page-hero:not(.page-hero-projects) > .shell.page-hero-inner, .knowledge-article-header > .shell.knowledge-article-header-inner) :is(h1, h2, h3, strong, p, a, span, li, time, bdi, .eyebrow, .breadcrumb, .breadcrumbs, .knowledge-kicker, .knowledge-deck) {
  color: #111a1d !important;
  -webkit-text-fill-color: #111a1d !important;
  text-shadow: none !important;
}
html:not(#_ds) body:not(#_ds) main .intl-article-header > .shell {
  background: rgba(244, 246, 248, .62) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

/* Use intrinsic grid sizing at narrow widths without hiding off-screen content. */
html:not(#_ds) body:not(#_ds) main .solution-stage-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important;
}
@media (max-width: 768px) {
  html:not(#_ds) body:not(#_ds) main :is(.shell, .knowledge-article-body, .knowledge-layout, .knowledge-body, .intl-article-body) {
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* Match the existing article gutters when the heading shell uses the full mobile column. */
@media (max-width: 768px) {
  html:not(#_ds) body:not(#_ds) main .intl-article-header > .shell {
    width: calc(100% - 28px) !important;
    margin-inline: auto !important;
  }
}
/* Keep subpage photo shading inside the compact headline and description area. */
html:not(#_ds) body:not(#_ds) main :is(.page-hero > .shell.page-hero-inner,
  .knowledge-article-header > .shell.knowledge-article-header-inner,
  .intl-article-header > .shell, .engineering-note-header > .shell, .flow-design-header > .shell) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html:not(#_ds) body:not(#_ds) main :is(.page-hero:not(.page-hero-projects) > .shell.page-hero-inner,
  .knowledge-article-header > .shell.knowledge-article-header-inner, .intl-article-header > .shell) {
  position: relative !important;
  isolation: isolate !important;
  box-sizing: border-box !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: min(calc(100% - 26px), 26rem) !important;
  padding: 9px 13px 11px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.page-hero:not(.page-hero-projects) > .shell.page-hero-inner,
  .knowledge-article-header > .shell.knowledge-article-header-inner, .intl-article-header > .shell)::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background: rgba(239, 241, 243, .55) !important;
  mask-image: linear-gradient(to right, transparent, #000 6px, #000 calc(100% - 6px), transparent),
    linear-gradient(to bottom, transparent, #000 6px, #000 calc(100% - 6px), transparent) !important;
  mask-composite: intersect;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html:not(#_ds) body:not(#_ds) main :is(.page-hero-inner, .knowledge-article-header-inner, .intl-article-header > .shell) h1 {
  font-size: clamp(1.4rem, 2vw, 1.8rem) !important;
  line-height: 1.19 !important;
  margin-block: 0 7px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.page-hero-inner, .knowledge-article-header-inner, .intl-article-header > .shell) > p {
  margin-block: 0 5px !important;
  font-size: .92rem !important;
  line-height: 1.42 !important;
}
html:not(#_ds) body:not(#_ds) main :is(.page-hero-inner, .knowledge-article-header-inner, .intl-article-header > .shell)
  :is(.eyebrow, .knowledge-kicker, .breadcrumb, .breadcrumbs, .knowledge-meta, .intl-meta) {
  margin-block: 0 4px !important;
  font-size: .72rem !important;
  line-height: 1.28 !important;
}
html:not(#_ds) body:not(#_ds) main :is(.page-hero:not(.page-hero-projects) > .shell.page-hero-inner,
  .knowledge-article-header > .shell.knowledge-article-header-inner, .intl-article-header > .shell)
  :is(h1, h2, h3, strong, p, a, span, li, time, bdi, .eyebrow, .breadcrumb, .breadcrumbs, .knowledge-kicker, .knowledge-deck) {
  color: #111a1d !important;
  -webkit-text-fill-color: #111a1d !important;
  text-shadow: none !important;
}
@media (max-width: 768px) {
  html:not(#_ds) body:not(#_ds) main :is(.page-hero:not(.page-hero-projects) > .shell.page-hero-inner,
    .knowledge-article-header > .shell.knowledge-article-header-inner, .intl-article-header > .shell) {
    max-width: min(calc(100% - 36px), 18.5rem) !important;
    padding: 8px 11px 9px !important;
  }
}

/* Keep the secondary project photo visible when the description takes more room. */
html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects > .shell.page-hero-inner {
  padding: 11px 15px !important;
}
html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects > .page-hero-support-picture {
  display: block !important;
  position: relative !important;
  height: auto !important;
  overflow: hidden !important;
  border-radius: 9px;
}
html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects > .page-hero-support-picture img {
  display: block !important;
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 34% !important;
}
@media (min-width: 901px) {
  html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects {
    --projects-support-height: clamp(136px, 13vw, 210px);
    grid-template-rows: auto minmax(var(--projects-support-height), 1fr) !important;
  }
  html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects > .page-hero-support-picture {
    min-height: var(--projects-support-height) !important;
  }
  html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects > .page-hero-picture {
    align-self: stretch !important;
    height: auto !important;
    max-width: none !important;
    aspect-ratio: auto !important;
  }
  html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects > .page-hero-picture::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 900px) {
  html:not(#_ds) body:not(#_ds) main .page-hero.page-hero-projects > .page-hero-support-picture {
    order: 3 !important;
    width: min(620px, calc(100% - 24px)) !important;
    margin-inline: auto !important;
    aspect-ratio: 4 / 3;
  }
}

/* Match the homepage copy and slide stage to one desktop grid row. */
@media (min-width: 901px) {
  html:not(#_ds) body:not(#_ds) main > .hero:has(> .hero-copy + .hero-carousel) {
    align-items: stretch !important;
  }
  html:not(#_ds) body:not(#_ds) main > .hero > .hero-carousel {
    position: relative !important;
    align-self: stretch !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }
  html:not(#_ds) body:not(#_ds) main > .hero > .hero-carousel::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
  }
  html:not(#_ds) body:not(#_ds) main > .hero > .hero-carousel > .hero-carousel-stage {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
  html:not(#_ds) body:not(#_ds) main > .hero > .hero-carousel .hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: none !important;
  }
}

/* Vertical rhythm for page bands and readable line lengths in single-column copy. */
html:not(#_ds) body:not(#_ds) main section.section {
  padding-block: clamp(16px, 2vw, 28px) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.intl-section, .intl-region, .engineering-callout, .product-system-scope, .product-download-center, .quality-band, .rfq-readiness-section, .product-system-callout, .skid-section) {
  padding-block: clamp(14px, 1.8vw, 24px) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.section, .privacy-layout, .engineering-note-header, .engineering-note-body, .flow-design-body, .intl-article-body, .knowledge-body, .intl-section, .intl-region, .product-system-scope, .product-download-center, .pks-next, .pks-section, .pks-heading, .skid-section, .skid-hero) p:not(.eyebrow),
html:not(#_ds) body:not(#_ds) main .contact-section > .shell > p {
  max-inline-size: min(100%, 76ch) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.engineering-note-body, .flow-design-body, .privacy-layout) {
  max-inline-size: min(100%, 58rem) !important;
}
html:not(#_ds) body:not(#_ds):not([data-knowledge-cover]) main :is(.intl-article-header, .engineering-note-header, .flow-design-header) {
  padding-block: clamp(20px, 2vw, 30px) !important;
}
html:not(#_ds) body:not(#_ds):not([data-knowledge-cover]) main .intl-meta {
  padding-block: 9px 0 !important;
  row-gap: 4px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.engineering-note-header, .flow-design-header) > .shell {
  padding-block: 12px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.product-detail-hero, .intl-hero, .skid-hero) {
  padding-block: clamp(23px, 2.6vw, 38px) !important;
}
html:not(#_ds) body:not(#_ds) main .product-detail-copy .breadcrumb { margin-bottom: 15px !important; }
html:not(#_ds) body:not(#_ds) main .product-detail-copy :is(.product-detail-fuel, .product-quick-facts) { margin-block: 12px !important; }
html:not(#_ds) body:not(#_ds) main .product-detail-fuel { padding-block: 10px !important; }
html:not(#_ds) body:not(#_ds) main .product-detail-copy h1 {
  font-size: clamp(28px, 3.05vw, 44px) !important;
  margin-block-end: 12px !important;
}
html:not(#_ds) body:not(#_ds) main .thank-you-card { padding-block: clamp(22px, 3.4vw, 48px) !important; }
html:not(#_ds) body:not(#_ds) main.privacy-main { padding-block: clamp(16px, 2vw, 28px) !important; }
html:not(#_ds) body:not(#_ds) main .privacy-layout h1 { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  html:not(#_ds) body:not(#_ds) main .product-detail-copy h1 { font-size: clamp(24px, 5.8vw, 28px) !important; }
  html:not(#_ds) body:not(#_ds) main .section-heading.split-heading { row-gap: 12px !important; }
  html:not(#_ds) body:not(#_ds) main .product-detail-copy .product-quick-facts {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 6px !important;
  }
  html:not(#_ds) body:not(#_ds) main .product-detail-copy .product-quick-facts > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 2px !important;
    padding: 7px 9px !important;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  html:not(#_ds) body:not(#_ds) main .product-detail-copy .product-quick-facts :is(span,strong) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    white-space: normal !important;
    text-align: start !important;
  }
  html:not(#_ds) body:not(#_ds) main .product-detail-grid { row-gap: 16px !important; }
}

/* Shorten the space between consecutive paragraphs without changing their type size. */
html:not(#_ds) body:not(#_ds) main :is(.engineering-note-body,.flow-design-body,.privacy-layout,.product-overview-section,.product-detail-copy,.intl-section,.skid-section,.prose) p + p {
  margin-block-start: .45em !important;
}
html:not(#_ds) body:not(#_ds) main :is(.engineering-note-body,.flow-design-body,.privacy-layout,.prose) p:has(+ p) {
  margin-block-end: .45em !important;
}
html:not(#_ds)[lang="th"] body:not(#_ds) main :is(p,li):not(.eyebrow):not(.knowledge-kicker):not(.breadcrumb):not(.breadcrumbs):not(.hero-slide-caption *):not(.hero-slide-caption) {
  line-height: 1.65 !important;
}

/* Keep topic navigation compact and give article photographs the larger share of the page. */
html:not(#_ds) body:not(#_ds) main .news-archive .news-category-strip {
  align-items: center;
  padding-block: 4px !important;
  margin-block: 0 6px !important;
  gap: 3px 8px !important;
}
html:not(#_ds) body:not(#_ds) main .news-archive .news-category-strip > a {
  display: inline-flex;
  align-items: center;
  min-height: 32px !important;
  padding: 4px 10px !important;
  line-height: 1.2 !important;
}
html:not(#_ds) body:not(#_ds) main .news-archive .news-category-strip > a::after {
  bottom: 0;
}
@media (max-width: 620px) {
  html:not(#_ds) body:not(#_ds) main .news-archive .news-category-strip > a {
    min-height: 36px !important;
    padding: 4px 6px !important;
  }
}

/* Lists and supporting content follow their text height; lead photography keeps its own sizing. */
html:not(#_ds) body:not(#_ds) main :is(.section.projects-archive-section,.section.product-listing-section,.section.original-resource-feature,.section.home-news-section,.section.product-overview-section,.section.product-buyer-guide,.section.buyer-decision-section,.section.solution-process,.section.industries-page-section,.section.archive-gallery-section,.product-download-center) {
  padding-block: clamp(13px,1.3vw,19px) !important;
}
html:not(#_ds) body:not(#_ds) main .thank-you-card { padding-block: clamp(18px,2vw,28px) !important; }
html:not(#_ds) body:not(#_ds) main .news-list-stack > .news-list-item {
  grid-template-columns: clamp(120px,19vw,226px) minmax(0,1fr) !important;
  align-items: center !important; gap: 12px !important; padding-block: 8px !important; min-height: 0 !important;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-image {
  display: block !important; align-self: center; min-height: 0 !important; height: auto !important; aspect-ratio: 1.65; width: 100%;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-image img { display: block; width: 100%; height: 100%; }
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content {
  display: grid; align-content: start; gap: 3px; padding: 2px 9px !important; min-height: 0 !important;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content > :is(p,h2,a) { margin: 0 !important; }
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content h2 {
  font-size: clamp(16px,1.4vw,20px) !important; line-height: 1.22 !important;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content > p:not(.news-list-meta) {
  font-size: 15px !important; line-height: 1.4 !important; max-inline-size: 82ch !important;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-meta {
  display: flex; flex-wrap: wrap; gap: 2px 10px !important; align-items: baseline; line-height: 1.25 !important;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack :is(.news-list-meta,.news-list-meta span,.news-list-meta time,.news-list-content>.text-link) { font-size: 12px !important; line-height: 1.35 !important; }
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content > .text-link { justify-self:start; align-self:center; padding-block: 3px; }
@media (min-width: 960px) {
  html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content:only-child {
    grid-template-columns: minmax(0,1fr) auto;
  }
  html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content:only-child > :is(p,h2) { grid-column: 1; }
  html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content:only-child > a { grid-area: 1 / 2 / 4 / 3; }
}
@media (max-width: 600px) {
  html:not(#_ds) body:not(#_ds) main .news-list-stack > .news-list-item { grid-template-columns: clamp(79px,25vw,126px) minmax(0,1fr) !important; gap: 6px !important; }
  html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content:not(:only-child) { padding-inline: 2px !important; }
}
html:not(#_ds) body:not(#_ds) main .product-card .product-card-body { min-height: 0 !important; padding-block: 12px !important; }
html:not(#_ds) body:not(#_ds) main .product-card:has(.product-card-image > span) .product-card-body { padding-block-start: 38px !important; }
html:not(#_ds) body:not(#_ds) main :is(.project-card,.home-news-card)>div { padding-block: 10px !important; }
html:not(#_ds) body:not(#_ds) main .home-news-card div>span { min-height: 0 !important; margin-block: 5px 8px !important; }
html:not(#_ds) body:not(#_ds) main :is(.download-card,.knowledge-aside-card,.buyer-guide-links>article,.industry-card-grid>article,.product-info-grid>article) {
  min-height: 0 !important; padding-block: 11px !important;
}
html:not(#_ds) body:not(#_ds) main .download-card strong { margin-block-start: 7px !important; }
html:not(#_ds) body:not(#_ds) main .knowledge-aside-card { margin-block-end: 12px !important; }
html:not(#_ds) body:not(#_ds) main .knowledge-aside-card p:not(.eyebrow) { margin-block-start: 6px !important; }

/* Use the original caption metrics wherever text participates in the photograph's height. */
.page-hero, .knowledge-article-header, body[data-knowledge-cover] .intl-article-header { --jt-cover-text-leading: 1.68; }
html[lang="ar"] :is(.page-hero,.knowledge-article-header), html[lang="ar"] body[data-knowledge-cover] .intl-article-header { --jt-cover-text-leading: 1.85; }
@media (max-width: 760px) {
  html:not(#_ds) body:not(#_ds) main figure.shell.knowledge-hero-figure { margin-inline: auto !important; }
}

/* Directories have their own reading rhythm. Keep these selectors below the lead photograph. */
html:not(#_ds) body:not(#_ds) main .projects-archive-section .project-grid {
  display: grid !important;
  grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  gap: 0 22px !important;
  align-items: stretch;
}
html:not(#_ds) body:not(#_ds) main .projects-archive-section .project-grid > .project-card {
  display: grid !important;
  grid-template-columns: clamp(106px,9vw,135px) minmax(0,1fr) !important;
  grid-template-rows: auto !important;
  grid-column: auto !important;
  align-items: center !important;
  align-content: center !important;
  min-width: 0; min-height: 0 !important; height: auto !important;
  column-gap: 12px !important; row-gap: 0 !important;
  margin: 0 !important; padding: 7px 0 !important;
  border: 0 !important; border-block-end: 1px solid #ccd3d8 !important;
  border-radius: 0 !important; box-shadow: none !important; background: transparent !important;
}
html:not(#_ds) body:not(#_ds) main .project-grid .project-card:has(>.project-brief) > :is(picture,img,[class^="project-card-media"]) {
  display: block !important; width: 100% !important; height: 78px !important;
  min-height: 0 !important; aspect-ratio: auto !important;
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  border-radius: 4px !important; overflow: hidden;
  grid-area: 1 / 1 !important; align-self: center; object-fit: cover !important;
}
html:not(#_ds) body:not(#_ds) main .project-grid .project-card:has(>.project-brief) > picture img,
html:not(#_ds) body:not(#_ds) main .project-grid .project-card:has(>.project-brief) > [class^="project-card-media"] img {
  display: block !important; width: 100% !important; height: 100% !important;
  min-height: 0 !important; object-fit: cover !important; border-radius: 0 !important;
}
html:not(#_ds) body:not(#_ds) main .project-grid .project-card:has(>.project-brief) > [class^="project-card-media"] {
  display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr);
  grid-template-columns: none !important; grid-template-rows: 100% !important; gap: 2px !important;
}
html:not(#_ds) body:not(#_ds) main .project-grid .project-card > .project-brief {
  display: block !important; grid-area: 1 / 2 !important;
  min-width: 0; min-height: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important;
}
html:not(#_ds) body:not(#_ds) main .project-grid .project-brief h3,
html:not(#_ds) body:not(#_ds) main .project-grid .project-brief h3 a {
  margin: 0 !important; font-size: clamp(15px,1.3vw,18px) !important; font-weight: 680 !important;
  line-height: 1.2 !important; text-transform: none !important; letter-spacing: -.015em !important;
}
html:not(#_ds) body:not(#_ds) main .project-grid .project-brief h3 a {
  text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: .17em;
}
html:not(#_ds) body:not(#_ds) main .project-grid .project-brief .project-card-summary {
  margin: 4px 0 0 !important; font-size: 14px !important; line-height: 1.32 !important;
  color: #475665 !important; -webkit-text-fill-color: #475665 !important;
}
html:not(#_ds) body:not(#_ds) main .project-grid .project-brief .project-model-link {
  display: inline-block; margin: 3px 0 0; padding: 0; min-height: 0;
  font-size: 13px !important; line-height: 1.25 !important; font-weight: 600;
  color: #704630 !important; -webkit-text-fill-color: #704630 !important;
}
@media (max-width: 880px) {
  html:not(#_ds) body:not(#_ds) main .projects-archive-section .project-grid {grid-template-columns: minmax(0,1fr) !important}
}
@media (max-width: 600px) {
  html:not(#_ds) body:not(#_ds) main .projects-archive-section .project-grid > .project-card {
    grid-template-columns: clamp(66px,19vw,92px) minmax(0,1fr) !important; column-gap: 9px !important;
  }
  html:not(#_ds) body:not(#_ds) main .project-grid .project-card:has(>.project-brief) > :is(picture,img,[class^="project-card-media"]) { height: 62px !important; }
  html:not(#_ds) body:not(#_ds) main .project-grid .project-brief .project-card-summary {font-size: 13px !important}
}

html:not(#_ds) body:not(#_ds) main .news-list-stack > .news-list-item {
  padding-block: 6px !important; border-radius: 0 !important; box-shadow: none !important;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content {
  display: block !important; min-width: 0; padding-block: 0 !important;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content h2,
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content h2 a {
  font-size: clamp(17px,1.35vw,20px) !important; line-height: 1.2 !important; font-weight: 710 !important;
  color: #182e40 !important; -webkit-text-fill-color: #182e40 !important;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content h2 a:is(:hover,:focus-visible) { text-decoration: underline !important; }
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content > p:not(.news-list-meta) {
  margin: 3px 0 0 !important; font-size: 14px !important; font-weight: 400 !important;
  line-height: 1.38 !important; color: #4a5967 !important; -webkit-text-fill-color: #4a5967 !important;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content .news-list-meta {
  margin-block: 0 3px !important; line-height: 1.2 !important;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-content .news-list-meta :is(span,time) {
  font-size: 11.5px !important; font-weight: 550 !important; letter-spacing: .035em !important;
  line-height: 1.24 !important; text-transform: none !important;
  color: #635348 !important; -webkit-text-fill-color: #635348 !important;
}
/* In the English archive each of these repeated links has exactly the same target as the linked title. */
html[lang="en"] body main #all-articles .news-list-content:has(> h2 a) > .text-link {display: none !important}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-image {
  max-height: 124px !important; aspect-ratio: auto; height: clamp(84px,calc(60px + 7vw),124px) !important; overflow: hidden;
}
html:not(#_ds) body:not(#_ds) main .news-list-stack .news-list-image img {object-fit: cover !important}

html:not(#_ds) body:not(#_ds) main .solution-stage-grid {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)) !important; gap: 0 !important;
  border-block: 1px solid #cbd3d8 !important;
}
html:not(#_ds) body:not(#_ds) main .solution-stage-grid > li {
  display: grid !important; grid-template-columns: auto minmax(0,1fr) !important; grid-auto-rows: min-content;
  align-items: baseline; align-content: start; gap: 3px 7px !important;
  padding: 9px 10px !important; margin: 0 !important;
  border: 0 !important; border-inline-start: 1px solid #cbd3d8 !important;
  border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
}
html:not(#_ds) body:not(#_ds) main .solution-stage-grid > li > span {
  grid-area: 1 / 1 !important; position: static !important; display: inline !important;
  padding: 0 !important; width: auto !important; height: auto !important; background: none !important;
  line-height: 1.2 !important; font-size: 13px !important; font-variant-numeric: tabular-nums; font-weight: 650;
}
html:not(#_ds) body:not(#_ds) main .solution-stage-grid > li > h3 {
  grid-area: 1 / 2 !important; font-size: 16px !important; line-height: 1.25 !important; margin: 0 !important;
}
html:not(#_ds) body:not(#_ds) main .solution-stage-grid > li > p {
  grid-area: 2 / 1 / 3 / -1 !important; font-size: 14px !important; line-height: 1.4 !important; margin: 0 !important;
}
@media (max-width: 1000px) {
  html:not(#_ds) body:not(#_ds) main .solution-stage-grid {grid-template-columns: 1fr !important}
  html:not(#_ds) body:not(#_ds) main .solution-stage-grid > li {
    border-inline-start: 0 !important; border-block-end: 1px solid #d9dee1 !important;
    padding: 7px 2px !important; gap: 2px 9px !important;
  }
  html:not(#_ds) body:not(#_ds) main .solution-stage-grid > li > p {grid-column: 2 !important}
}

/* Supporting lists share tight spacing between a label and its explanation. */
html:not(#_ds) body:not(#_ds) main :is(.scope-grid,.unit-card-grid,.intl-factor-grid,.intl-knowledge-grid,.about-values-grid,.industry-card-grid,.product-info-grid,.buyer-guide-links,.news-topic-library,.knowledge-summary-grid) {
  row-gap: 8px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.scope-grid,.unit-card-grid,.intl-factor-grid,.intl-knowledge-grid,.about-values-grid,.industry-card-grid,.product-info-grid,.buyer-guide-links,.news-topic-library,.knowledge-summary-grid) > :is(article,div):has(> :is(h2,h3,h4)) {
  min-height: 0 !important; padding-block: 9px !important; align-content: start !important; row-gap: 4px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.scope-grid,.unit-card-grid,.intl-factor-grid,.intl-knowledge-grid,.about-values-grid,.industry-card-grid,.manufacturing-page-grid,.product-info-grid,.buyer-guide-links,.news-topic-library,.knowledge-summary-grid) > :is(article,div) > :is(h2,h3,h4):has(+p) {
  margin-block: 0 4px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.scope-grid,.unit-card-grid,.intl-factor-grid,.intl-knowledge-grid,.about-values-grid,.industry-card-grid,.manufacturing-page-grid,.product-info-grid,.buyer-guide-links,.news-topic-library,.knowledge-summary-grid) > :is(article,div) > :is(h2,h3,h4) + p {
  margin-block: 0 !important; line-height: 1.45 !important;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body,.engineering-note-body,.intl-article-body,.privacy-layout) > section > :is(h2,h3,h4):has(+p) {margin-block-end: .3em !important}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body,.engineering-note-body,.intl-article-body,.privacy-layout) > section > :is(h2,h3,h4) + p {margin-block-start: 0 !important}
html:not(#_ds) body:not(#_ds) .family-menu-panel > a { padding-block: 7px !important; }

html:not(#_ds) body:not(#_ds) main .projects-archive-section .projects-archive-heading {
  margin-block: 12px 7px !important; padding-block: 0 !important; row-gap: 4px !important;
}
html:not(#_ds) body:not(#_ds) main .projects-archive-section .projects-archive-heading p,
html:not(#_ds) body:not(#_ds) main .projects-archive-section .projects-archive-heading h2 {margin-block: 0 3px !important}
html:not(#_ds) body:not(#_ds) main .projects-archive-section .project-card .project-brief {border: none !important}
html:not(#_ds) body:not(#_ds) main .system-scope-copy ul {row-gap: 3px !important; margin-block: 8px 0 !important}
html:not(#_ds) body:not(#_ds) main .system-scope-copy li {min-height: 0 !important; padding-block: 4px !important; margin-block: 0 !important}
html:not(#_ds) body:not(#_ds) main .news-filter-status {font-size: 13px !important; line-height: 1.35 !important; margin-block: 5px 8px !important}
@media (min-width:1100px) {
  html:not(#_ds) body:not(#_ds) main .projects-archive-section .project-grid:not(.project-grid-additional) {grid-template-columns: repeat(3,minmax(0,1fr)) !important}
  html:not(#_ds) body:not(#_ds) main .projects-archive-section .project-grid:not(.project-grid-additional) > .project-card {grid-template-columns: 100px minmax(0,1fr) !important}
}
@media (max-width: 760px) {
  html:not(#_ds) body:not(#_ds) main .section.projects-archive-section .projects-archive-heading > p {padding-block: 2px !important; border: 0 !important}
}

/* Reading rhythm below the lead photograph. Preserve extra leading for tall scripts. */
main :where(.section, .intl-section, .intl-region, .systems-section, .system-scope-section,
  .contact-section, .rfq-readiness-section, .product-system-scope, .product-download-center,
  .engineering-callout, .quality-band, .engineering-note-body, .flow-design-body,
  .knowledge-body, .intl-article-body, .privacy-layout, .pks-section, .skid-section) {
  --jt-copy-leading: 1.44;
}
main :where(.knowledge-body, .engineering-note-body, .flow-design-body, .intl-article-body, .pks-section) {
  --jt-copy-leading: 1.48;
}

/* These bands and sidebars have their own spacing outside the usual section template. */
html:not(#_ds) body:not(#_ds) main :is(.contact-section, .systems-section, .system-scope-section) {
  padding-block: clamp(16px, 2vw, 28px) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-aside > div:not(.knowledge-aside-card),
  .intl-article-cta, .article-enquiry, .privacy-layout > section, .news-archive-cta,
  .contact-page-form, .about-copy-inner) {
  padding-block: clamp(12px, 1.25vw, 18px) !important;
}
html:not(#_ds) body:not(#_ds) main :is(.contact-copy, .systems-copy, .about-footprint-intro,
  .product-faq-intro, .project-video-copy, .news-archive-cta, .about-copy-inner, .intl-heading,
  .knowledge-aside > div, .intl-article-cta, .article-enquiry, .contact-page-form) > :is(h2,h3):has(+ p) {
  margin-block-end: 6px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.contact-copy, .systems-copy, .about-footprint-intro,
  .product-faq-intro, .project-video-copy, .news-archive-cta, .about-copy-inner, .intl-heading,
  .knowledge-aside > div, .intl-article-cta, .article-enquiry, .contact-page-form) > :is(h2,h3) + p {
  margin-block-start: 0 !important;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body, .intl-article-body, .engineering-note-body, .flow-design-body) > section + section {
  margin-block-start: 1.25rem !important;
}

html:not(#_ds) body:not(#_ds) main :is(.manufacturing-page, .manufacturing-section,
  .applications-section, .technical-parameters-section, .industries-page-section, .product-gallery-section)
  > .shell > .section-heading,
html:not(#_ds) body:not(#_ds) main .news-archive-heading {
  margin-block-end: clamp(12px, 1.35vw, 19px) !important;
}
html:not(#_ds) body:not(#_ds) main .engineering-note-body .technical-figure {
  margin-block: 14px !important;
}
html:not(#_ds) body:not(#_ds) main .manufacturing-page-grid {
  row-gap: 16px !important;
}
html:not(#_ds) body:not(#_ds) main .product-overview + .product-info-grid {
  margin-block-start: 14px !important;
}
html:not(#_ds) body:not(#_ds) main .product-overview-section .seo-intent-links {
  margin-block-start: 12px !important;
  row-gap: 6px !important;
}
html:not(#_ds) body:not(#_ds) main .contact-grid {
  row-gap: 18px !important;
}
html:not(#_ds) body:not(#_ds) main .contact-direct {
  margin-block-start: 16px !important;
}
html:not(#_ds) body:not(#_ds) main .contact-direct > :is(div,a) {
  padding-block: 10px !important;
}
html:not(#_ds) body:not(#_ds) main .inquiry-form .form-grid {
  row-gap: 10px !important;
}
html:not(#_ds) body:not(#_ds) main .inquiry-form label > span:first-child {
  margin-block-end: 4px !important;
}
@media (max-width: 760px) {
  html:not(#_ds) body:not(#_ds) main .section-heading.split-heading:not(.projects-archive-heading) {
    row-gap: 6px !important;
  }
  html:not(#_ds) body:not(#_ds) main .section-heading.split-heading:not(.projects-archive-heading) > p {
    padding-block-start: 6px !important;
    margin-block: 0 !important;
  }
  html:not(#_ds) body:not(#_ds) main .product-overview-section .product-overview {
    row-gap: 9px !important;
  }
  html:not(#_ds) body:not(#_ds) main .product-overview-section .product-overview > div > h2:last-child,
  html:not(#_ds) body:not(#_ds) main .section-heading.split-heading > div > h2:last-child {
    margin-block-end: 0 !important;
  }
}

/* Footer directories have two short link lists and two full-width information blocks. */
html body .site-footer { padding-block-start: clamp(20px, 2.1vw, 30px) !important; }
html body .site-footer .footer-grid {
  align-items: start;
  row-gap: 20px !important;
  padding-block-end: 20px !important;
}
.site-footer .footer-grid > div { min-inline-size: 0; }
html body .footer-grid .footer-brand p { margin-block: 10px 0 !important; line-height: 1.48; }
html body .footer-grid h2 { margin-block: 0 7px !important; }
html body .footer-grid li, html body .footer-grid li + li { margin-block: 0 !important; }
html body .footer-grid li a {
  display: block;
  box-sizing: border-box;
  min-block-size: 28px;
  padding-block: 4px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
html body .site-footer .footer-bottom {
  min-height: 0 !important;
  padding-block: 12px !important;
  row-gap: 4px;
}
html body .site-footer .footer-legal-links { margin-block-start: 0 !important; padding-block-start: 8px !important; }
@media (max-width: 700px) {
  html body .site-footer .footer-grid {
    grid-template-columns: minmax(0,1.15fr) minmax(0,1fr) !important;
    column-gap: 14px !important;
  }
  .site-footer .footer-grid > :is(.footer-brand,.footer-contact) { grid-column: 1 / -1; }
  html body .site-footer .footer-contact p { margin-block: 0 6px !important; }
}

/* Group the kicker, heading and first lines of each article section together. */
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body, .intl-article-body, .engineering-note-body) .eyebrow:has(+ h2),
html:not(#_ds) body:not(#_ds) main .eeat-review-box .eeat-badge { margin-block: 0 4px !important; }
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body, .intl-article-body, .engineering-note-body) .eyebrow + h2,
html:not(#_ds) body:not(#_ds) main .eeat-review-box .eeat-badge + h3 { margin-block: 0 6px !important; }
html:not(#_ds) body:not(#_ds) main article.knowledge-article > .knowledge-layout,
html:not(#_ds) body:not(#_ds) main article.intl-article > .intl-article-body {
  padding-block: clamp(14px,1.4vw,20px) clamp(20px,2vw,28px) !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-body > section {
  margin-block-end: 0 !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-body > section + section {
  margin-block-start: 14px !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-body .knowledge-summary-grid,
html:not(#_ds) body:not(#_ds) main .knowledge-body .knowledge-summary-grid h3 {
  margin-block: 6px 0 !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-summary-grid li { margin-block: 3px !important; }
html:not(#_ds) body:not(#_ds) main .knowledge-body > .knowledge-toc {
  margin-block: 12px !important;
  padding-block: 12px !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-body > .knowledge-toc + section { margin-block-start: 12px !important; }
html:not(#_ds) body:not(#_ds) main .knowledge-layout > .knowledge-aside {
  margin-block-start: 18px !important;
  padding-block-start: 12px !important;
  gap: 12px !important;
  align-items: start;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-body,.intl-article-body) :is(figure.knowledge-figure,figure.intl-diagram),
html:not(#_ds) body:not(#_ds) main .eeat-review-box { margin-block: 14px !important; }
html:not(#_ds) body:not(#_ds) main :is(.knowledge-faq,.intl-faq,.product-faq-list) > details {
  padding-block: 2px !important;
  margin-block: 5px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-faq,.intl-faq,.product-faq-list) > details > summary {
  box-sizing: border-box;
  min-block-size: 44px;
  padding-block: 10px !important;
}
html:not(#_ds) body:not(#_ds) main :is(.knowledge-faq,.intl-faq,.product-faq-list) > details[open] > p {
  margin-block: 0 8px !important;
}
html:not(#_ds) body:not(#_ds) main .intl-section .intl-heading { margin-block-end: 16px !important; }
html:not(#_ds) body:not(#_ds) main :is(.intl-cta,.intl-language-network) { padding-block: clamp(16px,2vw,26px) !important; }

/* Keep each product name with its fuel and its scope introduction with the list below. */
html:not(#_ds) body:not(#_ds) main .product-card-body > h3:has(+ .product-fuel) { margin-block-end: 0 !important; }
html:not(#_ds) body:not(#_ds) main .product-card-body > h3 + .product-fuel { margin-block-start: 5px !important; }
html:not(#_ds) body:not(#_ds) main .product-system-scope .scope-intro { margin-block: 5px 10px !important; }
html:not(#_ds) body:not(#_ds) main .product-system-scope .scope-grid { margin-block-start: 10px !important; }
html:not(#_ds) body:not(#_ds) main .prose > p + .seo-intent-links { margin-block-start: 11px !important; }
html:not(#_ds) body:not(#_ds) main .thank-you-actions { margin-block-start: 16px !important; }
@media (max-width: 760px) {
  html:not(#_ds) body:not(#_ds) main .product-grid { row-gap: 14px !important; }
  html:not(#_ds) body:not(#_ds) main .product-overview > div:has(+ p) > h2:last-child { margin-block-end: 0 !important; }
  html:not(#_ds) body:not(#_ds) main .product-overview:has(> div + p) { row-gap: 8px !important; }
  html:not(#_ds) body:not(#_ds) main .product-overview > div + p { margin-block-start: 0 !important; }
}

/* Home directories and system scope: let the text determine the row height. */
html body[data-structure-review] main .applications-grid {
  row-gap: 10px !important;
}
html body[data-structure-review] main .applications-grid ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px !important;
  align-content: start;
}
html body[data-structure-review] main .applications-grid ul > li {
  padding: 6px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--anthropic-line, #d4d2cc) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 8px;
  overflow-wrap: anywhere;
  font-size: 16px !important;
  line-height: 1.34 !important;
}
html body[data-structure-review] main .applications-grid ul > li::before {
  position: static;
  align-self: start;
  width: 5px;
  height: 5px;
  margin-block-start: .49em;
}
html body[data-structure-review] main .international-access-grid {
  gap: 1px !important;
  margin-block-start: 10px !important;
}
html body[data-structure-review] main .international-access-grid > a {
  min-height: 0 !important;
  justify-content: flex-start;
  gap: 2px;
  padding: 7px 12px !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body[data-structure-review] main .international-access-grid > a strong {
  line-height: 1.22 !important;
}
html body[data-structure-review] main .international-access-grid > a span {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.34 !important;
}
html body[data-structure-review] main .international-access-grid > a:hover {
  transform: none;
}
html body[data-structure-review] main .international-access-grid > a:is(:hover,:focus-visible) strong {
  text-decoration: underline;
  text-underline-offset: .16em;
}
html body[data-structure-review] main .systems-section .systems-copy > .systems-lede {
  margin-block-end: 10px !important;
}
html body[data-structure-review] main .systems-section .systems-list {
  margin-block: 0 10px !important;
}
html body[data-structure-review] main .systems-section .systems-list > li {
  grid-template-columns: 24px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start;
  padding-block: 5px !important;
}
html body[data-structure-review] main .systems-section .systems-list > li > span {
  width: 24px !important;
  height: 24px !important;
  font-size: 12px !important;
}
html:not(#_ds) body[data-structure-review] main .systems-section .systems-list li strong {
  margin: 0 !important;
  line-height: 1.24 !important;
}
html:not(#_ds) body[data-structure-review] main .systems-section .systems-list li p {
  margin: 1px 0 0 !important;
  font-size: 15px !important;
  line-height: 1.34 !important;
}
html[lang="ar"] body[data-structure-review] main .applications-grid ul > li,
html[lang="ar"]:not(#_ds) body[data-structure-review] main .systems-section .systems-list li :is(strong,p) {
  line-height: 1.48 !important;
}

@media (max-width: 360px) {
  html:is([lang="fr"], [lang="ru"]) body[data-structure-review] main .applications-grid ul {
    grid-template-columns: minmax(0, 1fr);
  }
}



/* Keep text legible on the dark panel at the end of Knowledge articles. */
html:not(#_ds) body:not(#_ds) main .knowledge-conclusion.knowledge-conclusion {
  background-color: #263a46 !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-conclusion.knowledge-conclusion h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-conclusion.knowledge-conclusion p {
  color: #e5edf1 !important;
  -webkit-text-fill-color: #e5edf1 !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-conclusion.knowledge-conclusion .eyebrow {
  color: #ffb899 !important;
  -webkit-text-fill-color: #ffb899 !important;
}
html:not(#_ds) body:not(#_ds) main .knowledge-conclusion.knowledge-conclusion a:not(.button) {
  color: #bfe9ff !important;
  -webkit-text-fill-color: #bfe9ff !important;
  text-decoration: underline;
}
html body .category-intro[id$="-models"] {
  scroll-margin-block-start: 7rem;
}
