/* Ivory on solid blue/charcoal surfaces; white over dark photographic covers. */
:root { --text-on-dark: #e8e1ce; --text-on-photo: #ffffff; }

/* Low specificity preserves cream/white button variants and their approved hover states. */
.btn:not(:where(.btn-white, .btn-outline)),
.skip { color: var(--text-on-dark); }

/* Preserve dark text on the light Local/Accessibility hero panels. */
body.page-home .editorial-hero--home,
body.page-b2b .editorial-hero--b2b,
body.page-accesibilidad .cta-section,
body.page-accesibilidad .cta-section :is(h2, .access-visual-icon) {
  color: var(--text-on-photo);
}
@media (min-width: 1051px) {
  body.page-home .editorial-hero--home :is(.home-clients, .home-clients h2, .client-carousel-toggle:not(:hover)) {
    color: var(--text-on-photo);
  }
}

/* Navigation directly over the dark photographs uses white. */
body:is(.page-home, .page-b2b) .site-header.home-nav-over-hero,
body:is(.page-home, .page-b2b) .site-header.home-nav-over-hero .nav a:not(:where(.btn)),
body:is(.page-home, .page-b2b) .site-header.home-nav-over-hero .menu-toggle {
  color: var(--text-on-photo);
}
body:is(.page-home, .page-b2b) .site-header.home-nav-over-hero .menu-toggle { border-color: currentColor; }
body:is(.page-home, .page-b2b) .site-header.home-nav-over-hero .menu-toggle span { background: currentColor; }
body:is(.page-home, .page-b2b) .site-header.home-nav-over-hero .nav a[aria-current="page"] {
  color: var(--text-on-photo);
  box-shadow: inset 0 -2px currentColor;
}

/* These light actions turn charcoal on hover/focus; their text then turns ivory. */
body:is(.page-home, .page-b2b, .page-local) .cta-section .btn-white:is(:hover, :focus-visible) {
  color: var(--text-on-dark);
}

@media (max-width: 1050px) {
  body:is(.page-home, .page-b2b) .site-header.home-nav-over-hero .nav.is-open {
    color: var(--text-on-dark);
  }
  body:is(.page-home, .page-b2b) .site-header.home-nav-over-hero .nav.is-open a:not(:where(.btn)) {
    color: var(--text-on-dark);
  }
}

/* The expanded mobile menu keeps the active page without an underline. */
@media (max-width: 1000px) {
  body:is(.page-home, .page-b2b, .page-local, .page-accesibilidad) .site-header .nav.is-open a[aria-current="page"] {
    box-shadow: none;
    text-decoration: none;
  }
}
