#waterways-panel{display:none;scroll-margin-top:90px;--ww-accent:#086f78}body[data-panel=waterways] #waterways-panel{display:block}body[data-panel=waterways] main>:not(#waterways-panel):not(.app-footer){display:none!important}
.ww-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:4px 0 18px}.ww-heading h1{font-size:28px;line-height:1.45;margin:5px 0}.ww-heading p{color:var(--muted);font-size:14px;line-height:1.8;margin:0}.ww-heading .eyebrow{color:var(--ww-accent)}
.ww-badge{background:#e4f3f1;border:1px solid #b6dcd7;border-radius:16px;padding:13px 20px;color:#155b62;white-space:nowrap;text-align:center}.ww-badge strong{display:block;font-size:26px}.ww-badge span{font-size:12px}
.ww-groups{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.ww-groups button{min-height:48px;background:white;border:1px solid #d0dfe2;padding:10px 15px;border-radius:24px;color:#29464f;font-size:13px}.ww-groups button[aria-pressed=true]{background:#125c64;color:white;border-color:#125c64}.ww-groups small{margin-left:8px;opacity:.8}
.ww-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr);gap:22px;align-items:start}.ww-map-box{position:sticky;top:100px;background:white;border:1px solid var(--border);border-radius:18px;overflow:hidden;min-width:0}.ww-map-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:12px}.ww-map-tools strong{flex:1;font-size:14px}.ww-map-tools button{min-height:44px;font-size:12px;padding:8px 10px;background:#f0f6f6;color:#215861;border:1px solid #d8e6e8}#waterways-map{height:480px;background:#e7efeb;z-index:0}.ww-map-box p{padding:0 14px;font-size:12px;line-height:1.8;color:#596d74}.ww-map-box .leaflet-control-zoom{margin-top:12px!important}
.ww-key{display:flex;gap:14px;flex-wrap:wrap;padding:12px 14px;font-size:12px}.ww-key span::before{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;background:#0c7881;margin-right:6px}.ww-key span+span::before{background:#647981}.ww-marker{background:none;border:0}.ww-marker span{display:grid;place-items:center;width:32px;height:32px;border:3px solid white;border-radius:50%;background:#647981;color:white;box-shadow:0 2px 6px #0004;font:700 11px sans-serif}.ww-marker.selected span{background:#087983;width:36px;height:36px;font-size:14px}.ww-marker:focus-visible{outline:3px solid #c5680e;outline-offset:4px}.ww-popup button{min-height:44px;display:block;margin-top:9px}
.ww-route-head h2{font-size:22px;margin:0 0 5px}.ww-route-head p{font-size:13px;color:var(--muted);line-height:1.8;margin:5px 0}.ww-route-head .ww-order-note{background:#edf6f5;border-radius:10px;padding:10px 12px;color:#1c5c64}.ww-route-status{font-size:12px;line-height:1.7;min-height:21px;color:#5d6e72}.ww-route-actions{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:12px 0}.ww-route-actions button{min-height:44px;font-size:12px}.ww-route-actions p{margin:0}
.ww-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0;padding:0;list-style:none}.ww-card{min-width:0;border:1px solid #d4e1e3;background:white;border-radius:14px;overflow:hidden;scroll-margin-top:210px}.ww-card:focus{outline:3px solid #c8791a;outline-offset:3px}.ww-card-head{padding:12px 12px 9px;display:flex;gap:10px;align-items:start}.ww-index{display:grid;place-items:center;flex:none;width:28px;height:28px;background:#e0f1ef;color:#075d65;border-radius:50%;font-size:13px;font-weight:700}.ww-card h3{font-size:13px;line-height:1.6;margin:0}.ww-card h3 small{display:block;color:#63777c;font-weight:500}.ww-photo{aspect-ratio:16/9;background:#eaf0f1;position:relative;display:grid;place-items:center;overflow:hidden}.ww-photo img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.ww-photo p{padding:16px;text-align:center;font-size:12px;color:#50646b;line-height:1.7;margin:0}.ww-photo-button{display:block;width:100%;padding:0;border:0;border-radius:0;background:transparent;text-align:inherit;color:inherit}.ww-photo-button:focus-visible{outline:3px solid #c8791a;outline-offset:-3px}.ww-meta{padding:10px 12px;font-size:11px;line-height:1.75}.ww-meta p{margin:0 0 5px;overflow-wrap:anywhere}.ww-state{color:#5d6f75}.ww-state[data-state=stale],.ww-state[data-state=error]{color:#9c4109;font-weight:700}.ww-card-actions{display:flex;gap:6px;flex-wrap:wrap}.ww-card-actions button{min-height:44px;font-size:11px;padding:7px 9px}.ww-card-actions button:first-child{background:#17646c;color:white;border-color:#17646c}.ww-card.missing{border-style:dashed}.ww-card.missing .ww-index{background:#edf0f1;color:#687b80}.ww-footnote{font-size:12px;color:#60757b;line-height:1.8;margin:20px 0}.ww-return{min-height:44px;margin:8px 0 14px}#waterways-map-error{color:#a74020}
@media(max-width:1100px){.ww-layout{grid-template-columns:1fr}.ww-map-box{position:static}#waterways-map{height:360px}.ww-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){#waterways-panel{scroll-margin-top:210px}.ww-heading h1{font-size:25px}.ww-map-tools strong{flex-basis:100%}}
@media(max-width:650px){.ww-heading{align-items:start;gap:10px}.ww-heading h1{font-size:23px}.ww-heading p{font-size:12px}.ww-badge{padding:10px;white-space:normal;max-width:85px;flex-shrink:0}.ww-badge strong{font-size:22px}.ww-badge span{font-size:10px}.ww-groups{gap:6px;margin:14px 0}.ww-groups button{padding:9px 12px;font-size:12px}.ww-groups small{margin-left:4px}.ww-cards{grid-template-columns:1fr}.ww-card h3{font-size:15px}.ww-meta{font-size:12px}.ww-card-actions button{font-size:12px}.ww-layout{gap:20px}#waterways-map{height:330px}.ww-map-tools button{flex:1}.ww-route-actions{align-items:start}.ww-key{font-size:11px}.ww-route-head h2{font-size:21px}}
/* Nine destinations stay reachable without adding a third mobile navigation row. */
@media(max-width:900px){.app-nav{grid-template-columns:repeat(5,minmax(0,1fr))}#waterways-panel,.ww-card{scroll-margin-top:240px}}
@media(min-width:901px){.app-nav{top:100px;bottom:200px;padding-top:12px;padding-bottom:12px;overflow-y:auto}.app-nav>*{flex-shrink:0}}
/* Lightweight schematic: viewing order from the owner's document, not map geometry. */
.ww-diagram{background:linear-gradient(135deg,#f3faf5,#edf6fa);border:1px solid #cbdfe1;border-radius:18px;margin:0 0 22px;padding:18px 16px 14px;overflow:hidden}.ww-diagram-heading{display:flex;gap:12px;align-items:baseline;justify-content:space-between}.ww-diagram-heading h2{font-size:18px;margin:0;line-height:1.6;color:#154d60}.ww-diagram-heading p{font-size:12px;color:#56727b;margin:0}.ww-diagram-body{position:relative;height:170px;margin-top:16px}.ww-river-art{position:absolute;width:100%;height:100%;inset:0;pointer-events:none}.ww-river-art.mobile{display:none}.ww-diagram-stops{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:0;padding:0;list-style:none;gap:0}.ww-diagram-count-3 .ww-diagram-stops{grid-template-columns:repeat(3,minmax(0,1fr))}.ww-diagram-count-5 .ww-diagram-stops{grid-template-columns:repeat(5,minmax(0,1fr))}.ww-diagram-stops li{min-width:0}.ww-diagram-stop{display:flex;flex-direction:column;align-items:center;width:100%;min-height:120px;border:0;background:transparent;padding:11px 5px 0;color:#234a56;line-height:1.45;text-align:center;box-shadow:none;border-radius:10px}.ww-diagram-stop:hover{background:#ffffff60}.ww-diagram-stop:focus-visible{outline:3px solid #ae630d;outline-offset:-3px}.ww-diagram-pin{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;background:#0d7889;color:white;border:3px solid #fff;box-shadow:0 2px 5px #14546330;font-size:14px;font-weight:700}.ww-diagram-stop.pending .ww-diagram-pin{background:#fff;color:#697d85;border:2px dashed #7b939c}.ww-diagram-label{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;max-width:100%;margin-top:8px;overflow-wrap:anywhere;background:#f8fcf9ed;padding:3px 6px;border-radius:7px}.ww-diagram-label b{font-size:12px;color:#15667b}.ww-diagram-label small{font-size:10px;color:#70552c}.ww-diagram-note{margin:10px 0 0;font-size:12px;color:#526c76;line-height:1.7}.ww-diagram-lake{padding:8px 12px;background:#dceff8;color:#165f7d;font-size:12px;border-radius:8px;margin:8px 0}.ww-diagram-shared-label{font-size:11px;color:#526c76;margin:10px 0 2px}.ww-diagram-shared{display:flex;flex-wrap:wrap;gap:7px}.ww-diagram-shared button{font-size:12px;min-height:44px;padding:7px 12px;background:white;border:1px solid #bdd7dc;color:#155e6b}
@media(max-width:700px){.ww-diagram{padding:15px 8px 12px}.ww-diagram-heading{display:block;padding:0 6px}.ww-diagram-heading h2{font-size:17px}.ww-diagram-heading p{margin-top:5px}.ww-diagram-body{height:340px}.ww-diagram-count-3{height:170px}.ww-river-art.desktop{display:none}.ww-river-art.mobile{display:block}.ww-diagram-body .ww-diagram-stops{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:170px}.ww-diagram-body:not(.unordered) li:nth-child(4){grid-row:2;grid-column:3}.ww-diagram-body:not(.unordered) li:nth-child(5){grid-row:2;grid-column:2}.ww-diagram-body:not(.unordered) li:nth-child(6){grid-row:2;grid-column:1}.ww-diagram-label{font-size:11px;padding:3px;line-height:1.55}.ww-diagram-note{padding:0 6px;font-size:11px}}
