/* confluence's sends (sends.js): the circle and the rivers, beside the slide in controls.css. Timing and color from /tokens.css */

/* ---- the circle: DISCO_SPACE's, in ink on the paper (shafrasier.com/26) ---- */
.ring{position:relative; display:flex; align-items:center; gap:1.3rem; -webkit-tap-highlight-color:transparent;}
.ring-track{position:relative; flex:0 0 auto; width:128px; height:128px; touch-action:none; cursor:grab; user-select:none; -webkit-user-select:none;}
.ring.dragging .ring-track{cursor:grabbing;}
.ring.sent .ring-track{cursor:default;}
.ring-track svg{position:absolute; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none;}
.ring-line{fill:none; stroke:var(--faint); stroke-width:1;}
.ring-ink{fill:none; stroke:var(--ink); stroke-width:2; stroke-dasharray:1; stroke-dashoffset:1; opacity:0;}   /* inks behind the dot (sends.js) */
.ring-dot{position:absolute; left:0; top:0; width:10px; height:10px; border-radius:50%; background:var(--ink); pointer-events:none; will-change:transform;}
.ring-word{font-family:var(--serif); font-style:italic; font-feature-settings:var(--serif-alts-italic); font-weight:var(--w-read); font-size:.95rem;
  line-height:1.5; color:var(--soft); pointer-events:none; text-wrap:balance;}   /* two even lines where it can't fit one */
.ring.sent .ring-word{color:var(--ink); transition:color var(--answer);}

/* ---- the rivers: two streams that meet ---- */
.rivers{position:relative; width:100%; display:grid; grid-template-columns:1fr auto; align-items:baseline; -webkit-tap-highlight-color:transparent;}
.rivers-track{grid-column:1 / -1;}
/* what to do, under the streams' start, in the italic of DISCO_SPACE's "to confirm, complete the circle" (Sha, Nov 3, 2026:
   "add a line saying "to confirm, merge the circles"") */
.rivers-hint{grid-column:1; margin:.5rem 0 0; font-family:var(--serif); font-style:italic; font-feature-settings:var(--serif-alts-italic);
  font-weight:var(--w-read); font-size:.95rem; line-height:1.4; color:var(--soft); pointer-events:none;}
.rivers-word{grid-column:2; align-self:start;}   /* just under the line's end, as the slide's word sits (Sha, Nov 3, 2026: "move the rsvp word closer to the end of the line"), not down on the hint's baseline */
.rivers-track{position:relative; height:56px; cursor:grab; touch-action:pan-y; user-select:none; -webkit-user-select:none;}
.rivers.dragging .rivers-track{cursor:grabbing;}
.rivers.sent .rivers-track{cursor:default;}
.rivers-track svg{position:absolute; left:0; top:0; overflow:visible; pointer-events:none;}
.rivers-line{fill:none; stroke:var(--faint); stroke-width:1;}
.rivers-ink{fill:none; stroke:var(--ink); stroke-width:1; stroke-dasharray:1; stroke-dashoffset:1;}
.rivers-dot{position:absolute; left:0; top:0; width:14px; height:14px; border-radius:50%; background:var(--ink); pointer-events:none; will-change:transform;}
.rivers-dot.follow{background:var(--paper); box-shadow:inset 0 0 0 1px var(--ink); z-index:0;}
.rivers-dot:not(.follow){z-index:1;}   /* where the two meet, the one you carry covers the outline */   /* follow: the lower stream's, an outline only, keeping pace */
.rivers-word{display:block; margin:-20px 0 0; text-align:right; font-family:var(--serif); font-weight:var(--w-read); font-size:.95rem;
  line-height:1; color:var(--soft); pointer-events:none;}
.rivers[data-rivers="split"] .rivers-word{grid-column:1; text-align:left; margin-top:.5rem; align-self:baseline;}   /* split runs right to left: its word waits at the sources, on its hint's line */
.rivers[data-rivers="split"] .rivers-hint{grid-column:2; text-align:right;}   /* and its hint sits under the dot you take, at the end (Sha, Nov 5, 2026, yes to "to cancel, split the circles.") */
.rivers.sent .rivers-word{color:var(--ink); transition:color var(--answer);}

/* for a keyboard or a screen reader each is a real button (sends.js adds it), hidden from the eye */
.send-btn{position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
.send-btn:focus-visible + .ring-track{outline:2px solid var(--ink); outline-offset:4px; border-radius:50%;}
.send-btn:focus-visible + .rivers-track{outline:2px solid var(--ink); outline-offset:4px;}

@media (forced-colors:active){
  .ring-dot,.rivers-dot{forced-color-adjust:none; background:CanvasText;}
  .ring-ink,.rivers-ink{stroke:CanvasText;} .ring-line,.rivers-line{stroke:GrayText;}
}
