/* v6 — reading/exam split, Darija guidance, results and experience journal. */
.fiche-layout{grid-template-columns:minmax(0,1.06fr) minmax(390px,.94fr);align-items:start}
.fiche-side{position:static;min-width:0}.fiche-questions{border:1px solid var(--line);border-radius:20px;background:var(--white);padding:24px;box-shadow:var(--shadow);max-height:680px;overflow:auto}.fiche-question-list{gap:12px}.fiche-questions-head{margin-bottom:16px}.fiche-questions h2{font-size:1.45rem}.preview-question{background:var(--paper);padding:14px}.preview-options{gap:4px}.preview-options span{border:1px solid var(--line);padding:6px 8px;background:var(--white);border-radius:8px}.paragraph-translate{display:block;margin:12px 0 -7px;border:0;background:transparent;color:var(--teal);font-size:.84rem;font-weight:800;cursor:pointer}.paragraph-translate:hover{text-decoration:underline}.fiche-body .arabic-block[hidden]{display:none}.darija-result{background:var(--soft);border-radius:12px;padding:15px;margin-top:15px!important;white-space:pre-wrap;line-height:1.8;font-size:.91rem!important;text-align:right;border:1px solid var(--line)}.guide-button{margin-top:13px}.guide-card strong{margin:7px 0}.guide-disclosure{color:var(--muted)}
.exam-intro{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 14px}.exam-count{color:var(--teal);font-size:.83rem;font-weight:800;background:var(--aqua);padding:7px 12px;border-radius:99px}.exam-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:18px;align-items:start}.exam-support{overflow:hidden;border-radius:20px;position:sticky;top:106px;max-height:calc(100vh - 124px);display:flex;flex-direction:column}.exam-support-head{padding:21px 25px 15px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;flex-wrap:wrap}.exam-support-head .eyebrow{flex-basis:100%;margin:0}.exam-support-head h2{font-size:1.3rem;margin:0 auto 0 0;color:var(--navy)}.exam-support-head .button{font-size:.8rem;padding:7px 10px}.exam-support-body{overflow:auto;padding:12px 27px 26px;line-height:1.78;unicode-bidi:plaintext;scrollbar-color:var(--line) transparent}.exam-support-body .exam-paragraph{white-space:pre-wrap;margin:15px 0;overflow-wrap:anywhere}.exam-support-body .exam-arabic{padding:13px 16px;background:var(--soft);border-right:3px solid var(--lime);border-radius:10px;text-align:right;white-space:pre-wrap;margin:13px 0;line-height:1.8}.exam-support-body .exam-arabic[hidden]{display:none}.exam-support-body audio{width:100%;margin-top:12px}.exam-question .question-inner{max-width:none;padding:26px}.exam-question .question-header{padding:18px 26px}.exam-question .option{background:var(--paper)}.exam-question .option.correct{background:#e9f5e9}.exam-question .option.wrong{background:var(--red-bg)}.exam-question .letter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-question .letter-grid .option{min-width:0}.question-guide{margin-top:22px;border:1px solid var(--line);border-radius:12px;background:var(--soft);padding:11px 15px}.question-guide summary{cursor:pointer;color:var(--teal);font-weight:800}.question-guide p{white-space:pre-wrap;line-height:1.8;text-align:right;direction:rtl;margin-bottom:3px}.darija-feedback{border-top:1px solid var(--line);padding-top:12px;margin-top:12px!important;line-height:1.8!important;font-weight:650}.feedback .button{margin-top:12px}.gemini-answer:not(:empty){white-space:pre-wrap;direction:rtl;text-align:right;padding-top:10px;line-height:1.8}.gemini-disclosure{display:block;color:var(--muted);font-size:.72rem;margin-top:8px}.exam-question .question-actions{flex-wrap:wrap}
.exam-results{display:grid;gap:18px;max-width:1120px;margin:0 auto}.result-hero{padding:36px;border-radius:23px;background:linear-gradient(125deg,var(--white),var(--soft));text-align:center}.result-hero h2{font-size:clamp(1.8rem,3vw,2.8rem);margin:9px 0;color:var(--navy);direction:rtl}.result-hero>p{color:var(--muted);margin:0 0 23px}.result-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.result-metric{padding:16px;background:var(--white);border:1px solid var(--line);border-radius:15px;text-align:left}.result-metric span{display:block;color:var(--muted);font-size:.76rem}.result-metric strong{font-size:1.65rem;color:var(--navy)}.result-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.result-sections,.result-guide{border-radius:20px;padding:25px}.result-sections h3,.result-guide h3{font-size:1.25rem;margin:5px 0 20px;color:var(--navy)}.result-section{display:grid;grid-template-columns:1fr auto;gap:7px 12px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.result-section strong{font-size:.89rem}.result-section>span{font-weight:800;color:var(--teal)}.result-bar{grid-column:1/-1;height:7px;background:var(--soft);border-radius:10px;overflow:hidden}.result-bar span{display:block;height:100%;background:var(--teal);border-radius:10px}.result-guide p{white-space:pre-wrap;line-height:1.95;background:var(--soft);border-radius:12px;padding:18px;margin:0}.result-errors{padding:22px 25px;border-radius:18px}.result-errors summary{cursor:pointer;font-weight:800;color:var(--teal)}.result-error{border-top:1px solid var(--line);padding:13px 0}.result-error strong{display:block}.result-error p{margin:5px 0}.result-error small{color:var(--muted)}.exam-results .finished-actions{padding-bottom:28px}
.experience-layout{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);align-items:start;gap:22px}.experience-form{padding:25px;display:grid;gap:9px;border-radius:20px}.experience-form label{font-size:.86rem;font-weight:800;margin-top:7px}.experience-form textarea{width:100%;min-height:116px;resize:vertical}.experience-form button{margin-top:10px}.experience-form .muted{font-size:.78rem;margin:2px 0 0}.experience-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.experience-list-head h2{margin:0 0 15px;color:var(--navy)}.experience-list{display:grid;gap:13px}.experience-card,.experience-empty{padding:22px;border-radius:18px}.experience-meta{display:flex;justify-content:space-between;align-items:center}.experience-meta small{color:var(--muted)}.experience-card h3{margin:12px 0 7px}.experience-story{white-space:pre-wrap;line-height:1.75}.experience-tip{padding:14px 16px;background:var(--soft);border-radius:11px;white-space:pre-wrap;line-height:1.75}.experience-tip:before{content:'✦  ';color:var(--teal)}.experience-actions{display:flex;gap:8px;flex-wrap:wrap}.experience-copy{width:100%;margin-top:12px}.experience-empty p{color:var(--muted)}
.mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1050px){.fiche-layout,.exam-layout{grid-template-columns:1fr}.exam-support{position:static;max-height:55vh}.fiche-questions{max-height:none}.fiche-side{grid-template-columns:1fr 1fr}.fiche-questions{grid-column:1/-1}}
@media(max-width:760px){.result-columns,.experience-layout{grid-template-columns:1fr}.fiche-side{grid-template-columns:1fr}.fiche-questions{grid-column:auto}.exam-support{max-height:42vh}.exam-support-head,.exam-question .question-inner{padding:18px}.exam-support-body{padding:8px 18px 20px}.result-hero{padding:23px 16px}.result-metrics{gap:6px}.result-metric{padding:10px}.result-metric strong{font-size:1.25rem}.mobile-nav button{font-size:.69rem}}
@media(max-width:430px){.result-metrics{grid-template-columns:1fr 1fr}.result-metric:last-child{grid-column:1/-1}.exam-question .letter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fiche-stepper{overflow-x:auto}}
.batch-card{min-width:0}.batch-questions{padding:0 24px}.batch-item{padding:23px 0;border-bottom:1px solid var(--line)}.batch-item h3{font-size:1.04rem;color:var(--navy);line-height:1.45;margin:8px 0 14px}.batch-item .letter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.batch-item .option{padding:10px 12px;min-height:47px}.batch-guide{margin:19px 24px}.batch-footer{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 24px;background:var(--white);border-top:1px solid var(--line);box-shadow:0 -8px 20px rgba(0,0,0,.03)}.batch-progress{margin:0;color:var(--teal);font-weight:800;font-size:.85rem}.batch-card .option[aria-pressed=true]{background:var(--aqua);border-color:var(--teal)}
@media(max-width:760px){.batch-questions{padding:0 16px}.batch-item .letter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.batch-footer{padding:13px 16px}.batch-footer .button{min-width:130px}}
/* Arabic guidance starts at the reading edge; German exercise content keeps its own flow. */
.home-head>div:first-child,.page-heading>div:first-child,.explore-header,.start-path>div,.method-strip>div,.method-card,.guide-card,.experience-form,.experience-list-head,.experience-empty,.experience-card{direction:rtl;text-align:right}
.home-head .subtle,.page-heading .subtle{margin-left:auto;margin-right:0}
.guide-card .button,.experience-form .button{justify-content:center}
.experience-list-head{direction:rtl}.experience-meta{direction:ltr}
.question-guide summary{direction:rtl;text-align:right}.batch-progress{direction:rtl;text-align:right}
.fiche-side .fiche-questions-head{direction:rtl;text-align:right}
.fiche-side .preview-question{direction:ltr;text-align:left}
.question-guide[open]{margin-bottom:20px}.batch-guide{margin-top:20px;margin-bottom:8px}.guide-disclosure{font-size:.82rem!important;line-height:1.55}

/* Clarity revision, based on the supplied Lesen / Rita reference screens. */
:root{--paper:#ffffff;--white:#ffffff;--soft:#f5f7fa;--text:#233047;--navy:#172238;--muted:#5c687b;--line:#e1e6ed;--teal:#175bc4;--aqua:#edf4ff;--shadow:0 3px 12px rgba(23,34,56,.045)}
html[data-theme=dark]{--paper:#141b26;--white:#1c2635;--soft:#243145;--text:#e5edf8;--navy:#f3f7ff;--muted:#b1bed1;--line:#3b4960;--teal:#91bdff;--aqua:#233b5e;--shadow:none}
body{font-family:Arial,"Segoe UI",Tahoma,sans-serif;font-size:17px;background:var(--paper);line-height:1.7}
h1,h2,h3,p,button,label,summary{letter-spacing:normal}
[dir=rtl],[lang=ar],[lang=ar-MA]{letter-spacing:normal;word-spacing:normal}
[lang=de]{direction:ltr;text-align:left;unicode-bidi:isolate}
.topbar-inner,.topnav,.header-actions,.explorer-tabs,.explorer-levels,.explorer-cards,.exam-layout,.heading-exam,.exam-intro,.exam-part-tabs,.fiche-layout{direction:ltr}
.topbar{padding:12px 0;border-bottom:1px solid var(--line);box-shadow:none;background:var(--white)}
.topbar-inner{max-width:1680px;min-height:66px;border:1px solid var(--line);border-radius:40px;padding:8px 18px;gap:16px;box-shadow:var(--shadow)}
.brand{min-width:190px}.brand strong{font-size:19px}.brand small{font-size:12px;direction:rtl;text-align:left}.brand-logo{width:48px;height:48px}
.topnav{padding:5px;background:var(--soft);border-radius:28px}.nav-link{font-size:14px;padding:10px 12px;border-radius:24px}.nav-link.active{background:var(--white);color:var(--navy);box-shadow:0 2px 7px #14203418}
.shell{max-width:1560px;padding:38px 38px 100px}.screen{animation:none}
.explore-header{border:0;padding:26px 0 0;background:none;box-shadow:none;border-radius:0;margin-bottom:18px;direction:ltr;text-align:left}
.explore-header>.eyebrow{display:inline-block;direction:rtl;border:1px solid var(--line);padding:5px 12px;border-radius:8px;font-size:14px;background:var(--soft)}
.explore-header h1{font-size:clamp(48px,6vw,78px);margin:12px 0 6px;line-height:1.15}.explore-header>p:last-child{direction:rtl;text-align:left;font-size:16px;margin:10px 0}
.explore-skill-switch{display:none}.explorer-levels{width:max-content;margin:24px auto 38px;border:0;border-radius:24px;padding:4px;background:var(--soft)}.explorer-levels button{min-width:90px;padding:11px 24px;font-size:20px;border-radius:20px}.level-switch button[aria-pressed=true]{background:#147d63;color:white}
.explorer-tabs{display:flex;margin-bottom:26px;padding:5px;gap:4px;border:1px solid var(--line);border-radius:17px}.explorer-tab{flex:1;min-height:62px;font-size:18px;border-radius:12px}.explorer-tab[aria-pressed=true]{background:#147d63;color:white}.explorer-tab small{display:none}
.explorer-toolbar{direction:ltr;gap:16px;margin:0 0 14px}.explorer-search input{font-size:18px;direction:rtl;text-align:right;min-height:56px;background:var(--white);border-color:var(--line)}.explorer-toolbar select{direction:rtl;font-size:16px;min-height:56px;background:var(--soft);border-color:var(--line);color:var(--text)}
.explore-count{text-align:right;font-size:14px;margin:10px 0 22px}.explorer-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.subject-card{min-height:190px;padding:25px;border-radius:18px;text-align:left;box-shadow:0 4px 10px #1722380a}.subject-card:before{display:none}.subject-top{order:2;margin:8px 0;font-size:13px;color:var(--muted);direction:rtl;text-align:left}.subject-title{order:1;margin:4px 0 14px;font-size:22px;font-weight:600;direction:ltr}.subject-subtitle{display:none}.subject-footer{order:3;font-size:14px;padding-top:17px}.level-chip{background:var(--soft);color:var(--teal);font-size:14px}
#screen-entrainement:has(#practice-stage:not([hidden]))>.page-heading,#screen-entrainement:has(#practice-stage:not([hidden]))>.workshop-section{display:none}
.practice-stage{margin-top:0}.exam-intro{display:flex;flex-wrap:wrap;gap:18px;margin:0 0 26px;border-bottom:1px solid var(--line);padding:0 0 18px;align-items:center}.exam-intro>.text-button{font-size:15px;direction:rtl}.exam-subject-label{display:flex;flex-direction:column;min-width:100px}.exam-subject-label strong{font-size:21px}.exam-subject-label small{color:var(--muted);font-size:13px}.exam-part-tabs{display:flex;flex:1;max-width:720px;margin-inline:auto;background:var(--soft);padding:5px;border-radius:26px;gap:4px}.exam-part-tabs button{flex:1;min-width:78px;min-height:44px;border:0;border-radius:24px;background:transparent;color:var(--muted);font-weight:700}.exam-part-tabs button[aria-pressed=true]{background:var(--white);color:var(--navy);box-shadow:var(--shadow)}
.exam-layout{grid-template-columns:minmax(0,1.3fr) minmax(360px,1fr);gap:30px}.exam-support{position:static;max-height:none;box-shadow:none;border-radius:16px}.exam-support-body{overflow:visible;padding:14px 28px 28px;font-size:18px;line-height:1.85}.exam-support-head{direction:ltr;padding:20px 28px}.exam-support-body .exam-arabic,.fiche-body .arabic-block{font-size:18px;color:var(--teal);background:transparent;border:0;border-radius:0;padding:0 0 16px;margin:6px 0 20px;border-bottom:1px solid var(--line);line-height:1.9}.exam-paragraph{direction:ltr;text-align:left}.question-header{direction:ltr}.batch-item h3{font-size:19px;line-height:1.6}.batch-item{direction:ltr}.question-card{box-shadow:none}.question-inner h2{font-size:23px}.question-guide{font-size:17px;background:var(--soft);direction:rtl;text-align:right}.question-guide[open]{margin-bottom:20px}.batch-guide{margin-top:24px}
.option.bilingual-option{display:flex;gap:16px;align-items:stretch;min-height:76px;padding:15px;background:var(--white);border:1px solid var(--line);border-radius:14px;color:var(--text)}.option.bilingual-option .option-letter{display:flex;align-items:center;justify-content:center;flex:0 0 32px;min-height:36px;border-radius:8px;background:var(--soft);color:var(--muted);font-size:16px}.option-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px}.option-de{display:block;line-height:1.5;font-size:17px;font-weight:600;text-align:left;direction:ltr}.option-ar{display:block;font-size:17px;line-height:1.7;color:var(--teal);text-align:right;direction:rtl;font-weight:400}.option.selected{border-color:var(--teal);background:var(--aqua);box-shadow:0 0 0 2px var(--aqua)}.option.correct{background:var(--aqua);border-color:var(--teal)}.option.wrong{background:var(--red-bg);border-color:var(--red)}.batch-item .letter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.heading-exam{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(350px,1fr);gap:40px;align-items:start}.heading-texts{min-width:0}.heading-title{text-align:center!important;font-size:56px;margin:6px 0 0;line-height:1.4}.heading-subtitle{text-align:center;color:var(--muted);font-size:14px;font-weight:700;margin:5px 0 38px}.heading-text{padding:30px;border:1px solid var(--line);border-radius:20px;background:var(--white);margin-bottom:24px;box-shadow:var(--shadow)}.heading-text.active{border-color:#518bdf;box-shadow:0 0 0 4px var(--aqua)}.text-number{height:46px;min-width:46px;border:1px solid var(--line);border-radius:50%;background:var(--soft);color:var(--text);font-weight:700}.heading-passage{font-size:18px;line-height:1.9;margin:24px 0 28px;overflow-wrap:anywhere}.heading-answer-slot{display:block;width:100%;border:1px dashed var(--line);border-radius:12px;min-height:60px;padding:14px 18px;color:var(--muted);background:var(--soft);font-size:16px;line-height:1.6}.heading-options{position:sticky;top:110px;max-height:calc(100vh - 200px);overflow:auto;padding:0 8px 12px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.heading-options-head{position:sticky;top:0;background:var(--white);padding:14px 0;z-index:1}.heading-options h2{font-size:18px;letter-spacing:.07em;margin:0 0 12px;text-align:left}.heading-status{margin:0 0 8px;font-size:14px;direction:ltr;text-align:left}.matching-help{font-size:16px;color:var(--muted);text-align:right;line-height:1.8;margin:12px 0 20px}.heading-choices{display:grid;gap:14px}.heading-choices .option{width:100%;padding:19px 16px}.heading-choices .option:disabled{opacity:.5}.matching-footer{position:sticky;bottom:0;z-index:5;background:var(--white);border-top:1px solid var(--line);padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:24px;direction:rtl}.matching-guide{max-width:760px;line-height:1.8}.matching-guide summary{cursor:pointer;color:var(--teal);font-weight:700}.matching-guide p{white-space:pre-line;font-size:17px}.matching-footer .button{min-width:180px}.button-primary{background:#205bd4;border-color:#205bd4;color:#fff}.button-primary:hover{background:#1547ae;border-color:#1547ae;color:#fff}
.home-head,.page-heading,.path-stats,.method-grid,.backup-card,.section-heading,.stat-card,.result-columns,.result-metric,.experience-layout{direction:rtl;text-align:right}.home-head>div:first-child,.page-heading>div:first-child{width:100%}.page-heading h1,.home-head h1{line-height:1.6;letter-spacing:normal}.method-card p,.stat-card small,.backup-card p{font-size:16px;line-height:1.9}.method-card h3{font-size:20px}.eyebrow{letter-spacing:normal}.fiche-side{direction:rtl}.fiche-body{direction:ltr}.fiche-body p{unicode-bidi:plaintext}.fiche-questions{max-height:none;overflow:visible}.fiche-stepper{display:none}.guide-card p,.darija-result{font-size:17px!important;line-height:1.9}.fiche-toolbar #fiche-translate{display:none}.result-error{unicode-bidi:plaintext}.result-metric strong{direction:ltr;display:block;text-align:right}.theme-toggle{color:var(--text)}
@media(max-width:1200px){.topnav .nav-link{font-size:13px;padding:9px}.brand{min-width:155px}.shell{padding-inline:24px}.heading-exam{gap:24px;grid-template-columns:minmax(0,1.3fr) minmax(330px,1fr)}.heading-text{padding:24px}.explorer-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.heading-exam,.exam-layout{grid-template-columns:1fr}.heading-options{position:static;max-height:none;overflow:visible;padding:0}.heading-options-head{position:static}.heading-text{padding:22px}.heading-texts{display:grid;grid-template-columns:1fr}.heading-passage{font-size:18px}.matching-footer{bottom:62px}.exam-part-tabs{order:3;flex-basis:100%;max-width:100%;overflow-x:auto}.exam-support{max-height:none}.explore-skill-switch{display:flex}.explorer-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.explorer-tab{flex:0 0 auto;padding:10px 20px}.explorer-tabs{overflow-x:auto}.header-actions .level-switch{display:none}}
@media(max-width:600px){.shell{padding:20px 16px 100px}.topbar{padding:6px 0}.topbar-inner{min-height:56px;padding:5px 12px}.brand strong{font-size:17px}.brand small{font-size:11px}.brand-logo{width:42px;height:42px}.explore-header{padding:10px 0 0}.explore-header h1{font-size:52px}.explorer-levels{margin:18px auto 26px}.explorer-cards{gap:12px}.subject-card{min-height:170px;padding:17px}.subject-title{font-size:20px}.subject-top{font-size:12px}.subject-footer{font-size:12px;flex-wrap:wrap}.heading-title{font-size:42px}.heading-text{padding:20px 18px}.heading-passage{font-size:17px;line-height:1.85}.option-de,.option-ar{font-size:16px}.exam-support-body{padding:14px 18px;font-size:17px}.batch-questions{padding:0 18px}.exam-subject-label strong{font-size:19px}.matching-footer{gap:12px;padding:12px 0;align-items:start}.matching-footer .button{min-width:125px;font-size:15px;padding:10px}.matching-guide{font-size:15px}.matching-guide[open]{max-height:42vh;overflow:auto}.path-stats{gap:8px}.stat-card{padding:17px}.method-grid{grid-template-columns:1fr}.option.bilingual-option{gap:9px}.batch-item .letter-grid .option{padding:12px 8px}.batch-item .letter-grid .option-letter{flex-basis:24px}.mobile-nav{direction:rtl;background:var(--white)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.progress-track span{transition:none}}
