/* components/01-atoms/link/link.css
   Extracted from the GovTheme marketing site by scripts/extract-css.mjs.
   Source: css/components.css (42-52)
   Rules are verbatim and in their original order - the split must not change
   what any page renders (govtheme-marketing/scripts/check-cascade.mjs). */

/* ─────────────────────────── LINKS ─────────────────────────── */
.gt-link {
  color: var(--gt-link); text-decoration: underline; text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--gt-link) 40%, transparent);
  border-radius: 3px; transition: text-decoration-color .15s, color .15s;
}
.gt-link:hover { text-decoration-color: currentColor; }
/* In small, tight text (alert and banner bodies) one line is under 24px. The
   negative margin keeps the 24px box from making its line taller, which drops
   the text below the alert's icon; it is 0 wherever a line is 24px or more. */
.gt-link--arrow { font-weight: var(--gt-w-semibold); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; margin-block: min(0px, (1lh - 24px) / 2); }
.gt-link--arrow::after { content: "→"; transition: transform .18s; }
.gt-link--arrow:hover::after { transform: translateX(3px); }

/* RTL: the arrow points the other way, and travels the other way on hover.
   Adopted from the Drupal theme, which had this and the kit did not. */
[dir="rtl"] .gt-link--arrow::after { content: "←"; }
[dir="rtl"] .gt-link--arrow:hover::after { transform: translateX(-3px); }
