/* Readable type sizes without enlarging the rem-based layout. */
body{font-size:16px}
/* Keep the long teacher profile's scroll position visible against its dark frame. */
html:has(body.jh-iframe),html:has(body.jh-profile-full){scrollbar-color:#aeb7bd #181b1e;scrollbar-width:auto}
html:has(body.jh-iframe)::-webkit-scrollbar,html:has(body.jh-profile-full)::-webkit-scrollbar{width:12px;height:12px}
html:has(body.jh-iframe)::-webkit-scrollbar-track,html:has(body.jh-profile-full)::-webkit-scrollbar-track{background:#181b1e}
html:has(body.jh-iframe)::-webkit-scrollbar-thumb,html:has(body.jh-profile-full)::-webkit-scrollbar-thumb{background:#aeb7bd;border:2px solid #181b1e;border-radius:8px}
html:has(body.jh-iframe)::-webkit-scrollbar-thumb:hover,html:has(body.jh-profile-full)::-webkit-scrollbar-thumb:hover{background:#e1e7eb}
button,input,select,textarea{font-size:16px}
.jh-footer-brand p,.jh-footer-bottom{line-height:1.85;overflow-wrap:anywhere}
.jh-footer-bottom{flex-wrap:wrap}
.jh-company-identity dl>div{grid-template-columns:88px minmax(0,1fr)}
.jh-company-value-grid article>div{flex-wrap:wrap;gap:10px;line-height:1.6}
.jh-work-card>span{line-height:1.6}
.jh-studio-choices{min-height:0}
.jh-studio-choice b{white-space:normal}
.jh-scan-card h3,.jh-scan-card h4,.jh-scan-card small{line-height:1.65}
.jh-partner-featured .jh-scan-card h4{min-height:0}
.jh-partner-jump{flex-wrap:wrap}
.jh-eyebrow,.jh-company-kicker{line-height:1.6;letter-spacing:1.5px}
.jh-art-link small{line-height:1.5}
.mg-work-filter .select2-container{width:150px!important;padding:6px 10px}
.mg-work-filter .select2-selection--single{align-items:center;gap:10px;min-height:24px}
.mg-work-filter .select2-selection--single .select2-selection__rendered{height:auto;min-height:24px;line-height:24px}
.mg-work-filter .select2-selection--single .select2-selection__arrow{width:18px;height:18px;flex:none}
.select2-results__option{line-height:1.6;padding-top:9px;padding-bottom:9px}
@media(min-width:1024px){
 .jh-page-intro p,.jh-topic-card p,.jh-course-card p,.jh-course-detail p,.jh-course-detail li,.jh-learning-note p,.jh-company-lead>p,.jh-company-story>div>p:not(.jh-company-kicker),.jh-company-business-grid p,.jh-company-feature>div>p:not(.jh-company-kicker),.jh-company-value-grid p,.jh-company-editorial-grid article>p,.jh-company-cta p:not(.jh-company-kicker),.jh-company-process>p:not(.jh-company-kicker),.jh-partner-profile p,.jh-partner-company p{font-size:18px;line-height:1.85}
}
@media(max-width:1023px){
 /* Give the fixed mobile filters equal breathing room above and below. */
 .mg-work-filter{height:calc(3rem + 24px);padding-top:12px;padding-bottom:12px}
 .mg-page-works{padding-top:calc(6rem + 24px)}
 .mg-scroll-screen .mg-page-works{padding-top:calc(3rem + 24px)}
 .mg-work-filter .select2-container{width:min(160px,calc(50vw - 14px))!important}
 .jh-studio-choices{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
 .jh-studio-choice{display:flex;align-items:center;gap:8px;min-height:65px;overflow:visible}
 .jh-studio-choice>img{width:52px;height:48px;margin:0}
 .jh-studio-choice b{line-height:1.5}
 .jh-staff-block .info{flex-wrap:wrap}
 .jh-staff-block .bio{flex:1;min-width:160px}
 .jh-staff-block .bio .desc{line-height:1.85!important}
 .jh-staff-block .bio h3{flex-wrap:wrap}
 .jh-profile-heading p{line-height:1.85}
 .jh-company-identity dl>div{grid-template-columns:80px minmax(0,1fr)}
 .jh-company-process h2{white-space:normal}
 .jh-partner-home .with-subtitle,.jh-studio-heading .with-subtitle{flex-wrap:wrap;gap:8px}
 .jh-studio-heading p,.jh-partner-home .mg-page-title p{letter-spacing:0;line-height:1.75}
 .jh-scan-dialog-actions{flex-wrap:wrap}
 .jh-scan-dialog-actions button,.jh-scan-dialog-actions a{min-height:44px}
 .jh-contact-icon{margin-top:4px}
}
@media(max-width:1023px) and (max-height:820px){.jh-partner-featured .jh-scan-paper{height:100px}.jh-partner-home-body{gap:14px}.jh-partner-featured{gap:10px 12px}}
@media(max-width:1023px) and (max-height:700px){.jh-partner-featured .jh-scan-paper{height:75px}}
