/* The existing notebook palette, with a compact explicit language control. */
.site-header .abml-language{align-self:center}
.site-header .abml-language a{height:36px!important;min-height:36px!important;display:inline-flex!important;align-items:center;padding:7px 9px!important;border:1px solid transparent;border-radius:5px;line-height:1.2;white-space:nowrap;font-size:13px}
.site-header .abml-language--current a{border-color:#adb8d1;background:rgba(255,255,255,.09)}
.site-header .abml-language a:focus-visible{outline:3px solid #ffcc70;outline-offset:3px}
.abml-language a[lang=ar]{font-family:Cairo,Tahoma,Arial,sans-serif}
.abml-file-language{font-size:.9em;color:#485470}
#mobile-drawer .drawer-header{min-height:64px;align-items:center}
#mobile-drawer .drawer-header .drawer-toggle{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;background:#d21f2b;color:#fff;padding:10px;border-radius:6px}
#mobile-drawer .drawer-header .drawer-toggle .kadence-svg-iconset{display:none}
#mobile-drawer .drawer-header .drawer-toggle::after{content:"×";display:block;font:400 30px/1 Arial,sans-serif;color:#fff}
#mobile-drawer .drawer-header .drawer-toggle:focus-visible{outline:3px solid #ffcc70;outline-offset:3px}
html[lang^=ar] :is(.abfeed-item-copy,.entry-content,.abal-single){overflow-wrap:break-word}
html[lang^=ar] :is(input[type=email],input[type=url],pre,code){direction:ltr;text-align:left}
@media(max-width:1024px) and (min-width:861px){.site-header .abml-language a{padding:7px 6px!important;font-size:12px}}
@media(max-width:860px){.abml-language a{min-width:70px;min-height:44px!important;display:inline-flex!important;align-items:center;justify-content:center}.abml-language--current a{font-weight:700}}
/* A single accessible language menu; no country flags or duplicate inline choices. */
.abml-picker-item{align-self:center;list-style:none;position:relative}
.abml-picker{position:relative;display:block;color:inherit}
.abml-picker>summary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px;border:1px solid currentColor;border-radius:6px;color:inherit;background:transparent;cursor:pointer;list-style:none;white-space:nowrap;font-size:13px;line-height:1.3;box-sizing:border-box}
.abml-picker>summary::-webkit-details-marker{display:none}
.abml-picker>summary::marker{content:""}
.abml-trigger-code{display:none}
.abml-chevron{display:block;flex:none;width:12px;height:12px;transition:transform .15s ease}
.abml-picker[open]>summary .abml-chevron{transform:rotate(180deg)}
.abml-picker>summary:focus-visible{outline:3px solid #ffcc70;outline-offset:3px}
body #wrapper .abml-options{position:absolute;inset-inline-end:0;top:calc(100% + 6px);display:grid;gap:4px;width:200px;max-width:calc(100vw - 24px);padding:6px;border:1px solid #cdd4e8;border-radius:8px;background:#fff;color:#202c59;box-shadow:0 8px 24px #202c5926;z-index:1200;box-sizing:border-box;line-height:1.4}
body #wrapper .abml-picker:not([open])>.abml-options{display:none!important}
body #wrapper .abml-picker a.abml-option{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:44px!important;width:100%!important;padding:10px 12px!important;margin:0!important;border:1px solid transparent!important;border-radius:5px!important;background:#fff!important;color:#202c59!important;font-size:14px!important;font-weight:500!important;line-height:1.4!important;text-decoration:none!important;white-space:nowrap;box-sizing:border-box}
body #wrapper .abml-picker a.abml-option[aria-current=true]{border-color:#b8c3db!important;background:#edf1f8!important;font-weight:700!important}
body #wrapper .abml-picker a.abml-option:hover{background:#e6edf3!important}
body #wrapper .abml-picker a.abml-option:focus-visible{outline:3px solid #005f78;outline-offset:-3px;background:#e6edf3!important}
.abml-option[lang=ar]{font-family:Cairo,Tahoma,Arial,sans-serif}
.abml-current-mark{font-size:16px;font-weight:700}
body #wrapper .abfeed-mobile-languages{display:none!important}
#mobile-drawer .abml-picker-item{grid-column:1/-1!important;width:100%}
#mobile-drawer .abml-picker>summary{width:100%;justify-content:space-between;min-height:44px}
body #wrapper #mobile-drawer .abml-options{position:static;width:100%;max-width:none;box-shadow:none;margin-top:6px}
@media(max-width:767px),(max-width:1024px) and (max-height:520px){
 body #wrapper .abfeed-mobile-languages{display:block!important;position:fixed!important;top:calc(var(--abfeed-app-admin-offset,0px) + 10px)!important;inset-inline-end:12px!important;z-index:1001;width:auto!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body #wrapper .abfeed-mobile-languages>ul{display:block!important;max-width:none!important;margin:0!important;padding:0!important;list-style:none!important}
 body #wrapper .abfeed-mobile-languages .abml-picker-item{margin:0!important;width:auto!important}
 body #wrapper .abfeed-mobile-languages .abml-picker>summary{width:56px;min-height:44px;padding:8px 6px;border-color:#cdd4e8;background:#fff;color:#202c59;font-weight:700}
 .abfeed-mobile-languages .abml-trigger-name{display:none}
 .abfeed-mobile-languages .abml-trigger-code{display:inline}
 body #wrapper .abfeed-mobile-languages .abml-picker>summary:focus-visible{outline-color:#005f78}
 body #wrapper .abfeed-app-brand .abfeed-app-search{margin-inline-end:66px!important}
}
@media(max-width:1360px){.site-header .abml-trigger-name{display:none}.site-header .abml-trigger-code{display:inline}.site-header .abml-picker>summary{min-width:56px}}
@media(min-width:768px) and (max-width:1024px) and (min-height:521px){
 body #wrapper .abfeed-mobile-languages{display:block!important;position:sticky;top:calc(var(--abfeed-app-header-height,var(--abfeed-app-bar)) + var(--abfeed-app-admin-offset));padding:4px 20px;background:#fff;border-bottom:1px solid #e0e4ee;box-shadow:none}
 body #wrapper .abfeed-mobile-languages>ul{display:flex!important;justify-content:flex-end!important;max-width:none!important;margin:0!important;padding:0!important;list-style:none!important}
 body #wrapper .abfeed-mobile-languages .abml-picker>summary{color:#202c59;border-color:#cdd4e8;background:#fff}
 body #wrapper .abfeed-mobile-languages .abml-picker>summary:focus-visible{outline-color:#005f78}
}
@media print{body #wrapper .abfeed-mobile-languages,.abml-picker-item{display:none!important}}
@media(prefers-reduced-motion:reduce){.abml-chevron{transition:none}}

/* Header links receive white ink from the theme; the native summary needs it too. */
#main-header .abml-picker>summary{color:#fff!important;border-color:#b6c2dc!important;background:transparent!important}
