/* Existing site palette, extended for language labels and RTL reading. */
.ag-language-panel { min-width:220px; max-height:min(70vh,460px); overflow-y:auto; padding:8px; background:#fff; color:#14140f; box-shadow:0 14px 40px #152d1521; }
.ag-language-panel a { display:flex; justify-content:space-between; align-items:center; min-height:44px; text-align:start; font:14px/1.5 system-ui,sans-serif; border-radius:10px; padding:10px 14px; color:#14140f; text-decoration:none; }
.ag-language-panel a.cur { background:#f0f5e9; color:#064e04; font-weight:600; }
.ag-language-panel a.cur::after { content:'✓'; margin-inline-start:20px; }
.ag-language-panel a:hover { background:#f5f5eb; }
.ag-language-panel a:focus-visible,.ag-language-button:focus-visible { outline:2px solid #064e04; outline-offset:2px; }
.lang-wrap:not(.ag-language-enhanced):focus-within .ag-language-panel { display:block; }
html[data-agro-locale]:not([data-agro-locale="en"]) .topbar .topnav { gap:clamp(8px,1.3vw,22px); }
html[data-agro-locale]:not([data-agro-locale="en"]) .topbar .topnav a { white-space:normal; }
html[data-agro-locale]:not([data-agro-locale="en"]) :is(h1,h2,h3,.cta-lime,.pd-subtitle) { overflow-wrap:break-word; }
html[lang="zh-Hans"] body { font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif; }
html[dir="rtl"] body { font-family:Tahoma,Arial,system-ui,sans-serif; }
html[dir="rtl"] :is(h1,h2,h3,h4) { letter-spacing:normal; }
html[dir="rtl"] :is(.pd-b-copy,.pd-b-story,.landing-context,.article-content,.contact-intro,.ag-request-fields) { text-align:right; }
html[dir="rtl"] :is(input[type="email"],input[type="tel"],input[type="number"],.pd-capacity-item dd,.pd-facts dd,.pd-b-story h1) { direction:ltr; unicode-bidi:plaintext; }
html[dir="rtl"] .ag-language-panel { right:auto; left:0; }
html[dir="rtl"] .topbar .topnav { margin-right:0; margin-left:auto; }
html[dir="rtl"] :is(.pd-crumb,.category-crumbs) { flex-wrap:wrap; }
@media(max-width:640px) {
  .ag-language-panel { position:fixed; top:64px; right:0; width:min(260px,calc(100vw - 40px)); min-width:0; }
  html[dir="rtl"] .ag-language-panel { right:auto; left:0; }
  html[data-agro-locale] .topbar .cta-lime { max-width:112px; white-space:normal; line-height:1.25; text-align:center; }
  html[data-agro-locale] .topbar .logo { width:80px; height:auto; }
}
/* Carousel positions use left-to-right pixel offsets; Arabic copy keeps RTL reading. */
html[dir="rtl"] .au-market-viewport { direction:ltr; }
html[dir="rtl"] .au-market-copy { direction:rtl; text-align:right; }
@media(max-width:640px) {
  html[dir="rtl"] .au-globe-stage { margin-left:auto; margin-right:-15px; }
}

/* Native shaping and line height for Southeast Asian scripts. */
html[lang="my"] body { font-family:"Myanmar Text","Noto Sans Myanmar",system-ui,sans-serif; line-height:1.7; }
html[lang="th"] body { font-family:Tahoma,"Noto Sans Thai",system-ui,sans-serif; }
html:is([lang="my"],[lang="th"]) :is(h1,h2,h3,h4,button:not(.ag-language-button),.cta-lime,.ag-language-panel a) { letter-spacing:normal; line-height:1.5; text-transform:none; }
html:is([lang="my"],[lang="th"]) :is(h1,h2,h3,h4) { overflow-wrap:anywhere; }
