
 .tdp-water-app{
  --tdp-deep:#154b67;
  --tdp-blue:#29abe2;
  --tdp-cyan:#64c9ed;
  --tdp-ink:#173746;
  --tdp-muted:#6b7f8a;
  --tdp-line:rgba(21,75,103,.17);
  --tdp-glass:rgba(255,255,255,.91);
  --tdp-shadow:0 14px 38px rgba(9,49,69,.16);
}
.tdp-water-app *{box-sizing:border-box}

.tdp-water-app button,.tdp-water-app select,.tdp-water-app input{font:inherit}
.tdp-water-app button{cursor:pointer}
.tdp-water-app .map-widget{width:min(1440px,100%);margin:0 auto;background:transparent;isolation:isolate}
.tdp-water-app .map-frame{position:relative;height:var(--tdp-map-height,clamp(560px,72vh,820px));min-height:360px;overflow:hidden;background:transparent;border:0}
.tdp-water-app .map-canvas{position:absolute;inset:0;overflow:hidden;background:transparent;touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none;outline:none}
.tdp-water-app .tile-pane,.tdp-water-app .boundary-pane,.tdp-water-app .marker-pane,.tdp-water-app .location-pane{position:absolute;inset:0;overflow:hidden}
.tdp-water-app .tile-pane{z-index:1;background:transparent;will-change:clip-path}
.tdp-water-app .tile-pane img{position:absolute;width:256px;height:256px;max-width:none;user-select:none;-webkit-user-drag:none;opacity:0;transition:opacity .18s ease;filter:saturate(.82) brightness(1.035)}
.tdp-water-app .tile-pane.satellite img{filter:saturate(.96) brightness(.98) contrast(1.02)}
.tdp-water-app .tile-pane img.loaded{opacity:1}
.tdp-water-app .boundary-pane{z-index:3;pointer-events:none;width:100%;height:100%}
.tdp-water-app .boundary-pane path{vector-effect:non-scaling-stroke;fill:rgba(41,171,226,.025);stroke:#154b67;stroke-width:1.25;stroke-linejoin:round;stroke-linecap:round}
.tdp-water-app .boundary-pane path.basin{fill:rgba(41,171,226,.035);stroke:#29abe2;stroke-width:2;stroke-dasharray:7 5}
.tdp-water-app .boundary-pane text{font:700 11px "Oxygen",Arial,sans-serif;fill:#154b67;paint-order:stroke;stroke:rgba(255,255,255,.92);stroke-width:4px;stroke-linejoin:round;text-anchor:middle}
.tdp-water-app .marker-pane{z-index:5;pointer-events:none}
.tdp-water-app .location-pane{z-index:6;pointer-events:none}
.tdp-water-app .user-location{position:absolute;width:18px;height:18px;transform:translate(-50%,-50%);border:3px solid #fff;border-radius:50%;background:#2563eb;box-shadow:0 0 0 7px rgba(37,99,235,.18),0 4px 12px rgba(19,63,86,.28)}
.tdp-water-app .user-location::after{content:"";position:absolute;inset:-12px;border:1px solid rgba(37,99,235,.34);border-radius:50%;animation:locationPulse 2.2s ease-out infinite}
@keyframes locationPulse{0%{transform:scale(.55);opacity:.8}75%,100%{transform:scale(1.35);opacity:0}}
.tdp-water-app .marker{--marker:#29abe2;position:absolute;width:38px;height:38px;border:0;background:transparent;padding:0;transform:translate(-50%,-100%);pointer-events:auto;filter:drop-shadow(0 5px 8px rgba(0,0,0,.24));transition:transform .16s ease,filter .16s ease;z-index:2}
.tdp-water-app .marker:hover,.tdp-water-app .marker:focus-visible,.tdp-water-app .marker.active{transform:translate(-50%,-100%) scale(1.16);filter:drop-shadow(0 8px 12px rgba(0,0,0,.3));z-index:20;outline:none}
.tdp-water-app .marker-pin{display:grid;place-items:center;width:34px;height:34px;border:2px solid #fff;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);background:var(--marker);box-shadow:0 0 0 1px rgba(21,75,103,.16)}
.tdp-water-app .marker-pin svg{width:18px;height:18px;transform:rotate(45deg);stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .marker-label{position:absolute;left:50%;top:39px;transform:translateX(-50%);display:none;white-space:nowrap;border-radius:7px;padding:5px 7px;background:rgba(16,54,73,.93);color:#fff;font-size:10px;font-weight:700;box-shadow:0 5px 15px rgba(0,0,0,.2)}
.tdp-water-app .marker:hover .marker-label,.tdp-water-app .marker:focus-visible .marker-label{display:block}
.tdp-water-app .topbar{position:absolute;z-index:30;top:15px;left:15px;right:15px;display:flex;align-items:flex-start;justify-content:flex-end;gap:12px;pointer-events:none}
.tdp-water-app .map-tools,.tdp-water-app .info-card,.tdp-water-app .map-control-stack,.tdp-water-app .status-pill{pointer-events:auto;background:var(--tdp-glass);border:1px solid var(--tdp-line);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:var(--tdp-shadow)}
.tdp-water-app .map-tools{display:flex;align-items:center;gap:6px;border-radius:12px;padding:6px}
.tdp-water-app .map-tools label{font-size:10px;font-weight:700;color:var(--tdp-muted);padding-left:5px;text-transform:uppercase;letter-spacing:.07em}
.tdp-water-app .map-tools select{height:34px;min-width:148px;border:0;border-radius:8px;background:#f2f8fb;color:var(--tdp-deep);font-size:12px;font-weight:700;padding:0 30px 0 10px;outline:none}
.tdp-water-app .map-control-stack{position:absolute;z-index:24;left:15px;top:15px;display:flex;flex-direction:column;width:39px;border-radius:10px;overflow:hidden;background:rgba(255,255,255,.94);box-shadow:0 5px 13px rgba(23,55,70,.2)}
.tdp-water-app .map-control-stack button{position:relative;width:38px;height:38px;display:grid;place-items:center;border:0;border-bottom:1px solid rgba(21,75,103,.13);background:rgba(255,255,255,.97);color:#263c4c;padding:0;transition:background .15s ease,color .15s ease}
.tdp-water-app .map-control-stack button:last-child{border-bottom:0}
.tdp-water-app .map-control-stack > button:nth-last-child(2){border-bottom:1px solid rgba(21,75,103,.13)}
.tdp-water-app .map-control-stack button:hover,.tdp-water-app .map-control-stack button:focus-visible{background:#eef8fc;color:#087da8;outline:none}
.tdp-water-app .map-control-stack button.active,.tdp-water-app .map-control-stack button[aria-pressed="true"]{background:#eef5ff;color:#245de8}
.tdp-water-app .map-control-stack svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .map-control-stack .control-label{position:absolute;left:48px;top:50%;transform:translateY(-50%);display:none;white-space:nowrap;padding:5px 7px;border-radius:6px;background:rgba(17,51,67,.92);color:#fff;font-size:10px;font-weight:700;box-shadow:0 4px 12px rgba(0,0,0,.16)}
.tdp-water-app .map-control-stack button:hover .control-label,.tdp-water-app .map-control-stack button:focus-visible .control-label{display:block}
.tdp-water-app .info-card{position:absolute;z-index:20;left:15px;bottom:130px;width:min(340px,calc(100% - 30px));border-radius:15px;padding:13px 14px;transition:opacity .18s ease,transform .18s ease}
.tdp-water-app .info-head{display:flex;align-items:flex-start;gap:10px}
.tdp-water-app .info-icon{--marker:#29abe2;flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--marker);color:#fff}
.tdp-water-app .info-icon svg{width:20px;height:20px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .info-type{display:block;color:var(--tdp-blue);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.tdp-water-app .info-title{margin:2px 0 0;color:var(--tdp-deep);font-size:18px;line-height:1.15}
.tdp-water-app .info-text{margin:9px 0 0;color:var(--tdp-muted);font-size:11px;line-height:1.48}
.tdp-water-app .info-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.tdp-water-app .info-grid div{padding:8px 9px;border-radius:9px;background:#f1f8fb;border:1px solid rgba(21,75,103,.1)}
.tdp-water-app .info-grid span{display:block;color:var(--tdp-muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em;font-weight:700}
.tdp-water-app .info-grid strong{display:block;color:var(--tdp-deep);font-size:12px;margin-top:2px}
.tdp-water-app .close-info{position:absolute;right:8px;top:8px;width:27px;height:27px;border:0;border-radius:7px;background:transparent;color:#76909d;font-size:17px;display:none}
.tdp-water-app .info-card.has-selection .close-info{display:block}
.tdp-water-app .close-info:hover{background:#edf7fb;color:var(--tdp-deep)}
.tdp-water-app .status-pill{position:absolute;z-index:20;left:50%;top:16px;transform:translateX(-50%);border-radius:999px;padding:7px 11px;color:var(--tdp-muted);font-size:10px;font-weight:700;opacity:0;pointer-events:none;transition:opacity .2s ease}
.tdp-water-app .status-pill.show{opacity:1}
.tdp-water-app .attribution{position:absolute;z-index:20;right:12px;bottom:111px;padding:3px 6px;border-radius:5px;background:rgba(255,255,255,.82);color:#607683;font-size:9px}
.tdp-water-app .attribution a{color:#276f90;text-decoration:none}
.tdp-water-app .empty-map{position:absolute;z-index:9;left:50%;top:48%;transform:translate(-50%,-50%);color:#66818f;font-size:12px;font-weight:700;display:none}
@media(max-width:760px){
  .tdp-water-app .map-frame{height:680px;min-height:620px}
  .tdp-water-app .topbar{top:9px;left:9px;right:9px;display:block}
  .tdp-water-app .map-tools{position:absolute;right:0;top:0;padding:4px}
  .tdp-water-app .map-tools label{display:none}
  .tdp-water-app .map-tools select{min-width:108px;width:108px;height:32px;font-size:10px}
  .tdp-water-app .map-control-stack{left:9px;top:9px;width:39px}
  .tdp-water-app .map-control-stack button{width:38px;height:38px}
  .tdp-water-app .map-control-stack .control-label{display:none!important}
  .tdp-water-app .status-pill{left:56px;right:9px;top:58px;transform:none;max-width:none;text-align:center}
  .tdp-water-app .boundary-pane text{display:none}
  .tdp-water-app .info-card{left:9px;bottom:128px;width:calc(100% - 68px);padding:11px 12px}
  .tdp-water-app .info-text{display:none}
  .tdp-water-app .info-grid{grid-template-columns:repeat(2,1fr)}
  .tdp-water-app .attribution{right:7px;bottom:108px;font-size:8px}
}

/* Compact multi-category dropdown */
.tdp-water-app .category-picker{position:relative;pointer-events:auto}
.tdp-water-app .category-trigger{height:46px;min-width:225px;max-width:285px;display:flex;align-items:center;gap:9px;border:1px solid var(--tdp-line);border-radius:12px;padding:6px 10px 6px 7px;background:var(--tdp-glass);color:var(--tdp-deep);box-shadow:var(--tdp-shadow);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:11px;font-weight:700;text-align:left}
.tdp-water-app .category-trigger:hover,.tdp-water-app .category-trigger:focus-visible{border-color:rgba(41,171,226,.55);outline:none;background:rgba(255,255,255,.97)}
.tdp-water-app .category-trigger[aria-expanded="true"]{border-color:var(--tdp-blue);box-shadow:0 0 0 2px rgba(41,171,226,.14),var(--tdp-shadow)}
.tdp-water-app .picker-icon{--picker:#29abe2;width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:9px;background:var(--picker);color:#fff}
.tdp-water-app .picker-icon svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .picker-label{min-width:0;flex:1;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tdp-water-app .picker-chevron{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .16s ease}
.tdp-water-app .category-trigger[aria-expanded="true"] .picker-chevron{transform:rotate(180deg)}
.tdp-water-app .category-menu{position:absolute;top:53px;right:0;width:286px;max-height:min(520px,calc(100vh - 95px));overflow:auto;padding:6px;border:1px solid var(--tdp-line);border-radius:13px;background:rgba(255,255,255,.97);box-shadow:0 18px 42px rgba(9,49,69,.2);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}
.tdp-water-app .category-menu[hidden]{display:none!important}
.tdp-water-app .category-option{--option:#29abe2;width:100%;display:flex;align-items:center;gap:9px;border:0;border-radius:9px;padding:7px;background:transparent;color:var(--tdp-deep);text-align:left}
.tdp-water-app .category-option:hover,.tdp-water-app .category-option:focus-visible{background:#eef8fc;outline:none}
.tdp-water-app .category-option.active{background:#eaf7fc;box-shadow:inset 0 0 0 1px rgba(41,171,226,.28)}
.tdp-water-app .option-icon{width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;border-radius:8px;background:var(--option)}
.tdp-water-app .option-icon svg{width:17px;height:17px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .option-copy{min-width:0;flex:1}
.tdp-water-app .option-copy strong{display:block;font-size:10.5px;line-height:1.15}
.tdp-water-app .option-copy span{display:block;margin-top:2px;color:var(--tdp-muted);font-size:9px}
.tdp-water-app .option-check{width:16px;height:16px;opacity:0;fill:none;stroke:var(--tdp-blue);stroke-width:2.4}
.tdp-water-app .category-option.active .option-check{opacity:1}
.tdp-water-app .category-menu-actions{position:sticky;top:-6px;z-index:2;display:grid;grid-template-columns:1fr 1fr 1fr;gap:5px;margin:-1px -1px 5px;padding:6px;background:rgba(255,255,255,.97);border-bottom:1px solid rgba(21,75,103,.1)}
.tdp-water-app .category-action{height:30px;border:1px solid rgba(21,75,103,.13);border-radius:8px;background:#f3f8fb;color:var(--tdp-deep);font-size:9px;font-weight:700}
.tdp-water-app .category-action:hover,.tdp-water-app .category-action:focus-visible{outline:none;border-color:rgba(41,171,226,.55);background:#eaf7fc}
.tdp-water-app .category-action.done{background:var(--tdp-deep);border-color:var(--tdp-deep);color:#fff}
.tdp-water-app .category-action.done:hover,.tdp-water-app .category-action.done:focus-visible{background:#0f3e56}
.tdp-water-app .category-options{display:grid;gap:1px}
.tdp-water-app .info-card[hidden]{display:none!important}
.tdp-water-app .info-card{bottom:15px}
.tdp-water-app .attribution{bottom:10px}
.tdp-water-app .empty-map{display:block;padding:8px 11px;border:1px solid rgba(21,75,103,.11);border-radius:999px;background:rgba(255,255,255,.84);box-shadow:0 5px 16px rgba(17,54,72,.08);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
@media(max-width:760px){
 .tdp-water-app .topbar{display:flex;align-items:flex-start;justify-content:flex-end;gap:6px}
 .tdp-water-app .map-tools{position:static;padding:4px}
 .tdp-water-app .map-tools select{min-width:104px;width:104px;height:30px}
 .tdp-water-app .info-card{left:9px;bottom:9px;width:calc(100% - 68px)}
 .tdp-water-app .attribution{right:7px;bottom:5px}
}

/* Infrastructure category control integrated into the left map toolbar */
.tdp-water-app .visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.tdp-water-app .map-control-stack{overflow:visible}
.tdp-water-app .map-category-picker{position:relative;width:38px;height:38px;pointer-events:auto}
.tdp-water-app .map-category-button{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;border:0!important;border-radius:0 0 10px 10px!important;padding:0!important;box-shadow:none!important;background:rgba(255,255,255,.97)!important;color:#263c4c!important;display:grid!important;place-items:center!important;text-align:center!important}
.tdp-water-app .map-category-button:hover,.tdp-water-app .map-category-button:focus-visible,.tdp-water-app .map-category-button[aria-expanded="true"]{background:#eef8fc!important;color:#087da8!important;box-shadow:none!important;outline:none!important}
.tdp-water-app .map-category-button .picker-icon{width:38px;height:38px;flex:0 0 38px;border-radius:0 0 10px 10px;background:transparent!important;color:var(--picker,#29abe2)}
.tdp-water-app .map-category-button .picker-icon svg{width:18px;height:18px;stroke:currentColor!important}
.tdp-water-app .map-category-button .control-label{position:absolute;left:48px;top:50%;transform:translateY(-50%);display:none;white-space:nowrap;padding:5px 7px;border-radius:6px;background:rgba(17,51,67,.92);color:#fff;font-size:10px;font-weight:700;box-shadow:0 4px 12px rgba(0,0,0,.16)}
.tdp-water-app .map-category-button:hover .control-label,.tdp-water-app .map-category-button:focus-visible .control-label{display:block}
.tdp-water-app .map-category-picker .category-menu{position:absolute;top:-190px;bottom:auto;left:48px;right:auto;width:286px;max-height:min(520px,calc(100vh - 52px));z-index:60}
@media(max-width:760px){
 .tdp-water-app .map-category-button .control-label{display:none!important}
 .tdp-water-app .map-category-picker .category-menu{position:absolute;top:-190px;bottom:auto;left:48px;right:auto;width:calc(100vw - 68px);max-height:430px}
}



.tdp-water-app .marker-canvas{position:absolute;inset:0;z-index:5;width:100%;height:100%;pointer-events:none}
.tdp-water-app .map-tooltip{position:absolute;z-index:18;pointer-events:none;max-width:230px;padding:6px 8px;border-radius:7px;background:rgba(16,54,73,.94);color:#fff;font-size:10px;font-weight:700;line-height:1.3;box-shadow:0 6px 16px rgba(0,0,0,.2);transform:translate(10px,-100%)}
.tdp-water-app .boundary-pane path.basin{fill:rgba(41,171,226,.022);stroke:var(--basin-color,#29abe2);stroke-width:1.7;stroke-dasharray:none;pointer-events:visiblePainted}

/* Data-layer controls are deliberately separate from map navigation. */
.tdp-water-app .map-control-stack{overflow:hidden}
.tdp-water-app .data-layer-controls{position:absolute;z-index:32;left:15px;top:217px;display:flex;flex-direction:column;gap:8px;pointer-events:auto}
.tdp-water-app .layer-category-picker{position:relative;width:40px;height:40px}
.tdp-water-app .layer-control{position:relative;width:40px;height:40px;min-width:40px;display:grid;place-items:center;border:1px solid rgba(21,75,103,.16);border-radius:10px;padding:0;background:rgba(255,255,255,.95);color:#263c4c;box-shadow:0 5px 13px rgba(23,55,70,.18);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);transition:background .15s ease,color .15s ease,border-color .15s ease,transform .15s ease}
.tdp-water-app .layer-control:hover,.tdp-water-app .layer-control:focus-visible,.tdp-water-app .layer-control[aria-expanded="true"]{background:#eef8fc;color:#087da8;border-color:rgba(41,171,226,.5);outline:none}
.tdp-water-app .layer-control:active{transform:translateY(1px)}
.tdp-water-app .layer-control.active,.tdp-water-app .layer-control[aria-pressed="true"]{background:#e9f7fd;color:#087da8;border-color:rgba(41,171,226,.55)}
.tdp-water-app .layer-control svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .layer-category-button .picker-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:transparent!important;color:var(--picker,#29abe2)}
.tdp-water-app .layer-category-button .picker-icon svg{width:19px;height:19px;stroke:currentColor!important}
.tdp-water-app .layer-control .control-label{position:absolute;left:50px;top:50%;transform:translateY(-50%);display:none;white-space:nowrap;padding:5px 7px;border-radius:6px;background:rgba(17,51,67,.93);color:#fff;font-size:10px;font-weight:700;box-shadow:0 4px 12px rgba(0,0,0,.16)}
.tdp-water-app .layer-control:hover .control-label,.tdp-water-app .layer-control:focus-visible .control-label{display:block}
.tdp-water-app .layer-count{position:absolute;right:-5px;top:-5px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:999px;background:#154b67;color:#fff;font-size:8px;font-weight:700;line-height:1}
.tdp-water-app .layer-count[hidden]{display:none!important}
.tdp-water-app .layer-category-picker .category-menu{position:absolute;left:50px;right:auto;top:0;width:286px;max-height:min(520px,calc(100vh - 40px));z-index:100}
.tdp-water-app .category-loading{padding:18px 12px;color:var(--tdp-muted);font-size:10px;font-weight:700;text-align:center}
@media(max-width:760px){
 .tdp-water-app .data-layer-controls{left:9px;top:211px}
 .tdp-water-app .layer-control .control-label{display:none!important}
 .tdp-water-app .layer-category-picker .category-menu{left:50px;top:0;width:min(286px,calc(100vw - 70px));max-height:430px}
}


/* WordPress dashboard shell */
.tdp-water-app{--tdp-deep:#154b67;--tdp-blue:#29abe2;--tdp-cyan:#64c9ed;--tdp-ink:#173746;--tdp-muted:#6b7f8a;--tdp-line:rgba(21,75,103,.17);--tdp-glass:rgba(255,255,255,.91);--tdp-shadow:0 14px 38px rgba(9,49,69,.16);position:relative;width:100%;max-width:1440px;margin:0 auto;font-family:"Oxygen",Arial,sans-serif;color:var(--tdp-ink);line-height:1.4}
.tdp-water-app *{box-sizing:border-box}.tdp-water-app button,.tdp-water-app select,.tdp-water-app input{font:inherit}.tdp-water-app .geometry-canvas{position:absolute;inset:0;z-index:4;width:100%;height:100%;pointer-events:none}
.tdp-water-app .tdp-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 20px;padding:2px 0}.tdp-water-app .tdp-dashboard-head h1{margin:0;color:var(--tdp-deep);font-size:clamp(30px,4vw,48px);line-height:1.05;font-weight:700}.tdp-water-app .tdp-dashboard-head p{margin:8px 0 0;color:var(--tdp-muted);font-size:14px}.tdp-water-app .tdp-export-button{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:10px 16px;border-radius:10px;background:var(--tdp-deep);color:#fff!important;text-decoration:none!important;font-size:12px;font-weight:700;box-shadow:0 8px 20px rgba(21,75,103,.2)}.tdp-water-app .tdp-export-button:hover{background:#0f3e56}.tdp-water-app .tdp-export-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .tdp-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.tdp-water-app .tdp-stat-card{padding:15px 16px;border:1px solid var(--tdp-line);border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(9,49,69,.07)}.tdp-water-app .tdp-stat-card span,.tdp-water-app .tdp-stat-card small{display:block;color:var(--tdp-muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em}.tdp-water-app .tdp-stat-card strong{display:block;margin:5px 0 2px;color:var(--tdp-deep);font-size:clamp(22px,3vw,31px);line-height:1.05}.tdp-water-app .tdp-stat-card small{text-transform:none;letter-spacing:0;font-weight:400;font-size:10px}
.tdp-water-app .tdp-filter-panel{margin-bottom:12px;padding:15px;border:1px solid var(--tdp-line);border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(9,49,69,.07)}.tdp-water-app .tdp-filter-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;color:var(--tdp-deep);font-size:12px}.tdp-water-app .tdp-filter-title span{display:flex;gap:5px;color:var(--tdp-muted)}.tdp-water-app .tdp-filter-title button{border:0;background:transparent;color:var(--tdp-blue);font-size:10px;font-weight:700;padding:0}.tdp-water-app .tdp-type-filter-list{display:flex;flex-wrap:wrap;gap:7px}.tdp-water-app .tdp-type-chip{--chip:#29abe2;display:inline-flex;align-items:center;gap:6px;min-height:31px;border:1px solid rgba(21,75,103,.14);border-radius:999px;padding:5px 9px;background:#f7fafb;color:var(--tdp-deep);font-size:10px;font-weight:700}.tdp-water-app .tdp-type-chip::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--chip)}.tdp-water-app .tdp-type-chip.active{background:#eaf7fc;border-color:rgba(41,171,226,.45);box-shadow:inset 0 0 0 1px rgba(41,171,226,.08)}.tdp-water-app .tdp-type-chip:not(.active){opacity:.55}.tdp-water-app .tdp-select-filters{display:grid;grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) minmax(220px,1.35fr);gap:8px;margin-top:12px}.tdp-water-app .tdp-select-filters select,.tdp-water-app .tdp-search-label{width:100%;height:39px;border:1px solid rgba(21,75,103,.16);border-radius:9px;background:#f7fafb;color:var(--tdp-deep);font-size:11px;font-weight:700;outline:none}.tdp-water-app .tdp-select-filters select{padding:0 34px 0 10px}.tdp-water-app .tdp-search-label{display:flex;align-items:center;gap:7px;padding:0 10px}.tdp-water-app .tdp-search-label svg{width:16px;height:16px;fill:none;stroke:var(--tdp-muted);stroke-width:2}.tdp-water-app .tdp-search-label input{min-width:0;flex:1;border:0;background:transparent;outline:none;color:var(--tdp-deep);font-size:11px}
.tdp-water-app .tdp-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;color:var(--tdp-muted);font-size:11px;font-weight:700}.tdp-water-app .tdp-view-toggle{display:flex;padding:3px;border:1px solid var(--tdp-line);border-radius:9px;background:#fff}.tdp-water-app .tdp-view-toggle button{border:0;border-radius:7px;padding:7px 10px;background:transparent;color:var(--tdp-muted);font-size:10px;font-weight:700}.tdp-water-app .tdp-view-toggle button.active{background:var(--tdp-deep);color:#fff}.tdp-water-app .tdp-view-panel{display:none}.tdp-water-app .tdp-view-panel.active{display:block}.tdp-water-app .tdp-list-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tdp-water-app .tdp-list-card{position:relative;padding:15px;border:1px solid var(--tdp-line);border-radius:13px;background:#fff;box-shadow:0 7px 22px rgba(9,49,69,.06)}.tdp-water-app .tdp-list-card h3{margin:4px 0 7px;color:var(--tdp-deep);font-size:15px;line-height:1.2}.tdp-water-app .tdp-list-card .type{color:var(--chip,#29abe2);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.tdp-water-app .tdp-list-card p{margin:4px 0;color:var(--tdp-muted);font-size:10px}.tdp-water-app .tdp-list-card button{margin-top:8px;border:0;border-radius:8px;padding:7px 9px;background:#edf7fb;color:var(--tdp-deep);font-size:10px;font-weight:700}.tdp-water-app .tdp-list-empty{padding:30px;text-align:center;color:var(--tdp-muted)}
.tdp-water-app .tdp-type-summary{margin-top:18px;padding:18px;border:1px solid var(--tdp-line);border-radius:14px;background:#fff}.tdp-water-app .tdp-type-summary h2{margin:0 0 12px;color:var(--tdp-deep);font-size:18px}.tdp-water-app .tdp-type-summary>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.tdp-water-app .tdp-summary-item{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:9px;border-radius:9px;background:#f3f8fb;color:var(--tdp-deep);font-size:10px;font-weight:700}.tdp-water-app .tdp-summary-item i{width:8px;height:8px;border-radius:50%;background:var(--summary);font-style:normal}.tdp-water-app .tdp-summary-item span{min-width:0;flex:1}.tdp-water-app .tdp-type-summary>p{margin:13px 0 0;color:var(--tdp-muted);font-size:11px}.tdp-water-app .tdp-data-attribution-button{position:fixed;z-index:999;right:18px;bottom:18px;width:42px;height:42px;display:grid;place-items:center;border:1px solid rgba(21,75,103,.2);border-radius:50%;background:#fff;color:var(--tdp-deep)!important;box-shadow:0 10px 26px rgba(9,49,69,.2);text-decoration:none!important}.tdp-water-app .tdp-data-attribution-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .info-sources{margin-top:10px;padding-top:9px;border-top:1px solid rgba(21,75,103,.11);font-size:10px}.tdp-water-app .info-sources strong{display:block;margin-bottom:4px;color:var(--tdp-deep)}.tdp-water-app .info-sources a{display:inline-block;margin:0 6px 4px 0;color:#087da8;text-decoration:none;font-weight:700}
.tdp-water-app.tdp-water-mode-header{max-width:none}.tdp-water-app.tdp-water-mode-header .map-frame{height:var(--tdp-map-height,540px);min-height:360px}.tdp-water-app.tdp-water-mode-header .map-control-stack,.tdp-water-app.tdp-water-mode-header .data-layer-controls,.tdp-water-app.tdp-water-mode-header .status-pill,.tdp-water-app.tdp-water-mode-header .info-card,.tdp-water-app.tdp-water-mode-header .attribution{display:none!important}.tdp-water-app.tdp-water-mode-header .map-canvas{cursor:default}
.tdp-water-app .tdp-loading-overlay{position:absolute;z-index:50;inset:0;display:grid;place-items:center;background:rgba(255,255,255,.75);color:var(--tdp-deep);font-size:12px;font-weight:700;backdrop-filter:blur(3px)}.tdp-water-app .tdp-load-error{padding:15px;border:1px solid #efb1b1;border-radius:10px;background:#fff1f1;color:#8f1d1d}
@media(max-width:900px){.tdp-water-app .tdp-stat-grid{grid-template-columns:repeat(2,1fr)}.tdp-water-app .tdp-list-grid{grid-template-columns:repeat(2,1fr)}.tdp-water-app .tdp-type-summary>div{grid-template-columns:repeat(2,1fr)}.tdp-water-app .tdp-select-filters{grid-template-columns:1fr 1fr}.tdp-water-app .tdp-search-label{grid-column:1/-1}}
@media(max-width:600px){.tdp-water-app .tdp-dashboard-head{align-items:flex-start;flex-direction:column}.tdp-water-app .tdp-export-button{align-self:stretch;justify-content:center}.tdp-water-app .tdp-stat-grid{grid-template-columns:1fr 1fr;gap:8px}.tdp-water-app .tdp-stat-card{padding:12px}.tdp-water-app .tdp-select-filters{grid-template-columns:1fr}.tdp-water-app .tdp-search-label{grid-column:auto}.tdp-water-app .tdp-results-toolbar{align-items:flex-start;flex-direction:column}.tdp-water-app .tdp-list-grid{grid-template-columns:1fr}.tdp-water-app .tdp-type-summary>div{grid-template-columns:1fr}.tdp-water-app.tdp-water-mode-header .map-frame{height:var(--tdp-map-height,500px);min-height:360px}}

.tdp-water-app .tdp-source-summary{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:12px;padding:18px;border:1px solid var(--tdp-line);border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(9,49,69,.06)}
.tdp-water-app .tdp-source-summary h2{margin:0;color:var(--tdp-deep);font-size:18px}.tdp-water-app .tdp-source-summary p{margin:5px 0 0;color:var(--tdp-muted);font-size:11px}.tdp-water-app .tdp-source-summary>a{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;padding:9px 12px;border-radius:9px;background:#edf7fb;color:var(--tdp-deep)!important;text-decoration:none!important;font-size:10px;font-weight:700}.tdp-water-app .tdp-source-summary>a:hover{background:#dff2fa}
@media(max-width:600px){.tdp-water-app .tdp-source-summary{align-items:flex-start;flex-direction:column}.tdp-water-app .tdp-source-summary>a{width:100%;justify-content:center}}

/* Leaflet 1.9 integration. These rules retain the supplied map controls and marker design. */
.tdp-water-app .map-canvas.leaflet-container{background:transparent;font-family:"Oxygen",Arial,sans-serif;cursor:grab}
.tdp-water-app .map-canvas.leaflet-container:active{cursor:grabbing}
.tdp-water-app .leaflet-pane,.tdp-water-app .leaflet-control{font-family:"Oxygen",Arial,sans-serif}
.tdp-water-app .leaflet-tile{max-width:none!important;max-height:none!important;filter:saturate(.82) brightness(1.035)}
.tdp-water-app .tdp-leaflet-basemap-pane.is-satellite .leaflet-tile{filter:saturate(.96) brightness(.98) contrast(1.02)}
.tdp-water-app .tdp-leaflet-basemap-pane{will-change:clip-path}
.tdp-water-app .leaflet-overlay-pane svg,.tdp-water-app .leaflet-pane>svg{overflow:visible}
.tdp-water-app .tdp-leaflet-div-icon{border:0!important;background:transparent!important}
.tdp-water-app .tdp-leaflet-marker{--marker:#29abe2;display:block;width:38px;height:42px;border:0;background:transparent;filter:drop-shadow(0 5px 8px rgba(0,0,0,.24));transition:transform .16s ease,filter .16s ease;transform-origin:50% 100%}
.tdp-water-app .tdp-leaflet-marker:hover,.tdp-water-app .leaflet-marker-icon:focus .tdp-leaflet-marker,.tdp-water-app .tdp-leaflet-marker.active{transform:scale(1.16);filter:drop-shadow(0 8px 12px rgba(0,0,0,.3))}
.tdp-water-app .tdp-leaflet-marker-pin{display:grid;place-items:center;width:34px;height:34px;margin:0 auto;border:2px solid #fff;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);background:var(--marker);box-shadow:0 0 0 1px rgba(21,75,103,.16)}
.tdp-water-app .tdp-leaflet-marker-pin svg{width:18px;height:18px;transform:rotate(45deg);stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .tdp-leaflet-tooltip,.tdp-water-app .tdp-leaflet-basin-tooltip{border:0;border-radius:7px;padding:6px 8px;background:rgba(16,54,73,.94);color:#fff;font-size:10px;font-weight:700;line-height:1.3;box-shadow:0 6px 16px rgba(0,0,0,.2)}
.tdp-water-app .tdp-leaflet-tooltip::before,.tdp-water-app .tdp-leaflet-basin-tooltip::before{border-top-color:rgba(16,54,73,.94)}
.tdp-water-app .tdp-user-location-icon{border:0;background:transparent}
.tdp-water-app .tdp-user-location-dot{position:relative;display:block;width:18px;height:18px;margin:5px;border:3px solid #fff;border-radius:50%;background:#2563eb;box-shadow:0 0 0 7px rgba(37,99,235,.18),0 4px 12px rgba(19,63,86,.28)}
.tdp-water-app .tdp-user-location-dot::after{content:"";position:absolute;inset:-12px;border:1px solid rgba(37,99,235,.34);border-radius:50%;animation:locationPulse 2.2s ease-out infinite}
.tdp-water-app .empty-map{z-index:1000;pointer-events:none}
.tdp-water-app.tdp-water-mode-header .attribution{display:block!important;right:7px;bottom:5px;font-size:8px}
.tdp-water-app.tdp-water-mode-header .map-canvas{cursor:grab}
.tdp-water-app .leaflet-zoom-animated{will-change:transform}
.tdp-water-app .map-canvas{z-index:0;isolation:isolate}

/* Version 1.2 full-map presentation: reference-image two-column Leaflet layout. */
.tdp-water-app.tdp-water-mode-full{
  max-width:1440px;
  font-size:16px;
}
.tdp-water-app.tdp-water-mode-full .tdp-dashboard-head p{font-size:16px;line-height:1.55}
.tdp-water-app.tdp-water-mode-full .tdp-export-button{min-height:46px;padding:11px 18px;font-size:14px}
.tdp-water-app.tdp-water-mode-full .tdp-stat-card{padding:18px}
.tdp-water-app.tdp-water-mode-full .tdp-stat-card span,
.tdp-water-app.tdp-water-mode-full .tdp-stat-card small{font-size:12px}
.tdp-water-app.tdp-water-mode-full .tdp-stat-card strong{font-size:clamp(27px,3vw,36px)}
.tdp-water-app.tdp-water-mode-full .tdp-filter-panel{padding:18px}
.tdp-water-app.tdp-water-mode-full .tdp-filter-title{font-size:15px}
.tdp-water-app.tdp-water-mode-full .tdp-filter-title button{font-size:13px}
.tdp-water-app.tdp-water-mode-full .tdp-type-chip{min-height:38px;padding:8px 12px;font-size:13px}
.tdp-water-app.tdp-water-mode-full .tdp-type-chip::before{width:10px;height:10px}
.tdp-water-app.tdp-water-mode-full .tdp-select-filters select,
.tdp-water-app.tdp-water-mode-full .tdp-search-label{height:46px;font-size:14px}
.tdp-water-app.tdp-water-mode-full .tdp-search-label input{font-size:14px}

.tdp-water-app .tdp-results-line{margin:18px 0 22px;color:var(--tdp-muted);font-size:15px;line-height:1.4}
.tdp-water-app .tdp-results-line strong{color:var(--tdp-deep)}
.tdp-water-app .tdp-view-tabs{
  display:flex;
  align-items:flex-end;
  gap:20px;
  width:100%;
  margin:0 0 24px;
  padding:0 0 0 2px;
  border:0;
  border-bottom:1px solid rgba(21,75,103,.13);
  border-radius:0;
  background:transparent;
}
.tdp-water-app .tdp-view-tabs button{
  position:relative;
  min-width:104px;
  padding:0 18px 14px;
  border:0;
  border-radius:0;
  background:transparent!important;
  color:var(--tdp-muted)!important;
  font-size:15px;
  font-weight:400;
}
.tdp-water-app .tdp-view-tabs button::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-1px;
  left:0;
  height:2px;
  background:transparent;
}
.tdp-water-app .tdp-view-tabs button.active{color:#1557ff!important;font-weight:400}
.tdp-water-app .tdp-view-tabs button.active::after{background:#1557ff}
.tdp-water-app .tdp-view-tabs button:focus-visible{outline:2px solid rgba(41,171,226,.55);outline-offset:3px}

.tdp-water-app .tdp-map-presentation{
  display:grid;
  grid-template-columns:minmax(0,2.08fr) minmax(310px,1fr);
  gap:22px;
  align-items:start;
}
.tdp-water-app .tdp-map-column,
.tdp-water-app .tdp-map-sidebar{min-width:0}
.tdp-water-app.tdp-water-mode-full .map-widget{width:100%;max-width:none}
.tdp-water-app.tdp-water-mode-full .map-frame{
  height:var(--tdp-map-height,620px);
  min-height:540px;
  overflow:hidden;
  border:1px solid rgba(21,75,103,.13);
  border-radius:14px;
  background:#eef3f4;
  box-shadow:0 4px 13px rgba(9,49,69,.06);
}
.tdp-water-app.tdp-water-mode-full .map-canvas{border-radius:14px}

.tdp-water-app .tdp-map-sidebar{display:grid;gap:14px}
.tdp-water-app.tdp-water-mode-full .tdp-type-summary{
  margin:0;
  padding:20px 18px 18px;
  border:1px solid rgba(21,75,103,.14);
  border-radius:14px;
  background:#fff;
  box-shadow:none;
}
.tdp-water-app.tdp-water-mode-full .tdp-type-summary h2{
  margin:0 0 14px;
  color:#111827;
  font-size:16px;
  line-height:1.3;
  font-weight:700;
}
.tdp-water-app.tdp-water-mode-full .tdp-type-summary>div{
  display:grid;
  grid-template-columns:1fr;
  gap:2px;
}
.tdp-water-app.tdp-water-mode-full .tdp-summary-item{
  display:grid;
  grid-template-columns:14px 18px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-height:31px;
  padding:4px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#263746;
  font-size:14px;
  font-weight:400;
}
.tdp-water-app.tdp-water-mode-full .tdp-summary-item i{
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--summary);
}
.tdp-water-app.tdp-water-mode-full .tdp-summary-icon{
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  color:var(--summary);
}
.tdp-water-app.tdp-water-mode-full .tdp-summary-icon svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.tdp-water-app.tdp-water-mode-full .tdp-summary-item strong{color:#111827;font-size:14px;font-weight:700}

.tdp-water-app .tdp-map-help{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:10px;
  padding:18px 16px;
  border:1px solid #c6defe;
  border-radius:13px;
  background:#eef6ff;
  color:#1557ff;
  text-align:center;
}
.tdp-water-app .tdp-map-help svg{flex:0 0 18px;width:18px;height:18px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .tdp-map-help p{margin:0;font-size:13px;line-height:1.65}

.tdp-water-app .tdp-sidebar-details.info-card{
  position:relative;
  left:auto;
  bottom:auto;
  width:100%;
  padding:18px;
  border:1px solid rgba(21,75,103,.14);
  border-radius:14px;
  background:#fff;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.tdp-water-app .tdp-sidebar-details .info-title{padding-right:28px;font-size:20px}
.tdp-water-app .tdp-sidebar-details .info-type{font-size:11px}
.tdp-water-app .tdp-sidebar-details .info-text{font-size:13px;line-height:1.55}
.tdp-water-app .tdp-sidebar-details .info-grid{grid-template-columns:1fr 1fr;gap:8px}
.tdp-water-app .tdp-sidebar-details .info-grid span{font-size:10px}
.tdp-water-app .tdp-sidebar-details .info-grid strong{font-size:13px}
.tdp-water-app .tdp-sidebar-details .info-sources{font-size:12px}
.tdp-water-app.tdp-water-mode-full .map-frame>.info-card{display:none!important}

/* Reference-style legend inside the Leaflet map. */
.tdp-water-app .tdp-map-legend{
  position:absolute;
  z-index:1000;
  left:20px;
  bottom:32px;
  width:154px;
  padding:12px 12px 10px;
  border:1px solid rgba(21,75,103,.13);
  border-radius:8px;
  background:rgba(255,255,255,.92);
  color:#263746;
  box-shadow:0 5px 18px rgba(9,49,69,.13);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
  pointer-events:auto;
}
.tdp-water-app .tdp-map-legend>strong{display:block;margin-bottom:7px;color:#087da8;font-size:12px;line-height:1.25}
.tdp-water-app .tdp-map-legend [data-map-legend]{display:grid;gap:4px}
.tdp-water-app .tdp-map-legend-item{display:grid;grid-template-columns:9px minmax(0,1fr);align-items:center;gap:6px;color:#263746;font-size:10px;line-height:1.35}
.tdp-water-app .tdp-map-legend-item i{width:9px;height:9px;border-radius:50%;background:var(--legend)}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend{display:none!important}

/* Compact custom clusters rendered with Leaflet DivIcon. */
.tdp-water-app .tdp-leaflet-cluster-icon{border:0!important;background:transparent!important}
.tdp-water-app .tdp-leaflet-cluster{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:3px solid #fff;
  border-radius:50%;
  background:#066b9f;
  color:#fff;
  font-size:14px;
  font-weight:700;
  line-height:1;
  box-shadow:0 2px 7px rgba(0,0,0,.28),0 0 0 1px rgba(6,107,159,.35);
  transition:transform .15s ease;
}
.tdp-water-app .leaflet-marker-icon:hover .tdp-leaflet-cluster{transform:scale(1.08)}

/* Move the supplied Leaflet controls into a compact upper-right arrangement. */
.tdp-water-app.tdp-water-mode-full .map-control-stack{
  top:14px;
  right:14px;
  left:auto;
  width:42px;
  border-radius:8px;
  background:rgba(255,255,255,.96);
}
.tdp-water-app.tdp-water-mode-full .map-control-stack button{width:41px;height:41px}
.tdp-water-app.tdp-water-mode-full .map-control-stack .control-label{right:50px;left:auto}
.tdp-water-app.tdp-water-mode-full .data-layer-controls{
  top:14px;
  right:64px;
  left:auto;
  flex-direction:row;
  gap:8px;
}
.tdp-water-app.tdp-water-mode-full .layer-category-picker .category-menu{
  top:48px;
  right:0;
  left:auto;
}
.tdp-water-app.tdp-water-mode-full .layer-control .control-label{right:50px;left:auto}
.tdp-water-app.tdp-water-mode-full .attribution{right:7px;bottom:5px;font-size:10px}
.tdp-water-app.tdp-water-mode-full .tdp-leaflet-tooltip,
.tdp-water-app.tdp-water-mode-full .tdp-leaflet-basin-tooltip{font-size:12px}

.tdp-water-app.tdp-water-mode-full .tdp-list-card h3{font-size:18px}
.tdp-water-app.tdp-water-mode-full .tdp-list-card .type{font-size:11px}
.tdp-water-app.tdp-water-mode-full .tdp-list-card p{font-size:13px}
.tdp-water-app.tdp-water-mode-full .tdp-list-card button{font-size:13px}
.tdp-water-app.tdp-water-mode-full .tdp-source-summary h2{font-size:20px}
.tdp-water-app.tdp-water-mode-full .tdp-source-summary p{font-size:13px}
.tdp-water-app.tdp-water-mode-full .tdp-source-summary>a{font-size:13px}

@media(max-width:1080px){
  .tdp-water-app .tdp-map-presentation{grid-template-columns:minmax(0,1.75fr) minmax(285px,1fr);gap:16px}
  .tdp-water-app.tdp-water-mode-full .map-frame{min-height:520px}
}
@media(max-width:860px){
  .tdp-water-app .tdp-map-presentation{grid-template-columns:1fr}
  .tdp-water-app .tdp-map-sidebar{grid-template-columns:1fr 1fr;align-items:start}
  .tdp-water-app .tdp-sidebar-details{grid-column:1/-1}
  .tdp-water-app.tdp-water-mode-full .tdp-type-summary>div{grid-template-columns:1fr 1fr;column-gap:20px}
}
@media(max-width:600px){
  .tdp-water-app.tdp-water-mode-full{font-size:15px}
  .tdp-water-app .tdp-results-line{font-size:14px}
  .tdp-water-app .tdp-view-tabs{gap:6px;margin-bottom:16px}
  .tdp-water-app .tdp-view-tabs button{min-width:92px;padding:0 12px 12px;font-size:14px}
  .tdp-water-app.tdp-water-mode-full .map-frame{height:max(520px,var(--tdp-map-height,560px));min-height:520px;border-radius:10px}
  .tdp-water-app .tdp-map-sidebar{grid-template-columns:1fr}
  .tdp-water-app.tdp-water-mode-full .tdp-type-summary>div{grid-template-columns:1fr}
  .tdp-water-app .tdp-map-legend{left:10px;bottom:28px;width:146px;padding:10px}
  .tdp-water-app.tdp-water-mode-full .map-control-stack{top:9px;right:9px}
  .tdp-water-app.tdp-water-mode-full .data-layer-controls{top:9px;right:59px}
  .tdp-water-app.tdp-water-mode-full .layer-category-picker .category-menu{right:-50px;width:min(286px,calc(100vw - 34px))}
}

/* Version 1.3: larger transparent Leaflet explorer, persistent feature panel and in-widget attribution. */
.tdp-water-app.tdp-water-mode-full{
  width:100%;
  max-width:1680px;
  background:transparent!important;
  font-size:17px;
}
.tdp-water-app.tdp-water-mode-full .tdp-dashboard-head,
.tdp-water-app.tdp-water-mode-full .tdp-results-line,
.tdp-water-app.tdp-water-mode-full .tdp-view-tabs,
.tdp-water-app.tdp-water-mode-full .tdp-view-panel{background:transparent}
.tdp-water-app.tdp-water-mode-full .tdp-stat-card,
.tdp-water-app.tdp-water-mode-full .tdp-filter-panel,
.tdp-water-app.tdp-water-mode-full .tdp-list-card{
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.tdp-water-app.tdp-water-mode-full .tdp-dashboard-head h1{font-size:clamp(38px,4.4vw,58px)}
.tdp-water-app.tdp-water-mode-full .tdp-dashboard-head p{font-size:18px}
.tdp-water-app.tdp-water-mode-full .tdp-export-button{min-height:50px;padding:12px 20px;font-size:15px}
.tdp-water-app.tdp-water-mode-full .tdp-stat-card{padding:20px}
.tdp-water-app.tdp-water-mode-full .tdp-stat-card span,
.tdp-water-app.tdp-water-mode-full .tdp-stat-card small{font-size:13px}
.tdp-water-app.tdp-water-mode-full .tdp-stat-card strong{font-size:clamp(30px,3vw,40px)}
.tdp-water-app.tdp-water-mode-full .tdp-filter-panel{padding:20px}
.tdp-water-app.tdp-water-mode-full .tdp-filter-title{font-size:16px}
.tdp-water-app.tdp-water-mode-full .tdp-filter-title button{font-size:14px}
.tdp-water-app.tdp-water-mode-full .tdp-type-chip{min-height:41px;padding:9px 14px;font-size:14px}
.tdp-water-app.tdp-water-mode-full .tdp-select-filters select,
.tdp-water-app.tdp-water-mode-full .tdp-search-label{height:49px;font-size:15px;background:rgba(247,250,251,.82)}
.tdp-water-app.tdp-water-mode-full .tdp-search-label input{font-size:15px}
.tdp-water-app.tdp-water-mode-full .tdp-results-line{font-size:17px;margin:20px 0 24px}
.tdp-water-app.tdp-water-mode-full .tdp-view-tabs button{font-size:17px;min-width:116px;padding-bottom:15px}

.tdp-water-app.tdp-water-mode-full .tdp-map-presentation{
  display:grid;
  grid-template-columns:minmax(0,2.55fr) minmax(360px,.9fr);
  gap:24px;
  align-items:stretch;
}
.tdp-water-app.tdp-water-mode-full .tdp-map-column,
.tdp-water-app.tdp-water-mode-full .tdp-map-sidebar{min-width:0}
.tdp-water-app.tdp-water-mode-full .map-frame{
  height:max(var(--tdp-map-height,760px),760px);
  min-height:760px;
  border:1px solid rgba(21,75,103,.14);
  border-radius:16px;
  background:transparent;
  box-shadow:0 7px 24px rgba(9,49,69,.08);
}
.tdp-water-app.tdp-water-mode-full .map-canvas{border-radius:16px}
.tdp-water-app.tdp-water-mode-full .tdp-map-sidebar{display:block;height:100%}
.tdp-water-app.tdp-water-mode-full .tdp-feature-panel{
  height:100%;
  min-height:760px;
  overflow:auto;
  border:1px solid rgba(21,75,103,.16);
  border-radius:16px;
  background:rgba(255,255,255,.72);
  box-shadow:0 7px 24px rgba(9,49,69,.07);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.tdp-water-app .tdp-feature-placeholder{
  min-height:758px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 30px;
  color:var(--tdp-muted);
  text-align:center;
}
.tdp-water-app .tdp-feature-placeholder-icon{
  width:76px;
  height:76px;
  display:grid;
  place-items:center;
  margin-bottom:20px;
  border-radius:22px;
  background:rgba(41,171,226,.12);
  color:var(--tdp-blue);
}
.tdp-water-app .tdp-feature-placeholder-icon svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .tdp-feature-placeholder h2{margin:0;color:var(--tdp-deep);font-size:25px;line-height:1.2}
.tdp-water-app .tdp-feature-placeholder p{max-width:330px;margin:14px 0 0;font-size:15px;line-height:1.75}
.tdp-water-app .tdp-sidebar-details.info-card{
  position:relative;
  left:auto;
  bottom:auto;
  width:100%;
  min-height:758px;
  padding:26px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.tdp-water-app .tdp-sidebar-details .close-info{right:18px;top:18px;width:34px;height:34px;font-size:24px}
.tdp-water-app .tdp-sidebar-details .info-head{gap:14px;padding-right:32px}
.tdp-water-app .tdp-sidebar-details .info-icon{width:48px;height:48px;flex-basis:48px;border-radius:13px}
.tdp-water-app .tdp-sidebar-details .info-icon svg{width:27px;height:27px}
.tdp-water-app .tdp-sidebar-details .info-title{padding-right:0;font-size:25px;line-height:1.2}
.tdp-water-app .tdp-sidebar-details .info-type{font-size:12px}
.tdp-water-app .tdp-sidebar-details .info-text{margin-top:18px;font-size:15px;line-height:1.7}
.tdp-water-app .tdp-sidebar-details .info-grid{grid-template-columns:1fr;gap:10px;margin-top:18px}
.tdp-water-app .tdp-sidebar-details .info-grid div{padding:12px 13px;background:rgba(241,248,251,.78)}
.tdp-water-app .tdp-sidebar-details .info-grid span{font-size:11px}
.tdp-water-app .tdp-sidebar-details .info-grid strong{font-size:15px;line-height:1.45}
.tdp-water-app .tdp-sidebar-details .info-sources{margin-top:18px;padding-top:16px;font-size:14px;line-height:1.6}
.tdp-water-app .tdp-sidebar-details .info-sources a{display:block;margin:7px 0}
.tdp-water-app.tdp-water-mode-full .map-frame>.info-card{display:none!important}

/* Full explorer controls are on the upper left; the basin toggle follows Locate Me. */
.tdp-water-app.tdp-water-mode-full .map-control-stack{
  top:18px;
  left:18px;
  right:auto;
  width:46px;
  border-radius:11px;
  background:rgba(255,255,255,.94);
}
.tdp-water-app.tdp-water-mode-full .map-control-stack button{width:45px;height:45px}
.tdp-water-app.tdp-water-mode-full .map-control-stack svg{width:21px;height:21px}
.tdp-water-app.tdp-water-mode-full .map-control-stack .control-label{left:55px;right:auto;font-size:11px}
.tdp-water-app.tdp-water-mode-full .data-layer-controls{display:none!important}
.tdp-water-app.tdp-water-mode-full .tdp-map-legend{
  left:18px;
  bottom:28px;
  width:190px;
  padding:15px 15px 13px;
  background:rgba(255,255,255,.90);
}
.tdp-water-app.tdp-water-mode-full .tdp-map-legend>strong{font-size:14px;margin-bottom:9px}
.tdp-water-app.tdp-water-mode-full .tdp-map-legend [data-map-legend]{gap:6px}
.tdp-water-app.tdp-water-mode-full .tdp-map-legend-item{grid-template-columns:11px minmax(0,1fr);gap:8px;font-size:12px;line-height:1.45}
.tdp-water-app.tdp-water-mode-full .tdp-map-legend-item i{width:11px;height:11px}
.tdp-water-app.tdp-water-mode-full .attribution{font-size:10px}

/* Infrastructure categories are available only in the homepage/header preview. */
.tdp-water-app.tdp-water-mode-header .map-control-stack{display:none!important}
.tdp-water-app.tdp-water-mode-header .data-layer-controls{
  display:flex!important;
  top:15px;
  left:15px;
  right:auto;
  z-index:1001;
}
.tdp-water-app.tdp-water-mode-header .layer-category-picker{display:block!important}
.tdp-water-app.tdp-water-mode-header .layer-control{width:44px;height:44px;min-width:44px}
.tdp-water-app.tdp-water-mode-header .layer-category-button .picker-icon{width:44px;height:44px}
.tdp-water-app.tdp-water-mode-header .layer-category-picker .category-menu{top:0;left:54px;right:auto}

/* In-widget, collapsible sources and attribution register. */
.tdp-water-app .tdp-source-summary,
.tdp-water-app .tdp-data-attribution-button{display:none!important}
.tdp-water-app .tdp-attribution-dropdown{
  margin-top:24px;
  overflow:hidden;
  border:1px solid rgba(21,75,103,.15);
  border-radius:15px;
  background:rgba(255,255,255,.56);
  backdrop-filter:blur(13px);
  -webkit-backdrop-filter:blur(13px);
}
.tdp-water-app .tdp-attribution-dropdown>summary{
  min-height:60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px 20px;
  border-bottom:1px solid transparent;
  color:var(--tdp-deep);
  font-size:17px;
  font-weight:700;
  cursor:pointer;
  list-style:none;
}
.tdp-water-app .tdp-attribution-dropdown>summary::-webkit-details-marker{display:none}
.tdp-water-app .tdp-attribution-dropdown[open]>summary{border-bottom-color:rgba(21,75,103,.15)}
.tdp-water-app .tdp-attribution-title{display:inline-flex;align-items:center;gap:10px}
.tdp-water-app .tdp-external-icon{width:20px;height:20px;fill:none;stroke:#8ca0ac;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .tdp-attribution-chevron{width:20px;height:20px;fill:none;stroke:#8ca0ac;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.tdp-water-app .tdp-attribution-dropdown[open] .tdp-attribution-chevron{transform:rotate(180deg)}
.tdp-water-app .tdp-attribution-content{padding:0 20px 22px}
.tdp-water-app .tdp-attribution-loading,
.tdp-water-app .tdp-attribution-empty,
.tdp-water-app .tdp-attribution-error{margin:20px 0 0;color:var(--tdp-muted);font-size:14px}
.tdp-water-app .tdp-attribution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:42px;row-gap:4px;padding-top:14px}
.tdp-water-app .tdp-attribution-source{min-width:0;padding:7px 0}
.tdp-water-app .tdp-attribution-source>a,
.tdp-water-app .tdp-attribution-source>strong{display:inline-flex;align-items:flex-start;gap:8px;color:#1557ff;text-decoration:none;font-size:14px;font-weight:400;line-height:1.5}
.tdp-water-app .tdp-attribution-source>a:hover{text-decoration:underline}
.tdp-water-app .tdp-attribution-source .tdp-source-link-icon{flex:0 0 14px;width:14px;height:14px;margin-top:3px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .tdp-attribution-source-meta{margin:3px 0 0 22px;color:var(--tdp-muted);font-size:11px;line-height:1.45}
.tdp-water-app .tdp-attribution-basemap{grid-column:1/-1;margin-top:10px;padding-top:14px;border-top:1px solid rgba(21,75,103,.12);color:var(--tdp-muted);font-size:12px;line-height:1.6}
.tdp-water-app .tdp-attribution-basemap a{color:#1557ff}

@media(max-width:1180px){
  .tdp-water-app.tdp-water-mode-full .tdp-map-presentation{grid-template-columns:minmax(0,1.8fr) minmax(330px,1fr);gap:18px}
}
@media(max-width:900px){
  .tdp-water-app.tdp-water-mode-full .tdp-map-presentation{grid-template-columns:1fr}
  .tdp-water-app.tdp-water-mode-full .map-frame{height:max(var(--tdp-map-height,680px),680px);min-height:680px}
  .tdp-water-app.tdp-water-mode-full .tdp-feature-panel,
  .tdp-water-app .tdp-feature-placeholder,
  .tdp-water-app .tdp-sidebar-details.info-card{min-height:420px}
  .tdp-water-app .tdp-attribution-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .tdp-water-app.tdp-water-mode-full{font-size:15px}
  .tdp-water-app.tdp-water-mode-full .tdp-dashboard-head h1{font-size:36px}
  .tdp-water-app.tdp-water-mode-full .map-frame{height:max(var(--tdp-map-height,590px),590px);min-height:590px;border-radius:11px}
  .tdp-water-app.tdp-water-mode-full .map-control-stack{top:10px;left:10px}
  .tdp-water-app.tdp-water-mode-full .tdp-map-legend{left:10px;bottom:28px;width:164px;padding:12px}
  .tdp-water-app.tdp-water-mode-full .tdp-map-legend-item{font-size:11px}
  .tdp-water-app .tdp-sidebar-details.info-card{padding:20px}
  .tdp-water-app .tdp-attribution-dropdown>summary{padding:14px 15px;font-size:15px}
  .tdp-water-app .tdp-attribution-content{padding:0 15px 18px}
  .tdp-water-app.tdp-water-mode-header .data-layer-controls{top:9px;left:9px}
  .tdp-water-app.tdp-water-mode-header .layer-category-picker .category-menu{left:50px;width:min(286px,calc(100vw - 70px))}
}

/* Version 1.4 unified Kenya map, summary/detail sidebar and responsive header map. */
.tdp-water-app,
.tdp-water-app *,
.tdp-water-app .leaflet-container,
.tdp-water-app .leaflet-tooltip,
.tdp-water-app .leaflet-control{
  font-family:"Oxygen",Arial,sans-serif!important;
}
.tdp-water-app{max-width:1680px;background:transparent!important}
.tdp-water-app .map-widget{width:100%;max-width:none;background:transparent}
.tdp-water-app .map-frame{width:100%;border-radius:14px;background:transparent}
.tdp-water-app .map-canvas.leaflet-container{background:transparent}

/* The same high-contrast national outline is used in both map modes. */
.tdp-water-app .leaflet-tdpOutline-pane path{
  stroke:#111827!important;
  stroke-width:1.35px!important;
  stroke-dasharray:3 2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.tdp-water-app .tdp-leaflet-basin-tooltip{
  padding:8px 11px;
  border-radius:8px;
  background:rgba(17,24,39,.94);
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.01em;
}
.tdp-water-app .tdp-leaflet-basin-tooltip::before{border-top-color:rgba(17,24,39,.94)}

/* Full explorer: large, transparent presentation with a stable summary/detail column. */
.tdp-water-app.tdp-water-mode-full{max-width:1680px;background:transparent!important}
.tdp-water-app.tdp-water-mode-full .tdp-map-presentation{
  display:grid;
  grid-template-columns:minmax(0,2.15fr) minmax(360px,.92fr);
  gap:20px;
  align-items:stretch;
}
.tdp-water-app.tdp-water-mode-full .map-frame{
  height:var(--tdp-map-height,800px);
  min-height:660px;
}
.tdp-water-app.tdp-water-mode-full .tdp-map-sidebar,
.tdp-water-app.tdp-water-mode-full .tdp-feature-panel{height:100%;min-height:660px}
.tdp-water-app.tdp-water-mode-full .tdp-feature-panel{
  position:relative;
  border:1px solid rgba(21,75,103,.16);
  border-radius:15px;
  background:rgba(255,255,255,.94);
  overflow:hidden;
}
.tdp-water-app .tdp-feature-summary-panel{
  height:100%;
  padding:22px 20px;
  background:transparent;
}
.tdp-water-app .tdp-feature-summary-panel[hidden],
.tdp-water-app .tdp-feature-detail-card[hidden]{display:none!important}
.tdp-water-app .tdp-feature-summary-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:17px;
  border-bottom:1px solid rgba(21,75,103,.11);
}
.tdp-water-app .tdp-feature-summary-head span{
  display:block;
  margin-bottom:3px;
  color:#8b9aa4;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.tdp-water-app .tdp-feature-summary-head h2{
  margin:0;
  color:#111827;
  font-size:21px;
  line-height:1.25;
}
.tdp-water-app .tdp-feature-summary-head>strong{
  min-width:52px;
  padding:7px 10px;
  border-radius:999px;
  background:#edf7fb;
  color:#087da8;
  font-size:16px;
  line-height:1;
  text-align:center;
}
.tdp-water-app .tdp-feature-summary-list{display:grid;gap:2px;padding-top:12px}
.tdp-water-app .tdp-feature-summary-item{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:43px;
  padding:7px 6px;
  border-bottom:1px solid rgba(21,75,103,.065);
  color:#172b38;
  font-size:14px;
}
.tdp-water-app .tdp-feature-summary-item:last-child{border-bottom:0}
.tdp-water-app .tdp-feature-summary-icon{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#eef5f7;
  background:color-mix(in srgb,var(--summary-color) 13%,white);
  color:var(--summary-color);
}
.tdp-water-app .tdp-feature-summary-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .tdp-feature-summary-name{min-width:0}
.tdp-water-app .tdp-feature-summary-item>strong{color:#111827;font-size:15px}

/* Selected feature replaces the summary within the same panel. */
.tdp-water-app .tdp-feature-detail-card{
  position:relative;
  min-height:100%;
  padding:22px 22px 24px;
  background:#fff;
  color:#172b38;
}
.tdp-water-app .tdp-feature-detail-card .close-info{
  position:absolute;
  z-index:3;
  top:17px;
  right:17px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#8b99a4;
  font-size:25px;
  line-height:1;
}
.tdp-water-app .tdp-feature-detail-card .close-info:hover,
.tdp-water-app .tdp-feature-detail-card .close-info:focus-visible{background:#f1f6f8;color:#154b67;outline:none}
.tdp-water-app .tdp-feature-detail-head{display:grid;grid-template-columns:43px minmax(0,1fr);align-items:start;gap:12px;padding-right:38px}
.tdp-water-app .tdp-feature-detail-icon{
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#f1f3f5;
  background:color-mix(in srgb,var(--marker) 13%,white);
  color:var(--marker);
}
.tdp-water-app .tdp-feature-detail-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .tdp-feature-detail-head h2{margin:1px 0 2px;color:#071525;font-size:20px;line-height:1.28}
.tdp-water-app .tdp-feature-detail-head p{margin:0;color:#667784;font-size:15px;line-height:1.35}
.tdp-water-app .tdp-feature-status{display:inline-flex;align-items:center;margin-top:24px;padding:5px 11px;border-radius:999px;font-size:13px;line-height:1}
.tdp-water-app .tdp-feature-status.is-operational{background:#d9fae8;color:#078548}
.tdp-water-app .tdp-feature-status.is-progress{background:#fff2cc;color:#976200}
.tdp-water-app .tdp-feature-status.is-inactive{background:#fee2e2;color:#b42318}
.tdp-water-app .tdp-feature-status.is-unknown{background:#eef2f5;color:#536674}
.tdp-water-app .tdp-feature-detail-rows{display:grid;gap:10px;margin-top:30px}
.tdp-water-app .tdp-feature-detail-row{display:grid;grid-template-columns:minmax(118px,.78fr) minmax(0,1.35fr);align-items:start;gap:14px;font-size:14px;line-height:1.45}
.tdp-water-app .tdp-feature-detail-row span{color:#687985}
.tdp-water-app .tdp-feature-detail-row strong{color:#071525;font-weight:400;text-align:right;overflow-wrap:anywhere}
.tdp-water-app .tdp-feature-description{
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  gap:9px;
  margin-top:22px;
  padding:14px 15px;
  border-radius:10px;
  background:#eaf3ff;
  color:#1557ff;
}
.tdp-water-app .tdp-feature-description svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app .tdp-feature-description p{margin:0;font-size:12px;line-height:1.65}
.tdp-water-app .tdp-feature-sources{margin-top:20px;padding-top:18px;border-top:1px solid rgba(21,75,103,.1)}
.tdp-water-app .tdp-feature-sources>span{display:block;color:#98a4ad;font-size:12px}
.tdp-water-app .tdp-feature-sources>p{margin:5px 0 7px;color:#52636f;font-size:12px;line-height:1.5}
.tdp-water-app .tdp-feature-sources>div{display:flex;flex-wrap:wrap;gap:10px}
.tdp-water-app .tdp-feature-sources a{display:inline-flex;align-items:center;gap:5px;color:#1557ff;text-decoration:none;font-size:12px}
.tdp-water-app .tdp-feature-sources a:hover{text-decoration:underline}
.tdp-water-app .tdp-feature-sources a svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Controls sit above the legend in both modes. */
.tdp-water-app .map-control-stack{
  z-index:900;
  top:14px;
  left:14px;
  right:auto;
  display:flex!important;
  width:45px;
  border-radius:11px;
  overflow:visible;
}
.tdp-water-app .map-control-stack button{width:44px!important;height:44px!important}
.tdp-water-app .map-control-stack button:first-child{border-radius:10px 10px 0 0}
.tdp-water-app .map-control-stack button:last-child{border-radius:0 0 10px 10px}
.tdp-water-app .map-control-stack .control-label{left:54px!important;right:auto!important;font-size:11px}
.tdp-water-app .tdp-map-legend{
  z-index:880;
  top:292px;
  bottom:auto;
  left:14px;
  width:180px;
  padding:13px 14px;
  border:1px solid rgba(21,75,103,.14);
  border-radius:11px;
  background:rgba(255,255,255,.93);
  box-shadow:0 8px 24px rgba(9,49,69,.15);
  backdrop-filter:blur(9px);
}
.tdp-water-app .tdp-map-legend>strong{font-size:13px}
.tdp-water-app .tdp-map-legend-item{font-size:11px}

/* Header map: dynamic WordPress-section sizing, controls, category pill and legend. */
.tdp-water-app.tdp-water-mode-header{width:100%;max-width:none;background:transparent;container-type:inline-size}
.tdp-water-app.tdp-water-mode-header .map-widget,
.tdp-water-app.tdp-water-mode-header .map-frame{width:100%;max-width:none}
.tdp-water-app.tdp-water-mode-header .map-frame{
  height:clamp(520px,64vw,var(--tdp-map-height,760px));
  min-height:520px;
  max-height:820px;
}
@supports (height:1cqw){
  .tdp-water-app.tdp-water-mode-header .map-frame{height:clamp(520px,64cqw,var(--tdp-map-height,760px))}
}
.tdp-water-app.tdp-water-mode-header .map-control-stack{
  display:flex!important;
  top:86px;
  left:14px;
}
.tdp-water-app.tdp-water-mode-header .status-pill{display:block!important}
.tdp-water-app.tdp-water-mode-header .data-layer-controls{
  display:block!important;
  z-index:920;
  top:12px;
  left:50%;
  transform:translateX(-50%);
}
.tdp-water-app.tdp-water-mode-header .layer-category-picker{width:auto;height:50px}
.tdp-water-app.tdp-water-mode-header .layer-category-button{
  width:auto!important;
  min-width:194px!important;
  height:50px!important;
  display:flex!important;
  align-items:center;
  gap:9px;
  padding:5px 14px 5px 7px!important;
  border:0!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 12px 28px rgba(9,49,69,.18)!important;
  color:#243746!important;
}
.tdp-water-app.tdp-water-mode-header .layer-category-button .picker-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:50%;
  background:#08b8d1!important;
  color:#fff!important;
}
.tdp-water-app.tdp-water-mode-header .category-button-label{display:block;flex:1;font-size:13px;font-weight:700;white-space:nowrap}
.tdp-water-app.tdp-water-mode-header .category-button-chevron{width:15px;height:15px;fill:none;stroke:#647783;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tdp-water-app.tdp-water-mode-header .layer-category-button[aria-expanded="true"] .category-button-chevron{transform:rotate(180deg)}
.tdp-water-app.tdp-water-mode-header .layer-category-picker .category-menu{top:57px;left:50%;right:auto;transform:translateX(-50%);width:300px}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend{
  display:block!important;
  top:364px;
  left:14px;
  width:180px;
}
.tdp-water-app.tdp-water-mode-header .attribution{
  display:block!important;
  right:8px;
  bottom:6px;
  padding:3px 6px;
  border-radius:4px;
  background:rgba(255,255,255,.86);
  color:#607683;
  font-size:9px;
}
.tdp-water-app .attribution a{color:#276f90;text-decoration:none}
.tdp-water-app .attribution a:hover{text-decoration:underline}

/* Compact, reliable three-column attribution register. */
.tdp-water-app .tdp-attribution-dropdown{background:rgba(255,255,255,.78)}
.tdp-water-app .tdp-attribution-content{padding:0 18px 18px}
.tdp-water-app .tdp-attribution-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:30px;
  row-gap:1px;
  padding-top:10px;
}
.tdp-water-app .tdp-attribution-source{padding:5px 0;min-width:0}
.tdp-water-app .tdp-attribution-source>a,
.tdp-water-app .tdp-attribution-source>strong{gap:6px;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.tdp-water-app .tdp-attribution-source .tdp-source-link-icon{width:12px;height:12px;flex:0 0 12px;margin-top:1px}
.tdp-water-app .tdp-attribution-source-meta{margin:2px 0 0 18px;font-size:9px;line-height:1.4}
.tdp-water-app .tdp-attribution-basemap{font-size:10px;line-height:1.5}

@media(max-width:1180px){
  .tdp-water-app.tdp-water-mode-full .tdp-map-presentation{grid-template-columns:minmax(0,1.7fr) minmax(330px,1fr)}
  .tdp-water-app .tdp-attribution-grid{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:20px}
}
@media(max-width:920px){
  .tdp-water-app.tdp-water-mode-full .tdp-map-presentation{grid-template-columns:1fr}
  .tdp-water-app.tdp-water-mode-full .tdp-map-sidebar,
  .tdp-water-app.tdp-water-mode-full .tdp-feature-panel{min-height:0;height:auto}
  .tdp-water-app .tdp-feature-summary-panel,
  .tdp-water-app .tdp-feature-detail-card{min-height:0}
  .tdp-water-app .tdp-attribution-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .tdp-water-app.tdp-water-mode-full .map-frame{min-height:580px}
  .tdp-water-app.tdp-water-mode-header .map-frame{height:clamp(540px,125vw,700px);min-height:540px}
  .tdp-water-app.tdp-water-mode-header .layer-category-button{min-width:180px!important}
  .tdp-water-app.tdp-water-mode-full .map-control-stack{top:10px;left:9px}
  .tdp-water-app.tdp-water-mode-header .map-control-stack{top:76px;left:9px}
  .tdp-water-app.tdp-water-mode-full .tdp-map-legend{top:288px;left:9px;width:160px;padding:11px}
  .tdp-water-app.tdp-water-mode-header .tdp-map-legend{top:350px;left:9px;width:160px;padding:11px}
  .tdp-water-app .tdp-map-legend-item{font-size:10px}
  .tdp-water-app .tdp-feature-detail-row{grid-template-columns:105px minmax(0,1fr);font-size:13px}
  .tdp-water-app .tdp-attribution-grid{grid-template-columns:1fr}
}

/* Version 1.5: fixed, faster homepage map and muted full-map surroundings. */
.tdp-water-app.tdp-water-mode-header .data-layer-controls{display:none!important}
.tdp-water-app.tdp-water-mode-header .map-canvas{
  cursor:default!important;
  touch-action:pan-y!important;
  overscroll-behavior:auto;
}
.tdp-water-app.tdp-water-mode-header .leaflet-container,
.tdp-water-app.tdp-water-mode-header .leaflet-grab,
.tdp-water-app.tdp-water-mode-header .leaflet-dragging .leaflet-grab{cursor:default!important}
.tdp-water-app.tdp-water-mode-header .map-frame{
  height:clamp(660px,74vw,var(--tdp-map-height,900px));
  min-height:660px;
  max-height:1000px;
}
@supports (height:1cqw){
  .tdp-water-app.tdp-water-mode-header .map-frame{height:clamp(660px,74cqw,var(--tdp-map-height,900px))}
}
.tdp-water-app.tdp-water-mode-header .map-control-stack{
  top:12px;
  left:12px;
  width:33px;
  border-radius:9px;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack button{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  padding:0!important;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack svg{width:15px;height:15px}
.tdp-water-app.tdp-water-mode-header .map-control-stack .control-label{left:40px!important;font-size:9px;padding:4px 6px}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend{
  top:214px;
  left:12px;
  width:226px;
  max-width:calc(100% - 24px);
  padding:8px 9px;
  border-radius:15px;
  box-shadow:0 7px 18px rgba(9,49,69,.13);
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend>strong{
  display:block;
  margin-bottom:5px;
  font-size:10px;
  line-height:1.2;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend [data-map-legend]{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:3px 8px;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend-item{
  display:grid;
  grid-template-columns:7px minmax(0,1fr);
  align-items:center;
  gap:4px;
  min-width:0;
  font-size:8.5px;
  line-height:1.18;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend-dot{width:7px;height:7px}
.tdp-water-app.tdp-water-mode-header .attribution{font-size:8px;padding:2px 5px}
.tdp-water-app.tdp-water-mode-full .tdp-leaflet-basemap-pane{will-change:auto}
.tdp-water-app .tdp-leaflet-outside-mask-pane{pointer-events:none}
.tdp-water-app .tdp-leaflet-outside-mask-pane path{fill:#cfd6dc;fill-opacity:.48;stroke:none}

@media(max-width:620px){
  .tdp-water-app.tdp-water-mode-header .map-frame{
    height:clamp(650px,145vw,860px);
    min-height:650px;
  }
  .tdp-water-app.tdp-water-mode-header .map-control-stack{top:9px;left:9px}
  .tdp-water-app.tdp-water-mode-header .tdp-map-legend{
    top:210px;
    left:9px;
    width:min(220px,calc(100% - 18px));
    padding:7px 8px;
  }
  .tdp-water-app.tdp-water-mode-header .map-control-stack .control-label{display:none!important}
}

/* Version 1.6: basin-derived national perimeter and tighter header-map composition. */
.tdp-water-app.tdp-water-mode-header .map-widget,
.tdp-water-app.tdp-water-mode-header .map-frame,
.tdp-water-app.tdp-water-mode-header .map-canvas{
  margin:0!important;
  padding:0!important;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack{
  top:7px;
  left:7px;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend{
  top:auto!important;
  right:auto!important;
  bottom:30px;
  left:8px;
  width:max-content;
  max-width:calc(100% - 16px);
  padding:7px 8px;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend [data-map-legend]{
  grid-template-columns:repeat(2,max-content);
  column-gap:9px;
  row-gap:3px;
  width:max-content;
  max-width:100%;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend-item{
  grid-template-columns:7px max-content;
  width:max-content;
  white-space:nowrap;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend>strong{
  width:max-content;
  max-width:100%;
}

@media(max-width:620px){
  .tdp-water-app.tdp-water-mode-header .map-control-stack{top:6px;left:6px}
  .tdp-water-app.tdp-water-mode-header .tdp-map-legend{
    top:auto!important;
    bottom:28px;
    left:7px;
    width:max-content;
    max-width:calc(100% - 14px);
    padding:6px 7px;
  }
  .tdp-water-app.tdp-water-mode-header .tdp-map-legend [data-map-legend]{column-gap:7px;row-gap:2px}
  .tdp-water-app.tdp-water-mode-header .tdp-map-legend-item{font-size:8px}
}

/* Version 1.7: edge-to-edge header composition and deterministic basin switching. */
.tdp-water-app.tdp-water-mode-header{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.tdp-water-app.tdp-water-mode-header .map-widget,
.tdp-water-app.tdp-water-mode-header .map-frame,
.tdp-water-app.tdp-water-mode-header .map-canvas,
.tdp-water-app.tdp-water-mode-header .leaflet-container{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.tdp-water-app.tdp-water-mode-header .map-frame{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:var(--tdp-country-aspect,.7850433);
  overflow:hidden!important;
}
.tdp-water-app.tdp-water-mode-header .map-canvas,
.tdp-water-app.tdp-water-mode-header .leaflet-container{
  position:absolute!important;
  inset:0!important;
  height:100%!important;
}
.tdp-water-app .basin-button.is-loading svg{animation:tdp-basin-pulse 1s ease-in-out infinite}
@keyframes tdp-basin-pulse{0%,100%{opacity:.45}50%{opacity:1}}

/* Version 1.8: slightly smaller header frame, larger legend, and instant first paint. */
.tdp-water-app.tdp-water-mode-header .map-frame{
  aspect-ratio:.84!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend{
  bottom:30px!important;
  left:9px!important;
  padding:10px 12px!important;
  border-radius:16px!important;
  box-shadow:0 9px 23px rgba(9,49,69,.16)!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend>strong{
  margin-bottom:7px!important;
  font-size:12px!important;
  line-height:1.25!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend [data-map-legend]{
  grid-template-columns:repeat(2,max-content)!important;
  column-gap:13px!important;
  row-gap:4px!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend-item{
  grid-template-columns:9px max-content!important;
  gap:6px!important;
  font-size:10px!important;
  line-height:1.25!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend-item i{
  width:9px!important;
  height:9px!important;
}
.tdp-water-app .tdp-instant-map-preview{
  position:absolute;
  z-index:12;
  inset:0;
  display:block;
  overflow:hidden;
  background:#edf2f4;
  pointer-events:none;
  opacity:1;
  transition:opacity .22s ease;
}
.tdp-water-app .tdp-instant-map-preview.is-hidden{opacity:0}
.tdp-water-app .tdp-instant-map-preview svg{display:block;width:100%;height:100%}
.tdp-water-app .tdp-instant-map-preview path{
  fill:#f8fbfc;
  stroke:#154b67;
  stroke-width:1.6;
  stroke-linejoin:round;
  stroke-linecap:round;
  vector-effect:non-scaling-stroke;
}
.tdp-water-app .tdp-instant-map-preview circle{vector-effect:non-scaling-stroke}
@media(max-width:620px){
  .tdp-water-app.tdp-water-mode-header .map-frame{
    aspect-ratio:.825!important;
  }
  .tdp-water-app.tdp-water-mode-header .tdp-map-legend{
    bottom:27px!important;
    left:7px!important;
    padding:9px 10px!important;
  }
  .tdp-water-app.tdp-water-mode-header .tdp-map-legend>strong{font-size:11px!important}
  .tdp-water-app.tdp-water-mode-header .tdp-map-legend [data-map-legend]{column-gap:10px!important;row-gap:3px!important}
  .tdp-water-app.tdp-water-mode-header .tdp-map-legend-item{font-size:9px!important}
}

/* Version 1.9: smaller fixed header frame, infrastructure filter control, and reliable basin hover labels. */
.tdp-water-app.tdp-water-mode-header .map-frame{
  aspect-ratio:.89!important;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack{
  overflow:visible!important;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack>button,
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-picker{
  flex:0 0 32px;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack>button:nth-last-child(2){
  border-bottom:1px solid rgba(21,75,103,.13)!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-picker{
  position:relative;
  width:32px;
  height:32px;
}
.tdp-water-app.tdp-water-mode-header .header-infrastructure-button{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  border-radius:0 0 9px 9px!important;
  border-bottom:0!important;
}
.tdp-water-app.tdp-water-mode-header .header-infrastructure-button.active,
.tdp-water-app.tdp-water-mode-header .header-infrastructure-button.has-filter{
  background:#e9f7fd!important;
  color:#087da8!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-menu{
  position:absolute;
  z-index:1200;
  top:-96px;
  left:40px;
  width:260px;
  max-height:min(460px,calc(100vh - 30px));
  overflow:auto;
  padding:10px;
  border:1px solid rgba(21,75,103,.16);
  border-radius:13px;
  background:rgba(255,255,255,.97);
  color:var(--tdp-deep);
  box-shadow:0 18px 42px rgba(9,49,69,.22);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-menu[hidden]{display:none!important}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-head strong{
  font-size:11px;
  line-height:1.2;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-head span{
  color:var(--tdp-muted);
  font-size:9px;
  font-weight:700;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-bottom:7px;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-actions button{
  width:auto!important;
  height:28px!important;
  min-width:0!important;
  border:1px solid rgba(21,75,103,.13)!important;
  border-radius:7px!important;
  background:#f3f8fb!important;
  color:var(--tdp-deep)!important;
  font-size:9px!important;
  font-weight:700;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-actions button:hover,
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-actions button:focus-visible{
  background:#eaf7fc!important;
  border-color:rgba(41,171,226,.5)!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-options{
  display:grid;
  gap:2px;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option{
  --option:#29abe2;
  width:100%!important;
  height:auto!important;
  min-height:31px!important;
  display:grid!important;
  grid-template-columns:9px minmax(0,1fr) 15px;
  align-items:center;
  gap:8px;
  padding:6px 7px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:var(--tdp-deep)!important;
  text-align:left;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option:hover,
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option:focus-visible{
  background:#eef8fc!important;
  outline:none;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option i{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--option);
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option span{
  min-width:0;
  font-size:9.5px;
  line-height:1.2;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option svg{
  width:15px!important;
  height:15px!important;
  opacity:0;
  stroke:var(--tdp-blue)!important;
  stroke-width:2.4!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option.is-active svg{opacity:1}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend-item{
  transition:opacity .14s ease;
}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend-item.is-muted{opacity:.28}
.tdp-water-app .tdp-leaflet-basin-pane,
.tdp-water-app .tdp-leaflet-basin-pane svg{
  pointer-events:none!important;
}
.tdp-water-app .tdp-leaflet-basin-pane .leaflet-interactive{
  pointer-events:auto!important;
  cursor:help;
}
.tdp-water-app .tdp-leaflet-basin-tooltip{
  z-index:1300!important;
  font-family:"Oxygen",Arial,sans-serif!important;
  font-size:11px!important;
  font-weight:700!important;
}
@media(max-width:620px){
  .tdp-water-app.tdp-water-mode-header .map-frame{aspect-ratio:.875!important}
  .tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-menu{
    top:-96px;
    left:39px;
    width:min(250px,calc(100vw - 58px));
    max-height:390px;
  }
}


/* Version 1.10: five-column attribution, clean header filtering, and contained hover labels. */
.tdp-water-app .tdp-attribution-grid{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  column-gap:22px!important;
  row-gap:3px!important;
}
.tdp-water-app .tdp-attribution-source>a,
.tdp-water-app .tdp-attribution-source>strong{
  font-size:12.5px!important;
  line-height:1.42!important;
}
.tdp-water-app .tdp-attribution-source-meta{
  font-size:10.5px!important;
  line-height:1.45!important;
}
.tdp-water-app .tdp-attribution-basemap{font-size:11.5px!important}
.tdp-water-app.tdp-water-mode-header .tdp-map-legend{display:none!important}
.tdp-water-app.tdp-water-mode-header .map-control-stack>button:nth-last-child(2){border-bottom:1px solid rgba(21,75,103,.13)!important}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-menu{
  top:0;
  width:min(306px,calc(100vw - 56px));
  max-width:none;
  padding:11px;
  border-radius:14px;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-head{margin-bottom:9px}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-head strong{font-size:12px}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-head span{font-size:10px}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-options{gap:3px}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option{
  grid-template-columns:11px minmax(0,1fr) 17px;
  min-height:39px!important;
  gap:9px;
  padding:6px 8px!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option i{width:11px;height:11px}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-copy{display:block;min-width:0}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-copy strong{
  display:block;
  overflow:hidden;
  color:var(--tdp-deep);
  font-size:10.5px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-copy small{
  display:block;
  margin-top:1px;
  color:var(--tdp-muted);
  font-size:8.5px;
  line-height:1.2;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option:not(.is-active){opacity:.55}
.tdp-water-app.tdp-water-mode-header .tdp-leaflet-tooltip,
.tdp-water-app.tdp-water-mode-header .tdp-leaflet-basin-tooltip{
  max-width:min(240px,calc(100vw - 24px));
  white-space:normal;
  text-align:center;
  overflow-wrap:anywhere;
}
@media(max-width:1420px){
  .tdp-water-app .tdp-attribution-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:1120px){
  .tdp-water-app .tdp-attribution-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:780px){
  .tdp-water-app .tdp-attribution-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:520px){
  .tdp-water-app .tdp-attribution-grid{grid-template-columns:1fr!important}
  .tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-menu{width:min(286px,calc(100vw - 54px))}
}

/* Version 1.11: fast header-only labels, compact controls, and apply-on-OK filtering. */
.tdp-water-app.tdp-water-mode-header .empty-map,
.tdp-water-app.tdp-water-mode-header .status-pill{
  display:none!important;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack{
  width:29px!important;
  border-radius:8px!important;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack>button,
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-picker{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  flex:0 0 28px!important;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack>button{
  width:28px!important;
  height:28px!important;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack svg{
  width:13px!important;
  height:13px!important;
}
.tdp-water-app.tdp-water-mode-header .map-control-stack .control-label{
  left:35px!important;
  font-size:8.5px!important;
  padding:4px 6px!important;
}
.tdp-water-app.tdp-water-mode-header .header-infrastructure-button{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  border-radius:0 0 8px 8px!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-leaflet-marker{
  width:32px!important;
  height:36px!important;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.22))!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-leaflet-marker-pin{
  width:29px!important;
  height:29px!important;
  border-width:1.7px!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-leaflet-marker-pin svg{
  width:15px!important;
  height:15px!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-name-tooltip{
  display:block!important;
  width:max-content!important;
  min-width:0!important;
  max-width:min(330px,calc(100vw - 22px))!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  line-height:1.25!important;
  text-align:left!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-menu{
  display:flex;
  flex-direction:column;
  width:min(330px,calc(100vw - 48px))!important;
  max-height:min(500px,calc(100vh - 32px))!important;
  overflow:hidden!important;
  padding:11px!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-menu[hidden]{display:none!important}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-head{
  flex:0 0 auto;
  margin:0 0 8px!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-head strong{
  font-size:12px!important;
  line-height:1.25!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-actions{
  flex:0 0 auto;
  margin-bottom:7px!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-options{
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-right:2px;
  gap:3px!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option{
  grid-template-columns:30px minmax(0,1fr) 17px!important;
  min-height:38px!important;
  gap:9px!important;
  padding:4px 7px!important;
  opacity:1!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:var(--option);
  opacity:1;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-icon svg{
  width:16px!important;
  height:16px!important;
  opacity:1!important;
  fill:none!important;
  stroke:#fff!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-copy strong{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  word-break:normal!important;
  writing-mode:horizontal-tb!important;
  color:var(--tdp-deep)!important;
  font-size:11px!important;
  line-height:1.25!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-check{
  width:17px!important;
  height:17px!important;
  opacity:0!important;
  fill:none!important;
  stroke:var(--tdp-blue)!important;
  stroke-width:2.4!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option.is-active .tdp-header-category-check{opacity:1!important}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option:not(.is-active) .tdp-header-category-icon{opacity:.38}
.tdp-water-app.tdp-water-mode-header .tdp-header-category-option:not(.is-active) .tdp-header-category-copy strong{color:var(--tdp-muted)!important}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-apply{
  flex:0 0 auto;
  width:100%!important;
  height:34px!important;
  min-height:34px!important;
  margin-top:8px!important;
  border:1px solid var(--tdp-deep)!important;
  border-radius:8px!important;
  background:var(--tdp-deep)!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:1!important;
}
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-apply:hover,
.tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-apply:focus-visible{
  background:#0f3e56!important;
  outline:2px solid rgba(41,171,226,.28)!important;
  outline-offset:1px;
}
@media(max-width:620px){
  .tdp-water-app.tdp-water-mode-header .tdp-header-infrastructure-menu{
    width:min(310px,calc(100vw - 44px))!important;
    max-height:min(480px,calc(100vh - 24px))!important;
  }
  .tdp-water-app.tdp-water-mode-header .tdp-header-category-option{
    grid-template-columns:28px minmax(0,1fr) 16px!important;
    min-height:36px!important;
  }
  .tdp-water-app.tdp-water-mode-header .tdp-header-category-icon{width:28px;height:28px}
  .tdp-water-app.tdp-water-mode-header .tdp-header-category-copy strong{font-size:10.5px!important}
}

/* Version 1.12: long multi-jurisdiction records remain contained in the selected-feature panel. */
.tdp-water-app .tdp-feature-detail-card{height:100%;overflow:auto;overscroll-behavior:contain}
.tdp-water-app .tdp-feature-detail-row strong{white-space:normal}


/* Version 1.13: selected administrative jurisdiction compatibility styles. */
.tdp-water-app .tdp-admin-jurisdiction{margin:12px 0;padding:12px;border:1px solid rgba(41,171,226,.22);border-radius:13px;background:rgba(234,247,252,.58)}
.tdp-water-app .tdp-admin-jurisdiction-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.tdp-water-app .tdp-admin-jurisdiction-head span:first-child{display:block;color:var(--tdp-blue);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.tdp-water-app .tdp-admin-jurisdiction-head h3{margin:2px 0 0;color:var(--tdp-deep);font-size:15px;line-height:1.2}
.tdp-water-app .tdp-admin-map-key{display:flex!important;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:4px!important;color:var(--tdp-muted)!important;font-size:8px!important;text-transform:none!important;letter-spacing:0!important}
.tdp-water-app .tdp-admin-map-key i{display:inline-block;width:15px;height:8px;border:2px dashed #154b67;border-radius:2px;margin-left:4px}
.tdp-water-app .tdp-admin-map-key i.ward{border-style:solid;border-color:#29abe2;background:rgba(100,201,237,.16)}
.tdp-water-app .tdp-admin-jurisdiction-list{display:grid;gap:7px}
.tdp-water-app .tdp-admin-jurisdiction-item{padding:8px 9px;border-radius:9px;background:rgba(255,255,255,.82);border:1px solid rgba(21,75,103,.08)}
.tdp-water-app .tdp-admin-jurisdiction-item strong{display:block;color:var(--tdp-deep);font-size:11px;margin-bottom:3px}
.tdp-water-app .tdp-admin-jurisdiction-item span{display:block;color:var(--tdp-muted);font-size:10px;line-height:1.45}
.tdp-water-app .tdp-admin-jurisdiction-item b{color:var(--tdp-deep)}
.tdp-water-app .tdp-admin-jurisdiction-note{margin:8px 0 0;color:var(--tdp-muted);font-size:8.5px;line-height:1.4}
.tdp-water-app .tdp-leaflet-admin-tooltip{font-family:'Oxygen',Arial,sans-serif;background:rgba(21,75,103,.94);color:#fff;border:0;border-radius:7px;box-shadow:0 6px 16px rgba(0,0,0,.18);font-size:10px;font-weight:700;padding:6px 8px}
.tdp-water-app .tdp-leaflet-admin-tooltip::before{border-top-color:rgba(21,75,103,.94)}
@media(max-width:760px){.tdp-water-app .tdp-type-filter-group{grid-template-columns:1fr}.tdp-water-app .tdp-type-filter-group-title{padding-top:0}.tdp-water-app .tdp-admin-jurisdiction-head{display:block}.tdp-water-app .tdp-admin-map-key{justify-content:flex-start;margin-top:7px}}


/* Version 1.13 jurisdiction hierarchy refinement. */
.tdp-water-app .tdp-admin-jurisdiction-item{
  display:grid;
  gap:5px;
}
.tdp-water-app .tdp-admin-jurisdiction-item .tdp-admin-county-name{
  color:var(--tdp-blue);
  font-size:8px;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.tdp-water-app .tdp-admin-jurisdiction-item>strong{
  margin:0;
  color:var(--tdp-deep);
  font-size:12px;
  line-height:1.3;
}
.tdp-water-app .tdp-admin-ward-list{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}
.tdp-water-app .tdp-admin-ward-list span{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:4px 7px;
  border:1px solid rgba(41,171,226,.2);
  border-radius:999px;
  background:rgba(100,201,237,.13);
  color:var(--tdp-deep);
  font-size:9px;
  font-weight:700;
  line-height:1.2;
}
.tdp-water-app .tdp-admin-ward-list.is-empty span{
  border-color:rgba(21,75,103,.1);
  background:rgba(255,255,255,.55);
  color:var(--tdp-muted);
  font-weight:400;
}
.tdp-water-app .tdp-leaflet-admin-tooltip small{
  display:block;
  margin-top:2px;
  color:rgba(255,255,255,.78);
  font-size:8px;
  font-weight:400;
}


/* Version 1.14: text-only administrative jurisdiction details. */
.tdp-water-app .tdp-admin-jurisdiction{
  margin:12px 0;
  padding:12px;
  border:1px solid rgba(41,171,226,.22);
  border-radius:13px;
  background:rgba(234,247,252,.58);
}
.tdp-water-app .tdp-admin-jurisdiction-head{
  display:block;
  margin-bottom:9px;
}
.tdp-water-app .tdp-admin-jurisdiction-head span{
  display:block;
  color:var(--tdp-blue);
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.tdp-water-app .tdp-admin-jurisdiction-head h3{
  margin:2px 0 0;
  color:var(--tdp-deep);
  font-size:15px;
  line-height:1.25;
}
.tdp-water-app .tdp-admin-jurisdiction-rows{
  display:grid;
  gap:6px;
}
.tdp-water-app .tdp-admin-jurisdiction-row{
  display:grid;
  grid-template-columns:minmax(92px,.42fr) minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:8px 9px;
  border:1px solid rgba(21,75,103,.08);
  border-radius:9px;
  background:rgba(255,255,255,.84);
}
.tdp-water-app .tdp-admin-jurisdiction-row span{
  color:var(--tdp-muted);
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.tdp-water-app .tdp-admin-jurisdiction-row strong{
  color:var(--tdp-deep);
  font-size:11px;
  font-weight:700;
  line-height:1.45;
  white-space:normal;
  overflow-wrap:anywhere;
}
.tdp-water-app .tdp-admin-jurisdiction-note{
  margin:8px 0 0;
  color:var(--tdp-muted);
  font-size:8.5px;
  line-height:1.4;
}
@media(max-width:560px){
  .tdp-water-app .tdp-admin-jurisdiction-row{
    grid-template-columns:1fr;
    gap:3px;
  }
}


/* Version 1.15: flat infrastructure categories and inline jurisdiction details. */
.tdp-water-app .tdp-type-filter-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.tdp-water-app .tdp-feature-summary-list{
  display:grid;
  gap:2px;
}
.tdp-water-app .tdp-feature-detail-rows{
  margin-top:24px;
}
.tdp-water-app .tdp-map-legend>div{
  display:grid;
  gap:4px;
}
.tdp-water-app .tdp-list-classification{
  justify-content:flex-start;
}
.tdp-water-app.tdp-water-mode-full [data-stat="capacity"]{
  font-size:clamp(18px,2vw,28px)!important;
  overflow-wrap:anywhere;
}


/* Version 1.16: jurisdiction rows use the standard detail-row treatment. */


/* Version 1.18: compact filters and clickable numerical feature summary. */
.tdp-water-app.tdp-water-mode-full .tdp-filter-panel-compact .tdp-select-filters{
  margin-top:0;
}
.tdp-water-app.tdp-water-mode-full .tdp-feature-summary-item{
  width:100%;
  border-top:0;
  border-right:0;
  border-left:0;
  background:transparent;
  text-align:left;
  font:inherit;
  cursor:pointer;
  transition:background .16s ease,opacity .16s ease,transform .16s ease;
}
.tdp-water-app.tdp-water-mode-full .tdp-feature-summary-item:hover,
.tdp-water-app.tdp-water-mode-full .tdp-feature-summary-item:focus-visible{
  background:rgba(41,171,226,.075);
  outline:none;
}
.tdp-water-app.tdp-water-mode-full .tdp-feature-summary-item:active{
  transform:translateY(1px);
}
.tdp-water-app.tdp-water-mode-full .tdp-feature-summary-item[aria-pressed="false"]{
  opacity:.42;
}
.tdp-water-app.tdp-water-mode-full .tdp-feature-summary-item[aria-pressed="false"] .tdp-feature-summary-icon{
  filter:grayscale(.8);
}
.tdp-water-app.tdp-water-mode-full [data-stat="capacity"]{
  font-size:clamp(30px,3vw,40px)!important;
  line-height:1.05;
  overflow-wrap:normal;
}
