/* ==========================================================================
   Text Link component sheet
   Shared grid/table styles live in sheet.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Link demo atoms
   The component bounding box (hit area) is visible in all states.
   Default/Hover/Visited/Disabled use a dashed border-default indicator;
   Focus uses a solid border/focus stroke — no padding so the ring sits
   flush with the bounding box edge, matching the Figma component.
   -------------------------------------------------------------------------- */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 2px;
  font-family: var(--type-family-primary), system-ui, sans-serif;
  font-size: var(--type-body-md-size);
  line-height: var(--type-body-md-line-height);
  color: var(--text-link);
  text-decoration: underline;
  text-decoration-thickness: var(--border-width-strong);
  text-underline-offset: var(--border-width-strong);
  text-decoration-skip-ink: none;
  white-space: nowrap;
  box-sizing: border-box;
  border: none;
}

.text-link:hover,
.text-link--hover {
  color: var(--text-link-hover);
}

.text-link--visited {
  color: var(--text-link-visited);
}

.text-link:focus-visible,
.text-link--focus,
.text-link--focus-hover {
  padding-top: 0;
  padding-bottom: 0;
  border: none;
  outline: 3px solid var(--border-focus);
  outline-offset: 0;
  border-radius: var(--radius-xs);
}

.text-link:focus-visible,
.text-link--focus {
  color: var(--text-link);
}

.text-link:focus-visible:hover,
.text-link--focus-hover {
  color: var(--text-link-hover);
}

.text-link--disabled {
  color: var(--text-disabled);
  cursor: not-allowed;
  pointer-events: none;
}
