.flow-section { padding-block-start: clamp(2rem,4vw,3.75rem); }
.flow-section [hidden] { display:none!important; }
.flow-heading { display:flex; justify-content:space-between; align-items:center; gap:1.5rem; margin-block-end:1.3rem; }
.flow-heading h2 { margin:0 0 .4rem; font:normal clamp(2rem,3.8vw,3.5rem)/1.12 Georgia,serif; letter-spacing:-.028em; color:#163f32; }
.flow-heading p { max-width:67ch; margin:0; font-size:1.05rem; line-height:1.6; color:#405d50; }
.flow-play { flex:none; display:inline-flex; align-items:center; justify-content:center; gap:.55rem; padding:.75rem 1.15rem; min-height:46px; border:1px solid #234f3d; border-radius:30px; color:#f6faf0; background:#214e3e; font:650 .95rem/1.35 system-ui,sans-serif; cursor:pointer; }
.flow-play:hover { background:#163d30; }
.flow-play svg { width:1rem; height:1rem; }
.pause-glyph,.flow-playing .play-glyph { display:none; }
.flow-playing .pause-glyph { display:block; }
.flow-board { border:1px solid #c4d4c6; border-radius:20px; background:#fff; overflow:hidden; box-shadow:0 6px 20px #1b392d09; }
.river-viewport { overflow:hidden; position:relative; background:#c8dfd1; }
.river-world { width:100%; height:auto; display:block; }
.river-routes { stroke:#448883; stroke-width:3; }
[data-route="2"] { stroke-dasharray:2 6; }
.river-routes .selected-route { stroke:#0d615d; stroke-width:4.2; }
.river-tags g { display:none; }
.river-tags .selected-tag { display:block; }
.river-tags text { fill:#fff; text-anchor:middle; }
.tag-leader { fill:none; stroke:#244d40; stroke-width:1.8; }
.flow-enhanced .river-hotspots { cursor:pointer; }
.river-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:#164336; }
.river-nav button { position:relative; display:flex; align-items:center; gap:.65rem; justify-content:center; padding:1.05rem .7rem; min-height:55px; background:transparent; color:#edf6e8; font:600 1rem/1.4 system-ui,sans-serif; border:0; border-inline-end:1px solid #71978469; cursor:pointer; }
.river-nav button:last-child { border-inline-end:0; }
.river-nav svg { width:1.35rem; height:1.35rem; flex:none; }
.river-nav button:hover { background:#285b4b; }
.river-nav button[aria-pressed=true] { background:#d8ead2; color:#194733; }
.river-nav button[aria-pressed=true]::after { content:""; position:absolute; inset:auto 0 0; height:4px; background:#377e65; transform-origin:left; transform:scaleX(var(--progress,0)); }
.flow-play:focus-visible,.flow-detail a:focus-visible { outline:3px solid #0965a3; outline-offset:3px; }
.river-nav button:focus-visible { outline:3px solid #ffd186; outline-offset:-4px; z-index:1; }
.river-nav button[aria-pressed=true]:focus-visible { outline-color:#17659a; }
.flow-descriptions { color:#193c2f; }
.flow-detail { padding:clamp(1.3rem,2.8vw,2.35rem); border-top:1px solid #d4dfd4; scroll-margin-top:6rem; }
.flow-detail h3 { font:normal clamp(1.55rem,2.6vw,2.35rem)/1.18 Georgia,serif; letter-spacing:-.022em; margin:.15rem 0 .55rem; }
.flow-position { font:650 .86rem/1.5 system-ui,sans-serif; color:#416852; }
.flow-detail p { margin:0; max-width:74ch; font-size:1.02rem; line-height:1.65; color:#425d50; }
.flow-detail a,.flow-source a { text-decoration:underline; text-underline-offset:3px; }
.flow-detail a { display:inline-block; font-weight:600; font-size:.92rem; margin-top:.65rem; }
.flow-source { margin:.7rem 0 0; color:#53685b; font-size:.88rem; line-height:1.6; }
.treatment-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; list-style:none; margin:1rem 0 .4rem; padding:0; }
.treatment-steps li { border-inline-start:3px solid #c8d9cc; padding:.1rem 0 .1rem .9rem; font-size:.98rem; line-height:1.5; color:#425d50; }
.treatment-steps strong { display:block; color:#204934; margin-bottom:.25rem; }
.treatment-steps li[aria-current] { border-color:#23756b; }
@media(prefers-reduced-motion:no-preference) {
  .river-nav button,.flow-play { transition:background-color .18s,color .18s; }
  .flow-enhanced:not(.flow-still) .river-bubbles circle { animation:rise-bubbles 2.2s ease-in infinite; animation-play-state:paused; }
  .river-bubbles circle:nth-child(2n) { animation-delay:-.8s; }
  .river-bubbles circle:nth-child(3n) { animation-delay:-1.45s; }
  .flow-playing[data-current="2"] .river-bubbles circle { animation-play-state:running; }
  .flow-enhanced:not(.flow-still) .river-ripples { animation:stream-ripples 2.8s ease-in-out infinite alternate; animation-play-state:paused; }
  .flow-playing[data-current="3"] .river-ripples { animation-play-state:running; }
  @keyframes rise-bubbles { 0% { opacity:.25; transform:translateY(5px); } 40% { opacity:1; } 100% { opacity:.12; transform:translateY(-7px); } }
  @keyframes stream-ripples { to { transform:translateX(8px); opacity:.55; } }
}
@media(max-width:700px) {
  .flow-heading { flex-direction:column; align-items:flex-start; gap:.85rem; }
  .treatment-steps { grid-template-columns:1fr; gap:.7rem; }
}
@media(max-width:600px) {
  .river-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .river-nav button { justify-content:flex-start; text-align:left; padding:.65rem .9rem; min-height:46px; font-size:.94rem; border-bottom:1px solid #71978469; }
  .flow-board { border-radius:14px; }
}
@media print {
  .flow-play,.river-nav,.river-traveller,.river-tags { display:none!important; }
  .flow-section .flow-detail[hidden] { display:block!important; }
  .flow-board { box-shadow:none; overflow:visible; }
  .flow-detail { break-inside:avoid; }
}
.flow-play,.river-nav button { -webkit-appearance:none; appearance:none; }
.river-trail { stroke:#c5f9d7; stroke-width:2.5; }
.river-chambers rect { opacity:0; }
.flow-section[data-current="2"] .river-chambers .current-chamber { fill-opacity:.16; opacity:1; }
