/* rem-based text throughout the app follows the base setting. Section scales
   use rem (not inherited em), so nested elements never multiply the factor. */
html {font-size:calc(16px * var(--font-scale-base,100) / 100)!important}
html body :is(h1,h2,h3,h4){font-size:calc(var(--heading-size,1.15rem) * var(--font-scale-headings,100) / 100)!important}
html body h1{--heading-size:1.8rem}html body h2{--heading-size:1.4rem}html body h3{--heading-size:1.15rem}html body h4{--heading-size:1rem}
html body :is(.week-table,.apv-table) :is(th,td){font-size:calc(.85rem * var(--font-scale-table,100) / 100)!important}
html body :is(.dashboard-widget,.dashboard-ticker,.apv-widget) :is(p,li,a,small,strong){font-size:calc(.85rem * var(--font-scale-widgets,100) / 100)!important}
html body #appSidebar :is(.sidebar-link,.sidebar-link-text,.sidebar-category,.sidebar-school-name,.sidebar-user-name,.sidebar-user-role,.sidebar-tier-row),html body .font-preview-sidebar{font-size:calc(.85rem * var(--font-scale-sidebar,100) / 100)!important}
html body #appSidebar .sidebar-link{height:auto;min-height:38px;white-space:normal}
html body #appSidebar .sidebar-link-text{white-space:normal;overflow-wrap:anywhere}
html body #pinboardSidebar :is(p,li,a,small,strong,textarea,input,.sidebar-tab-btn,.pinboard-article-title,.pinboard-article-content,.pinboard-article-meta,.todo-text),html body .font-preview-pinboard{font-size:calc(.85rem * var(--font-scale-pinboard,100) / 100)!important;line-height:1.5}
html body #personalMailHome :is(p,span,a,small,strong,time,label,textarea,input,button,pre),html body .font-preview-mail{font-size:calc(.85rem * var(--font-scale-mail,100) / 100)!important;line-height:1.5}
html body #personalMailHome :is(h2,h3){font-size:calc(1.05rem * var(--font-scale-mail,100) / 100)!important}
html body #personalMailHome .pm-item{height:auto;min-height:64px}
