/* Shared page substrate: paint only around service illustrations. Opted-in dot
   themes below add an isolated canvas without changing page layout. */
:root {
  --page-base: #090c10;
  --page-alt: #101419;
  --page-grid-size: 32px;
}

/* A full-width main also covers headings that are themselves .container. */
.site-polish:where(:not(.home-dot-theme, .links-dot-theme, .site-dot-theme)) #main-content,
.site-polish:where(:not(.home-dot-theme, .links-dot-theme, .site-dot-theme)) :is(.home-services, .home-work, .home-process, .vehicle-search,
  .pilot-section, .diagnostics-section, .process) {
  --page-surface: var(--page-base);
  --page-grid-depth: 200px;
  --page-grid-line: rgba(255, 255, 255, .02475);
  --page-glow: none;
  background:
    var(--page-glow) 0 0 / 100% 700px no-repeat,
    linear-gradient(180deg, transparent, var(--page-surface) var(--page-grid-depth)),
    linear-gradient(var(--page-grid-line) 1px, transparent 1px) 0 0 / 100% var(--page-grid-size),
    linear-gradient(90deg, var(--page-grid-line) 1px, transparent 1px) 0 0 / var(--page-grid-size) 100%,
    var(--page-surface);
}

.site-polish #main-content {
  --page-grid-depth: 320px;
  --page-grid-line: rgba(255, 255, 255, .03025);
  --page-glow: radial-gradient(ellipse at 84% 56%, rgba(148, 27, 24, .13), transparent 46%);
}

.site-polish :is(.home-services, .vehicle-search, .pilot-system,
  .pilot-process, .pilot-faq, .diagnostics-work, .diagnostics-process, .process) {
  --page-surface: var(--page-alt);
}

/* The independent dot-theme trials use one continuous, interactive substrate.
   Isolation keeps the negative canvas above the body paint without creating a
   containing block or trapping menus/popovers inside a new main-content stack. */
body.home-dot-theme, body.links-dot-theme, body.site-dot-theme {
  --page-base: #060606;
  --page-alt: #060606;
  isolation: isolate;
  background: var(--page-base);
}
.home-dot-theme #home-dot-field, .links-dot-theme #home-dot-field, .site-dot-theme #home-dot-field {
  --fg-dot: #ffffff1a;
  --fg-dot-hot: #ecf2fff2;
  --fg-dot-gap: 1.5rem;
  position: fixed; inset: 0; z-index: -1;
  display: block; width: 100%; height: 100%; pointer-events: none;
}
/* Clear page-level paints only; controls, cards, images and chart faces retain
   their own surfaces. Existing section geometry and marquee masks are kept. */
body.home-dot-theme.home-premium :is(.home-assurance, .brands-marquee.brands-marquee, .vehicle-search),
body.home-dot-theme.site-polish.home-premium .cta-band.home-contact-section,
body.home-dot-theme.home-premium .footer.footer-compact {
  background: transparent;
}
body.site-dot-theme.site-polish :is(#main-content, .page-head, .service-hero, .service-detail,
  .trust-about, .trust-portfolio, .faq-page, .contact-page, .process, .products-page,
  .product-catalogue, .product-legacy-section, .gms-tool-preview, .hub-hero, .hub-section,
  .tool-details, .tool-updates, .pilot-section, .diagnostics-section, .cta-band, .footer) {
  background: transparent;
}
/* Let the dot field remain visible through the business-card substrate. Keep
   its existing rim, stripe, entrance reflection and every inner control face. */
body.links-dot-theme.site-polish.gloss-theme .links-card.site-contact-card {
  background: rgba(13,13,13,.392);
}
@media (forced-colors: active) {
  .home-dot-theme #home-dot-field, .links-dot-theme #home-dot-field, .site-dot-theme #home-dot-field { display: none; }
}
