/* Contextual content links only: navigation, ads and scripts are untouched. */
a.contextual-internal-link {
    color: #1769aa !important;
    font-weight: 700 !important;
    text-decoration: underline;
    text-underline-offset: .15em;
    overflow-wrap: anywhere;
}
a.contextual-internal-link:hover { color: #0e4f85 !important; }
a.contextual-internal-link:focus-visible {
    outline: 2px solid #1769aa;
    outline-offset: 3px;
    border-radius: 2px;
}
.related-content-links { font-size: .95em; }
[dir="rtl"] .related-content-links { text-align: right; }

@media (prefers-reduced-motion: reduce) {
    [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media (max-width: 575.98px) {
    /* Keep the existing decorative ribbon within the mobile page width. */
    .plan .card__ribbon { right: -.75em; }
}

.language .language-menu { width: 210px; max-width: calc(100vw - 24px); max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain; z-index: 1050; }
.language .language-menu a { padding-inline-end: 30px; }
.language .language-menu .language { overflow-wrap: anywhere; }
[dir="rtl"] #mainEmail, [dir="rtl"] input[type="email"] { direction: ltr; unicode-bidi: plaintext; }

/* Long translated words must wrap within their content boxes, not overflow the viewport. */
.header-title, .header-text, .mailbox-header-item p { overflow-wrap: anywhere; }
.plan-switcher .plan-switcher-item { width: auto; min-width: 90px; padding-inline: 8px; }
.plan .plan-price-free { overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
    /* Keep the complete Bengali/Ukrainian free-price label on a readable line. */
    [lang="bn"] .plan-price-free, [lang="uk"] .plan-price-free { font-size: 32px; }
}
