/* SGTM V506 — targeted full-site design consistency pass.
   Preserves hero artwork, page-specific colours, FAQ mechanics and SEO content. */

/* Consistent card treatment — no harsh black strokes. */
body#sgtm-premium-v223 main article.audit-card-v222:not(.sgtm-heavy-card-v405),
body#sgtm-premium-v223 main article.mech-card-v231,
body#sgtm-premium-v223 main article.sgtm-proof-card,
body#sgtm-premium-v223 main article.v337-service-card {
  min-width:0;
  box-sizing:border-box;
  border-color:transparent!important;
  border-radius:10px!important;
  box-shadow:0 9px 27px rgba(9,42,69,.08)!important;
}
/* Keep panels aligned in shared grids and avoid stretched content. */
body#sgtm-premium-v223 main :is(.mech-grid-v231,.sgtm-proof-grid,.v337-service-grid) > article {
  min-width:0;
  height:100%;
  overflow-wrap:anywhere;
}
/* Prevent accidental accent decorations doubling up near section headings. */
body#sgtm-premium-v223 main :is(.case-gallery-intro,.case-video-intro) > h2::after {
  content:none!important;
  display:none!important;
}
/* Page paragraphs and linked cards stay legible without disturbing inherited palette. */
body#sgtm-premium-v223 main :is(.audit-card-v222,.mech-card-v231,.sgtm-proof-card,.v337-service-card) :is(h2,h3,p,small) {
  overflow-wrap:break-word;
}

/* Shared case-study overview: workshop evidence on left, job details on right.
   The existing original photograph is moved into the existing summary section. */
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .case478-content > section.sgtm-v506-case-summary {
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  padding:clamp(24px,3vw,44px)!important;
  margin:0 0 clamp(26px,4vw,50px)!important;
  border:0!important;
  border-radius:12px!important;
  background:linear-gradient(145deg,#fff 0%,#f5faff 100%)!important;
  box-shadow:0 18px 44px rgba(8,35,59,.09)!important;
  color:#102b40!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .case478-content .sgtm-v506-case-overview {
  display:grid!important;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)!important;
  align-items:center!important;
  gap:clamp(22px,3.2vw,46px)!important;
  width:100%!important;
  max-width:none!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-overview .hero456-evidence {
  position:relative!important;
  inset:auto!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:clamp(12px,2.2vw,22px)!important;
  border:0!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
  background:#eef6fb!important;
  box-shadow:none!important;
  transform:none!important;
  text-align:center!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-overview .hero456-evidence > span {
  display:block!important;
  width:100%;
  margin:0 0 13px!important;
  color:#076aa8!important;
  font-size:11px!important;
  letter-spacing:.13em!important;
  line-height:1.4!important;
  font-weight:800!important;
  text-align:left!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-overview .hero456-evidence img {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:520px!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:6px!important;
  box-shadow:none!important;
  background:transparent!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details {
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details > h2.audit-section-title-v222 {
  margin:0 0 22px!important;
  max-width:100%!important;
  padding:0!important;
  color:#0d2b43!important;
  font-size:clamp(25px,2.55vw,36px)!important;
  line-height:1.16!important;
  letter-spacing:-.025em!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details > h2.audit-section-title-v222::before {
  content:"PROJECT SNAPSHOT"!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  margin:0 0 14px!important;
  font-size:11px!important;
  line-height:1.4!important;
  letter-spacing:.14em!important;
  font-weight:850!important;
  text-transform:uppercase!important;
  color:#087ac7!important;
  background:none!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details > h2.audit-section-title-v222::after {
  content:none!important;
  display:none!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case-summary-grid {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0!important;
  padding:0!important;
  width:100%!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case-summary-card {
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  min-width:0!important;
  min-height:100px!important;
  height:100%!important;
  padding:17px 16px!important;
  border:0!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 6px 19px rgba(6,33,59,.07)!important;
  color:#102b40!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case-summary-card::before {
  display:none!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case-summary-card small {
  margin:0 0 9px!important;
  font-size:10px!important;
  letter-spacing:.13em!important;
  font-weight:800!important;
  color:#087ac7!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case-summary-card .case478-stat {
  margin:0!important;
  padding:0!important;
  max-width:none!important;
  color:#0d2b43!important;
  font-size:clamp(15px,1.3vw,18px)!important;
  line-height:1.45!important;
  font-weight:780!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case478-enquiry-note {
  position:relative!important;
  margin:18px 0 0!important;
  padding:18px 20px!important;
  border:0!important;
  border-radius:8px!important;
  background:#e6f2fa!important;
  box-shadow:none!important;
  color:#24435a!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case478-enquiry-note::before {
  content:none!important;
  display:none!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case478-enquiry-note p {
  color:#24435a!important;
  margin:0!important;
  font-size:14px!important;
  line-height:1.65!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case478-enquiry-note strong {color:#0d2b43!important}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case478-enquiry-note a {color:#076eaf!important}

/* Standardise specification tiles and split-panel spacing on the five custom case studies.
   Preserve original case-study photo and text (and the Cupra V505 section). */
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main .case478-content .sid467-section:not(.sid467-dark) .sid467-specs {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  border:0!important;
  background:transparent!important;
  margin:22px 0 26px!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main .case478-content .sid467-specs > div {
  min-width:0!important;
  padding:18px 16px!important;
  border:0!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:0 6px 22px rgba(8,42,70,.07)!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main .case478-content .sid467-split {
  margin-top:22px!important;
  gap:0!important;
  border:0!important;
  border-radius:8px!important;
  overflow:hidden!important;
  box-shadow:0 9px 28px rgba(8,42,70,.06)!important;
}
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main .case478-content .sid467-split .sid467-panel {
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
/* Avoid dark unused bands around photographs inside case-study galleries. */
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main .case478-content .sid467-gallery figure,
body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main .case478-content .case-media-card {
  border:0!important;
  border-radius:8px!important;
  box-shadow:0 12px 30px rgba(0,0,0,.09)!important;
}
/* Only at smaller viewports do overview photo and description stack. */
@media(max-width:990px){
 body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .case478-content .sgtm-v506-case-overview {
   grid-template-columns:1fr!important;
   align-items:stretch!important;
 }
 body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-overview .hero456-evidence img {max-height:390px!important}
 body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main .case478-content .sid467-section:not(.sid467-dark) .sid467-specs {
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
@media(max-width:600px){
 body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .case478-content > section.sgtm-v506-case-summary {padding:20px 16px!important}
 body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case-summary-grid {grid-template-columns:1fr!important}
 body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main.case-study-main .sgtm-v506-case-details .case-summary-card {min-height:0!important}
 body#sgtm-premium-v223.sgtm-premium-v223.sgtm-audit-v224 main .case478-content .sid467-section:not(.sid467-dark) .sid467-specs {grid-template-columns:1fr 1fr!important;gap:8px!important}
}
