/* RJ_AUDIT_ACCESSIBILITY_REPAIR_CSS_START */

#content-holder .coverslider #cover-1104 .rj-home-cover-toggle {
  position: absolute;
  z-index: 3;
  top: 90px;
  right: clamp(12px, 4vw, 58px);
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #ffffff80;
  border-radius: 24px;
  background: #171b1a;
  color: #fff;
  font: 400 13px/1 upgrade, Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

#content-holder .coverslider #cover-1104 .rj-home-cover-toggle[hidden] {
  display: none;
}

#content-holder .coverslider #cover-1104 .rj-home-cover-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  #content-holder .coverslider #cover-1104 .rj-home-cover-toggle {
    top: 148px;
  }
}

/* Important declarations in the first named layer take precedence over the
   existing rj-project-pilot important palette layer without touching other
   projects. */
@layer rj-audit-repair, rj-project-pilot;

/* The companion reorders only direct-child arrows; preserve Semplice/Swiper's
   absolute layout while making those existing controls keyboard-addressable. */
#content-holder .coverslider > :is(.swiper-button-prev, .swiper-button-next)[role="button"]:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

/* EDR case 1022: the audited normal orange copy/control surfaces use the
   darker brand-safe ink. Artwork, video and the dark embedded worlds remain
   untouched. #171b1a passes 4.5:1 against both #e56415 and #ff6b00. */
@layer rj-audit-repair {
#content-holder #rj-edr-case-1022 {
  --edr-ink: #171b1a !important;
  color: #171b1a !important;
}

#content-holder #rj-edr-case-1022
  :is(#section_rjedrrestorecredits, #section_rjedrrestorestory,
      #section_rjedrrestorecampaignfilm, #section_rjedrrestorelibrary1,
      #section_rjedrrestorelibrary2, #section_rjedrrestoreprocesstitle,
      #section_rjedrrestoreapplicationstitle, #section_rjedrrestorepartnertitle,
      #section_rjedrrestorecontexttitle, #section_rjedrhybrid, #section_rjedrrestoreend)
  :is(h1, h2, h3, p, a, span, dt, dd, nav, button, label, figcaption, small, strong, em, li, output, summary) {
  color: #171b1a !important;
}

#content-holder #rj-edr-case-1022 #section_rjedrrestoreintro:not([data-home-cover])
  :is(.rj-eyebrow, h1, h2, h3, p, a, span, button, label, figcaption) {
  color: #171b1a !important;
}

#content-holder #rj-edr-case-1022
  :is(.rj-edr-cover-cta, .rj-edr-compare-label,
      .rj-edr-compare-divider > span, .rj-edr-compare-controls button) {
  color: #171b1a !important;
}

#content-holder #rj-edr-case-1022
  :is(#rj-edr-navbar-1022, .rj-edr-index, .rj-consistent-primary,
      .rj-consistent-index)
  :is(h1, h2, h3, p, a, span, nav, button, label, small, strong, em, li) {
  color: #171b1a !important;
}

#content-holder #rj-edr-case-1022
  :is(#rj-edr-navbar-1022, .rj-edr-index, .rj-consistent-primary,
      .rj-consistent-index, .rj-edr-cover-cta, .rj-edr-compare-label,
      .rj-edr-compare-divider, .rj-edr-compare-divider > span,
      .rj-edr-compare-controls button, .rj-actions a, .rj-edr-footer,
      .rj-edr-media-section, .rj-credits, .rj-edr-story-jumps a) {
  border-color: rgba(23, 27, 26, 0.55) !important;
}

#content-holder #rj-edr-case-1022 .rj-edr-compare-controls input {
  accent-color: #171b1a !important;
}

/* The homepage cover is a photographic/film surface; retain its white
   overlay copy and controls rather than treating it as flat orange. */
#content-holder #rj-edr-case-1022 #section_rjedrrestoreintro[data-home-cover]
  .rj-pilot-hero-copy :is(h1, h2, h3, p, a, span, button, label) {
  color: #fff !important;
}

#content-holder #rj-edr-case-1022 #section_rjedrrestoreintro[data-home-cover]
  .rj-pilot-hero-actions :is(a, button) {
  color: #fff !important;
  border-color: #ffffffb3 !important;
}

/* These controls sit over the dark embedded reconstruction stages and retain
   their existing white-on-dark treatment. */
#content-holder #rj-edr-case-1022
  #section_rjedrrestorecontexttitle
  :is(.rj-edr-stair-stage, .rj-edr-tram-stage) button {
  color: #fff !important;
}

#content-holder #rj-edr-case-1022
  :is(#section_rjedrrestorecredits, #section_rjedrrestorestory,
      #section_rjedrrestorecampaignfilm, #section_rjedrrestoreprocesstitle,
      #section_rjedrrestoreapplicationstitle, #section_rjedrrestorepartnertitle,
      #section_rjedrrestorecontexttitle, #section_rjedrhybrid, #section_rjedrrestoreend)
  :is(a, button, input, select):focus-visible {
  outline: 3px solid #171b1a !important;
  outline-offset: 3px;
}

#content-holder #rj-edr-case-1022 #section_rjedrrestoreintro:not([data-home-cover])
  :is(a, button, input, select):focus-visible {
  outline: 3px solid #171b1a !important;
  outline-offset: 3px;
}

#content-holder #rj-edr-case-1022
  #section_rjedrrestorecontexttitle
  :is(.rj-edr-stair-stage, .rj-edr-tram-stage) button:focus-visible {
  outline-color: #fff !important;
}

}

/* RJ_AUDIT_ACCESSIBILITY_REPAIR_CSS_END */
