/* World Water Map: source-led, map-first controls in normal document flow. */
.water-map-tools{border:1px solid var(--line);border-radius:8px 8px 0 0;background:#101b24;padding:14px 16px;margin-top:8px}
.map-view-row,.water-layer-buttons,.view-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.map-view-row{justify-content:space-between;gap:12px}#water-layer-options.water-layer-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;border:0;padding:0}
.water-map-tools button,[data-map-mode="measures"]{background:#162536;border:1px solid #536579;border-radius:5px;color:#dbe6ee;padding:9px 14px;min-height:44px;font:inherit;cursor:pointer}.water-map-tools button[aria-pressed="true"],[data-map-mode="measures"][aria-pressed="true"]{background:#264a61;border-color:#84d6f3;color:#fff;box-shadow:inset 0 -2px #84d6f3}.water-map-tools button:hover{background:#293e51}
.click-mode{display:flex;align-items:center;gap:8px;font-size:14px;color:#b7c9d7}.click-mode select{background:#142334;border:1px solid #536579;color:#fff;padding:8px;min-height:44px;font:inherit}.water-map-tools p{margin:10px 0 0;color:#b7c9d7;font-size:14px;line-height:1.5}
#workspace .mapwrap{border-radius:0 0 8px 8px}#workspace .worldmap{height:clamp(350px,53vw,610px);min-height:350px;display:block;touch-action:none}#workspace .map-controls{position:static;display:flex;flex-direction:row;justify-content:flex-end;gap:6px;padding:8px 12px;background:#101b24}.map-controls button{min-width:44px;min-height:44px}.map-meta{position:static;display:flex;justify-content:space-between;gap:12px;padding:12px 16px;background:#101b24}.map-note{position:static;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.ocean-labels{pointer-events:none}
#water-geography{pointer-events:none}#map.feature-clicks #water-geography{pointer-events:auto}#water-geography .water-shape,#water-geography .water-feature-point{pointer-events:inherit}#map:not(.feature-clicks) .water-shape:hover{stroke-width:.7}#map:not(.feature-clicks) .water-feature-point{cursor:default}
.country-finder{padding:18px;border:1px solid var(--line);border-radius:7px;background:#101b24;margin:14px 0}.country-finder h2{font-size:20px}.country-finder .toolbar{display:flex;gap:10px;margin:12px 0;flex-wrap:wrap}.country-finder .search{flex:1 1 260px}.country-finder .picker{flex:1 1 220px;margin:0}.country-finder select{width:100%;min-height:44px}.country-finder .record-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.country-finder .record{min-height:102px;padding:12px}.country-finder .record small{line-height:1.45}.country-finder .more{margin-top:12px}
#country-dialog{width:min(900px,calc(100vw - 24px))}#country-dialog .dossier{border:0;padding:0;min-height:0;background:none}#country-dialog h2{font-size:28px;margin:0 0 6px}.country-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.country-fact{padding:16px;border:1px solid #3b5264;border-radius:6px;background:#142433}.country-fact h3{font-size:16px;margin:0 0 10px;color:#d0e4ef}.country-fact .fact-value{font-size:clamp(24px,3vw,34px);font-weight:700;line-height:1.2;color:#a6dcf4;overflow-wrap:anywhere}.country-fact p{font-size:14px;line-height:1.55;margin:10px 0 0}.country-fact small{display:block;color:#b4c3cf;line-height:1.5;margin-top:8px}.country-fact .unknown{font-size:23px;color:#c7cbd1}.country-secondary{border-top:1px solid var(--line);margin-top:18px;padding-top:10px}.country-secondary .value-row{font-size:15px}.country-secondary .value-row strong{font-size:16px}
.access-world{border:1px solid var(--line);padding:18px;border-radius:7px;margin:16px 0}.access-world h2{font-size:20px;margin-top:0}.access-world .world-numbers{display:flex;flex-wrap:wrap;gap:16px 38px}.access-world strong{display:block;font-size:29px;color:#a6dcf4}.access-world p{line-height:1.55}.access-world .smallprint{font-size:14px}.source-catalog p{line-height:1.6}.country-finder a,.access-world a{color:#b5dafa}
@media(max-width:900px){.country-finder .record-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#workspace .worldmap{height:64vw;min-height:260px}.water-map-tools{padding:12px}.map-view-row{align-items:stretch}.view-buttons{width:100%}.view-buttons button{flex:1 1 150px}.click-mode{width:100%;justify-content:space-between}.water-layer-buttons button{flex:1 1 95px;padding:9px}.country-finder{padding:12px}.country-finder .record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.country-finder .toolbar .search,.country-finder .toolbar .picker{flex:1 1 100%}.country-facts{grid-template-columns:1fr}.country-finder .section-heading{align-items:flex-start;gap:8px;flex-wrap:wrap}.map-meta{font-size:12px;flex-wrap:wrap}.world-footer .footer-brand-block{max-width:100%}.water-map-tools button:focus-visible,select:focus-visible,.record:focus-visible{outline:3px solid #bca0ed;outline-offset:3px}}
@media(max-width:380px){.country-finder .record-grid{grid-template-columns:1fr}.world-footer{gap:20px}.world-footer .footer-brand-block>p{font-size:10px}}

#metrics:empty{display:none}.country-finder .search:focus-within{outline:3px solid #bca0ed;outline-offset:2px}

#workspace .map-controls{align-items:center;flex-wrap:wrap}#workspace #clear-country{width:auto;min-width:100px;min-height:44px;height:auto;flex:0 0 auto;margin-right:auto;padding:9px 14px;font-size:15px;line-height:1.4;border:1px solid #a78cc9;border-radius:4px}

/* Keep Clear and zoom together at the left; finder stays below the map inside the same frame. */
#workspace .map-controls{justify-content:flex-start}#workspace #clear-country{margin-right:0}#workspace .mapwrap>.legend,#workspace .mapwrap>.smallprint{margin-left:14px;margin-right:14px}#workspace #country-data{margin:14px 0 0;border:0;border-top:1px solid var(--line);border-radius:0}

/* Lower information expands inline on request; native summary supplies expanded semantics. */
.water-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none}
.water-disclosure>summary::-webkit-details-marker{display:none}.water-disclosure>summary::marker{content:""}
.disclosure-label{min-width:0}.disclosure-indicator{flex:0 0 20px;text-align:center;color:#b7c9d7;font-size:23px;font-weight:400;line-height:1}.disclosure-indicator::before{content:"+"}.water-disclosure[open]>summary .disclosure-indicator::before{content:"−"}
#workspace #country-data{padding:0}.country-finder-body{padding:14px 16px}#workspace .mapwrap>.water-disclosure{margin:12px 0 0;border-width:1px 0 0;border-radius:0}#global-water-context .access-world{padding:0;margin:0;border:0}#global-water-context .access-world .world-numbers{padding-top:6px}
@media(max-width:700px){.country-finder-body{padding:12px}.water-disclosure>summary{font-size:16px}}

/* Heading metadata describes actual dataset years or source editions, separately from page revision. */
.disclosure-meta{flex:0 1 auto;max-width:46%;margin-left:auto;text-align:right;font-size:13px;font-weight:400;line-height:1.4;color:#b7c9d7}
@media(max-width:700px){.water-disclosure>summary{display:grid;grid-template-columns:minmax(0,1fr) 20px;gap:5px 12px}.disclosure-label{grid-column:1;grid-row:1}.disclosure-meta{grid-column:1;grid-row:2;justify-self:end;max-width:100%;font-size:12px}.disclosure-indicator{grid-column:2;grid-row:1/3;align-self:center}}

/* Geography uses the existing layer buttons; numerical views retain their necessary scales. */
.legend[hidden]{display:none}
