/* Neutral section surfaces only. Header, heroes, hero benefits and media are excluded. */
html body:is(.gdb-redesign,.gdb-newchrome-legacy) > footer {
  background-color: var(--brand-700);
  color: var(--text-inverse);
}
html body:is(.gdb-redesign,.gdb-newchrome-legacy) > footer .footer-grid :is(h2,h3) {
  color: var(--text-inverse);
}
html body:is(.gdb-redesign,.gdb-newchrome-legacy) > footer .footer-grid :is(p,a),
html body:is(.gdb-redesign,.gdb-newchrome-legacy) > footer .footer-bottom {
  color: var(--text-inverse-muted);
}
html body:is(.gdb-redesign,.gdb-newchrome-legacy) > footer .footer-bottom {
  border-top-color: var(--text-muted);
}
body:is(.gdb-redesign,.gdb-newchrome-legacy) main > .related-services {
  background-color: var(--brand-50);
}

body:is(.gdb-redesign,.gdb-newchrome-legacy) main > section:not(:where(.hero,.service-hero,.company-hero,.area-hero,#top,#why-choose-us,.gdb-review-carousel)) {
  --bg: var(--text-inverse);
  --bg-subtle: var(--brand-50);
  --text: var(--brand-700);
  --paper: var(--bg-subtle);
  --white: var(--bg);
  --ink: var(--text);
  --text-muted: var(--brand-500);
  --muted: var(--text-muted);
  --line: var(--border-strong);
  --deep: var(--text);
  --service-tint: var(--bg-subtle);
  background-color: var(--bg);
  color: var(--text);
}
body:is(.gdb-redesign,.gdb-newchrome-legacy) main > :is(.scope-section,.projects-section,.company-services,.home-contact-editorial,.contact-form-section,.gallery-notes,.gallery-close,.source-service-proof,.area-proof,.sx--tint,.sx--warm,.faq,.area-directory-section) {
  background-color: var(--bg-subtle);
}
body:is(.gdb-redesign,.gdb-newchrome-legacy) main > :is(.service-planning,.areas,.cband) {
  --muted: var(--text-inverse-muted);
  --service-tint: var(--brand-700);
  background-color: var(--brand-700);
  color: var(--text-inverse);
}
body:is(.gdb-redesign,.gdb-newchrome-legacy) main > :is(.service-planning,.areas,.cband) :is(h2,h3,a,.areas__ask) {
  color: var(--text-inverse);
}
body:is(.gdb-redesign,.gdb-newchrome-legacy) main > :is(.service-planning,.areas,.cband) :is(p,li,.sec-sub,.eyebrow,.areas__more,.areas__askb) {
  color: var(--text-inverse-muted);
}
body:is(.gdb-redesign,.gdb-newchrome-legacy) main > :is(.service-planning,.areas,.cband) :is(.btn:not(.btn--ghost),.button) {
  color: var(--brand-700);
}

/* Guide templates share the legacy colour ramp, independent of their layout. */
body:is(.guides-index,.guides-article) main {
  --ink-800: var(--brand-700);
  --ink-700: var(--brand-600);
  --ink-600: var(--brand-500);
  --ink-500: var(--brand-500);
  --ink-400: var(--brand-300);
  --ink-200: var(--border-strong);
  --ink-100: var(--border);
  --ink-50: var(--brand-50);
  --white: var(--text-inverse);
}

/* Legacy v2 palettes shadow the neutral ramp. Rebind only their review surfaces. */
body.gdb-newchrome-legacy main .gdb-review-carousel {
  --ink-800: var(--text);
  --ink-700: var(--text-muted);
  --ink-50: var(--text-inverse);
  --ink-300: var(--text-inverse-muted);
}
body.area-layout-page main section.grev.gdb-review-carousel {
  --white: var(--bg);
}
body.area-layout-page main .grev .gdb-review-heading :is(p,.grev__count) {
  color: var(--text-muted);
}
body.area-layout-page main .grev .gdb-review-heading .eyebrow {
  color: var(--accent-text);
}

/* Shared copyright and owner-requested in-house team credit. */
html body:is(.gdb-redesign,.gdb-newchrome-legacy) > footer .footer-bottom > .footer-copyright {
  display:block;
  max-width:var(--measure-narrow);
}
html body:is(.gdb-redesign,.gdb-newchrome-legacy) > footer .footer-team-credit {
  margin:var(--space-2xs) 0 0;
  color:var(--text-inverse-muted);
  font-size:inherit;
  line-height:var(--leading-normal);
}
