/* Product detail media contract. Incumbent UI, content grids and evidence stay authoritative. */
body.pd-detail-system {
  --pd-system-ink: #162e3a;
  --pd-system-blue: #076b97;
  --pd-system-paper: #f4f4f0;
  --pd-system-line: #d9e0e1;
  --pd-system-caption: #52666f;
  --pd-section-space: clamp(50px, 6.4vw, 88px);
  --pd-compact-section-space: 44px;
  --pd-media-height: 430px;
  --pd-feedback-time: 200ms;
  --pd-decision-space: clamp(24px, 3vw, 36px);
}

/* Shared product Hero only; body sections keep their incumbent composition. */
.pd-detail-system [data-product-hero].pd-hero-unified {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  width: min(1200px, calc(100% - 64px));
  max-width: none;
  margin-inline: auto;
  padding: 50px 0;
  color: var(--pd-system-ink);
  background: #fff;
}
/* These formal templates already supply main-container gutters. */
.pd-detail-system :is(.impact-page, .wet-product) > [data-product-hero].pd-hero-unified {
  width: 100%;
}
.pd-detail-system [data-product-hero].pd-hero-unified h1 {
  max-width: 560px;
  margin: 16px 0 24px;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.13;
  letter-spacing: normal;
  text-wrap: balance;
  color: var(--pd-system-ink);
}
.pd-detail-system [data-product-hero].pd-hero-unified > :is(div, article) > p:not(.breadcrumb):not(.screen-breadcrumb):not(.wet-breadcrumb):not(.eyebrow):not(.screen-kicker):not(.wet-kicker) {
  max-width: 57ch;
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: #53656e;
}
.pd-detail-system [data-product-hero].pd-hero-unified p:is(.breadcrumb, .screen-breadcrumb, .wet-breadcrumb) {
  margin: 0 0 24px;
  color: #53656e;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: none;
}
.pd-detail-system [data-product-hero].pd-hero-unified p:is(.eyebrow, .screen-kicker, .wet-kicker),
.pd-detail-system [data-product-hero].pd-hero-unified p:is(.eyebrow, .screen-kicker, .wet-kicker) strong {
  margin: 0;
  color: var(--pd-system-blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
}
.pd-detail-system [data-product-hero].pd-hero-unified a:not(.btn) { color: var(--pd-system-blue); }
.pd-detail-system [data-product-hero].pd-hero-unified :is(.hero-actions, .screen-actions, .wet-actions, .actions) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.pd-detail-system [data-product-hero].pd-hero-unified .btn,
.pd-detail-system [data-product-hero].pd-hero-unified .screen-actions > .screen-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  text-decoration: none;
}
.pd-detail-system [data-product-hero].pd-hero-unified .btn.primary {
  color: #fff;
  border-color: var(--pd-system-blue);
  background: var(--pd-system-blue);
}
.pd-detail-system [data-product-hero].pd-hero-unified .btn.primary:hover { background: #075a80; border-color: #075a80; }
.pd-detail-system [data-product-hero].pd-hero-unified .btn:is(.light, .secondary, .outline),
.pd-detail-system [data-product-hero].pd-hero-unified .screen-actions > .screen-text-link {
  color: var(--pd-system-blue);
  border-color: #95b3c1;
  background: transparent;
}
.pd-detail-system [data-product-hero].pd-hero-unified .btn:is(.light, .secondary, .outline):hover,
.pd-detail-system [data-product-hero].pd-hero-unified .screen-actions > .screen-text-link:hover {
  border-color: var(--pd-system-blue);
  background: #f0f4f4;
}
/* Three approved pilots name their first inquiry button .light; preserve its primary role. */
.pd-detail-system [data-product-hero].pd-hero-unified :is(.hero-actions, .screen-actions, .wet-actions, .actions) > .btn:first-child {
  color: #fff;
  border-color: var(--pd-system-blue);
  background: var(--pd-system-blue);
}
.pd-detail-system [data-product-hero].pd-hero-unified :is(.hero-actions, .screen-actions, .wet-actions, .actions) > .btn:first-child:hover {
  background: #075a80;
  border-color: #075a80;
}
.pd-detail-system [data-product-hero].pd-hero-unified a:focus-visible {
  outline: 3px solid var(--pd-system-blue);
  outline-offset: 3px;
}

/* Only the explicitly opted-in product Hero is normalized. */
.pd-detail-system [data-product-hero].pd-hero-unified > * { min-width: 0; }
.pd-detail-system [data-product-hero].pd-hero-unified .pd-product-media {
  width: 100%;
  max-width: calc(var(--pd-media-height) * 4 / 3);
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--pd-system-line);
  border-radius: 2px;
  background: var(--pd-system-paper);
  box-shadow: none;
}
.pd-detail-system [data-product-hero].pd-hero-unified .pd-product-canvas {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 4 / 3;
  max-height: var(--pd-media-height);
  overflow: hidden;
  background: var(--pd-system-paper);
}
.pd-detail-system [data-product-hero].pd-hero-unified .pd-product-canvas > picture {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.pd-detail-system [data-product-hero].pd-hero-unified .pd-product-canvas > img,
.pd-detail-system [data-product-hero].pd-hero-unified .pd-product-canvas > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
}
/* A catalog source window uses declared coordinates; no new pixels or inferred mechanics. */
.pd-detail-system [data-product-hero].pd-hero-unified .pd-source-window {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
}
.pd-detail-system [data-product-hero].pd-hero-unified .pd-source-window > img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  object-fit: initial;
  border-radius: 0;
  background: transparent;
  transform-origin: 0 0;
}
.pd-detail-system [data-product-hero].pd-hero-unified .pd-product-caption {
  position: static;
  inset: auto;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--pd-system-line);
  background: #fff;
  color: var(--pd-system-caption);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
/* The image-gap variant remains an honest state, never a substitute product drawing. */
.pd-detail-system [data-product-hero].pd-hero-unified .pd-product-canvas.pd-gap-canvas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* 62/8vw/108 -> 50/6.4vw/88. Preserve all horizontal padding and grids. */
.pd-detail-system main > .section:not([data-product-hero]),
.pd-detail-system main > .product-technical-details > .section {
  padding-block: var(--pd-section-space);
}
/* Existing Screen family uses a separate, smaller 54px section rhythm. */
.pd-detail-system main > .screen-section { padding-block: var(--pd-compact-section-space); }
.pd-detail-system main > .screen-next { padding-block: 48px 56px; }
/* Verified wet-pan family is already compact: native 34/20 -> 28/16. */
.pd-detail-system main > .wet-section { padding-block: 28px 16px; }
/* Verified PF template uses 30px section padding, independent of .section. */
.pd-detail-system .impact-page > section:not([data-product-hero]) { padding-block: 25px; }

/* Ball Mill's four original selection checks form a compact utility strip. */
.pd-detail-system main > .section.pd-decision-check { padding-block: var(--pd-decision-space); }
.pd-detail-system .pd-decision-check .eyebrow {
  margin: 0 0 10px;
  color: var(--pd-system-blue);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: .06em;
}
.pd-detail-system .pd-decision-check h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.3;
}
.pd-detail-system .pd-decision-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pd-detail-system .pd-decision-list > li {
  padding-top: 12px;
  border-top: 1px solid var(--pd-system-line);
  color: var(--pd-system-ink);
  font-size: 14px;
  line-height: 1.45;
}
@media (max-width: 767px) {
  .pd-detail-system .pd-decision-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* Explicit internal HOLD state, confined to excluded review routes. */
body.pd-detail-system[data-review-hold="true"] .pd-review-banner {
  width: min(1200px, calc(100% - 40px));
  margin: 16px auto;
  padding: 12px 16px;
  border: 1px solid #c7a56a;
  background: #fff5e3;
  color: #604916;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
body.pd-detail-system[data-review-hold="true"] [data-product-hero] .pd-internal-gap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  text-align: left;
}
body.pd-detail-system[data-review-hold="true"] [data-product-hero] .pd-internal-gap > * {
  max-width: 38ch;
  margin: 0;
  color: var(--pd-system-ink);
  font-size: 16px;
  line-height: 1.5;
}
body.pd-detail-system[data-review-hold="true"] [data-product-hero] .pd-internal-gap > h2 {
  max-width: 24ch;
  font-size: 22px;
  line-height: 1.3;
}

/* State feedback only: specifications remain native semantic tables. */
.pd-detail-system main :is(.catalog-scroll, .table-scroll, .screen-table-scroll) tbody tr {
  transition: background-color var(--pd-feedback-time) var(--motion-ease, ease);
}
.pd-detail-system main :is(.catalog-scroll, .table-scroll, .screen-table-scroll) tbody tr:focus-visible {
  outline: 2px solid var(--pd-system-blue);
  outline-offset: -2px;
}
.pd-detail-system main :is(.catalog-scroll, .table-scroll, .screen-table-scroll) tbody tr:focus-within {
  background-color: rgb(7 107 151 / .045);
}
.pd-detail-system main details > summary {
  transition: color var(--pd-feedback-time) var(--motion-ease, ease), background-color var(--pd-feedback-time) var(--motion-ease, ease);
}
.pd-detail-system main details > summary:focus-visible {
  outline: 3px solid var(--pd-system-blue);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .pd-detail-system main :is(.catalog-scroll, .table-scroll, .screen-table-scroll) tbody tr:hover {
    background-color: rgb(7 107 151 / .045);
  }
}
/* Extend the existing paused-poster feedback to the same scoped product media cards. */
.pd-detail-system .product-v3-media-card :is(img, video[poster]) { transition: transform var(--pd-feedback-time) var(--motion-ease, ease); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not([data-zm-motion='simple']) .pd-detail-system .product-v3-media-card:hover img,
  html:not([data-zm-motion='simple']) .pd-detail-system .product-v3-media-card:not([data-motion-video-state='playing']):hover video[poster] { transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .pd-detail-system .product-v3-media-card :is(img, video[poster]) { transform: none !important; }
}
/* Progressive native disclosure. Unsupported browsers keep normal instant details. */
@supports (interpolate-size: allow-keywords) {
  .pd-detail-system.zm-motion-refined main details,
  .pd-detail-system.zm-motion-refined main details[data-motion-accordion] {
    interpolate-size: allow-keywords;
  }
  .pd-detail-system.zm-motion-refined main details::details-content,
  .pd-detail-system.zm-motion-refined main details[data-motion-accordion]::details-content {
    block-size: 0;
    opacity: .96;
    overflow: clip;
    transition: block-size var(--pd-feedback-time) var(--motion-ease, ease), opacity var(--pd-feedback-time) var(--motion-ease, ease), content-visibility var(--pd-feedback-time) allow-discrete;
  }
  .pd-detail-system.zm-motion-refined main details[open]::details-content,
  .pd-detail-system.zm-motion-refined main details[data-motion-accordion][open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}
@media (max-width: 1023px) {
  .pd-detail-system [data-product-hero].pd-hero-unified { gap: 28px; }
}
@media (max-width: 767px) {
  body.pd-detail-system { --pd-media-height: 390px; }
  .pd-detail-system [data-product-hero].pd-hero-unified {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 40px);
    gap: 28px;
    padding-block: 26px;
  }
  .pd-detail-system :is(.impact-page, .wet-product) > [data-product-hero].pd-hero-unified { width: 100%; }
  .pd-detail-system [data-product-hero].pd-hero-unified h1 { font-size: 32px; margin: 14px 0 20px; }
  .pd-detail-system [data-product-hero].pd-hero-unified p:is(.breadcrumb, .screen-breadcrumb, .wet-breadcrumb) { margin-bottom: 20px; }
  .pd-detail-system [data-product-hero].pd-hero-unified :is(.hero-actions, .screen-actions, .wet-actions, .actions) { gap: 12px; align-items: stretch; }
  .pd-detail-system [data-product-hero].pd-hero-unified .btn,
  .pd-detail-system [data-product-hero].pd-hero-unified .screen-actions > .screen-text-link { width: 100%; }
  /* Preserve native Contact/WhatsApp actions without covering machine details. */
  .pd-detail-system .customer-contact {
    position: static;
    inset: auto;
    width: fit-content;
    max-width: calc(100% - 40px);
    margin: 16px auto;
    transform: none;
    translate: none;
    z-index: auto;
  }
}
/* Respect the native Screen and Wet families' 720px content breakpoint. */
@media (max-width: 720px) {
  body.pd-detail-system { --pd-compact-section-space: 34px; }
  .pd-detail-system main > .screen-next { padding-block: 34px 42px; }
  .pd-detail-system main > .wet-section { padding-block: 23px 16px; }
}
@media (max-width: 600px) {
  .pd-detail-system .impact-page > section:not([data-product-hero]) { padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body.pd-detail-system { --pd-feedback-time: 0ms; }
  .pd-detail-system [data-product-hero] { scroll-behavior: auto; }
}
