/**
 * _links.css — inline links in body copy, and the "Learn More →" link.
 * Owns: content a:not([class]) (underline weight, offset and hover color, visited); .is-style-rl-learn-more a.
 * Doesn't own: the link color (Astra Customizer → Global → Colors: navy); links on navy (_surfaces.css); links in
 * cards (_cards.css); button links (_buttons.css).
 * Depends on: global/_tokens.css.
 */

/* Inline links: navy, a 1px underline 3px below; hover turns the underline 2px teal (STYLE.md → Links). */
:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) a:not([class]) {
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: currentColor;
	text-underline-offset: 3px;
	transition: text-decoration-color var(--rl-ease), text-decoration-thickness var(--rl-ease);
}

:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) a:not([class]):is(:hover, :focus-visible) {
	text-decoration-thickness: 2px;
	text-decoration-color: var(--rl-color-alt-brand);
}

.entry-content a:not([class]):visited {
	color: var(--rl-color-visited);
}

/* Learn More: Mulish 600 in the brand green with an arrow, no underline; hover underlines it in teal, one line from the
   text through the arrow. The kit's sage text is 2.58:1 on white: the green darkened to 4.56:1 (Markup #7, #10,
   2026-10-28; SITE-STANDARDS.md → Deviations). */
:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) .is-style-rl-learn-more a:is(:link, :visited, [href]) {
	display: inline-block;
	color: var(--rl-color-accent-strong);
	font-weight: 600;
	text-decoration: none;
	text-underline-offset: 3px;
}

/* The arrow is text: a no-break space keeps it with the label, and the space's word spacing makes the 8px gap. Hover
   slides it 4px by widening that space, so the underline runs on under it — as a flex item 8px off, the arrow had an
   underline of its own, apart from the label's (Markup #44, #47, 2026-10-30). */
:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) .is-style-rl-learn-more a::after {
	content: "\a0→";
	content: "\a0→" / "";
	word-spacing: 0.2em;
	transition: word-spacing var(--rl-ease);
}

:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) .is-style-rl-learn-more a:is(:link, :visited, [href]):is(:hover, :focus-visible) {
	text-decoration: underline 2px var(--rl-color-alt-brand);
}

:is(.entry-content, .editor-styles-wrapper, [class^="astra-advanced-hook-"]) .is-style-rl-learn-more a:is(:hover, :focus-visible)::after {
	word-spacing: calc(0.2em + 4px);
}
