/* SG-Tronic Motorsport V627 — corrections from V626 page-by-page design audit.
   Limited to confirmed narrow-mobile overflow, TCU media balance, three H2 accent
   templates, two Car Diagnostics H2s, and fixed action clearance. */

/* Decorative SGTM wordmark is oversized by 10px on 360px screens. Keep the
   watermark wholly inside its own introduction; do not clip the page. */
@media (max-width:380px) {
 body.sgtm-premium-v223 main > section.split.premium-intro::before {
   left:auto!important;
   right:0!important;
   max-width:100%!important;
 }
}

/* Keep the ADblue specialist feature from inheriting a min-content column wider
   than a narrow mobile viewport. No image sizes or desktop columns change. */
@media (max-width:850px) {
 body#sgtm-premium-v223 main > section.adblue-car-van.sgtm-scr-v406 {
   grid-template-columns:minmax(0,1fr)!important;
 }
}

/* Only the DSG/TCU specialist image/text pair: let the photo fill the actual
   text row (rather than ending ~111px early on 1024px tablets). */
@media (min-width:781px) {
 body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main section.gearbox-mobile.sgtm-dsg-layout-v514 {
   align-items:stretch!important;
 }
 body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main section.gearbox-mobile.sgtm-dsg-layout-v514 > figure.sgtm-dsg-photo-v514 {
   position:relative!important;
   align-self:stretch!important;
   height:auto!important;
   min-height:275px!important;
   max-height:none!important;
 }
 body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main section.gearbox-mobile.sgtm-dsg-layout-v514 > figure.sgtm-dsg-photo-v514 > img {
   display:block!important;
   position:absolute!important;
   inset:0!important;
   width:100%!important;
   height:100%!important;
   max-height:none!important;
   object-fit:cover!important;
   object-position:center!important;
 }
}

/* Preserve the SGTM section-label/eyebrow cyan rule, but remove the outlying
   extra underline below H2s on the 3 brake/suspension pages. */
body.sgtm-brake-seo-v537 main.sgtm587-page h2::after {
  content:none!important;
  display:none!important;
}

/* Cap only the two oversized Car Diagnostics H2 variants. Heading wording,
   structure, and the rest of the page typography remain untouched. */
body.sgtm-v627-diagnostics main .sgtm-v412-local-heading h2,
body.sgtm-v627-diagnostics main .sgtm-v417-content h2 {
  font-size:clamp(30px,3.5vw,48px)!important;
  line-height:1.12!important;
  text-wrap:balance;
}

/* Keep the right-side controls inside the outer gutter on intermediate
   widths; avoid hiding them or changing their click targets. */
@media (min-width:781px) and (max-width:1100px) {
  body.sgtm-premium-v223 a.back-to-top {
    right:4px!important;
    width:42px!important;
    height:42px!important;
  }
  body.sgtm-premium-v223 #sgtm-chat-launcher {
    right:4px!important;
  }
}
