.site-lang-control {display:inline-flex;position:relative;align-items:center;gap:.4rem;padding:.28rem .65rem;min-height:44px;border:1px solid #bccfc8;border-radius:.55rem;color:#174f47;font:600 .92rem/1.4 Arabic,system-ui,sans-serif;white-space:nowrap}
.site-lang-control select {position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.site-lang-control:focus-within {outline:2px solid #27695b;outline-offset:2px}
.site-header .bar {column-gap:1rem}.site-header .main-nav {gap:1rem}.site-header .brand {font-size:1.32rem}
@media(max-width:1180px){
 .site-header .bar {flex-wrap:wrap;row-gap:0;padding-top:.35rem}
 .site-header .main-nav {order:3;display:flex;width:100%;align-items:center;justify-content:center;gap:1rem;overflow-x:auto}
 .site-header .main-nav a {min-height:40px;flex:none}
}
@media(max-width:700px){
 .site-header .main-nav,.site-header .main-nav a {display:flex}
 .site-header .main-nav {justify-content:space-evenly;gap:.3rem}
 .site-header .main-nav a {font-size:.88rem;min-width:0;white-space:normal;text-align:center}
 .nav-tools #openDirectory span {display:none}.site-header .brand strong {font-size:1.02rem}
 .nav-tools .saved {width:30px}.site-header .bar {column-gap:.25rem}
}
#learn,#devotion {font-family:Arabic,system-ui,sans-serif}
.learn-head,.learn-article {max-width:53rem;margin:auto}
.learn-head {padding:1.5rem 0 2rem}
.learn-head p,.learn-article p {line-height:1.9;font-size:1.1rem}
#learnContent>input {width:100%;max-width:48rem;margin-block:.5rem 1.3rem}
.learn-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(20rem,100%),1fr));gap:1rem;margin-bottom:1.5rem}
.learn-module,.learn-quiz {padding:1.15rem 1.35rem;border:1px solid #cedbd1;border-radius:.7rem;background:#f7faf6}
.learn-module h2,.learn-article h2 {margin:.15rem 0 .55rem;color:#2c564d;font-size:1.24rem}
.learn-module ol {padding-inline-start:1.6rem;margin-bottom:0}
.learn-module li a,.study-source {display:block;padding:.5rem 0;color:#1f5b50;text-underline-offset:.2em}
.learn-unit {color:#577264;margin:.8rem 0 .1rem}
.learn-article>h1 {margin-top:0}
.learn-quiz {margin:1rem 0}.learn-quiz summary {color:#205b4a;cursor:pointer}
.learn-steps,.read-aloud {display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin:1rem 0}
.learn-steps {justify-content:space-between;border-block-start:1px solid #cedbd1;padding-top:1rem}
.dev-group {margin:1rem 0;border-block-start:1px solid #d3dfd8}
.dev-group h2 {font-size:1.15rem;color:#2c564d}
.dev-links {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(17rem,100%),1fr));gap:.35rem 1rem}
.dev-links a {padding:.45rem .55rem;display:block;color:#20554b;border-inline-start:2px solid #b9cbc1}
.dev-original {font-family:Naskh,serif;font-size:clamp(1.28rem,3vw,1.7rem);line-height:2}
#qTranslationView {width:min(100%,51rem);margin-inline:auto;line-height:1.7;overflow:auto;overscroll-behavior:contain}
.meaning-head {display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;justify-content:space-between}
.meaning-head h2 {margin:0}.meaning-head select {max-width:100%;padding:.45rem}
.meaning-source,.meaning-notes {margin:.65rem 0;font-size:.88rem}.meaning-source summary,.meaning-notes summary {cursor:pointer}
.meaning-verse {padding:.75rem 0;border-top:1px solid #c3c5b9}.meaning-verse p {margin:.4rem 0;font-size:1.06rem;line-height:1.8}
.meaning-verse .meaning-arabic {font:1.65rem/1.95 Naskh,serif}.meaning-ref {color:#2c5b54}
.meaning-verse .read-aloud {margin:.4rem 0}.qr-option-grid #qSpeak {grid-column:auto}
#prayerCalendarControls {margin:1rem 0 1.4rem;padding:.85rem 1rem;background:#f1f5ef;border:1px solid #c4d3c7;border-radius:.55rem}
#prayerCalendarControls h3 {margin:0}#prayerCalendarControls .meta {overflow-wrap:anywhere}
#qTranslationView {padding:1rem clamp(.85rem,3vw,1.65rem)}
#qTranslationView .meaning-head {position:sticky;top:-1rem;z-index:1;background:var(--paper);padding:.4rem 0}
#qTranslationView .meaning-head select {width:auto}
#quran .qr-option-grid #qSpeak {grid-column:auto;margin-top:0}
.home-meaning {padding-block:.55rem}
.meaning-entry {display:flex;align-items:center;gap:.8rem;padding:.65rem 1rem;border:1px solid #b8cebd;border-radius:.55rem;background:#f0f6ee;color:#184841;text-decoration:none}
.meaning-entry:hover,.meaning-entry:focus-visible {background:#e4efe1;text-decoration:underline}
.meaning-entry>.icon {flex:none;width:1.55rem;height:1.55rem;stroke:currentColor}
.meaning-entry-text {display:flex;flex-wrap:wrap;align-items:baseline;column-gap:1.1rem;row-gap:.08rem}
.meaning-entry strong {font-size:1.1rem;line-height:1.55}
.meaning-preview {font-size:1rem;line-height:1.55;color:#2f5147}
#qIndexMeaning {margin:.65rem max(.65rem,calc((100vw - 46rem)/2))}
#quran .q-meaning-button {display:inline-flex;align-items:center;justify-content:center;gap:.3rem;min-height:44px;max-width:12rem;padding:.25rem .65rem;border:1px solid #a6c4ba;border-radius:.5rem;background:#f0f6ed;color:#164947;font-weight:650;line-height:1.2}
.q-meaning-button .icon {width:1.12rem;height:1.12rem;flex:none}
#qReturn {min-width:0}.q-meaning-button span {overflow-wrap:anywhere}
#qTranslationView .meaning-head {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .75rem;align-items:center;border-bottom:1px solid #bdcbbd;padding-bottom:.6rem}
.meaning-byline {grid-column:1/-1;margin:0;font-size:1.05rem;color:#1b5147}
.meaning-byline .credit-name {font-weight:700}
.learn-head>h2 {margin-block:1rem .2rem;color:#2c564d;font-size:1.28rem}
@media(max-width:540px){
 .meaning-entry-text {display:grid}.meaning-entry {padding:.55rem .72rem}
 #qReadBar {gap:.25rem}.q-meaning-button .icon {display:none}
 #quran .q-meaning-button {padding:.25rem .4rem}
 #qTranslationView .meaning-head select {max-width:min(45vw,12rem)}
}

.learn-jump {display:grid;gap:.3rem;color:#35564c;font-size:.95rem;font-weight:600;margin-block:.85rem;max-width:34rem}
.learn-jump select {width:100%;min-width:0;min-height:44px;padding:.5rem .7rem;font:inherit;color:#214f42;background:#fff;border:1px solid #b9cbc1;border-radius:.55rem}
.learn-article {max-width:48rem}
.learn-article .learn-intro {margin-block:1.1rem 1.5rem}
.learn-section {margin:1.6rem 0}
.learn-section p,.learn-example p,.learn-quiz p {margin:.35rem 0 .65rem}
.learn-example {padding:1rem 1.3rem;border-inline-start:.25rem solid #ad9558;background:#f7f4eb;border-radius:.55rem}
.learn-citations {margin:1.6rem 0}.learn-citations ul {padding-inline-start:1.35rem}
.learn-citations .study-source {padding:.25rem 0;overflow-wrap:anywhere}
.learn-entry-links,.learn-steps {display:flex;flex-wrap:wrap;gap:.75rem}
.learn-steps a {display:grid;gap:.15rem;align-content:center;text-align:start;white-space:normal;max-width:100%;flex:1 1 12rem}
.learn-steps small {font-size:.87rem;opacity:.9}.learn-steps span {font-weight:650}
.imam-directory {list-style-position:inside;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(22rem,100%),1fr));gap:.8rem;margin:0;padding:0}
.imam-directory li {background:#f7faf6;border:1px solid #cedbd1;border-radius:.8rem;padding:1.05rem 1.25rem;line-height:1.7}
.imam-directory a {color:#194f43;font-weight:700;font-size:1.1rem}
.imam-directory p {margin:.5rem 0 0;line-height:1.75}

.life-directory-group {margin-block:0 2rem}
.life-directory-group h2 {font-size:1.4rem;color:#245747}
ul.imam-directory {list-style:none}
.life-contents {border-block:1px solid #cedbd1;margin-block:1.3rem;padding-block:.65rem}
.life-contents summary {cursor:pointer;font-weight:650;color:#245747}
.life-contents ol {margin-block:.5rem;padding-inline-start:1.65rem}
.life-contents button {background:none;border:none;color:#205647;text-align:start;font:inherit;text-decoration:underline;text-underline-offset:.2em;padding:.36rem .15rem}
.learn-section h2 {scroll-margin-block-start:6rem}
.life-source {display:block;width:fit-content;max-width:100%;margin-block:.2rem;font-size:.92rem;color:#315b50;overflow-wrap:anywhere}

.nav-tools .account-entry {color:#174f47;font-weight:650;text-decoration:none}
#account {min-height:65vh;padding-block:clamp(1.25rem,5vw,3.5rem)}
.profile-card {width:min(100%,30rem);margin-inline:auto;border:1px solid #cdd9d3;border-radius:1.3rem;padding:clamp(1.2rem,4.5vw,2.3rem);background:#fff;box-shadow:0 .65rem 2rem #173e3f0c;box-sizing:border-box}
.profile-card h1 {margin:.5rem 0;font-size:clamp(1.7rem,4vw,2.25rem)}
.profile-mark {width:3rem;height:3rem;display:grid;place-items:center;border-radius:50%;color:#174f47;background:#e6f1eb}
.profile-intro,.profile-status {color:#415d54;line-height:1.6}
.profile-form {display:grid;gap:1rem;margin-block:1.2rem}
.profile-form label {display:grid;gap:.3rem;font-weight:650}
.profile-form select {font:inherit;width:100%;min-width:0;min-height:46px;border:1px solid #b6c8bf;border-radius:.65rem;background:#f7faf8;color:#173c33;padding:.35rem .65rem}
.profile-signin,.profile-form .primary {display:block;border-radius:2rem;background:#145247;color:#fff;text-align:center;padding:.65rem 1rem;text-decoration:none;font-weight:650}
.profile-method-note,.profile-guest {text-align:center;color:#425e54}.profile-guest {display:block}
.profile-records {display:flex;flex-wrap:wrap;gap:.5rem;border-block-start:1px solid #cfdbd4;padding-block:1rem}
.profile-status {margin:0}
@media(max-width:1180px){
  .nav-tools .account-entry {
    flex:none;
    min-height:44px;
    min-width:44px;
    gap:.35rem;
    padding:.25rem .55rem;
    border:1px solid #b4ccc2;
    border-radius:.55rem;
    background:#edf5f0;
  }
}
.profile-guest-card {background:#232624;color:#f1f4f1;border-color:#364039}
.profile-guest-card h1,.profile-guest-card label {color:#f1f4f1}
.profile-guest-card .profile-mark {background:#343d37;color:#e6f2e9}
.profile-guest-card .profile-intro,.profile-guest-card .profile-method-note {color:#cbd3ce}
.profile-guest-card .profile-form select {background:#292f2b;color:#f1f4f1;border-color:#627068;color-scheme:dark}
.profile-guest-card .profile-signin {background:#e4f1e9;color:#173f30}
.profile-guest-card .profile-guest {color:#ecf2ee}

.site-access .auth-options{display:flex;gap:.35rem;border:1px solid #708577;border-radius:1rem;padding:.25rem;margin-block-start:1.1rem}
.site-access .auth-choice{flex:1;background:transparent;border:0;min-height:44px;color:inherit;font:inherit;border-radius:.72rem;cursor:pointer}
.site-access .auth-choice[aria-pressed=true]{background:#e0eee7;color:#163c30;font-weight:700}
.site-access-form input,.account-recovery{box-sizing:border-box;width:100%;min-height:46px;padding:.55rem .7rem;font:inherit;border:1px solid #778d7f;border-radius:.65rem;color:#17362c;background:#f4f8f5}
.profile-guest-card .site-access-form input{color:#f1f4f1;background:#292f2b}
.site-access-form button{font:inherit;cursor:pointer;min-height:46px}
.site-access-form button:disabled{opacity:.65}.site-access-form small{text-align:start;line-height:1.5}
.site-access .auth-reset,.profile-legacy{font:inherit;color:inherit;text-decoration:underline;text-underline-offset:.2em}
.profile-guest-card .profile-status{color:#fbe7d7}.profile-legacy{display:block;text-align:center;font-size:.9rem}
.account-recovery{font-family:ui-monospace,monospace;margin-block:.5rem 1rem}

.mustafa-directory,.mustafa-reader{margin:1rem auto 2rem;max-width:68rem}
.mustafa-directory>h2,.mustafa-reader h1{color:#234f45;line-height:1.4}
.mustafa-credit{color:#496158;margin:.35rem 0 1rem}
.mustafa-stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:.9rem;margin:1rem 0}
.mustafa-stages h3,.mustafa-sources h3{margin:0 0 .45rem;color:#275648}
.mustafa-grade-list{margin:0;padding:0;list-style:none}
.mustafa-grade-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;column-gap:.7rem;border-top:1px solid #d5dfd7}
.mustafa-grade-list a{display:inline-flex;align-items:center;min-height:44px;color:#1d594c;text-underline-offset:.18em}
.mustafa-grade{font-weight:650}.mustafa-workbook{font-size:.92rem}
.mustafa-sources{margin-top:1.3rem;padding-block:1rem;border-block:1px solid #d5dfd7}
.mustafa-sources p{margin:.3rem 0}.mustafa-sources .study-source{display:inline-block}
.mustafa-reader .learn-entry-links{margin:1rem 0}

.school-pdf{margin-block:1.25rem}
.school-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;padding-block:.5rem}
.school-toolbar label{display:flex;align-items:center;gap:.4rem}
.school-toolbar input{width:4.25rem;border:1px solid #9cafaa;border-radius:.35rem;font:inherit;padding:.3rem}
.school-toolbar button{min-height:44px}
.school-toolbar button:disabled{opacity:.55}
.school-sheet{max-width:54rem;margin:0 auto .75rem}
.school-sheet canvas{display:block;width:100%;height:auto;border:1px solid #c5cec8;background:white}
.arabic-activity{margin-block:1rem;padding:clamp(.9rem,3vw,2rem)}
.arabic-activity .learn-intro{font-size:1.16rem;line-height:1.95}
.arabic-activity li{margin-bottom:1rem}.arabic-activity summary{cursor:pointer;color:#235848}

/* School shelves and reading desk */
.education-hub,.education-directory,.school-pdf{max-width:68rem;margin-inline:auto;min-width:0}
.education-hero{isolation:isolate;position:relative;overflow:hidden;display:flex;align-items:center;min-height:clamp(11rem,22vw,16rem);border:0;border-radius:1.2rem;background:#0c3533;color:white}
.education-hero::after{content:"";position:absolute;z-index:-1;inset-block:0;inset-inline-end:0;width:49%;background:linear-gradient(90deg,#0c3533,transparent 34%),url('manuscript.webp') center 55%/cover no-repeat}
[dir=rtl] .education-hero::after{background-image:linear-gradient(270deg,#0c3533,transparent 34%),url('manuscript.webp')}
.education-hero-copy{width:58%;padding:clamp(1.3rem,4vw,3.2rem)}
.education-hero h1,.education-subhead h1,.reader-heading h1{font-family:Naskh,Georgia,serif;line-height:1.28;letter-spacing:normal}
.education-hero h1{font-size:clamp(2.2rem,4.6vw,3.65rem);color:#fff;margin:0}
.education-hero-copy p{color:#e5ede7;line-height:1.65;margin:.6rem 0 0;max-width:34rem}
.education-block{margin-block:clamp(1.6rem,3.4vw,2.6rem)}
.education-block>h2,.education-docs h2{font-size:clamp(1.3rem,2.1vw,1.65rem);color:#193e38;line-height:1.45;margin:0 0 .85rem}
.education-subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.education-card,.education-path{display:flex;align-items:center;gap:1rem;color:#163e37;text-decoration:none}
.education-card{--accent:#196453;--tint:#e4f0e9;padding:clamp(1.15rem,2.5vw,1.8rem);border:1px solid #cadbd2;border-inline-start:.31rem solid var(--accent);border-radius:.85rem;background:white;box-shadow:0 .3rem 1.2rem #183d3208}
.education-card.language{--accent:#93692d;--tint:#f6eddc}
.education-card:hover,.education-card:focus-visible,.education-path:hover,.education-path:focus-visible{border-color:#759a8a;background:#fcfefa;box-shadow:0 .3rem 1rem #183d3212}
.education-symbol{display:grid;place-items:center;flex:none;width:3.35rem;height:3.35rem;border-radius:1rem;color:var(--accent,#196453);background:var(--tint,#e4f0e9)}
.education-symbol svg{width:1.75rem;height:1.75rem}
.education-card h3{font-size:clamp(1.22rem,2vw,1.48rem);margin:0;line-height:1.4}
.education-card p,.education-subhead p{color:#456057;margin:.4rem 0 0;line-height:1.7}
.education-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
.education-path{font-weight:650;min-height:3.8rem;padding:.65rem 1rem;border:1px solid #cbdad2;border-radius:.7rem;background:#f9fbf9;line-height:1.5}
.education-path svg{flex:none;color:#4b7463}
.education-subhead,.reader-heading{background:transparent;border:0}
.education-subhead{padding-block:0 1.2rem}.education-subhead>.crumb{display:inline-block;margin:0 0 1rem}
.education-heading{display:flex;align-items:center;gap:.85rem}
.education-heading h1,.reader-heading h1{color:#173e37;margin:0;font-size:clamp(1.85rem,3.4vw,2.7rem)}
.education-tabs{display:flex;flex-wrap:wrap;gap:.45rem;padding-block:.25rem 1.05rem;border-bottom:1px solid #c8d7cf}
.education-tabs a{display:inline-flex;align-items:center;min-height:44px;padding:.35rem .85rem;border-radius:2rem;background:white;border:1px solid #c8d7ce;color:#234b40;text-decoration:none;line-height:1.5;font-weight:600}
.education-tabs a[aria-current=page]{background:#175646;color:white;border-color:#175646}
.education-directory .mustafa-stages{display:block;margin-block:1.35rem}
.education-stage{margin-bottom:1.6rem}
.education-stage h3{font-size:1.2rem;line-height:1.5}
.education-grades{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(14rem,100%),1fr));gap:.55rem;margin:.65rem 0 0;padding:0}
.education-grades li{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:0 .5rem;background:white;border:1px solid #d4dfd8;border-radius:.65rem;padding:.18rem .75rem}
.education-grades a{color:#174e42;display:inline-flex;align-items:center;min-height:44px;text-underline-offset:.18em}
.education-grades .mustafa-grade{flex:1;text-decoration:none;line-height:1.55}
.education-grades a:hover,.education-grades a:focus-visible{text-decoration:underline}
.education-grades .mustafa-workbook{color:#42685a;font-size:.88rem}
.education-docs,.education-notes{border-block-start:1px solid #cfdbd2;padding:1rem 0}
.education-notes summary{cursor:pointer;color:#285441;font-weight:650}
.reader-heading{padding:1.1rem .2rem .2rem}.reader-heading .mustafa-credit{margin-bottom:.2rem}
.reader-dock{position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:.6rem;background:#133d36;color:white;border-radius:.8rem;padding:.65rem .8rem;box-shadow:0 .3rem .8rem #0b282529}
.reader-dock button,.reader-download{display:inline-flex;align-items:center;justify-content:center;gap:.37rem;padding:.42rem .8rem;min-height:44px;font:650 1rem/1.35 Arabic,system-ui,sans-serif;border-radius:.5rem;cursor:pointer}
.reader-close{color:#143b32;background:#f2faf4;border:1px solid #f2faf4}
.reader-print{color:white;background:transparent;border:1px solid #8daea1}.reader-print:disabled{opacity:.55}
.reader-library{margin-inline-start:auto;display:flex;align-items:center;gap:.6rem;font-size:.92rem;font-weight:650;min-width:0;color:white}
.reader-library select{font:inherit;background:#fff;color:#183e33;border:1px solid #c4d4ca;border-radius:.5rem;min-height:44px;padding:.35rem .65rem;max-width:min(43vw,24rem)}
.reader-paper{margin-top:.75rem;padding:.4rem clamp(.4rem,2.2vw,1.55rem) 1.15rem;background:#e5ece8;border:1px solid #cbd7cf;border-radius:.85rem;text-align:center}
.reader-paper .school-toolbar{justify-content:center}
.reader-paper .school-toolbar button{padding:.25rem .68rem;line-height:1.4}
.reader-paper .school-toolbar label{gap:.3rem}
.reader-paper .meta{margin:0 0 .6rem;color:#3b574c;font-variant-numeric:tabular-nums}
.reader-paper .school-sheet{max-width:47rem}.reader-paper canvas{box-shadow:0 .3rem 1.2rem #25493b25}
.reader-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.65rem;padding:.8rem 0;background:transparent;border:0}
.reader-download{color:#215745;border:1px solid #b9cfc0;background:white;text-decoration:none}
.school-print-dialog{max-width:min(29rem,calc(100vw - 2rem));width:100%;max-height:90dvh;overflow:auto;border:1px solid #bdd0c4;border-radius:1rem;color:#173e32;background:white;padding:clamp(1rem,3.4vw,1.7rem);box-shadow:0 1.2rem 4rem #11261e40}
.school-print-dialog::backdrop{background:#142b26a6}
.school-print-dialog h2{margin:0;font-size:1.5rem}.school-print-caption{margin:.15rem 0 1rem;color:#516959}
.school-print-dialog fieldset{border:0;padding:0;margin:0}.school-print-dialog legend{font-weight:700}
.school-print-dialog fieldset label{display:flex;align-items:center;gap:.6rem;min-height:42px;cursor:pointer}
.school-print-dialog input[type=radio]{accent-color:#185945;width:1.05rem;height:1.05rem}
.school-range{display:flex;gap:.7rem}.school-range label{display:grid;gap:.15rem;flex:1}.school-range input{min-width:0;width:100%;font:inherit;padding:.2rem .45rem;border:1px solid #a4bdad;border-radius:.4rem}
.school-print-actions{display:flex;gap:.6rem;justify-content:flex-end}
.school-print-status{font-size:.95rem;color:#295642;min-height:1.5em}
.school-print-output{display:none}
@media(max-width:700px){
  .education-subjects,.education-paths{grid-template-columns:1fr}
  .education-subjects{gap:.6rem}.education-paths{gap:.4rem}
  .education-hero-copy{width:66%}.education-hero::after{width:43%}
  .reader-dock{display:grid;grid-template-columns:auto auto 1fr;gap:.4rem;padding:.45rem}
  .reader-dock button{font-size:.92rem;padding:.3rem .48rem}
  .reader-library{display:grid;grid-template-columns:minmax(0,1fr);gap:.1rem;font-size:.83rem;margin:0;line-height:1.3}
  .reader-library select{max-width:100%;width:100%;min-height:38px;padding:.2rem}
  .reader-paper .school-toolbar{gap:.35rem}.reader-paper .school-toolbar input{width:3.5rem}
}
@media(max-width:390px){
  .reader-dock button svg{display:none}
  .education-card{gap:.65rem}.education-symbol{width:2.65rem;height:2.65rem}
  .reader-paper .school-toolbar{display:grid;grid-template-columns:1fr 1fr}
  .reader-paper .school-toolbar label{justify-content:center;grid-column:1;grid-row:2}
  .reader-paper .school-toolbar button[type=submit]{grid-column:2;grid-row:2}
}
@page schoolprint{size:A4 portrait;margin:8mm}
@media print{
  body:has(>.school-print-output){background:white!important;margin:0!important;padding:0!important}
  body:has(>.school-print-output)>:not(.school-print-output){display:none!important}
  body>.school-print-output{display:block!important;margin:0;padding:0}
  .school-print-page{page:schoolprint;break-inside:avoid;break-after:page;page-break-after:always}
  .school-print-page:last-child{break-after:auto;page-break-after:auto}
  .school-print-page img{display:block;margin:0 auto;width:100%;height:275mm;max-width:100%;object-fit:contain}
}
.school-sheet{touch-action:pan-y pinch-zoom;overscroll-behavior-x:contain}
.school-swipe-hint{display:none}
@media(pointer:coarse){.school-swipe-hint{display:block;margin:.1rem 0 .55rem;font-size:.9rem;color:#425e52}}
.school-translation{max-width:47rem;margin:.55rem auto .85rem;background:#fff;border:1px solid #b8cfc2;border-radius:.7rem;text-align:start;color:#193f34}
.school-translation>summary{display:flex;align-items:center;gap:.5rem;min-height:44px;padding:.45rem .85rem;cursor:pointer;color:#1a5544;font-weight:700;list-style:none}
.school-translation>summary::-webkit-details-marker{display:none}
.school-translation>summary::after{content:"";margin-inline-start:auto;width:.55rem;height:.55rem;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg)}
.school-translation[open]>summary::after{transform:rotate(225deg)}
.school-translation-controls{display:flex;flex-wrap:wrap;align-items:end;gap:.65rem;padding:.45rem .85rem}
.school-translation-controls label{display:grid;gap:.2rem;min-width:0}
.school-translation-controls select{max-width:min(65vw,23rem);min-height:44px;font:inherit;border:1px solid #b8cbbe;background:white;border-radius:.4rem;color:#193f34;padding:.3rem .6rem}
.school-translation-controls button{min-height:44px}
.school-translation-status{font-size:.92rem;margin:.35rem .85rem;color:#395c4a}
.school-translation-text{max-height:55vh;overflow:auto;overscroll-behavior:contain;padding:0 .9rem;line-height:1.85}
.school-translation-text p{white-space:pre-line;margin:.45rem 0 1rem}

.language-grades .mustafa-grade{display:grid;gap:.18rem;padding-block:.6rem}
.language-grades .mustafa-grade span{font-size:.94rem;font-weight:400;color:#52695f;text-align:start}
.grade-featured-book{border:1px solid #ccdcd2;border-inline-start:.32rem solid #36715c;border-radius:.8rem;background:#f5f9f6;padding:clamp(1rem,3vw,2rem);margin:1rem 0 1.5rem}
.grade-featured-book h2{font-size:clamp(1.5rem,3vw,2.05rem);line-height:1.55;color:#224e40;margin:.25rem 0}
.grade-book-byline{color:#456256;font-weight:650;margin:0}
.grade-book-aim{font-size:1.12rem;line-height:1.85;margin:.25rem 0}
.grade-featured-book .primary{display:inline-flex;align-items:center;min-height:44px}
.grade-contents{border-top:1px solid #c8d8cd;margin-top:1.2rem;padding-top:.75rem}
.grade-contents summary{color:#245445;font-weight:650;cursor:pointer;min-height:40px}
.grade-contents ol{max-width:52rem;padding-inline-start:1.65rem}
.grade-contents a{display:flex;justify-content:space-between;align-items:center;min-height:40px;gap:1rem;color:#245445}
.national-arabic-books ul{list-style:disc;padding-inline-start:1.4rem}
.national-arabic-books li{line-height:1.85}
.school-toolbar .reader-contents{flex:1 1 14rem;min-width:0}
.reader-contents select{display:block;min-width:0;max-width:100%;width:100%;min-height:44px}
