/* V5.3: local Persian variable font, calm text hierarchy, confirmed book-choice layout. */
@font-face{font-family:MenschenPersian;src:url('handout-Vazirmatn-20261029.ttf') format('truetype'),local('Vazirmatn');font-weight:100 900;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('handout-Vazirmatn-20261029.ttf') format('truetype'),local('Vazirmatn');font-weight:100 900;font-display:swap}
:root{--mr-font:MenschenPersian,Vazirmatn,Tahoma,'Segoe UI',sans-serif;--fa-reading:MenschenPersian,Vazirmatn,Tahoma,'Segoe UI',sans-serif}
html body:is(.mr-study,.mr-library),html body:is(.mr-study,.mr-library) :is(button,input,select,textarea){font-family:var(--fa-reading)!important;letter-spacing:normal!important}
html body:is(.mr-study,.mr-library) :is([lang=de],[lang=en],.de,.en,.brand-name,.brand-caption,.mw-groups button,.mw-sub button,#lessonSelect){font-family:var(--mr-latin,'Segoe UI',Arial,sans-serif)!important;letter-spacing:normal!important}
/* A single Persian typeface, including old templates with explicit serif/Tahoma declarations. */
html body:is(.mr-study,.mr-library) :is([lang=fa],.fa,.persian,.fa-text,.translation-fa,.reading-translation26,.example-fa26,.b12-line-fa,.m-overview-intro,.m-overview-topics,.m-overview-examples,.hover-help,.book-access-bar,.book-access-dialog,.account-dialog31,.ai-dialog,.preview-note){font-family:var(--fa-reading)!important;letter-spacing:normal!important}
html body.mr-study :is([lang=fa],.fa,.reading-translation26,.example-fa26,.b12-line-fa){line-height:1.9!important}
html body.mr-study :is(.reading-translation26,.example-fa26,.b12-line-fa,.original-instruction37>.fa){font-size:15px!important;font-weight:400!important;line-height:1.9!important}
html body.mr-study :is(.reading-translation26,.example-fa26,.b12-line-fa){color:var(--mr-muted,#637084)!important}
html body.mr-study .m-overview-intro{font-size:16px!important;font-weight:500!important;line-height:1.9!important}
html body.mr-study .m-overview-topics{font-size:15px!important;font-weight:400!important;line-height:1.9!important}
html body.mr-study .m-overview-topics strong{font-weight:600!important}
html body.mr-study .original-instruction37>[lang=de]{font-weight:500!important}
html body.mr-study .top :is(button,.library-back,.book-return,.top-settings>summary),html body.mr-library :is(button,.book-access-primary){font-weight:500!important}
html body.mr-library :is(h1,h2,.book-title,.mr-title){font-family:var(--fa-reading)!important;letter-spacing:normal!important}
html body.mr-library :is(h1,h2){font-weight:700!important}
html body.mr-study :is(.vocab-card,.word-card,.card) [lang=fa]{font-weight:400!important}
html body.mr-study .sr-paper :is(.reading-german26,.reading-word26){font-weight:400!important}
/* Printed layout: number, short speech control, German line, independent circle on the right. */
html body.mr-study .v53-choice-paper{display:block!important;max-width:1080px!important;padding:clamp(10px,2vw,22px)!important;background:var(--mr-surface)!important;border:0!important;box-shadow:none!important}
html body.mr-study .v53-choice-paper>.sr-page-title{display:none!important}
html body.mr-study .v53-choice-paper>.sr-source-group{background:transparent!important;padding:0!important;border:0!important}
html body.mr-study .v53-choice-paper .v53-choice-row{display:grid!important;grid-template-columns:1.35em 34px minmax(0,1fr) 36px!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:1px!important;align-items:center!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--mr-border)!important;border-radius:0!important;padding:8px 0!important;margin:0!important;direction:ltr!important}
html body.mr-study .v53-choice-row>.v53-choice-number{grid-column:1!important;grid-row:1!important;text-align:center;font:600 15px/1.5 var(--mr-latin);color:var(--mr-muted)}
html body.mr-study .v53-choice-row>button{grid-column:2!important;grid-row:1!important;align-self:start!important;margin:0!important}
html body.mr-study .v53-choice-row>.reading-german26{grid-column:3!important;grid-row:1!important;font-family:var(--mr-latin)!important;font-size:16px!important;line-height:1.7!important;align-self:center!important;padding:0!important;margin:0!important}
html body.mr-study .v53-choice-row>.reading-translation26{grid-column:3/5!important;grid-row:2!important;border:0!important;padding:0!important;margin:2px 0 0!important;background:transparent!important;line-height:1.8!important}
html body.mr-study .v53-choice-hit{grid-column:4!important;grid-row:1!important;display:grid;place-items:center;width:36px;height:36px;cursor:pointer;align-self:start!important}
html body.mr-study .v53-choice-circle{appearance:none!important;display:grid!important;place-items:center;width:19px!important;height:19px!important;margin:0!important;padding:0!important;border-radius:50%!important;border:1.5px solid var(--mr-muted)!important;background:transparent!important;box-shadow:none!important;cursor:pointer}
html body.mr-study .v53-choice-circle:checked{border-color:var(--brand-accent)!important;background:var(--brand-soft)!important}
html body.mr-study .v53-choice-circle:checked::after{content:'✓';font:700 14px/1 Arial,sans-serif;color:var(--brand-accent)}
html body.mr-study .v53-choice-circle:focus-visible{outline:2px solid var(--brand-accent)!important;outline-offset:3px}
html body.mr-study .v53-duplicate-number,html body.mr-study .v53-choice-replaced{display:none!important}
html body.mr-study .v53-choice-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:13px;color:var(--mr-muted)}
html body.mr-study .v53-choice-controls button{border:1px solid var(--mr-border)!important;background:transparent!important;color:var(--brand-accent)!important;border-radius:6px;padding:6px 10px;font-size:13px;box-shadow:none!important}
@media(max-width:600px){html body.mr-study .v53-choice-paper .v53-choice-row{grid-template-columns:1em 32px minmax(0,1fr) 32px!important;column-gap:4px!important}html body.mr-study .v53-choice-row>.reading-german26{font-size:15px!important}html body.mr-study .v53-choice-row>.reading-translation26{font-size:14px!important}html body.mr-study :is(.reading-translation26,.example-fa26,.b12-line-fa){font-size:14px!important}}
/* Administrative page shares the same font without changing its layout. */
html[lang=fa] body:not(.mr-study):not(.mr-library),html[lang=fa] body:not(.mr-study):not(.mr-library) :is(input,textarea,button,select){font-family:var(--fa-reading)!important}
/* Override the older generic reading grid, which uses high-specificity !important rules. */
html[data-theme] body.mr-study article[data-source-layout27="a12-13-1"] .v53-choice-paper .v53-choice-row.v53-choice-row>.v53-choice-number{grid-column:1!important;grid-row:1!important;align-self:center!important;justify-self:center!important}
html[data-theme] body.mr-study article[data-source-layout27="a12-13-1"] .v53-choice-paper .v53-choice-row.v53-choice-row>button{grid-column:2!important;grid-row:1!important;align-self:start!important;justify-self:center!important}
html[data-theme] body.mr-study article[data-source-layout27="a12-13-1"] .v53-choice-paper .v53-choice-row.v53-choice-row>.reading-german26{grid-column:3!important;grid-row:1!important;align-self:center!important}
html[data-theme] body.mr-study article[data-source-layout27="a12-13-1"] .v53-choice-paper .v53-choice-row.v53-choice-row>.reading-translation26{grid-column:3/5!important;grid-row:2!important}
html[data-theme] body.mr-study article[data-source-layout27="a12-13-1"] .v53-choice-paper .v53-choice-row.v53-choice-row>.v53-choice-hit{grid-column:4!important;grid-row:1!important;align-self:start!important;justify-self:center!important}
html[data-theme] body.mr-study article[data-source-layout27="a12-13-1"] .v53-choice-paper .v53-choice-row.v53-choice-row{grid-template-columns:22px 34px minmax(0,1fr) 36px!important;grid-template-rows:auto auto!important}
html[data-theme] body.mr-study article[data-source-layout27="a12-13-1"] .v53-choice-paper .v53-choice-row.v53-choice-row>.v53-choice-number{align-self:start!important;padding-top:6px}
html[data-theme] body.mr-study article[data-source-layout27="a12-13-1"] .v53-choice-paper .v53-choice-row.v53-choice-row>.reading-german26{align-self:start!important;padding-top:3px!important}
@media(max-width:600px){html[data-theme] body.mr-study article[data-source-layout27="a12-13-1"] .v53-choice-paper .v53-choice-row.v53-choice-row{grid-template-columns:16px 34px minmax(0,1fr) 32px!important;column-gap:4px!important}}
