/*
 * Task066 — contextual links between the LIFE and IDEM views of one article.
 * The Elementor Single templates own placement. The shortcode owns URL/text.
 * Scope presentation to this class; don't affect Elementor's other links.
 */

a.wwts-content-crosslink,
.elementor a.wwts-content-crosslink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin-block: 10px 16px;
    padding: 10px 16px;
    border: 1px solid #7782a6;
    border-radius: 6px;
    background-color: #fffdfa;
    color: #404c76;
    font-family: var(--wwts-font-text, Lato, Arial, sans-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    opacity: 1;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a.wwts-content-crosslink::after,
.elementor a.wwts-content-crosslink::after {
    content: "\2192";
    flex: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

a.wwts-content-crosslink:hover,
.elementor a.wwts-content-crosslink:hover,
a.wwts-content-crosslink:focus-visible,
.elementor a.wwts-content-crosslink:focus-visible {
    color: #fff;
    border-color: #4d5987;
    background-color: #4d5987;
    text-decoration: none;
}

a.wwts-content-crosslink:focus-visible,
.elementor a.wwts-content-crosslink:focus-visible {
    outline: 2px solid #283554;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    a.wwts-content-crosslink,
    .elementor a.wwts-content-crosslink {
        min-height: 44px;
        padding: 11px 15px;
        margin-block: 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    a.wwts-content-crosslink,
    .elementor a.wwts-content-crosslink {
        transition: none;
    }
}
