/* Article text links: existing native text/link controls still own typography
 * and colours. No extra class is needed when the customer adds a new link.
 * Exclude images, buttons and query-card navigation from this text treatment. */
:is(.single-post article.type-post > .entry-content, .editor-styles-wrapper) a[href]:not(:has(img, svg)):not(.wp-element-button, .wp-block-button__link, .wp-block-file__button, .endomines-media-card-download):not(.wp-block-query a, .wp-block-post-title a, .ct-breadcrumbs a) {
    font-weight: 700;
    text-decoration: none;
}
:is(.single-post article.type-post > .entry-content, .editor-styles-wrapper) a[href]:not(:has(img, svg)):not(.wp-element-button, .wp-block-button__link, .wp-block-file__button, .endomines-media-card-download):not(.wp-block-query a, .wp-block-post-title a, .ct-breadcrumbs a)::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: .9em;
    margin-inline-end: .4em;
    vertical-align: -.08em;
    background: var(--endomines-arrow-image, var(--endomines-context-arrow, url("assets/arrow-coral.svg"))) center / contain no-repeat;
}
/* A saved action-link style used on an article must not create two arrows. */
:is(.single-post article.type-post > .entry-content, .editor-styles-wrapper) p.is-style-endomines-action-link a::after {
    content: none;
}

/* Nuolilinkkien hover (tehtävä: Nuolilinkkien hover ja muotoilu 16.11.2026):
 * same behaviour as the shared Nostolinkki style. The text keeps its normal
 * colour on hover/focus and the arrow slides slightly towards the text. */
:is(.single-post article.type-post > .entry-content, .editor-styles-wrapper) a[href]:not(:has(img, svg)):not(.wp-element-button, .wp-block-button__link, .wp-block-file__button, .endomines-media-card-download):not(.wp-block-query a, .wp-block-post-title a, .ct-breadcrumbs a)::before {
    transition: transform .2s ease;
}
:is(.single-post article.type-post > .entry-content, .editor-styles-wrapper) a[href]:not(:has(img, svg)):not(.wp-element-button, .wp-block-button__link, .wp-block-file__button, .endomines-media-card-download):not(.wp-block-query a, .wp-block-post-title a, .ct-breadcrumbs a):is(:hover, :focus-visible) {
    --theme-link-hover-color: var(--theme-link-initial-color);
    color: var(--theme-link-initial-color);
    text-decoration: none;
}
:is(.single-post article.type-post > .entry-content, .editor-styles-wrapper) a[href]:not(:has(img, svg)):not(.wp-element-button, .wp-block-button__link, .wp-block-file__button, .endomines-media-card-download):not(.wp-block-query a, .wp-block-post-title a, .ct-breadcrumbs a):is(:hover, :focus-visible)::before {
    transform: translateX(.2em);
}
/* A Nostolinkki paragraph inside an article keeps the shared Nostolinkki arrow. */
:is(.single-post article.type-post > .entry-content, .editor-styles-wrapper) :is(p.is-style-endomines-action-link, p.is-style-endomines-action-link-light) a[href]::before {
    display: block;
    width: 17px;
    height: 15px;
    margin-inline-end: 0;
    vertical-align: baseline;
    background: var(--endomines-arrow-image) center / contain no-repeat;
}
:is(.single-post article.type-post > .entry-content, .editor-styles-wrapper) :is(p.is-style-endomines-action-link, p.is-style-endomines-action-link-light) a[href]:is(:hover, :focus-visible)::before {
    transform: translateX(6px);
}
@media (prefers-reduced-motion: reduce) {
    :is(.single-post article.type-post > .entry-content, .editor-styles-wrapper) a[href]::before { transition: none; }
}
