/* Evidence-guided accessibility improvements from optional local axe-core checks.
   Shared shell styling only; do not alter scientific figures or their visual encodings. */

/* The indigo header previously rendered several navigation labels just below
   4.5:1; fully opaque near-white text restores legibility on the same theme. */
.md-tabs__link,
.md-tabs__item .md-tabs__link:not(.md-tabs__link--active) {
  color: rgba(255, 255, 255, .96);
  opacity: 1;
}
.md-header__source .md-source {
  color: #fff;
  opacity: 1;
}
.md-copyright,
.md-footer-meta .md-copyright {
  color: rgba(255, 255, 255, .9);
  opacity: 1;
}
/* Always distinguish inline scientific/documentation links without relying
   exclusively on a subtle indigo text-versus-body contrast. */
.md-typeset :is(p, li, td, dd, blockquote) a:not(.md-button):not(.headerlink) {
  text-decoration: underline;
  text-decoration-thickness: .075em;
  text-underline-offset: .14em;
}
.md-typeset a:focus-visible,
.md-tabs__link:focus-visible,
.md-source:focus-visible {
  outline: 3px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}
/* Keep floating navigator and progress appearance unchanged: ARIA handled
   in a tiny progressive-enhancement script included below. */

/* Round-two contrast fixes grounded in Chromium axe findings. */
.md-header__source .md-source__fact,
.md-header__source .md-source__facts {
  color: rgba(255,255,255,.98);
  opacity: 1;
}
.md-typeset .et-connect-card .et-connect-boundary {
  color: var(--md-default-fg-color);
}
.md-typeset .et-landing-visual small {
  color: var(--md-default-fg-color);
}
[data-md-color-scheme="default"] .md-typeset .highlight :is(.na, .nv) {
  color: #595959;
}

/* Reproducible Chromium regression: Material can animate the repository
   version fact to a translucent #8792d0/#afb6e0/#9ba4d8 state on an indigo
   header. Keep both label and its parent fully opaque through navigation. */
.md-header .md-header__source .md-source__repository,
.md-header .md-header__source .md-source__facts,
.md-header .md-header__source .md-source__fact,
.md-header .md-header__source .md-source__fact--version {
  opacity: 1 !important;
  color: #ffffff !important;
}
.md-header .md-header__source .md-source__fact--version {
  transition: none !important;
}

/* The live Material search overlay is part of the tested browser journey.
   Axe-core observed a teal #00bda4 match on white at 2.38:1 and result
   metadata #6d6d6d on #ededed at 4.41:1 (both below 4.5:1 for body text).
   Target LIGHT-scheme search results only; preserve the dark palette. */
[data-md-color-scheme="default"] .md-search-result mark {
  color: #00695c !important;
}
[data-md-color-scheme="default"] .md-search-result__meta {
  color: #555555 !important;
}
