/* Locale controls and Arabic layout follow the existing LinkMine design. */
.lm-locale-control { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; max-width: 100%; color: #eef6f1; }
[data-language-toggle][hidden], [data-shared-language-toggle][hidden] { display: none !important; }
body:not(.menu-open) .mobile-menu, body:not(.lm-menu-open) .lm-mobile-menu { visibility: hidden; pointer-events: none; }
body.menu-open .mobile-menu, body.lm-menu-open .lm-mobile-menu { visibility: visible; pointer-events: auto; }
.lm-locale-native { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.lm-locale-trigger { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 0; width: max-content; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: #eef6f1; font: 500 13px/1.4 system-ui, sans-serif; cursor: pointer; text-align: start; white-space: nowrap; }
.lm-locale-trigger::before { content: ""; position: absolute; inset: 5px 0; z-index: -1; border: 1px solid rgba(232,249,239,.2); border-radius: 9px; background: rgba(239,255,246,.055); transition: background-color 150ms ease, border-color 150ms ease; }
.lm-locale-trigger:hover::before, .lm-locale-trigger[aria-expanded="true"]::before { background: rgba(225,255,238,.1); border-color: rgba(180,228,200,.4); }
.lm-locale-trigger:focus-visible { outline: 2px solid #95cfad; outline-offset: 2px; }
.lm-locale-chevron { flex: 0 0 auto; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .75; }
.lm-locale-trigger[aria-expanded="true"] .lm-locale-chevron { transform: rotate(225deg) translate(-1px,-1px); }
.lm-locale-menu { position: absolute; inset-block-start: calc(100% + 5px); inset-inline-end: 0; z-index: 150; min-width: 184px; max-width: calc(100vw - 24px); padding: 6px; border: 1px solid rgba(223,246,232,.2); border-radius: 12px; background: rgba(15,33,25,.97); color: #eef6f1; box-shadow: 0 14px 36px rgba(0,12,6,.25); backdrop-filter: blur(20px); }
.lm-locale-menu[hidden] { display: none !important; }
.lm-locale-option { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; color: #dce8df; font: 500 13px/1.4 system-ui, sans-serif; text-align: start; cursor: pointer; }
.lm-locale-option:hover, .lm-locale-option:focus-visible { background: rgba(226,255,238,.075); color: #fff; outline: none; }
.lm-locale-option:focus-visible { box-shadow: inset 0 0 0 1px #8abf9f; }
.lm-locale-option.is-selected { background: rgba(112,182,142,.15); color: #d4f5df; }
.lm-locale-check { width: 10px; height: 6px; margin-block-start: -3px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); visibility: hidden; }
.lm-locale-option.is-selected .lm-locale-check { visibility: visible; }
[dir="rtl"] body { font-family: Tahoma, "Geeza Pro", Arial, sans-serif; }
[dir="rtl"] :is(h1,h2,h3,p,span,a,button,label) { letter-spacing: normal; }
[dir="rtl"] :is(.card,.definition-card,.why-card,.pillar-card,.unit-card,.footer-column,.mp-engine-content,.lp-system-text,.lc-card,.faq-item,.legal-section) { text-align: start; }
[dir="rtl"] :is(.hero-copy,.hero-description,.lp-hero-copy,.lc-hero-copy,.mp-hero-copy) { text-align: start; }
[dir="rtl"] :is(input,textarea,select) { text-align: start; }
[dir="rtl"] .text-left { text-align: start; }
[dir="rtl"] .text-right { text-align: end; }
[dir="rtl"] :is(input[type="number"],input[type="email"],.lm-locale-select) { direction: ltr; }
[dir="rtl"] :is(.nav-dropdown-menu,.lm-nav-menu) { left: auto; right: 0; }
[dir="rtl"] :is(.lm-mobile-menu,.mobile-menu) { right: auto; left: 0; }
[dir="rtl"] .lm-mobile-menu { transform: translateX(-102%); }
[dir="rtl"] body.lm-menu-open .lm-mobile-menu { transform: translateX(0); }
[dir="rtl"] .mobile-menu { transform: translateX(-105%); }
[dir="rtl"] body.menu-open .mobile-menu { transform: translateX(0); }
[dir="rtl"] :is(.mp-engine-count,.sc-selection-meta,.ops-stat-value,[dir="ltr"]) { unicode-bidi: isolate; }
:is(.hero-title,.mp-hero-title,.lp-hero-title,.lc-hero-title) { overflow-wrap: break-word; }
html[lang="fr"] :is(.desktop-nav,.mp-nav,.lp-nav,.lc-nav,.ops-nav) { gap: clamp(12px,1.5vw,25px); }
.lm-document-language { display: inline-block; margin-inline-start: 8px; font-size: 12px; font-weight: 400; opacity: .75; }
.hero-shell .lm-document-language { color: rgba(255,255,255,.76); opacity: 1; }
.hero-shell .hero-actions > .lm-document-language { flex-basis: 100%; }
.lm-source-language { margin: 8px 0; font-size: 13px; color: #536359; }
/* At the stacked-layout breakpoint, the photo must reserve its own height. */
@media(max-width:1100px) {
 .hero-visual { min-height: 0; }
 .hero-shot { position: relative; right: auto; bottom: auto; }
}
/* Keep the Arabic reading order and a balanced two-column hero on small desktops. */
@media(min-width:901px) and (max-width:1100px) {
 [dir="rtl"] .hero-body { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: center; gap: 32px; padding-block: 48px 34px; }
 [dir="rtl"] .hero-copy { padding-top: 0; }
 [dir="rtl"] .hero-visual { justify-items: center; }
 [dir="rtl"] .hero-shot { width: min(100%,360px); }
}
@media(max-width:900px) {
 [dir="rtl"] .hero-visual { justify-items: center; }
}
@media(max-width:767px) {
 .hero-header-bar > .lm-locale-control,.mp-header > .lm-locale-control,.lp-header > .lm-locale-control,.lc-header > .lm-locale-control,.calculator-header > .lm-locale-control { margin-inline-start: auto; }
 .lm-locale-trigger { font-size: 12px; }
 .hero-header-bar { gap: 10px; }
}
@media(prefers-reduced-motion:reduce) { .lm-locale-trigger::before { transition: none; } }
