/* LA24AI: approved V7 book/discovery emblem + consistent four-destination navigation.
   Overrides only the shared top bar, without changing ads, articles or content. */
html .header {
 --la24-nav-bg:rgba(11,16,25,.94);--la24-nav-ink:#e9f4ff;--la24-nav-muted:#b8cbe0;
 --la24-nav-line:rgba(112,170,205,.22);--la24-nav-accent:#53e0d4;
 --la24-nav-hover:rgba(83,224,212,.10);--la24-nav-current:rgba(83,224,212,.15);
 background:var(--la24-nav-bg)!important;border-bottom:1px solid var(--la24-nav-line)!important;
 color:var(--la24-nav-ink)!important;position:relative;z-index:30;
}
html[data-theme="light"] .header,html[data-theme="light"] .header {
 --la24-nav-bg:rgba(247,250,254,.96);--la24-nav-ink:#10263c;--la24-nav-muted:#456079;
 --la24-nav-line:#d6e5ef;--la24-nav-accent:#087e80;
 --la24-nav-hover:#e7f6f5;--la24-nav-current:#ddf4f2;
}
.header .header-inner{display:grid!important;grid-template-columns:max-content minmax(0,1fr) max-content;
 align-items:center!important;gap:clamp(10px,1.7vw,26px)!important;max-width:1320px;
 width:calc(100% - 40px);min-height:76px!important;margin-inline:auto!important;padding:8px 0!important}
.header a{color:var(--la24-nav-ink)!important;text-decoration:none}
.header .la24-global-brand,.la24-global-brand{display:inline-flex!important;align-items:center!important;
 justify-content:flex-start;direction:ltr;gap:7px!important;white-space:nowrap;text-decoration:none!important;
 border:0!important;line-height:1!important}
.la24-global-brand .la24-global-mark{width:35px!important;height:35px!important;min-width:35px;display:block;flex-shrink:0;overflow:visible}
.la24-global-brand .la24-global-wordmark{display:inline-flex;direction:ltr;font-family:Inter,Arial,sans-serif;
 font-size:clamp(21px,2vw,26px);font-weight:850;letter-spacing:-.8px;color:var(--la24-nav-ink)}
.la24-global-brand .la24-global-wordmark b{font-weight:850;color:var(--la24-nav-accent)}
html:not([data-theme="light"]) .la24-global-brand .la24-global-wordmark {color:#f2f8ff}
html[data-theme="light"] .la24-global-brand .la24-global-wordmark {color:#11233e}
.header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]){display:flex!important;flex-wrap:nowrap;align-items:center;justify-content:center;
 gap:clamp(1px,.35vw,7px)!important;min-width:0;margin:0!important}
.header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]) a{font-size:clamp(12px,1.02vw,14px);font-weight:700;line-height:1.5;
 white-space:nowrap;padding:11px clamp(9px,1vw,15px);border:1px solid transparent!important;
 border-radius:12px;transition:background-color .16s ease,color .16s ease, border-color .16s ease}
.header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]) a:hover{background:var(--la24-nav-hover);color:var(--la24-nav-accent)!important}
.header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]) a[aria-current]{background:var(--la24-nav-current);color:var(--la24-nav-accent)!important;
 border-color:var(--la24-nav-line)!important}
.header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]) a:focus-visible,.header .header-actions a:focus-visible,
.header .header-actions button:focus-visible{outline:2px solid var(--la24-nav-accent);outline-offset:3px}
.header .header-actions{display:flex!important;align-items:center;gap:clamp(8px,1vw,16px)!important;
 justify-content:flex-end;min-width:0}
.header .header-actions a,.header .header-actions button{color:var(--la24-nav-ink)!important}
.header .header-actions .language{border-inline-start:1px solid var(--la24-nav-line);padding-inline-start:12px}
footer .la24-global-brand .la24-global-wordmark {font-size:22px}
footer .la24-global-brand .la24-global-mark {width:27px!important;height:27px!important;min-width:27px}
@media(max-width:1070px){
 .header .header-inner{grid-template-columns:max-content minmax(0,1fr) max-content;gap:12px!important}
 .header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]){gap:0!important}
 .header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]) a{padding:9px 7px;font-size:12px}
 .header .header-actions{gap:10px!important}
}
@media(max-width:790px){
 .header .header-inner{grid-template-columns:minmax(0,1fr) max-content;
 grid-template-rows:auto auto;row-gap:12px!important;min-height:0!important;padding:12px 0 10px!important}
 .header .la24-global-brand{grid-column:1;grid-row:1;justify-self:start}
 .header .header-actions{grid-column:2;grid-row:1}
 .header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]){grid-column:1/-1;grid-row:2;justify-content:space-between;gap:5px!important}
 .header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]) a{flex:1;text-align:center;white-space:normal;font-size:12px;padding:9px 7px;min-width:0}
}
@media(max-width:520px){
 .header .header-inner{width:calc(100% - 24px);gap:9px!important}
 .la24-global-brand .la24-global-mark{width:29px!important;height:29px!important;min-width:29px}
 .la24-global-brand .la24-global-wordmark{font-size:21px}
 .header .header-actions{gap:8px!important}
 .header .header-actions .language{padding-inline-start:7px;font-size:11px}
 .header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
 .header :is(nav[aria-label="التنقل الرئيسي"],nav[aria-label="Main navigation"]) a{border-radius:10px;text-align:center;padding:9px 7px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.header a{transition:none!important}}
