/* flows.css: the three process-and-flow diagrams.
   Reuses site.css's stations classes (.lanes-wrap .lh .ll .lc .pill .state .note .sub) and adds only what the
   station-major grid needs. Every rule is scoped under .flowd so the walkthrough's own .lanes diagram is untouched.
   Values: site.css tokens only; font sizes are sizes site.css already uses (11, 12, 13, 15). No new colour.
   Line-heights snapped to the declared pairs 12/16, 13/20, 15/24; no size, grid, width or gap changed.
   The seventh row for the servicer side (.r7, the site's .lend note) and the
   screen links in the state row (.scr, 44px tall). Same grammar, content added.
   .n7 / .w7 for the Covenant grid's seventh station, the same rules as .n6 one column wider. */
/* the diagrams are transposed. The station-major grid (eleven stations
   across, 1612 px in a 1235 px wrap) becomes step rows that fit their wrap at every width, so nothing scrolls sideways and no mask fades
   the right edge. Each station is one row: its number, name, states and screen links in a header column, then its pills side by side in
   run order (the .oN class), each pill a --surface card with radius var(--r), a hairline, and its 2 px lane rule drawn as an inset shadow
   (the thin coloured left edge stays); its lane chip is the hidden <i class="ln"> made visible. The lane column
   (.lcol) becomes a key line above the rows. Every pill, word, lane colour and link is kept; no markup changed. Grid tracks on desktop
   are auto, so a short pill keeps its one line and the long ones share the rest; at 760 and below the header goes above and the pills
   flow full width. Applied to every .flowd .fgrid (Basis n11, Covenant n7 r7, Servicing n9), so the diagrams keep one grammar. */
.flowd{margin:0}
.flowd .lanes-wrap{margin-top:20px;padding-bottom:0}
.flowd .fgrid{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;min-width:0}
/* the key line: the old lane column, one row of swatches and labels */
.flowd .fgrid>li.lcol{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;padding:0 0 14px}
.flowd .lcol .lh{display:none}
.flowd .lcol .ll{border-top:0;padding:0;align-items:center}
.flowd .lcol .ll i{margin-top:0}
.flowd .lcol .ll span{overflow:visible;white-space:nowrap}
/* a step row: the header line (node, number, name, then the states and screen links), then the pills in run order, each at its
   own width, wrapping to a new line where the next one does not fit; the row never scrolls and no pill is squeezed */
.flowd .fgrid>li.st{display:flex;flex-wrap:wrap;align-items:flex-start;gap:0 8px;padding:12px 0 16px;border-top:1px solid var(--line);min-width:0}
.flowd .fgrid>li.st::after{content:"";order:1;flex:0 0 100%;height:0}
.flowd .st .lh{order:0;flex:0 1 auto;flex-direction:row;align-items:center;gap:10px;min-height:44px;padding:0 8px 0 0;min-width:0}
.flowd .st .lh::before{display:none}
.flowd .st .lh .node{flex:none}
.flowd .lh small{font-size:12px;line-height:16px}
.flowd .lc{display:contents}
.flowd .sst{order:1;flex:1 1 auto;min-height:44px;margin:0;padding:0;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:0 16px;min-width:0}
.flowd .sst .state{font:500 12px/16px var(--mono);letter-spacing:.08em;text-transform:uppercase;display:inline-flex;align-items:center;gap:7px}
.flowd .sst .state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.flowd .sst .state.dz{border:1px dashed var(--warn);border-radius:5px;padding:2px 8px}
.flowd .st.dz .lh .node{box-shadow:inset 0 0 0 2px var(--warn)}
/* the pills: surface cards, run order from the .oN class, the lane chip above the words */
.flowd .pill,.flowd .lend{flex:0 1 auto;max-width:100%;min-width:0;margin-top:8px}
.flowd .pill{position:relative;background:var(--surface);border-radius:var(--r);box-shadow:inset 2px 0 0 var(--c),inset 0 0 0 1px var(--line);padding:7px 10px 7px 12px}
.flowd .pill.all{--c:var(--ink-3)}
.flowd .pill em{font-size:12px;line-height:16px;width:auto;margin-top:2px}
.flowd .pill.o1{order:2} .flowd .pill.o2{order:3} .flowd .pill.o3{order:4} .flowd .pill.o4{order:5} .flowd .pill.o5{order:6}
.flowd .ln{display:block;font:500 11px/16px var(--mono);font-style:normal;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);white-space:nowrap;margin:0 0 2px}
/* the servicer side: the site's own .lend note, the last card of its row */
.flowd .lend{order:7;margin:0;padding:8px 10px;border-radius:var(--r);font-size:13px;line-height:20px}
.flowd .lend b{display:block;margin:0 0 4px}
/* the lender and servicer platform's line starts its own line under the station's pills, at its own width, so it never reads as one of Covenant's steps */
.flowd .lc.lsp::before{content:"";order:7;flex:0 0 100%;height:8px}
/* the screen links: 44px tap targets */
.flowd .scr{display:inline-flex;align-items:center;min-height:44px;font-size:13px;line-height:20px;color:var(--accent)}
.flowd figcaption.note{font-size:15px;line-height:24px;color:var(--ink-2);margin-top:16px}
/* 760 and below: the same rows; the header's states and links take their own line under the name */
@media (max-width:760px){
  .flowd .st .lh{flex:1 1 100%;min-height:0;padding:4px 0}
  .flowd .sst{min-height:0}
  .flowd .ln{white-space:normal}
}
