*{box-sizing:border-box}html,body{margin:0;height:100%;font:16px/1.4 system-ui,sans-serif;color:#1b1b1b;background:#fff}
body.big{font-size:20px}body{display:flex;flex-direction:column}
.top{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 12px;background:#b3141c;color:#fff}
html[data-brand="cwm"] .top{background:#0f4c81}
.logo{display:flex;align-items:center;gap:8px;color:#fff;font-weight:800;font-size:1.3em;text-decoration:none;min-width:0}.logo-mark{width:36px;height:36px;flex:0 0 36px;border-radius:8px;display:block}.logo-text{display:flex;flex-direction:column;min-width:0;line-height:1.15}
#search{position:relative;flex:1;min-width:180px;max-width:420px}#q{width:100%;padding:8px;font-size:1em;border-radius:6px;border:0}
#results{position:absolute;z-index:4000;left:0;right:0;margin:0;padding:0;list-style:none;background:#fff;color:#111;box-shadow:0 2px 8px #0005;max-height:70vh;overflow:auto;-webkit-overflow-scrolling:touch}
#results li{padding:8px;cursor:pointer;border-bottom:1px solid #eee}#results li:hover{background:#eef}#results li.att{font-size:.75em;color:#666;cursor:default;padding:8px 14px}
#results li[data-i]{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;min-height:44px;font-size:16px;line-height:1.25}
#results li[data-i] .sug-name{flex:1;min-width:0}
#results li[data-i] .sug-reg{flex:0 0 auto;font-weight:700;color:#334;opacity:.9}
body.dark #results li[data-i] .sug-reg{color:#cde}
.btns{display:flex;flex-wrap:wrap;gap:6px}.btns button,.btns a{font-size:.9em;padding:6px 10px;border-radius:6px;border:1px solid #fff8;background:#fff2;color:#fff;cursor:pointer;text-decoration:none}
#banner{padding:6px 12px;background:#ffe9a8;border-bottom:1px solid #d9b84a;color:#111}
main{flex:1;display:flex;min-height:0}#panel{width:260px;overflow:auto;padding:8px 12px;border-right:1px solid #ddd}
#panel h2{margin:.2em 0;font-size:1.1em}#panel h3{font-size:.85em;text-transform:uppercase;color:#666;margin:.8em 0 .2em}
.layer{display:block;padding:3px 0}.layer small{display:block;color:#777;margin-left:22px;font-size:.75em}.layer.soon{opacity:.45}
#map{flex:1}.mobile{display:none}
body.dark{background:#15171a;color:#e8e8e8}body.dark #panel{border-color:#333}body.dark #banner{background:#4a3c10;color:#fff;border-color:#6b5a20}
body.dark .leaflet-tile{filter:invert(1) hue-rotate(180deg) brightness(.9)}body.dark #results{background:#222;color:#eee}
@media(max-width:700px){.mobile{display:inline-block}#panel{position:absolute;z-index:1500;top:auto;left:0;bottom:0;height:60%;width:85%;background:inherit;background-color:#fff;display:none;box-shadow:2px 0 8px #0005}body.dark #panel{background:#15171a}#panel.open{display:block}main{position:relative}}
.page{max-width:800px;margin:0 auto;padding:16px}.page td,.page th{border:1px solid #ccc;padding:6px;text-align:left}.page table{border-collapse:collapse}
main{position:relative}#recallBox{position:absolute;right:10px;top:10px;z-index:1000;width:300px;max-height:50%;overflow:auto;background:#fff;padding:6px 10px;border-radius:8px;box-shadow:0 2px 8px #0005;font-size:.85em}body.dark #recallBox{background:#222}#recallBox h3{margin:.2em 0}#recallBox li{margin:.3em 0}
#cards{position:absolute;left:56px;bottom:28px;z-index:1000;display:flex;flex-wrap:wrap;gap:8px;max-width:calc(100% - 70px)}.card{background:#fff;padding:6px 10px;border-radius:8px;box-shadow:0 2px 8px #0005;font-size:.8em;max-width:280px}.card h3{margin:.1em 0}.card td{padding:1px 4px;vertical-align:top}body.dark .card{background:#222}#lang{border-radius:6px;padding:5px}@media(max-width:700px){#cards{left:6px;bottom:24px}.card{max-width:48%}#recallBox{display:none}}
#cards{left:270px;align-items:flex-end}
@media(max-width:700px){#cards{left:6px}.card{max-width:100%;font-size:.72em}#gasBox tr+tr{display:none}#gasBox small{display:block;max-width:220px}}
.uc{background:#1f4e9e;color:#fff;text-align:center;padding:5px 10px;font-weight:600}
#info{position:absolute;left:270px;bottom:28px;z-index:1000;max-width:calc(100% - 290px)}#info summary{cursor:pointer;background:#fff;display:inline-block;padding:4px 10px;border-radius:14px;box-shadow:0 1px 4px #0005;font-size:.85em}body.dark #info summary{background:#222}#info #cards{position:static;margin-top:6px}@media(max-width:700px){#info{left:6px;bottom:24px;max-width:calc(100% - 12px)}#info #cards{max-height:50vh;overflow:auto}}
#banner{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#backdrop{display:none}
@media(max-width:700px){
 .uc{font-size:.75em;padding:3px 6px}
 .top{flex-wrap:wrap;gap:6px;padding:6px 8px}.logo{font-size:1.05em;max-width:100%}.logo-mark{width:28px;height:28px;flex-basis:28px}
 .logo .tagline{display:none}
 #search{flex:1 1 100%;width:100%;min-width:0;max-width:none;order:2}#q{padding:8px 10px;font-size:16px;width:100%;box-sizing:border-box;min-width:0;text-overflow:ellipsis}
 .btns{flex-wrap:nowrap;overflow-x:auto;width:100%;order:3;-webkit-overflow-scrolling:touch;scrollbar-width:none}.btns>*{flex:0 0 auto;white-space:nowrap}
 #banner{font-size:.85em;padding:4px 8px;-webkit-line-clamp:1}
 main{display:block;position:relative;flex:1}#map{position:absolute;inset:0;width:100%;height:100%}
 #panel{position:fixed;left:0;right:0;bottom:0;top:auto;width:100%;height:auto;max-height:50vh;overflow:auto;border:0;border-radius:14px 14px 0 0;box-shadow:0 -2px 12px #0006;z-index:3000;display:none;background:#fff}
 #panel.open{display:block}#closePanel{position:sticky;top:0;float:right;font-size:1em;padding:8px 14px;border-radius:8px;border:1px solid #999;background:#eee;color:#111;z-index:1}
 body.sheet #backdrop{display:block;position:fixed;inset:0;background:#0004;z-index:2900}
 #info{position:absolute;left:8px;bottom:22px;right:auto;max-width:calc(100% - 16px);z-index:1000}#info:not([open]){width:auto}
 #info summary{list-style:none}#info summary::-webkit-details-marker{display:none}
}
@media(max-width:700px){#info{bottom:58px}.leaflet-control-attribution{font-size:9px}}
.aqi span{display:block;width:24px;height:24px;border-radius:50%;color:#fff;font:bold 13px/24px sans-serif;text-align:center;border:1px solid #fff;box-shadow:0 0 2px #000}
.qcg span{display:block;background:#063;color:#fff;font:bold 11px/18px sans-serif;text-align:center;border-radius:4px;border:1px solid #fff}
.dogp{font-size:16px;line-height:20px;text-align:center}
#hint{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:1000;background:#fff;color:#111;border:1px solid #888;border-radius:18px;padding:6px 14px;font-size:.9em;box-shadow:0 1px 4px #0004;cursor:pointer}#hint[hidden]{display:none}
#gasBox{max-height:55vh;overflow:auto}

#cmpBox input{width:42%;padding:4px}.cmpCol{display:inline-block;vertical-align:top;width:48%}#cmpBox ul{margin:4px 0;padding-left:18px}
@media print{.top nav,#panel,#info,#backdrop,.leaflet-control-zoom{display:none!important}.top{background:#fff!important;color:#000!important}#map{height:16cm!important;width:100%!important}}

/* More menu: dropdown on all widths so header stays one row */
.btns{position:relative;flex-wrap:nowrap;align-items:center}
.btns #lang{max-width:7.5rem}
#more{display:none;position:absolute;right:0;top:calc(100% + 6px);z-index:3000;background:#fff;border-radius:10px;box-shadow:0 4px 16px #0007;padding:8px;flex-direction:column;gap:6px;min-width:220px}
#more.open{display:flex}#more[hidden]{display:none!important}
#more.open[hidden]{display:flex!important} /* opened via class; clear hidden in JS */
#more>*{font-size:.95em!important;padding:10px 12px!important;min-height:40px;color:#222!important;background:#f3f3f3!important;border:1px solid #ccc!important;text-align:left;border-radius:8px;text-decoration:none;cursor:pointer}
body.dark #more{background:#222}body.dark #more>*{background:#333!important;color:#eee!important}
@media(max-width:700px){.btns{overflow:visible;width:100%;flex-wrap:wrap}.btns>button,#moreBtn{font-size:1.05em;padding:10px 16px;min-height:44px}
#more>*{font-size:1.1em!important;padding:12px 14px!important;min-height:48px}}

.prov-hint{margin:.4em .6em .35em;padding:.45em .65em;background:#eef5ff;border-radius:8px;font-size:.92em;line-height:1.35;color:#123}
.prov-pick-wrap{display:block;margin:0 .6em .55em}
.prov-pick-wrap label{display:block;font-size:.82em;color:#345;margin:0 0 .2em}
body.dark .prov-pick-wrap label{color:#bcd}
#provPick{width:100%;max-width:100%;box-sizing:border-box;font:inherit;font-size:.95em;padding:.45em .5em;border:1px solid #c5d0dc;border-radius:8px;background:#fff;color:#123}
body.dark #provPick{background:#1e2a3a;color:#dde;border-color:#3a4a5c}
@media (max-width:700px){ #provPick{min-height:44px;font-size:16px} }
body.dark .prov-hint{background:#1e2a3a;color:#dde}
.prov-hint b{font-weight:600}
button.linkish{background:none;border:none;color:#06c;text-decoration:underline;cursor:pointer;font:inherit;padding:0}
body.dark button.linkish{color:#8cf}
label.layer[hidden],#panel h3[hidden]{display:none!important}

/* Layers panel polish (v97) */
.layer-search-wrap{display:block;margin:.35em .6em .5em}
#layerSearch{width:100%;box-sizing:border-box;padding:.55em .7em;font-size:1em;border:1px solid #bcd;border-radius:8px}
body.dark #layerSearch{background:#1a2430;border-color:#345;color:#eee}
.sec-h{display:flex;align-items:center;gap:.45em;width:calc(100% - 1.2em);margin:.35em .6em 0;padding:.55em .65em;border:0;border-radius:8px;background:#e8eef5;color:#123;font:inherit;font-weight:600;font-size:1.02em;text-align:left;cursor:pointer}
.sec-h:hover{background:#dce6f2}
body.dark .sec-h{background:#1e2a3a;color:#e8eef5}
.sec-caret{font-size:.75em;opacity:.7;width:1em}
.sec-count{margin-left:auto;background:#fff;color:#345;border-radius:999px;padding:.1em .55em;font-size:.8em;font-weight:600}
body.dark .sec-count{background:#2a3848;color:#cde}
.sec-body{padding:.15em .6em .4em}
.sec-h.search-empty{display:none}
label.layer.search-hide{display:none!important}
.layer-name{font-weight:500}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
#panel h3{display:none} /* old headers unused */
/* MapLibre (v100) */
.maplibregl-ctrl-attrib{font-size:9px}.ca-cm{pointer-events:auto}.leaflet-div-icon{background:transparent;border:0}.leaflet-marker-icon{cursor:pointer}
.ca-pin{font-size:22px;line-height:1;cursor:pointer}.maplibregl-popup-content{font:14px/1.4 system-ui,sans-serif;padding:10px 12px;max-height:60vh;overflow:auto}
body.dark .maplibregl-popup-content{background:#222;color:#eee}body.dark .maplibregl-popup-tip{border-top-color:#222;border-bottom-color:#222}
#viewBtns{position:absolute;right:10px;bottom:30px;z-index:5;display:flex;flex-direction:column;gap:6px}
#viewBtns button{font:600 15px system-ui,sans-serif;padding:10px 12px;border-radius:10px;border:1px solid #888;background:#fff;color:#111;box-shadow:0 1px 4px #0004;min-width:110px}
#viewBtns button.on{background:#0b5;color:#fff}body.dark #viewBtns button:not(.on){background:#333;color:#eee}
#driveMsg{position:absolute;left:50%;top:10px;transform:translateX(-50%);z-index:5;background:#000c;color:#fff;padding:6px 12px;border-radius:8px;font:14px system-ui;display:none}
@media print{.maplibregl-ctrl-top-right,#viewBtns,#driveMsg{display:none!important}}
.ca-sure{margin-top:8px;padding-top:6px;border-top:1px solid #ddd;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ca-badge{font:600 12px system-ui;padding:2px 7px;border-radius:10px;background:#eee;color:#222}.ca-off{background:#d3f9d8;color:#1b5e20}.ca-ref{background:#e3f2fd;color:#0d47a1}.ca-est{background:#fff3cd;color:#7a5a00}.ca-chk{background:#ffe0e0;color:#a10000}
.ca-copy{font:13px system-ui;padding:4px 8px;border-radius:8px;border:1px solid #999;background:#fafafa;cursor:pointer}body.dark .ca-copy{background:#333;color:#eee}

.logo .tagline{display:block;font-size:.55em;font-weight:500;opacity:.9;line-height:1.1}
#placePanel,#watchList{position:fixed;right:10px;top:70px;bottom:10px;width:min(380px,calc(100vw - 20px));overflow:auto;background:var(--bg,#fff);color:inherit;z-index:1200;border-radius:10px;box-shadow:0 4px 18px rgba(0,0,0,.3);padding:12px 14px;font-size:14px}
#placePanel h2,#watchList h2{margin:0 24px 4px 0;font-size:17px}#placePanel h3{font-size:14px;margin:12px 0 4px;border-top:1px solid #8884;padding-top:8px}#placePanel h3 span{background:#8883;border-radius:9px;padding:0 7px;font-size:12px}
#placePanel ul,#watchList ul{margin:0;padding-left:16px}#placePanel li,#watchList li{margin:4px 0}.pd{color:#888;font-size:12px}.pNone{color:#888;margin:2px 0}
.pClose{position:absolute;right:8px;top:8px;border:0;background:none;font-size:18px;cursor:pointer;color:inherit}
#pickBtn,#watchBtn{position:fixed;left:50%;transform:translateX(-50%);bottom:28px;z-index:1100;border:0;border-radius:20px;padding:8px 14px;background:#1a5fb4;color:#fff;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.3);cursor:pointer}
#watchBtn{bottom:70px;background:#555}#watchBtn.hasNew{background:#c01c28}#pickBtn.on{background:#e66100}.wNew{color:#c01c28;font-weight:700}.wOld{color:#888}
body.dark #placePanel,body.dark #watchList{background:#222;color:#eee}
.ca-lv{font-size:11px;white-space:nowrap;margin-left:4px}
#driveExit{display:none;position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:1300;font-size:18px;font-weight:700;padding:14px 26px;border:0;border-radius:30px;background:#c01c28;color:#fff;box-shadow:0 3px 12px rgba(0,0,0,.4)}
#driveAlert{position:fixed;left:10px;right:10px;top:80px;z-index:1300;background:#ffd54a;color:#222;padding:12px 14px;border-radius:10px;font-size:16px;box-shadow:0 3px 12px rgba(0,0,0,.35)}

/* Clear all layers (v145) */
.layer-tools{display:flex;gap:.5em;margin:.15em .6em .25em;align-items:center}
.layers-help{margin:.05em .7em .55em;font-size:.82em;line-height:1.35;color:#345}
body.dark .layers-help{color:#bcd}
@media (max-width:600px){
  .layers-help{font-size:.78em;margin:.05em .6em .45em}
  button.clear-layers{padding:.7em .7em;font-size:15px;min-height:44px}
  .layer-search-wrap input{min-height:44px;font-size:16px}
  #layers .sec-h{padding:.55em .65em;min-height:44px}
  #layers label{padding:.28em .55em}
}

button.clear-layers{flex:1;font:600 14px system-ui,sans-serif;padding:.55em .7em;border-radius:8px;border:1px solid #9ab;background:#f4f7fb;color:#123;cursor:pointer}
button.clear-layers:hover{background:#e4ecf6}
button.clear-layers:disabled{opacity:.7;cursor:default}
body.dark button.clear-layers{background:#1e2a3a;border-color:#456;color:#e8eef5}
body.dark button.clear-layers:hover{background:#2a3848}

/* Ask a question (v147) */
.pAsk{margin-top:12px;padding-top:10px;border-top:1px solid #8884}
.pAskRow{display:flex;gap:6px;margin:.35em 0}
.pAskRow input{flex:1;padding:.5em .6em;border:1px solid #9ab;border-radius:8px;font:inherit}
.pAskRow button{padding:.5em .85em;border-radius:8px;border:0;background:#1a5fb4;color:#fff;font-weight:600;cursor:pointer}
.pAskRow button:disabled{opacity:.6;cursor:default}
.pAskOut{margin:.4em 0;padding:.55em .7em;background:#f4f7fb;border-radius:8px;white-space:pre-wrap}
.pAns{margin:0 0 .35em}.pNote{color:#666}
body.dark .pAskOut{background:#1e2a3a}body.dark .pAskRow input{background:#1a2430;border-color:#456;color:#eee}

/* Keep Brantford help card closed unless opened (v149) */
details#info{max-width:min(420px,92vw)}
details#info>summary{cursor:pointer;font-weight:600}

/* Short layer status + details (v152) */
small .ca-details{margin-left:.25em;font-size:inherit}
small .ca-detlist{display:inline;color:#555}
body.dark small .ca-detlist{color:#bcd}
#u_cityroads,#u_roads2{line-height:1.35}

/* Building story panel + hint */
#bldgPanel{position:fixed;right:10px;top:70px;bottom:10px;width:min(400px,calc(100vw - 20px));overflow:auto;background:var(--bg,#fff);color:inherit;z-index:1210;border-radius:10px;box-shadow:0 4px 18px rgba(0,0,0,.3);padding:12px 14px;font-size:14px}
#bldgPanel h2{margin:0 24px 4px 0;font-size:17px}#bldgPanel h3{font-size:14px;margin:12px 0 4px;border-top:1px solid #8884;padding-top:8px}#bldgPanel h3 span{background:#8883;border-radius:9px;padding:0 7px;font-size:12px}
#bldgPanel ul{margin:0;padding-left:16px}#bldgPanel li{margin:4px 0}
#bldgPanel .pBtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#bldgPanel .pBtns button{padding:.55em .9em;border-radius:8px;border:0;background:#1a5fb4;color:#fff;font-weight:600;cursor:pointer}
#bldgPanel .pBtns button:disabled{opacity:.6}
#bldgPanel #bldgHere{background:#555}
body.dark #bldgPanel{background:#222;color:#eee}

#bldgPanel .pBtnsTop{margin:.7em 0 .35em}
#bldgPanel .pStoryHint{display:block;margin:0 0 .6em;opacity:.85}
#bldgPanel #bldgStoryOut:not([hidden]){margin:.35em 0 .8em;border-left:3px solid #1a5fb4}
#bldgPanel .wikiList .wikiMore{background:none;border:0;color:#1a5fb4;cursor:pointer;padding:0;font:inherit;text-decoration:underline}
#bldgPanel .wikiShort,#bldgPanel .wikiFull{display:inline}
body.dark #bldgPanel #bldgStoryOut:not([hidden]){border-left-color:#6ea8fe}
body.dark #bldgPanel .wikiMore{color:#8ec7ff}
@media (max-width:640px){
  #bldgPanel{top:auto;bottom:0;left:0;right:0;width:100%;max-height:62vh;border-radius:14px 14px 0 0;padding:10px 12px 16px;font-size:13.5px;z-index:1300}
  #bldgPanel h2{font-size:16px;margin-right:28px}
  #bldgPanel .pBtns{position:sticky;top:0;background:var(--bg,#fff);padding:.35em 0;z-index:2}
  body.dark #bldgPanel .pBtns{background:#222}
  #bldgPanel .pBtns button{flex:1;min-width:120px}
}
#bldgHint{position:absolute;left:50%;bottom:90px;transform:translateX(-50%);z-index:4;background:#0b57d0ee;color:#fff;padding:8px 14px;border-radius:20px;font:600 13px system-ui,sans-serif;pointer-events:none;opacity:0;transition:opacity .4s;max-width:90vw;text-align:center}
#bldgHint.show{opacity:1}
@media (max-width:700px){
  #bldgPanel{top:auto;bottom:0;left:0;right:0;width:100%;max-height:55vh;border-radius:14px 14px 0 0}
  #viewBtns{bottom:88px;right:8px}
  #viewBtns button{min-width:96px;font-size:13px;padding:8px 10px}
}

#nearPanel{position:fixed;left:50%;bottom:72px;transform:translateX(-50%);z-index:2500;width:min(420px,94vw);max-height:55vh;overflow:auto;background:#fff;color:#111;border-radius:14px;box-shadow:0 8px 28px #0005;padding:14px 16px 12px;font:14px/1.4 system-ui,sans-serif}
body.dark #nearPanel{background:#1e1e1e;color:#eee}
#nearPanel .near-close{position:absolute;top:8px;right:10px;border:0;background:transparent;font-size:18px;cursor:pointer;color:inherit}
#nearPanel .near-body ul,#nearPanel .near-body ol{margin:.4em 0 .6em 1.2em;padding:0}
#nearPanel .near-tips{margin-top:.6em}
#nearPanel .near-en{font:inherit}
#holidayBox ul{margin:.4em 0 0 1.1em;padding:0;font-size:.92em}
#worstBox ol{margin:.4em 0 0 1.2em;padding:0;font-size:.92em}
@media(max-width:700px){#nearPanel{bottom:64px;max-height:48vh}}

.hm-foot{margin:10px 0 6px;padding-top:8px;border-top:1px solid #ddd;font-size:11px;line-height:1.3;color:#678;text-align:center}
.hm-foot a,.hm-link{color:#678;text-decoration:none}
.hm-foot a:hover,.hm-link:hover{text-decoration:underline;color:#1a5fb4}
body.dark .hm-foot{border-color:#333;color:#9aa}
body.dark .hm-foot a,body.dark .hm-link{color:#9aa}
@media print{.hm-foot,.top .hm-link{display:none!important}}

/* Info: one pane at a time */
#info{position:absolute;left:270px;bottom:28px;z-index:1000;max-width:min(380px,calc(100% - 290px))}
#info summary{cursor:pointer;background:#fff;display:inline-block;padding:6px 12px;border-radius:14px;box-shadow:0 1px 4px #0005;font-size:.85em;font-weight:600;list-style:none}
#info summary::-webkit-details-marker{display:none}
body.dark #info summary{background:#222}
#info #cards.info-panel{position:static;margin-top:6px;display:block;background:#fff;border-radius:12px;box-shadow:0 4px 18px #0004;padding:8px;max-width:100%;max-height:min(52vh,420px);overflow:auto}
body.dark #info #cards.info-panel{background:#1e1e1e}
.info-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}
.info-tab{font:600 12px system-ui,sans-serif;padding:5px 8px;border-radius:999px;border:1px solid #ccd;background:#f4f6f8;color:#234;cursor:pointer}
.info-tab[aria-selected="true"]{background:#1a5fb4;color:#fff;border-color:#1a5fb4}
body.dark .info-tab{background:#2a2a2a;border-color:#444;color:#ddd}
body.dark .info-tab[aria-selected="true"]{background:#3d7dd6;border-color:#3d7dd6}
.info-pane.card{max-width:none;width:100%;box-shadow:none;padding:4px 2px 6px;font-size:.82em;background:transparent}
.info-pane.card h3{margin:.2em 0 .4em;font-size:1.05em}
.info-extras-hint{margin:.4em 0 0;font-size:.8em;color:#678}
@media(max-width:700px){
 #info{left:8px;bottom:58px;max-width:calc(100% - 16px)}
 #info:not([open]){width:auto}
 #info #cards.info-panel{max-height:42vh}
}
/* Don't float orphan #cards absolute stack */
#cards{left:auto;align-items:stretch;flex-wrap:nowrap;max-width:100%;gap:0}
.top .hm-link{display:none!important}

#hmMapFoot{display:none!important}#hmMapFoot a:hover{text-decoration:underline;color:#1a5fb4}
body.dark #hmMapFoot{display:none!important}body.dark #hmMapFoot a{color:#bbb}
@media(max-width:700px){#hmMapFoot{display:none!important}}
@media print{#hmMapFoot{display:none!important}}

/* RTL (Arabic) */
html[dir=rtl] body{direction:rtl}
html[dir=rtl] .top{flex-direction:row-reverse}
html[dir=rtl] .btns{flex-direction:row-reverse}
html[dir=rtl] #panel{right:auto;left:0;text-align:right}
html[dir=rtl] #info{left:auto;right:0;text-align:right}
html[dir=rtl] #banner{text-align:right}
html[dir=rtl] .layer{flex-direction:row-reverse}
html[dir=rtl] .info-tabs{flex-direction:row-reverse}
html[dir=rtl] .maplibregl-ctrl-top-right{right:auto;left:0}
html[dir=rtl] .leaflet-right{right:auto;left:0}

/* Building story card polish */
#bldgPanel .bldgMeta{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 8px}
#bldgPanel .bldgMeta span{background:#e8eef7;color:#1a3a5c;font-size:12px;padding:2px 8px;border-radius:999px}
body.dark #bldgPanel .bldgMeta span{background:#2a3544;color:#cde}
#bldgPanel ul.bldgSelf li{border-left:3px solid #2e7d32;padding-left:8px;margin:8px 0}
#bldgPanel #bldgStoryOut .pAns{font-size:15px;line-height:1.45}
#driveAlert{font-weight:500}

/* Round 171/172 a11y */
:focus-visible{outline:3px solid #1a5fb4;outline-offset:2px}
body.dark :focus-visible{outline-color:#7db4ff}
.skip-link{position:absolute;left:-999px;top:0;z-index:10000;background:#1a5fb4;color:#fff;padding:10px 16px;border-radius:0 0 8px 0;font-weight:600}
.skip-link:focus,.skip-link:focus-visible{left:0}
#welcomeTip{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);z-index:1001;max-width:min(420px,92vw);background:#fff;color:#111;border:1px solid #8aa;border-radius:14px;padding:12px 14px 12px 16px;box-shadow:0 4px 18px #0003;font-size:.95em;line-height:1.4;display:flex;gap:10px;align-items:flex-start}
#welcomeTip[hidden]{display:none}
#welcomeTip p{margin:0;flex:1}
#welcomeTip button{flex:0 0 auto;min-width:44px;min-height:44px;border:0;background:#e8eef7;border-radius:10px;font-size:1.1em;cursor:pointer}
body.dark #welcomeTip{background:#1a2330;color:#e8eef5;border-color:#456}
body.dark #welcomeTip button{background:#2a3544;color:#e8eef5}
@media (max-width:700px){
  .btns button,.btns select,#layersBtn,#near,#moreBtn{min-height:44px;min-width:44px;padding:8px 12px}
  #panel label.layer{padding:10px 8px;min-height:44px}
  #panel .sec-h{min-height:44px;padding:10px 8px}
  #driveBox button,#demoBtn,#tiltBtn,#driveBtn{min-height:44px;padding:10px 12px}
  #bldgPanel .pBtns button{min-height:44px;padding:10px 14px}
}
#hint{min-height:40px}
.ca-ago{opacity:.85;font-size:.92em}


/* Drive nearby-alerts panel: large type, high contrast, readable while driving */
#driveAlert.da-panel{position:fixed;left:10px;right:auto;top:74px;z-index:1300;width:min(440px,calc(100vw - 20px));
  background:#111;color:#fff;padding:12px 14px 14px;border-radius:12px;border:3px solid #ffd54a;
  box-shadow:0 4px 18px rgba(0,0,0,.45);font:600 18px/1.3 system-ui,sans-serif}
#driveAlert .da-title{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#ffd54a;font-weight:800;margin:0 0 8px}
#driveAlert .da-row{display:flex;gap:10px;align-items:flex-start;margin:8px 0 0}
#driveAlert .da-m{flex:0 0 auto;color:#ffd54a;font-variant-numeric:tabular-nums;min-width:4.2em}
#driveAlert .da-t{flex:1;font-weight:650}
@media (max-width:700px){
  /* Keep the windshield visible in drive view: compact the alert card, leave room for Exit. */
  #driveAlert.da-panel{top:52px;left:8px;right:8px;width:auto;max-height:28vh;overflow:auto;font:600 14px/1.25 system-ui,sans-serif;padding:8px 10px 10px}
  #driveAlert .da-title{font-size:11px;margin:0 0 4px}
  #driveAlert .da-row{margin:5px 0 0}
  #driveExit{bottom:16px;z-index:1400;min-height:48px;padding:12px 22px;font-size:16px}
  #driveChips{bottom:auto;top:auto;max-width:46vw}
}

#placeActions{position:fixed;left:50%;transform:translateX(-50%);bottom:22px;z-index:1250;display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  background:#fff;color:#111;padding:8px 10px;border-radius:14px;box-shadow:0 4px 16px rgba(0,0,0,.28);max-width:min(640px,96vw);font:600 14px system-ui,sans-serif}
#placeActions[hidden]{display:none!important}
#placeActions .pa-name{font-weight:700;padding:0 6px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#placeActions button{font:600 14px system-ui,sans-serif;padding:8px 12px;border-radius:10px;border:0;background:#1a5fb4;color:#fff;cursor:pointer;min-height:40px}
#placeActions .pa-drive{background:#0b5}
#placeActions .pa-x{background:#666;min-width:40px;padding:8px}
body.dark #placeActions{background:#222;color:#eee}
@media (max-width:700px){
  #driveAlert.da-panel{left:8px;right:8px;width:auto;top:58px;font-size:20px;line-height:1.3;padding:14px 14px 16px}
  #driveAlert .da-title{font-size:13px}
  #placeActions{bottom:12px;padding:8px;gap:6px}
  #placeActions .pa-name{max-width:42vw}
  #placeActions button{flex:1;min-height:44px;font-size:15px}
  #driveMsg{font-size:15px;padding:8px 14px;max-width:92vw}
}
@media print{#placeActions,#driveAlert{display:none!important}}


/* R178: one panel at a time, story not covered by sticky buttons */
#bldgPanel .bldgHead{position:relative}
#bldgPanel #bldgStoryOut{scroll-margin-top:8px}
@media (max-width:700px){
  #bldgPanel{top:auto;bottom:0;left:0;right:0;width:100%;max-height:62vh;border-radius:14px 14px 0 0;z-index:1300}
  #bldgPanel .bldgHead{
    position:sticky;top:0;z-index:3;
    background:var(--bg,#fff);
    margin:0 -12px;padding:8px 36px 8px 12px;
    border-bottom:1px solid #8883
  }
  body.dark #bldgPanel .bldgHead{background:#222}
  #bldgPanel .pBtns,#bldgPanel .pBtnsTop{position:static!important;background:transparent;padding:0;z-index:auto}
  #placePanel,#watchList{
    top:auto;bottom:0;left:0;right:0;width:100%;max-height:62vh;
    border-radius:14px 14px 0 0;z-index:1300;padding:10px 12px 16px
  }
  #placePanel .placeHead,#watchList .placeHead{
    position:sticky;top:0;z-index:3;background:var(--bg,#fff);
    margin:0 -12px 8px;padding:4px 36px 8px 12px;border-bottom:1px solid #8883
  }
  body.dark #placePanel .placeHead,body.dark #watchList .placeHead{background:#222}
}

#placeActions .pa-share,#bldgShare{background:#333;color:#fff}
#shareToast{position:fixed;left:50%;bottom:88px;transform:translateX(-50%) translateY(12px);z-index:4000;background:#123;color:#fff;padding:10px 16px;border-radius:10px;font:600 14px/1.35 system-ui,sans-serif;max-width:min(92vw,420px);text-align:center;box-shadow:0 4px 16px #0006;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#shareToast.show{opacity:1;transform:translateX(-50%) translateY(0)}
#shareToast.err{background:#7a1c1c}
@media(max-width:700px){#shareToast{bottom:120px}}
@media print{#shareToast{display:none!important}}

#driveChips{position:fixed;left:50%;bottom:148px;transform:translateX(-50%);z-index:3900;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;max-width:min(92vw,520px);pointer-events:none}
#driveChips[hidden]{display:none!important}
#driveChips .dchip{background:#123;color:#fff;padding:6px 10px;border-radius:999px;font:700 13px/1.2 system-ui,sans-serif;box-shadow:0 2px 10px #0005;max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#driveChips .dchip b{color:#ffd54f;margin-right:4px}
#chipBtn.on{background:#123;color:#fff}
@media(max-width:700px){#driveChips{bottom:168px}}
@media print{#driveChips{display:none!important}}

@media (prefers-reduced-motion: reduce){
  html,html *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
#results li[data-i]{cursor:pointer}
#results li[data-i].active,#results li[data-i]:hover{background:#e8eef7}
body.dark #results li[data-i].active,body.dark #results li[data-i]:hover{background:#2a3544}
@media(max-width:700px){#results{max-height:60vh}#results li[data-i]{min-height:48px;padding:14px 16px}}
#clearLayers,#closePanel,.sec-h{min-height:44px}
.btns button,.btns select,#layersBtn,#near,#moreBtn,#lang{min-height:44px}

/* Phone: keep Layers title + Close on a solid sticky bar so they don’t cover rows. */
@media(max-width:700px){
  #panel > h2{position:sticky;top:0;z-index:5;background:#fff;margin:0 0 .4em;padding:10px 88px 10px 4px;line-height:1.2}
  body.dark #panel > h2{background:#15171a}
  #closePanel{position:sticky;top:6px;float:right;z-index:6;margin:0 0 -48px}
}

/* Driving preset (phone in a car): big readable controls, markers and issue list. */
body.ca-drive .dogp,
body.ca-drive .leaflet-marker-icon,
body.ca-drive .ca-cm,
body.ca-drive .ca-pin{
  font-size:22px !important;
  line-height:1.1;
  transform:scale(1.35);
  transform-origin:center bottom;
}
body.ca-drive .leaflet-tooltip,
body.ca-drive .maplibregl-marker,
body.ca-drive .ca-label{
  font-size:16px;
  font-weight:700;
}
body.ca-drive #viewBtns{bottom:108px;right:8px;gap:8px;z-index:1400}
body.ca-drive #viewBtns button{
  min-width:132px;min-height:48px;font-size:17px;font-weight:800;
  padding:12px 14px;border-radius:12px;
}
body.ca-drive #viewBtns #driveBtn,
body.ca-drive #viewBtns #followBtn{font-size:18px}
body.ca-drive #driveExit{
  display:block;left:50%;transform:translateX(-50%);bottom:18px;
  min-height:56px;padding:16px 28px;font-size:20px;font-weight:800;
  border-radius:32px;z-index:1500;
}
body.ca-drive #driveAlert.da-panel{
  top:58px;left:8px;right:8px;width:auto;max-height:36vh;overflow:auto;
  font:700 18px/1.3 system-ui,sans-serif;padding:12px 12px 14px;
  background:#1a1a1a;color:#fff;
}
body.ca-drive #driveAlert .da-title{
  font-size:15px;letter-spacing:.04em;text-transform:uppercase;color:#ffd54a;
  font-weight:800;margin:0 0 8px;
}
body.ca-drive #driveAlert .da-empty{font-weight:650;color:#fff;font-size:17px}
body.ca-drive #driveAlert .da-row{
  display:flex;gap:10px;align-items:flex-start;margin:0;padding:8px 4px;
  width:100%;border:0;background:transparent;color:inherit;text-align:left;
  font:700 17px/1.3 system-ui,sans-serif;border-radius:8px;
}
body.ca-drive #driveAlert .da-row:focus,
body.ca-drive #driveAlert .da-row:active{background:#333}
body.ca-drive #driveAlert .da-m{flex:0 0 auto;color:#ffd54a;font-variant-numeric:tabular-nums;min-width:4.4em}
body.ca-drive #driveMsg{font-size:16px;padding:10px 14px;max-width:94vw;line-height:1.3;top:8px}
@media(max-width:700px){
  body.ca-drive #viewBtns{bottom:96px}
  body.ca-drive #driveExit{min-height:56px;font-size:19px}
}
@media print{
  body.ca-drive #driveExit,body.ca-drive #driveAlert,body.ca-drive #viewBtns,body.ca-drive #driveMsg{display:none!important}
}


/* Driving: compact nearby-issues bar at the bottom, above Exit, not over the menu or search. */
body.ca-drive #driveChips{display:none!important}
#driveAlert.da-panel,
body.ca-drive #driveAlert.da-panel{
  position:fixed;
  left:50%;
  right:auto;
  top:auto !important;
  transform:translateX(-50%);
  bottom:90px;
  z-index:1350;
  width:min(380px, calc(100vw - 24px));
  max-height:none;
  overflow:visible;
  background:#111;
  color:#fff;
  padding:0;
  border-radius:14px;
  border:2px solid #ffd54a;
  box-shadow:0 4px 16px rgba(0,0,0,.4);
  font:650 15px/1.3 system-ui,sans-serif;
}
body.ca-drive #driveAlert .da-toggle{
  display:block;
  width:100%;
  margin:0;
  padding:10px 14px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#ffd54a;
  font:800 15px/1.25 system-ui,sans-serif;
  text-align:left;
  cursor:pointer;
}
body.ca-drive #driveAlert .da-toggle[aria-expanded="true"]{
  border-radius:12px 12px 0 0;
  border-bottom:1px solid #444;
}
body.ca-drive #driveAlert .da-list{
  max-height:calc(3 * 2.7em);
  overflow-x:hidden;
  overflow-y:auto;
  padding:4px 8px 8px;
  -webkit-overflow-scrolling:touch;
}
body.ca-drive #driveAlert .da-empty{
  font-weight:650;
  color:#fff;
  font-size:14px;
  padding:6px 6px 4px;
}
body.ca-drive #driveAlert .da-title{display:none}
body.ca-drive #driveAlert .da-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:0;
  padding:7px 4px;
  width:100%;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  font:650 14px/1.3 system-ui,sans-serif;
  border-radius:8px;
}
body.ca-drive #driveAlert .da-row:focus,
body.ca-drive #driveAlert .da-row:active{background:#333}
body.ca-drive #driveAlert .da-m{flex:0 0 auto;color:#ffd54a;font-variant-numeric:tabular-nums;min-width:4.2em}
body.ca-drive #viewBtns{bottom:220px;right:8px}
@media (max-width:700px){
  #driveAlert.da-panel,
  body.ca-drive #driveAlert.da-panel{
    bottom:82px;
    width:min(380px, calc(100vw - 24px));
    font:650 14px/1.25 system-ui,sans-serif;
  }
  body.ca-drive #driveAlert .da-toggle{font-size:14px;padding:10px 12px}
  body.ca-drive #driveAlert .da-row{font-size:14px;padding:6px 4px}
  body.ca-drive #viewBtns{bottom:200px}
  body.ca-drive #driveExit{bottom:16px}
}
/* menutidy-v1 start */
/* Happening now: one line, can be closed */
#banner{display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden}
#banner #bannerText{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
#banner.mt-open{white-space:normal}#banner.mt-open #bannerText{white-space:normal}
#banner .mt-x{flex:0 0 auto;border:0;background:#0001;color:inherit;border-radius:8px;min-width:36px;min-height:30px;font-size:1em;cursor:pointer;line-height:1}
body.dark #banner .mt-x{background:#fff2}
#banner.mt-closed{display:none!important}
html.mt-hint-seen #hint{display:none!important}
.layer.soon,#layers label.layer[data-id=plows],#layers label.layer[data-id=amber],#layers label.layer[data-id=power],#layers label.layer[data-id=events]{display:none!important}
.layer small.mt-generic{display:none}
/* More menu: "More info" sub-list */
#more .mt-sub{display:none;flex-direction:column;gap:6px;padding:0!important;background:none!important;border:0!important;min-height:0!important}
#more .mt-sub.open{display:flex}
#more .mt-sub>*{font-size:.95em;padding:10px 12px;min-height:40px;color:#222;background:#f3f3f3;border:1px solid #ccc;text-align:left;border-radius:8px;text-decoration:none;cursor:pointer;margin-left:12px}
body.dark #more .mt-sub>*{background:#333;color:#eee}
#more .mt-moreinfo::after{content:" ▸";float:right}#more .mt-moreinfo[aria-expanded="true"]::after{content:" ▾"}
#welcomeTip{bottom:64px}
body.ca-drive #welcomeTip,body.ca-drive #hint{display:none!important}
#more .mt-lang{display:flex;align-items:center;gap:8px}#more .mt-lang select{flex:1;font-size:1em;min-height:40px;border-radius:6px}
@media(max-width:700px){
 .top{display:grid;grid-template-columns:1fr auto;gap:6px 8px;padding:6px 8px;align-items:center}
 .logo{font-size:1em;min-width:0;grid-column:1 / -1;grid-row:1}.logo-mark{width:28px;height:28px;flex-basis:28px}.logo-text{white-space:nowrap;overflow:visible;text-overflow:unset}
 #search{grid-column:1 / -1;grid-row:2;order:0}
 #q{padding:9px 10px}
 .btns{grid-column:1 / -1;grid-row:3;width:auto;flex-wrap:nowrap;gap:6px;overflow:visible}
 .btns>button,#moreBtn,#layersBtn,#near{font-size:.98em;padding:6px 12px;min-height:44px}
 .btns>#lang{display:none}
 #banner{font-size:.85em;padding:2px 4px 2px 8px;min-height:32px}
 #banner.mt-open{max-height:40vh;overflow:auto}
 #panel{max-height:78vh;padding:0 12px 12px}
 #panel h2{position:sticky;top:0;background:inherit;background-color:#fff;margin:0 -12px;padding:14px 12px 10px;font-size:1.25em;z-index:1;border-bottom:1px solid #e5e5e5}
 body.dark #panel h2{background-color:#15171a;border-color:#333}
 #closePanel{position:sticky;top:8px;float:right;z-index:2;min-height:44px;padding:8px 16px;font-size:1.05em;margin-top:8px}
 #panel .sec-h{width:100%;text-align:left;font-size:1.12em;font-weight:700;min-height:52px;padding:12px 10px;margin-top:8px;border-radius:10px}
 #panel label.layer{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:12px 8px;min-height:52px;font-size:1.05em;border-bottom:1px solid #eee}
 body.dark #panel label.layer{border-color:#2a2a2a}
 #panel label.layer input[type=checkbox]{width:24px;height:24px;flex:0 0 24px;margin:0}
 #panel label.layer .layer-name{flex:1;min-width:0}
 #panel label.layer small{flex:1 1 100%;margin-left:36px}
 #panel .layers-help{display:none}
 #panel .page-nav{display:none}
 #welcomeTip{top:58px;bottom:auto}
 .logo .tagline{display:none}
 body:not(.ca-drive) #viewBtns{gap:5px}
 body:not(.ca-drive) #viewBtns button{min-width:0;font-size:13px;padding:6px 10px;min-height:40px}
}
/* menutidy-v1 end */

/* cams-v1: Hadley line sits after the last layer row on phones instead of covering it */
@media(max-width:700px){#panel .hm-foot{position:static;background:none}}

/* features-v1 */
#naBtn{position:absolute;left:270px;bottom:62px;z-index:1000;background:#fff;color:#1a2b3c;border:0;border-radius:14px;box-shadow:0 1px 4px #0005;padding:4px 10px;font:inherit;font-size:.85em;cursor:pointer}
#naPanel{position:fixed;z-index:1300;left:270px;bottom:96px;width:360px;max-width:calc(100% - 16px);max-height:min(70vh,560px);display:flex;flex-direction:column;background:#fff;color:#1a2b3c;border-radius:12px;box-shadow:0 4px 18px #0006;overflow:hidden}
#naPanel[hidden]{display:none}
#naPanel .na-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #e3e8ee}
#naPanel .na-x{border:0;background:none;font-size:18px;cursor:pointer;padding:2px 6px;color:inherit}
#naPanel .na-body{overflow:auto;padding:4px 12px 10px}
#naPanel h4{margin:10px 0 4px;font-size:.95em}
#naPanel .na-p{margin:8px 0;font-size:.9em}
#naPanel .na-foot{color:#5a6b7c;font-size:.8em}
#naPanel .na-in{width:100%;box-sizing:border-box;padding:8px;border:1px solid #c5ced8;border-radius:8px;font:inherit}
#naPanel .na-sug{display:flex;flex-direction:column;gap:2px;margin-top:6px}
#naPanel .na-s{text-align:left;border:0;background:#f2f5f8;border-radius:6px;padding:7px 8px;font:inherit;cursor:pointer;color:inherit}
#naPanel .na-row{display:flex;gap:8px;padding:6px 0;border-bottom:1px solid #eef1f4;color:inherit;text-decoration:none;font-size:.9em}
#naPanel a.na-row b{color:#0b57d0}
#naPanel .na-e{flex:0 0 auto}
#naPanel .na-src{color:#6b7b8c}
#naPanel .na-lnk{border:0;background:none;color:#0b57d0;text-decoration:underline;cursor:pointer;font:inherit;padding:0}
body.dark #naBtn,body.dark #naPanel{background:#222;color:#eee}body.dark #naPanel .na-s{background:#333}body.dark #naPanel .na-row{border-color:#333}body.dark #naPanel a.na-row b,body.dark #naPanel .na-lnk{color:#8ab4f8}
@media(max-width:700px){#naBtn{left:6px;bottom:58px}#naPanel{left:8px;right:8px;bottom:8px;width:auto;max-height:75vh}}
/* review-fix 2026-11-26: AI label on the Happening-now banner, Ask answers */
#bannerAI{flex:0 0 auto;font-size:.75em;font-style:italic;opacity:.85;padding:1px 6px;border-radius:6px;background:#0000000f;white-space:nowrap}
#bannerAI .ai-short{display:none}
@media (max-width:700px){#bannerAI .ai-long{display:none}#bannerAI .ai-short{display:inline}#banner.mt-open #bannerAI{white-space:normal}#banner.mt-open #bannerAI .ai-long{display:inline}#banner.mt-open #bannerAI .ai-short{display:none}}
.pNote.ai-note{font-style:italic}
#bannerAI .ai-time{font-style:normal;opacity:.95;white-space:nowrap}
#helpBody p{margin:.4em 0}#helpBody .help-note{font-size:.9em;opacity:.85}
#kitList{list-style:none;padding-left:0;margin:1em 0}
#kitList li{display:flex;align-items:flex-start;gap:10px;margin:0 0 10px;line-height:1.4}
#kitList input[type=checkbox]{margin-top:.35em;width:1.2em;height:1.2em;flex:0 0 auto;accent-color:#b3141c}
#kitList label{cursor:pointer}
#kitList li.kit-done label{text-decoration:line-through;opacity:.7}
#kitSrc{font-size:.95em}
#moreBtn{white-space:nowrap}
#u_inspections_geph{display:block;margin:.35em 0 .6em;line-height:1.4;max-width:36em}


/* review5 (Nov 27 2026): phone banner wraps to 2 lines; the "Written by AI" label sits on its own smaller line and is always visible. */
@media (max-width:700px){
 #banner{flex-wrap:wrap;align-items:flex-start;white-space:normal;row-gap:0;column-gap:6px}
 #banner>b{order:1;flex:0 0 auto;line-height:1.3}
 #banner #bannerText{order:2;flex:1 1 0;min-width:0;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:clip;line-height:1.3}
 #banner.mt-open #bannerText{display:block;-webkit-line-clamp:unset}
 #banner .mt-x{order:3;min-height:28px}
 #banner #bannerAI{order:4;flex:0 0 100%;background:none;padding:0 0 1px;font-size:.72em;opacity:.8;white-space:normal}
 #banner #bannerAI[hidden]{display:none}
}
/* review5: the quick-layer row fades out at its right edge so it reads as scrollable and never looks tucked under the zoom buttons. */
#uxQuick{-webkit-mask-image:linear-gradient(to right,#000 88%,transparent);mask-image:linear-gradient(to right,#000 88%,transparent)}
/* review5: the layers panel footer no longer sticks over the last layer group. */
#panel .hm-foot{position:static!important;background:none!important}
/* review5: on phones, Info opens as a bottom sheet; floating buttons and the first tip step aside while it is open. */
@media (max-width:700px){
 #info[open]{position:fixed;left:0;right:0;bottom:0;max-width:none;width:auto;z-index:1200;background:#fff;border-radius:14px 14px 0 0;box-shadow:0 -4px 18px #0004;padding:6px 8px calc(52px + env(safe-area-inset-bottom))}
 body.dark #info[open]{background:#1e1e1e}
 #info[open]>summary{box-shadow:none}
 #info[open] #cards.info-panel{max-height:58vh;box-shadow:none;margin-top:4px;padding:4px 2px}
 #info[open] .info-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;scrollbar-width:none}
 #info[open] .info-tabs::-webkit-scrollbar{display:none}
 #info[open] .info-tab{flex:0 0 auto}
 body:has(#info[open]) #pickBtn, body:has(#info[open]) #naBtn, body:has(#info[open]) #welcomeTip{display:none!important}
}
/* review5: rows that are not built yet ("Coming soon") are hidden from the Layers list. */
#panel label.layer.soon{display:none!important}

/* ===== design28 (Nov 28, 2026): CityWatch Map design review. Scoped to CWM so canadaalerts.ca is unchanged. ===== */
html[data-brand="cwm"]{--brand:#0F4C81;--action:#0F4C81;--warning:#B45309;--danger:#B91C1C;--ok:#15803D;--neutral:#475569}
html[data-brand="cwm"] #welcomeTip{display:none!important}
/* 9 focus */
html[data-brand="cwm"] :focus-visible{outline:3px solid #0F4C81;outline-offset:2px}
html[data-brand="cwm"] header.top :focus-visible{outline:3px solid #FFD34D!important;outline-offset:2px}
html[data-brand="cwm"] header.top #q:focus-visible{outline-offset:1px}
/* 1 popup: never off-screen; phone bottom sheet */
html[data-brand="cwm"] .maplibregl-popup{max-width:calc(100vw - 16px)!important}
html[data-brand="cwm"] .maplibregl-popup-content{font-size:15px;line-height:1.5;color:#1B1B1B;padding:16px 48px 12px 16px}
html[data-brand="cwm"] .maplibregl-popup-content>b:first-child,html[data-brand="cwm"] .maplibregl-popup-content>strong:first-child{font-size:17px;line-height:1.3;font-weight:700}
html[data-brand="cwm"] .maplibregl-popup-content small{font-size:13px;color:#5B6470}
html[data-brand="cwm"] body.dark .maplibregl-popup-content{color:#eee}
/* 10 tap targets */
html[data-brand="cwm"] .maplibregl-popup-close-button{width:44px;height:44px;font-size:24px;line-height:40px;top:4px;right:4px;border-radius:10px;padding:0}
html[data-brand="cwm"] .maplibregl-popup-close-button:focus-visible{outline:3px solid #0F4C81;outline-offset:-6px}
html[data-brand="cwm"] .maplibregl-ctrl-group button{width:44px;height:44px}
html[data-brand="cwm"] #banner .mt-x{min-width:44px;min-height:40px}
@media(max-width:599px){
 html[data-brand="cwm"] .maplibregl-popup{position:fixed!important;left:8px!important;right:8px!important;bottom:8px!important;top:auto!important;transform:none!important;max-width:none!important;width:auto!important;z-index:2500}
 html[data-brand="cwm"] .maplibregl-popup-tip{display:none!important}
 html[data-brand="cwm"] .maplibregl-popup-content{max-height:60vh;overflow:auto;border-radius:16px 16px 0 0;padding:16px 52px 16px 16px;box-shadow:0 -4px 24px rgba(0,0,0,.28)}
}
/* 3 road work: shapes, clusters, legend */
html[data-brand="cwm"] .rw{display:block;box-sizing:border-box;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
html[data-brand="cwm"] .rw0{width:14px;height:14px;background:#C62828;border-radius:2px}
html[data-brand="cwm"] .rw1{width:13px;height:13px;background:#EF6C00;transform:rotate(45deg);border-radius:2px}
html[data-brand="cwm"] .rw2{width:13px;height:13px;background:#757575;border-radius:50%}
html[data-brand="cwm"] .rw-cl{min-width:32px;height:32px;padding:0 6px;border-radius:16px;border:3px solid #fff;color:#fff;font:700 13px/26px system-ui,sans-serif;font-variant-numeric:tabular-nums;box-shadow:0 1px 4px rgba(0,0,0,.4);cursor:pointer;text-align:center}
html[data-brand="cwm"] .rw-cl0{background:#C62828}html[data-brand="cwm"] .rw-cl1{background:#EF6C00}html[data-brand="cwm"] .rw-cl2{background:#757575}
html[data-brand="cwm"] .rw-legend{position:absolute;left:10px;bottom:34px;z-index:900;background:#fff;color:#1B1B1B;font-size:13px;line-height:1.3;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.25);padding:8px 10px;display:flex;flex-direction:column;gap:6px;pointer-events:none}
@media(min-width:701px){html[data-brand="cwm"] .rw-legend{bottom:118px}}
html[data-brand="cwm"] .rw-legend[hidden]{display:none}
html[data-brand="cwm"] .rw-legend span{display:flex;align-items:center;gap:8px}
html[data-brand="cwm"] .rw-legend .rw{flex:0 0 auto;margin:0 1px}
html[data-brand="cwm"] body.dark .rw-legend{background:#1e1e1e;color:#eee}
/* 16 desktop top bar */
@media(min-width:701px){
 html[data-brand="cwm"] header.top #search{flex:1 1 auto;max-width:560px}
 html[data-brand="cwm"] header.top #q{height:44px;font-size:16px;padding:0 12px;box-sizing:border-box}
 html[data-brand="cwm"] header.top .btns{margin-left:auto}
 html[data-brand="cwm"] header.top #near{background:#fff!important;color:#0F4C81!important;border-color:#fff!important;font-weight:700}
 html[data-brand="cwm"] header.top .btns button{font-size:1rem;min-height:2.75rem}
}
/* 2 + 10 phone first screen: one 56px bar (search with location icon, Layers, Menu) */
@media(max-width:700px){
 html[data-brand="cwm"] header.top{display:grid!important;grid-template-columns:minmax(0,1fr) 44px 44px;grid-template-rows:auto 48px;grid-template-areas:"logo logo logo" "search layers menu";column-gap:6px;row-gap:4px;align-items:center;padding:6px 8px 4px!important;position:relative}
 html[data-brand="cwm"] header.top>.logo{grid-area:logo;min-width:0}
 html[data-brand="cwm"] header.top>#search{grid-area:search;width:100%;max-width:none;min-width:0;margin:0}
 html[data-brand="cwm"] header.top>.btns{display:contents!important}
 html[data-brand="cwm"] header.top #q{height:48px;font-size:16px!important;padding:0 50px 0 12px!important;border-radius:8px;box-sizing:border-box}
 html[data-brand="cwm"] #layersBtn{grid-area:layers}html[data-brand="cwm"] #moreBtn{grid-area:menu}
 html[data-brand="cwm"] #near{grid-area:search;justify-self:end;z-index:3;margin-right:2px;background:transparent!important;border:0!important;color:#0F4C81!important}
 html[data-brand="cwm"] #layersBtn#layersBtn,html[data-brand="cwm"] #moreBtn#moreBtn,html[data-brand="cwm"] #near#near{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;font-size:0!important;line-height:0!important;color:transparent!important;border-radius:8px;display:inline-flex!important;align-items:center;justify-content:center;overflow:hidden}
 html[data-brand="cwm"] #layersBtn#layersBtn::before,html[data-brand="cwm"] #moreBtn#moreBtn::before,html[data-brand="cwm"] #near#near::before{content:"";display:block;flex:0 0 22px;width:22px;height:22px;background:#fff;-webkit-mask:var(--ico) center/22px 22px no-repeat;mask:var(--ico) center/22px 22px no-repeat}
 html[data-brand="cwm"] #layersBtn{--ico:url(/icons/lucide/layers.svg)}html[data-brand="cwm"] #moreBtn{--ico:url(/icons/lucide/menu.svg)}html[data-brand="cwm"] #near{--ico:url(/icons/lucide/locate-fixed.svg)}
 html[data-brand="cwm"] #more{right:8px!important;top:calc(100% + 4px)!important}
 html[data-brand="cwm"] #banner#banner{min-height:40px;box-sizing:border-box;font-size:14px}
 html[data-brand="cwm"] #banner#banner:not(.mt-open) #bannerText{display:-webkit-box!important;-webkit-box-orient:vertical!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;-webkit-line-clamp:2!important;line-height:1.3!important}
 html[data-brand="cwm"] #naBtn{display:none!important}
 html[data-brand="cwm"] #near#near::before{background:#0F4C81}
 html[data-brand="cwm"] #info:not(.d28-show){display:none!important}
 html[data-brand="cwm"] #pickBtn{bottom:calc(env(safe-area-inset-bottom) + 56px)!important}
 html[data-brand="cwm"] .rw-legend{bottom:calc(env(safe-area-inset-bottom) + 110px)}
}
@media(min-width:701px){html[data-brand="cwm"] #more .d28-mi{display:none!important}}
/* 20 large text: hide the hint, keep header controls usable */
@media(min-width:1px){html[data-brand="cwm"] body.big #welcomeTip{display:none!important}}

/* ===== design28 (Nov 28, 2026): CityWatch Map design review. Scoped to CWM so canadaalerts.ca is unchanged. ===== */
html[data-brand="ca"]{--brand:#B3141C;--action:#1A5FB4;--warning:#B45309;--danger:#B91C1C;--ok:#15803D;--neutral:#475569}
html[data-brand="ca"] #welcomeTip{display:none!important}
/* 9 focus */
html[data-brand="ca"] :focus-visible{outline:3px solid #1A5FB4;outline-offset:2px}
html[data-brand="ca"] header.top :focus-visible{outline:3px solid #fff!important;outline-offset:2px;box-shadow:0 0 0 2px #1a1a1a!important}
html[data-brand="ca"] header.top #q:focus-visible{outline-offset:1px}
/* 1 popup: never off-screen; phone bottom sheet */
html[data-brand="ca"] .maplibregl-popup{max-width:calc(100vw - 16px)!important}
html[data-brand="ca"] .maplibregl-popup-content{font-size:15px;line-height:1.5;color:#1B1B1B;padding:16px 48px 12px 16px}
html[data-brand="ca"] .maplibregl-popup-content>b:first-child,html[data-brand="ca"] .maplibregl-popup-content>strong:first-child{font-size:17px;line-height:1.3;font-weight:700}
html[data-brand="ca"] .maplibregl-popup-content small{font-size:13px;color:#5B6470}
html[data-brand="ca"] body.dark .maplibregl-popup-content{color:#eee}
/* 10 tap targets */
html[data-brand="ca"] .maplibregl-popup-close-button{width:44px;height:44px;font-size:24px;line-height:40px;top:4px;right:4px;border-radius:10px;padding:0}
html[data-brand="ca"] .maplibregl-popup-close-button:focus-visible{outline:3px solid #1A5FB4;outline-offset:-6px}
html[data-brand="ca"] .maplibregl-ctrl-group button{width:44px;height:44px}
html[data-brand="ca"] #banner .mt-x{min-width:44px;min-height:40px}
@media(max-width:599px){
 html[data-brand="ca"] .maplibregl-popup{position:fixed!important;left:8px!important;right:8px!important;bottom:8px!important;top:auto!important;transform:none!important;max-width:none!important;width:auto!important;z-index:2500}
 html[data-brand="ca"] .maplibregl-popup-tip{display:none!important}
 html[data-brand="ca"] .maplibregl-popup-content{max-height:60vh;overflow:auto;border-radius:16px 16px 0 0;padding:16px 52px 16px 16px;box-shadow:0 -4px 24px rgba(0,0,0,.28)}
}
/* 3 road work: shapes, clusters, legend */
html[data-brand="ca"] .rw{display:block;box-sizing:border-box;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
html[data-brand="ca"] .rw0{width:14px;height:14px;background:#C62828;border-radius:2px}
html[data-brand="ca"] .rw1{width:13px;height:13px;background:#EF6C00;transform:rotate(45deg);border-radius:2px}
html[data-brand="ca"] .rw2{width:13px;height:13px;background:#757575;border-radius:50%}
html[data-brand="ca"] .rw-cl{min-width:32px;height:32px;padding:0 6px;border-radius:16px;border:3px solid #fff;color:#fff;font:700 13px/26px system-ui,sans-serif;font-variant-numeric:tabular-nums;box-shadow:0 1px 4px rgba(0,0,0,.4);cursor:pointer;text-align:center}
html[data-brand="ca"] .rw-cl0{background:#C62828}html[data-brand="ca"] .rw-cl1{background:#EF6C00}html[data-brand="ca"] .rw-cl2{background:#757575}
html[data-brand="ca"] .rw-legend{position:absolute;left:10px;bottom:34px;z-index:900;background:#fff;color:#1B1B1B;font-size:13px;line-height:1.3;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.25);padding:8px 10px;display:flex;flex-direction:column;gap:6px;pointer-events:none}
@media(min-width:701px){html[data-brand="ca"] .rw-legend{bottom:118px}}
html[data-brand="ca"] .rw-legend[hidden]{display:none}
html[data-brand="ca"] .rw-legend span{display:flex;align-items:center;gap:8px}
html[data-brand="ca"] .rw-legend .rw{flex:0 0 auto;margin:0 1px}
html[data-brand="ca"] body.dark .rw-legend{background:#1e1e1e;color:#eee}
/* 16 desktop top bar */
@media(min-width:701px){
 html[data-brand="ca"] header.top #search{flex:1 1 auto;max-width:560px}
 html[data-brand="ca"] header.top #q{height:44px;font-size:16px;padding:0 12px;box-sizing:border-box}
 html[data-brand="ca"] header.top .btns{margin-left:auto}
 html[data-brand="ca"] header.top #near{background:#fff!important;color:#B3141C!important;border-color:#fff!important;font-weight:700}
 html[data-brand="ca"] header.top .btns button{font-size:1rem;min-height:2.75rem}
}
/* 2 + 10 phone first screen: one 56px bar (search with location icon, Layers, Menu) */
@media(max-width:700px){
 html[data-brand="ca"] header.top{display:grid!important;grid-template-columns:minmax(0,1fr) 44px 44px;grid-template-rows:auto 48px;grid-template-areas:"logo logo logo" "search layers menu";column-gap:6px;row-gap:4px;align-items:center;padding:6px 8px 4px!important;position:relative}
 html[data-brand="ca"] header.top>.logo{grid-area:logo;min-width:0}
 html[data-brand="ca"] header.top>#search{grid-area:search;width:100%;max-width:none;min-width:0;margin:0}
 html[data-brand="ca"] header.top>.btns{display:contents!important}
 html[data-brand="ca"] header.top #q{height:48px;font-size:16px!important;padding:0 50px 0 12px!important;border-radius:8px;box-sizing:border-box}
 html[data-brand="ca"] #layersBtn{grid-area:layers}html[data-brand="ca"] #moreBtn{grid-area:menu}
 html[data-brand="ca"] #near{grid-area:search;justify-self:end;z-index:3;margin-right:2px;background:transparent!important;border:0!important;color:#1A5FB4!important}
 html[data-brand="ca"] #layersBtn#layersBtn,html[data-brand="ca"] #moreBtn#moreBtn,html[data-brand="ca"] #near#near{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;font-size:0!important;line-height:0!important;color:transparent!important;border-radius:8px;display:inline-flex!important;align-items:center;justify-content:center;overflow:hidden}
 html[data-brand="ca"] #layersBtn#layersBtn::before,html[data-brand="ca"] #moreBtn#moreBtn::before,html[data-brand="ca"] #near#near::before{content:"";display:block;flex:0 0 22px;width:22px;height:22px;background:#fff;-webkit-mask:var(--ico) center/22px 22px no-repeat;mask:var(--ico) center/22px 22px no-repeat}
 html[data-brand="ca"] #layersBtn{--ico:url(/icons/lucide/layers.svg)}html[data-brand="ca"] #moreBtn{--ico:url(/icons/lucide/menu.svg)}html[data-brand="ca"] #near{--ico:url(/icons/lucide/locate-fixed.svg)}
 html[data-brand="ca"] #more{right:8px!important;top:calc(100% + 4px)!important}
 html[data-brand="ca"] #banner#banner{min-height:40px;box-sizing:border-box;font-size:14px}
 html[data-brand="ca"] #banner#banner:not(.mt-open) #bannerText{display:-webkit-box!important;-webkit-box-orient:vertical!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;-webkit-line-clamp:2!important;line-height:1.3!important}
 html[data-brand="ca"] #naBtn{display:none!important}
 html[data-brand="ca"] #near#near::before{background:#B3141C}
 html[data-brand="ca"] #info:not(.d28-show){display:none!important}
 html[data-brand="ca"] #pickBtn{bottom:calc(env(safe-area-inset-bottom) + 56px)!important}
 html[data-brand="ca"] .rw-legend{bottom:calc(env(safe-area-inset-bottom) + 110px)}
}
@media(min-width:701px){html[data-brand="ca"] #more .d28-mi{display:none!important}}
/* 20 large text: hide the hint, keep header controls usable */
@media(min-width:1px){html[data-brand="ca"] body.big #welcomeTip{display:none!important}}

/* design-ca extras */
html[data-brand="ca"] .maplibregl-popup{max-width:min(340px,calc(100vw - 16px))!important}
html[data-brand="ca"] .maplibregl-popup-content{border-radius:12px;padding:16px 48px 12px 16px;outline:0}
html[data-brand="ca"] .maplibregl-popup-content *{outline-color:transparent}
html[data-brand="ca"] .maplibregl-popup-content a:focus-visible,html[data-brand="ca"] .maplibregl-popup-content button:focus-visible{outline:3px solid #1A5FB4;outline-offset:2px}
html[data-brand="ca"] .rw-cl::before{content:"";position:absolute;inset:-6px}
html[data-brand="ca"] .rw::before{content:"";position:absolute;inset:-16px}
html[data-brand="ca"] .rw-legend.rw-legend-panel{position:static;margin:8px 0;box-shadow:none;border:1px solid #E3E7EC;pointer-events:auto}
@media(max-width:599px){
 html[data-brand="ca"] body:has(.maplibregl-popup) :is(#pickBtn,#watchBtn,#naBtn,#info,#welcomeTip,.rw-legend){display:none!important}
}
@media(max-width:700px){
 html[data-brand="ca"] #uxQuick{padding-right:64px;scroll-snap-type:x proximity;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 64px),transparent)}
}

/* phone-review 20261128: NWS/EC alert labels; hide "coming soon" layer rows */
.nws-lbl{background:none!important;border:0!important}
.nws-lbl span{display:inline-block;transform:translate(-50%,-50%);background:rgba(255,255,255,.92);color:#8b0000;border:2px solid #c00;border-radius:12px;padding:2px 8px;font:700 12px/1.2 system-ui,sans-serif;white-space:nowrap;pointer-events:none}
.nwsPop{font-size:14px;line-height:1.4}.nwsPop a{display:flex;align-items:center;min-height:44px;line-height:1.3}
label.layer.soon{display:none!important}

/* phone-review 20261128 part 2 */
#siteDesc{margin:0;padding:3px 12px;background:#eef3f8;color:#1a1a1a;font-size:14px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid #d5dde6}
body.dark #siteDesc{background:#1d2228;color:#e8e8e8;border-color:#333}
@media print{#siteDesc{display:none}}
#banner #bannerAI{font-size:13px!important;opacity:1!important;line-height:1.35}
#banner #bannerAI a.ai-off{color:inherit;text-decoration:underline;display:inline-block;padding:11px 0;margin:-11px 0}
#banner #bannerAI button.ai-more{background:none;border:0;color:inherit;text-decoration:underline;font:inherit;cursor:pointer;padding:11px 8px;margin:-11px -4px;min-height:44px}
#uxQMore{position:absolute;top:8px;right:62px;z-index:901;min-width:36px;min-height:44px;border-radius:22px;border:1px solid #8899aa;background:#fff;color:#111;font:700 22px/1 system-ui,sans-serif;box-shadow:0 1px 4px #0003;cursor:pointer;padding:0 8px}
#uxQMore[hidden]{display:none}
.maplibregl-popup-content{max-height:60vh;overflow-y:auto;font-size:14px}
.maplibregl-popup-content small{font-size:14px}
.rw-legend .rw-key{display:flex;align-items:center;gap:6px;font-size:13px;line-height:1.3;margin-top:4px;max-width:230px}
.rw-legend .rw-num{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;border-radius:12px;background:#d84315;color:#fff;font-size:12px}
.rw-legend .rw-al{flex:0 0 22px;width:22px;height:14px;border:3px solid #c00;background:rgba(204,0,0,.18);display:inline-block}
.nearBtn{min-height:44px;padding:8px 14px;border-radius:10px;border:1px solid #0f4c81;background:#0f4c81;color:#fff;font:inherit;cursor:pointer;margin-right:6px}
#nearPanel #nearNot,#nearPanel #nearSearch{background:#fff;color:#0f4c81}
