.community-finder-fullscreen{--sd-bg:#f2efe9;--sd-surface:#fffdf8;--sd-ink:#252a28;--sd-copy:#666c67;--sd-border:#d9d5cb;--sd-accent:#9a7738}.community-directory-shell{height:100%}
@media(min-width:1001px){.community-directory-shell{grid-template-columns:700px minmax(0,1fr)}.community-filter-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 18px;align-items:end}.community-filter-panel .school-filter-heading{grid-column:1/-1}.community-filter-panel .school-search{margin-top:12px}.community-filter-panel fieldset{margin:0}.community-directory-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.community-filter-panel{padding-bottom:14px}.community-filter-panel .school-filter-chips button.active{border-color:#9a7738;background:#9a7738;color:#fff}.community-directory-cards{align-content:start;gap:8px;padding:8px}.community-directory-cards article{position:relative;display:grid!important;grid-template-columns:72px minmax(0,1fr) 28px!important;align-items:start;gap:10px!important;min-height:194px!important;padding:15px!important;border:1px solid #ded8ca!important;border-radius:12px;background:#fffdf8;cursor:pointer}.community-directory-cards article:hover{border-color:#c5ae77!important;background:#fdf9ed!important}.community-directory-cards article.selected{border-color:#9a7738!important;background:#fbf3dd!important;box-shadow:0 0 0 2px #9a7738 inset!important}.community-hex{width:68px;height:68px;overflow:visible}.community-hex-grid{fill:#f2ede1;stroke:#cabd9f;stroke-width:1.5}.community-hex-value{fill:rgba(176,139,69,.26);stroke:#9a7738;stroke-width:2}.community-hex circle{fill:#7f612c}.community-directory-cards .school-card-body{display:block!important}.community-directory-cards .school-card-kickers{min-height:22px}.community-directory-cards .school-card-kickers>small{font-size:10px}.community-directory-cards .school-card-kickers>span{background:#f0e7d2;color:#7c5e2a}.community-directory-cards h2{min-height:0;margin:4px 0 0;font-size:19px;line-height:1.08}.community-card-zh-name{margin-top:4px;color:#77736a;font-size:11px}.community-card-core{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:11px}.community-card-core>span{display:grid;gap:3px;padding:7px;border-radius:8px;background:#f4f1e9}.community-card-core small,.community-card-active small{color:#77766f;font-size:8px}.community-card-core strong{overflow:hidden;color:#393b36;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.community-card-active{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;padding:8px 10px;border-radius:8px;background:#eee4cb}.community-card-active strong{color:#785923;font-size:14px}.community-card-open{align-self:center;display:grid;place-items:center;width:28px;height:38px;border:1px solid #d4c49e;border-radius:8px;background:#f7f1e1;color:#86672d}.community-directory-cards article.selected .community-card-open{background:#9a7738;color:#fff}
.community-directory-map{border-color:#d5d2ca;background:#deddd7}.community-directory-map .maplibregl-ctrl-bottom-right{right:12px;bottom:12px}.community-directory-map .maplibregl-ctrl-group{border-radius:10px;box-shadow:0 8px 22px rgba(47,54,49,.14)}.community-layer-picker{position:absolute;z-index:8;left:14px;top:14px;width:238px}.community-layer-picker>button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;padding:7px 12px;border:1px solid #d7d1c3;border-radius:11px;background:rgba(255,253,248,.97);box-shadow:0 8px 22px rgba(47,54,49,.13);color:#4f534f;text-align:left;cursor:pointer}.community-layer-picker>button span{display:grid;gap:2px}.community-layer-picker>button small{color:#8a6b32;font-size:8px;font-weight:850;letter-spacing:.1em}.community-layer-picker>button strong{font-size:13px}.community-layer-picker>div{max-height:calc(100dvh - 180px);margin-top:6px;padding:9px;overflow:auto;border:1px solid #d7d1c3;border-radius:12px;background:#fffdf8;box-shadow:0 16px 42px rgba(47,54,49,.2)}.community-layer-picker section+section{margin-top:9px;padding-top:9px;border-top:1px solid #e4e0d7}.community-layer-picker h3{margin:0 0 5px;padding:0 6px;color:#77766f;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.community-layer-picker section button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:32px;padding:0 8px;border:0;border-radius:7px;background:transparent;color:#555b56;font-size:11px;text-align:left;cursor:pointer}.community-layer-picker section button:hover{background:#f3efe5}.community-layer-picker section button.active{background:#eee3c9;color:#745621;font-weight:850}
.community-directory-legend{position:absolute;z-index:5;left:14px;bottom:14px;display:grid;grid-template-columns:auto 78px;align-items:center;gap:4px 10px;padding:9px 11px;border:1px solid #d7d1c3;border-radius:10px;background:rgba(255,253,248,.95)}.community-directory-legend>strong{font-size:10px}.community-directory-legend>div{display:grid;grid-template-columns:repeat(3,1fr);height:8px;overflow:hidden;border-radius:4px}.community-directory-legend>span{grid-column:1/-1;color:#747770;font-size:9px}
.community-map-profile{width:min(430px,calc(100% - 28px))!important;padding:22px!important;border-top:4px solid #9a7738!important}.community-map-profile>header{padding-right:38px!important}.community-map-profile h2{font-size:34px!important}.community-profile-close{position:absolute;right:15px;top:15px;display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--sd-border);border-radius:9px;background:#f7f5f0;color:#5d5d56;cursor:pointer}.community-layer-reading{display:grid;margin-top:18px;padding:17px;border-radius:13px;background:#f1e7cf}.community-layer-reading span{color:#795b26;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.community-layer-reading strong{margin-top:4px;color:#6f511f;font-size:29px;line-height:1}.community-layer-reading small{margin-top:7px;color:#766f60;font-size:11px}.community-layer-related{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:9px}.community-layer-related>div{display:grid;gap:4px;padding:11px 9px;border:1px solid #e0ddd5;border-radius:9px;background:#faf8f3}.community-layer-related span{color:#77766f;font-size:9px}.community-layer-related strong{overflow:hidden;font-size:13px;text-overflow:ellipsis}.community-map-profile .school-profile-expand{min-height:48px;margin-top:11px;background:#9a7738;font-size:14px;text-decoration:none}
@media(max-width:1450px) and (min-width:1001px){.community-directory-shell{grid-template-columns:610px minmax(0,1fr)}.community-directory-cards{grid-template-columns:1fr}.community-directory-cards article{min-height:150px!important}.community-map-profile{width:min(390px,calc(100% - 28px))!important}}
@media(max-width:1000px){.community-finder-fullscreen{height:auto}.community-directory-shell{height:auto}.community-directory-map{height:72vh;min-height:620px}.community-map-profile{top:74px!important;right:10px!important;bottom:auto!important}.community-layer-picker{left:10px;top:10px}}
@media(max-width:620px){.community-directory-cards article{grid-template-columns:64px minmax(0,1fr) 28px!important}.community-hex{width:60px}.community-card-core{grid-template-columns:repeat(3,minmax(0,1fr))}.community-map-profile{left:7px!important;right:7px!important;width:auto!important}.community-layer-related{grid-template-columns:repeat(3,minmax(0,1fr))}.community-layer-picker{width:210px}}

/* Blue community identity and second-generation card/layer architecture. */
.community-finder-fullscreen{--sd-bg:#e9eef1;--sd-surface:#fcfdfc;--sd-ink:#24343c;--sd-copy:#65747b;--sd-border:#ced9de;--sd-accent:#27698c}.community-filter-panel .school-filter-chips button.active{border-color:#27698c;background:#27698c}.community-sector-filter{max-width:430px}.community-sector-filter button{min-width:42px}.community-directory-cards article{grid-template-columns:78px minmax(0,1fr)!important;min-height:226px!important;border-color:#d3dde1!important;background:#fcfdfc}.community-directory-cards article:hover{border-color:#91b3c3!important;background:#f2f7f9!important}.community-directory-cards article.selected{border-color:#27698c!important;background:#eaf3f7!important;box-shadow:0 0 0 2px #27698c inset!important}.community-outline{align-self:start;width:72px;height:72px;padding:7px;border:1px solid #c5d8e1;border-radius:13px;background:#edf5f8}.community-outline path{fill:rgba(49,121,157,.2);stroke:#2d7598;stroke-width:2;stroke-linejoin:round}.community-outline-fallback{width:72px;height:72px;border-radius:13px;background:#edf5f8}.community-directory-cards .school-card-kickers>span{background:#e2eff4;color:#27698c}.community-directory-cards h2{color:#24343c}.community-card-six{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}.community-card-six>span{display:grid;gap:3px;padding:8px;border-radius:8px;background:#eef3f5}.community-card-six small{color:#718087;font-size:9px}.community-card-six strong{overflow:hidden;color:#314852;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.community-card-details{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:36px;margin-top:2px;padding:0 10px;border:1px solid #b9d0da;border-radius:8px;background:#e9f2f6;color:#27698c;font-size:11px;font-weight:850;text-decoration:none}.community-card-details:hover{border-color:#27698c;background:#27698c;color:#fff}
.community-layer-toolbar{position:absolute;z-index:9;left:14px;top:14px;display:flex;align-items:center;gap:4px;max-width:calc(100% - 470px);padding:5px;border:1px solid #c8d7de;border-radius:12px;background:rgba(252,253,252,.97);box-shadow:0 9px 25px rgba(39,80,99,.14)}.community-layer-toolbar>button,.community-layer-menu>button{min-height:36px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#526a75;font-size:11px;font-weight:750;white-space:nowrap;cursor:pointer}.community-layer-toolbar button:hover{background:#eaf2f5}.community-layer-toolbar button.active{background:#27698c;color:#fff}.community-layer-menu{position:relative}.community-layer-menu>button{display:flex;align-items:center;gap:5px}.community-layer-menu>div{position:absolute;z-index:12;left:0;top:calc(100% + 8px);width:210px;max-height:420px;padding:7px;overflow:auto;border:1px solid #c8d7de;border-radius:11px;background:#fcfdfc;box-shadow:0 16px 42px rgba(36,66,81,.2)}.community-layer-menu>div button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:34px;padding:0 9px;border:0;border-radius:7px;background:transparent;color:#52666f;font-size:11px;text-align:left;cursor:pointer}.community-layer-menu>div button.active{background:#dcecf3;color:#225f7e;font-weight:850}
.community-directory-legend{border-color:#c8d7de}.community-map-profile{width:min(520px,calc(100% - 28px))!important;border-top-color:#27698c!important}.community-profile-layout{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:center;gap:12px;margin-top:16px}.community-radar{position:relative;width:210px;height:184px}.community-radar svg{position:absolute;left:35px;top:20px;width:140px;height:140px}.community-radar-grid,.community-radar-mid{fill:#edf3f5;stroke:#b5ccd6;stroke-width:1}.community-radar-mid{fill:none;stroke-dasharray:3 3}.community-radar-value{fill:rgba(39,105,140,.25);stroke:#27698c;stroke-width:2}.community-radar circle{fill:#1f5e7e}.community-radar>span{position:absolute;display:grid;color:#607780;font-size:9px;line-height:1;text-align:center}.community-radar>span b{margin-top:3px;color:#27698c;font-size:11px}.community-radar .axis-0{left:82px;top:0}.community-radar .axis-1{right:0;top:43px}.community-radar .axis-2{right:0;bottom:28px}.community-radar .axis-3{left:85px;bottom:0}.community-radar .axis-4{left:0;bottom:28px}.community-radar .axis-5{left:0;top:43px}.community-profile-layout .community-layer-reading{margin:0;background:#e5f0f5}.community-profile-layout .community-layer-reading span,.community-profile-layout .community-layer-reading strong{color:#225f7e}.community-map-profile .school-profile-expand{background:#27698c}.community-profile-close{color:#27698c}
@media(max-width:1600px) and (min-width:1001px){.community-layer-toolbar{max-width:calc(100% - 410px);overflow-x:auto}.community-map-profile{width:min(440px,calc(100% - 28px))!important}.community-profile-layout{grid-template-columns:1fr}.community-radar{margin:auto}}
@media(max-width:1000px){.community-layer-toolbar{left:10px;right:10px;max-width:none;overflow-x:auto}.community-map-profile{top:68px!important}.community-directory-cards article{min-height:210px!important}}
@media(max-width:620px){.community-directory-cards article{grid-template-columns:68px minmax(0,1fr)!important}.community-outline{width:62px;height:62px}.community-card-six{grid-template-columns:repeat(2,minmax(0,1fr))}.community-profile-layout{grid-template-columns:1fr}.community-radar{margin:auto}}

/* Lighter blue chrome, compact school-card action, and visible ten-step legends. */
.community-finder-fullscreen{--sd-bg:#edf3f5;--sd-surface:#fdfefe;--sd-border:#d5e0e4;--sd-accent:#4f88a4}.community-filter-panel .school-filter-chips button.active{border-color:#4f88a4;background:#4f88a4}.community-directory-cards article{padding-bottom:54px!important;border-color:#d9e3e7!important}.community-directory-cards article:hover{border-color:#a9c6d3!important;background:#f4f9fb!important}.community-directory-cards article.selected{border-color:#5b91aa!important;background:#eef7fa!important;box-shadow:0 0 0 2px #6f9fb5 inset!important}.community-outline{border-color:#cfe0e7;background:#f1f7f9}.community-outline path{fill:rgba(95,151,177,.2);stroke:#6497ae}.community-directory-cards .school-card-kickers>span{background:#e9f3f7;color:#4c7d93}.community-card-six>span{background:#f1f6f8}.community-card-details{position:absolute;right:15px;bottom:14px;display:flex;width:78px;min-height:31px;margin:0;padding:0 8px;border-color:#c7dae2;background:#f0f7f9;color:#4d829a;font-size:10px}.community-card-details:hover{border-color:#5d93aa;background:#5d93aa}.community-layer-toolbar{border-color:#d1dfe5;background:rgba(253,254,254,.97)}.community-layer-toolbar button.active{background:#5b8fa7}.community-layer-menu>div button.active{background:#e7f2f6;color:#477b93}.community-map-profile{border-top-color:#6195ac!important}.community-radar-value{fill:rgba(82,139,165,.2);stroke:#5a8fa8}.community-radar circle{fill:#477c95}.community-radar>span b{color:#477c95}.community-profile-layout .community-layer-reading{background:#edf5f8}.community-profile-layout .community-layer-reading span,.community-profile-layout .community-layer-reading strong{color:#47798f}.community-map-profile .school-profile-expand{background:#5b8fa7}.community-directory-legend>div{grid-template-columns:repeat(10,1fr);width:150px}.community-directory-legend>small{grid-column:2;display:flex;justify-content:space-between;color:#6e7d84;font-size:8px}.community-directory-legend>span{grid-column:1/-1}.community-directory-map{background:#e5ebed}
.community-directory-legend{grid-template-columns:1fr;width:min(460px,calc(100% - 28px));padding:13px 15px;gap:7px}.community-directory-legend>strong{font-size:13px}.community-directory-legend .community-legend-scale{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));width:100%;height:auto;overflow:visible}.community-legend-scale>span{display:grid;min-width:0}.community-legend-scale i{display:block;width:100%;height:15px;border:0;border-radius:0;box-shadow:none}.community-legend-scale>span:first-child i{border-radius:5px 0 0 5px}.community-legend-scale>span:last-child i{border-radius:0 5px 5px 0}.community-legend-scale b{margin-top:4px;color:#586a72;font-size:8px;font-weight:750;text-align:center}.community-directory-legend>small{grid-column:1;display:flex;justify-content:space-between;width:100%;font-size:9px}.community-directory-legend>span{grid-column:1;font-size:10px}.community-directory-map .maplibregl-ctrl-bottom-right{bottom:112px}
@media(max-width:620px){.community-directory-legend{left:7px;bottom:7px;width:calc(100% - 14px)}.community-directory-legend .community-legend-scale b{font-size:7px}.community-directory-map .maplibregl-ctrl-bottom-right{bottom:118px}}

/* Desktop layers are vertical; narrow screens retain the horizontal rail. */
@media(min-width:1001px){.community-layer-toolbar{flex-direction:column;align-items:stretch;width:158px;max-width:none;max-height:calc(100% - 28px);overflow:visible}.community-layer-toolbar>button,.community-layer-menu>button{justify-content:flex-start;width:100%;min-height:34px;text-align:left}.community-layer-menu>div{left:calc(100% + 8px);top:0}.community-directory-legend{left:184px}.community-map-profile.expanded{left:12px!important;right:12px!important;top:12px!important;width:auto!important;max-height:calc(100% - 24px)!important;padding:28px!important;overflow:auto}}
.community-map-profile.expanded .community-profile-layout{grid-template-columns:250px minmax(260px,1fr);max-width:760px}.community-map-profile.expanded .community-radar{width:230px}.community-expanded-content{margin-top:22px;padding-top:20px;border-top:1px solid #d6e1e5}.community-expanded-content section+section{margin-top:22px}.community-expanded-content h3{margin:0 0 11px;color:#416f83;font-size:20px}.community-expanded-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.community-expanded-metrics>div{display:grid;gap:5px;padding:15px;border:1px solid #d7e2e6;border-radius:11px;background:#f3f7f8}.community-expanded-metrics span{color:#687980;font-size:11px}.community-expanded-metrics strong{color:#2e4853;font-size:17px}.community-expanded-content footer{display:flex;justify-content:space-between;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid #d6e1e5}.community-expanded-content footer button,.community-expanded-content footer a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border:1px solid #aac5d1;border-radius:9px;background:#edf5f8;color:#477b92;font-size:12px;font-weight:800;text-decoration:none;cursor:pointer}.community-expanded-content footer a{background:#5b8fa7;color:#fff}


/* Market list cards share the exact compact Community-card anatomy. */
.community-directory-cards article.market-card-mode{grid-template-columns:118px minmax(0,1fr)!important;min-height:158px!important;padding:14px 16px!important}.community-market-price-icon{display:grid;align-content:center;justify-items:center;width:112px;min-height:78px;padding:10px 8px;border:1px solid #e3bd72;border-radius:13px;background:#fff1b8;color:#9f3f32;text-align:center}.community-market-price-icon small{font-size:14px!important;font-weight:800;text-transform:uppercase;white-space:nowrap}.community-market-price-icon strong{margin-top:6px;font-size:24px;line-height:1;white-space:nowrap}.market-card-mode .school-card-body{min-height:78px}.market-card-mode .school-card-kickers>small{font-size:14px}.market-card-mode .community-card-bottom{grid-template-columns:repeat(4,minmax(0,1fr)) 82px!important;gap:5px;margin-top:9px}.market-card-mode .community-card-bottom>span{min-height:44px;padding:7px 8px}.market-card-mode .community-card-bottom small{font-size:14px}.market-card-mode .community-card-bottom strong{font-size:15px}.market-card-mode .community-card-details{grid-column:auto!important;min-height:100%!important;padding:0 8px!important;font-size:16px}@media(max-width:620px){.community-directory-cards article.market-card-mode{grid-template-columns:118px minmax(0,1fr)!important;min-height:0!important}.community-market-price-icon{width:112px;min-height:78px}.market-card-mode .community-card-bottom{grid-template-columns:repeat(2,minmax(0,1fr))!important}.market-card-mode .community-card-details{grid-column:1/-1!important;min-height:44px!important}}
.community-market-profile-prices{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:8px;margin-top:18px}.community-market-profile-prices>div,.community-market-profile-signals>div{display:grid;gap:5px;padding:13px;border:1px solid #d5e1e5;border-radius:11px;background:#f4f8f9}.community-market-profile-prices>div{border-color:#ead19f;background:#fff7da}.community-market-profile-prices>.primary{border-color:#e3bd72;background:#fff1b8}.community-market-profile-prices span,.community-market-profile-signals span,.community-market-profile-signals small{color:#687b84;font-size:14px}.community-market-profile-prices span{color:#926341}.community-market-profile-prices strong{color:#b04c37;font-size:18px}.community-market-profile-prices>.primary strong{color:#9f3f32;font-size:25px}.community-market-profile-signals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.community-market-profile-signals strong{color:#294854;font-size:19px}.community-market-profile-signals small{line-height:1.35}@media(max-width:620px){.community-market-profile-prices,.community-market-profile-signals{grid-template-columns:1fr}.community-market-profile-prices>div,.community-market-profile-signals>div{grid-template-columns:1fr auto;align-items:center}.community-market-profile-prices>div strong,.community-market-profile-signals>div strong{grid-column:2;grid-row:1}.community-market-profile-signals>div small{grid-column:1/-1}}
@media(max-width:1000px){.community-layer-toolbar{flex-direction:row}.community-layer-menu>div{left:0;top:calc(100% + 8px)}.community-map-profile.expanded{inset:8px!important;width:auto!important;max-height:calc(100% - 16px)!important;overflow:auto}.community-expanded-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.community-expanded-metrics{grid-template-columns:1fr}.community-expanded-content footer{align-items:stretch;flex-direction:column}}

/* Dense school-derived result card: one clear row, population first, detail at row end. */
@media(min-width:1001px){.community-directory-cards{grid-template-columns:1fr!important}}
.community-directory-cards article{grid-template-columns:74px minmax(0,1fr)!important;min-height:158px!important;padding:14px 16px!important}.community-directory-cards .school-card-body{position:relative;padding-right:120px}.community-directory-cards h2{font-size:21px}.community-card-population{display:flex;align-items:baseline;gap:6px;margin-top:8px}.community-card-population small{color:#617984;font-size:11px;font-weight:800;text-transform:uppercase}.community-card-population strong{color:#36738f;font-size:27px;line-height:1}.community-card-population span{color:#718087;font-size:11px}.community-card-actions{top:0!important;right:0!important}.community-card-actions button{width:34px!important;height:34px!important}.community-card-bottom{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) 82px;gap:5px;margin-top:9px}.community-card-bottom>span{display:grid;gap:3px;min-width:0;padding:7px 8px;border-radius:7px;background:#f0f5f7}.community-card-bottom small{color:#6c7e86;font-size:9px}.community-card-bottom strong{overflow:hidden;color:#314b56;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.community-card-bottom .community-card-details{position:static;width:auto;min-height:100%;padding:0 8px;font-size:11px}.community-market-layer-band{display:grid;gap:3px;margin:5px -1px;padding:8px 5px;border-block:1px solid #bfd4dd;background:#eaf3f7}.community-market-layer-band>small{padding:0 5px 3px;color:#4d7d92;font-size:8px;font-weight:850;letter-spacing:.09em}.community-market-layer-band>button{min-height:32px;padding:0 8px;border:0;border-radius:7px;background:transparent;color:#506b77;font-size:11px;font-weight:750;text-align:left;cursor:pointer}.community-market-layer-band>button:hover{background:#dcecf2}.community-market-layer-band>button.active{background:#5b8fa7;color:#fff}
.community-expanded-content .chart-suite{margin-top:22px}.community-expanded-content .profile-chart-grid,.community-expanded-content .secondary-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.community-expanded-schools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.community-expanded-schools a{display:grid;gap:4px;padding:12px;border:1px solid #d7e2e6;border-radius:9px;background:#f3f7f8;color:#304b57;text-decoration:none}.community-expanded-schools strong{font-size:13px}.community-expanded-schools span{color:#708087;font-size:10px}.community-expanded-loading{display:grid;place-items:center;min-height:260px;color:#607680;font-size:15px}
@media(max-width:1000px){.community-card-bottom{grid-template-columns:repeat(3,minmax(0,1fr)) 82px}.community-expanded-content .profile-chart-grid,.community-expanded-content .secondary-chart-grid{grid-template-columns:1fr}.community-expanded-schools{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.community-directory-cards .school-card-body{padding-right:0}.community-card-actions{position:static!important;margin-top:8px!important}.community-card-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.community-card-bottom .community-card-details{min-height:34px}.community-expanded-schools{grid-template-columns:1fr}}
.community-data-loading{display:grid;place-items:center;min-height:240px;padding:24px;color:#527485;font-size:15px;font-weight:750;text-align:center}
.community-card-bottom .community-card-details{grid-column:auto!important}

/* Unified layer bands and one-step typography lift. */
.community-core-layer-band,.community-market-layer-band{display:grid;gap:3px;margin:0 -1px;padding:8px 5px;border-block:1px solid #bfd4dd;background:#eaf3f7}.community-core-layer-band>small,.community-market-layer-band>small{padding:0 5px 4px;color:#4d7d92;font-size:10px;font-weight:850;letter-spacing:.09em}.community-core-layer-band>button,.community-market-layer-band>button{min-height:36px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#486775;font-size:13px;font-weight:750;text-align:left;cursor:pointer}.community-core-layer-band>button:hover,.community-market-layer-band>button:hover{background:#dcecf2}.community-core-layer-band>button.active,.community-market-layer-band>button.active{background:#5b8fa7;color:#fff}.community-layer-toolbar{font-size:13px}.community-layer-menu>button{min-height:38px;font-size:13px}.community-layer-menu>div button{min-height:37px;font-size:13px}.school-filter-heading>span{font-size:14px}.school-filter-heading>button{font-size:12px}.community-filter-panel legend{font-size:12px}.community-filter-panel .school-search input{font-size:14px}.community-sector-filter button{font-size:12px}.school-directory-count{font-size:12px}.school-directory-count strong{font-size:14px}.community-directory-cards .school-card-kickers>small{font-size:11px}.community-directory-cards h2{font-size:23px}.community-card-zh-name{font-size:12px}.community-card-population small{font-size:12px}.community-card-population strong{font-size:30px}.community-card-population span{font-size:12px}.community-card-bottom small{font-size:10px}.community-card-bottom strong{font-size:13px}.community-card-bottom .community-card-details{font-size:12px}.community-directory-legend>strong{font-size:15px}.community-legend-scale b{font-size:9px}.community-directory-legend>small,.community-directory-legend>span{font-size:11px}.community-map-profile h2{font-size:37px!important}.community-layer-reading span{font-size:12px}.community-layer-reading strong{font-size:32px}.community-layer-reading small{font-size:12px}.community-layer-related span{font-size:10px}.community-layer-related strong{font-size:15px}
@media(min-width:1001px){.community-layer-toolbar>button,.community-layer-menu>button{font-size:13px}.community-layer-toolbar{width:174px}.community-directory-legend{left:200px}}

.community-directory-map.profile-expanded .community-layer-toolbar,.community-directory-map.profile-expanded .community-directory-legend{opacity:0;pointer-events:none}.community-map-profile.expanded{left:50%!important;right:auto!important;width:min(1180px,calc(100% - 24px))!important;translate:-50% 0!important}.community-map-profile.expanded .community-profile-layout{max-width:720px}.community-map-profile.expanded .community-expanded-content{max-width:1100px;margin-inline:auto}
@media(max-width:1000px){.community-map-profile.expanded{left:8px!important;right:8px!important;width:auto!important;translate:none!important}}

/* Share the school finder geometry and restore the detail-page map composition. */
@media(min-width:1001px){.community-directory-shell{grid-template-columns:680px minmax(0,1fr)}.community-map-profile.expanded{left:50%!important;right:auto!important;width:min(1338px,calc(100% - 24px))!important;translate:-50% 0!important}}
.community-map-profile.expanded{position:fixed!important;inset:82px 16px 16px!important;width:auto!important;max-height:none!important;padding:22px!important;translate:none!important;overflow:auto}.community-map-profile.expanded .community-expanded-content{max-width:none!important;margin-inline:0!important}.community-map-profile.expanded .community-expanded-overview{grid-template-columns:minmax(360px,.72fr) minmax(620px,1.28fr);gap:22px}.community-map-profile.expanded .community-market-row{grid-template-columns:minmax(0,1.55fr) minmax(390px,.75fr)}@media(max-width:1000px){.community-map-profile.expanded{inset:70px 8px 8px!important}.community-map-profile.expanded .community-expanded-overview,.community-map-profile.expanded .community-market-row{grid-template-columns:1fr}}
.community-expanded-overview{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(480px,1.2fr);align-items:center;gap:30px;margin-bottom:24px}.community-expanded-overview>div>p{margin:0;color:#4f8299;font-size:11px;font-weight:850;letter-spacing:.12em}.community-expanded-overview>div>h3{margin:8px 0;color:#283d47;font-size:38px}.community-expanded-overview>div>span{color:#667a83;font-size:14px}.community-expanded-overview .community-map-island{height:320px;min-height:320px;width:100%;margin:0}
@media(max-width:900px){.community-expanded-overview{grid-template-columns:1fr}.community-expanded-overview .community-map-island{height:280px;min-height:280px}}

@media(min-width:761px){.community-sector-filter{display:flex;max-width:none;flex-wrap:nowrap;overflow:visible;padding-bottom:2px}.community-sector-filter button{flex:0 0 auto;padding-inline:10px}}
.community-card-actions{z-index:12}.community-card-actions .shared-share-panel{position:absolute;z-index:30;right:0;top:calc(100% + 8px);width:360px}.community-expanded-close{position:sticky;z-index:20;top:0;display:grid;place-items:center;width:38px;height:38px;margin:0 0 -38px auto;border:1px solid #cbdbe2;border-radius:9px;background:#f7fbfc;color:#477b92;cursor:pointer}
.community-filter-panel.market-mode{display:block!important}.community-filter-panel.market-mode .school-search{width:100%}.community-filter-panel.market-mode fieldset{margin-top:12px}.community-filter-panel.market-mode .community-sector-filter{display:flex;max-width:none;flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px}.community-filter-panel.market-mode .community-sector-filter button{flex:0 0 auto;justify-content:center;min-height:40px;padding-inline:12px;white-space:nowrap}.community-market-count{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px}.community-market-count>label{display:flex;align-items:center;gap:7px;color:#65747b;font-size:14px}.community-market-count select{min-height:36px;max-width:178px;padding:0 28px 0 9px;border:1px solid #c8d8df;border-radius:8px;background:#f7fafb;color:#314852;font-size:14px;font-weight:750}.community-finder-fullscreen .community-core-layer-band{font-size:14px}@media(max-width:620px){.community-market-count{align-items:flex-start;flex-direction:column}.community-market-count select{max-width:none}}
.community-market-period-filter .school-filter-chips{display:flex;flex-wrap:nowrap;gap:5px}.community-market-period-filter button{flex:1 1 auto;justify-content:center;min-height:38px!important;padding-inline:8px!important;white-space:nowrap}.community-price-layer-band{border-color:#e8c69f!important;background:#fbf1e6!important}.community-price-layer-band>small{color:#a75b2d!important}.community-price-layer-band>button:hover{background:#f4dfcb!important}.community-price-layer-band>button.active{background:#c66d37!important;color:#fff!important}.community-signal-layer-band{margin-top:5px!important}
.community-signal-layer-band>button.layer-relativeActivity.active{background:#398858!important;color:#fff!important}.community-signal-layer-band>button.layer-daysOnMarket.active{background:#4f88a4!important;color:#fff!important}
.community-directory-cards article:not(.market-card-mode){min-height:148px!important}.community-card-title-row{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 12px;margin-top:4px}.community-card-title-row h2{margin:0}.community-card-title-row>span{color:#6b7d85;font-size:16px;white-space:nowrap}.community-card-title-row>span strong{color:#36738f;font-size:19px}.community-card-title-row+.community-card-zh-name{margin-top:2px}.community-directory-cards article:not(.market-card-mode) .community-card-bottom{margin-top:7px}
.community-search-combobox{position:relative;z-index:20}.community-search-combobox .school-search{width:100%}.community-address-suggestions{position:absolute;z-index:40;left:0;right:0;top:calc(100% + 6px);overflow:hidden;border:1px solid #bfd3dc;border-radius:11px;background:#fff;box-shadow:0 16px 34px rgba(40,66,78,.18)}.community-address-suggestions button{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 12px;border:0;border-bottom:1px solid #e4ecef;background:#fff;color:#4f88a4;text-align:left;cursor:pointer}.community-address-suggestions button:last-child{border-bottom:0}.community-address-suggestions button:hover,.community-address-suggestions button.active{background:#edf6f9}.community-address-suggestions button:focus-visible{outline:2px solid #4f88a4;outline-offset:-3px}.community-address-suggestions button>span{display:grid;min-width:0;gap:2px}.community-address-suggestions strong{overflow:hidden;color:#294854;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.community-address-suggestions small{color:#6c7e86;font-size:14px}.community-address-suggestions p{margin:0;padding:14px;color:#607680;font-size:14px}
.community-map-profile.expanded{left:16px!important;right:16px!important;width:auto!important;transform:none!important}
