/* Scoped audit fixes. Original palette, typography and composition are retained. */

/* Small phase numbers need 4.5:1, including the selected/comparison states. */
gabster-evolution .ev-phase span:first-child,
gabster-evolution .ev-phase[aria-pressed="true"] span:first-child,
gabster-evolution[data-mode="compare"] .ev-phase span:first-child {
  color: var(--ev-muted);
}

/* Reuse the original dark ink on translucent annotation panels. */
.ev-annotations .ev-trace-route li,
.ev-annotations .ev-trace-step-state,
.ev-annotations .ev-trace-route .is-complete .ev-trace-step-state,
.ev-annotations .ev-note-number {
  color: var(--ev-ink);
}

/* Terracotta on the light paper fails 4.5:1 for these small text links. */
.evolution-section .text-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Keyboard skip navigation lands on main, with a visible focus indicator. */
main:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: -3px;
}

