/* Shared product title scale; keep each page's font, weight and color. */
.uhmwpe-reference-page .product-detail-hero .product-detail-copy h1 {
  font-size:48px;
  line-height:1.1;
}

@media (max-width:680px) {
  .uhmwpe-reference-page .product-detail-hero .product-detail-copy h1 {
    font-size:36px;
  }
}

/* Match the five-card CNC layout to Wear Liners instead of stretching its final card. */
.custom-parts-page #applications .custom-application-grid-five > .uhmw-industry-application-card:last-child {
  grid-column:auto;
}

/* Keep the three construction scenarios together on desktop and tablet. */
@media (min-width:681px) {
  .anchor-plate-reference-page #applications .uhmw-industry-application-card:last-child {
    grid-column:span 2;
  }

  .anchor-plate-reference-page #applications .uhmw-industry-application-card:last-child .industry-scenario-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
  }
}

/* Distinguish supplementary industry links from each card's primary heading link. */
.uhmwpe-reference-page #applications .product-related-industries {
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid var(--line);
}

.uhmwpe-reference-page #applications .product-related-industries-label {
  margin:0 0 8px;
  font-size:.75rem;
  line-height:1.5;
  font-weight:650;
  color:var(--slate);
}

.uhmwpe-reference-page #applications .product-related-industries .liner-format-links {
  margin-top:0;
  gap:8px 24px;
}

/* Feature spacing and responsive row layout, with the approved UHMWPE column exception. */
.uhmwpe-reference-page #features .product-feature-grid-wrap {
  display:block;
}

.uhmwpe-reference-page #features .product-feature-grid,
.uhmwpe-reference-page #features .product-feature-columns {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:none;
  grid-auto-flow:row;
  gap:24px 40px;
  align-items:start;
  align-content:start;
}

.uhmwpe-reference-page #features .product-feature-columns > .uhmw-feature-list {
  gap:24px;
  align-self:start;
  align-content:start;
}

.uhmwpe-reference-page #features .product-feature-item {
  padding:0 0 0 24px;
}

.uhmwpe-reference-page #features .product-feature-item::before {
  top:8px;
}

.uhmwpe-reference-page #features .product-feature-item > strong {
  margin-bottom:8px;
}

@media (max-width:980px) {
  .uhmwpe-reference-page #features .product-feature-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:680px) {
  .uhmwpe-reference-page #features .product-feature-grid,
  .uhmwpe-reference-page #features .product-feature-columns {
    grid-template-columns:1fr;
  }
}

/* Compact, left-aligned color cards; retain existing colors and component groups. */
.uhmwpe-reference-page :is(#colors,#materials) :is(.uhmw-colors,.cutting-colors,.shooting-colors,.dasher-colors) {
  display:grid;
  width:100%;
  min-width:0;
  max-width:none;
  grid-template-columns:repeat(auto-fill,minmax(0,120px));
  gap:24px;
  justify-content:start;
  justify-items:start;
  align-items:start;
}

.uhmwpe-reference-page #colors .dasher-colors {
  grid-template-columns:repeat(3,minmax(0,120px));
}

.uhmwpe-reference-page :is(#colors,#materials) :is(.uhmw-color,.dasher-color) {
  width:100%;
  min-width:0;
  max-width:120px;
  grid-column:auto;
  align-self:start;
}

.uhmwpe-reference-page :is(#colors,#materials) :is(.uhmw-color-sample,.dasher-color-sample) {
  width:74px;
  height:74px;
}

@media (max-width:680px) {
  .uhmwpe-reference-page :is(#colors,#materials) :is(.uhmw-colors,.cutting-colors,.shooting-colors,.dasher-colors) {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px 12px;
  }

  .uhmwpe-reference-page :is(#colors,#materials) :is(.uhmw-color,.dasher-color) {
    max-width:none;
  }

  .uhmwpe-reference-page :is(#colors,#materials) :is(.uhmw-color-sample,.dasher-color-sample) {
    width:64px;
    height:64px;
  }
}

/* One closing inquiry treatment across all product pages. */
.uhmwpe-reference-page #applications :is(.ice-project-cta,.fender-project-cta,.soccer-project-cta) {
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-top:28px;
  padding:24px 28px;
  border-radius:12px;
  background:var(--ink);
  color:#fff;
}

.uhmwpe-reference-page #applications :is(.ice-project-cta,.fender-project-cta,.soccer-project-cta) > div {
  min-width:0;
}

.uhmwpe-reference-page #applications :is(.ice-project-cta,.fender-project-cta,.soccer-project-cta) h3 {
  margin:0 0 6px;
  color:#fff;
  font-size:1.08rem;
  line-height:1.4;
}

.uhmwpe-reference-page #applications :is(.ice-project-cta,.fender-project-cta,.soccer-project-cta) p {
  margin:0;
  color:#b1c3ce;
  font-size:.87rem;
  line-height:1.6;
}

.uhmwpe-reference-page #applications :is(.ice-project-cta,.fender-project-cta,.soccer-project-cta) .btn {
  flex-shrink:0;
}

@media (max-width:980px) {
  .uhmwpe-reference-page #applications :is(.ice-project-cta,.fender-project-cta,.soccer-project-cta) {
    flex-direction:column;
    align-items:flex-start;
    padding:22px;
  }
}

/* Shared hero actions; keep the Ground Protection Mats series comparison button. */
.uhmwpe-reference-page .product-detail-hero .uhmw-contact > div {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:24px;
}

.uhmwpe-reference-page .product-detail-hero .uhmw-contact > div > a:not(.btn) {
  color:#e3edf3;
  font-size:.95rem;
  font-weight:650;
}

.uhmwpe-reference-page .product-detail-hero .uhmw-contact > div > a:not(.btn):hover {
  color:var(--lime);
}

/* One indicator treatment for all product hero carousels, at every breakpoint. */
.uhmwpe-reference-page .product-detail-hero .product-carousel .carousel-dots {
  top:14px;
  right:14px;
  bottom:auto;
  left:auto;
  transform:none;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  border-radius:99px;
  background:rgba(5,19,29,.6);
  backdrop-filter:blur(8px);
}

.uhmwpe-reference-page .product-detail-hero .product-carousel .carousel-dots button {
  width:7px;
  height:7px;
  background:rgba(255,255,255,.55);
}

.uhmwpe-reference-page .product-detail-hero .product-carousel .carousel-dots button.active {
  width:25px;
  background:var(--lime);
}

/* Shared desktop alignment and height limit; each product keeps its own aspect ratio. */
@media (min-width:981px) {
  .uhmwpe-reference-page .product-detail-hero .product-detail-grid {
    align-items:center;
  }

  .uhmwpe-reference-page .product-detail-hero .product-detail-copy {
    align-self:center;
    top:auto;
  }

  .soccer-board-reference-page .product-detail-hero .product-detail-grid {
    padding-top:0;
  }

  .uhmwpe-reference-page .product-detail-hero .product-carousel {
    --hero-frame-width-factor:1;
    width:100%;
    /* Limit width as well as height so the existing frame ratio is not flattened. */
    max-width:calc(460px * var(--hero-frame-width-factor));
    min-height:0;
    max-height:460px;
    align-self:center;
    justify-self:center;
    margin-inline:auto;
  }

  .uhmwpe-reference-page .product-detail-hero .uhmwpe-gallery,
  .uhmwpe-reference-page .product-detail-hero .ground-hero-media,
  .uhmwpe-reference-page .product-detail-hero .anchor-hero-media,
  .uhmwpe-reference-page .product-detail-hero .curling-hero-carousel {
    --hero-frame-width-factor:1.3333333333;
  }

  .hdpe-reference-page .product-detail-hero .uhmwpe-gallery {
    --hero-frame-width-factor:1;
  }

  .uhmwpe-reference-page .product-detail-hero .soccer-hero-carousel {
    --hero-frame-width-factor:1.3186813187;
  }

  .uhmwpe-reference-page .product-detail-hero .dasher-hero-carousel {
    --hero-frame-width-factor:1.2;
  }

  .uhmwpe-reference-page .product-detail-hero .dasher-hero-carousel:has(.product-slide:nth-child(2).active) {
    --hero-frame-width-factor:1.8503253796;
  }
}

/* The shared navigation is also used by material and ground-support products. */
.product-section-nav{border-bottom:1px solid var(--line);background:#fff}
.product-section-nav .container{display:flex;flex-wrap:wrap;gap:12px 28px;padding-block:16px}
.product-section-nav a{color:var(--slate);font-size:.86rem;font-weight:650;white-space:nowrap}
.product-section-nav a:hover{color:var(--blue)}
@media(max-width:680px){.product-section-nav .container{gap:12px 22px}}
