/* Shared layout corrections verified by the public template sweep. Theme tokens remain owned by Experience. */
html[data-f250-experience] .human-reader .reading-text :is(p,li){line-height:1.8}
html[data-f250-experience] .human-reader :is(.cards,.reading-cards) :is(h2,h3){margin-top:.15rem;margin-bottom:.7rem;line-height:1.3}
html[data-f250-experience] .human-reader .reading-cards :is(h2,h3){font-size:1.25rem}
html[data-f250-experience] .human-reader .family-stages details{padding:.65rem 0;margin:.75rem 0 0}
.f250-table-scroll{max-width:100%;min-width:0;overflow-x:auto;margin:1rem 0;overscroll-behavior-x:contain}
.f250-table-scroll:focus-visible{outline:3px solid var(--blue,#2563eb);outline-offset:3px}
html[data-f250-experience] :is(.rendered-markdown,.human-reader,.document-body,.reading-body,.study-body) pre,body[data-f250-reader] pre{max-width:100%;min-width:0;overflow-x:auto;white-space:pre}
html[data-f250-experience] :is(.rendered-markdown,.human-reader,.document-body,.reading-body,.study-body) :is(p,li,td,dd)>code,body[data-f250-reader] :is(p,li,td,dd)>code{white-space:pre-wrap;overflow-wrap:anywhere}
body[data-f250-reader] a{overflow-wrap:anywhere}
html[data-f250-experience] .plain-english-standalone{box-sizing:border-box;max-width:100%}
html[data-f250-experience] :is(.card,.panel,.drawer,.inspector,.insp-head,.reading-panel){box-sizing:border-box}
@media(max-width:760px){
 html[data-f250-experience] :is(.grid,.grid2,.grid3,.cards,.panels)>*{min-width:0;max-width:100%}
 html[data-f250-experience] header:not(#f250-site-header){flex-wrap:wrap}
 html[data-f250-experience] header:not(#f250-site-header)>*{min-width:0;max-width:100%}
 html[data-f250-experience] :is(.hash,.meta,.graphic-research-links,.subtitle){overflow-wrap:anywhere}
 html[data-f250-experience] .hash{white-space:normal}
 html[data-f250-experience] :is(.graphic-research-links,.plain-english-entrance) a{overflow-wrap:anywhere}
 html[data-f250-experience] .card:has(>svg.ring),html[data-f250-experience] div:has(>svg.flow){max-width:100%;overflow-x:auto}
 html[data-f250-experience] .chev{max-width:100%;white-space:normal}
}
/* Legacy readers and record tools also use these namespaced components without a theme marker. */
.human-reader :is(h1,h2,h3){overflow-wrap:anywhere}
.plain-english-standalone{box-sizing:border-box;max-width:100%;margin-right:0}
.pic-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.pic-scroll :is(td,th){overflow-wrap:anywhere;white-space:normal}
.f250-source-code{max-width:100%;overflow-x:auto;white-space:pre}
@media(max-width:760px){
 html[data-f250-experience] footer{white-space:normal;overflow-wrap:anywhere}
 html[data-f250-experience] .insp{min-width:0;max-width:100%;overflow-x:auto;box-sizing:border-box}
 html[data-f250-experience] div:has(>svg.flow){min-width:0}
 html[data-f250-experience] div:has(>a.panel){grid-template-columns:minmax(0,1fr)!important}
 html[data-f250-experience] a.panel{min-width:0;max-width:100%}
}
/* Override older component-specific overflow/bleed rules, without shrinking their contents. */
.pic-scroll:has(table.pg){max-width:100%;min-width:0;overflow-x:auto}
.pic-scroll table.pg :is(td,th){overflow-wrap:anywhere;white-space:normal}
:root .plain-english-standalone{box-sizing:border-box;max-width:100%;margin-right:0}
@media(max-width:760px){html[data-f250-experience] div:has(>svg.flow){min-width:0!important}}
/* Small-screen forms retain the available content width, including long native options. */
@media(max-width:480px){
 .human-search-form,.human-search-form .search-input{min-width:0!important;max-width:100%;box-sizing:border-box}
 form label:has(>select[name="operation"]){min-width:0;max-width:100%}
 form select[name="operation"]{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
}
