:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20343a;background:#edf3f1;--ink:#20343a;--muted:#637b7b;--accent:#0b7668;--line:#dce6e3;font-synthesis:none}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{display:flex;flex-direction:column}button,input{font:inherit;color:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #29a698;outline-offset:2px}a{color:#126e68}button:disabled{opacity:.5}.top{height:66px;flex:none;background:#14363b;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:12px}.brand{display:flex;align-items:center;gap:11px}.mark{width:37px;height:37px;color:#93dec5;flex:none}.mark svg{width:100%;height:100%}h1{margin:0;font-size:21px;line-height:1.1;letter-spacing:-.6px}.subbrand{font-size:10px;color:#9dc9c2;letter-spacing:1.65px;font-weight:700;margin-top:5px}.subbrand span{margin:0 3px}.header-summary{font-size:13px;color:#d9f0ec;white-space:nowrap}.header-summary b{color:white;font-size:18px}.version{font:11px ui-monospace,monospace;margin-left:12px;color:#a0bcb9}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(290px,350px) minmax(0,1fr);overflow:hidden}.side{min-height:0;display:flex;flex-direction:column;background:#fff;border-right:1px solid #c8d9d5;z-index:2;overflow:hidden}.sidehead{padding:19px 16px 13px}.side-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.side-title h2{font-size:19px;letter-spacing:-.45px;margin:0 0 12px;font-weight:700}.search{display:flex;align-items:center;gap:9px;border:1px solid #c3d8d2;border-radius:10px;padding:0 13px;background:#f7fbf8;height:47px}.search:focus-within{border-color:#179e87;box-shadow:0 0 0 2px #27a68d22}.search svg{width:19px;color:#527c78;flex:none}.search input{min-width:0;width:100%;border:0;background:none;outline:none;padding:0;font-size:16px}.search input:focus-visible{outline:none}.search button{height:36px;min-width:30px;border:0;background:none;font-size:25px;line-height:1;color:#507673}.browse-content{display:flex;flex-direction:column;min-height:0;flex:1}.tabs{display:flex;padding:4px;margin:0 16px 10px;gap:4px;background:#ecf3f0;border-radius:9px}.tabs button{min-width:0;flex:1;border:0;background:none;border-radius:6px;padding:10px 4px;font-size:13px;font-weight:650;color:#4e6868}.tabs button.active{background:white;color:#0e695e;box-shadow:0 1px 4px #163a3020}.resultbar{display:flex;justify-content:space-between;align-items:center;padding:9px 17px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.resultbar button{background:none;border:0;color:var(--accent);font-size:13px}.directory{overflow:auto;min-height:75px;flex:1;overscroll-behavior:contain}.entry{width:100%;display:flex;text-align:left;align-items:center;gap:10px;padding:13px 16px;background:white;border:0;border-bottom:1px solid #edf3f1;min-height:58px}.entry:hover{background:#f2f9f5}.entry.selected{background:#e6f4ed;box-shadow:inset 3px 0 #168577}.entry .label{flex:1;min-width:0}.entry b{font-size:15px;font-weight:650;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entry small{font-size:12px;color:var(--muted);display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chev{font-size:22px;color:#9cb1b0}.kind,.swatch{width:11px;height:11px;border-radius:3px;flex:none;display:inline-block}.kind.upper,.swatch.upper{background:#be8442}.kind.lower,.swatch.lower{background:#5aa79c}.kind.single,.swatch.single{background:#6387bd}.kind.district,.swatch.district{background:#9daab3}.sidefoot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:13px 17px;color:var(--muted);font-size:13px}.maparea{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}.mapwrap{position:relative;flex:1;min-height:0;overflow:hidden;background:#dae7e7}#map{position:absolute;inset:0;background:#dce8e9;z-index:0}.map-toolbar{position:absolute;top:13px;left:13px;right:13px;display:flex;justify-content:space-between;gap:8px;z-index:500;pointer-events:none}.map-toolbar>*{pointer-events:auto}.mapactions{display:flex;background:white;border:1px solid #d3e0dc;box-shadow:0 2px 9px #213f3625;border-radius:9px;overflow:hidden}.mapactions button{border:0;background:#fff;min-height:43px;padding:0 15px;font-size:14px;font-weight:650;border-right:1px solid #e5efec}.mapactions button:last-child{border:0}.mapactions button:active,.mapactions button:hover{background:#eaf5f0}.layers-button{display:flex;align-items:center;gap:7px;border:1px solid #d3e0dc;background:white;font-size:14px;font-weight:700;min-height:43px;border-radius:9px;padding:0 13px;box-shadow:0 2px 9px #213f3625}.layers-button svg{width:20px;height:20px;color:#1b7167}.layers-button[aria-expanded=true]{background:#e6f4ed}.layers{position:absolute;top:66px;right:13px;width:252px;background:white;border:1px solid #d2e0df;border-radius:10px;z-index:510;box-shadow:0 4px 17px #29484330;padding:12px 14px}.layer-title{display:flex;justify-content:space-between;align-items:center;font-size:15px;margin-bottom:4px}.layer-title button{border:0;background:transparent;font-size:24px;color:#56716f;line-height:1;min-width:35px;min-height:35px}.layers label{display:flex;align-items:center;gap:9px;padding:10px 0;font-size:14px;cursor:pointer;min-height:42px}.layers input{accent-color:#168575;cursor:pointer;margin:0;flex:none;width:18px;height:18px}.layers small{margin-left:auto;color:#61777e;font-size:12px}.line{border-top:1px solid var(--line);margin:5px 0}.layer-note{font-size:12px;color:#637b7b;margin:6px 0 3px;line-height:1.4}.map-legend{position:absolute;left:12px;bottom:24px;z-index:450;background:#fffffff5;padding:8px 12px;border-radius:7px;display:flex;flex-wrap:wrap;gap:9px 14px;box-shadow:0 1px 5px #283f3920;pointer-events:none}.map-legend span{display:flex;align-items:center;gap:5px;font-size:12px;color:#4a6365}.map-hint{position:absolute;left:13px;top:66px;z-index:450;background:#fffffff0;color:#405b5b;border-radius:6px;padding:6px 9px;font-size:12px;max-width:calc(100% - 26px);pointer-events:none}.mapfooter{padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:35px;background:white;border-top:1px solid #d4e1de;color:#61777e;font-size:12px}.mapfooter button{border:0;background:none;color:#0c7264;font-weight:650;font-size:12px;white-space:nowrap;padding:5px}.profile{padding:13px 16px;background:#f2f9f5;border-top:1px solid var(--line);border-bottom:1px solid var(--line);max-height:45%;overflow:auto;overscroll-behavior:contain}.profiletop{display:flex;justify-content:space-between;align-items:center;gap:10px}.profiletop button{background:none;border:0;font-size:25px;line-height:1;min-width:34px;min-height:34px;color:#4e6f6a}.profile h4{font-size:21px;letter-spacing:-.5px;margin:2px 0 5px;line-height:1.2}.profile .meta{font-size:11px;letter-spacing:.75px;font-weight:750;text-transform:uppercase;color:#41756d}.profile .desc{font-size:13px;color:var(--muted);margin:5px 0;line-height:1.45}.profilebuttons{display:flex;gap:8px;margin:10px 0}.profilebuttons button{flex:1;border:1px solid #c7dcd5;background:white;border-radius:8px;min-height:42px;font-size:13px;font-weight:700}.profilebuttons button.saved{background:#f1d27f;border-color:#e5c36c}.relations{padding:8px 0;border-top:1px solid #d4e7dd}.relations b{font-size:11px;letter-spacing:.65px;text-transform:uppercase;color:#567970}.relation{border:0;background:none;color:#0b6c5d;text-align:left;font-size:14px;padding:9px 0;display:block;width:100%;text-decoration:underline;text-underline-offset:3px}.load{position:absolute;z-index:600;inset:0;display:grid;align-content:center;justify-items:center;gap:12px;background:#dfececf2;color:#244b4a}.load small{color:#5b7374}.spinner{width:35px;height:35px;border:3px solid #bed5d3;border-top-color:#168575;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}[hidden]{display:none!important}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.empty{padding:24px 17px;color:var(--muted);font-size:14px}.leaflet-container{font-family:inherit}.leaflet-tooltip{font-family:inherit;border:none;border-radius:5px;font-size:13px;padding:7px 10px}.leaflet-top.leaflet-left{top:110px;left:3px}.leaflet-touch .leaflet-control-zoom a,.leaflet-control-zoom a{width:39px!important;height:39px!important;line-height:39px!important}.leaflet-control-attribution{font-size:10px!important}.sheet-handle,.browse-toggle{display:none}dialog{border:1px solid #d0e0da;border-radius:14px;padding:22px;max-width:min(94vw,550px);max-height:90dvh;color:var(--ink);box-shadow:0 20px 70px #152f3340}dialog::backdrop{background:#172f32aa}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-head h2{margin:0;font-size:22px}.dialog-head button{font-size:27px;border:0;background:none;min-width:35px;min-height:35px}.dialog-head+p,dialog p{font-size:15px;color:var(--muted);line-height:1.55}.about-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.about-stats div{padding:10px 6px;background:#f0f5f3;border-radius:6px;text-align:center}.about-stats b,.about-stats span{display:block}.about-stats b{font-size:23px}.about-stats span{font-size:11px;color:var(--muted)}dialog h3{font-size:16px;margin:19px 0 3px}
@media(max-width:740px){.top{height:59px;padding:0 12px}.brand{gap:8px}.mark{width:31px;height:31px}h1{font-size:18px}.subbrand{font-size:9px;letter-spacing:1.1px;margin-top:3px}.header-summary{font-size:12px}.header-summary b{font-size:16px}.version{display:none}.workspace{display:flex;flex-direction:column;min-height:0}.maparea{flex:1;min-height:160px;order:-1}.side{flex:none;border:0;border-top:1px solid #ccd9d5;box-shadow:0 -3px 16px #21473b14;border-radius:15px 15px 0 0;margin-top:-3px;max-height:57dvh;padding-bottom:env(safe-area-inset-bottom);overflow:hidden}.sheet-handle{display:block;width:34px;height:4px;border-radius:8px;background:#c3d4cf;align-self:center;margin:7px 0 0;flex:none}.sidehead{padding:7px 12px 11px;flex:none}.side-title h2{font-size:15px;margin:0}.browse-toggle{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:700;border:0;background:transparent;color:#146c60;padding:8px 0 8px 12px;min-height:35px}.browse-toggle span{font-size:18px;line-height:1}.side.expanded .browse-toggle span{transform:rotate(180deg)}.search{height:45px;padding:0 11px;border-radius:8px;margin-top:5px}.browse-content{display:none}.side.expanded .browse-content{display:flex}.side.expanded .profile{display:none}.tabs{margin:0 12px 7px;flex:none}.tabs button{padding:10px 3px;font-size:13px}.resultbar{padding:7px 12px;flex:none}.directory{max-height:29dvh;min-height:65px}.entry{padding:11px 12px;min-height:54px}.sidefoot{padding:8px 12px;font-size:12px;flex:none}.profile{max-height:34dvh;padding:10px 12px;min-height:0;border-bottom:0}.profile h4{font-size:19px}.profile .desc{font-size:12px}.profilebuttons{margin:7px 0}.profilebuttons button{min-height:42px}.relation{padding:8px 0}.map-toolbar{left:9px;right:9px;top:9px}.mapactions button{font-size:13px;padding:0 12px;min-height:42px}.layers-button{min-height:42px;padding:0 10px;font-size:13px}.layers{top:57px;right:9px;width:min(252px,calc(100% - 18px));max-height:calc(100% - 65px);overflow:auto}.map-hint{top:59px;left:9px;font-size:11px;max-width:calc(100% - 18px)}.map-legend{left:8px;bottom:20px;gap:6px 9px;padding:6px 8px;max-width:calc(100% - 16px)}.map-legend span{font-size:10px}.map-legend .swatch{width:8px;height:8px}.mapfooter{padding:3px 9px;min-height:29px;font-size:10px}.mapfooter button{font-size:11px;padding:4px}.leaflet-top.leaflet-left{top:88px;left:0}.leaflet-control-zoom a{width:36px!important;height:36px!important;line-height:36px!important}dialog{padding:16px}}@media(max-width:365px){.mapactions button{padding:0 9px}.layers-button{padding:0 8px}.map-legend{gap:5px 7px}.header-summary{font-size:10px}.header-summary b{font-size:14px}}
.layers{width:min(320px,calc(100% - 24px));max-height:calc(100% - 80px);overflow:auto;overscroll-behavior:contain}.layers .layer-section{font-size:11px;letter-spacing:.75px;font-weight:800;text-transform:uppercase;color:#66817a;padding:8px 0 4px}.layers .select-row{justify-content:space-between;gap:6px;min-height:36px;padding:5px 0}.layers select{font:inherit;max-width:165px;background:#f3f7f4;border:1px solid #cadad3;border-radius:6px;padding:7px 5px;color:var(--ink)}.layers .layer-status{display:block;margin:-5px 0 5px 28px;font-size:11px;color:#61777e}.road-swatch{width:13px;height:4px;border-radius:2px;flex:none;display:inline-block}.road-details{padding:4px 0 8px 27px;font-size:13px}.road-details summary,.candidates summary{cursor:pointer;color:#126e68;font-weight:650;padding:6px 0}.road-details label{padding:7px 0;font-size:12px;min-height:33px}.hydro{background:#82c4ef}.wetland{background:#768c62}.airport{background:#695ca5}.utility{background:#b772b5}.election-card{border:1px solid #cde1d5;background:#fff;border-radius:9px;padding:9px;margin-top:8px}.election-card>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:13px}.election-card>summary:before{content:'▾';color:#618778}.election-card>summary strong{margin-left:auto;color:#176c63;font-size:18px}.election-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}.election-stats div{padding:8px;background:#f3f7f5;border-radius:6px}.election-stats small{display:block;color:#5d7973;font-size:11px}.election-stats b{font-size:17px}.candidate{border-top:1px solid #e2ece7;padding:7px 0}.candidate b,.candidate small{display:block;font-size:12px}.candidate small{font-size:11px;color:#668078;margin-top:3px}.source-note{font-size:10px;color:#6e8580;margin-top:7px}.leaflet-boundaries-pane,.leaflet-boundaries-pane *, .leaflet-outlines-pane,.leaflet-outlines-pane *, .leaflet-selection-pane,.leaflet-selection-pane *, .leaflet-hydro-pane,.leaflet-hydro-pane *, .leaflet-roads-pane,.leaflet-roads-pane *, .leaflet-extra-pane,.leaflet-extra-pane *{pointer-events:none!important}.overlay-hint{position:absolute;top:101px;right:13px;z-index:450;background:#fffffff0;padding:5px 8px;font-size:11px;color:#536c63;border-radius:5px;pointer-events:none}@media(max-width:740px){.layers{top:57px;max-height:calc(100% - 65px);width:min(300px,calc(100% - 18px))}.layers label{min-height:37px;padding:8px 0}.layers .select-row{min-height:38px}.overlay-hint{top:90px;right:9px}.profile{max-height:39dvh}}
.access-settings{padding:9px;background:#f4f8f5;border-radius:8px;margin:6px 0}.access-settings .select-row{font-size:12px}.access-grid{display:flex;gap:6px;margin-top:8px}.access-stat{flex:1;min-width:0;background:white;border:1px solid #dce7df;border-radius:6px;padding:7px}.access-stat span,.access-stat b,.access-stat small{display:block}.access-stat span{font-size:11px;color:#71827d}.access-stat b{font-size:19px;color:#1f6a5c}.access-stat small{font-size:10px;color:#69817b;margin-top:2px}
/* The Ontario provincial outline is the only basemap. Layers are opt-in. */
.mapwrap,#map,.leaflet-container{background:#f8faf8}
.map-legend .outline-province,.map-legend .outline-upper,.map-legend .outline-lower,.map-legend .outline-single,.map-legend .outline-district{width:15px;height:0;border-radius:0;background:none;border-top:2px solid}
.map-legend .outline-province{border-color:#3e575b}
.map-legend .outline-upper{border-color:#ad7137}
.map-legend .outline-lower{border-color:#318e80}
.map-legend .outline-single{border-color:#527cb5}
.map-legend .outline-district{border-color:#718795;border-top-style:dashed}
.leaflet-provinceOutline-pane,.leaflet-provinceOutline-pane *{pointer-events:none!important}
.reset-layers{width:100%;min-height:42px;padding:9px;border:1px solid #c8ddd6;background:#edf6f1;border-radius:8px;color:#176c63;font-weight:700;font-size:13px}
.reset-layers:hover{background:#e0eee7}
.layer-intro{margin:5px 0 10px;line-height:1.4}
/* Selection replaces the directory, rather than squeezing it below a short profile. */
.side.inspecting .browse-content{display:none}
.side.inspecting .profile{display:block;flex:1;max-height:none;min-height:0;background:#fff;border-bottom:0;border-top:1px solid var(--line);padding:17px 16px 22px}
.side:not(.inspecting) .profile{display:none}
.side.inspecting .sidehead{padding-bottom:12px}
.inspector-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}
.inspector-nav button{background:#edf5f1;border:1px solid #cfe1da;padding:8px 10px;border-radius:7px;color:#15675e;font-size:12px;font-weight:750}
.inspector-nav span,.section-kicker{font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:#68817a;font-weight:800}
.side.inspecting .profile h4{font-size:25px;margin:6px 0 7px;line-height:1.15}
.side.inspecting .profile .meta{display:flex;align-items:center;gap:6px}
.inspector-section{border-top:1px solid var(--line);padding:12px 0 5px;margin-top:10px}
.inspector-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.inspector-stats>div{border:1px solid #dceae4;border-radius:9px;background:#f5f9f6;padding:11px 9px}
.inspector-stats small{font-size:11px;display:block;color:#627c74;margin-bottom:4px}
.inspector-stats strong{display:block;font-size:19px;color:#215d56;letter-spacing:-.3px}
.inspector-stats em{font-style:normal;font-size:11px;color:#617b74}
.zoom-level{font-size:11px;color:var(--muted);margin-left:auto;font-weight:650;font-variant-numeric:tabular-nums}
.road-details .class-zoom{font-size:10px;white-space:nowrap;color:#66817a;margin-left:auto}
.road-details label.not-at-zoom span{opacity:.58}
.leaflet-waterOverview-pane,.leaflet-waterOverview-pane *,.leaflet-roadDetail-pane,.leaflet-roadDetail-pane *{pointer-events:none!important}
@media(max-width:740px){.side.inspecting{max-height:60dvh}.side.inspecting .profile{max-height:44dvh;padding:11px 13px 16px}.side.inspecting .profile h4{font-size:21px}.inspector-nav{margin-bottom:10px}.inspector-stats>div{padding:8px}.inspector-stats strong{font-size:17px}}

.leaflet-selectionFill-pane,.leaflet-selectionFill-pane *{pointer-events:none!important}
.header-summary{display:flex;align-items:center;gap:9px}.compare-open{border:1px solid #6b938a;color:#ecfff8;background:#28545a;border-radius:8px;padding:8px 12px;font-size:12px;cursor:pointer;font-weight:750;white-space:nowrap}.compare-open span{background:#d5e9df;color:#225851;padding:2px 6px;border-radius:9px;margin-left:3px}
.compare-dialog{max-width:min(1040px,calc(100vw - 28px));width:1000px;max-height:88dvh;overflow:auto}.compare-dialog .dialog-head{align-items:center}.compare-dialog h2{margin:2px 0 0}.compare-intro{color:var(--muted);font-size:13px;margin:8px 0 15px}.compare-add{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.compare-add label{font-size:12px;font-weight:700}.compare-add select{min-width:0;flex:1;max-width:640px;border:1px solid #c7dcd5;background:#f5f9f6;border-radius:7px;padding:9px 10px;font:inherit}.compare-add button,.compare-actions button{border:1px solid #bed6cd;background:#e6f2ec;color:#155d55;border-radius:7px;padding:10px 13px;font-weight:750;cursor:pointer}.compare-add button:disabled,.compare-actions button:disabled{opacity:.4;cursor:default}.compare-chips{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}.compare-chip{display:flex;align-items:center;gap:6px;border:1px solid #dce8e3;background:#f5f9f6;border-radius:7px;padding:6px 8px;font-size:12px}.compare-chip i{display:inline-block;width:10px;height:10px;border-radius:3px}.compare-chip button{background:none;border:0;font-size:20px;line-height:1;cursor:pointer;color:#4d6c63}.compare-controls{display:flex;gap:12px;flex-wrap:wrap;margin:9px 0}.compare-controls label{font-size:12px;display:flex;align-items:center;gap:6px}.compare-controls select{border:1px solid #ccded6;background:#f7faf8;border-radius:6px;padding:7px;font-size:12px;max-width:100%}.compare-table-wrap{overflow:auto;border:1px solid #dae8e2;border-radius:9px;max-height:48dvh}.compare-table{border-collapse:collapse;width:100%;font-size:13px;text-align:right}.compare-table th,.compare-table td{border-bottom:1px solid #e0ebe6;padding:11px 10px;min-width:112px;vertical-align:middle}.compare-table th{background:#edf5f0;color:#265d55;font-size:12px;position:sticky;top:0;z-index:1;white-space:normal;text-align:right}.compare-table th:first-child,.compare-table td:first-child{position:sticky;left:0;text-align:left;background:#f6f9f7;min-width:135px;font-weight:700;z-index:2}.compare-table th:first-child{z-index:3}.compare-table td{font-variant-numeric:tabular-nums}.compare-table th small{display:block;color:#71867d;font-weight:500;font-size:10px;margin-top:4px}.compare-note{font-size:11px;line-height:1.5;color:#678279;margin:10px 0}.compare-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.compare-empty{padding:25px;text-align:center;color:#627c74;font-size:14px}.profilebuttons{flex-wrap:wrap}.profilebuttons .compare-profile{flex-basis:100%;background:#e9f4ef;color:#17665c}.profilebuttons .compare-profile.in-compare{background:#d5e9de}.leaflet-compareOutlines-pane,.leaflet-compareOutlines-pane *,.leaflet-places-pane,.leaflet-places-pane *{pointer-events:none!important}
@media(max-width:740px){.header-summary{gap:6px}.header-count{display:none}.compare-open{font-size:11px;padding:7px 8px}.compare-dialog{max-width:calc(100vw - 12px);padding:14px;max-height:90dvh}.compare-add label{width:100%}.compare-table th,.compare-table td{min-width:100px;padding:9px 7px;font-size:12px}.compare-table th:first-child,.compare-table td:first-child{min-width:110px}.compare-controls label{width:100%;justify-content:space-between}.compare-controls select{max-width:66%}}
.community-label{background:transparent;border:0;pointer-events:none!important}.community-label span{display:inline-block;white-space:nowrap;transform:translate(-50%,-50%);color:#334b50;font-size:11px;font-weight:650;line-height:1.15;text-shadow:1px 0 #fff,-1px 0 #fff,0 1px #fff,0 -1px #fff,0 0 4px #fff}.community-label .major-place{font-size:13px;font-weight:800;color:#163b43}

/* Administrative lines are achromatic; GIS data owns the colour families. */
.kind.upper,.swatch.upper{background:var(--boundary-upper,#303030)}
.kind.lower,.swatch.lower{background:var(--boundary-lower,#626262)}
.kind.single,.swatch.single{background:var(--boundary-single,#444444)}
.kind.district,.swatch.district{background:var(--boundary-district,#858585)}
.map-legend .outline-province,.map-legend .outline-upper,.map-legend .outline-lower,.map-legend .outline-single,.map-legend .outline-district,.layers [data-layer]+.swatch{border:0;width:20px;height:3px;border-radius:0;flex:none}
.map-legend .outline-province{background:var(--boundary-pattern-province,#151515);height:3px}
.map-legend .outline-upper,.layers [data-layer="upper"]+.swatch{background:var(--boundary-pattern-upper,#303030);height:3px}
.map-legend .outline-lower,.layers [data-layer="lower"]+.swatch{background:var(--boundary-pattern-lower,#626262);height:2px}
.map-legend .outline-single,.layers [data-layer="single"]+.swatch{background:var(--boundary-pattern-single,#444444);height:2px}
.map-legend .outline-district,.layers [data-layer="district"]+.swatch{background:var(--boundary-pattern-district,#858585);height:2px}.mobile-profile-action{display:none}
.compare-number{background:#fff;color:#151515;border:2px solid #151515;border-radius:50%;font-size:11px;font-weight:800;display:inline-grid;place-items:center;width:19px;height:19px;box-shadow:0 1px 3px #0002;flex:none}
.leaflet-marker-icon.compare-number{font-size:12px;pointer-events:none!important}

/* Small screens: map-first, one-row search, tap-to-expand profile. */
@media(max-width:740px){
 .top{height:49px;padding:0 10px;gap:6px}
 .brand{gap:6px}.mark{width:27px;height:27px}h1{font-size:16px}.subbrand{font-size:8px;letter-spacing:.8px;margin-top:2px}
 .compare-open{padding:7px 8px;min-height:34px}.header-summary{gap:5px}
 .maparea{min-height:120px}.map-toolbar{top:7px;left:7px;right:7px;gap:5px}
 .mapactions button{font-size:12px;min-height:38px;padding:0 10px}.layers-button{min-height:38px;font-size:12px;padding:0 9px}.layers-button svg{width:17px;height:17px}
 .map-hint{top:50px;left:7px;padding:4px 7px;font-size:10px}.workspace:has(.side.inspecting) .map-hint{display:none}
 .leaflet-top.leaflet-left{top:72px;left:0}.leaflet-control-zoom a{width:34px!important;height:34px!important;line-height:34px!important}
 .mapfooter{min-height:25px;padding:0 8px;font-size:10px}.mapfooter button{font-size:10px}
 .sheet-handle{display:none}.side{border-radius:12px 12px 0 0;max-height:48dvh}
 .sidehead{padding:7px 9px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px}
 .side-title{grid-column:2;grid-row:1}.side-title h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .search{grid-column:1;grid-row:1;margin:0;height:40px;padding:0 9px;gap:7px}.search input{font-size:16px}.search svg{width:16px}
 .browse-toggle{padding:0 5px;font-size:12px;min-height:40px;white-space:nowrap}.browse-toggle span{font-size:15px}
 .tabs{margin:0 9px 4px;padding:3px;gap:2px}.tabs button{padding:7px 3px;min-height:34px;font-size:12px}.resultbar{padding:5px 10px;font-size:11px}
 .directory{max-height:24dvh;min-height:54px}.entry{min-height:45px;padding:7px 10px;gap:8px}.entry b{font-size:13px}.entry small{font-size:11px;margin-top:2px}.sidefoot{padding:5px 10px;font-size:11px}
 .side.inspecting{max-height:27dvh}.side.inspecting .sidehead{display:none}
 .side.inspecting .profile{max-height:27dvh;padding:7px 10px 8px;overflow:auto;border:0;flex:none}
 .inspector-nav{gap:5px;margin:0 0 4px}.inspector-nav button{font-size:11px;min-height:34px;padding:5px 8px}.inspector-nav #closeProfile{margin-right:auto}
 .inspector-nav .desktop-area-label{display:none}.mobile-profile-action{display:inline-flex;align-items:center;justify-content:center}.inspector-nav #profileDismiss{font-size:20px;min-width:34px;padding:0 4px}
 .side.inspecting .profile h4{font-size:18px;margin:3px 0 4px;line-height:1.15}.profile .meta{font-size:9px;letter-spacing:.4px}
 .side.inspecting:not(.profile-expanded) .profile>.area-description,.side.inspecting:not(.profile-expanded) .profile>.profilebuttons,.side.inspecting:not(.profile-expanded) .profile>.relations,.side.inspecting:not(.profile-expanded) .profile>.election-card,.side.inspecting:not(.profile-expanded) .profile>.codes{display:none}
 .side.inspecting:not(.profile-expanded) .inspector-section{padding:5px 0 0;margin-top:4px}.side.inspecting:not(.profile-expanded) .section-kicker{font-size:9px;letter-spacing:.2px}
 .side.inspecting:not(.profile-expanded) .inspector-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:4px 0 0}.side.inspecting:not(.profile-expanded) .inspector-stats>div{padding:6px 4px;border-radius:6px;min-width:0}.side.inspecting:not(.profile-expanded) .inspector-stats small{font-size:9px;margin:0 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side.inspecting:not(.profile-expanded) .inspector-stats strong{font-size:clamp(11px,3.5vw,15px);white-space:nowrap;letter-spacing:-.4px}.side.inspecting:not(.profile-expanded) .inspector-stats em{font-size:8px;letter-spacing:0}
 .side.inspecting.profile-expanded{max-height:52dvh}.side.inspecting.profile-expanded .profile{max-height:52dvh;padding:8px 12px 16px}.side.inspecting.profile-expanded .inspector-nav{position:sticky;top:0;background:white;padding:2px 0 5px;z-index:3}.side.inspecting.profile-expanded .profile h4{font-size:21px}.profilebuttons{gap:5px;margin:6px 0}.profilebuttons button{font-size:11px;min-height:38px;padding:4px}
 .layers{top:51px;right:7px;max-height:calc(100% - 58px);width:min(280px,calc(100% - 14px));padding:8px 11px}.layer-title{font-size:14px;margin:0}.layers label{font-size:13px;min-height:35px;padding:6px 0}.layers .layer-status{font-size:10px;margin:0 0 3px 28px}.layers .layer-section{font-size:10px;padding:6px 0 3px}.layers .layer-intro{font-size:11px;margin:3px 0}.layers .select-row{min-height:34px}.layers select{font-size:12px;padding:6px 4px}.road-details label{min-height:32px;font-size:11px}.map-legend span{font-size:10px;gap:4px}
}
@media(max-width:365px){.mapactions button{padding:0 8px}.layers-button{padding:0 7px}.side.inspecting:not(.profile-expanded) .inspector-stats em{display:none}}
@media(max-width:740px) and (max-height:560px){.side.inspecting{max-height:36dvh}.side.inspecting .profile{max-height:36dvh}.side.inspecting.profile-expanded{max-height:56dvh}.side.inspecting.profile-expanded .profile{max-height:56dvh}}

/* Municipal debt is a thematic polygon layer, not a road/utility symbol. */
.debt-settings{background:#f9f4f7}.debt-settings .layer-note{font-size:11px;color:#655268;line-height:1.35}.debt-legend-heading{font-weight:750;flex-basis:100%;font-size:11px!important;color:#604454!important}.debt-profile{border:1px solid #e7d5e1;background:#fcf7fa;border-radius:8px;padding:9px 10px;margin:7px 0;color:#613a56}.debt-profile .section-kicker{color:#825b76;margin-bottom:5px}.debt-profile-values{display:grid;grid-template-columns:1.25fr 1fr;gap:8px}.debt-profile-values strong{display:block;font-size:19px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.debt-profile small{display:block;color:#7b6677;font-size:11px}.debt-profile>small{margin-top:5px}.debt-profile-values>div{min-width:0}
@media(max-width:740px){.side.inspecting:not(.profile-expanded) .debt-active>.inspector-section{display:none}.side.inspecting:not(.profile-expanded) .debt-profile{margin:4px 0 0;padding:5px 8px}.side.inspecting:not(.profile-expanded) .debt-profile-values strong{font-size:16px}.side.inspecting:not(.profile-expanded) .debt-profile small{font-size:10px}.side.inspecting:not(.profile-expanded) .debt-profile .section-kicker{margin-bottom:2px}.side.inspecting:not(.profile-expanded) .debt-profile>small{margin-top:2px}}

.insight-profile{border:1px solid #d1e4df;background:#f4f9f7;border-radius:9px;padding:9px 10px;margin:7px 0}.insight-profile.census-profile{border-color:#e4d9ec;background:#faf6fc}.insight-headline{font-size:24px;display:block;letter-spacing:-.5px;color:#225e55;margin:3px 0 6px}.census-profile .insight-headline{color:#684b90}.insight-cards{display:grid;grid-template-columns:1fr 1fr;gap:7px}.insight-cards>div{border:1px solid #dce6e2;border-radius:6px;background:white;padding:7px;min-width:0}.insight-cards small,.insight-profile>small{display:block;font-size:11px;color:#667a74}.insight-cards strong{display:block;font-size:15px;overflow-wrap:anywhere}.insight-profile>small{margin-top:5px}.history-section{margin:8px 0 0;border:1px solid #dce5e0;border-radius:8px;overflow:hidden;background:white;padding:8px 9px}.history-section summary{cursor:pointer;font-size:13px;font-weight:700;color:#245b52}.history-section small{display:block;color:#667a75;font-size:10px;line-height:1.35;margin:5px 0}.history-chart{margin:8px 0;display:grid;gap:3px}.history-row{position:relative;display:grid;grid-template-columns:35px 1fr;align-items:center;gap:4px;min-height:23px;padding:2px;font-size:10px;overflow:hidden}.history-row span,.history-row b{position:relative;z-index:1}.history-row b{text-align:right;font-size:11px}.history-row i{position:absolute;background:#c7e2db;height:18px;left:35px;max-width:calc(100% - 35px);border-radius:3px;z-index:0}.insight-detail{display:flex;justify-content:space-between;gap:8px;padding:6px 0;font-size:12px;border-bottom:1px solid #edf1ee}.insight-detail b{text-align:right;max-width:55%;overflow-wrap:anywhere}.arl-profile{border-top:1px solid #e7d5e1;margin-top:7px;padding-top:5px}.arl-profile strong{font-size:18px}.planning-profile a{font-size:12px}.planning-profile p{margin:6px 0}.leaflet-civicOverlays-pane .leaflet-interactive{cursor:help}
@media(max-width:740px){.side.inspecting:not(.profile-expanded) .history-section{display:none}.side.inspecting:not(.profile-expanded) .insight-profile{padding:6px 8px;margin:4px 0 0}.side.inspecting:not(.profile-expanded) .insight-headline{font-size:20px;margin:2px 0}.side.inspecting:not(.profile-expanded) .insight-cards,.side.inspecting:not(.profile-expanded) .insight-profile>small{display:none}.side.inspecting:not(.profile-expanded) .arl-profile{margin-top:3px;padding-top:3px;display:flex;justify-content:space-between;align-items:center;gap:5px}.side.inspecting:not(.profile-expanded) .arl-profile strong{font-size:14px}.side.inspecting:not(.profile-expanded) .debt-profile>small{display:none}.side.inspecting:not(.profile-expanded) .debt-profile{padding:5px 8px}}

/* Map, legend and inspector occupy separate layout tracks at every viewport size. */
:root {
  --ink:#192e36; --muted:#52666d; --line:#d8e0df; --accent:#12675c;
  color:var(--ink); background:#f7f8f5;
}
body {height:100dvh;}
.top {height:61px;background:#142f35;padding-inline:22px;border-bottom:1px solid #29484d;}
.mark {width:32px;height:32px;color:#a9e1ce;}
.brand {gap:10px;}
.brand h1 {font-size:22px;font-weight:700;letter-spacing:-.9px;}
.subbrand {font-size:10px;letter-spacing:.6px;color:#bdd1cf;font-weight:500;margin-top:2px;}
.subbrand span {opacity:.55;margin:0 2px;}
.header-summary {gap:18px;}
.header-count,.header-summary .header-count b {font-size:13px;font-weight:500;}
.version {margin:0;color:#bed0ce;border-left:1px solid #496064;padding-left:16px;}
.compare-open {display:flex;align-items:center;gap:8px;border-color:#527075;background:#23454b;color:white;font-size:12px;font-weight:600;border-radius:5px;}
.compare-open span {background:#d8eee6;color:#16453f;border-radius:4px;font-variant-numeric:tabular-nums;}
.workspace {grid-template-columns:clamp(306px,25vw,384px) minmax(0,1fr);}
.side {border-color:var(--line);}
.sidehead {padding:20px 18px 12px;}
.side-title h2 {font-weight:650;letter-spacing:-.7px;}
.search {border-color:#cdd9d6;background:#f6f8f7;border-radius:6px;height:41px;}
.search input {font-size:14px;}
.tabs {margin-inline:18px;border-radius:6px;background:#edf2f0;gap:1px;}
.tabs button {border-radius:4px;padding:7px 3px;}
.resultbar,.sidefoot {background:#f8faf9;}
.entry {padding:10px 18px;gap:11px;min-height:54px;}
.entry .kind {width:4px;height:22px;border-radius:1px;}
.entry .chev {font-weight:400;font-size:17px;}
.map-toolbar {position:relative;inset:auto;z-index:1;flex:none;align-items:center;padding:7px 16px;background:#fff;border-bottom:1px solid var(--line);pointer-events:auto;}
.extent-tools {display:flex;align-items:center;gap:11px;}
.extent-label {font-size:11px;font-weight:650;color:var(--muted);}
.mapactions {background:#f0f4f2;border:0;box-shadow:none;border-radius:5px;padding:2px;}
.mapactions button {min-height:31px;border:0;background:transparent;padding:0 12px;border-radius:4px;font-size:12px;font-weight:600;}
.mapactions button:hover,.mapactions button:focus-visible {background:#dfe9e5;}
.layers-button,.layers-button[aria-expanded=true] {background:#1c534f;color:white;border:1px solid #174b46;box-shadow:none;border-radius:5px;min-height:33px;font-size:12px;padding:0 11px;}
.layers-button:hover {background:#163c39;}
.layers-button svg {color:#d0ece3;width:16px;}
.layers {top:8px;right:12px;border-radius:7px;max-height:calc(100% - 16px);box-shadow:0 5px 24px #182f3426;}
.layers .layer-title {position:sticky;top:-12px;background:white;z-index:1;padding:4px 0;border-bottom:1px solid var(--line);}
.layer-section {color:#294b48;}
.mapwrap,#map,.leaflet-container {background:#f4f6f3;}
.leaflet-top.leaflet-left {top:0;left:2px;}
.leaflet-touch .leaflet-control-zoom {border:1px solid #ccd6d2;box-shadow:0 2px 4px #182f3410;border-radius:5px;overflow:hidden;}
.leaflet-touch .leaflet-control-zoom a,.leaflet-control-zoom a {width:33px!important;height:33px!important;line-height:33px!important;color:#2b454b;font-weight:500;}
.map-hint {top:auto;bottom:10px;left:12px;background:#fffffff2;border:1px solid #dce3df;color:#476064;font-size:11px;border-radius:4px;}
.workspace:has(.side.inspecting) .map-hint {display:none;}
.overlay-hint {top:10px;right:13px;}
.legend-dock {flex:none;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 10px;background:#fff;border-top:1px solid #c6d2cf;padding:10px 16px 12px;}
.legend-head {display:contents;}
.legend-head h2 {margin:0;grid-column:1;grid-row:1;font-size:11px;font-weight:700;letter-spacing:.65px;text-transform:uppercase;color:#42655f;padding-right:10px;border-right:1px solid #b9c9c5;}

#legendTitle {grid-row:1;grid-column:2;line-height:1.25;font-size:13px;font-weight:650;color:#263e44;}
#aboutOpen {grid-row:1;grid-column:3;border:0;background:transparent;color:var(--accent);font-size:11px;padding:3px 0 3px 5px;text-underline-offset:3px;}
#aboutOpen:hover {text-decoration:underline;}
.legend-dock .map-legend {position:static;inset:auto;max-width:none;display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;background:none;box-shadow:none;border:0;border-radius:0;padding:0;pointer-events:auto;}
#mapLegend {grid-column:1/-1;grid-row:2;}
.legend-dock .map-legend span {font-size:12px;line-height:1.35;gap:5px;color:#34494f;white-space:nowrap;font-variant-numeric:tabular-nums;}
.legend-dock .key-fill {width:16px;height:10px;box-shadow:inset 0 0 0 1px #182e3426;border-radius:2px;}
.supplemental-keys {display:flex;align-items:center;gap:18px;grid-column:1/-1;overflow:auto;padding-top:6px;border-top:1px solid #e1e7e3;scrollbar-width:thin;}
.supplemental-keys:not(:has(.map-legend:not([hidden]))) {display:none;}
.supplemental-keys .map-legend {flex:none;flex-wrap:nowrap;}
#compareLegend:not([hidden])::before {content:'Compared';font-size:11px;font-weight:650;color:#556a67;}
.supplemental-keys .road-swatch {min-width:18px;}
.side.inspecting .sidehead {padding:12px 18px;}
.side.inspecting .side-title {display:none;}
.side.inspecting .profile {padding:12px 18px 24px;}
.inspector-nav {margin:0 0 12px;}
.inspector-nav button {background:transparent;border:0;padding:4px 0;color:#35615c;font-size:12px;font-weight:600;}
.side.inspecting .profile h4 {font-size:28px;letter-spacing:-1.2px;line-height:1.08;margin:6px 0 12px;}
.profile .meta {font-size:10px;letter-spacing:.7px;color:#5b696b;font-weight:650;}
.profile .meta .swatch {width:7px;height:7px;border-radius:2px;}
.profile-buttons-row {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 15px;}
.profile-buttons-row button {border:1px solid #cfdbd6;border-radius:5px;min-height:33px;font-size:12px;font-weight:600;}
.profile-buttons-row .compare-profile {background:#f1f6f3;}
.profile-topics,.topic-option {display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:12px;color:#576c69;}
.profile-topics {border-block:1px solid var(--line);padding:9px 0;}
.profile-topics select,.topic-option select {max-width:68%;border:1px solid #cbd8d3;border-radius:4px;color:#1e3e3e;background:#fff;padding:6px 4px;font:600 12px system-ui;}
.topic-body {padding-top:5px;}
.topic-body .inspector-section:first-child {border-top:0;margin-top:0;}
.topic-option {margin:8px 0;}
.section-kicker {color:#4e6663;letter-spacing:.6px;font-weight:650;}
.inspector-stats {gap:0;border-block:1px solid var(--line);}
.inspector-stats>div {border:0;border-radius:0;background:transparent;padding:10px 0;}
.inspector-stats>div:nth-child(-n+2) {border-bottom:1px solid #e5eae7;}
.inspector-stats small {color:#576b6c;}
.inspector-stats strong {color:#203d42;font-weight:650;font-variant-numeric:tabular-nums;}
.debt-profile,.insight-profile {border-radius:5px;padding:12px;background:#fbf8fa;border:1px solid #e3d6de;border-top:3px solid #8f597b;}
.insight-profile {background:#f5f9f7;border-color:#cddfd6;border-top-color:#52796d;}
.insight-profile.census-profile {border-top-color:#7d688f;}
.debt-profile-values strong {font-size:clamp(16px,1.4vw,22px);line-height:1.3;}
.debt-profile .arl-profile {display:flex;align-items:baseline;justify-content:space-between;gap:7px;padding:7px 0 1px;}
.arl-profile strong {white-space:nowrap;font-size:16px;}
.history-section,.election-card,.service-group {border:0;border-bottom:1px solid var(--line);background:transparent;padding:0;margin:0;border-radius:0;}
.history-section>summary,.election-card>summary,.service-group>summary {padding:11px 2px;cursor:pointer;color:#254e49;font-size:13px;font-weight:650;}
.subject-note,.profile-empty {font-size:12px;line-height:1.5;color:var(--muted);}
.service-group table,.access-table {width:100%;border-collapse:collapse;font-size:12px;line-height:1.4;}
.service-group th,.service-group td,.access-table th,.access-table td {text-align:left;padding:7px 1px;border-top:1px solid #e7ede9;font-weight:400;}
.service-group td,.access-table td {text-align:right;font-weight:600;font-variant-numeric:tabular-nums;}
.service-group small {font-weight:400;color:#516561;}
.access-table th:not(:first-child) {text-align:right;}
.profile-peek {display:none;}
@media(max-width:740px) {
  .top {height:45px;padding-inline:12px;}
  .brand {gap:7px;}.mark {width:26px;height:26px;}
  .brand h1 {font-size:17px;letter-spacing:-.6px;}.subbrand {font-size:9px;}
  .compare-open {min-height:31px;padding:4px 8px;font-size:11px;}
  .maparea {min-height:0;}
  .map-toolbar {padding:3px 9px;gap:5px;}
  .extent-tools {gap:0;}.extent-label {display:none;}
  .mapactions button {min-height:32px;padding-inline:10px;font-size:12px;}
  .layers-button {min-height:33px;}
  .layers {top:4px;right:5px;max-height:calc(100% - 8px);width:min(310px,calc(100% - 10px));}
  .layers .layer-title {top:-8px;}
  .map-hint {bottom:15px;left:9px;padding:3px 6px;font-size:10px;}
  .legend-dock {padding:5px 10px 7px;gap:4px 7px;}
  .legend-head h2 {font-size:9px;letter-spacing:.5px;padding-right:7px;}
  #legendTitle {font-size:11px;}
  #aboutOpen {font-size:10px;min-height:23px;}
  .legend-dock .map-legend {gap:4px 10px;}
  .legend-dock .map-legend span {font-size:11px;line-height:1.25;}
  .legend-dock .key-fill {width:12px;height:9px;}
  .supplemental-keys {padding-top:4px;}
  .side {border-radius:0;box-shadow:none;margin:0;border-top:1px solid #bfcfc9;}
  .sidehead {padding:6px 10px;}
  .sidehead .search {height:38px;}.sidehead .search input {font-size:16px;}
  .side.inspecting .profile {padding:6px 12px 8px;}
  .inspector-nav {margin:0 0 2px;gap:10px;}
  .inspector-nav button {min-height:29px;padding:3px 1px;font-size:11px;}
  .inspector-nav #profileDismiss {min-width:30px;}
  .side.inspecting .profile h4 {font-size:20px;letter-spacing:-.75px;margin:4px 0 6px;}
  .profile .meta {font-size:9px;}
  .side.inspecting:not(.profile-expanded) :is(.profile-topics,.topic-body,.profile-buttons-row) {display:none;}
  .side.inspecting:not(.profile-expanded) .profile-peek {display:block;}
  .profile-peek .inspector-stats>div {background:transparent;border:0;}
  .profile-peek .inspector-section {border:0;}
  .profile-peek .debt-profile,.profile-peek .insight-profile {border-radius:3px;}
  .profile-peek .history-section,.profile-peek .planning-profile,.profile-peek .source-note {display:none;}
  .profile-peek .election-card {display:block;margin:0;}
  .profile-peek .election-card>:not(summary) {display:none;}
  .profile-peek .election-card summary {pointer-events:none;padding:6px 0;}
  .profile-peek .insight-profile .section-kicker {font-size:10px;}
  .side.inspecting.profile-expanded {max-height:50dvh;}
  .side.inspecting.profile-expanded .profile {max-height:50dvh;padding:6px 12px 15px;}
  .profile-buttons-row {margin:6px 0;}
}
@media(max-height:520px) and (max-width:740px) {
  .side.inspecting.profile-expanded,.side.inspecting.profile-expanded .profile,.side.expanded {max-height:40dvh;}
  .legend-dock {padding-block:2px;gap:2px 6px;}
  .map-toolbar {padding-block:1px;}
}

.layer-group {border-top:1px solid var(--line);margin-top:7px;}
.layer-group>summary {cursor:pointer;padding:12px 0;color:#254b46;font-size:13px;font-weight:650;}
.layer-group[open]>summary {padding-bottom:5px;}
.layers .reset-layers {margin-top:10px;}
.layers .layer-status {line-height:1.25;}
.profile-buttons-row button {padding-inline:2px;white-space:nowrap;}

.selected-key {width:15px;height:10px;display:inline-block;border:2px solid #171717;outline:1px solid white;border-radius:2px;}
.compact-measure {display:flex;align-items:center;justify-content:space-between;gap:7px;border-top:1px solid var(--line);padding:5px 0;}

/* A side-by-side inspection view preserves map height on a rotated phone. */
@media (min-width:560px) and (max-width:740px) and (max-height:520px) {
  .workspace:has(.side.inspecting),.workspace:has(.side.expanded) {
    display:grid;grid-template-columns:minmax(190px,33%) minmax(0,1fr);
  }
  .workspace:has(.side.inspecting) .maparea,.workspace:has(.side.expanded) .maparea {grid-column:2;grid-row:1;}
  .workspace .side:is(.inspecting,.expanded) {
    grid-column:1;grid-row:1;max-height:none;border-top:0;border-right:1px solid var(--line);
  }
  .side.inspecting .profile,.side.inspecting.profile-expanded .profile {max-height:100%;overflow:auto;}
  .side.expanded .directory {max-height:none;}
  .side.inspecting:not(.profile-expanded) .inspector-stats {grid-template-columns:repeat(2,minmax(0,1fr));}
}
