/* Alternate the existing Mechanical surfaces in document order. */
html .ebt-imported-page :is(.dm-section, #by-concern, #dingmans-command-map-v2).dm-spacing-pass.dm-tone-deep {
  background: linear-gradient(180deg, var(--dm-palette-page), var(--dm-palette-page-end));
}
html .ebt-imported-page :is(.dm-section, #by-concern, #dingmans-command-map-v2).dm-spacing-pass.dm-tone-raised {
  background: linear-gradient(180deg, var(--dm-palette-alternate), var(--dm-palette-alternate-end));
}
/* Blend against the section background, as Collision's outer title rows do. */
html .ebt-imported-page .dm-section.dm-reference-rhythm { position: relative; isolation: isolate; }
html .ebt-imported-page .dm-reference-rhythm :is(.dm-section-heading, .dm-manufacturer-heading) { isolation: auto !important; container-type: normal !important; }
html .ebt-imported-page :is(.dm-section, #by-concern).dm-reference-rhythm.dm-spacing-pass .dm-section-heading .dm-ghost {
  width: max-content;
  max-width: 80vw;
  overflow: visible;
  white-space: nowrap;
}
html .ebt-imported-page #by-concern.dm-reference-rhythm.dm-spacing-pass .dm-section-heading .dm-ghost { top: calc(-1 * var(--dingmans-watermark-size)); }
html .ebt-imported-page .dm-reference-rhythm.dm-rhythm--banner .dm-band-word {
  min-height: 0;
  margin: 0 auto 12px;
}
/* Add clear breathing room around the manufacturer strip itself. */
.dm-rhythm--manufacturers { --dm-reference-bottom: calc(120px + 2%); }
html .ebt-imported-page .dm-reference-rhythm .dm-manufacturer-viewport { margin-top: 64px; }

/* Match Collision's review information hierarchy without changing source data. */
.dm-review-trust { margin: 26px auto 0; text-align: center; }
.dm-review-stars { display: block; color: var(--dm-accent); font-size: 27px; letter-spacing: 4px; line-height: 1.2; }
html .ebt-imported-page .dm-review-trust > p { margin: 8px 0 0; color: var(--dm-text); font: 800 14px/1.5 'Urbanist', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
html .ebt-imported-page .dm-review-browser .dm-review-source-note { margin: 20px 0 0; font-size: 15px; line-height: 1.55; }
html .ebt-imported-page .dm-review-browser .dm-review-filters { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--dm-line); }
.dm-review-heading-detail { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
html .ebt-imported-page .dm-review-heading-detail > p { margin: 0; }
html .ebt-imported-page .dm-review-heading-detail > .dm-review-count { color: var(--dm-muted) !important; margin: 0; text-transform: uppercase; font-size: 11px !important; white-space: nowrap; }
html .ebt-imported-page .dm-review-browser .dm-review-heading h3 { font-size: clamp(26px,2.3vw,40px); line-height: 1.1; margin-bottom: 22px; }
html .ebt-imported-page .dm-review-browser .dm-three-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
html .ebt-imported-page .dm-review-browser .dm-review-excerpt { font-size: clamp(23px,1.8vw,30px); line-height: 1.25; margin-bottom: 20px; }
html .ebt-imported-page .dm-review-browser .dm-review-supporting { color: var(--dm-muted); font: 500 italic 17px/1.6 'Urbanist', sans-serif; margin: 0 24px 28px; }
html .ebt-imported-page .dm-review-browser .dm-review:has(.dm-review-detail[open]) .dm-review-supporting { display: none; }
html .ebt-imported-page .dm-review-browser .dm-review-top { display: flex; align-items: center; gap: 20px; }
@media (max-width: 1200px) {
  html .ebt-imported-page .dm-review-browser .dm-review-source-note { max-width: 65ch; }
}
@media (min-width: 768px) and (max-width: 980px) {
  .dm-rhythm--manufacturers { --dm-reference-bottom: 85px; }
  html .ebt-imported-page .dm-reference-rhythm .dm-manufacturer-viewport { margin-top: 44px; }
}
@media (max-width: 767px) {
  html .ebt-imported-page :is(.dm-section, #by-concern).dm-reference-rhythm.dm-spacing-pass .dm-section-heading .dm-ghost { max-width: 88vw; white-space: normal; overflow-wrap: anywhere; }
  .dm-rhythm--manufacturers { --dm-reference-bottom: 112px; }
  html .ebt-imported-page .dm-reference-rhythm .dm-manufacturer-viewport { margin-top: 36px; }
  html .ebt-imported-page .dm-review-browser .dm-three-grid { grid-template-columns: minmax(0,1fr); }
  html .ebt-imported-page .dm-review-browser .dm-review-supporting { margin-inline: 18px; }
  html .ebt-imported-page .dm-review-trust > p { font-size: 11px; letter-spacing: 1px; }
}
