/* Shared screen-only reading scale. PDF/Word rendering stays independent. */
@media screen{
html:root[data-theme] body{font-size:18px;line-height:1.65}
html:root[data-theme] body main#main :is(p,li){font-size:clamp(1.25rem,1.55vw,1.375rem);line-height:1.7}
html:root[data-theme] body main#main :is(h1,.page-intro h1,.welcome h1){font-size:clamp(2.75rem,5vw,4.25rem);line-height:1.15}
html:root[data-theme] body main#main h2{font-size:clamp(2.25rem,3.6vw,3.25rem);line-height:1.25}
html:root[data-theme] body main#main :is(h3,h4){font-size:clamp(1.375rem,1.7vw,1.625rem);line-height:1.35}
html:root[data-theme] body main#main :is(.lede,.welcome-copy,.hero-explain){font-size:clamp(1.25rem,1.55vw,1.375rem);line-height:1.7}
html:root[data-theme] body :is(main,aside) :is(label,summary,input,textarea,select,button,.button,.primary,.secondary,.text-link){font-size:1.125rem;line-height:1.5}
html:root[data-theme] body main#main :is(button,.button,.primary,.secondary){min-height:46px;white-space:normal;max-width:100%;overflow-wrap:break-word}
html:root[data-theme] body main#main .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html:root[data-theme] body main#main .form-grid>*{min-width:0}
@media(max-width:900px){html:root[data-theme] body main#main .form-grid{grid-template-columns:minmax(0,1fr)}}
html:root[data-theme] body :is(input,textarea,select){min-width:0;max-width:100%;font-size:1.125rem}
html:root[data-theme] body main#main :is(.caption,.hint,.small,.subtitle,.resource-footnote,.events-note,.ai-disclosure,.example-footnote,.workspace-demo-note,.portal-status,.application-meta,.class-status,.illustration-note){font-size:1rem;line-height:1.65}
html:root[data-theme] body main#main :is(.eyebrow,.resource-category,.event-kind,.example-label,.illustration-label,.mini-title,.studio-kicker){font-size:.9375rem;line-height:1.5;letter-spacing:.08em}
html:root[data-theme] body main#main small,html:root[data-theme] body .shell .step small{font-size:1rem;line-height:1.5}
html:root[data-theme] body main#main :is(.starting-paths>a>span,.welcome-guide>summary>span,.story-benefit,.sample-role span,.shortcut-label){font-size:1.0625rem;line-height:1.6}
html:root[data-theme] body main#main :is(.resource-grid a,.resource-jumps a,.calendar-link,.event-link,.prep-guide-link){font-size:1.125rem;line-height:1.5}
html:root[data-theme] body main#main :is(th,td,pre){font-size:1rem;line-height:1.6}
html:root[data-theme] body main#main pre{white-space:pre-wrap;overflow-wrap:anywhere}
html:root[data-theme] body .theme-toggle{font-size:15px;min-height:44px}
html:root[data-theme] body footer{font-size:1rem}
html:root[data-theme] body footer a:not(.brand){font-size:1rem;line-height:1.5}
html:root[data-theme] body:is([data-public-shell],[data-member-shell]) header nav[aria-label="Main navigation"]>a{font-size:16px;line-height:1.5;min-height:44px}
html:root[data-theme] body:is([data-public-shell],[data-member-shell]) header nav[aria-label="Main navigation"]{gap:18px}
html:root[data-theme] body .shell .step{font-size:1rem;line-height:1.5}
html:root[data-theme] body main#main :is(.flow-nav,.button-row,.account-primary-actions,.checkpoint-actions){flex-wrap:wrap}
html:root[data-theme] body main#main :is(.flow-nav button,.stage-chip){font-size:1rem}
html:root[data-theme] body main#main .account-primary-actions{align-items:center}
html:root[data-theme] body main#main .account-primary-actions>a{min-height:48px}
@media(max-width:600px){
html:root[data-theme] body:is([data-public-shell],[data-member-shell]) header.header,html:root[data-theme] body:is([data-public-shell],[data-member-shell])>header{height:228px;min-height:228px}
html:root[data-theme] body:is([data-public-shell],[data-member-shell]) header nav[aria-label="Main navigation"]{gap:0 18px}
html:root[data-theme] body main#main :is(h1,h2,h3,h4){overflow-wrap:break-word}
html:root[data-theme] body main#main :is(.hero-actions,.button-row){gap:12px}
html:root[data-theme] body main#main .resource-grid{grid-template-columns:minmax(0,1fr)}
html:root[data-theme] body .shell .step{max-width:210px}
}
}
@media screen and (max-width:600px){
html:root[data-theme] body:is([data-public-shell],[data-member-shell])>.page-appearance{height:96px;min-height:96px;align-items:center}
html:root[data-theme] body .page-appearance #load-example{font-size:16px;line-height:1.5;padding:10px 12px;white-space:normal}
}

@media screen and (max-width:380px){
html:root[data-theme] body main#main input[type="datetime-local"]{font-size:1rem;padding:12px 8px}
}
