/* flow.css: the one-scroll tabs at ?shell=mix4 (js/flow.js, docs/FLOW.md). Every rule is scoped under
   html[data-flow], which only mix4 sets, so every other version is untouched. Tokens only. */

/* the floating section pill: the page pills, with an ink capsule under the lit segment that pours between them */
html[data-flow] .flpill .chips { position: relative; }
html[data-flow] .flpill .flink {
  position: absolute; left: 0; top: 5px; bottom: 5px; width: 0; z-index: 0; pointer-events: none;
  border-radius: 999px; background: var(--glass-on); opacity: 0; transition: opacity .15s;
}
html[data-flow] .flpill .chip { position: relative; z-index: 1; flex: none; transition: color .18s; }
html[data-flow] .flpill .chips.inked .chip.on { background: transparent; }
html[data-flow] .flpill .chip .pc { transition: color .18s; }
/* something newer than the reader's last visit: a dot, no words */
html[data-flow] .flpill .fldot { display: inline-block; width: 6px; height: 6px; margin: -8px 0 0 1px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--glass); vertical-align: middle; }
html[data-flow] .flpill .chip.on .fldot { box-shadow: 0 0 0 1.5px var(--glass-on-ink); }
/* the pill settles a little smaller on the way down */
@media (prefers-reduced-motion: no-preference) {
  html[data-flow] .flpill .chips { transform-origin: 50% 0; transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
  html[data-flow] .flpill.small .chips { transform: scale(.92); }
}

/* the sections: each starts with its own ruled line, the code and the name, which opens the full page */
html[data-flow] .flfeed { overflow-anchor: none; }
html[data-flow]:has(.flfeed), html[data-flow]:has(.flfeed) body { overflow-anchor: none; }
html[data-flow] .flsec > .flh { display: flex; margin: 34px var(--gutter) 0; color: inherit; text-decoration: none; }
html[data-flow] .flsec:first-child > .flh { margin-top: 10px; }
html[data-flow] .flsec > .flh .tf-title { font-size: 25px; }
html[data-flow] .flsec > .flh .flgo { flex: none; margin-left: auto; font: 400 26px/1 var(--f-head); font-style: normal; color: var(--ink-3); }
html[data-flow] .flsec > .flh:active .tf-title { color: var(--accent); }
html[data-flow] .flsec .flsub { margin: 5px var(--gutter) 0; }
html[data-flow] .flsec .flbody > .sec:first-child { margin-top: 12px; }

/* held out of sight for the moment it takes to land on the reader's place */
html[data-flow] #main.flhold { visibility: hidden; }
/* a year's head inside a list of the feed's History sits on the list's own edge */
html[data-flow] .flsec .po-list > .po-h { margin-left: 0; margin-right: 0; }

/* the tab's name over its scroll */
html[data-flow] .fltab { display: flex; align-items: baseline; gap: 9px; margin: 2px var(--gutter) 9px; font: 700 28px/1.06 var(--f-head); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
html[data-flow] .fltab b { font: 700 18px/1 var(--f-head); color: var(--accent); }

/* the way to all of a section, at its foot */
html[data-flow] .flfoot { display: flex; align-items: center; gap: 10px; margin: 14px var(--gutter) 0; padding: 11px 14px; border: var(--rule-w, 1px) solid var(--accent); border-radius: 3px; color: var(--ink); text-decoration: none; }
html[data-flow] .flfoot span { font: 600 16px/1.15 var(--f-head); }
html[data-flow] .flfoot b { margin-left: auto; font: 700 11px/1 var(--f-head); color: var(--accent); }
html[data-flow] .flfoot em { font: 400 21px/1 var(--f-head); font-style: normal; color: var(--accent); }
