/* Accessibility fixes over Material defaults (Lighthouse / WCAG 2.2 AA). */

/* In-text links must be distinguishable without relying on color alone. */
.md-typeset a {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
.md-typeset a.headerlink,
.md-typeset .md-button {
  text-decoration: none;
}

/* Header tabs default to 70% opacity, which fails contrast on indigo. */
.md-tabs__link {
  opacity: 1;
}

/* DR-0031 download bar (overrides/main.html). Full-strength text colours only
   (no lightened greys) so contrast holds in both schemes; visible focus ring. */
.p2p-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-left: 4px solid var(--md-primary-fg-color);
  border-radius: 0.2rem;
  background: var(--md-code-bg-color);
  color: var(--md-typeset-color);
  font-size: 0.7rem;
  line-height: 1.5;
}
.p2p-downloads__label {
  font-weight: 700;
}
[dir] .md-typeset ul.p2p-downloads__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
[dir] .md-typeset ul.p2p-downloads__list > li {
  margin: 0;
  padding: 0;
  list-style: none;
}
[dir] .md-typeset ul.p2p-downloads__list > li + li::before {
  content: "\00B7" / "";
  padding: 0 0.5rem;
}
.p2p-downloads a {
  color: var(--md-typeset-a-color);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
.p2p-downloads a:hover {
  color: var(--md-accent-fg-color);
}
.p2p-downloads a:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 2px;
  border-radius: 0.1rem;
}
.p2p-downloads__meta {
  font-variant-numeric: tabular-nums;
}
.p2p-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media print {
  .p2p-downloads {
    display: none;
  }
}
