/* Scoped to learning cards: no global typography, navigation or access changes. */
#nawa-learning-language-choice{--choice-ink:#123044;--choice-gold:#b48434;--choice-muted:#526676;margin-block:2rem 2.75rem;color:var(--choice-ink)}
#nawa-learning-language-choice *{box-sizing:border-box}
#nawa-learning-language-choice .section-head{display:block;margin-bottom:1.4rem}
#nawa-learning-language-choice h2{font-family:inherit;font-size:clamp(1.45rem,2.5vw,2.05rem);line-height:1.4;margin:0;font-weight:800;letter-spacing:-.025em}
#nawa-learning-language-choice h2>span{display:block}
#nawa-learning-language-choice h2>span[lang=ar]{font-size:.92em;margin-top:.1em}
#nawa-learning-language-choice .section-head p{font-size:1rem;line-height:1.65;margin:.65rem 0 0;color:var(--choice-muted)}
#nawa-learning-language-choice .section-head p>span{display:block}
#nawa-learning-language-choice [lang=ar]{direction:rtl;text-align:right;letter-spacing:0}
#nawa-learning-language-choice .nawa-learning-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:1.2rem}
#nawa-learning-language-choice .nawa-learning-choice-card{position:relative;display:flex;flex-direction:column;gap:0;min-width:0;padding:0;overflow:hidden;border:1px solid #d9e1e2;border-radius:22px;background:#fffdfa;box-shadow:0 8px 24px #0a25300b;transition:box-shadow .18s ease,border-color .18s ease,transform .18s ease}
#nawa-learning-language-choice .nawa-learning-choice-card:hover{border-color:#c8ab78;box-shadow:0 14px 30px #0a253012;transform:translateY(-3px)}
#nawa-learning-language-choice .nawa-choice-visual{position:relative;display:flex;justify-content:space-between;align-items:center;gap:.75rem;min-height:112px;padding:1.25rem;overflow:hidden;isolation:isolate;background:linear-gradient(120deg,#dfebf4,#eef2f0)}
#nawa-learning-language-choice [data-learning-language=en] .nawa-choice-visual{background:linear-gradient(120deg,#f5e6df,#f7ede8)}
#nawa-learning-language-choice [data-learning-language=ar] .nawa-choice-visual{background:linear-gradient(120deg,#e4ebde,#f2efde)}
#nawa-learning-language-choice .nawa-choice-flags{position:relative;z-index:1;display:block;flex:none;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:3.25rem;line-height:1.15;letter-spacing:-.25rem;white-space:nowrap;filter:drop-shadow(0 5px 6px #12304415)}
#nawa-learning-language-choice [data-learning-language=en] .nawa-choice-flags{font-size:2.6rem;letter-spacing:-.35rem}
#nawa-learning-language-choice .nawa-choice-greeting{position:relative;z-index:1;font-size:1.05rem;line-height:1.4;font-weight:800;max-width:8em;color:var(--choice-ink);text-align:end;overflow-wrap:normal}
#nawa-learning-language-choice .nawa-choice-orbit{position:absolute;z-index:0;width:155px;height:155px;inset-inline-end:-28px;top:-67px;border:24px solid #ffffff70;border-radius:50%;pointer-events:none}
#nawa-learning-language-choice .nawa-choice-content{display:flex;flex:1;flex-direction:column;gap:.8rem;padding:1.2rem 1.25rem 1rem;min-width:0}
#nawa-learning-language-choice h3{display:flex;flex-direction:column;gap:.15rem;margin:0;font-size:1.4rem;line-height:1.45;font-weight:800;font-family:inherit;color:var(--choice-ink)}
#nawa-learning-language-choice h3>span[lang=ar]{font-size:.95em;color:#395563}
#nawa-learning-language-choice :is(.nawa-choice-description,.nawa-learning-choice-detail){font-size:.97rem;line-height:1.7;margin:0;overflow-wrap:break-word;color:var(--choice-muted)}
#nawa-learning-language-choice :is(.nawa-choice-description,.nawa-learning-choice-detail)>span{display:block}
#nawa-learning-language-choice .nawa-choice-description{color:var(--choice-ink)}
#nawa-learning-language-choice .nawa-learning-choice-detail{font-size:.88rem;padding-top:.8rem;border-top:1px solid #e9e9df;margin-top:auto}
#nawa-learning-language-choice .nawa-choice-action{display:flex;justify-content:space-between;align-items:center;gap:.65rem;align-self:stretch;width:auto;max-width:calc(100% - 2.5rem);min-height:72px;margin:0 1.25rem 1.25rem;padding:.65rem .95rem;border:1px solid #143246;border-radius:13px;background:#143246;color:#fff;box-shadow:none;font-size:1rem;font-weight:700;line-height:1.5;white-space:normal;text-decoration:none}
#nawa-learning-language-choice .nawa-choice-action:hover{background:#234b60;border-color:#234b60}
#nawa-learning-language-choice .nawa-choice-action-copy{display:block;min-width:0;flex:1}
#nawa-learning-language-choice .nawa-choice-action-copy>span{display:block}
#nawa-learning-language-choice .nawa-choice-action-copy>[lang=ar]{color:#e0ecee;font-size:.95em}
#nawa-learning-language-choice .nawa-choice-arrow{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid #ffffff44;border-radius:50%;font-size:1.1rem;color:#edcf97}
#nawa-learning-language-choice a:focus-visible,.nawa-learning-context a:focus-visible{outline:3px solid #a57120;outline-offset:4px}
.nawa-learning-context{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-block:1rem}
.nawa-learning-context :is(a,span[aria-current])>span[lang]{display:block}
.nawa-learning-context [lang=ar]{direction:rtl;text-align:right}
@media(min-width:1024px){#nawa-learning-language-choice .section-head h2{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.3rem 1.5rem}#nawa-learning-language-choice .section-head p{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.3rem 1.5rem}}
@media(max-width:1000px){#nawa-learning-language-choice .nawa-learning-choice-grid{grid-template-columns:1fr}#nawa-learning-language-choice .nawa-learning-choice-card{display:grid;grid-template-columns:150px minmax(0,1fr)}#nawa-learning-language-choice .nawa-choice-visual{grid-row:1 / 3;flex-direction:column;justify-content:center;gap:1rem;padding:1rem}#nawa-learning-language-choice .nawa-choice-greeting{text-align:center}#nawa-learning-language-choice .nawa-choice-content{padding:1.1rem 1.2rem .8rem}#nawa-learning-language-choice .nawa-choice-action{margin:0 1.2rem 1.1rem;max-width:none}#nawa-learning-language-choice h3{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;gap:.2rem .75rem}}
@media(max-width:540px){#nawa-learning-language-choice{margin-block:1.5rem 2rem}#nawa-learning-language-choice .nawa-learning-choice-card{display:flex}#nawa-learning-language-choice .nawa-choice-visual{min-height:92px;flex-direction:row;justify-content:space-between;padding:.9rem 1.15rem}#nawa-learning-language-choice .nawa-choice-flags{font-size:2.8rem}#nawa-learning-language-choice [data-learning-language=en] .nawa-choice-flags{font-size:2.45rem}#nawa-learning-language-choice .nawa-choice-content{padding:1.05rem 1.15rem .9rem}#nawa-learning-language-choice .nawa-choice-action{margin:0 1.15rem 1.15rem;min-height:66px}#nawa-learning-language-choice h3{font-size:1.3rem}#nawa-learning-language-choice .nawa-learning-choice-detail{margin-top:0}#nawa-learning-language-choice .section-head p{font-size:.95rem}}
@media(prefers-reduced-motion:reduce){#nawa-learning-language-choice .nawa-learning-choice-card{transition:none}#nawa-learning-language-choice .nawa-learning-choice-card:hover{transform:none}}
@media(forced-colors:active){#nawa-learning-language-choice .nawa-learning-choice-card,#nawa-learning-language-choice .nawa-choice-action{border:1px solid ButtonText}#nawa-learning-language-choice .nawa-choice-visual{background:Canvas}}
/* Fill only the library thumbnails. Preserve each artwork's focal position and the uncropped lesson reader. */
.learn-page .language-library .lesson-subject-card .lesson-art-card-media .lesson-art-frame > .lesson-subject-image{object-fit:cover}

/* Original platform footer only. Existing routes, labels and legal copy remain. */
.site-footer.nawa-footer-polished{display:block;box-sizing:border-box;width:calc(100% - 40px);max-width:1280px;margin:48px auto calc(100px + env(safe-area-inset-bottom));padding:0;overflow:hidden;border:1px solid #214453;border-radius:24px;background:#092b39;color:#fffdf7;box-shadow:none;font-family:var(--nawa-font-ui,system-ui,sans-serif);line-height:1.65}
.site-footer.nawa-footer-polished *{box-sizing:border-box;min-width:0}
.site-footer.nawa-footer-polished .nf-top{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,2.15fr);gap:40px;padding:36px}
.site-footer.nawa-footer-polished .site-footer-brand{display:flex;align-items:center;gap:14px}
.site-footer.nawa-footer-polished .site-footer-brand img{display:block;flex:none;width:58px;height:58px;object-fit:contain;border:1px solid #edcf9740;border-radius:16px;padding:7px;background:#fffdf7}
.site-footer.nawa-footer-polished .site-footer-brand b{display:block;color:#fffdf7;font-size:1.5rem;line-height:1.3;font-weight:800}
.site-footer.nawa-footer-polished .nf-eyebrow{display:block;margin-top:7px;color:#edcf97;font-size:.72rem;line-height:1.6;letter-spacing:.035em;font-weight:700}
.site-footer.nawa-footer-polished .nf-intro{margin:20px 0 24px;color:#d2dfe2;font-size:1.03rem;line-height:1.7}
.site-footer.nawa-footer-polished .nf-intro>span{display:block}
.site-footer.nawa-footer-polished nav{margin:0;padding:0;border:0;justify-content:start}
.site-footer.nawa-footer-polished .nf-support{display:block}
.site-footer.nawa-footer-polished .nf-support .footer-support-button{display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-width:180px;min-height:60px;max-width:100%;margin:0;padding:10px 18px;border:1px solid #edcf97;border-radius:12px;background:#edcf97;color:#10213f;font:700 .98rem/1.5 var(--nawa-font-ui,system-ui,sans-serif);text-align:start;box-shadow:none}
.site-footer.nawa-footer-polished .site-footer-seo{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto auto 1fr;gap:8px 24px;align-content:start;align-items:start;grid-column:auto}
.site-footer.nawa-footer-polished .nf-group{display:flex;flex-direction:column;align-items:stretch;gap:3px;grid-row:1/5}
.site-footer.nawa-footer-polished .nf-group:first-child{grid-column:1}
.site-footer.nawa-footer-polished .nf-group:nth-child(2){grid-column:2}
.site-footer.nawa-footer-polished h3{display:block;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid #edcf9740;color:#edcf97;font-size:.96rem;font-weight:750;line-height:1.55;letter-spacing:0}
.site-footer.nawa-footer-polished h3>span{display:block}
.site-footer.nawa-footer-polished h3>[lang=ar]{font-size:.96em;font-weight:650}
.site-footer.nawa-footer-polished .nf-explore-title{grid-column:3;grid-row:1;margin-bottom:0}
.site-footer.nawa-footer-polished .site-footer-seo>a[href="/plan-du-site/"]{grid-column:3;grid-row:2}
.site-footer.nawa-footer-polished .site-footer-seo>[data-np-shell-link]{grid-column:3;grid-row:3}
.site-footer.nawa-footer-polished .site-footer-seo>[data-innovations-link]{grid-column:3;grid-row:4}
.site-footer.nawa-footer-polished .site-footer-seo a,.site-footer.nawa-footer-polished .nf-legal button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;min-height:44px;min-width:44px;max-width:100%;margin:0;padding:8px 0;border:0;border-radius:4px;background:transparent;color:#fffdf7;font:600 .91rem/1.5 var(--nawa-font-ui,system-ui,sans-serif);text-align:start;text-decoration:none;overflow-wrap:anywhere;box-shadow:none}
.site-footer.nawa-footer-polished .site-footer-seo a [lang=ar],.site-footer.nawa-footer-polished .nf-legal button [lang=ar]{color:#b8cdd4;font-size:.93em;font-weight:500;line-height:1.65}
.site-footer.nawa-footer-polished [lang=ar]{direction:rtl;text-align:right;letter-spacing:0}
.site-footer.nawa-footer-polished .site-footer-seo a:hover,.site-footer.nawa-footer-polished .nf-legal button:hover{background:transparent;color:#edcf97;text-decoration:underline;text-underline-offset:4px}
.site-footer.nawa-footer-polished a:focus-visible,.site-footer.nawa-footer-polished button:focus-visible{outline:3px solid #edcf97;outline-offset:5px}
.site-footer.nawa-footer-polished .nf-support .footer-support-button:hover{background:#f7dfb4;color:#10213f;text-decoration:underline;text-underline-offset:4px}
.site-footer.nawa-footer-polished .nf-legal{display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,2.15fr);gap:40px;padding:24px 36px;border-top:1px solid #ffffff20;background:#082532}
.site-footer.nawa-footer-polished .nf-legal h3{align-self:start;border:0;margin:0;padding:0}
.site-footer.nawa-footer-polished .nf-legal>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 24px}
.site-footer.nawa-footer-polished .nf-bottom{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px 40px;padding:22px 36px;border-top:1px solid #ffffff20;background:#061f2a;color:#b8cdd4}
.site-footer.nawa-footer-polished .nf-bottom small,.site-footer.nawa-footer-polished .nf-bottom p{display:block;margin:0;padding:0;border:0;color:inherit;font-size:.76rem;line-height:1.8}
.site-footer.nawa-footer-polished .nf-copyright small+small{margin-top:5px}
@media(max-width:1000px){.site-footer.nawa-footer-polished .nf-top{grid-template-columns:1fr;gap:30px}.site-footer.nawa-footer-polished .nf-about{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:24px}.site-footer.nawa-footer-polished .nf-intro{margin:14px 0 0;grid-column:1}.site-footer.nawa-footer-polished .nf-support{grid-column:2;grid-row:1/3}.site-footer.nawa-footer-polished .nf-legal{grid-template-columns:1fr;gap:16px}}
@media(max-width:640px){.site-footer.nawa-footer-polished{width:calc(100% - 24px);margin-top:30px;border-radius:20px}.site-footer.nawa-footer-polished .nf-top{padding:24px 20px;gap:28px}.site-footer.nawa-footer-polished .nf-about{display:block}.site-footer.nawa-footer-polished .nf-intro{margin:16px 0 20px}.site-footer.nawa-footer-polished .nf-support .footer-support-button{width:100%;align-items:center;text-align:center;min-height:64px}.site-footer.nawa-footer-polished .site-footer-seo{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto auto;gap:12px 20px}.site-footer.nawa-footer-polished .nf-group{grid-row:1}.site-footer.nawa-footer-polished .nf-explore-title{grid-column:1/-1;grid-row:2;margin-top:12px}.site-footer.nawa-footer-polished .site-footer-seo>a[href="/plan-du-site/"]{grid-column:1;grid-row:3}.site-footer.nawa-footer-polished .site-footer-seo>[data-np-shell-link]{grid-column:2;grid-row:3}.site-footer.nawa-footer-polished .site-footer-seo>[data-innovations-link]{grid-column:1/-1;grid-row:4}.site-footer.nawa-footer-polished .nf-legal{padding:22px 20px;gap:14px}.site-footer.nawa-footer-polished .nf-legal>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 20px}.site-footer.nawa-footer-polished .nf-bottom{grid-template-columns:1fr;padding:20px;gap:14px}.site-footer.nawa-footer-polished .site-footer-brand b{font-size:1.4rem}}
@media(forced-colors:active){.site-footer.nawa-footer-polished,.site-footer.nawa-footer-polished .nf-legal,.site-footer.nawa-footer-polished .nf-bottom{background:Canvas;color:CanvasText;border-color:CanvasText}.site-footer.nawa-footer-polished :is(a,button,b,h3,p,small,[lang=ar],.nf-eyebrow){color:CanvasText!important}.site-footer.nawa-footer-polished .nf-support .footer-support-button{background:ButtonFace;color:ButtonText!important;border-color:ButtonText}}

/* The existing voyage enhancer remains active. Override only its legacy footer
   geometry; preserve every route, control and document label. */
body .site-footer.nawa-footer-polished .site-footer-seo>.nf-group:nth-of-type(1){grid-column:1}
body .site-footer.nawa-footer-polished .site-footer-seo>.nf-group:nth-of-type(2){grid-column:2}
body .site-footer.nawa-footer-polished{display:block!important;grid-template-columns:none!important;width:calc(100% - 40px);max-width:1280px;margin:48px auto calc(100px + env(safe-area-inset-bottom));padding:0;border:1px solid #214453;border-radius:24px!important;background:#092b39;color:#fffdf7;gap:0}
body .site-footer.nawa-footer-polished .nf-top{width:100%;grid-column:auto;grid-row:auto}
body .site-footer.nawa-footer-polished .site-footer-seo{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 24px}
body .site-footer.nawa-footer-polished .nf-support>h2,
body .site-footer.nawa-footer-polished .site-footer-seo>h2,
body .site-footer.nawa-footer-polished .nf-legal>h2{display:none!important}
body .site-footer.nawa-footer-polished>nav.nf-legal{display:grid!important;grid-column:auto!important;grid-row:auto!important;grid-template-columns:minmax(200px,.85fr) minmax(0,2.15fr)!important;width:100%!important;margin:0!important;gap:40px!important;padding:24px 36px!important;border:0!important;border-top:1px solid #ffffff20!important;align-content:start!important;justify-content:normal!important;background:#082532}
body .site-footer.nawa-footer-polished>nav.nf-legal :is(a,button){padding:8px 0!important;background:transparent!important;color:#fffdf7!important;border-radius:4px!important;font:600 .91rem/1.5 var(--nawa-font-ui,system-ui,sans-serif)!important;min-height:44px!important}
body .site-footer.nawa-footer-polished>nav.nf-legal :is(a,button)>[lang=ar]{color:#b8cdd4!important;font:500 .85rem/1.65 var(--nawa-font-ar,var(--nawa-font-ui,system-ui,sans-serif))!important}
body .site-footer.nawa-footer-polished .nf-support .footer-support-button{background:#edcf97!important;color:#10213f!important;border:1px solid #edcf97!important;border-radius:12px!important;padding:10px 18px!important}
body .site-footer.nawa-footer-polished .nf-support .footer-support-button :is(span,small){color:#10213f!important}
@media(max-width:1000px){body .site-footer.nawa-footer-polished>nav.nf-legal{grid-template-columns:1fr!important;gap:16px!important}}
@media(max-width:640px){body .site-footer.nawa-footer-polished{width:calc(100% - 24px);margin-top:30px;border-radius:20px!important}body .site-footer.nawa-footer-polished .site-footer-seo{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}body .site-footer.nawa-footer-polished>nav.nf-legal{padding:22px 20px!important;gap:14px!important}}
@media(forced-colors:active){body .site-footer.nawa-footer-polished,body .site-footer.nawa-footer-polished>nav.nf-legal{background:Canvas;color:CanvasText;border-color:CanvasText!important}body .site-footer.nawa-footer-polished>nav.nf-legal :is(a,button),body .site-footer.nawa-footer-polished>nav.nf-legal :is(a,button)>[lang=ar]{color:CanvasText!important}body .site-footer.nawa-footer-polished .nf-support .footer-support-button{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important}body .site-footer.nawa-footer-polished .nf-support .footer-support-button :is(span,small){color:ButtonText!important}}
@media print{body .site-footer.nawa-footer-polished{display:none!important}}
body.nil-cinema-immersive-active .site-footer.nawa-footer-polished{display:none!important}
