/* Scoped typography and responsive treatment for the OSHA resource index. */
body.osha-index-reading #pagecontent { font-size:16px; line-height:1.5; }
body.osha-index-reading #pagecontent :is(p,li,ul,ol) { font-size:16px; line-height:1.5; }
body.osha-index-reading #pagecontent h2 { font-size:22px; line-height:1.3; font-weight:bold; color:#006666; border-bottom:1px solid #dcecf7; padding-bottom:0.3em; }
body.osha-index-reading #pagecontent h3 { font-size:18px; line-height:1.4; }
body.osha-index-reading #pagecontent h4 { font-size:16px; line-height:1.5; }
body.osha-index-reading #pagecontent :is(.footerDisclaimer,.btnSDS,.btnSDS_current,.collapsible),
body.osha-index-reading #pagecontent #sdsTopicInfo :is(td,th,p,li),
body.osha-index-reading #pagecontent :is(.SE_floatRight,.SE_floatLeft,.sponsorBar) :is(p,a),
body.osha-index-reading #pagecontent :is(.SE_floatRight,.SE_floatLeft,.sponsorBar) { font-size:14px; line-height:1.5; }
body.osha-index-reading #pagecontent .indexList { margin-bottom:0.6em; }
body.osha-index-reading #pagecontent :is(a,h2,h3,h4) { overflow-wrap:anywhere; }
body.osha-index-reading #pagecontent :is(.subordinate1,h2,h3,h4) { box-sizing:border-box; max-width:100%; }
@media(max-width:800px) {
 body.osha-index-reading #pagecontent :is(.SE_floatRight,.SE_floatLeft) { float:none; width:auto; max-width:100%; box-sizing:border-box; }
 body.osha-index-reading #pagecontent :is(ul,ol) { padding-left:20px; }
 body.osha-index-reading #pagecontent li { margin-left:0; }
 body.osha-index-reading #pagecontent .subordinate1 { margin-left:0; padding-left:0.5rem; }
}

/* Compact, wrapping in-page navigation; kept in the normal document flow. */
body.osha-index-reading #pagecontent .indexJump { margin:1em 10px 1.5em; padding:0.75em 1em; border:1px solid #dcecf7; border-radius:4px; background:#f6fafc; }
body.osha-index-reading #pagecontent .indexJump p { margin:0 0 0.4em; font-size:14px; line-height:1.5; }
body.osha-index-reading #pagecontent .indexJump ul { display:flex; flex-wrap:wrap; gap:0.4em 1.5em; list-style:none; padding:0; margin:0; }
body.osha-index-reading #pagecontent .indexJump li { margin:0; padding:0; font-size:14px; line-height:1.5; }
body.osha-index-reading #pagecontent .indexJumpCompact { margin-bottom:1em; }
body.osha-index-reading #pagecontent :is(#current,#citation,#interp_letters,#hcs2012,#preGHS,[id^="interpretations-"]) { scroll-margin-top:1em; }
