/* Batch 2: measured Collision spacing and hover technique, Mechanical blue. */
html .ebt-imported-page .dm-batch5.dm-benefit-strip {
  --dm-reference-top: 100px;
  --dm-reference-bottom: 100px;
}

/* Add room above these two watermarks only. Bottom spacing is unchanged. */
html .ebt-imported-page .dm-batch5.dm-watermark-section:is(.dm-careers-advantages, .dm-community) {
  padding-top: calc(var(--dingmans-watermark-size, 8.5vw) + 72px) !important;
}

/* The existing footer family is Urbanist; use the reference's semibold weight
   for the address/hours block marked in the PDF, retaining its current size. */
html .ebt-imported-page #dingmans-footer-v4 .dnmf-locations > p,
html .ebt-imported-page #dingmans-footer-v4 .dnmf-address,
html .ebt-imported-page #dingmans-footer-v4 .dnmf-contact-links > a {
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
}

/* Reference community pills grow a 2px line down the left edge over .35s.
   Their card .ebt-imported-page does not lift, gain a shadow, or highlight all four edges. */
html .ebt-imported-page .dm-community.dm-batch5 .dm-community-programs article,
html .ebt-imported-page .dm-community.dm-batch5 .dm-community-programs article:is(:hover, :focus-within) {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 32, 53, .32), rgba(10, 32, 53, .12));
  border: 1px solid var(--dm-line);
  transform: none;
  box-shadow: none;
  transition: none;
}
html .ebt-imported-page .dm-community.dm-batch5 .dm-community-programs article::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--dm-accent, #3da5ff);
  transition: height .35s ease;
  pointer-events: none;
}
html .ebt-imported-page .dm-community.dm-batch5 .dm-community-programs article:is(:hover, :focus-within)::before {
  height: 100%;
}

@media (min-width: 768px) and (max-width: 980px) {
  html .ebt-imported-page .dm-batch5.dm-benefit-strip { --dm-reference-top: 75px; --dm-reference-bottom: 75px; }
  html .ebt-imported-page .dm-batch5.dm-watermark-section:is(.dm-careers-advantages, .dm-community) {
    padding-top: calc(var(--dingmans-watermark-size, 15vw) + 64px) !important;
  }
}
@media (max-width: 767px) {
  html .ebt-imported-page .dm-batch5.dm-benefit-strip { --dm-reference-top: 50px; --dm-reference-bottom: 50px; }
  html .ebt-imported-page .dm-batch5.dm-watermark-section:is(.dm-careers-advantages, .dm-community) {
    padding-top: calc(var(--dingmans-watermark-size, 17vw) + 36px) !important;
  }
}
/* Keep the longer approved titles intact instead of breaking words on phones. */
@media (max-width: 600px) {
  html .ebt-imported-page .dm-benefit-grid { grid-template-columns: 1fr; gap: 24px; }
  html .ebt-imported-page .dm-benefit { min-height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html .ebt-imported-page .dm-community.dm-batch5 .dm-community-programs article::before { transition: none; }
}
