/* Veva Support theme: links. Ported from the design system's class contract (components/bundle.css).
   Links in a Paragraph's text (div.veva-paragraph) and in an article (vs-prose) get the inline look without a class;
   a link the editor gave a vs- class (a button, a standalone link) keeps that look instead. */

/* ---------- Inline links ---------- */
.vs-link, .vs-prose a:not([class*="vs-"]), .vs .veva-paragraph a:not([class*="vs-"]) { color: var(--purple-base); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease-out; }
.vs-link:hover, .vs-prose a:not([class*="vs-"]):hover, .vs .veva-paragraph a:not([class*="vs-"]):hover { color: var(--purple-800); text-decoration-thickness: 2px; }
:is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) .vs-link, :is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) .vs-prose a:not([class*="vs-"]), .vs :is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) .veva-paragraph a:not([class*="vs-"]) { color: var(--pink-300); }
:is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) .vs-link:hover, .vs :is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) .veva-paragraph a:not([class*="vs-"]):hover { color: var(--white); }

/* ---------- Standalone, quiet and external ---------- */
.vs-link--more { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; text-decoration: none; }
.vs-link--more:hover { text-decoration: underline; }
.vs-link--more svg, .vs-link--more i { font-size: .8em; transition: transform .2s ease-out; }
.vs-link--more:hover svg, .vs-link--more:hover i { transform: translateX(3px); }
.vs-link--quiet { color: inherit; text-decoration: none; }
.vs-link--quiet:hover { text-decoration: underline; color: inherit; }
.vs-link--ext::after { content: "\2197"; display: inline-block; margin-left: 3px; font-size: .85em; text-decoration: none; }

/* ---------- Navigation link pill ---------- */
.vs-navlink { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-pill); color: inherit; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .15s ease-out; }
.vs-navlink:hover { background: var(--grey-100); }
:is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) .vs-navlink:hover { background: var(--grey-900); }
.vs-navlink[aria-current]::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 4px; height: 2px; background: var(--pink-base); }
:is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) .vs-navlink[aria-current]::after { background: var(--pink-300); }

/* ---------- Links without a class ----------
   A Link (a.text-link) the editor gave no theme class, and any other bare link, takes the inline colours. The
   selectors carry no specificity, so the styles of every component that draws its own links win. */
:where(.vs) :where(a.text-link:not([class*="vs-"]), a:not([class])) { color: var(--purple-base); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(.vs) :where(a.text-link:not([class*="vs-"]), a:not([class])):hover { color: var(--purple-800); }
:where(.vs) :where(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) :where(a.text-link:not([class*="vs-"]), a:not([class])) { color: var(--pink-300); }
:where(.vs) :where(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) :where(a.text-link:not([class*="vs-"]), a:not([class])):hover { color: var(--white); }
