/* Phone-only composition layer. PC layouts do not load these rules. */
@media(max-width:767px){
  :root{--mobile-gutter:12px;--mobile-border:#d5e0e4}
  html,body{max-width:100%;overflow-x:hidden}#content{min-width:0}
  .community-finder-fullscreen,.school-finder-fullscreen{height:auto!important;min-height:0!important;padding:8px var(--mobile-gutter) 18px!important}
  .community-directory-shell,.school-directory-shell{display:flex!important;min-height:0!important;height:auto!important;flex-direction:column;gap:12px!important}
  .community-directory-list,.school-directory-list{display:flex!important;min-width:0;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;flex-direction:column}
  .community-filter-panel,.school-filter-panel{position:sticky;z-index:20;top:0;padding:14px 12px 12px!important;border-bottom:1px solid var(--mobile-border);background:rgba(255,253,248,.98)}
  .community-filter-panel .school-search input,.school-filter-panel .school-search input{min-height:48px;font-size:16px}
  .community-filter-panel .school-filter-chips,.school-filter-panel .school-filter-chips{display:flex;flex-wrap:wrap;gap:7px}
  .community-filter-panel .school-filter-chips button,.school-filter-panel .school-filter-chips button,.school-filter-panel select{min-height:42px}
  .school-directory-count{min-height:56px;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--mobile-border)}
  .school-directory-count label{display:grid;flex:0 0 118px;gap:3px;font-size:10px}.school-directory-count select{width:100%;min-height:38px;padding:0 7px}
  .community-directory-cards,.school-directory-cards{display:grid!important;grid-template-columns:minmax(0,1fr)!important;max-height:min(48dvh,430px)!important;min-height:0;overflow:auto!important;overscroll-behavior:contain;padding:10px 2px!important;scrollbar-width:thin}
  .community-directory-cards h2{font-size:20px;line-height:1.12}.community-directory-cards .community-card-body{min-width:0}
  .school-directory-cards article{display:grid!important;grid-template-columns:54px minmax(0,1fr)!important;grid-template-areas:"level body" "level rating" "select select";min-height:0!important;padding:14px!important;gap:0 10px!important}
  .school-directory-cards .school-card-level{grid-area:level;align-self:start}.school-directory-cards .school-card-body{grid-area:body;min-width:0}
  .school-directory-cards .school-card-body h2{max-width:100%;margin-right:0;font-size:22px;line-height:1.08;overflow-wrap:anywhere}
  .school-directory-cards .school-card-rating{grid-area:rating;display:flex;align-items:start;justify-content:space-between;gap:10px;min-width:0;margin-top:12px;padding-top:10px;border-top:1px solid var(--mobile-border)}
  .school-directory-cards .school-card-select{grid-area:select;width:100%;min-height:44px;margin-top:12px}
  .community-directory-map,.school-directory-map{order:2;width:100%!important;height:min(70dvh,560px)!important;min-height:460px!important;border-radius:18px}
  .community-layer-toolbar,.school-map-level-filter,.school-map-programme-tabs{max-width:calc(100% - 20px)!important;left:10px!important;right:10px!important;overflow-x:auto;scrollbar-width:none}
  .community-layer-toolbar{display:flex!important;flex-direction:row!important;align-items:center!important;width:auto!important;padding:4px!important}
  .community-layer-toolbar>button,.community-layer-menu>button,.school-map-level-filter button,.school-map-programme-tabs button{flex:0 0 auto;min-height:40px!important}
  .community-directory-legend,.school-directory-legend{left:10px!important;right:10px!important;bottom:10px!important;width:auto!important}
  .community-map-profile.expanded{position:fixed!important;z-index:60!important;max-height:none!important;height:auto!important;padding:16px!important;overflow:auto!important;transform:none!important;translate:0 0!important;border-radius:18px!important}
  .community-map-profile.expanded{top:70px!important;bottom:8px!important;left:50%!important;right:auto!important;width:calc(100% - 16px)!important}
  .community-map-profile.expanded{left:50%!important;right:auto!important}
  .community-single-page .community-map-profile.expanded{position:fixed!important;inset:70px auto 8px 50%!important;width:calc(100% - 16px)!important;height:auto!important;max-height:none!important;padding:16px!important;overflow:auto!important;transform:none!important;translate:-50% 0!important}
  .community-single-page .community-map-profile.expanded{overflow-x:hidden!important}
  .community-single-page .community-map-profile.expanded{overflow-x:hidden!important}
  .community-map-profile.expanded .community-expanded-overview,.community-map-profile.expanded .community-profile-layout,.community-map-profile.expanded .community-market-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0}
  .community-map-profile.expanded .community-profile-layout{gap:12px}.community-map-profile.expanded .community-radar{width:min(230px,100%)!important;margin:0 auto}
  .community-map-profile.expanded .community-six-axis-card .community-radar{width:220px!important;max-width:220px!important;height:190px!important;overflow:hidden}
  .community-map-profile.expanded .community-six-axis-card .community-radar svg{left:20px!important;top:5px!important;width:180px!important;height:180px!important}
  .community-map-profile.expanded .community-six-axis-card .community-radar{width:220px!important;max-width:220px!important;height:190px!important;overflow:hidden}
  .community-map-profile.expanded .community-six-axis-card .community-radar svg{left:20px!important;top:5px!important;width:180px!important;height:180px!important}
  .community-map-profile.expanded .community-expanded-metrics,.community-map-profile.expanded .community-expanded-schools,.community-map-profile.expanded .profile-chart-grid,.community-map-profile.expanded .secondary-chart-grid{grid-template-columns:minmax(0,1fr)!important}
  .property-report{width:100%!important;min-width:0;padding:10px var(--mobile-gutter) 24px!important}
  .property-report-global-actions{position:static!important;width:100%;margin:0 0 8px;padding:0}.property-report-global-actions .property-report-actions{display:flex;flex-wrap:nowrap;justify-content:flex-start!important;gap:7px;overflow-x:auto;padding:1px 1px 3px;scrollbar-width:none}
  .property-report-global-actions .property-report-actions button{flex:0 0 auto;min-height:44px}.report-property-hero{display:flex!important;min-width:0;flex-direction:column;gap:12px!important}
  .report-property-hero>.report-header{min-height:0!important;padding:20px 16px!important}.report-property-hero>.report-header>div:first-child{height:auto!important;padding:0!important}
  .report-property-hero .report-address-map-link{font-size:clamp(30px,8vw,40px)!important;line-height:1.02}.report-property-model-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .report-property-hero .report-sunlight-map-3d{height:min(88vw,390px)!important;min-height:300px!important}.report-jump{top:70px;max-width:100%;margin:0!important;padding:6px!important;overflow-x:auto;flex-wrap:nowrap!important;scrollbar-width:none}
  .report-jump a{flex:0 0 auto;min-height:40px;padding-inline:12px!important}.property-report .report-section{min-width:0;padding:18px 15px!important;overflow:hidden}
  .property-report .report-fact-grid,.property-report .report-risk-grid,.property-report .report-manual-grid,.property-report .report-resident-signals,.property-report .report-resident-columns,.property-report .report-nearby-grid,.property-report .report-school-grid{grid-template-columns:minmax(0,1fr)!important}
  .school-detail-view{width:100%!important;min-width:0;padding:0 var(--mobile-gutter) 36px!important}.school-overview{display:flex!important;min-width:0;flex-direction:column;gap:14px!important}.school-static-hero{min-width:0}
  .school-static-hero h1{max-width:100%;font-size:clamp(34px,9vw,46px)!important;line-height:1.02;overflow-wrap:anywhere}.school-essentials-panel{margin-top:16px!important;padding:0 14px!important}
  .school-essentials-panel .school-quick-panel,.school-essentials-panel .school-programme-strip,.school-day-content,.school-contact-panel .school-contact-rows{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  .school-map-frame,.school-map-frame .school-map-shell{width:100%!important;min-height:360px!important;aspect-ratio:4 / 3!important}.school-kpis,.school-chart-grid,.school-module-grid,.school-rank-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0}
  .school-chart-card,.school-info-card{min-width:0;overflow:hidden}.overflow-assignment-table{max-width:100%;overflow-x:auto}
}
@media(max-width:420px){.school-kpis,.school-chart-grid,.school-module-grid,.school-rank-summary{grid-template-columns:minmax(0,1fr)!important}.report-property-model-facts{gap:8px!important}.report-property-model-facts dt{font-size:12px}.report-property-model-facts dd{font-size:17px}}
