@namespace html url(http://www.w3.org/1999/xhtml);

/* The site has both route-specific and standalone stylesheets. Layered important
   rules keep the reading palette consistent regardless of their load order. */
@layer site-readability {
  :root { color-scheme: light; }

  html|*,
  html|*::before,
  html|*::after,
  html|*::marker {
    color: #000 !important;
    text-shadow: none !important;
    text-decoration-color: currentColor !important;
  }

  /* Give text its own white surface, including captions positioned on photos.
     Empty decorative elements, native media and the shapes in diagrams keep
     their geometry and artwork. */
  html|*:not(:empty, img, video, audio, canvas, iframe, picture),
  :is(html, body, input, textarea, select, button, dialog) {
    background-color: #fff !important;
    background-image: none !important;
  }

  :is(input, textarea, select, button, option) {
    -webkit-text-fill-color: #000 !important;
    accent-color: #000 !important;
  }
  select { appearance: auto !important; }
  ::placeholder { color: #000 !important; opacity: 1 !important; }
  input:autofill { box-shadow: inset 0 0 0 100rem #fff !important; }
  :is(input, textarea, select, fieldset, hr, th, td, details),
  .rb-audiences li, .rb-benefit-grid > div, header.sitebar, .en-footer {
    border-color: #000 !important;
  }
  :is(button, [role="button"], .button, .ma-cta, .sb-proposal, .store-primary,
      .offer-button, .pf-button, .library-button, .customer-button, .work-action,
      .sc-action, .roi-result-cta, .rb-next-links a) {
    box-shadow: inset 0 0 0 1px #000 !important;
  }
  :is(p, dd, figcaption, td) a[href], a[href]:hover, summary:hover {
    text-decoration-line: underline !important;
    text-underline-offset: .16em;
  }
  :is([aria-pressed="true"], [aria-selected="true"], [aria-current="page"],
      label:has(input:checked), .roi-system.is-selected, .roi-modes label.active) {
    box-shadow: inset 0 -3px #000 !important;
  }
  :is(button, input, textarea, select, fieldset):disabled,
  [aria-disabled="true"], .ai-workspace .preview-note span {
    opacity: 1 !important;
  }
  :is(button, input, select, textarea):disabled, button[aria-disabled="true"] {
    border: 1px dashed #000 !important;
    box-shadow: none !important;
    cursor: not-allowed;
  }
  [aria-invalid="true"] { outline: 2px dashed #000 !important; }
  :focus-visible { outline: 3px solid #000 !important; outline-offset: 2px; }

  /* The diagram already supplies the desktop group labels on the photograph. */
  .rb-hero-visual .rb-system-heading, .rb-hero-visual .rb-system-toggle {
    background-color: transparent !important;
    box-shadow: none !important;
  }
  .rb-hero-visual .rb-system-sign {
    background-color: #fff !important;
    color: #000 !important;
  }
  @media (min-width: 64rem) {
    .rb-hero-visual .rb-system-sign { border: 1px solid #000; }
    .rb-hero-visual .rb-system-toggle:hover .rb-system-sign { outline: 1px solid #000; }
  }
}
