/* Global access bar — orange LDT visual language */
.ldt-global{direction:rtl;background:#241c19;color:#fbe6d0;position:relative;z-index:30;border-bottom:1px solid #845034;font:15px/1.5 system-ui,-apple-system,sans-serif}
.ldt-global *{box-sizing:border-box}
.ldt-global .ldt-global-line{max-width:1100px;margin:auto;display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 20px}
.ldt-global-mark{font-size:22px;color:#ffb56e;line-height:1}
.ldt-global-title{font-weight:800;color:#ffe4c5}
.ldt-global-hint{font-size:12px;color:#cdb09b}
.ldt-global-trigger{margin-inline-start:auto;border:1px solid #ffb66b;background:#fff8ef;color:#241c19;border-radius:9px;font:inherit;font-weight:800;padding:8px 13px;cursor:pointer}
.ldt-global-trigger:hover,.ldt-global-trigger:focus-visible{outline:2px solid #ffa25b;outline-offset:2px}
.ldt-global-panel{background:#fff8ef;color:#30221a;border-bottom:4px solid #e97824;box-shadow:0 16px 33px #211a1722;padding:20px;max-height:min(72vh,650px);overflow:auto}
.ldt-global-panel[hidden]{display:none!important}
.ldt-global-inner{max-width:1100px;margin:auto;display:grid;gap:13px}
.ldt-global-search{background:white;border:1px solid #e7c7aa;padding:12px;border-radius:8px;font:inherit;width:100%;color:#211a17}
.ldt-global-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:8px;max-height:340px;overflow:auto}
.ldt-global-country{background:#fff;border:1px solid #e6d2bf;padding:10px 11px;border-radius:8px;text-align:start;display:flex;align-items:center;gap:9px;font:inherit;cursor:pointer;color:#34241b}
.ldt-global-country[aria-pressed="true"]{border-color:#b85f24;background:#ffebce}
.ldt-global-country:hover{border-color:#e97824}
.ldt-global-country span{font-size:13px}
.ldt-global-country strong{display:block;font-size:14px}
.ldt-global-choice{padding:12px 14px;border-radius:9px;background:#fff0dc;border:1px solid #e8c09c}
.ldt-global-langs{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.ldt-global-lang{font:inherit;border:1px solid #d99b63;border-radius:7px;background:white;color:#30221a;padding:7px 11px;cursor:pointer}
.ldt-global-lang:hover{background:#ffe3be}
.ldt-global-note{font-size:12px;color:#665447;margin:0}
@media(max-width:640px){.ldt-global-line{padding:10px 14px}.ldt-global-hint{display:none}.ldt-global-title{font-size:13px}.ldt-global-trigger{font-size:13px}.ldt-global-panel{padding:13px}.ldt-global-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}

.ldt-global-quick{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.ldt-global-quick button{border:1px solid #755038;background:transparent;color:#ffe0be;padding:5px 8px;border-radius:6px;font:12px/1.3 system-ui,sans-serif;cursor:pointer}
.ldt-global-quick button:hover,.ldt-global-quick button:focus-visible{background:#5d3927;outline:2px solid #e97824}
@media(max-width:650px){.ldt-global-quick{order:3;width:100%;overflow-x:auto;flex-wrap:nowrap}.ldt-global-quick button{white-space:nowrap}}

/* Single accessible control */
.ldt-one-menu .ldt-global-line{min-height:64px}
.ldt-one-menu .ldt-global-trigger{min-height:44px;font-size:16px}
.ldt-one-menu .ldt-global-inner{gap:16px}
.ldt-one-menu .ldt-global-langs{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}
.ldt-one-menu .ldt-global-lang{min-height:48px;font-size:17px;font-weight:650;padding:11px 14px}
.ldt-one-menu .ldt-global-lang[aria-pressed="true"]{background:#e97824;color:#23170f;border-color:#a64e15;box-shadow:inset 0 0 0 1px #9a4812}
.ldt-one-menu .ldt-global-panel{direction:rtl}
.ldt-one-menu #ldt-countries-details{border:1px solid #dfc2a3;padding:16px;border-radius:9px;background:#fff;max-width:100%}
.ldt-one-menu #ldt-countries-details summary{cursor:pointer;font-size:16px;font-weight:750;min-height:34px}
.ldt-one-menu #ldt-countries-details summary:focus-visible{outline:3px solid #e97824}
.ldt-one-menu .ldt-global-country{cursor:default;min-height:58px}
.ldt-one-menu .ldt-global-country:focus-visible{outline:3px solid #e97824}
.ldt-one-menu #ldt-close{max-width:170px}
@media(max-width:630px){.ldt-one-menu .ldt-global-langs{grid-template-columns:1fr 1fr}.ldt-one-menu .ldt-global-panel{max-height:80vh}}

/* One combined country-and-language choice per button */
.ldt-global-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));align-items:stretch}
.ldt-country-language-option{display:flex;gap:12px;align-items:center;text-align:start;min-height:72px;width:100%;padding:12px 14px;background:#fff;border:1px solid #e5c6a7;border-radius:10px;font:inherit;color:#24170f;cursor:pointer}
.ldt-country-language-option:hover{border-color:#e97824;background:#fff2e1}
.ldt-country-language-option:focus-visible{outline:3px solid #e97824;outline-offset:2px}
.ldt-option-flag{font-size:28px;flex:none}
.ldt-option-details{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.4}
.ldt-option-details strong{font-size:14px;overflow-wrap:anywhere}
.ldt-option-details>span{font-size:13px;color:#80512e;overflow-wrap:anywhere}
.ldt-country-language-option.ldt-untranslated{border-style:dashed}
@media(max-width:550px){.ldt-global-grid{grid-template-columns:1fr}}

/* Non-intrusive floating language dropdown: overlays rather than reflows the website. */
.ldt-global.ldt-one-menu{
  position:fixed!important;inset-block-start:12px;inset-inline-end:14px;
  inset-block-end:auto;inset-inline-start:auto;
  z-index:2147483000!important;width:auto;max-width:calc(100vw - 24px);
  background:transparent!important;border:0!important;box-shadow:none!important;
  color:#24170f;font:15px/1.5 system-ui,sans-serif;
}
.ldt-one-menu .ldt-global-line{min-height:0!important;padding:0!important;display:flex!important;justify-content:flex-end}
.ldt-one-menu .ldt-global-mark,.ldt-one-menu .ldt-global-title{display:none!important}
.ldt-one-menu .ldt-global-trigger{
  margin:0!important;border:1px solid #c87b41!important;min-height:44px;
  max-width:min(300px,calc(100vw - 28px));border-radius:24px!important;
  padding:10px 15px!important;background:#fff8ef!important;color:#24170f!important;
  font-weight:750;font-size:14px!important;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
  box-shadow:0 3px 15px rgba(24,12,8,.18);
}
.ldt-one-menu .ldt-global-panel{
  position:absolute!important;top:calc(100% + 8px);inset-inline-end:0;inset-inline-start:auto;
  width:min(580px,calc(100vw - 28px));max-height:min(75dvh,680px);overflow:auto;
  padding:14px!important;border:1px solid #debc9a;border-radius:14px!important;
  box-shadow:0 12px 40px rgba(24,12,8,.25)!important;background:#fff8ef!important;
  direction:rtl;overscroll-behavior:contain;
}
.ldt-one-menu .ldt-global-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));max-height:48dvh}
.ldt-one-menu .ldt-country-language-option{min-height:62px;padding:9px 11px}
.ldt-one-menu #ldt-close{min-height:44px}
@media(max-width:650px){
 .ldt-global.ldt-one-menu{inset-block-start:8px;inset-inline-end:8px}
 .ldt-one-menu .ldt-global-trigger{font-size:13px!important;min-height:42px}
 .ldt-one-menu .ldt-global-panel{max-height:79dvh}
 .ldt-one-menu .ldt-global-grid{grid-template-columns:1fr}
}

/* Compact Quran-reader-inspired global language control */
.ldt-global.ldt-one-menu{
  inset-block-start:10px!important;
  inset-inline-end:12px!important;
}
.ldt-one-menu .ldt-global-trigger{
  width:auto!important;
  min-height:38px!important;
  max-width:min(185px,calc(100vw - 24px))!important;
  padding:7px 11px!important;
  font-size:13px!important;
  font-weight:700!important;
  border-radius:7px!important;
  box-shadow:0 2px 8px rgba(24,12,8,.12)!important;
}
.ldt-one-menu .ldt-global-panel{
  width:min(340px,calc(100vw - 20px))!important;
  max-height:min(64dvh,490px)!important;
  padding:12px!important;
  border-radius:9px!important;
}
.ldt-one-menu .ldt-global-inner{gap:8px!important}
.ldt-one-menu .ldt-global-search{
  min-height:40px!important;
  font-size:14px!important;
  padding:8px 10px!important;
}
.ldt-one-menu .ldt-global-grid{
  grid-template-columns:minmax(0,1fr)!important;
  max-height:35dvh!important;
  gap:5px!important;
}
.ldt-one-menu .ldt-country-language-option{
  min-height:47px!important;
  border-radius:7px!important;
  padding:6px 9px!important;
  gap:8px!important;
}
.ldt-one-menu .ldt-option-flag{font-size:22px!important}
.ldt-one-menu .ldt-option-details strong{font-size:12px!important}
.ldt-one-menu .ldt-option-details>span{font-size:12px!important}
.ldt-one-menu #ldt-country-result{font-size:12px;margin:0!important}
.ldt-one-menu #ldt-language-feedback{font-size:11px;line-height:1.5}
.ldt-one-menu #ldt-close{min-height:36px!important;max-width:100px!important;font-size:13px!important}
@media(max-width:600px){
  .ldt-global.ldt-one-menu{inset-block-start:6px!important;inset-inline-end:7px!important}
  .ldt-one-menu .ldt-global-trigger{max-width:150px!important}
  .ldt-one-menu .ldt-global-panel{max-height:69dvh!important}
}
