/* W13: the step bar travels with the page in "02 In action".
   1100px and under: a condensed bar pins to the top (.is-pinned) and a floating Next shows when the step's own Next is off screen.
   Wider: a sticky progress column on the left (.has-rail / .is-rail) holds the steps, the stack and the only Next. */
.act:not(.act--js) .act__bar, .act:not(.act--js) .act__pin { display: none; }
.act__pin { display: block; height: 0; }
.act--js .act__bar { display: flow-root; position: sticky; top: 0; z-index: 50; }
.act__bar-k, .steps__sub, .act__go { display: none; }
.act--js [data-step-panel] { scroll-margin-top: 108px; }

/* Shared: current step brass, done steps ticked (pinned bar and rail). */
:is(.act__bar.is-pinned, .act__bar.is-rail) .steps button[aria-current="step"] { color: var(--ink); border-color: rgba(209,173,106,.75); background: linear-gradient(180deg, rgba(209,173,106,.2), rgba(209,173,106,.05)); box-shadow: 0 0 22px -10px rgba(209,173,106,.8); }
:is(.act__bar.is-pinned, .act__bar.is-rail) .steps button[aria-current="step"] .steps__n { background: var(--brass); border-color: var(--brass); color: #160b05; }
:is(.act__bar.is-pinned, .act__bar.is-rail) .steps button.is-done .steps__n { color: transparent; border-color: rgba(209,173,106,.7); background: rgba(209,173,106,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23e2c486' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* ── Pinned top bar (1100px and under) ── */
.act__bar.is-pinned { display: flex; flex-direction: column; gap: 6px; padding: 6px 0; background: #0b0c0e; clip-path: inset(0 -100vmax -1px); box-shadow: 0 0 0 100vmax #0b0c0e, 0 1px 0 100vmax rgba(209,173,106,.6), 0 6px 14px 100vmax rgba(0,0,0,.3); }
.act__bar.is-pinned .steps { margin: 0; padding: 0; }
.act__bar.is-pinned .steps button { min-height: 44px; padding: 4px 12px 4px 4px; gap: 8px; }
.act__bar.is-pinned .steps__n { width: 34px; height: 34px; font-size: 14px; }
.act__bar.is-pinned .steps b { font-size: 14px; }
.act__bar.is-pinned .stack { margin: 0; gap: 0; }
.act__bar.is-pinned .stack__row { gap: 12px; }
.act__bar.is-pinned .stack__chip { min-height: 24px; gap: 0; }
.act__bar.is-pinned .stack__chip .lockup, .act__bar.is-pinned .stack__tag { display: none; }
.act__bar.is-pinned .stack__chip .mk { width: 24px; height: 24px; }

/* Floating Next (1100px and under only; built by site.js). */
.act-fnext { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: block; width: 100%; min-height: 56px; padding: 0 20px env(safe-area-inset-bottom); border: 0; border-top: 1px solid rgba(209,173,106,.6); border-radius: 0; background: rgb(11,12,14); color: var(--brass-2); font: 500 15px/56px var(--f-body); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; box-shadow: 0 -12px 30px -14px rgba(0,0,0,.9); animation: fnextIn .3s var(--ease) both; }
.act-fnext[hidden] { display: none; }
.act-fnext:hover { border-color: var(--brass); color: var(--ink); }
.act-fnext:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
@keyframes fnextIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Progress column (wider than 1100px) ── */
.act.has-rail { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 48px; row-gap: 0; align-items: start; }
.act.has-rail > .act__pin { grid-column: 1 / -1; }
.act.has-rail > .act__scene > .act__bar { grid-column: 1; grid-row: 2; }
.act.has-rail > .act__scene > .act__stage { grid-column: 2; grid-row: 2; min-width: 0; }
.act__bar.is-rail { display: flex; flex-direction: column; gap: 14px; transition: top .5s var(--ease); }
.act__bar.is-rail .act__bar-k { display: block; margin: 0; font: 500 13px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); }
.act__bar.is-rail .act__bar-k--stack { margin-top: 6px; }
.act__bar.is-rail .steps { flex-direction: column; gap: 4px; margin: 0; overflow: visible; }
.act__bar.is-rail .steps li { flex: none; position: relative; }
.act__bar.is-rail .steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 42px; bottom: -14px; width: 1px; background: var(--line-2); transition: background .4s; z-index: -1; }
.act__bar.is-rail .steps li:has(.is-done)::after { background: linear-gradient(180deg, var(--brass), rgba(209,173,106,.7)); box-shadow: 0 0 8px rgba(209,173,106,.5); }
.act__bar.is-rail .steps button { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 52px; padding: 6px 10px 6px 4px; border-radius: 16px; border-color: transparent; background: none; box-shadow: none; }
.act__bar.is-rail .steps button:hover { border-color: var(--line); }
.act__bar.is-rail .steps__n { grid-row: 1 / span 2; background: var(--bg); }
.act__bar.is-rail .steps b { font-size: 15px; }
.act__bar.is-rail .steps__sub { display: block; font-size: 13px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act__bar.is-rail .stack { margin: 0; }
.act__bar.is-rail .stack__row { flex-wrap: wrap; gap: 6px 12px; overflow: visible; }
.act__bar.is-rail .stack__chip { min-height: 32px; gap: 6px; }
.act__bar.is-rail .stack__chip:not(.is-on) { display: none; }
.act__bar.is-rail .stack__chip .mk { width: 28px; height: 28px; }
.act__bar.is-rail .stack__chip .lockup { display: none; }
.act__bar.is-rail .act__go { display: grid; gap: 4px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.act__bar.is-rail .act__go .btn { width: 100%; padding: 0 18px; white-space: normal; line-height: 1.25; text-align: center; }
.act__back { justify-self: start; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: 500 14px/1 var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.act__back:hover { color: var(--ink); }
.act__back[aria-disabled="true"] { visibility: hidden; }
/* One Next only: the column's. */
.act.has-rail .step__foot, .act.has-rail .bld__done [data-step-next], .act.has-rail .stack__cta--end .btn { display: none; }
@media (max-height: 760px) { .act__bar.is-rail .steps__sub { display: none; } .act__bar.is-rail .steps button { min-height: 44px; } }

@media (prefers-reduced-motion: reduce) {
  .act-fnext { animation: none; }
  .act__bar.is-rail, .act__bar.is-rail .steps li::after { transition: none; }
}

/* W15 round 1: the docked Next leaves room at the end of the section; neighbour pills show only their number. */
@media (max-width: 1100px) {
  .act--js { padding-bottom: 72px; }
  .act__bar.is-pinned .steps button:not([aria-current="step"]) { padding: 4px; min-width: 44px; justify-content: center; }
  .act__bar.is-pinned .steps button:not([aria-current="step"]) b { display: none; }
}
/* Landscape phones: one-row bar, no docked Next (each step keeps its own Next). Same query as the wheel in site.css. */
@media (max-width: 1100px) and (max-height: 600px) and (orientation: landscape) {
  .act__bar.is-pinned .stack { display: none; }
  .act__bar.is-pinned .steps__n { width: 28px; height: 28px; }
  .act-fnext { display: none; }
  .act--js { padding-bottom: 0; }
  .act--js [data-step-panel] { scroll-margin-top: 64px; }
  /* W15 round 2: before it pins too, pills beside the current one show only their number, so none is cut mid-word. */
  .act__bar .steps button:not([aria-current="step"]) { padding: 4px; min-width: 44px; justify-content: center; }
  .act__bar .steps button:not([aria-current="step"]) b { display: none; }
  .act--js .steps[data-fr] { --fr: 56px; }
}
