/* LUXA LANDING — clean design system, rebuilt 2026-12-02.
   One file replaces: home.css + dark.css + a11y.css.
   Rules preserved in exact original cascade order; no visual change intended. */


/* ======== from home.css ======== */

/* ===== LUXA — homepage, editorial direction ===== */
:root{
  --navy:#0b2250; --gold:#c9953c; --gold2:#d9b25a; --goldtx:#8a6410;
  --paper:#fbf8f2; --line:#e7e0d0; --ink:#1b2438; --mut:#4c5872; --lab:#6f6142;
}
html{scroll-behavior:smooth}
body.ed{background:var(--paper);color:var(--ink);font-family:Inter,system-ui,sans-serif;margin:0}
body.ed *{box-sizing:border-box}
body.ed a{text-decoration:none;color:inherit}
.ed-wrap{max-width:1200px;margin:0 auto;padding:0 40px}

/* progress bar */
#prog{position:fixed;top:0;left:0;height:3px;width:0;background:var(--gold);z-index:200}

/* ---------- top strip ---------- */
.ed-top{border-bottom:1px solid var(--line);background:var(--paper)}
.ed-top .in{display:flex;justify-content:space-between;align-items:center;height:44px}
.ed-top .tl{font:500 11.5px Inter;letter-spacing:.22em;text-transform:uppercase;color:var(--lab)}
.ed-top .tl i{font-style:normal;color:#cfc4a8;margin:0 10px}
.ed-top .tr{display:flex;align-items:center;gap:22px;font:500 11.5px Inter;letter-spacing:.18em;text-transform:uppercase;color:var(--lab)}
.ed-top .tr a:hover{color:var(--goldtx)}
.ed-top .ico{display:none}

/* ---------- header ---------- */
.ed-head{position:sticky;top:0;z-index:100;background:var(--paper);border-bottom:1px solid var(--line)}
.ed-head.sc{border-bottom-color:#d9cfb6;box-shadow:0 1px 14px rgba(11,34,80,.06)}
.ed-head .in{display:flex;align-items:center;justify-content:space-between;height:88px;gap:26px}
.ed-brand{display:flex;align-items:center;gap:14px;flex:0 0 auto}
.ed-brand img{height:52px;width:auto}
.ed-brand .ed-brandname{font:700 21px 'Playfair Display',Georgia,serif;color:var(--navy);margin:0;letter-spacing:.01em}
.ed-brand small{display:block;font:500 8.5px Inter;letter-spacing:.3em;color:var(--goldtx);margin-top:3px}
.ed-nav{display:flex;align-items:center;flex-wrap:nowrap;min-width:0;gap:20px;font:500 12.5px Inter;letter-spacing:.06em;text-transform:uppercase;color:#3b4761}
.ed-nav > a,.ed-nav .dd > a{position:relative;padding:6px 0;white-space:nowrap}
.ed-nav > a:hover,.ed-nav .dd > a:hover,.ed-nav a.on{color:var(--goldtx)}
.ed-nav a.on:after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:2px;background:var(--gold)}
.ed-nav .ico{display:none}
.dd{position:relative}
.dd > ul{position:absolute;top:calc(100% + 14px);inset-inline-start:0;min-width:200px;background:var(--paper);
  border:1px solid var(--line);list-style:none;margin:0;padding:8px 0;display:none;box-shadow:0 18px 40px rgba(11,34,80,.10);z-index:120}
.dd.open > ul{display:block}
.dd > ul li a{display:block;padding:9px 18px;font:500 12.5px Inter;letter-spacing:.05em;color:#3b4761;text-transform:none}
.dd > ul li a:hover{background:#f4eee0;color:var(--goldtx)}
.ed-search{display:flex;align-items:center;border-bottom:1px solid #cfc4a8;padding-bottom:5px;min-width:160px;max-width:190px;flex:0 1 190px}
.ed-search input{border:0;background:transparent;outline:0;font:400 13px Inter;color:var(--ink);width:100%}
.ed-search input::placeholder{color:#a4977a}
.ed-search button{border:0;background:transparent;cursor:pointer;padding:0 0 0 8px;color:var(--lab);line-height:0}
.ed-search button:hover{color:var(--goldtx)}
.ed-search .ico{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8}
.ed-burger{display:none;border:1px solid var(--line);background:transparent;font-size:18px;line-height:1;padding:9px 12px;cursor:pointer;color:var(--navy)}

/* ---------- hero ---------- */
.ed-hero{padding:70px 0 0}
.ed-hero .in{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.ed-rule{width:64px;height:2px;background:var(--gold);margin-bottom:26px}
.ed-hero h1{font:700 66px/1.03 'Playfair Display',Georgia,serif;color:var(--navy);letter-spacing:-.01em;margin:0}
.ed-hero h1 em{font-style:italic;color:var(--goldtx)}
.ed-hero p{font-size:17px;line-height:1.7;color:var(--mut);margin:24px 0 30px;max-width:470px}
.ed-btns{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.ed-btn{display:inline-block;font:600 12.5px Inter;letter-spacing:.13em;text-transform:uppercase;padding:15px 26px;
  border:1px solid var(--navy);color:var(--navy);transition:.18s}
.ed-btn:hover{background:var(--navy);color:#f7f3e8}
.ed-btn.solid{background:var(--navy);color:#f7f3e8}
.ed-btn.solid:hover{background:var(--gold);border-color:var(--goldtx);color:#fff}
.ed-ph{position:relative;z-index:1}
.ed-ph img{display:block;width:100%;height:420px;object-fit:cover;border-radius:2px;filter:saturate(.85)}
.ed-ph:after{content:"";position:absolute;inset:14px -14px -14px 14px;border:1px solid var(--gold);z-index:-1}
.ed-meta{display:flex;gap:26px;flex-wrap:wrap;font:600 11px Inter;letter-spacing:.2em;text-transform:uppercase;color:var(--lab);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;margin:56px 0 0}

/* ---------- contents ---------- */
.ed-contents{padding:64px 0}
.ed-contents .in{display:grid;grid-template-columns:.8fr 2fr;gap:56px}
.ed-contents h2{font:700 14px Inter;letter-spacing:.24em;text-transform:uppercase;color:var(--goldtx);margin:0}
.ed-contents ol{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.ed-contents li{display:grid;grid-template-columns:56px 1fr auto;gap:20px;align-items:baseline;padding:22px 0;border-bottom:1px solid var(--line)}
.ed-contents li b{font:700 13px Inter;color:var(--goldtx)}
.ed-contents li h3{font:700 25px 'Playfair Display',Georgia,serif;color:var(--navy);margin:0}
.ed-contents li h3 a:hover{color:var(--goldtx)}
.ed-contents li p{grid-column:2;font-size:14.5px;line-height:1.6;color:#5c6883;margin:7px 0 0}
.ed-contents li span{font:500 11.5px Inter;color:var(--lab);letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;justify-self:end;text-align:end}

/* ---------- statement ---------- */
.ed-state{padding:0 0 64px}
.ed-state .in{display:grid;grid-template-columns:.8fr 2fr;gap:56px}
.ed-state h2{font:700 14px Inter;letter-spacing:.24em;text-transform:uppercase;color:var(--goldtx);margin:0}
.ed-state p{font:400 22px/1.55 'Playfair Display',Georgia,serif;color:var(--navy);margin:0 0 18px;max-width:760px}
.ed-state a{font:600 12px Inter;letter-spacing:.13em;text-transform:uppercase;color:var(--goldtx);border-bottom:1px solid var(--gold);padding-bottom:2px}

/* ---------- band ---------- */
.ed-band{background:var(--navy);color:#eef2f8;padding:60px 0}
.ed-band .in{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;text-align:center}
.ed-band b{display:block;font:700 40px 'Playfair Display',Georgia,serif;color:var(--gold2);line-height:1}
.ed-band span{display:block;margin-top:10px;font:500 11px Inter;letter-spacing:.2em;text-transform:uppercase;color:#9fb0cc}

/* ---------- split / levels ---------- */
.ed-split{padding:74px 0}
.ed-split .in{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.ed-split img{display:block;width:100%;height:340px;object-fit:cover;filter:saturate(.85)}
.ed-split h2{font:700 40px/1.1 'Playfair Display',Georgia,serif;color:var(--navy);margin:0 0 16px}
.ed-split p{color:var(--mut);line-height:1.7;font-size:16px;margin:0 0 14px}
.ed-split ul{list-style:none;margin:18px 0 0;padding:0}
.ed-split li{border-bottom:1px solid var(--line)}
.ed-split li a{display:flex;justify-content:space-between;align-items:baseline;padding:13px 0;font-size:15px;color:#33405c}
.ed-split li a:hover{color:var(--goldtx)}
.ed-split li b{font:600 12.5px Inter;letter-spacing:.1em;color:var(--goldtx);text-transform:uppercase}

/* ---------- featured ---------- */
.ed-feat{padding:0 0 74px}
.ed-feat .in{display:grid;grid-template-columns:.8fr 2fr;gap:56px}
.ed-feat h2{font:700 14px Inter;letter-spacing:.24em;text-transform:uppercase;color:var(--goldtx);margin:0}
.ed-art{display:grid;grid-template-columns:64px 1fr auto;gap:18px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.ed-art:first-of-type{border-top:1px solid var(--line)}
.ed-art .tb{display:grid;place-items:center;width:64px;height:52px;border:1px solid var(--line);font:700 17px 'Playfair Display',serif;color:var(--goldtx);background:#f6f1e4}
.ed-art h3{margin:0;font:700 19px 'Playfair Display',Georgia,serif;color:var(--navy)}
.ed-art small{display:block;margin-top:4px;font:500 11px Inter;letter-spacing:.14em;text-transform:uppercase;color:var(--lab)}
.ed-art:hover h3{color:var(--goldtx)}
.ed-art span.more{font:600 11.5px Inter;letter-spacing:.12em;text-transform:uppercase;color:var(--goldtx)}

/* ---------- footer ---------- */
.ed-ft{background:#f4eee0;border-top:1px solid var(--line);padding:48px 0 24px}
.ed-fg{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:34px}
.ed-fg h5{font:700 11.5px Inter;letter-spacing:.2em;text-transform:uppercase;color:var(--goldtx);margin:0 0 14px}
.ed-fg a,.ed-fg p{display:block;font-size:14px;color:var(--mut);margin:0 0 9px}
.ed-fg a:hover{color:var(--navy)}
.ed-fg .ed-brand img{height:44px}
.ed-fg .ed-brand .ed-brandname{font-size:17px}
.ed-cp{margin-top:34px;padding-top:16px;border-top:1px solid var(--line);font:400 12.5px Inter;color:var(--lab);display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* ---------- reveal ---------- */
.rv{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
.rv.in{opacity:1;transform:none}

/* ---------- rtl ---------- */
[dir="rtl"] body.ed{font-family:Inter,system-ui,sans-serif}
[dir="rtl"] .ed-hero h1,[dir="rtl"] .ed-split h2,[dir="rtl"] .ed-state p,
[dir="rtl"] .ed-contents li h3,[dir="rtl"] .ed-art h3,[dir="rtl"] .ed-brand .ed-brandname{font-family:'Noto Naskh Arabic',Georgia,serif;letter-spacing:0}
[dir="rtl"] .ed-ph:after{inset:14px 14px -14px -14px}
[dir="rtl"] .ed-top .tl,[dir="rtl"] .ed-nav,[dir="rtl"] .ed-btn,[dir="rtl"] .ed-band span,
[dir="rtl"] .ed-meta,[dir="rtl"] .ed-contents h2,[dir="rtl"] .ed-state h2,[dir="rtl"] .ed-feat h2{letter-spacing:0}
[dir="rtl"] .dd > ul{inset-inline-start:0}

[dir="rtl"] .ed-hero h1 em{font-style:normal}
[dir="rtl"] .ed-art small,[dir="rtl"] .ed-contents li span,[dir="rtl"] .ed-split li b{letter-spacing:0}

/* ---------- responsive ---------- */
@media (max-width:1400px){.ed-search{display:none}}
@media (max-width:1080px){
  .ed-hero .in,.ed-contents .in,.ed-state .in,.ed-split .in,.ed-feat .in{grid-template-columns:1fr;gap:36px}
  .ed-hero h1{font-size:52px}
  .ed-ph img{height:340px}
  .ed-fg{grid-template-columns:1fr 1fr}
  .ed-search{display:none}
}
@media (max-width:1000px){
  .ed-wrap{padding:0 22px}
  .ed-burger{display:block}
  .ed-head .in{height:72px}
  .ed-brand img{height:42px}
  .ed-nav{position:absolute;top:100%;inset-inline:0;background:var(--paper);border-bottom:1px solid var(--line);
    flex-direction:column;align-items:stretch;gap:0;padding:8px 22px 18px;display:none}
  .ed-nav.open{display:flex}
  .ed-nav > a,.ed-nav .dd > a{padding:12px 0;border-bottom:1px solid var(--line)}
  .dd > ul{position:static;border:0;box-shadow:none;padding:0 0 8px 14px;min-width:0}
  .ed-hero{padding-top:40px}
  .ed-hero h1{font-size:40px}
  .ed-band .in{grid-template-columns:1fr 1fr;gap:26px}
  .ed-band b{font-size:32px}
  .ed-split h2{font-size:30px}
  .ed-state p{font-size:19px}
  .ed-art{grid-template-columns:52px 1fr}
  .ed-art .tb{width:52px;height:46px;font-size:15px}
  .ed-art span.more{display:none}
}

/* word of the day */
.ed-wotd{padding:0 0 64px}
.ed-wotd .in{display:grid;grid-template-columns:.8fr 2fr;gap:56px}
.ed-wotd h2{font:700 14px Inter;letter-spacing:.24em;text-transform:uppercase;color:var(--goldtx);margin:0}
.ed-wotd .wd{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap}
.ed-wotd .wd b{font:700 54px/1.05 'Playfair Display',Georgia,serif;color:var(--navy)}
.ed-wotd .wd span{font:400 15px Inter;color:var(--lab)}
.ed-wotd .wl{border:1px solid var(--line);background:transparent;color:var(--navy);width:36px;height:36px;cursor:pointer;font-size:13px}
.ed-wotd .wl:hover{background:var(--navy);color:#fff}
.ed-wotd .wa{font:600 24px 'Noto Naskh Arabic',serif;color:var(--navy);margin:14px 0 6px}
.ed-wotd .wdf{font:400 17px/1.6 Inter;color:var(--mut);margin:0 0 8px;max-width:640px}
.ed-wotd .we{font:italic 400 18px 'Playfair Display',Georgia,serif;color:var(--navy);margin:0}
@media(max-width:820px){.ed-wotd .in{grid-template-columns:1fr;gap:14px}.ed-wotd .wd b{font-size:40px}}
@media(max-width:760px){.ed-contents .in{grid-template-columns:1fr;gap:24px}.ed-contents li{grid-template-columns:36px 1fr;gap:6px 12px}.ed-contents li span{grid-column:2;justify-self:start;order:3}.ed-contents li h3{font-size:22px}.ed-contents li p{grid-column:2}}
@media(max-width:640px){body .top .tl{display:none}body .top{justify-content:flex-end;gap:14px;padding:8px 16px}}
/* premium buttons (home) */
:root{--soft:#eaeef7}
.ed-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:999px!important;border:0!important;background:var(--soft);color:var(--navy);box-shadow:0 2px 6px rgba(11,34,80,.10),0 6px 16px rgba(11,34,80,.08);min-height:48px;padding:0 28px;letter-spacing:.06em;text-transform:none;font-size:14px;transition:background .18s,box-shadow .18s,transform .08s}
.ed-btn.solid{background:linear-gradient(180deg,#16377a,#0b2250);color:#fff;box-shadow:0 3px 8px rgba(11,34,80,.28),0 10px 22px rgba(11,34,80,.18)}
.ed-btn:hover{background:#dde3f2;color:var(--navy);box-shadow:0 4px 14px rgba(11,34,80,.2)}.ed-btn.solid:hover{background:linear-gradient(180deg,#d8a649,#c9953c);color:#fff}.ed-btn:active{transform:scale(.96)}
html[data-theme=dark] .ed-btn{background:#26314c!important;color:#e8ecf5!important;box-shadow:0 2px 6px rgba(0,0,0,.4)}
html[data-theme=dark] .ed-btn:hover{background:#34426a!important;color:#fff!important}
html[data-theme=dark] .ed-btn.solid{background:linear-gradient(180deg,#e6c06a,#d9b25a)!important;color:#10151f!important}
html[data-theme=dark] .ed-btn.solid:hover{background:linear-gradient(180deg,#f6dc9a,#f1d489)!important}

.ed-ph img{object-fit:contain!important;border-radius:28px!important;filter:none!important;box-shadow:0 18px 50px rgba(13,33,80,.28)}.ed-ph:after{border-radius:32px}
.ed-ph img{height:auto!important;aspect-ratio:600/460;object-fit:cover!important;background:transparent!important;padding:0!important}.ed-ph:after{inset:12px -12px -12px 12px;border-radius:30px}
.ed-split img{height:auto!important;aspect-ratio:3/2;object-fit:contain!important;filter:none!important;border-radius:26px;box-shadow:0 18px 50px rgba(13,33,80,.25)}
html[data-theme=dark] .ed-split li a{color:#d5dbea}html[data-theme=dark] .ed-split li a:hover{color:#f3d98a}
/* v38 quick access */
.ed-quick{padding:56px 0 8px}.ed-quick h2{font:700 14px Inter;letter-spacing:.24em;text-transform:uppercase;color:var(--goldtx);margin:0 0 6px}
[dir="rtl"] .ed-quick h2{letter-spacing:0}
.ed-quick h3{font:700 22px 'Playfair Display',Georgia,serif;color:var(--navy);margin:22px 0 10px}[dir="rtl"] .ed-quick h3{font-family:'Noto Naskh Arabic',Georgia,serif}
.qa-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.qa{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 14px rgba(11,34,80,.06);color:var(--navy);font:600 15px Inter,'Noto Naskh Arabic',sans-serif;transition:.2s}
.qa:hover{border-color:var(--goldtx);transform:translateY(-2px);box-shadow:0 8px 22px rgba(217,166,58,.22)}
.qa i{font-style:normal;font-size:22px;width:42px;height:42px;border-radius:50%;background:#f4eee0;display:flex;align-items:center;justify-content:center;flex:none}
.qa[hidden]{display:none}
.qa-more{margin:20px 0 0;font-weight:600}.qa-more a{color:var(--goldtx)}
html[data-theme=dark] .qa{background:#161c2c;border-color:#2a3350;color:#f1ead6}html[data-theme=dark] .qa i{background:#232b42}html[data-theme=dark] .ed-quick h3{color:#f1ead6}
@media(max-width:1000px){.qa-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:420px){.qa{padding:12px;gap:9px;font-size:14px}.qa i{width:36px;height:36px;font-size:19px}}
/* v38 menu: chevrons for dropdowns, and a clean mobile panel (home .ed-nav and inner #nav) */
.dd>a::after{content:"";display:inline-block;width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px);margin-inline-start:8px;transition:transform .2s;vertical-align:middle}
.dd.open>a::after{transform:rotate(-135deg) translateY(-2px)}
@media(max-width:1000px){.ed-nav{--mrow:52px}}
@media(max-width:1000px){
  .ed-nav{padding:0!important;max-height:calc(100vh - 120px);overflow:auto;box-shadow:0 18px 30px rgba(11,34,80,.14);border-top:1px solid var(--line)}
  .ed-nav>a,.ed-nav .dd>a{display:flex!important;align-items:center;justify-content:space-between;min-height:52px;box-sizing:border-box;padding:0 22px!important;margin:0;border-bottom:1px solid var(--line)!important;border-radius:0;font:600 13.5px Inter,'Noto Naskh Arabic',sans-serif;letter-spacing:.1em;text-transform:uppercase}
  .ed-nav .dd{border:0}
  .ed-nav>a.on{color:var(--goldtx);background:rgba(217,166,58,.1);box-shadow:inset 3px 0 0 var(--gold)}[dir=rtl] .ed-nav>a.on{box-shadow:inset -3px 0 0 var(--gold)}
  .ed-nav .dd>ul{padding:0!important;background:#f6f0e2;border:0;box-shadow:none}
  .ed-nav .dd>ul li a{display:flex;align-items:center;min-height:46px;box-sizing:border-box;padding:0 22px 0 40px!important;border-bottom:1px solid var(--line);font:500 14px Inter,'Noto Naskh Arabic',sans-serif;letter-spacing:.03em;text-transform:none}
  [dir=rtl] .ed-nav .dd>ul li a{padding:0 40px 0 22px!important}
  .ed-nav .dd.open>a{color:var(--goldtx)}
}
@media(max-width:1330px){
  nav#nav.open{padding:0!important;max-height:calc(100vh - 130px);overflow:auto;gap:0!important;align-items:stretch!important;box-shadow:0 18px 30px rgba(11,34,80,.14)}
  nav#nav>a,nav#nav .dd>a{display:flex!important;align-items:center;justify-content:space-between;min-height:52px;box-sizing:border-box;padding:0 22px!important;margin:0;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:none!important;box-shadow:none!important;font:600 13.5px Inter,'Noto Naskh Arabic',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#3b4761}
  nav#nav>a.on{color:var(--goldtx)!important;background:rgba(217,166,58,.1)!important;box-shadow:inset 3px 0 0 var(--gold)!important}[dir=rtl] nav#nav>a.on{box-shadow:inset -3px 0 0 var(--gold)!important}
  nav#nav .dd{width:100%}
  nav#nav .dd>ul{position:static!important;display:none;padding:0!important;background:#f6f0e2!important;border:0!important;box-shadow:none!important;min-width:0;width:100%}
  nav#nav .dd.open>ul{display:block}
  nav#nav .dd>ul li a{display:flex;align-items:center;min-height:46px;box-sizing:border-box;padding:0 22px 0 40px!important;border-bottom:1px solid var(--line);font:500 14px Inter,'Noto Naskh Arabic',sans-serif;letter-spacing:.03em;text-transform:none;border-radius:0}
  [dir=rtl] nav#nav .dd>ul li a{padding:0 40px 0 22px!important}
  nav#nav .dd.open>a{color:var(--goldtx)}
}
html[data-theme=dark] .ed-nav .dd>ul,html[data-theme=dark] nav#nav .dd>ul{background:#0f1422!important}
html[data-theme=dark] .ed-nav>a,html[data-theme=dark] .ed-nav .dd>a,html[data-theme=dark] nav#nav>a,html[data-theme=dark] nav#nav .dd>a{color:#f1ead6}
html[data-theme=dark] .ed-nav .dd>ul li a,html[data-theme=dark] nav#nav .dd>ul li a{color:#d9d2bd}

@media(max-width:1000px){.ed-top .tl{display:none}.ed-top .in{height:auto!important;min-height:44px;flex-wrap:wrap;justify-content:flex-end;padding-top:6px;padding-bottom:6px}.ed-top .tr{flex-wrap:wrap;gap:6px 14px;justify-content:flex-end;font-size:10.5px;letter-spacing:.08em}[dir=rtl] .ed-top .tr{letter-spacing:0;font-size:12px}}
@media(max-width:1330px){.top .tl{display:none}.top{height:auto!important;min-height:44px;flex-wrap:wrap;justify-content:flex-end;padding-top:6px;padding-bottom:6px}.top .tr{flex-wrap:wrap;gap:6px 14px;font-size:10.5px;letter-spacing:.08em}}
.qa i{color:var(--goldtx)}.qa i svg{display:block}
@media(max-width:1340px){.ed-nav{gap:20px!important}.ed-search input{width:110px}}
.ed-top .tr a{display:inline-flex;align-items:center;min-height:40px;padding:0 4px}@media(max-width:1000px){.ed-top .tr{row-gap:0}}
/* v38 top strip: no stray dividers, one clean row */
.ed-top .tr a,html[dir=rtl] .ed-top .tr a,.top .tr a,html[dir=rtl] .top .tr a{border:0!important;padding:0 4px!important}
.ed-top .tr,.top .tr{flex-wrap:nowrap;white-space:nowrap;gap:22px;align-items:center}
.ed-top .tr a+a,.top .tr a+a{position:relative}
.ed-top .tr a+a::before,.top .tr a+a::before{content:"";position:absolute;inset-inline-start:-12px;top:50%;height:12px;width:1px;margin-top:-6px;background:currentColor;opacity:.3}
@media(max-width:1000px){.ed-top .in,.top{justify-content:center!important}.ed-top .tr,.top .tr{flex-wrap:wrap;justify-content:center!important;gap:0 22px!important}}
@media(max-width:560px){.ed-top .tr,.top .tr{gap:0 16px!important}.ed-top .tr a+a::before,.top .tr a+a::before{inset-inline-start:-9px}}
@media(max-width:1000px){.ed-top .tr a+a::before,.top .tr a+a::before{display:none!important}.ed-top .tr,.top .tr{gap:0 18px!important}}[dir=rtl] .ed-top .tr a+a::before,html[dir=rtl] .top .tr a+a::before{display:none!important}
.brand div,html[dir=rtl] .brand div,.ed-brand div{border:0!important}
.oxc{max-width:760px;margin:14px auto 0;padding:0 16px;text-align:center;font-size:12px;line-height:1.6;opacity:.75}.oxc a{color:inherit;text-decoration:underline}

/* Third audit UX-03, UX-10: say which tiles need the online version */
.qa-tag{margin-inline-start:auto;font:600 10px/1.7 Inter,'Noto Naskh Arabic',sans-serif;color:#8a6410;border:1px solid #d9c68f;border-radius:20px;padding:0 7px;background:#fdf8e8;white-space:nowrap;font-style:normal}
html[data-theme=dark] .qa-tag{color:#e8cd8e;border-color:#4c4227;background:#241f12}
.qa-note{font:400 13.5px/1.7 Inter,'Noto Naskh Arabic',sans-serif;color:var(--lab);margin:2px 0 0;max-width:760px}


/* ======== from dark.css ======== */

/* dark mode: toggled by theme.js via html[data-theme=dark] */
html[data-theme=dark]{color-scheme:dark;--paper:#10151f;--cream:#10151f;--card:#171e2c;--line:#2a3347;--ink:#e6e9f0;--mut:#aab3c5;--lab:#c2a96a;--navy:#e8ecf5;--gold:#d9b25a;--gold2:#d9b25a;--goldtx:#e2c179}
html[data-theme=dark] body,html[data-theme=dark] body.ed{background:#10151f;color:#e6e9f0}
html[data-theme=dark] .top,html[data-theme=dark] .nav,html[data-theme=dark] .ed-top,html[data-theme=dark] .ed-head,html[data-theme=dark] nav,html[data-theme=dark] .dd ul,html[data-theme=dark] .dd > ul{background:#10151f}
html[data-theme=dark] .ed-ft,html[data-theme=dark] .ft2{background:#0b0f17;color:#aab3c5}
html[data-theme=dark] .panel,html[data-theme=dark] .item,html[data-theme=dark] .cm,html[data-theme=dark] .lv,html[data-theme=dark] .card{background:#171e2c;border-color:#2a3347;color:#e6e9f0}
html[data-theme=dark] .cm.me{background:#1d2740}
html[data-theme=dark] input[type=text],html[data-theme=dark] input[type=email],html[data-theme=dark] input[type=password],html[data-theme=dark] input[type=number],html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0f1522;color:#e6e9f0;border-color:#34405a}
html[data-theme=dark] .brand .bn,html[data-theme=dark] .pg h1,html[data-theme=dark] .panel h2,html[data-theme=dark] .panel h3,html[data-theme=dark] .item h4,html[data-theme=dark] .ed-brand .ed-brandname,html[data-theme=dark] .ed-hero h1,html[data-theme=dark] .ed-state p,html[data-theme=dark] .ed-wotd .wd b,html[data-theme=dark] .ed-wotd .wa,html[data-theme=dark] .ed-wotd .we{color:#f1f3f8}
html[data-theme=dark] .ed-hero h1 em{color:var(--gold)}
html[data-theme=dark] nav,html[data-theme=dark] .ed-nav,html[data-theme=dark] .ed-nav a,html[data-theme=dark] .dd ul a{color:#cfd6e4}
html[data-theme=dark] .ed-btn,html[data-theme=dark] .btn.o,html[data-theme=dark] .btn.n,html[data-theme=dark] .tabsb a,html[data-theme=dark] .tabsb button{color:#e8ecf5;border-color:#4a5675}
html[data-theme=dark] .btn.g{background:#d9b25a;color:#10151f;border-color:#d9b25a}
html[data-theme=dark] .ed-band,html[data-theme=dark] .ed-split{filter:none}
html[data-theme=dark] .ed-hero p,html[data-theme=dark] .pg .lead,html[data-theme=dark] .hint,html[data-theme=dark] small,html[data-theme=dark] .ed-wotd .wdf{color:#aab3c5}
html[data-theme=dark] th{color:#c2a96a}html[data-theme=dark] td,html[data-theme=dark] th{border-color:#2a3347}
html[data-theme=dark] .bar{background:#2a3347}
html[data-theme=dark] img{opacity:.92}
#kil-theme{position:fixed;left:16px;bottom:16px;z-index:300;width:42px;height:42px;border:1px solid #c9953c;background:#fbf8f2;color:#0b2250;font-size:18px;cursor:pointer;line-height:1}
html[data-theme=dark] #kil-theme{background:#171e2c;color:#d9b25a}

/* surfaces that use the navy variable as a background must stay dark/readable */
html[data-theme=dark] .ed-btn.solid,html[data-theme=dark] .ed-btn:hover,html[data-theme=dark] .ed-wotd .wl:hover,
html[data-theme=dark] .tabsb .on,html[data-theme=dark] .tabsb a:hover,html[data-theme=dark] .tabsb button:hover,
html[data-theme=dark] .btn.o:hover,html[data-theme=dark] .btn.n:hover,html[data-theme=dark] .side .on,html[data-theme=dark] .side button:hover{background:#d9b25a;color:#10151f;border-color:#d9b25a}
html[data-theme=dark] .ed-band,html[data-theme=dark] .about,html[data-theme=dark] .strip,html[data-theme=dark] .lv.mid{background:#0b0f17;color:#e6ecf5}
html[data-theme=dark] .toast{background:#1d2740;color:#fff}
html[data-theme=dark] .pill{background:transparent;color:#c2a96a;border-color:#34405a}
html[data-theme=dark] .pill.ok{background:#1d6b3a;color:#fff;border-color:#1d6b3a}
html[data-theme=dark] .side button{background:transparent;color:#e8ecf5;border-color:#34405a}
html[data-theme=dark] .btn.g:hover{background:#f1d489;color:#10151f}
html[data-theme=dark] .warn{background:#2a2412;color:#e6e9f0}

#kil-speed{position:fixed;left:66px;bottom:16px;z-index:300;height:42px;padding:0 14px;border:1px solid #c9953c;background:#fbf8f2;color:#0b2250;font:600 12px Inter,sans-serif;letter-spacing:.06em;cursor:pointer}
html[data-theme=dark] #kil-speed{background:#171e2c;color:#d9b25a}

/* v38 dark audit fixes (contrast, WCAG AA) */
html[data-theme=dark] .empty,html[data-theme=dark] .fcnt,html[data-theme=dark] .hint{color:#aeb8cf!important}
html[data-theme=dark] .ed-contents li p{color:#aeb8cf}
html[data-theme=dark] .btn.n,html[data-theme=dark] .btn.n:not(.sm){color:#fff}
html[data-theme=dark] .ed-art .tb{background:#232b42;border-color:#3a4566}

html[data-theme=dark] .fcl,html[data-theme=dark] .fcnt{color:#e6ecff!important;opacity:1!important}
html[data-theme=dark] .pill.founder{background:linear-gradient(180deg,#2b3a24,#1d2a18)!important;color:#e9dcae!important;border:1px solid #9c8a4e!important;font-weight:700}
html[data-theme=dark] .rolesel{background:#1a2338;color:#e6ecff;border-color:#34405a}
html[data-theme=dark] #fl .kbtn.n,html[data-theme=dark] #fl .kbtn.n:not(.sm){background:#1d2740;color:#e8ecf5;border:1px solid #4a5675}html[data-theme=dark] #fl .kbtn.n:hover{background:#d9b25a;color:#10151f;border-color:#d9b25a}
html[data-theme=dark] #fl .kcard,html[data-theme=dark] #fl .kcard p,html[data-theme=dark] #fl .kcard .lead,html[data-theme=dark] #fl .kcard small,html[data-theme=dark] #fl .kcard div:not(.bar):not(.row){color:#0b2250}html[data-theme=dark] #fl .kcard [dir=rtl],html[data-theme=dark] #fl .kcard .ar{color:#5a4a1a}
html[data-theme=dark] .kmeta [dir=rtl]{color:#aeb8cf!important}
html[data-theme=dark] .kex [dir=rtl]{color:#e6ebf5!important}
html[data-theme=dark] .kpron{color:#aeb8cf!important}
html[data-theme=dark] .kdef{color:#c3cbdc!important}
html[data-theme=dark] #fl .kcard .hint,html[data-theme=dark] #fl .kcard .bar+*,html[data-theme=dark] #fl .kcard [class*=cnt]{color:#c0b492 !important;opacity:1}
/* v43: every secondary button gets a dark fill with light text in dark mode (was white text on a light fill) */
html[data-theme=dark] .btn.n,html[data-theme=dark] .btn.o,html[data-theme=dark] .mbtns .btn.n{background:#1d2740!important;color:#e8ecf5!important;border:1px solid #4a5675}
html[data-theme=dark] .btn.n:hover,html[data-theme=dark] .btn.o:hover,html[data-theme=dark] .btn.n:focus-visible{background:#d9b25a!important;color:#10151f!important;border-color:#d9b25a}
html[data-theme=dark] .btn.n:disabled{opacity:.5}
/* progress and strength bars were too faint on dark */
html[data-theme=dark] .bar{background:#3a4766;border:1px solid #4a5675}
html[data-theme=dark] .bar i{background:linear-gradient(90deg,#d9b25a,#f0d58a)}
html[data-theme=dark]{--segon:#d9b25a;--segoff:#4a5675}

/* dropdown option list: the browser paints the option popup with the control's own background,
   so .panel select option{color:#111} left every option black-on-near-black in dark mode */
html[data-theme=dark] select{color-scheme:dark}
html[data-theme=dark] select option{background:#0f1522;color:#e6e9f0}
html[data-theme=dark] select option:checked{background:#2a3347;color:#fff}

html[data-theme=dark] .hint.bad{color:#ff9d9d !important}
html[data-theme=dark] .gboard .gcard{background:#131b2b!important;color:#e6e9f0!important;border-color:#2a3347}
html[data-theme=dark] .gboard .gcard.on,html[data-theme=dark] .gboard .gcard.done{background:#1a2438!important;border-color:#c9a227;color:#fff!important}
html[data-theme=dark] .gboard .gcard.done{opacity:.55;border-color:#2f7d4f}
html[data-theme=dark] .scslot{background:#131b2b!important;color:#e6e9f0!important;border-color:#c9a227}
html[data-theme=dark] .sctile{background:#131b2b!important;color:#e6e9f0!important;border-color:#2a3347}
html[data-theme=dark] .hsvg line,html[data-theme=dark] .hsvg circle{stroke:#e6e9f0}
html[data-theme=dark] .hsvg .hp.on{stroke:#ff8b80}
html[data-theme=dark] .hslot{color:#e6e9f0;border-color:#e6e9f0}
html[data-theme=dark] .hslot.on{color:#7ee0a3;border-color:#7ee0a3}
html[data-theme=dark] .hl{background:#131b2b!important;color:#e6e9f0!important;border-color:#2a3347}
html[data-theme=dark] .hl.ok{color:#7ee0a3!important;border-color:#2f7d4f}
html[data-theme=dark] .hl.no{color:#ff8b80!important;border-color:#7a2f2a}
html[data-theme=dark] .spopt{background:#131b2b!important;color:#e6e9f0!important;border-color:#2a3347}
html[data-theme=dark] #lsin{background:#0f1522;color:#e6e9f0;border-color:#34405a}
html[data-theme=dark] .wdword{color:#f1f3f8}
html[data-theme=dark] .wddef{color:#dfe4ee}
html[data-theme=dark] .wdex{color:#aab3c5}
html[data-theme=dark] .wdmeta{color:#aab3c5}
html[data-theme=dark] .cfq{color:#e6e9f0}
html[data-theme=dark] .cfover{color:#f1f3f8}
html[data-theme=dark] .cfans{color:#7ee0a3}
html[data-theme=dark] .cfwhy{color:#aab3c5}
html[data-theme=dark] .spopt.bad{border-color:#7a2f2a!important;color:#ff8b80!important}
html[data-theme=dark] .gtile{background:#131b2b;border-color:#2a3347;color:#e6e9f0}
html[data-theme=dark] .gtile i{border-color:#c9a227;color:#c9a227}
html[data-theme=dark] .gsub{color:#aab3c5}
html[data-theme=dark] .gpick label{color:#aab3c5}
html[data-theme=dark] .odtile{background:#131b2b;border-color:#2a3347;color:#e6e9f0}
html[data-theme=dark] .odtile span{color:#aab3c5}
html[data-theme=dark] .odtile.on{border-color:#2f7d4f;background:#12261b}
html[data-theme=dark] .odtile.bad{border-color:#7a2f2a;background:#2a1614}
html[data-theme=dark] .wscell{background:#131b2b;border-color:#2a3347;color:#e6e9f0}
html[data-theme=dark] .wscell.sel{background:#2a2412;border-color:#c9a227;color:#ffe6a3}
html[data-theme=dark] .wscell.on{background:#12261b;border-color:#2f7d4f;color:#7ee0a3}
html[data-theme=dark] .wsword{color:#dfe4ee}
html[data-theme=dark] .wsword.on{color:#7ee0a3}
html[data-theme=dark] .wchip{background:#131b2b;border-color:#2a3347;color:#e6e9f0}
html[data-theme=dark] .wchip.last{background:#2a2412;border-color:#c9a227;color:#ffe6a3}
html[data-theme=dark] .bbcell{background:#131b2b;border-color:#2a3347;color:#e6e9f0}
html[data-theme=dark] .cwcell{background:#131b2b;border-color:#38445c;color:#e6e9f0}
html[data-theme=dark] .cwcell.blk{background:transparent;border-color:transparent}
html[data-theme=dark] .cwcell.ok{background:#17351f;border-color:#3f7d51;color:#cdeccd}
html[data-theme=dark] .cwcell.bad{background:#3a1d1d;border-color:#8a4a4a}
html[data-theme=dark] .cwclue input{background:#0f1626;border-color:#3d4a63;color:#e6e9f0}
html[data-theme=dark] .cwclue.ok input{border-color:#3f7d51;background:#152a1b}
html[data-theme=dark] a.gl{text-decoration-color:#e0bd63}
html[data-theme=dark] .gitem.glhit{border-color:#e0bd63;box-shadow:0 0 0 4px rgba(224,189,99,.14)}

/* Third audit UX-08: lesson focus mode follows the chosen theme instead of forcing a light screen */
html[data-theme=dark] body.kil-focus{background:radial-gradient(circle at 50% -10%,#1c2438 0,#141a28 45%,#0e131d 100%)!important}
html[data-theme=dark] #fl .kcard{background:#171e2c;border-top-color:#d9b25a;box-shadow:0 18px 50px rgba(0,0,0,.45)}
html[data-theme=dark] #fl .kword{color:#f1ead6}
html[data-theme=dark] #fl h3{color:#f1ead6}
html[data-theme=dark] #fl .hint{color:#c0b492}
html[data-theme=dark] #fl .kar{color:#efd79c;background:#241f12;border-color:#4c4227}
html[data-theme=dark] #fl .ch{background:#1b2436;color:#f1ead6;border-color:#2f3a52}
html[data-theme=dark] #fl .ch:hover:not(:disabled){border-color:#d9b25a;background:#232d44}
html[data-theme=dark] #fl #ti{background:#1b2436;color:#f1ead6;border-color:#2f3a52}
html[data-theme=dark] #fl .bar{background:#26314a}
html[data-theme=dark] #fl .kbtn.n{background:#1b2436;color:#f1ead6}
html[data-theme=dark] body.kil-focus #qz .q{background:#1b2436;border-color:#2f3a52}
html[data-theme=dark] body.kil-focus #qz .q>b{color:#f1ead6}
html[data-theme=dark] body.kil-focus #qz .q label{background:#1b2436;border-color:#2f3a52;color:#e6e9f0}
html[data-theme=dark] body.kil-focus #qz .q label:hover{border-color:#d9b25a;background:#232d44}
html[data-theme=dark] body.kil-focus #qz .q label:has(input:checked){border-color:#d9b25a;background:#232d44;box-shadow:inset 0 0 0 1px #d9b25a}
html[data-theme=dark] .kres{background:#1b2436;border-color:#2f3a52;color:#e6e9f0}
html[data-theme=dark] .kil-x a{color:#efd79c!important;background:#1b2436!important;border-color:#3a4560}
html[data-theme=dark] #klw{color:#f1ead6!important}
html[data-theme=dark] .kil-play{background:#d9b25a;color:#12203f;box-shadow:0 8px 22px rgba(0,0,0,.45)}


/* ======== from a11y.css ======== */

/* Audit pass 2: accessibility fixes. Loaded after dark.css. */
/* contrast: the label color was 4.0 on cream, now 5.6 (light theme only) */
:root{--lab:#6f6140}
.ed-brand small,.ed-fg .ed-brand small,html[dir=rtl] .ed-brand small{color:#7a5a14!important;font-size:10px}
html[data-theme=dark] .ed-brand small,html[data-theme=dark] .ed-fg .ed-brand small{color:#d9b25a!important}
.st span{color:#7a5a14}
html[data-theme=dark] .st span{color:#d9b25a}
/* focus: every link, button and field shows a ring for keyboard users */
a:focus-visible,button:focus-visible,summary:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
.top .tr a:focus-visible,nav a:focus-visible,.ft2 a:focus-visible{outline:2px solid #d9b25a;outline-offset:2px}
/* tap targets: 44px minimum for header strip, burger, footer links, buttons, fields */
.top .tr a,.top .tr button{display:inline-flex;align-items:center;min-height:44px;min-width:44px;justify-content:center;padding-inline:10px}
.top .tr{gap:8px}
.burger,.ed-burger{min-height:44px;min-width:44px}
summary{min-height:44px;display:flex;align-items:center}
.btn,.tabsb button,.tabsb a,.rtabs a,.gtile{min-height:44px}
input:not([type=checkbox]):not([type=radio]):not([type=range]),select{min-height:44px}
@media(max-width:820px){
  .btn{height:auto;min-height:44px}
  .hs button,#hs button,.search button{min-width:44px;min-height:44px}
  .nav nav a,nav a{min-height:44px;display:flex;align-items:center}
  a#fg,button#fg{display:inline-flex;align-items:center;min-height:44px}
button#fg{background:none;border:0;padding:0;font:inherit;cursor:pointer}
  summary{min-width:44px;justify-content:center}
  .ft2 .fg>div,.ed-fg>div{display:flex;flex-direction:column;align-items:flex-start}
  .ft2 .fg>div>a,.ed-fg>div>a{display:flex;align-items:center;min-height:44px;margin-bottom:0}
}



#app:focus{outline:none}
.skip{position:absolute;inset-inline-start:8px;top:-80px;z-index:999;background:#0b2250;color:#fff;padding:14px 16px;min-height:44px;border-radius:6px;font:600 14px Inter,system-ui,sans-serif;display:inline-flex;align-items:center}
.skip:focus{top:8px}
html[data-theme=dark] .skip{background:#d9b25a;color:#10151f}
/* settings tab: active tab in dark theme had gold text on a light background (contrast 1.7) */
html[data-theme=dark] .snav button.on{background:#d9b25a;color:#10151f;border-color:#d9b25a}
/* "?" help details: long text no longer pushes the page wider than the screen */
details.why{display:block;max-width:100%}
details.why p{max-width:100%;white-space:normal;overflow-wrap:anywhere}
details.why summary{width:44px;height:44px}
/* small controls: 44px targets */
button.fv{min-width:44px;min-height:44px}
.btn.sm,.btn.n.sm{min-height:44px!important;height:auto!important}
.btn.n,.btn.g,.btn.o{min-height:44px}
#efa button,.avg button{min-width:44px;min-height:44px}
/* long unbroken names or text in chat bubbles must wrap, not widen the page */
.cm{min-width:0;overflow-wrap:anywhere}
.cm b,.cm .t{overflow-wrap:anywhere;word-break:break-word}

/* menu items: hover, keyboard focus and current page keep readable text (WCAG AA, 4.5:1) in both themes */
.dd > ul li a:hover,.dd > ul li a:focus-visible,.dd > ul li a.on,.dd > ul li a[aria-current]{background:#f4eee0;color:#0b2250}
html[data-theme=dark] .dd > ul li a:hover,html[data-theme=dark] .dd > ul li a:focus-visible,html[data-theme=dark] .dd > ul li a.on,html[data-theme=dark] .dd > ul li a[aria-current],
html[data-theme=dark] .ed-nav .dd > ul li a:hover,html[data-theme=dark] nav#nav .dd > ul li a:hover,html[data-theme=dark] .ed-nav .dd > ul li a.on,html[data-theme=dark] nav#nav .dd > ul li a.on{background:#d9b25a;color:#10151f}

/* lesson action buttons (save, mark done, report): one size, weight and padding */
.row > #sa,.row > #dn,.row > #rp2{font-size:14px;font-weight:600;padding:0 20px;min-height:44px;height:auto;line-height:1.2;letter-spacing:0;text-transform:none}
/* grammar term popover (replaces the jump to the glossary page) */
button.gl{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;text-decoration-color:#b08a2e;font-weight:600}
button.gl:focus-visible{outline:2px solid #b08a2e;outline-offset:2px;border-radius:3px}
html[data-theme=dark] button.gl{text-decoration-color:#e0bd63}
.glpop{position:fixed;z-index:300;box-sizing:border-box;background:#fff;color:#0b2250;border:2px solid #b08a2e;border-radius:14px;padding:16px 18px;box-shadow:0 10px 30px rgba(0,0,0,.35);font-size:16px;line-height:1.75;font-weight:400}
.glpop:focus{outline:none}
.glpop .glh{display:flex;align-items:center;justify-content:space-between;gap:8px}
.glpop .glh b{font-size:18px}
.glpop .glx{min-width:44px;min-height:44px;margin:-14px -14px -14px 0;background:none;border:0;color:inherit;font-size:24px;cursor:pointer;border-radius:8px}
.glpop .glx:focus-visible{outline:2px solid #b08a2e}
.glpop p{margin:6px 0 0}
.glpop small{opacity:.8;font-weight:600}
html[dir=rtl] .glpop .glx{margin:-14px 0 -14px -14px}
.glpop .gld{font-size:16px}
.glpop .gle{font-size:15px}
html[data-theme=dark] .glpop{background:#1b2436;color:#f1ead6;border-color:#d9b25a}
.glpop mark{background:#f4e3b0;color:#0b2250;border-radius:3px;padding:0 3px;font-weight:700}
html[data-theme=dark] .glpop mark{background:#d9b25a;color:#10151f}
/* main navigation (nav.js): top icon bar on desktop, bottom tab bar on phone */
body.xon{--xbg:#fff;--xtx:#0b2250;--xmut:#4a5670;--xline:#e2dccb;--xact:#0b2250;--xcard:#fff;--xhov:#f4eee0;--xchip:#eaf0fa;--xgold:#7a5c14;--xpage:#fbf8f0}
html[data-theme=dark] body.xon{--xbg:#151c2b;--xtx:#f1ead6;--xmut:#aab3c5;--xline:#2a3347;--xact:#d9b25a;--xcard:#1b2436;--xhov:#232d44;--xchip:#232d44;--xgold:#d9b25a;--xpage:#10151f}
body.xon .top,body.xon header.nav,body.xon .ed-top,body.xon header.ed-head{display:none!important}
.xnav,.xpanel,.xbot{font-family:Inter,"Noto Naskh Arabic",Arial,sans-serif;font-size:15px;line-height:1.5}
.xnav svg,.xpanel svg,.xbot svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.xnav{position:sticky;top:0;z-index:150;height:56px;background:var(--xbg);border-bottom:1px solid var(--xline);display:flex;align-items:center;gap:12px;padding:0 16px;color:var(--xtx)}
.xbrand{display:flex;align-items:center;gap:10px;color:var(--xtx);text-decoration:none;font:700 20px "Playfair Display",Georgia,serif;letter-spacing:.04em}
html[dir=rtl] .xbrand{letter-spacing:0;font-family:"Noto Naskh Arabic",serif}
.xbrand img{width:40px;height:40px;object-fit:contain}
.xsrch{display:flex;align-items:center;gap:8px;background:var(--xchip);border-radius:22px;height:40px;padding:0 14px;color:var(--xmut);width:210px}
.xsrch svg{width:18px;height:18px}.xsrch input{flex:1;min-width:0;background:none;border:0;outline:0;color:var(--xtx);font:inherit;height:38px}
.xtabs{position:absolute;inset-inline:0;margin:auto;width:max-content;display:flex;height:56px}
.xtab{width:84px;height:56px;display:flex;align-items:center;justify-content:center;color:var(--xmut);position:relative;border-radius:8px;text-decoration:none}
.xtab:hover{background:var(--xhov)}.xtab.on{color:var(--xact)}.xtab.on:after{content:"";position:absolute;inset-inline:6px;bottom:0;height:3px;background:var(--xact);border-radius:3px 3px 0 0}
.xedge{margin-inline-start:auto;display:flex;gap:8px;align-items:center}
.xib{width:44px;height:44px;border-radius:50%;background:var(--xchip);display:flex;align-items:center;justify-content:center;color:var(--xtx);border:0;cursor:pointer;text-decoration:none;padding:0}
.xib:hover{background:var(--xhov)}.xmenu[aria-expanded=true]{background:var(--xact);color:var(--xpage)}
.xnav a:focus-visible,.xnav button:focus-visible,.xpanel a:focus-visible,.xpanel button:focus-visible,.xbot a:focus-visible{outline:3px solid #b08a2e;outline-offset:2px}
#xsb{display:none}
.xpanel{position:fixed;top:60px;inset-inline-end:16px;width:min(820px,calc(100vw - 32px));max-height:calc(100vh - 76px);overflow:auto;background:var(--xcard);color:var(--xtx);border:1px solid var(--xline);border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.35);z-index:160;display:flex;gap:16px;padding:16px}
.xpanel[hidden]{display:none}
.xmain{flex:1;min-width:0}.xside{width:230px;background:var(--xpage);border-radius:12px;padding:12px;align-self:flex-start;flex:none}
.xpanel h2{margin:0;font-size:22px;color:var(--xtx)}.xh{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.xclose{display:none}
.xpanel h3{margin:14px 0 6px;font-size:16px;color:var(--xgold);font-weight:700}.xside h3{margin-top:0;color:var(--xtx);font-size:18px}
.xg{display:grid;grid-template-columns:1fr 1fr;column-gap:12px}.xg h3{grid-column:1/-1}
.xent,.xq{display:flex;gap:12px;align-items:flex-start;padding:8px;border-radius:10px;min-height:44px;color:var(--xtx);text-decoration:none}
.xq{align-items:center;font-weight:600}.xent:hover,.xq:hover{background:var(--xhov)}
.xico{width:40px;height:40px;border-radius:10px;background:#0f295f;color:#d9b25a;display:flex;align-items:center;justify-content:center;flex:none}.xq .xico{width:36px;height:36px;border-radius:50%}
.xent b{display:block;font-size:15px}.xent small{display:block;color:var(--xmut);font-size:13px;line-height:1.4}
.xbot{display:none}
@media(max-width:900px){.xsrch{display:none}.xtabs{display:none}#xsb{display:flex}
 .xnav{padding:0 10px;gap:8px}.xbrand{font-size:18px}
 .xbot{display:flex;position:sticky;bottom:0;margin-top:auto;width:100%;min-height:calc(62px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);box-sizing:border-box;background:var(--xbg);border-top:1px solid var(--xline);z-index:155}
 .xbt{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--xmut);text-decoration:none;position:relative;min-width:44px}
 .xbt.on{color:var(--xact)}.xbt.on:before{content:"";position:absolute;top:0;inset-inline:14px;height:3px;background:var(--xact);border-radius:0 0 3px 3px}
 body.xon{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
 body.xon>*{min-width:0}
 body.xon>.pg{width:100%}
 .xpanel{inset:56px 0 calc(62px + env(safe-area-inset-bottom,0px)) 0;width:auto;max-height:none;border-radius:0;border:0;flex-direction:column;padding:12px 12px 20px;box-shadow:none}
 .xside{width:auto;order:-1;display:flex;gap:8px;overflow-x:auto;padding:8px;flex:none;align-self:stretch}.xside h3{display:none}
 .xq{background:var(--xcard);border:1px solid var(--xline);border-radius:22px;white-space:nowrap;padding:4px 12px 4px 4px;flex:none}
 .xg{grid-template-columns:1fr}.xent{min-height:56px;padding:10px 8px}.xclose{display:flex}
 body.xopen{overflow:hidden}}
.xbrand{min-height:44px}
@media(max-width:380px){.xnav{padding:0 6px;gap:6px}.xedge{gap:4px}.xbrand{gap:6px;font-size:17px}.xbrand img{width:36px;height:36px}}
@media(max-width:380px){.g2.cmp>*{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}a.qa{max-width:100%;box-sizing:border-box}}
@media(max-width:380px){.qa-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qa{min-width:0;padding:12px}}
.xsrch input::placeholder{color:var(--xmut);opacity:1}
/* sound check panel (settings) */
#scOut{margin-top:12px}
.scr{margin:6px 0;font-size:14px;word-break:break-word}
.scl{list-style:none;margin:6px 0;padding:0;font-size:13px;max-height:170px;overflow:auto}
.scl li{padding:4px 0;border-bottom:1px solid var(--line,#e7e0d0)}
.scv{margin:10px 0 0;padding:10px 12px;border-inline-start:4px solid var(--gold);border-radius:8px;background:var(--cream,#fbf8f2)}
html[data-theme=dark] .scv{background:#1a2236}
html[data-theme=dark] .scl li{border-bottom-color:#2a3347}
.scv #scSwap{display:block;width:fit-content;margin-top:10px}

/* dashboard polish: progress grid never 3+1, welcome card spacing, certificate links */
.pgrid{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.pgrid{grid-template-columns:repeat(2,1fr)}}
#welc{margin-bottom:18px}
#welc + h1:before{display:none}
.certs{gap:10px}
.certs .btn{flex:1 1 96px;justify-content:center;text-align:center;padding:0 8px;white-space:nowrap}
.certs+.hint{margin-top:12px}
/* global gap between a text block and the action row/button right after it */
.pg p + .row,.panel p + .row,.pg p + .btn,.panel p + .btn{margin-top:14px}
.panel p + p:has(> .btn:only-child){margin-top:14px}

/* offline preview card for server-only pages: faint layout skeleton */
.svoff h2{margin-top:0}
.skl{display:flex;flex-direction:column;gap:10px;margin:2px auto 18px;max-width:420px;pointer-events:none}
.skl i{display:block;height:13px;border-radius:7px;background:currentColor;opacity:.13}
.skl i:first-child{height:64px;border-radius:14px;opacity:.09}
.skl i:nth-child(2){width:82%}
.skl i:nth-child(3){width:64%}
.skl i:nth-child(4){width:38%}

/* two-tab switcher: short one-line labels, equal size */
.rtabs a{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}
/* stat card bars: clear inner margin so the track never nears the card border */
.panel.stat .bar{margin-inline:5px}
/* buttons: true vertical centering and clean wrapping for long labels */
.btn{height:auto;min-height:48px;padding-block:10px;line-height:1.3;text-align:center}
.btn.sm{height:auto;min-height:38px;padding-block:8px}
.btn.cont{display:inline-flex;align-items:center;justify-content:center}
.btn.n{height:auto;min-height:44px}
.btn.r{height:auto;min-height:34px}
#fl .kbtn,#fl #cn,#fl #go,#fl #tk2{height:auto;min-height:46px}
/* Header: search collapses to an icon before it can touch the centered tabs (tabs are 6x84px, viewport-centered; full 210px field only fits with clearance at >=1250px). The icon toggles the same wrap-open full-width search row as on phones. */
.xnav.xs-open{height:auto;flex-wrap:wrap;padding-bottom:8px}
.xnav.xs-open .xsrch{display:flex;order:5;width:100%}
@media (min-width:901px) and (max-width:1249px){
 .xsrch{display:none}
 #xsb{display:flex}
 .xtab{width:72px}
 .xnav.xs-open .xtabs{display:none}
}

/* Third audit UX-02, UX-12: online-only mark in the bars and menu, and short labels on wide screens */
.xic{position:relative;display:flex;align-items:center;justify-content:center;flex:none}
.xdot{position:absolute;top:-6px;inset-inline-end:-10px;width:10px;height:10px;border-radius:50%;background:transparent;color:var(--xgold);display:flex;align-items:center;justify-content:center;font-style:normal;line-height:0}.xdot svg{display:block}
.xol{display:inline-block;margin-inline-start:6px;padding:0 7px;border:1px solid var(--xgold);border-radius:20px;color:var(--xgold);font:600 10px/1.7 Inter,"Noto Naskh Arabic",Arial,sans-serif;letter-spacing:.04em;vertical-align:middle;white-space:nowrap;font-style:normal}
.xtab .xlab{display:none}
@media(min-width:1200px){
 .xtab{width:auto;padding:0 13px;gap:9px}
 .xtab .xlab{display:inline;font-size:13.5px;font-weight:600;white-space:nowrap}
}
@media(max-width:1000px){.qa-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.qa{min-width:0;flex-wrap:wrap;row-gap:4px}.qa-tag{margin-inline-start:0}}
@media(max-width:480px){.xbot .xbt{font-size:9.5px;min-width:0;padding-inline:0;letter-spacing:-.2px}.xbot .xbt span{white-space:nowrap}}@media(max-width:340px){.xbot .xbt{font-size:8.5px}}.xdot svg{width:10px!important;height:10px!important;max-width:none}
html[data-theme=dark] #fl .kcard .kar,html[data-theme=dark] #fl .kcard .kar b,html[data-theme=dark] #fl .kcard p[dir=rtl]{color:#efd79c!important}

/* Terms-lesson polish */
.nomic #rcBar{display:none!important}
.item .pill{float:none!important;display:inline-block;margin:0 0 6px!important}
.item h4{clear:both}
#fl .kar{font-size:16px!important;padding:8px 12px!important;line-height:1.6;margin:10px auto!important;max-width:340px}
.nomic #micbox{display:none!important}

/* Owner announcement banner + ad slots (migration 30). Reads well on light and dark. */
.kil-ann{display:flex;align-items:center;justify-content:center;gap:12px;background:#0f295f;color:#fff;padding:10px 44px;text-align:center;position:relative;font-size:15px;line-height:1.5}
.kil-ann .x{position:absolute;inset-inline-end:12px;top:50%;transform:translateY(-50%);background:none;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:4px}
.kil-ad{margin:20px auto 8px;max-width:728px;text-align:center}
.kil-ad-box{border:1.5px dashed #b8ad8f;border-radius:12px;padding:26px 12px;color:#8a7a52;background:rgba(138,122,82,.06)}
.kil-ad-box small{letter-spacing:2px;text-transform:uppercase;font-size:11px}
.kil-adwrap{padding:0 16px;box-sizing:border-box}
/* Text scaling: enlarge reading and form copy without scaling fixed navigation chrome. */
html[data-text-scale="1.15"] main :is(p,li,label,td,input,textarea,.hint,.kar,.race-meaning){font-size:20px!important;line-height:1.6!important}html[data-text-scale="1.3"] main :is(p,li,label,td,input,textarea,.hint,.kar,.race-meaning){font-size:23px!important;line-height:1.65!important}html[data-text-scale="1.3"] main :is(h1,h2,h3,h4){line-height:1.4!important;overflow-wrap:anywhere}main input,main textarea{box-sizing:border-box;max-width:100%}#studyBackup{overflow-wrap:anywhere}#studyBackup input{max-width:100%}

#sSize{direction:ltr}

/* ---- spacing pass: one scale (4/8/12/16/24/32), 44px targets on chat controls, one card radius ---- */
:root{--s1:4px;--s2:8px;--s3:12px;--s4:16px;--s5:24px;--s6:32px}
.cm{border-radius:var(--r,18px);padding:var(--s3) var(--s4);max-width:100%}
.chatlog{gap:var(--s3)}
.rbar{display:flex;flex-wrap:nowrap;gap:0;margin-top:var(--s2);justify-content:space-between;max-width:288px}
.rbar .re{flex:1 1 0;min-width:40px;min-height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:17px;line-height:1;border-radius:var(--s3)}
.macts{display:flex;align-items:center;gap:var(--s2);margin-top:var(--s1)}
.macts .rrp,.cm .rpt{min-height:44px;min-width:44px;padding:0 var(--s3);display:inline-flex;align-items:center;justify-content:center;font-size:14px;border-radius:var(--s3)}
.cm .rpt{font-size:18px}
.ft2{margin-top:var(--s6)}
.wchip.bot{background:#e8f0ff;border-style:dashed}
html[data-theme=dark] .wchip.bot{background:#14233f;border-style:dashed}
.trbox{margin:6px 0 2px;padding:8px 10px;border-radius:12px;border:1px dashed var(--line,#445);font-size:14px}.trbox[hidden]{display:none}
.macts .rrp{background:none;border:1px solid var(--line,#dfe4ee);color:inherit;border-radius:12px}
.macts .rrp[aria-pressed=true]{border-color:#c9a227;color:#c9a227}
.trbox{color:inherit;background:rgba(127,127,127,.06)}
.trbox small{display:block;margin-top:4px;opacity:.75}
.trbox .btn{margin-top:8px}
