/* Shared by modern and legacy pages. Decorative glyphs must never inherit a
   link underline: removing decoration on the icon alone cannot cancel one
   painted by its parent. Keep the underline on a separate text label. */
a.sr-text-link,
a:has(> .material-symbols-outlined, > .material-icons, > .fa, > .fas, > .far, > .fab, > .bi, > svg, > [aria-hidden="true"]),
a.bi {
  text-decoration: none !important;
}

a.sr-text-link > .sr-link-label {
  min-width: 0;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  text-decoration-skip-ink: auto;
  transition: text-decoration-color 160ms ease;
}

a.sr-text-link:is(:hover, :focus-visible) > .sr-link-label {
  text-decoration-color: currentColor;
}

a.sr-text-link > :is(.material-symbols-outlined, .material-icons, .fa, .fas, .far, .fab, .bi, svg) {
  flex-shrink: 0;
  text-decoration: none;
}

a.sr-text-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  a.sr-text-link > .sr-link-label { transition: none; }
}
