@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#233b3c;background:#f6f8f7;font-size:16px;--green:#103c38;--mint:#bcebdd;--muted:#667979}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #198bab;outline-offset:3px}header{height:84px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce5e1;background:#fff;gap:20px}.brand{text-decoration:none;color:var(--green);display:flex;align-items:center;gap:12px;font-size:20px;letter-spacing:2px;font-weight:800}.brand b{display:block;font-size:10px;letter-spacing:2.4px;margin-top:3px}.mark{display:grid;place-items:center;width:41px;height:41px;background:var(--green);border-radius:50%;color:#c8efde;font-size:34px;line-height:1}.scope{font-size:12px;font-weight:600;letter-spacing:1.7px}.scope span{padding:0 16px;color:#93a5a1}.outline{background:white;border:1px solid #cbd8d2;border-radius:6px;padding:11px 16px;font-size:14px;color:var(--green)}.outline span{margin-left:20px}main{display:grid;grid-template-columns:330px 1fr;height:calc(100dvh - 84px);min-height:0}aside{padding:30px 26px 20px;background:#fff;display:flex;flex-direction:column;overflow-y:auto}.eyebrow,.small-heading,.label{font-size:11px;font-weight:700;letter-spacing:1.4px;color:#617978}.eyebrow{font-size:10px}h1{font-family:Manrope,sans-serif;font-weight:500;font-size:37px;line-height:1.17;letter-spacing:-1.8px;margin:18px 0 13px}.intro{font-size:14px;line-height:1.7;color:var(--muted);margin:0}.rule{height:1px;background:#e3eae6;margin:23px 0}.label{display:block;margin-bottom:10px}select{width:100%;border:1px solid #d6e0dc;border-radius:6px;padding:12px;background:#f8faf9;color:#25463e;font-size:14px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-top:22px}.section-title h2{font-size:14px;font-weight:600}.section-title>span{font-size:10px;color:#839691}.layers{display:grid;gap:8px}.layer{display:flex;align-items:center;text-align:left;border:1px solid transparent;background:white;padding:12px 9px;border-radius:7px;gap:10px;color:#36524b}.layer:hover{background:#f3f7f5}.layer.active{background:#edf5f0;border-color:#b9d5c6}.layer-icon{font-size:24px;background:#e0eae1;border-radius:5px;width:32px;height:36px;text-align:center;line-height:36px}.layer-icon.blue{background:#e7f3f8;color:#387c96}.layer-icon.amber{background:#f3eee1;color:#9e8952}.layer strong{font-size:14px;font-weight:600;display:block}.layer small{display:block;font-size:11px;margin-top:5px;color:#72837d}.radio{width:14px;height:14px;border:1px solid #bdccc4;border-radius:50%;margin-left:auto;flex-shrink:0}.active .radio{border:4px solid var(--green);background:#fff}.opacity{margin:19px 0}.opacity label{font-size:13px;display:flex;justify-content:space-between}.opacity output{color:#6a8175}input[type=range]{width:100%;accent-color:#315e4f;margin:13px 0 0}.status-card{background:#f5f7f3;padding:17px;border:1px solid #e3e9df;border-radius:7px;margin-top:3px}.small-heading{font-size:10px;display:block}.status-card h3{font-size:14px;margin:10px 0 7px}.status-card p{font-size:12px;line-height:1.65;color:#6d7f76;margin:0}.text-button{background:none;border:none;font-size:13px;font-weight:600;padding:13px 0 0;color:#315645;display:flex;justify-content:space-between;width:100%}.aside-bottom{font-size:10px;color:#84928b;margin-top:auto;padding-top:23px;display:flex;align-items:center;gap:6px}.aside-bottom button{margin-left:auto;border:0;background:transparent;color:#567766;font-size:18px}.tiny-line{width:17px;height:2px;background:#9cb2a2}.workspace{position:relative;min-width:0;background:#23382d;overflow:hidden}#map,#googleMap{position:absolute;inset:0}.leaflet-container{background:#263b33}.map-heading{position:absolute;top:26px;left:26px;z-index:500;display:flex;align-items:center;gap:10px;pointer-events:none}.pill{background:#fcfefaf2;padding:10px 14px;font-size:11px;letter-spacing:1px;border-radius:4px;font-weight:700;box-shadow:0 2px 12px #0002}#mapMode{color:white;text-shadow:0 1px 4px black;font-size:12px}.map-actions{position:absolute;right:24px;top:104px;z-index:500}.map-actions button{background:white;border:0;width:36px;height:36px;border-radius:4px;font-size:24px;color:#385d47;box-shadow:0 2px 12px #0003}.leaflet-top.leaflet-right{top:18px;right:14px}.leaflet-control-zoom{border:0!important;box-shadow:0 2px 12px #0003!important}.map-notice{position:absolute;bottom:161px;left:26px;right:26px;z-index:500;display:flex;gap:12px;align-items:center;max-width:580px;padding:12px 15px;background:#17392ff0;color:#fff;border:1px solid #6b8d7877;border-radius:6px;box-shadow:0 5px 25px #0002}.notice-icon{font-family:serif;border:1px solid #a5c0ab;width:20px;height:20px;text-align:center;border-radius:50%;flex-shrink:0}.map-notice strong{font-size:12px;display:block;font-weight:500}.map-notice span:not(.notice-icon){font-size:11px;display:block;color:#c1d2c7;margin-top:4px}.bottom-panel{position:absolute;z-index:500;bottom:35px;left:26px;right:26px;border-radius:8px;background:#fffffff5;box-shadow:0 6px 30px #0002;display:flex;align-items:center;padding:23px;gap:22px;justify-content:space-between}.bottom-panel>div{border-right:1px solid #d9e2dc;padding-right:16px}.bottom-panel strong{display:block;font-family:Manrope,sans-serif;font-weight:600;font-size:23px;margin:9px 0 5px;letter-spacing:-.7px}.bottom-panel strong em{font-style:normal;font-size:14px;color:#7a8f85}.bottom-panel small{font-size:10px;color:#7c8c85}.primary{background:var(--green);color:#f3fbf4;border:none;border-radius:5px;padding:14px 17px;font-size:13px}.primary:hover{background:#226053}.primary span{margin-left:15px}.legend{position:absolute;bottom:12px;left:27px;z-index:500;display:flex;align-items:center;gap:6px;font-size:10px;color:white;text-shadow:0 1px 4px black}.boundary-key{width:15px;border-top:2px solid #dfedc7}.water-key{background:#39b9ed;width:8px;height:8px;border-radius:50%;margin-left:13px}.coordinates{position:absolute;right:26px;top:28px;color:#fff;text-shadow:0 1px 5px black;font-size:11px;z-index:500;padding-right:55px}.leaflet-control-attribution{font-size:9px!important;max-width:70%}dialog{border:1px solid #d0ddd6;border-radius:12px;width:520px;max-width:calc(100% - 28px);padding:32px;color:#29493d;box-shadow:0 20px 100px #001b2755}dialog::backdrop{background:#102d2d99;backdrop-filter:blur(4px)}dialog h2{font-family:Manrope,sans-serif;font-size:26px;letter-spacing:-1px;margin:13px 0}dialog p{line-height:1.65;font-size:14px;color:#63786d}dialog .help{font-size:12px}dialog label{display:block;font-size:14px;margin:20px 0 9px}dialog input:not([type=file]){padding:12px;width:100%;border:1px solid #c5d5ca;border-radius:5px}dialog input[type=file]{font-size:13px;max-width:100%}dialog hr{border:0;border-top:1px solid #dfE6df;margin:24px 0}.close{position:absolute;right:16px;top:12px;border:0;background:transparent;color:#567665;font-size:26px}.text-link{color:#195f51;font-size:14px}#connectionError{color:#9c342c}.leaflet-tooltip{font-family:inherit;font-size:12px}.setup{max-width:850px;margin:60px auto;padding:0 28px;line-height:1.75}.setup h1{font-size:38px}.setup pre{background:#123b33;color:#e2f3e8;border-radius:8px;padding:20px;overflow:auto;font-size:13px}.setup a{color:#146254}.setup li{margin-bottom:15px}
@media(min-width:1500px){main{grid-template-columns:360px 1fr}aside{padding:35px}h1{font-size:43px}.bottom-panel{padding:27px}.bottom-panel strong{font-size:28px}}@media(max-width:1100px){main{grid-template-columns:290px 1fr}aside{padding:25px 20px}.scope{display:none}.bottom-panel{flex-wrap:wrap;gap:16px;padding:18px}.bottom-panel>div{flex:1}.bottom-panel .primary{width:100%}.map-notice{bottom:217px}#mapMode{display:none}.coordinates{display:none}}@media(max-width:700px){header{height:72px;padding:0 16px}.brand{font-size:17px}.brand b{font-size:8px}.outline{padding:9px;font-size:12px}.outline span{margin-left:4px}main{display:flex;flex-direction:column;height:auto;min-height:0}aside{padding:21px;overflow:visible}h1{font-size:30px;line-height:1.15;margin:10px 0}h1 br{display:none}.intro,.rule,.section-title,.status-card,.aside-bottom{display:none}.label{margin-top:20px}.layers{grid-template-columns:repeat(3,1fr);gap:4px;margin-top:16px}.layer{padding:10px 6px;display:block;text-align:center}.layer-icon,.radio,.layer small{display:none}.layer strong{font-size:12px;line-height:1.4}.opacity{margin:13px 0 0}.opacity label{font-size:12px}.workspace{height:680px}.map-heading{left:15px;top:18px}.bottom-panel{left:14px;right:14px;bottom:43px}.bottom-panel strong{font-size:18px}.bottom-panel small{font-size:10px}.bottom-panel>div{padding-right:5px}.map-notice{bottom:239px;left:14px;right:14px}.legend{bottom:23px;left:15px;font-size:9px}.leaflet-control-attribution{max-width:100%}}

/* Compact map workspace: secondary information is available on demand. */
header{height:64px;padding:0 24px}.brand{font-size:17px}.brand b{font-size:8px}.mark{width:34px;height:34px;font-size:28px}main{grid-template-columns:280px 1fr;height:calc(100dvh - 64px)}aside{padding:24px 20px;gap:0}.section-title{margin-top:18px}.layer{padding:10px 8px}.layer small{display:none}.layer-icon{width:28px;height:30px;line-height:30px;font-size:20px}.layer strong{font-size:13px}.opacity{margin:22px 0}.analysis-details{border-top:1px solid #e1e8e4;padding-top:17px;margin-top:0;font-size:13px}.analysis-details summary{cursor:pointer;color:#49645d;font-weight:500;padding:4px 0;list-style-position:inside}.analysis-details summary:focus-visible{outline:3px solid #198bab;outline-offset:3px}.bottom-panel{position:static;display:grid;gap:14px;box-shadow:none;border-radius:0;background:none;padding:20px 0 14px}.bottom-panel>div{border:0;padding:0}.bottom-panel strong{font-size:18px;margin:4px 0}.bottom-panel small{display:block;line-height:1.5}.bottom-panel .primary{width:100%;padding:11px}.map-notice{position:static;display:block;background:#f1f5f2;color:#35564b;padding:12px;box-shadow:none;border:0;margin:0 0 14px}.map-notice .notice-icon{display:none}.map-notice span:not(.notice-icon){color:#62776e;line-height:1.5}.processor-link,.method-link{font-size:12px;color:#4d7063}.processor-link{display:inline-block;margin-bottom:10px}.method-link{background:none;border:0;text-align:left;padding:20px 0 0;margin-top:auto}.map-heading{top:18px;left:18px}#mapMode{display:block;background:#ffffffed;color:#27443b;text-shadow:none;border-radius:5px;padding:9px 12px;font-size:12px;box-shadow:0 2px 12px #0002}.legend{bottom:25px;left:18px;background:#153a2ccc;padding:6px 9px;border-radius:4px}.map-actions{right:20px;top:100px}
@media(min-width:1500px){main{grid-template-columns:280px 1fr}aside{padding:24px 20px}.bottom-panel{padding:20px 0 14px}.bottom-panel strong{font-size:18px}}
@media(max-width:700px){header{height:58px;padding:0 14px}main{height:calc(100dvh - 58px);display:flex;flex-direction:column}aside{padding:12px 14px;flex-shrink:0;max-height:45dvh;overflow-y:auto}.label{margin:0 0 6px;font-size:10px}.section-title{display:none}select{padding:8px}.layers{margin-top:10px}.layer{padding:8px 4px}.layer strong{font-size:11px}.opacity{margin:10px 0 0}.opacity input{margin-top:6px}.analysis-details{margin-top:10px;padding-top:8px}.method-link{padding:10px 0 0;margin-top:0}.workspace{height:auto;min-height:220px;flex:1}.map-heading{top:12px;left:12px}.legend{left:12px;bottom:28px}.bottom-panel{padding:14px 0}.map-notice{margin-bottom:10px}}

.structure-status{font-size:11px;line-height:1.5;color:#62776e;margin:0 0 14px}

.search-form{margin-bottom:8px}.input-row{display:flex;gap:6px}.input-row input{min-width:0;flex:1}.input-row button,#historyPanel button{border:1px solid #cbdad4;border-radius:5px;background:#f6f9f7;color:#214c41;padding:8px;cursor:pointer}#placeQuery{width:100%;padding:9px;border:1px solid #cbdad4;border-radius:5px}.search-results button{display:block;width:100%;text-align:left;padding:9px;border:0;border-bottom:1px solid #dce4df;background:#f0f5f2;color:#214c41}.search-results{font-size:12px;max-height:180px;overflow:auto;margin-bottom:12px}#historyPanel label{display:block;font-size:12px;margin:12px 0 5px}#historyDate{width:100%;padding:8px}#historyPanel .help{font-size:11px;line-height:1.5;margin:10px 0}.action-link{display:block;text-align:center;text-decoration:none;padding:10px;font-size:12px;margin:10px 0}a[aria-disabled=true]{opacity:.5;pointer-events:none}#historyPanel button:disabled{opacity:.5;cursor:default}#loadedHistory button{margin:4px}#historyPanel{margin-top:14px}#historyPanel summary{font-size:14px}#areaStatus{overflow-wrap:anywhere}
/* Sidebar is a flex column: without this, scrollable children (search results) are squeezed to 0 px. */
aside>*{flex-shrink:0}
.search-results:empty{margin:0}
#processDate[aria-disabled=true]{pointer-events:auto;cursor:not-allowed}
.drawing-map,.drawing-map .leaflet-interactive{cursor:crosshair!important}
.drawing-map{touch-action:none}
/* Clear-day calendar */
.clear-calendar{border:1px solid #dce4df;border-radius:6px;padding:8px;margin-top:4px}
.cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.cal-head strong{font-size:13px;color:#214c41}
#historyPanel .cal-head button{padding:2px 10px;font-size:16px;line-height:1.2}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}
.cal-dow{font-size:10px;color:#84928b;padding:2px 0}
#historyPanel .cal-day{padding:6px 0;font-size:12px;border-radius:4px;border:1px solid transparent;background:transparent;color:#b3bfb9;cursor:not-allowed}
#historyPanel .cal-day:disabled{opacity:1}
#historyPanel .cal-day.cloudy{text-decoration:line-through;color:#9aa7a0;background:#f1f4f2}
#historyPanel .cal-day.clear{background:#e3f4ec;border-color:#9fd3bb;color:#17583f;font-weight:600;cursor:pointer}
#historyPanel .cal-day.unverified{border:1px dashed #9fd3bb;color:#214c41;cursor:pointer}
#historyPanel .cal-day.selected{background:#1f6b52;border-color:#1f6b52;color:#fff}
#historyPanel .cal-day:focus-visible{outline:2px solid #198bab;outline-offset:1px}
.clear-calendar[aria-busy=true] .cal-grid{opacity:.45}
.cal-legend{font-size:10px;color:#5d7167;display:flex;gap:4px 10px;flex-wrap:wrap;margin:8px 0 0}
.cal-legend .key{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px;border:1px solid #dce4df}
.cal-legend .key.clear{background:#e3f4ec;border-color:#9fd3bb}.cal-legend .key.cloudy{background:#f1f4f2}
#historyPanel #calStatus{margin:6px 0 0}
/* Loading bar across the top of the map; hidden when idle. */
.load-bar{position:absolute;top:0;left:0;right:0;height:4px;z-index:1000;background:rgba(255,255,255,.3);overflow:hidden;pointer-events:none}
.load-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#2fb9ed,#7de4d0);transition:width .3s ease}
.load-note{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:1000;max-width:calc(100% - 32px);background:rgba(12,39,44,.88);color:#fff;font-size:12px;padding:6px 12px;border-radius:14px;pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-heading{top:44px}
.day-result{font-size:12px;line-height:1.5;margin:8px 0 0;padding:8px;border-radius:5px;background:#eef6f2;color:#17583f}
.day-result.error{background:#fbeeee;color:#8a2c2c}
.leaflet-image-layer.day-preview{image-rendering:pixelated}
/* Place and road names over the imagery. CARTO's label text is grey; brighten it to near-white, keeping the dark halo. */
.place-labels{filter:brightness(1.9) contrast(1.15)}
.map-actions{display:flex;flex-direction:column;gap:8px}
.map-actions .labels-toggle{font-size:14px;font-weight:700;color:#8a9a93}
.map-actions .labels-toggle.active{color:#fff;background:#1f6b52}
.sheet-handle{display:none}
.load-note.toast{white-space:normal;text-align:center;max-width:min(92%,420px)}
/* Phones: full-screen map, controls in a bottom sheet that is dragged or tapped between peek / half / full. */
@media(max-width:700px){
header{height:52px;padding:0 12px}
.brand{font-size:15px;gap:9px}
main{position:relative;display:block;height:calc(100dvh - 52px)}
.workspace{position:absolute;inset:0;height:auto;min-height:0}
aside#sidePanel{position:absolute;left:0;right:0;bottom:0;z-index:1100;max-height:none;height:var(--sheet-peek,150px);padding:0 16px calc(14px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;box-shadow:0 -6px 24px #0003;overflow-y:hidden;transition:height .25s ease;overscroll-behavior:contain}
aside#sidePanel.sheet-open{overflow-y:auto}
aside#sidePanel.dragging{transition:none}
.sheet-handle{display:flex;position:sticky;top:0;z-index:2;background:#fff;justify-content:center;padding:10px 0 12px;margin:0 -16px;cursor:grab;touch-action:none}
.sheet-handle span{width:44px;height:5px;border-radius:3px;background:#c3d1ca}
.sheet-handle:focus-visible span{outline:2px solid #198bab;outline-offset:3px}
#placeQuery,select,#historyPanel input{font-size:16px}
#placeQuery{padding:11px}
.input-row button,#historyPanel button{min-height:40px}
.layers{gap:6px}
.layer{min-height:48px}
#historyPanel .cal-day{min-height:38px;font-size:13px}
#historyPanel .cal-head button{min-width:40px;min-height:36px}
.opacity input{height:28px}
.leaflet-bottom{bottom:var(--sheet-peek,150px)}
.legend{top:10px;bottom:auto;left:10px;font-size:10px}
.leaflet-control-attribution{font-size:9px;line-height:1.3;max-height:36px;overflow-y:auto}
.map-actions{top:136px;right:22px}
.map-actions button{width:42px;height:42px}
.leaflet-touch .leaflet-bar a,.leaflet-bar a{width:42px;height:42px;line-height:42px;font-size:20px}
.leaflet-top.leaflet-right{margin-right:0}
.load-note{top:10px}
dialog{padding:22px 18px;max-height:calc(100dvh - 32px);overflow:auto}
dialog h2{font-size:22px}
}
/* Phones held sideways: keep the header slim so the map keeps its height. */
@media(max-height:500px) and (min-width:701px){header{height:46px;padding:0 14px}main{height:calc(100dvh - 46px)}.brand{font-size:14px}.brand .mark{transform:scale(.8)}aside{padding-top:12px}}
/* Header: the dates the province snapshot combines (updated daily). */
.snapshot-dates{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;line-height:1.25;color:var(--green);text-align:right}
.snapshot-label{font-size:10px;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;color:#617978}
.snapshot-dates strong{font-size:14px;font-weight:600;white-space:nowrap}
@media(max-width:700px){.snapshot-dates strong{font-size:12px}.snapshot-label{font-size:9px}.brand span:last-child{font-size:13px}.brand{letter-spacing:.6px;gap:7px}.brand b{letter-spacing:1.2px}header{gap:8px}header .outline{padding:8px 10px;font-size:12px;flex-shrink:0}header .outline span{display:none}}
@media(max-width:380px){.brand span:last-child{display:none}}
/* Canal network layer */
.canal-legend{display:inline-flex;align-items:center;gap:6px;margin-left:13px}
.canal-key{width:15px;border-top:2px solid #8fe3ff}
.drain-key{width:15px;border-top:2px dashed #d9b27a}
#canalsToggle{font-size:20px}
@media(max-width:700px){.canal-legend{margin-left:8px}}
