/* ===================================================================
   Language Switcher (English / Arabic)
   - Pill-shaped trigger sits in the global header (next to Contact Us)
   - Opens a small dropdown with two options
   - Inherits header colors so it works on transparent + solid headers
   =================================================================== */

.lang-switcher {
    position: relative;
    flex-shrink: 0;
    font-family: var(--yes-font-stack-mixed);
    z-index: 1500;
}

.lang-switcher-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem 0.65rem 1.05rem;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: inherit;
    font: inherit;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 4px 18px rgba(0, 0, 0, 0.12);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.lang-switcher-trigger:hover,
.lang-switcher-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 6px 22px rgba(0, 0, 0, 0.16);
    outline: none;
}

.lang-switcher.is-open .lang-switcher-trigger {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.lang-switcher-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    stroke-width: 1.65;
    opacity: 0.95;
}

.lang-switcher-arrow {
    flex-shrink: 0;
    width: 11px;
    height: 7px;
    margin-inline-start: 0.05rem;
    opacity: 0.9;
    transition: transform 0.25s ease;
}

.lang-switcher.is-open .lang-switcher-arrow {
    transform: rotate(180deg);
}

/* Dropdown panel */
.lang-switcher-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    inset-inline-end: 0;
    inset-inline-start: auto;
    min-width: 11.5rem;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(27, 28, 78, 0.08);
    box-shadow:
        0 16px 40px rgba(27, 28, 78, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.lang-switcher.is-open .lang-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher-dropdown li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lang-switcher-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 0;
    background: transparent;
    color: #1a1a2e;
    font: inherit;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    direction: ltr;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lang-switcher-option .lang-switcher-option-code + span {
    unicode-bidi: plaintext;
    flex: 1;
    min-width: 0;
}

.lang-switcher-option:hover,
.lang-switcher-option:focus-visible {
    background: rgba(72, 115, 183, 0.08);
    outline: none;
}

.lang-switcher-option.is-active {
    background: rgba(72, 115, 183, 0.14);
    color: #15153a;
    box-shadow: inset 0 0 0 1px rgba(72, 115, 183, 0.28);
}

.lang-switcher-option-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 6px;
    background: rgba(72, 115, 183, 0.14);
    color: #3d63a8;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
}

.lang-switcher-option.is-active .lang-switcher-option-code {
    background: #4873b7;
    color: #ffffff;
}

/* Mobile: keep switcher accessible inside the slide-in drawer */
@media (max-width: 767px) {
    .lang-switcher {
        margin: 1.25rem auto 0;
        align-self: center;
        width: fit-content;
    }
    .lang-switcher-trigger {
        padding: 0.8rem 1.35rem 0.8rem 1.4rem;
        font-size: 1.05rem;
        gap: 0.7rem;
    }
    .lang-switcher-dropdown {
        inset-inline-end: auto;
        inset-inline-start: 50%;
        transform: translate(-50%, -6px);
        min-width: 12rem;
    }
    .lang-switcher.is-open .lang-switcher-dropdown {
        transform: translate(-50%, 0);
    }
}

/* ===================================================================
   RTL adjustments when Arabic is active
   - Most layouts auto-mirror via dir="rtl" on <html>
   - These rules fix specific text-alignment / flex-direction quirks
   =================================================================== */
html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .top-header,
html[dir="rtl"] .top-header h1,
html[dir="rtl"] .top-header p,
html[dir="rtl"] .top-header div {
    text-align: right;
}

html[dir="rtl"] .top-header div {
    margin-left: 0;
    margin-right: 5%;
    /* align-items: flex-end; */
}

html[dir="rtl"] .hero-frame-phase--start,
html[dir="rtl"] .hero-frame-phase--end {
    /* In Arabic, text sits on the RIGHT, character/frame is mirrored to the LEFT */
    left: auto;
    right: clamp(2rem, 5vw, 5rem);
    text-align: right;
    max-width: min(94vw, 70rem);
    padding-inline-start: clamp(0.75rem, 3vw, 2rem);
    padding-inline-end: clamp(0.75rem, 2.5vw, 1.75rem);
    box-sizing: border-box;
}

/* Arabic: the desktop <canvas> is mirrored at DRAW time inside
   hero-frame-animation.js (via ctx.scale(-1, 1)) — that approach avoids
   any CSS-transform composition conflicts with the later xPercent slide-out
   tween. The mobile fallback is a real <img>, so a CSS flip is needed. */
html[dir="rtl"] .hero-frame-img {
    transform: scaleX(-1);
    transform-origin: 50% 50%;
    object-position: 100% top;
}

/* Arabic: discover CTA mirrors to the right edge */
html[dir="rtl"] .hero-frame-discover {
    left: auto;
    right: clamp(2rem, 5vw, 5rem);
}

html[dir="rtl"] .hero-video-text-mask {
    right: -115rem;
}

html[dir="rtl"] .hero-webgl-canvas-wrap {
    right: 26rem;
}
html[dir="rtl"] .hero-webgl-center-logo {
    left: 41.7%;
}

/* Arabic: hero block from Ghost (.top-header) — avoid clipping at viewport edge */
html[dir="rtl"] .hero-frame-section .top-header > div {
    max-width: min(52rem, 92vw);
    width: auto;
    margin-right: clamp(1rem, 4vw, 5%);
    padding-inline-end: 0.25rem;
}

html[dir="rtl"] .hero-frame-section .top-header .ar-vr-head {
    margin-top: 1.5rem !important;
}   

/* ── Arabic .ar-vr hero titles (Ghost CMS headings) ───────────────
   Latin design uses text-transform:uppercase + duplicate -webkit-text-stroke
   pseudo-layers. That breaks Arabic ligatures and causes “double” overlap.
   In Arabic: one clean line, wrap allowed, no fake outline copies. ── */
body.lang-ar .ar-vr,
body.lang-ar .top-header h1.ar-vr {
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.22;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
    font-weight: 900;
    font-size: clamp(2rem, 8vw, 7rem);
    padding-top: 0.2em;
    margin-top: -0.2em;
    text-shadow:
        0 2px 14px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.35);
}

body.lang-ar .ar-vr::before,
body.lang-ar .ar-vr::after {
    content: none !important;
    display: none !important;
}

body.lang-ar .tech-head,
body.lang-ar .service-ar-vr-tech-head {
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.35;
    margin-top: 0.35em;
    margin-bottom: 0;
}

body.lang-ar .service-ar-vr {
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
    font-size: clamp(2rem, 7vw, 4rem);
    white-space: normal;
    overflow-wrap: break-word;
}

html[dir="rtl"] .service-ar-vr-top-header {
    width: 100%;
    max-width: min(72rem, 96vw);
    padding-inline: clamp(1rem, 4vw, 2rem);
    box-sizing: border-box;
}

html[dir="rtl"] .hero-reveal-subtitle,
html[dir="rtl"] .hero-reveal-description,
html[dir="rtl"] .reveal-ai-core-container {
    margin-left: 0;
    margin-right: 1rem;
    text-align: right;
}

html[dir="rtl"] .hero-webgl-slide,
html[dir="rtl"] .hero-webgl-heading,
html[dir="rtl"] .hero-webgl-body {
    text-align: right;
}

html[dir="rtl"] .hero-webgl-heading {
    font-size: clamp(1.5rem, 2.4vw, 4rem) !important;
    font-weight: 900 !important;
}
html[dir="rtl"] .hero-webgl-body {
    font-size: clamp(1.05rem, 1.6vw, 1.75rem) !important;
}

html[dir="rtl"] .hero-webgl-slide {
    left: auto;
    right: clamp(2.5rem, 7vw, 6rem);
}

html[dir="rtl"] .hero-webgl-dots {
    left: auto;
    right: clamp(1.25rem, 3.5vw, 2.5rem);
}

html[dir="rtl"] .hero-webgl-discover {
    right: auto;
    left: clamp(1.5rem, 4vw, 3rem);
}

html[dir="rtl"] .gh-head-menu .nav a {
    font-size: 2rem !important;
}

/* Smart-video stack content alignment */
html[dir="rtl"] .smart-video-slide__content,
html[dir="rtl"] .scroll-main-title,
html[dir="rtl"] .scroll-subtitle {
    text-align: right;
    font-family: var(--yes-font-stack-mixed) !important;
}

/* Ghost card-posts flip cards — RTL + room for longer Arabic lines */
body.lang-ar .flip-card-front {
    align-items: flex-end;
}

body.lang-ar .flip-card-front-content {
    text-align: right;
    margin-inline-start: auto;
    margin-inline-end: 0;
    width: 100%;
    max-width: 100% !important;
    padding: 1.25rem 1.35rem;
    box-sizing: border-box;
}

body.lang-ar .flip-card-label {
    text-transform: none;
    letter-spacing: 0.05em;
    line-height: 1.35;
}

body.lang-ar .flip-card-title {
    font-size: clamp(1.2rem, 3.8vw, 1.55rem);
    line-height: 1.32;
    word-break: normal;
    overflow-wrap: break-word;
    padding-bottom: 1.35rem;
}

body.lang-ar .flip-card-back {
    align-items: flex-end;
    text-align: right;
}

body.lang-ar .flip-card-back-title {
    font-size: clamp(1.25rem, 3.6vw, 1.65rem);
    line-height: 1.32;
    word-break: normal;
    overflow-wrap: break-word;
}

html[dir="rtl"] .flip-card-back-title {
    width: 100% !important;
    text-align: right;
}
html[dir="rtl"] .minds-container {
    justify-content: flex-start;
}
html[dir="rtl"] .minds-content p {
    line-height: 2.62;
}
html[dir="rtl"] .minds-btn {
    margin-top: 3.15rem auto 0;
}

html[dir="rtl"] .english-para, html[dir="rtl"] .digital-english-para {
    display: none !important;
}

html[dir="rtl"] .digital-arabic-head {
    font-size: 130px !important;
}
html[dir="rtl"] .digital-sub-head {
    font-size: 80px !important;
}
html[dir="rtl"] .iot-arabic-heading {
    font-size: 80px !important;
}

html[dir="rtl"] .iot-arabic-hero {
    width: 100rem !important;
    max-width: min(91rem, 96vw) !important;
}

html[dir="rtl"] .iot-arabic-subhead {
    font-size: 85px !important;
}

html[dir="rtl"] .engineering-card {
    text-align: right !important;
}

html[dir="rtl"] .engineering-approach-item::before {
    right: -118px !important;
}
html[dir="rtl"] .signal-engineering-analysis .engineering-approach {
    margin-right: -11rem !important;
    margin-left: 0rem !important;
}

html[dir="rtl"] .signal-approach-arabic .engineering-approach-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html[dir="rtl"] .signal-approach-arabic .engineering-approach-item::before {
    right : -153px !important;
}

html[dir="rtl"] .engineering-card__desc {
    font-size: 1.75rem !important;
}

html[dir="rtl"] .engineering-approach-item__title {
    font-size: 2rem !important;
}

html[dir="rtl"] .engineering-approach-item__desc {
    font-size: 1.5rem !important;
}

body.lang-ar .flip-card-desc {
    text-align: right;
    line-height: 1.65;
    font-family: var(--yes-font-stack-mixed);
    font-weight: 500 !important;
}

body.lang-ar .flip-card-btn::after {
    content: "\2190";
}

body.lang-ar .flip-card-btn:hover::after {
    transform: translateX(-4px);
}
html[dir="rtl"] .smart-video-stack .scroll-main-title {
    top: -50%;
    text-align: center !important;
    font-family: var(--yes-font-stack-mixed) !important;
}

html[dir="rtl"] .smart-video-stack .cta-button.scroll-cta-button {
    margin: 2rem 15rem 0rem 0rem !important;
}

@media (min-width: 1700px) {
    html[dir="rtl"] .smart-video-stack .cta-button.scroll-cta-button {
        margin: 2rem 17.5rem 0rem 0rem !important;
    }
}

/* Stats section (dark + globe GIF) — Ghost CMS figures row */
body.lang-ar .stats-section h2,
body.lang-ar .stats-section .stats-heading {
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.35;
    max-width: min(32em, 96vw);
    direction: rtl;
    unicode-bidi: isolate;
}

body.lang-ar .stats-section .stats-heading__line,
body.lang-ar .stats-section .stats-heading-accent,
body.lang-ar .stats-section .stats-heading__accent {
    unicode-bidi: isolate;
    direction: rtl;
}

body.lang-ar .stats-section .stat-card p {
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
}

html[dir="rtl"] .stats-container-data {
    flex-direction: row-reverse;
}

/* Client reviews section — RTL + Arabic typography
   Header row DOM order is: [title, .view-all-btn]. With html[dir=rtl], default
   flex row places the first item on the RIGHT — do NOT use row-reverse here
   (that was pinning the title on the left). */
body.lang-ar .reviews-heading {
    text-transform: none;
    letter-spacing: 0.03em;
    line-height: 1.35;
    max-width: min(28em, 100%);
    text-align: right;
}

html[dir="rtl"] .reviews-card-main .container > div:first-child {
    flex-direction: row;
    direction: rtl;
}

/* Card header DOM: [avatar, .review-card-info]. In RTL, avatar sits on the right. */
html[dir="rtl"] .review-card-header {
    flex-direction: row;
    direction: rtl;
}

html[dir="rtl"] .review-card-info {
    text-align: right;
    align-items: flex-end;
}

html[dir="rtl"] .review-card-body,
html[dir="rtl"] .review-card-text {
    text-align: right;
}

body.lang-ar .view-all-btn {
    flex-direction: row;
    direction: rtl;
}

body.lang-ar .view-all-btn::after {
    content: "\2190";
    margin-inline-end: 0.35em;
    margin-inline-start: 0;
}

body.lang-ar .view-all-btn:hover::after {
    transform: translateX(-4px);
}

/* Resources & Insights — RTL layout + typography (Ghost + insights-cards) */
body.lang-ar .insights-heading {
    text-transform: none;
    letter-spacing: 0.03em;
    line-height: 1.35;
}

html[dir="rtl"] .insights-card-main .container > div:first-child p {
    text-align: center;
}

html[dir="rtl"] .insights-card-main .bottom-row {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .insight-card-title-row {
    flex-direction: row;
    direction: rtl;
}

html[dir="rtl"] .insight-card-title {
    text-align: right;
}

body.lang-ar .insight-card-arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .insight-card-excerpt {
    text-align: right;
    unicode-bidi: plaintext;
}

html[dir="rtl"] .insight-card-author {
    flex-direction: row;
    direction: rtl;
}

html[dir="rtl"] .insight-card-meta {
    text-align: right;
    align-items: flex-end;
}

html[dir="rtl"] .insight-card-author-name,
html[dir="rtl"] .insight-card-date {
    text-align: right;
}

/* Supporting Vision 2030 block — Arabic heading + stat grid */
body.lang-ar .supporting-vision .left-content h1 {
    text-transform: none;
    letter-spacing: 0.04em;
    line-height: 1.2;
    font-size: 5rem !important;
}

html[dir="rtl"] .supporting-vision .left-content {
    /* align-items: flex-end; */
    text-align: right;
}

html[dir="rtl"] .supporting-vision .left-content p {
    text-align: right;
    font-size: clamp(0.9375rem, 0.2vw + 2rem, 2rem) !important;
    line-height: 2.5 !important;
}

html[dir="rtl"] .supporting-vision__stats {
    text-align: right;
    justify-items: end;
}

html[dir="rtl"] .supporting-vision-btn {
    font-size: clamp(0.9375rem, 0.15vw + 1.86rem, 2rem) !important;
    padding: 0.55rem 2.5rem !important;
}

/* Transform-digital section */
html[dir="rtl"] .transform-digital .left-content,
html[dir="rtl"] .transform-digital__card,
html[dir="rtl"] .transform-digital__card-text,
html[dir="rtl"] .transform-digital__card-title {
    text-align: right;
}

/* Footer */
html[dir="rtl"] .site-footer-custom,
html[dir="rtl"] .footer-content,
html[dir="rtl"] .footer-top,
html[dir="rtl"] .footer-links-column,
html[dir="rtl"] .footer-address,
html[dir="rtl"] .footer-company-name {
    text-align: right;
}

html[dir="rtl"] .footer-links-column ul {
    padding-right: 0;
}

/* Header navigation menu items — RTL: keep DOM order but flow right-to-left
   so Ghost-rendered items read: الرئيسية | من نحن | الخدمات | المشاريع
   matching the same left-to-right order as the English nav. */
html[dir="rtl"] #gh-head .gh-head-menu .nav {
    flex-direction: row;
    direction: rtl;
}

html[dir="rtl"] .nav-dropdown-menu {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    direction: rtl;
}

html[dir="rtl"] .nav-dropdown-link {
    text-align: right;
    flex-direction: row;
    direction: rtl;
    align-items: flex-start;
}

html[dir="rtl"] .nav-dropdown-text {
    text-align: right;
    align-items: flex-start;
}

html[dir="rtl"] .nav-dropdown-title,
html[dir="rtl"] .nav-dropdown-desc {
    text-align: right;
}

html[dir="rtl"] .nav-dropdown-title {
    white-space: normal;
}

/* Keep latin-only items (logos, phone numbers, emails) flowing LTR */
html[dir="rtl"] .gh-head-logo,
html[dir="rtl"] .footer-logo,
html[dir="rtl"] [href^="tel:"],
html[dir="rtl"] [href^="mailto:"] {
    direction: ltr;
    unicode-bidi: embed;
}

/* The huge hero text-through-video heading is designed for the long
   English phrase. Shrink it in Arabic so it remains visually balanced. */
html[dir="rtl"] .hero-video-text-mask h1 {
    font-size: clamp(8rem, 24vw, 35rem);
    letter-spacing: 0;
    position: absolute;
    right: 115rem;
}
html[dir="rtl"] .hero-frame-video-text {
    right: -2rem;
}

/* Page hero alignment */
html[dir="rtl"] .page-hero,
html[dir="rtl"] .page-hero-content,
html[dir="rtl"] .page-hero-body {
    text-align: right;
}

@media (max-width: 768px) {
    body.lang-ar .ar-vr,
    body.lang-ar .top-header h1.ar-vr {
        font-size: clamp(1.65rem, 7.5vw, 2.85rem);
        line-height: 1.3;
    }

    html[dir="rtl"] .nav-dropdown-menu {
        transform: translateX(0%) !important;
    }
    html[dir="rtl"] .service-ar-vr-top-header {
        width: 100% !important;
    }

    html[dir="rtl"] .gh-head-logo {
    direction: rtl;
    unicode-bidi: embed;
}

    html[dir="rtl"] .hero-frame-video-text {
    right: 0rem;
    }
    html[dir="rtl"] .logos-section {
    height: 560px !important;
    }
    html[dir="rtl"] .hero-webgl-canvas-wrap {
    right: 0rem !important;
    }
    html[dir="rtl"] .hero-webgl-center-logo {
    left: 21.5rem !important;
    margin-top: 1.5rem !important;
    }

    html[dir="rtl"] .hero-frame-phase--start,
    html[dir="rtl"] .hero-frame-phase--end {
        left: auto;
        right: clamp(1.25rem, 5vw, 2rem);
        max-width: 92vw;
        padding-inline-start: 0.5rem;
        padding-inline-end: 0.5rem;
    }
    html[dir="rtl"] .stats-container-data {
    flex-direction: column !important;
    }   

    html[dir="rtl"] .hero-frame-section .top-header > div {
        /* align-items: flex-end !important; */
        text-align: right !important;
    }

    /* Service posts with .page-hero (AR/VR, digital landscape, IoT): full-width hero + clear stack under fixed header */
    html[dir="rtl"] body.lang-ar.post-template .page-hero {
        background-size: cover;
        background-position: center center;
    }

    html[dir="rtl"] body.lang-ar.post-template .page-hero-content {
        width: 100%;
        max-width: 100%;
    }

    html[dir="rtl"] body.lang-ar.post-template .page-hero-body {
        width: 100%;
        max-width: 100%;
        align-items: flex-end;
    }

    html[dir="rtl"] body.lang-ar.post-template .page-hero-body h1,
    html[dir="rtl"] body.lang-ar.post-template .page-hero-body h2 {
        text-align: right;
    }

    html[dir="rtl"] body.lang-ar.post-template .page-hero-body p {
        text-align: right;
        max-width: 100%;
    }

    html[dir="rtl"] body.lang-ar.post-template .page-hero-body a {
        align-self: flex-end;
    }
}

/* Arabic UI: font families are set in css/site/typography-variables.css (:root). */
body.lang-ar,
body.lang-ar p,
body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4,
body.lang-ar h5,
body.lang-ar h6,
body.lang-ar a,
body.lang-ar span,
body.lang-ar li,
body.lang-ar button {
    font-family: var(--yes-font-stack-mixed);
}

/* Rules elsewhere still put 29LT Bukra first — override so Arabic uses --yes-font-arabic. */
body.lang-ar .tech-head,
body.lang-ar .ar-vr,
body.lang-ar .top-header h1.ar-vr,
body.lang-ar .top-header h1,
body.lang-ar .hero-reveal-subtitle,
body.lang-ar .service-ar-vr-tech-head,
body.lang-ar .page-hero-body h1,
body.lang-ar .page-hero-body h2,
body.lang-ar .page-hero-body h3,
body.lang-ar .page-hero-body h4,
body.lang-ar .service-head {
    font-family: var(--yes-font-stack-mixed);
}

/* =====================================================================
   Bilingual Ghost HTML: two copies (e.g. EN + AR hero). Mark wrappers with
   data-yes-lang="en" | "ar". Hidden copy must not run through the translator
   (handled in language-switcher.js).
   ===================================================================== */
html[dir="rtl"] [data-yes-lang="en"],
body.lang-ar [data-yes-lang="en"] {
    display: none !important;
}

html:not([dir="rtl"]) [data-yes-lang="ar"],
body.lang-en [data-yes-lang="ar"] {
    display: none !important;
}
