/* Finished coating products use the green palette from the raw-material detail pages. */
:is(.product-page, .n100-industrial) {
  --technical-section-fill: #f3f8f4;
  --technical-cell-fill: #f9fcfa;
  --technical-cell-alt: #ebf5ee;
  --technical-border: #d1e3d7;
  --technical-label: #2c6042;
  --application-card-fill: #3b7f72;
}

.product-page .specification-section,
.n100-industrial #performance {
  background: var(--technical-section-fill);
  box-shadow: 0 0 0 100vmax var(--technical-section-fill);
  clip-path: inset(0 -100vmax);
}

.product-page .specification-section :is(.eyebrow, dt),
.n100-industrial #performance :is(.n-eyebrow, .n-core-grid > article > span) {
  color: var(--technical-label);
}

.product-page .specification-section :is(.specification-grid, .specification-grid > div),
.n100-industrial #performance .n-core-grid > article {
  border-color: var(--technical-border);
}

.product-page .specification-section .specification-grid > div,
.n100-industrial #performance .n-core-grid > article {
  background: var(--technical-cell-fill);
}

.product-page .specification-section .specification-grid > div:nth-child(even),
.n100-industrial #performance .n-core-grid > article:nth-child(even) {
  background: var(--technical-cell-alt);
}

.product-page .system-section .system-steps > li,
.n100-industrial #application .n-process > li {
  background: var(--application-card-fill);
  border-color: var(--application-card-fill);
}

.product-page .system-section .system-steps > li :is(span, h3, p, a),
.n100-industrial #application .n-process > li :is(b, h3, p, a) {
  color: #fff;
}

/* A two-column table needs a different alternating pattern to keep adjacent cells distinct. */
@media (min-width: 581px) and (max-width: 900px) {
  .product-page .specification-section .specification-grid > div:nth-child(4n + 2) {
    background: var(--technical-cell-alt);
  }

  .product-page .specification-section .specification-grid > div:nth-child(4n + 3) {
    background: var(--technical-cell-alt);
  }

  .product-page .specification-section .specification-grid > div:nth-child(4n + 4) {
    background: var(--technical-cell-fill);
  }
}

/* Keep multilingual hero labels readable as the two footer columns wrap. */
body.product-page:not(.n100-page) .product-hero-visual:has(> .product-hero-footer) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: stretch;
}

body.product-page:not(.n100-page) .product-hero-visual:has(> .product-hero-footer) > img {
  position: relative;
  height: 100% !important;
  min-height: 0;
  margin: 0;
}

body.product-page:is(.n200-page, .n300-page) .product-hero-visual:has(> .product-hero-footer) {
  grid-template-rows: auto auto;
}

body.product-page:is(.n200-page, .n300-page) .product-hero-visual:has(> .product-hero-footer) > img {
  height: auto !important;
}

body.product-page:not(.n100-page) .product-hero-visual > .product-hero-footer {
  display: grid;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  align-items: stretch;
  white-space: normal;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  position: relative;
}

body.product-page:not(.n100-page) .product-hero-footer > :is(.visual-badge, .product-hero-caption) {
  position: static;
  width: auto !important;
  height: auto !important;
  min-height: 48px;
  padding: 10px 14px !important;
  white-space: normal;
}

.product-hero-caption {
  display: flex;
  align-items: center;
}

body.product-page:not(.n100-page) .product-hero-footer :is(.visual-badge > span, .product-hero-caption),
body.n100-industrial .n-hero .n-model span {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  white-space: normal;
}

body.product-page:not(.n100-page) .product-hero-footer .visual-badge > span {
  display: block;
}

@media (max-width: 580px) {
  body.product-page:not(.n100-page) .product-hero-footer > .visual-badge {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body.product-page:not(.n100-page) .product-hero-footer > :is(.visual-badge, .product-hero-caption) {
    padding-inline: 12px !important;
  }
}
