/* World Green bilingual enhancement v23. Scoped RTL treatment; no visual rebuild. */
.wg23-language {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 28px; padding: 4px 11px; border-radius: 999px;
    border: 1px solid rgba(19,155,113,.35);
    background: rgba(229,250,239,.94); color: #006d53;
    font-size: 12px; font-weight: 800; line-height: 1.3;
    text-decoration: none; white-space: nowrap;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.wg23-language:hover, .wg23-language:focus-visible {
    color: #fff; background: #07846c; transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,90,78,.17);
}
.wg23-language:focus-visible { outline: 2px solid #0a9b86; outline-offset: 3px; }
.wg23-language--mobile { width: max-content; margin: 12px 14px 10px; }
html[dir="rtl"] body { direction: rtl; text-align: right; }
html[dir="rtl"] .wgn11-popover__body,
html[dir="rtl"] .wgn11-drawer,
html[dir="rtl"] .wgf15-footer,
html[dir="rtl"] .wgca-page,
html[dir="rtl"] .wgpp-main,
html[dir="rtl"] .wgvm-page,
html[dir="rtl"] .wgs17,
html[dir="rtl"] .wg-about-editorial { direction: rtl; text-align: right; }
html[dir="rtl"] .wgn11-item, html[dir="rtl"] .wgn11-link,
html[dir="rtl"] .wgf15-footer__group ul,
html[dir="rtl"] .wg-project-card__body { direction: rtl; }
html[dir="rtl"] .wgs17-tab { text-align: right; }
html[dir="rtl"] .wgca-hero__inner, html[dir="rtl"] .wgvm-hero__inner,
html[dir="rtl"] .wgpp-hero__inner { text-align: right; }
html[dir="rtl"] .wgn11-item__arrow,
html[dir="rtl"] .wg-project-card__footer a,
html[dir="rtl"] .wgs17-tab__arrow { transform: scaleX(-1); }
html[dir="rtl"] .wgf15-footer__group h2::after { left: auto; right: 0; }
html[dir="rtl"] .wgf15-footer__wordmark small { letter-spacing: 0; }
html[dir="rtl"] .wgpp-tabs, html[dir="rtl"] .wgpp-search { direction: rtl; }
html[dir="rtl"] .wg-cinema__title { overflow-wrap: break-word; }
/* Removing breadcrumbs should not leave an empty placeholder strip. */
.wgvm-breadcrumb, .wgca-breadcrumb, .wgpp-breadcrumb { display: none !important; }
@media (max-width: 1279px) {
    .wgn21-utility .wg23-language { padding: 5px 9px; font-size: 11px; }
}
@media (max-width: 720px) {
    .wgn21-utility .wg23-language { display: none; }
    .wg23-language--mobile { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
    .wg23-language { transition: none; }
}
/* The v21.1 utility row has high specificity: explicitly style the language pill. */
body .wgn11-header .wgn21-utility a.wg23-language {
    border: 1px solid rgba(10,150,117,.30);
    background: #e9f8f1;
    padding: 5px 12px;
    border-radius: 999px;
    color: #006c56;
    font-weight: 850;
}
body .wgn11-header .wgn21-utility a.wg23-language:hover,
body .wgn11-header .wgn21-utility a.wg23-language:focus-visible {
    background: #07846c; color: #fff;
}
html[lang="ar"] body { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
/* Preserve predictable physical scrollLeft in the existing carousel JS. */
html[dir="rtl"] .wg-projects__viewport { direction: ltr; }
html[dir="rtl"] .wg-project-card__body { direction: rtl; }
