/* SGTM V501 - visible content panel outline fix.
   The old V500 edit targeted an unused stylesheet and therefore had no effect
   on the Cupra/Jeep case-study frames. This is a linked, last-in-head override.
   Only visual content groups; no hero, menus, buttons, inputs or controls. */

/* Image-plus-text sections, case study spec grids, cards and photo frames. */
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main .case478-content :is(
  .sid467-split, .sid467-panel, .sid467-specs, .case-summary-grid,
  .case-summary-card, .case-notes-box, .case-media-card,
  .case-v250-card, .bmw-service-card, .bmw-faq-card,
  .case-gallery-shell, .case-video-shell, .case-cta-box,
  .sid467-gallery figure, .sid467-grid article, .sid467-faq article,
  .cupra472-faq details, .psa-faq details, .case478-photo-frame,
  .sid467-cta
) {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
/* The border in the user's screenshot is on the .sid467-split parent;
   a child-only border override will never remove it. */
body#sgtm-premium-v223 main .case478-content .sid467-split,
body#sgtm-premium-v223 main .case478-content #project .sid467-split {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
/* Stop the 1px faux-lines between the four service details. */
body#sgtm-premium-v223 main .case478-content .sid467-specs {
  gap: 0 !important;
  border: 0 !important;
  background: #fff !important;
}
body#sgtm-premium-v223 main .case478-content .sid467-specs > div {
  border: 0 !important;
  box-shadow: none !important;
}
/* Remove top/bottom lines used to separate case-study sections, not title accents. */
body#sgtm-premium-v223 main .case478-content .sid467-section+.sid467-section {
  border-top: 0 !important;
}
body#sgtm-premium-v223 main .case478-content .sid467-panel :is(.sid467-note,.case478-enquiry-note) {
  border: 0 !important;
}
/* Common presentation panels sitewide: removes rectangular frame lines while
   retaining fills, typography, spacing, and interactive focus indicators. */
body#sgtm-premium-v223 main :is(
  [class$="-card"], [class$="-panel"], [class$="-split"],
  [class$="-frame"], [class$="-specs"],
  [class$="-media"], [class$="-tile"], [class$="-photo-frame"]
):not(form):not(form *) {
  border: 0 !important;
}
/* Actual image containers and photographic cards on all public pages. */
body#sgtm-premium-v223 main :is(
  .case478-content figure, .case478-content img, .case478-content picture,
  .case478-content .sid467-split > div:first-child,
  .work-gallery figure, .premium-gallery figure,
  .case-photo img, .service-photo img
) {
  border: 0 !important;
  outline: 0 !important;
}
