/* Cyber Armor Systems — Links.  Requires cas-tokens.css.
   STANDALONE (.cas-link): nav/menus/cards — no underline at rest, underline on
   hover. INLINE (.cas-link-inline): running prose — underlined at rest, because
   colour alone does not clear the 3:1 link-vs-text floor (teal vs navy body 2.78;
   gold-light vs white body 1.72). Focus reuses --cas-theme-focus, like buttons. */

.cas-link {
  color: var(--cas-theme-link);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease;
}
.cas-link:hover {
  color: var(--cas-theme-link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.cas-link:active  { color: var(--cas-theme-link-hover); text-decoration: underline; }
.cas-link:visited { color: var(--cas-theme-link-visited); }
.cas-link:focus-visible {
  outline: 2px solid var(--cas-theme-focus);
  outline-offset: 2px;
  border-radius: var(--cas-radius-sm);
  text-decoration: none;
}
/* aria-disabled, not [disabled]: <a> has no disabled attribute. Disabled text is
   WCAG-exempt from contrast, so the muted token is intentional here. */
.cas-link[aria-disabled="true"] {
  color: var(--cas-theme-text-muted);
  text-decoration: none;
  cursor: not-allowed;
  pointer-events: none;
}

.cas-link-inline {
  color: var(--cas-theme-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 500;
}
.cas-link-inline:hover   { color: var(--cas-theme-link-hover); text-decoration-thickness: 2px; }
.cas-link-inline:visited { color: var(--cas-theme-link-visited); }
.cas-link-inline:focus-visible {
  outline: 2px solid var(--cas-theme-focus);
  outline-offset: 2px;
  border-radius: var(--cas-radius-sm);
}
