/* Scoped to the overview waterway map. */
#content .wm{--wm-ink:#17324f;--wm-muted:#687c91;--wm-line:#dce6ef;--wm-blue:#014090;margin:18px 0 28px;color:var(--wm-ink);font:15px/1.5 "Segoe UI",Arial,sans-serif}
#content .wm *,#content .wm *::before,#content .wm *::after{box-sizing:border-box}
#content .wm :where(div,p,span,a,button,input,output,summary,li){font-family:inherit;font-size:inherit;line-height:inherit}
#content .wm [hidden]{display:none!important}
#content .wm-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#content .wm-heading h1{margin:0;padding:0;background:none;color:var(--wm-ink);font:700 24px/1.25 "Segoe UI",Arial,sans-serif;text-shadow:none}
#content .wm-heading p{margin:0;padding:0;color:var(--wm-muted);font-size:14px}
#content .wm .wm-cruises{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;min-height:36px;padding:8px 14px;border-radius:9px;background:var(--wm-blue);color:white;text-decoration:none;font-size:12px;font-weight:600}
#content .wm .wm-cruises:hover{background:#0a5baf}
#content .wm-card{overflow:clip;border:1px solid var(--wm-line);border-radius:16px;background:#fff;box-shadow:0 10px 36px -26px #183e6b55}
#content .wm-toolbar{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-bottom:1px solid var(--wm-line);background:#fff}
#content .wm-regions{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
#content .wm button{cursor:pointer;appearance:none;box-shadow:none;text-shadow:none}
#content .wm-regions button{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:5px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#52687e;font-size:12px;font-weight:600;white-space:nowrap}
#content .wm-regions button:hover{background:#edf4fb;color:var(--wm-blue)}
#content .wm-regions button[aria-pressed=true]{background:#eaf2fd;border-color:#cbdcf3;color:var(--wm-blue)}
#content .wm-dot{width:7px;height:7px;border-radius:50%;background:var(--river)}
#content .wm-volga{--river:#2678cf}#content .wm-north{--river:#239e9c}#content .wm-kama{--river:#8870c0}#content .wm-oka{--river:#5a91ab}#content .wm-don{--river:#cf9750}
#content .wm-search{position:relative;display:flex;align-items:center;flex:1 1 170px;max-width:200px;min-width:160px}
#content .wm-search>svg{position:absolute;left:10px;width:16px;height:16px;color:#8a9caf;pointer-events:none}
#content .wm-search input{width:100%;height:34px;padding:5px 26px 5px 32px;border:1px solid var(--wm-line);border-radius:8px;background:#f7f9fc;color:var(--wm-ink);font-size:13px;outline:none}
#content .wm-search input:focus{border-color:#79a7da;background:white;box-shadow:0 0 0 3px #2678cf15}
#content .wm-results{position:absolute;top:calc(100% + 4px);right:0;left:0;z-index:5;max-height:275px;overflow:auto;margin:0;padding:5px;list-style:none;border:1px solid var(--wm-line);border-radius:10px;background:white;box-shadow:0 12px 28px #17324f22}
#content .wm-results li{margin:0;padding:0;list-style:none;background:none}
#content .wm-results button{width:100%;padding:10px;border:0;border-radius:6px;background:white;color:var(--wm-ink);text-align:left;font-size:13px}
#content .wm-results button:hover,#content .wm-results button:focus-visible{background:#eaf2fd}
#content .wm-results .wm-empty{padding:10px;color:var(--wm-muted);font-size:13px}
#content .wm-viewport{position:relative;height:650px;overflow:hidden;background:radial-gradient(ellipse at 30% 20%,#fff,#f4f8fc);isolation:isolate}
#content .wm-map{display:block;width:100%;height:100%;overflow:hidden}
#content .wm.is-loading .wm-map{visibility:hidden;pointer-events:none}
#content .wm.is-loading .wm-zoom{display:none}
#content .wm.is-loading .wm-map-note{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%);margin:0;padding:12px 16px;text-align:center;font-size:13px}
#content .wm.is-ready .wm-map{cursor:grab;touch-action:pan-y}
#content .wm.is-ready .wm-map.is-zoomed{touch-action:none}
#content .wm.is-ready .wm-map.is-dragging{cursor:grabbing}
#content .wm:not([data-show-sources="true"]) .wm-source{display:none}
#content .wm-source-path{fill:none;stroke:var(--river);stroke-width:2;stroke-dasharray:3 4;stroke-linecap:round;vector-effect:non-scaling-stroke}
#content .wm-source circle{fill:#fff;stroke:var(--river);stroke-width:2;vector-effect:non-scaling-stroke}
#content .wm-source text{fill:var(--river);font:600 13px "Segoe UI",Arial,sans-serif;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
#content .wm-lakes{fill:#dceef7;stroke:#fff;stroke-width:3}
#content .wm-river{stroke:var(--river);stroke-width:5;transition:opacity .2s;vector-effect:non-scaling-stroke}
#content .wm-river-labels text{fill:#88a2b7;font:600 11px "Segoe UI",Arial,sans-serif;letter-spacing:1.5px}
#content .wm-river-labels text:nth-last-child(-n+3){font-weight:400;letter-spacing:0;font-size:12px}
#content .wm-city{outline:none;cursor:pointer;transition:opacity .2s}
#content .wm-city-point{fill:#fff;stroke:#396c99;stroke-width:2;vector-effect:non-scaling-stroke}
#content .wm-city text{fill:#34526e;font:500 14px "Segoe UI",Arial,sans-serif;paint-order:stroke;stroke:#f8fbfe;stroke-width:5px;stroke-linejoin:round;user-select:none}
#content .wm-city-major text{fill:#183d61;font-size:17px;font-weight:700}
#content .wm-city-major .wm-city-point{fill:#345f8b;stroke:white}
#content .wm-city-halo{fill:transparent;stroke:transparent;stroke-width:2;vector-effect:non-scaling-stroke}
#content .wm-city:hover .wm-city-point,#content .wm-city:focus-visible .wm-city-point,#content .wm-city.is-selected .wm-city-point{fill:#014090;stroke:#fff}
#content .wm-city:hover text,#content .wm-city:focus-visible text,#content .wm-city.is-selected text{fill:#014090;font-weight:700}
#content .wm-city:focus-visible .wm-city-halo,#content .wm-city.is-selected .wm-city-halo{fill:#2678cf20;stroke:#2678cf}
#content .wm .is-muted{opacity:.16}
#content .wm-zoom{position:absolute;top:18px;right:18px;display:grid;overflow:hidden;border:1px solid var(--wm-line);border-radius:11px;background:#fff;box-shadow:0 3px 15px #17324f0b}
#content .wm-zoom button{display:flex;align-items:center;justify-content:center;width:44px;height:42px;padding:0;border:0;background:#fff;color:var(--wm-ink);font-size:25px;font-weight:400}
#content .wm-zoom button:hover{background:#eef4fb}
#content .wm-zoom button:disabled{opacity:.3;cursor:default}
#content .wm-zoom .wm-expand{border-top:1px solid #edf1f5;height:44px}
#content .wm-expand svg{width:19px;height:19px}
#content .wm-scale{padding:0 3px;color:#788ba0;font-size:10px;text-align:center}
#content .wm-hint{position:absolute;right:18px;bottom:15px;left:18px;color:#8091a3;font-size:11px;text-align:center;pointer-events:none}
#content .wm-selection{position:absolute;left:18px;bottom:42px;display:block;max-width:calc(100% - 36px);padding:12px 52px 12px 16px;border:1px solid #d2e0ef;border-radius:10px;background:#ffffffed;box-shadow:0 6px 20px #17324f10}
#content .wm-selection span{display:block;color:var(--wm-muted);font-size:10px}
#content .wm-selection strong{display:block;margin-top:2px;color:var(--wm-ink);font-size:15px}
#content .wm-selection button{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:6px;background:#eef3f9;color:#6d849a;line-height:1}
#content .wm-selection button svg{display:block;width:14px;height:14px}
#content .wm-city-index{margin-top:18px;padding:0;border:1px solid var(--wm-line);border-radius:11px;background:#fff}
#content .wm-city-index summary{padding:15px 18px;color:#4e6983;font-size:13px;font-weight:600;cursor:pointer}
#content .wm-city-index summary span{display:inline-block;margin-left:7px;padding:0 7px;border-radius:5px;background:#edf3f9;color:#8395a8;font-size:11px}
#content .wm-city-index summary small{display:block;margin:5px 0 0 14px;color:#7a8c9d;font-size:11px;font-weight:400;line-height:1.5}
#content .wm-city-list{column-count:4;column-gap:18px;padding:0 18px 18px}
#content .wm .wm-city-list a{color:#356a9c;font-size:12px;text-decoration:none}
#content .wm .wm-city-list a:hover{text-decoration:underline}
#content .wm button:focus-visible,#content .wm a:focus-visible,#content .wm summary:focus-visible{outline:2px solid #2678cf;outline-offset:3px}
#content .wm-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;padding:0!important;margin:-1px!important;border:0!important}
@media(max-width:920px){#content .wm{margin:16px 0 24px}#content .wm-heading{gap:12px}#content .wm-heading h1{font-size:22px}#content .wm-toolbar{padding:8px 10px}#content .wm-search{max-width:none;flex-basis:100%}#content .wm-viewport{height:570px}}
@media(max-width:600px){#content .wm-heading{align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:12px}#content .wm-heading h1{font-size:20px}#content .wm-heading p{font-size:13px}#content .wm .wm-cruises{min-height:34px;padding:7px 12px;font-size:12px}#content .wm-regions{gap:4px}#content .wm-regions button{padding:5px 7px;min-height:32px;font-size:11px}#content .wm-viewport{height:470px}#content .wm-zoom{top:12px;right:12px}#content .wm-zoom button{width:38px;height:36px}#content .wm-zoom .wm-expand{height:38px}#content .wm-hint{font-size:0}#content .wm-hint::after{content:"Увеличьте карту, чтобы рассмотреть города";font-size:10px}#content .wm-city-list{column-count:2;column-gap:12px}#content .wm-selection{left:12px;bottom:35px;padding:9px 50px 9px 12px}#content .wm-selection strong{font-size:13px}}
@media(prefers-reduced-motion:reduce){#content .wm *{transition:none!important;scroll-behavior:auto!important}}
#content .wm-geographic{position:absolute;inset:0;z-index:1;opacity:0;background:#f4f7f9;transition:opacity .2s}
#content .wm.has-geographic .wm-geographic{opacity:1}
#content .wm .wm-zoom,#content .wm .wm-selection{z-index:3}
#content .wm.has-geographic .wm-hint{display:none}
#content .wm-map-note{position:absolute;left:14px;bottom:12px;z-index:4;max-width:calc(100% - 28px);padding:7px 10px;border:1px solid #dce6ef;border-radius:7px;background:#fffffff5;color:#687c91;font-size:11px}
#content .wm-geographic .maplibregl-ctrl-attrib{color:#61758a;font:10px/1.5 "Segoe UI",Arial,sans-serif}
#content .wm-geographic .maplibregl-ctrl-attrib a{color:#456887;font-size:10px}
#content .wm-geographic .maplibregl-ctrl-attrib-button{min-width:20px;min-height:20px}
#content .wm-geographic .maplibregl-ctrl-scale{color:#566f86;font:10px/1.5 "Segoe UI",Arial,sans-serif;border-color:#7390a8;background:#ffffffbb}
#content .wm .wm-geo-marker{display:block;width:14px;height:14px;min-width:0;min-height:0;margin:0;padding:0;border:2px solid white;border-radius:50%;background:var(--point,#2678cf);box-shadow:0 1px 5px #17324f66;cursor:pointer;outline-offset:4px;overflow:visible}
#content .wm .wm-geo-marker::before{content:"";position:absolute;inset:-9px}
#content .wm .wm-geo-marker:hover,#content .wm .wm-geo-marker:focus-visible,#content .wm .wm-geo-marker.is-selected{z-index:5!important;border-color:#fff;box-shadow:0 0 0 5px #2678cf35}
#content .wm .wm-geo-marker.is-muted{opacity:.16!important}
#content .wm-geographic .maplibregl-cooperative-gesture-screen{font:14px/1.5 "Segoe UI",Arial,sans-serif}

/* Alphabetical reading order runs down each column, then across. */
#content .wm .wm-city-list .wm-city-item{display:block;break-inside:avoid;margin:0 0 10px;font-size:12px;line-height:1.5}
#content .wm .wm-city-list .is-unavailable{color:#8b96a1;cursor:default}
#content .wm-legend{display:none;flex-wrap:wrap;gap:8px 22px;margin:14px 2px 0;color:#64778b;font-size:12px}
#content .wm-legend span{display:inline-flex;align-items:center;gap:7px}
#content .wm-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}
#content .wm-legend-active{background:#2678cf}
#content .wm-legend-inactive{background:#a6b1bd}
#content .wm .wm-results button:disabled{color:#8995a1;cursor:default;background:transparent}
#content .wm .wm-geo-marker.is-unavailable{--point:#9caab7!important;cursor:default;opacity:.5;box-shadow:none!important}
#content .wm .wm-city.is-unavailable{cursor:default;opacity:.4}
#content .wm .wm-city.is-unavailable .wm-city-point{fill:#c1cad2;stroke:#9caab7}
#content .wm .wm-city.is-unavailable text{fill:#8b96a1;font-weight:500}
#content .wm-map:not(.is-zoomed) .wm-city.is-unavailable:not(.wm-city-major):not(.is-selected):not(:hover):not(:focus-visible) text{display:none}
/* Keep scroll/touch help readable without darkening the whole map. */
#content .wm-geographic .maplibregl-cooperative-gesture-screen{inset:12px 64px auto 12px;min-height:0;padding:0;background:transparent;align-items:flex-start;color:#294965;font-size:12px;line-height:1.4}
#content .wm-geographic .maplibregl-cooperative-gesture-screen>div{max-width:360px;padding:8px 12px;border:1px solid #dce6ef;border-radius:8px;background:#fffffff2;box-shadow:0 2px 8px #17324f12}

#content .wm-river{opacity:.18}
#content .wm-river-bright{opacity:.9}
#content .wm-river.is-muted,#content .wm-river-context{display:none}

/* Expand this complete component, preserving the surrounding site's layout. */
#content .wm.is-expanded{box-sizing:border-box;position:fixed;inset:0;z-index:100000;width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;display:flex;flex-direction:column;gap:0;margin:0;padding:18px 26px;background:#f5f8fc;overflow:auto;text-align:left}
#content .wm.is-expanded .wm-heading{flex-shrink:0;margin-bottom:10px}
#content .wm.is-expanded .wm-heading h1{font-size:20px;margin-bottom:0}
#content .wm.is-expanded .wm-card{display:flex;flex-direction:column;flex:1 0 300px;min-height:300px}
#content .wm.is-expanded .wm-toolbar{flex-shrink:0;padding:8px 12px}
#content .wm.is-expanded .wm-viewport{flex:1 1 auto;min-height:200px;height:auto}
#content .wm.is-expanded .wm-legend{flex-shrink:0;margin-top:8px}
#content .wm.is-expanded .wm-city-index{flex-shrink:0;margin-top:10px;max-height:25vh;overflow:auto}
#content .wm.is-expanded .wm-city-index summary{position:sticky;top:0;z-index:1;padding:10px 16px;background:#fff}
@media(max-width:600px){#content .wm.is-expanded{padding:12px}#content .wm.is-expanded .wm-heading{flex-direction:row;align-items:center;gap:8px}#content .wm.is-expanded .wm-heading h1{font-size:18px}#content .wm.is-expanded .wm-heading p{font-size:11px}#content .wm.is-expanded .wm-cruises{font-size:11px;padding:7px 9px;gap:6px}#content .wm.is-expanded .wm-toolbar{padding:8px 10px}}

#content .wm .wm-inactive-toggle{display:inline-flex;align-items:center;gap:7px;margin:-4px 0;padding:3px 7px;border:1px solid #dce6ef;border-radius:6px;background:#fff;color:#64778b;font-size:12px;line-height:18px}
#content .wm .wm-inactive-toggle:hover{background:#edf4fb;border-color:#91b5d8}
#content .wm .wm-inactive-toggle[aria-pressed=false]{color:#8997a5;background:transparent;border-style:dashed}
#content .wm .wm-inactive-toggle[aria-pressed=false]::after{content:"Скрыты";font-size:10px;color:#8091a3}
#content .wm.hide-inactive .wm-geo-marker.is-unavailable,#content .wm.hide-inactive .wm-city.is-unavailable,#content .wm.hide-inactive .wm-city-list .is-unavailable{display:none!important}

/* Separate tributaries from the river/canal selector bearing another name. */
#content .wm-oka-river,#content .wm-moskva{stroke:#5a91ab}
#content .wm-belaya{stroke:#8870c0}

/* Rybinsk belongs to both the Volga and Sheksna/northern corridor. */
#content .wm .wm-geo-marker[data-wm-geo-city="rybinsk"]:not(.is-unavailable){background:linear-gradient(90deg,#2678cf 50%,#239e9c 50%)}
#content .wm-city[data-wm-city="rybinsk"]:not(.is-unavailable) .wm-city-point{fill:url(#wm-rybinsk-rivers);stroke:#fff}
