/* a11y.css — the things the source never needed because it never shipped.
   Loaded last on every page so it wins on equal specificity. */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100001;
  padding: 0.75rem 1.25rem;
  background: var(--color-amber-yellow);
  color: var(--color-surface-black);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  transform: translateY(-150%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--color-amber-yellow);
  outline-offset: 3px;
}

/* The overlay is clipped shut rather than hidden, so its links stay in the tab
   order while it is closed unless they are taken out of the tree. */
.c-Menu_menu[aria-hidden="true"] {
  visibility: hidden;
}

.c-Menu_menu:not([aria-hidden="true"]) {
  visibility: visible;
}

/* Buttons and links inherit the page's type; these two carry it back where a
   reset or a UA default would otherwise take over. */
.c-Navbar_toggle,
.c-MissionUseCases_question {
  font-family: inherit;
}

/* The source styled its footer rows as headings that happened to contain
   links; the anchors need the same ink or the browser paints them blue. */
.c-Footer_navRow a,
.c-Menu_subItem a,
.p-contact_infoCol a,
.p-contact_contactStack a,
.p-contact_careersCol a {
  color: inherit;
}

.p-contact_intro a,
.p-contact_closing a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}

/* The dial is decoration; a screen reader has the four sentences around it. */
.c-ImpactClock_dial {
  pointer-events: none;
}

/* Reduced motion: nothing sweeps, nothing pins, and every reveal is simply
   already done. The scripts skip their timelines; this covers the CSS half. */
@media (prefers-reduced-motion: reduce) {
  .revealer,
  .c-Preloader_overlay {
    display: none !important;
  }

  .c-Btn_animating {
    animation: none !important;
  }

  .c-ImpactSlider_slider {
    height: auto !important;
  }

  .c-ImpactSlider_sticky {
    position: static;
    height: auto;
    padding: var(--space-4xl) 2.75rem;
  }

  .c-ImpactSlider_images,
  .c-ImpactSlider_indicator {
    display: none;
  }

  .c-ImpactSlider_title {
    position: static;
    transform: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
  }

  .c-Minimap_section {
    height: auto !important;
  }

  .c-Minimap_viewport {
    position: static;
    height: auto;
    padding: var(--space-4xl) 2.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3xl);
  }

  .c-Minimap_siteInfo,
  .c-Minimap_imgPreview,
  .c-Minimap_minimap {
    position: static;
    transform: none;
  }

  .c-Minimap_imgPreview {
    width: min(32rem, 100%) !important;
  }

  .c-Minimap_minimap {
    width: 100%;
    height: auto;
  }

  .c-Minimap_indicator {
    display: none;
  }

  .c-Minimap_items {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    height: auto;
  }

  .c-Minimap_item {
    width: 60px;
    height: 60px;
  }
}
