/* NanoFeast Rev6: phone-width layout, loaded after all earlier styles. */
html,body{width:100%;min-width:0;margin:0}
*,*::before,*::after{box-sizing:border-box}
.nfp7-page,.nf-page,main,section,article,aside,figure,nav{min-width:0}
.nfp7-page>*,.nf-page>*,.nfp7-shell>*,.nf-shell>*,.nf-book-shell>*{min-width:0}
.nfp7-topic-grid>*,.nfp7-book-grid>*,.nfp7-systems-grid>*,.nfp7-scale-grid>*,.nfp7-feature-grid>*,.nf-gallery>*,.nf-grid>*,.nf-book-top>*,.nf-book-meta>*,.nf-book-author>*,.nf-book-theme-row>*,.nf-book-lower>*,.nf-book-series-links>*{min-width:0}
img,video,canvas{max-width:100%}
h1,h2,h3,h4,p,li,dd,dt,figcaption,td,th,a{overflow-wrap:anywhere}
.nf-book-scene,.nfp7-hero-media,.nfp7-hero-copy{max-width:100%;min-width:0}
.nf-prose,.nfp7-prose{min-width:0}
.nfp7-topic-grid{grid-template-columns:repeat(8,minmax(0,1fr))}
.nfp7-book-grid,.nfp7-systems-grid,.nfp7-scale-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.nfp7-book-grid.companions,.nfp7-feature-grid,.nf-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1100px){
 .nfp7-topic-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .nfp7-book-grid,.nfp7-book-grid.companions,.nfp7-systems-grid,.nfp7-scale-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 .nf-book-top,.nf-book-theme-row,.nf-book-lower,.nf-book-series-links{grid-template-columns:minmax(0,1fr)}
 .nf-book-cover-card{width:min(100%,340px);max-width:100%;min-width:0;justify-self:center}
 .nf-book-info-card{display:block;grid-column:auto}
 .nf-book-info-card .nf-book-author{margin-bottom:22px}
 .nf-book-series-head{flex-direction:column;align-items:flex-start}
 .nf-book-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
 .nfp7-shell,.nf-shell,.nf-book-shell,.nfp7-hero-grid,.nfp7-footer-inner{width:calc(100% - 28px);max-width:calc(100% - 28px);min-width:0;margin-inline:auto}
 .nfp7-header-inner{width:calc(100% - 28px);max-width:calc(100% - 28px);min-width:0;flex-wrap:wrap;gap:8px;padding:10px 0}
 .nfp7-brand{width:100%;min-width:0}
 .nfp7-nav{display:flex;flex:0 0 100%;width:100%;min-width:0;max-width:100%;flex-wrap:wrap;gap:4px;overflow:visible;padding:0}
 .nfp7-nav a{white-space:normal;max-width:100%;min-width:0;padding:9px 10px;font-size:13px}
 .nfp7-section-head,.nfp7-scale,.nfp7-wide-banner,.nf-section-head,.nf-banner,.nf-subhero-grid{grid-template-columns:minmax(0,1fr)}
 .nfp7-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .nfp7-book-grid,.nfp7-book-grid.companions,.nfp7-systems-grid,.nfp7-feature-grid,.nfp7-scale-grid,.nf-gallery,.nf-book-top,.nf-book-theme-row,.nf-book-lower,.nf-book-series-links{grid-template-columns:minmax(0,1fr);max-width:100%}
 .nf-grid,.nf-grid.two,.nf-grid.four{grid-template-columns:minmax(0,1fr)!important}
 .nfp7-hero-copy,.nf-book-main-card,.nf-book-info-card,.nfp7-wide-banner-copy{min-width:0;max-width:100%}
 .nf-book-main-card,.nf-book-info-card{padding:18px}
 .nfp7-hero-grid,.nf-daughter-page .nfp7-hero-grid,.nf-main-wide .nfp7-hero-grid{grid-template-columns:minmax(0,1fr)}
 .nfp7-hero-media,.nf-book-scene,.nfp7-wide-banner img,.nfp7-scale-card img{width:100%;height:auto;min-height:0;max-height:none}
 .nfp7-hero-media img,.nf-book-scene img,.nfp7-wide-banner img,.nfp7-scale-card img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain}
 .nfp7-actions,.nf-actions{flex-direction:column;align-items:stretch;width:100%;min-width:0}
 .nfp7-btn,.nf-btn,.nf-book-button{white-space:normal;width:100%;min-width:0;max-width:100%;text-align:center;line-height:1.5}
 .nfp7-benefits{gap:12px}
 .nfp7-benefit{max-width:100%}
 .nfp7-footer-inner{display:block}
 .nf-evidence-table-wrap,.nf-table-wrap{width:100%;min-width:0;max-width:100%;overflow:visible}
 .nf-responsive-table,.nf-evidence-table-wrap .nf-responsive-table{display:block;width:100%;min-width:0;max-width:100%;border-collapse:separate}
 .nf-responsive-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
 .nf-responsive-table tbody{display:block;width:100%;min-width:0}
 .nf-responsive-table tr{display:block;width:100%;min-width:0;border:1px solid #244a64;border-radius:8px;margin:0 0 16px}
 .nf-responsive-table td{display:block;width:100%;min-width:0;max-width:100%;white-space:normal;padding:12px 14px}
 .nf-responsive-table td:last-child{border-bottom:0}
 .nf-responsive-table td::before{content:attr(data-label);display:block;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#e5c170;margin-bottom:5px}
}
@media(max-width:400px){
 .nfp7-hero h1,.nf-index-title{font-size:32px;line-height:1.12}
 .nfp7-hero h2,.nfp7-section h2,.nf-section h2{font-size:27px;line-height:1.2}
 .nf-book-main-card h1{font-size:30px}
 .nf-book-meta,.nf-book-author{grid-template-columns:minmax(0,1fr)}
 .nfp7-topic{padding:14px 10px}
}
