/* One reading scale for the four Chinese textbooks and the beginner book.
   Reader-specific offsets retain existing A+/A- preferences and controls. */
:root{--school-type-mobile-offset:0px;--school-type-question:24px;--school-type-heading:24px;--school-type-instruction:18px;--school-type-label:14px}
.ps-reader{--school-text-size:calc(var(--ps-font-size,32px) - var(--school-type-mobile-offset))}
.g1-picture{--school-text-size:calc(var(--g1p-size,42px) - 10px - var(--school-type-mobile-offset))}
.pb-reader{--school-text-size:calc(var(--pb-font,38px) - 6px - var(--school-type-mobile-offset))}
.garden-workspace{--school-text-size:calc(var(--class-font,42px) - 10px - var(--school-type-mobile-offset))}
body .ps-reader .ps-text,body .g1-picture .g1p-lines p:not(.g1p-instruction),body .g1-picture .g1p-lines.g1p-natural-prose,body .g1-picture .g1p-scene-pair .g1p-lines p,body .g1-picture .g1p-card>div:last-child,body .pb-reader .pb-line,body .pb-reader .pb-word{font-size:var(--school-text-size)!important;line-height:1.65!important}
body .ps-reader .ps-heading{font-size:.76em!important}
body .ps-reader .ps-character rt,body .g1-picture rt,body .pb-reader rt,body.school-compact-learning .school-compact-lesson .garden-blocks rt{font-size:.39em!important;line-height:1.15!important;letter-spacing:0!important}
body.school-compact-learning .school-compact-lesson .garden-block:not(.garden-meta),body.school-compact-learning .school-compact-lesson .garden-words>span,body.school-compact-learning .school-compact-lesson .garden-text,body.school-compact-learning .school-compact-lesson .garden-poem p{font-size:var(--school-text-size)!important;line-height:1.65!important}
body .g1-picture .g1p-rhyme-title,body.school-compact-learning .school-compact-lesson .garden-blocks h3.garden-block{font-size:var(--school-type-heading)!important;line-height:1.4!important}
body .g1-picture .g1p-lines p.g1p-instruction,body.school-compact-learning .garden-block.garden-meta{font-size:var(--school-type-instruction)!important;line-height:1.5!important}
body.lesson-workspace-page .lesson-inline-question .lesson-inline-prompt-text,body.lesson-workspace-page .lesson-inline-question .lesson-inline-answers button,body .pb-preschool-practice .pb-answer-grid>button{font-size:var(--school-type-question)!important;line-height:1.5!important}
body .ps-reader .ps-footer button,body .g1-picture .g1p-bottom button,body .pb-reader .pb-bottom button{font-size:var(--school-type-label)!important}
.pb-reader .pb-word{white-space:normal}.pb-reader .pb-line{letter-spacing:0}
@media(max-width:760px){:root{--school-type-mobile-offset:2px;--school-type-question:22px;--school-type-heading:22px;--school-type-instruction:16px;--school-type-label:13px}}
body.lesson-workspace-page .review-heading h1{font-size:22px!important;line-height:1.25!important}
body .pb-reader .pb-sections button,body .pb-reader .pb-tools button{font-size:14px!important}
@media(max-width:760px){body.lesson-workspace-page .review-heading h1{font-size:14px!important}body .pb-reader .pb-sections button,body .pb-reader .pb-tools button{font-size:12px!important}}

body ruby rt{font-weight:400!important;font-synthesis:style!important}

/* The preloaded local Kai face is the first choice, never a late system swap. */
:root{--school-kai:SchoolLearningKai,ClassroomKai,KaiTi,serif}
body .passage,body .match-word,body .literacy-choice .choice>span:last-child,body .ps-reader .ps-text,body .g1-picture ruby,body .g1-picture .g1p-lines,body .g1-picture .g1p-lines p,body .g1-picture .g1p-rhyme-title,body .pb-reader .pb-line,body .pb-reader .pb-word,body .pb-reader .pb-character,body .garden-workspace .garden-blocks,body .garden-workspace .garden-block,body .garden-workspace .garden-text,body .garden-workspace .garden-poem p,body .garden-workspace .garden-words>span,body .garden-workspace ruby,body .tt-reader .tt-item ruby{font-family:SchoolLearningKai,ClassroomKai,KaiTi,serif!important}
