.language-selector{width:100%;display:grid;gap:9px}.language-row{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.language-row[hidden]{display:none}
.language-flag,.language-toggle{position:relative;height:38px;width:38px;padding:0;border:2px solid white;border-radius:50%;display:grid;place-items:center;background:#09233f;color:white;overflow:visible;flex:0 0 auto}
.language-flag img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.language-flag[aria-disabled=true] img{opacity:.5}.language-flag[aria-disabled=true]{cursor:not-allowed}
.language-flag[aria-current]{outline:2px solid #f2ca72;outline-offset:2px}.language-toggle{font-size:24px}
.language-flag:hover:after,.language-flag:focus-visible:after{content:attr(data-label);position:absolute;z-index:20;top:calc(100% + 7px);inset-inline-start:0;font-size:13px;font-weight:500;white-space:nowrap;background:#082038;color:white;padding:5px 9px;border:1px solid white;border-radius:5px}
.verse{font-style:normal}.verse em{font-style:italic}.citation{font-style:normal}.question{margin-block:6px 24px}.question label{display:flex;gap:8px;align-items:baseline;cursor:pointer}.question input{flex-shrink:0;accent-color:#155e94}.option-letter{flex-shrink:0}
.lesson.pending{opacity:.62;cursor:default}.lesson span:last-child{margin-inline-start:auto;margin-left:0}.answer-correct{border-color:#6c9d79}.answer-incorrect{border-color:#bd8e79}.feedback{font-weight:600;font-size:.9em}.quiz-actions{margin-top:28px}
html[dir=rtl] body{font-family:"Noto Naskh Arabic","Tahoma",sans-serif;font-size:19px}html[dir=rtl] .option-letter{direction:ltr;unicode-bidi:isolate}
@media(max-width:600px){.language-row{display:grid;grid-template-columns:repeat(4,38px);gap:9px}.language-row[hidden]{display:none}.language-extra{grid-template-columns:repeat(2,38px)}}

/* Shared APP/EDU visual identity: seven chips in a single row. */
header{position:relative;gap:12px;background:#09233f}
header .brand{display:flex;align-items:center;min-width:0;max-width:100%;color:#e5f3ff;font-size:clamp(24px,4vw,37px);line-height:1.2;letter-spacing:.02em}
header .brand img{display:block;width:clamp(200px,32vw,370px);max-width:100%;height:auto;max-height:100px;object-fit:contain}
header .portal-link{display:inline-flex;align-items:center;gap:10px;font-size:15px;line-height:1.35}
header .portal-link img{width:54px;height:54px;object-fit:contain;border-radius:50%;flex:none}
.language-selector{direction:ltr;position:relative;display:block;width:max-content;max-width:100%;margin-inline-start:auto;z-index:45}
.language-row{display:flex;flex-wrap:nowrap;gap:5px;align-items:center}
.language-flag,.language-toggle{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:34px;padding:2px;border:1px solid #fff;border-radius:50px;background:#d4e5f1;color:#174d79;box-shadow:0 1px 3px #0a385122;line-height:1}
.language-flag img{display:block;width:28px;height:22px;max-width:90%;object-fit:contain;border-radius:0}
.language-flag[aria-current]{background:#fff;border:2px solid #0b6396;outline:none;box-shadow:0 0 0 1px #f9ffff}
.language-flag[aria-disabled=true] img{filter:grayscale(1);opacity:.6}
.language-toggle{font-size:0}
.language-toggle::before{content:"";display:block;width:0;height:0;border-inline:7px solid transparent;border-top:8px solid currentColor;border-bottom:0}
.language-toggle[aria-expanded=true]::before{border-top:0;border-bottom:8px solid currentColor}
.language-toggle[aria-expanded=true]{background:#fff;border-color:#0b6396}
.language-flag:hover,.language-flag:focus-visible,.language-toggle:hover,.language-toggle:focus-visible{outline:2px solid #62aee5;outline-offset:2px}
.language-flag:hover:after,.language-flag:focus-visible:after{inset-inline-start:auto;right:0;pointer-events:none}
.language-extra{position:absolute;right:0;top:calc(100% + 5px);width:min(244px,80vw);max-height:min(410px,62vh);overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));justify-items:center;gap:5px;padding:8px;background:#fff;border:1px solid #b9cfe1;border-radius:12px;box-shadow:0 10px 30px #11344b32;z-index:50}
.language-extra .language-flag{width:100%;min-height:36px}
.language-extra .language-flag:hover:after,.language-extra .language-flag:focus-visible:after{display:none} /* native localized title remains available inside scrolling menu */
.language-row[hidden]{display:none}
@media(max-width:650px){header .portal-link img{width:40px;height:40px}.language-selector{margin-inline-start:0}.language-row{gap:2px}.language-flag,.language-toggle{width:31px;height:31px;flex-basis:31px}.language-flag img{width:24px;height:20px}.language-extra{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.language-extra .language-flag{width:100%}}

/* EDU mark at the left, course title optically centered, flags below the strip. */
header{display:block;background:#f9f7f3;padding:0;color:#173753}
header .masthead{direction:ltr;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:18px;padding:14px 24px;border-bottom:6px solid #09233f}
header .brand{grid-column:2;grid-row:1;justify-content:center;justify-self:center;width:100%}
header .brand img{width:min(100%,370px);max-height:96px;object-fit:contain}
header .portal-link{grid-column:1;grid-row:1;justify-self:start;gap:12px;color:#173753;min-width:0}
header .portal-link img{width:62px;height:62px}
header .portal-copy{display:flex;flex-direction:column;line-height:1.15;min-width:0}
header .portal-site{font-family:"777 EDU Brand","Segoe UI",Arial,sans-serif;font-weight:400;font-size:clamp(15px,2.6vw,35px);letter-spacing:.02em;white-space:nowrap;color:#173753}
header .portal-sub{font-size:clamp(11px,1.5vw,16px);color:#5d6b78;margin-top:4px}
@font-face{font-family:"777 EDU Brand";src:url("fonts/edu-brand.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
header .language-selector{margin:0 18px 0 auto;padding:7px 0;max-width:calc(100% - 36px)}
.cover-art{position:relative;overflow:hidden;border-radius:12px;background:#071b35;margin:0;padding:0;isolation:isolate}
.cover-art .cover-background{display:block;width:100%;height:auto;aspect-ratio:1587/991;object-fit:contain}
.cover-art h1{position:absolute;inset:auto 0 3%;display:flex;justify-content:center;align-items:center;margin:0;padding:0;line-height:1}
.cover-art h1 img{display:block;width:min(67%,720px);max-height:22vw;object-fit:contain;filter:drop-shadow(0 2px 4px #0008)}
html[lang=zh] .cover-art h1 img{width:43%}
html[lang=ar] .cover-art h1 img{width:55%}
@media(max-width:800px){header .masthead{grid-template-columns:1fr;gap:8px;padding:12px 14px}header .brand{grid-column:1;grid-row:2;justify-self:center;max-width:300px}header .portal-link{gap:7px}header .portal-link img{width:42px;height:42px}header .portal-site{font-size:clamp(18px,3.1vw,25px)}header .portal-sub{font-size:12px}header .language-selector{margin-right:10px;max-width:calc(100% - 20px)} }
@media(max-width:420px){header .masthead{grid-template-columns:1fr;gap:8px}header .portal-link{grid-row:1;grid-column:1}header .brand{grid-row:2;grid-column:1;max-width:220px}header .portal-site{font-size:23px}header .brand img{max-height:67px}.cover-art h1 img{max-height:none}}
