/* loop-live.css: the loop that plays (lib/site/parts/sections.ts loopLive; build six part two H2), on Home and on
   How Jinn Learns. Every rule is under a sx-live class the part prints. js/pages/loop-live.js plays it.

   The ring draws from these rules, not from the circles' attributes. app/globals.css sets `all: revert` on every element
   under [data-v12-root] inside @layer base, and revert sends SVG geometry (cx, cy, r) and the transform attribute back to
   the browser default: the circles computed r 0 and drew nothing, which is why the ring was missing (Sarah CwXGLinKsqgp,
   MCpYPikgzO_1). These rules are unlayered, so they win over that layer; the ring turns as a whole box, so the fill
   starts at twelve o'clock without the transform attribute.

   The Uwees never move or grow (relaunch rule 10): the step the ring has reached turns its tag navy and its list row
   lights, nothing else. With scripts off the ring is drawn full and every row reads the same. */

.sx-live__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.sx-live__ring { position: relative; aspect-ratio: 1; width: min(100%, 580px); justify-self: center; }
.sx-live__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.sx-live__ring circle { cx: 50px; cy: 50px; r: 40px; fill: none; stroke-width: 6px; }
.sx-live__track { stroke: rgba(21, 23, 28, .08); }
.sx-live__ring .sx-live__soon-arc { stroke: #9db4e0; stroke-width: 6px; stroke-linecap: butt; opacity: .85; } /* dashed: the part prints its dash list inline */
.sx-live__fill { stroke: #9db4e0; stroke-linecap: round; stroke-dasharray: 251.33; stroke-dashoffset: 0; }
.sx-live.is-live .sx-live__fill { stroke-dashoffset: 251.33; }
.sx-live.is-easing .sx-live__fill { transition: stroke-dashoffset .5s cubic-bezier(.16, 1, .3, 1); }
.sx-live.is-draining .sx-live__fill { transition: stroke-dashoffset .7s cubic-bezier(.7, 0, .84, 0); }

.sx-live__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44%; text-align: center; }
.sx-live__center b { display: block; font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.7rem); line-height: 1.15; }
.sx-live__center span { display: block; margin-top: 6px; font-size: clamp(.74rem, 1vw, .86rem); line-height: 1.4; color: var(--ink-2); }

.sx-live__node { position: absolute; width: 19%; transform: translate(-50%, -58%); display: grid; justify-items: center; text-align: center; }
.sx-live__uwee { width: 100%; }
.sx-live__tag { display: inline-block; margin-top: 2px; padding: 3px 10px; border-radius: 999px; background: var(--pink); color: #2a1420; font-family: var(--ui); font-size: .78rem; font-weight: 700; line-height: 1.3; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease); }
.sx-live__node.is-on .sx-live__tag { background: var(--navy); color: var(--paper); }
.sx-live__soon--ring { white-space: nowrap; margin-top: 4px; padding: 1px 8px; border-radius: 999px; border: 1.5px dashed var(--rule, rgba(21, 23, 28, .2)); background: var(--bg, var(--paper)); font-family: var(--ui); font-size: .72rem; font-weight: 600; line-height: 1.4; }

.sx-live__copy > .label { margin: 0 0 12px; }
.sx-live__copy h2 { margin-bottom: 12px; }
.sx-live__copy .lede { margin: 0 0 8px; max-width: 52ch; }
.sx-live__steps { list-style: none; margin: clamp(16px, 2vw, 24px) 0 0; padding: 0; display: grid; gap: 2px; counter-reset: none; }
.sx-live__step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 14px; border-radius: 12px; cursor: default; outline: none; transition: background-color .25s var(--ease); }
.sx-live__step::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: #9db4e0; transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.sx-live__step.is-on { background: var(--card, #fff); }
.sx-live__step.is-on::before { transform: scaleY(1); }
.sx-live__step[data-soon].is-on::before { background: repeating-linear-gradient(to bottom, #9db4e0 0 4px, transparent 4px 7px); }
.sx-live__step:focus-visible { box-shadow: 0 0 0 2px var(--paper, #f6f3ec), 0 0 0 4px var(--sapphire); }
/* Build nine (the editor's rows X4JwSvg3leFO, j5LN6SqngCoZ): the numbers take How It Works' draft-loop circles, the shared
   .sx-num (sections.css); the playing step's turns amber there. The row's 48px column holds the circle. */
.sx-live__n { align-self: start; }
.sx-live__name { margin: 0; }
.sx-live__name b { font-family: var(--head); font-size: 1.12rem; }
.sx-live__name .sx-live__soon { margin-left: 8px; vertical-align: 1px; }
.sx-live__body { margin: 4px 0 0; font-size: .98rem; line-height: 1.45; color: var(--ink-2); }
.sx-live__who { margin: 4px 0 0; font-family: var(--ui); font-size: .8rem; font-weight: 600; color: var(--ink-3); }

/* the live script dims the rows the ring has not reached; with scripts off every row reads in full */
.sx-live.is-live .sx-live__step:not(.is-on) .sx-live__body { color: var(--ink-3); }

.sx-live__below { grid-column: 1 / -1; }

@media (max-width: 860px) {
  .sx-live__grid { grid-template-columns: minmax(0, 1fr); }
  .sx-live__ring { width: min(100%, 360px); order: 2; margin-top: 8px; }
  .sx-live__copy { order: 1; }
  .sx-live__below { order: 3; }
  .sx-live__node { width: 21%; }
  .sx-live__tag { font-size: .7rem; padding: 2px 8px; }
  .sx-live__center span { display: none; }
  .sx-live__soon--ring { font-size: .64rem; }
}
@media (max-width: 480px) {
  .sx-live__step { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-live__step, .sx-live__step::before, .sx-live__tag { transition: none; }
  .sx-live.is-easing .sx-live__fill, .sx-live.is-draining .sx-live__fill { transition: none; }
}
