/* Client Results route-specific refinements. */

/*
 * The Results header is wrapped so the legacy case-study page can use the
 * current site shell. Make the wrapper itself sticky; otherwise the header's
 * sticky position is confined to a one-header-tall parent and scrolls away.
 */
.client-results-header-scope {
  position: sticky;
  z-index: 100;
  top: 0;
  background: var(--rr-primary-navy);
  color: var(--rr-white);
  font-family: "Inter", Arial, sans-serif;
}

.client-results-header-scope .site-header {
  position: static !important;
  top: auto !important;
  border-bottom-color: rgba(var(--rr-white-rgb), .18) !important;
  background: var(--rr-primary-navy) !important;
  color: var(--rr-white) !important;
  box-shadow: none;
}

.client-results-header-scope .nav-list > li > a,
.client-results-header-scope .nav-trigger,
.client-results-header-scope .menu-toggle {
  color: var(--rr-white) !important;
}

.client-results-header-scope .brand,
.client-results-header-scope .brand img {
  opacity: 1;
  visibility: visible;
}

.client-results-header-scope .menu-icon i {
  background: var(--rr-white) !important;
}

.client-results-header-scope .nav-menu,
.client-results-header-scope .nav-menu a {
  color: var(--rr-primary-navy) !important;
}

.client-results-header-scope .nav-menu {
  background: var(--rr-white) !important;
}

.client-results-header-scope .nav-menu small {
  color: var(--rr-steel) !important;
}

/*
 * The chapter links are useful in their original position, but they are not
 * the site header. They must move with the written case study instead of
 * replacing the primary navigation while the visitor scrolls.
 */
.rr-v2.systems-proof--final.case-study-written-wrapper .case-study-narrative__nav {
  position: static !important;
  z-index: auto !important;
  top: auto !important;
  background: var(--rr-white);
  backdrop-filter: none;
}

/* Keep the interactive map dark while making the surrounding section white. */
.systems-proof--final .t6-map-section {
  background: var(--rr-white) !important;
  color: var(--rr-primary-navy) !important;
}

.systems-proof--final .t6-map-section .t6-section-heading--light h2 {
  color: var(--rr-primary-navy) !important;
}

.systems-proof--final .t6-map-section .t6-section-heading--light .t6-kicker {
  color: var(--rr-copper) !important;
}

/* Dark case-study sections must remain fully readable. */
.rr-v2.systems-proof--final.case-study-written-wrapper .case-study-chapter--navy,
.rr-v2.systems-proof--final.case-study-written-wrapper .case-study-chapter--navy :is(h2, h3, p, li, ul, span, strong) {
  color: var(--rr-white) !important;
}

.rr-v2.systems-proof--final.case-study-written-wrapper .case-study-chapter--navy li::marker {
  color: var(--rr-white);
}
