/* Preserve the border sweep and glow without resampling the button lettering. */
html .ebt-imported-page .white-holo-btn,
html .ebt-imported-page .white-holo-btn:is(:hover, :focus-visible, :active),
#dingmans-nav-v2 .white-holo-btn:is(:hover, :focus-visible, :active),
#dingmans-home-hero-code-v1 .white-holo-btn:is(:hover, :focus-visible, :active),
#dingmans-footer-v4 .white-holo-btn:is(:hover, :focus-visible, :active),
#dingmans-command-map-v2 .white-holo-btn:is(:hover, :focus-visible, :active) {
  transform: none;
  transition-property: color, text-shadow, box-shadow, background-color, border-color;
}

/* Include italic overhang on every line of every gradient heading fragment,
   including the hero, supporting cards and small interior headings. */
html .ebt-imported-page :is(h1, h2, h3) > span:not(.dm-kicker) {
  padding-inline-end: .2em;
  margin-inline-end: -.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* The watermark belongs to the full heading row, not its narrow text column. */
.dm-manufacturer-heading { position: relative; isolation: isolate; container-type: inline-size; }
.dm-manufacturer-heading .dm-section-heading { position: static; isolation: auto; }
html .ebt-imported-page .dm-manufacturers .dm-ghost {
  left: 0;
  top: -40px;
  max-width: none;
  overflow: visible;
  /* The earlier shared watermark selector includes an ID via :is(). Override
     that font-size only; the shared color and typeface remain unchanged. */
  font-size: min(8.5vw, 11cqw) !important;
}
html .ebt-imported-page .dm-site-rhythm.dm-way { padding-bottom: 40px; }
html .ebt-imported-page .dm-site-rhythm.dm-manufacturers { padding-top: 40px; }
#panel-collision .dm-collision-identity { border-top: 0; padding-top: 0; }
#panel-collision .dm-collision-actions { align-items: center; gap: 18px 28px; }
#panel-collision .dm-collision-actions .ms-details { margin: 0; }
#dingmans-command-map-v2 .dcm-item-copy { min-width: 0; }
#dingmans-command-map-v2 .dcm-item-copy strong { display: block; text-wrap: balance; }
#dingmans-command-map-v2 .dcm-circle .dcm-label { max-width: 90px; letter-spacing: 1px; }
/* Match the Collision homepage's photo vignette with Mechanical's navy palette.
   Keep the original image, crop and dimensions editable in the builder. */
.dm-way .dm-photo { border: 0; isolation: isolate; }
.dm-way .dm-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(var(--dm-palette-page-rgb), .05) 0%, var(--dm-palette-page) 94%, var(--dm-palette-page) 97%);
  pointer-events: none;
}
@media (max-width: 767px) {
  html .ebt-imported-page .dm-site-rhythm.dm-way { padding-bottom: 32px; }
  html .ebt-imported-page .dm-manufacturers .dm-ghost { top: -26px; font-size: min(17vw, 11cqw) !important; }
  #panel-collision .dm-collision-actions { display: flex; flex-direction: column; align-items: stretch; }
}
