/* Public text links: two families, contextual colours.
   Loaded after route styles so this is the final screen-style contract.
   Cards, primary nav, button controls and print styles are intentionally separate. */
@media screen {
  :is(.msg__inline-link, .insight-panel__body a, .expandable__toggle,
      .link-accent, .insight-body a, .contact-fact a, .contact-careers-note a,
      .case-page__missing-link, .company-panel__link, .work-empty__body a,
      .screen--legal a, .screen--legal .contact-block a, .brief-insight__open,
      .apply-footer a, .apply-error a, .apply-alt__body a, .apply-confirmation__hint a) {
    color: var(--link-accent, var(--be-yellow));
    font-weight: var(--fw-medium);
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
    border-bottom: 0;
    transition: opacity .15s var(--ease);
  }
  :is(.screen--legal, .brief-insight__open, .apply-footer, .apply-error,
      .apply-alt__body, .apply-confirmation__hint) {
    --link-accent: var(--sec-finance);
  }
  .screen--legal .contact-block { --link-accent: var(--be-yellow); }
  .work-empty__body { --link-accent: currentColor; }
  :is(.msg__inline-link, .insight-panel__body a, .expandable__toggle,
      .link-accent, .insight-body a, .contact-fact a, .contact-careers-note a,
      .case-page__missing-link, .company-panel__link, .work-empty__body a,
      .screen--legal a, .screen--legal .contact-block a, .brief-insight__open,
      .apply-footer a, .apply-error a, .apply-alt__body a, .apply-confirmation__hint a):hover {
    color: var(--link-accent, var(--be-yellow));
    text-decoration-color: currentColor;
    opacity: .85;
  }
  :is(.msg__inline-link, .insight-panel__body a, .expandable__toggle,
      .link-accent, .insight-body a, .contact-fact a, .contact-careers-note a,
      .case-page__missing-link, .company-panel__link, .work-empty__body a,
      .screen--legal a, .screen--legal .contact-block a, .brief-insight__open,
      .apply-footer a, .apply-error a, .apply-alt__body a, .apply-confirmation__hint a):focus-visible {
    outline: revert;
    outline-offset: revert;
  }

  :is(.insight-back a, .case-page__back a, .agent-intro__browse,
      .footer-bar__link, body.theme-paper .footer-bar__link,
      .screen--legal .legal-footer__nav a) {
    color: var(--link-muted, rgba(255,255,255,.6));
    font-family: var(--sans);
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
    letter-spacing: var(--ls-body);
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 0;
    opacity: 1;
    transition: color .15s var(--ease);
  }
  body.theme-paper .footer-bar__link,
  .screen--legal .legal-footer__nav a {
    --link-muted: rgba(14,14,16,.6);
    --link-accent: var(--sec-finance);
  }
  :is(.insight-back a, .case-page__back a, .agent-intro__browse,
      .footer-bar__link, body.theme-paper .footer-bar__link,
      .screen--legal .legal-footer__nav a):hover,
  .screen--legal .legal-footer__nav a.is-current {
    color: var(--link-accent, var(--be-yellow));
    opacity: 1;
  }
  :is(.insight-back a, .case-page__back a, .agent-intro__browse,
      .footer-bar__link, body.theme-paper .footer-bar__link,
      .screen--legal .legal-footer__nav a):focus-visible {
    outline: 2px solid var(--link-accent, var(--be-yellow));
    outline-offset: 4px;
  }
}
