/* Scoped to the current CPL 02-02-079 directive and Appendices A-K. */
body.cpl-reading #pagecontent,
body.cpl-reading #pagecontent [id^="currentCPL"] { font-size:16px; line-height:1.5; }
body.cpl-reading #pagecontent :is(p,ul,ol,li,blockquote,dl,dt,dd) { font-size:16px; line-height:1.5; }
body.cpl-reading #pagecontent :is(table,th,td,table p,table li,table ul,table ol) { font-size:14px; line-height:1.5; }
body.cpl-reading :is(.btnSDS,.btnSDS_current,.collapsible,.prevNextButtons,.prevNextSmall),
body.cpl-reading #pagecontent :is(.footerDisclaimer,.cplOfficialSource,.cplAppendixSource,.cplBottomNav,.cplAppendixBottomNav,.cplSectionXNav,.centered,.cplTableNote,.cplBuildNote,.cplEditorialNote),
body.cpl-reading :is(.footerDisclaimer,.cplOfficialSource,.cplAppendixSource) { font-size:14px; line-height:1.5; }
body.cpl-reading #pagecontent :is(.SE_floatRight,.SE_floatLeft,.sponsorBar,.centerBlock),
body.cpl-reading #pagecontent :is(.SE_floatRight,.SE_floatLeft,.sponsorBar,.centerBlock) :is(p,a,span,li),
body.cpl-reading #pagecontent #sdsTopicInfo :is(p,li,td,th) { font-size:14px; line-height:1.4; }
body.cpl-reading p a { overflow-wrap:anywhere; }
body.cpl-reading :is(.sectionHeader,.cplTOC,.cplVersionNotice,.furtherInfo,.cplSampleLetter) { box-sizing:border-box; max-width:100%; }
body.cpl-reading :is(.cplBottomNav,.cplAppendixBottomNav) { flex-wrap:wrap; }
body.cpl-reading :is(.cplSectionHeader,.cplSubsectionHeader) > * { min-width:0; }
body.cpl-reading .cplTableScroll { max-width:100%; overflow-x:auto; }
@media(max-width:800px) {
  body.cpl-reading :is(.SE_floatRight,.SE_floatLeft) { float:none; box-sizing:border-box; max-width:100%; }
}

/* Keep regulatory column headings and cell relationships visible on phones. */
body.cpl-reading .cplTableScroll .cplResponsiveTable { display:table; min-width:40rem; }
body.cpl-reading .cplTableScroll .cplResponsiveTable thead { display:table-header-group; position:static; left:auto; }
body.cpl-reading .cplTableScroll .cplResponsiveTable tbody { display:table-row-group; }
body.cpl-reading .cplTableScroll .cplResponsiveTable tr { display:table-row; }
body.cpl-reading .cplTableScroll .cplResponsiveTable :is(th,td) { display:table-cell; }

/* Let the directive contents grid shrink and wrap long URLs. */
body.cpl-reading #pagecontent a { overflow-wrap:anywhere; }
body.cpl-reading .cplTOCList > li { grid-template-columns:3.5em minmax(0,1fr); }
body.cpl-reading .cplTOCList :is(a,ol,li) { min-width:0; }

/* Legacy list rules must not force directive prose onto a single line. */
body.cpl-reading #currentCPL0202079Body :is(ul,ol,li,a) { white-space:normal; }
