/* ============================================================
   PHASE STEPS — the Decisions timeline, mirrored into the sidebar.
   Built by phase-steps.js from the page's own .phase-rail, sits right
   under the "Decisions" link and opens while that section is active,
   so the timeline stays in view while the phases are read.
   ============================================================ */
.side-sub { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s cubic-bezier(.2,1,.3,1), opacity .2s ease; }
.side-sub > .ss-in { min-height: 0; overflow: hidden; }
.side-nav > a.active + .side-sub, .side-sub:focus-within { grid-template-rows: 1fr; opacity: 1; }
.ss-list { position: relative; display: flex; flex-direction: column; padding: 4px 0 6px 14px; }
.ss-track, .ss-fill { position: absolute; left: 18px; top: 18px; width: 2px; border-radius: 1px; }
.ss-track { bottom: 20px; background: var(--border); }
.ss-fill { height: 0; background: var(--accent); transition: height .22s ease; }
.side-sub .ss-step { position: relative; display: flex; align-items: baseline; gap: 8px; padding: 6px 8px 6px 20px; border-radius: 7px; color: var(--muted); font-size: 12px; line-height: 1.35; transition: color .2s, background .2s; }
.side-sub .ss-step:hover { color: var(--fg); background: var(--panel-2); }
.ss-dot { position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 1px; background: var(--panel); border: 2px solid var(--border-2); transition: background .25s, border-color .25s, box-shadow .25s; z-index: 1; }
.ss-num { font-family: var(--mono); font-size: 10px; color: var(--label); flex-shrink: 0; transition: color .2s; }
.ss-step.on { color: var(--fg); }
.ss-step.on .ss-dot { background: var(--accent); border-color: var(--accent); }
.ss-step.on .ss-num { color: var(--accent); }
.ss-step.cur { font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .side-sub, .ss-fill, .ss-dot, .ss-num, .side-sub .ss-step { transition: none; }
}

/* mobile bar panel: phases listed under Decisions */
.mbar-list a.mbar-sub { min-height: 36px; padding-left: 44px; font-size: 13px; }
.mbar-list a.mbar-sub .n { width: auto; }
.mbar-list a.mbar-sub.active { background: transparent; color: var(--fg); }
.mbar-list a.mbar-sub.active::before { display: none; }
.mbar-list a.mbar-sub.active .n { color: var(--accent); }
