/* steps.css · Round 56 · the "steps" pass (steps.js, overview.js): the trail of steps on the overview, the project report
   card, the step page (the question, what carried over and what changed, the answer, what it ran with, the follow-up). */

/* ---------- the overview: the steps beside Up next and the report card ---------- */
.ds-stp-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--ds-gap); align-items: start; }
.ds-stp-side { display: grid; gap: var(--ds-gap); min-width: 0; }
.ds-ov-strip.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1180px) { .ds-stp-grid { grid-template-columns: minmax(0, 1fr); } .ds-stp-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
@media (max-width: 820px) { .ds-stp-side, .ds-ov-strip.n2 { grid-template-columns: minmax(0, 1fr); } }

.ds-stp-row { --stg: var(--ds-st-discover); --stg-ink: var(--ds-st-discover-ink); display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; column-gap: 8px; border-top: 1px solid var(--ds-line-soft); }
.ds-stp-row:first-child { border-top: 0; }
.ds-stp-row.s-design { --stg: var(--ds-st-design); --stg-ink: var(--ds-st-design-ink); }
.ds-stp-row.s-optimize { --stg: var(--ds-st-optimize); --stg-ink: var(--ds-st-optimize-ink); }
.ds-stp-row.s-acquire { --stg: var(--ds-st-acquire); --stg-ink: var(--ds-st-acquire-ink, #17283E); }
html[data-skin] body .ds-stp-a { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px 12px; margin: 0 -12px; border-radius: var(--ds-r-inner); text-decoration: none; color: inherit; cursor: default; transition: background-color .2s var(--ds-ease); }
.ds-stp-a:hover { background: var(--ds-tint); }
.ds-stp-n { width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: var(--ds-fs-2); font-weight: 650; font-variant-numeric: tabular-nums; color: #fff; background: var(--stg); }
.ds-stp-row.st-ready .ds-stp-n, .ds-stp-row.st-todo .ds-stp-n, .ds-stp-row.st-working .ds-stp-n { background: var(--ds-paper); color: var(--stg-ink, var(--ds-ink)); box-shadow: inset 0 0 0 1.5px var(--stg); }
.ds-stp-row.st-locked .ds-stp-n { background: var(--ds-tint); color: var(--ds-label); }
.ds-stp-row.st-error .ds-stp-n { background: var(--ds-label); }
.ds-stp-t { display: grid; gap: 3px; min-width: 0; }
.ds-stp-k { font-size: var(--ds-fs-2); font-weight: 500; color: var(--stg-ink, var(--ds-muted)); }
.ds-stp-k em { font-style: normal; color: var(--ds-label); margin-left: 10px; font-variant-numeric: tabular-nums; }
.ds-stp-t b { font-size: var(--ds-fs-5); font-weight: 650; color: var(--ds-ink); line-height: 1.35; }
.ds-stp-l { font-size: var(--ds-fs-4); color: var(--ds-ink-soft); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-stp-l.quiet { color: var(--ds-muted); }
.ds-stp-row.st-working .ds-stp-l { color: var(--ds-blue); }

/* the pin: a quiet icon key at the end of a row, blue when the report draws on the step */
html[data-skin] body .ds-stp-pin { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: var(--ds-r-key); color: var(--ds-label); background: transparent; cursor: default; transition: color .2s var(--ds-ease), background-color .2s var(--ds-ease); }
.ds-stp-pin svg { width: 18px; height: 18px; }
html[data-skin] body .ds-stp-pin:hover { color: var(--ds-ink); background: var(--ds-tint); }
html[data-skin] body .ds-stp-pin.on { color: var(--ds-blue); background: var(--ds-wash); }
html[data-skin] body .ds-stp-pin.on:hover { background: var(--ds-wash-2); }
.ds-stp-pin.on svg path { fill: currentColor; fill-opacity: .18; }
html[data-skin] body .ds-stp-pin.wide { width: auto; height: 38px; padding: 0 14px 0 11px; gap: 8px; display: inline-flex; align-items: center; font-size: var(--ds-fs-4); font-weight: 600; color: var(--ds-ink); box-shadow: inset 0 0 0 1px var(--ds-line-strong); }
html[data-skin] body .ds-stp-pin.wide.on { color: var(--ds-blue); background: var(--ds-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-blue) 35%, transparent); }
.ds-stp-pin-sp { width: 34px; }

/* the follow-up field: the project's conversation starts under its steps */
.ds-stp-trail-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ds-line); }
.ds-stp-test { font-size: var(--ds-fs-4); font-weight: 600; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.ds-stp-test svg { width: 14px; height: 14px; }
.ds-stp-ask { display: flex; gap: 8px; min-width: 0; }
html[data-skin] body .ds-stp-ask input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-r-field); background: var(--ds-paper); font-size: var(--ds-fs-5); color: var(--ds-ink); outline: none; transition: border-color .2s var(--ds-ease), box-shadow .2s var(--ds-ease); }
.ds-stp-ask input::placeholder { color: var(--ds-label); }
html[data-skin] body .ds-stp-ask input:focus { border-color: var(--ds-blue); box-shadow: 0 0 0 3px var(--ds-wash-2); }
html[data-skin] body .ds-stp-go { height: 44px; padding: 0 16px 0 13px; display: inline-flex; align-items: center; gap: 7px; }
.ds-stp-go svg { width: 15px; height: 15px; }
@media (max-width: 720px) { .ds-stp-trail-ask { grid-template-columns: minmax(0, 1fr); gap: 12px; } .ds-stp-go span { display: none; } html[data-skin] body .ds-stp-go { padding: 0 14px; } }

/* the report card: what the project report is written from */
.ds-stp-rep .ds-sh { margin-bottom: 14px; }
.ds-stp-rep-l { list-style: none; display: grid; gap: 8px; }
.ds-stp-rep-l li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: var(--ds-fs-4); color: var(--ds-ink); line-height: 1.4; }
.ds-stp-rep-l li span { width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: var(--ds-fs-1); font-weight: 650; font-variant-numeric: tabular-nums; background: var(--ds-wash); color: var(--ds-blue); }
.ds-stp-rep-more { margin-top: 8px; font-size: var(--ds-fs-3); color: var(--ds-muted); }
html[data-skin] body .ds-stp-rep-go { display: inline-flex; align-items: center; gap: 2px; margin-top: 18px; font-size: var(--ds-fs-4); font-weight: 600; color: var(--ds-blue); text-decoration: none; cursor: default; }
.ds-stp-rep-go svg { width: 14px; height: 14px; }
.ds-stp-rep-go:hover { color: var(--ds-blue-hover); }

/* ---------- the step page ---------- */
.ds-stp-head { display: grid; gap: 12px; padding-top: 6px; }
.ds-stp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; font-size: var(--ds-fs-3); }
.ds-stp-crumbs > i { color: var(--ds-label); display: inline-grid; }
.ds-stp-crumbs > i svg { width: 13px; height: 13px; }
html[data-skin] body .ds-stp-cr { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 8px; border-radius: var(--ds-r-key); color: var(--ds-muted); text-decoration: none; cursor: default; }
.ds-stp-cr > span { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font-size: var(--ds-fs-1); font-weight: 650; font-variant-numeric: tabular-nums; background: var(--ds-raise); color: var(--ds-ink-soft); }
a.ds-stp-cr:hover { background: var(--ds-raise); color: var(--ds-ink); }
.ds-stp-cr.cur { color: var(--ds-ink); font-weight: 600; }
.ds-stp-cr.cur > span { background: var(--ds-ink); color: var(--ds-paper); }
html[data-skin] body .ds-stp-cr.nx { color: var(--ds-blue); margin-left: 8px; padding-left: 8px; font-weight: 500; }
.ds-stp-cr.nx svg { width: 13px; height: 13px; }
.ds-stp-q { font-size: var(--ds-fs-8); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; color: var(--ds-ink); max-width: 40ch; text-wrap: balance; }
.ds-stp-carry { display: flex; flex-wrap: wrap; gap: 10px 32px; padding: 12px 16px; border-radius: var(--ds-r-inner); background: var(--ds-paper); box-shadow: inset 0 0 0 1px var(--ds-line); }
.ds-stp-carry > div { display: grid; gap: 3px; min-width: 0; }
.ds-stp-carry dt { font-size: var(--ds-fs-2); font-weight: 500; color: var(--ds-label); }
.ds-stp-carry dd { font-size: var(--ds-fs-4); color: var(--ds-ink-soft); }
.ds-stp-ch { display: block; }
.ds-stp-ch em { font-style: normal; color: var(--ds-muted); margin-right: 7px; }
.ds-stp-ch s { text-decoration: none; color: var(--ds-muted); }
.ds-stp-ch svg { display: inline-block; width: 14px; height: 14px; margin: 0 6px; vertical-align: -2px; color: var(--ds-label); }
.ds-stp-ch b { color: var(--ds-blue); font-weight: 650; }
.ds-stp-ch.none { color: var(--ds-muted); }

.ds-stp-v .ds-verdict-prov { font-size: var(--ds-fs-3); }
.ds-stp-ans { display: grid; gap: 20px; }
.ds-stp-body { font-size: var(--ds-fs-5); color: var(--ds-ink-soft); line-height: 1.6; max-width: 72ch; }
.ds-stp-body p + p, .ds-stp-md p + p { margin-top: .7em; }
.ds-stp-md ul, .ds-stp-md ol { padding-left: 1.2em; margin: .5em 0; }
.ds-stp-fig { max-width: 720px; }
.ds-stp-fig figcaption { margin-top: 10px; font-size: var(--ds-fs-3); color: var(--ds-muted); }
html[data-skin] body .ds-stp-away { justify-self: start; display: inline-flex; align-items: center; gap: 2px; font-size: var(--ds-fs-4); font-weight: 600; color: var(--ds-blue); text-decoration: none; cursor: default; }
.ds-stp-away svg { width: 14px; height: 14px; }
.ds-stp-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--ds-line); }
.ds-stp-moveto { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--ds-r-inner); background: var(--ds-tint); }
.ds-stp-moveto[hidden] { display: none; }
.ds-stp-moveto p { font-size: var(--ds-fs-3); font-weight: 600; color: var(--ds-ink-soft); }
.ds-stp-moveto > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ds-stp-moveto .ds-link { margin-left: 6px; font-size: var(--ds-fs-4); }

.ds-stp-next { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; }
.ds-stp-next h2 { font-size: var(--ds-fs-6); font-weight: 700; margin-bottom: 4px; }
.ds-stp-follow p { font-size: var(--ds-fs-4); color: var(--ds-muted); margin-bottom: 14px; }
.ds-stp-ran h2 { margin-bottom: 14px; }
.ds-stp-set { display: grid; gap: 0; }
.ds-stp-set > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--ds-line-soft); font-size: var(--ds-fs-4); }
.ds-stp-set > div:first-child { border-top: 0; padding-top: 0; }
.ds-stp-set dt { color: var(--ds-muted); }
.ds-stp-set dd { color: var(--ds-ink); }
.ds-stp-follow form.dup input { border-color: var(--ds-blue); }
@media (max-width: 900px) { .ds-stp-next { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
@media (max-width: 720px) { .ds-stp-q { font-size: var(--ds-fs-7); } .ds-stp-carry { padding: 12px 14px; } .ds-stp-set > div { grid-template-columns: 7em minmax(0, 1fr); } }

/* while the model works: the three things it is doing, and a clock, so it never looks hung (the team's issue 29) */
.ds-stp-work { display: grid; gap: 16px; }
.ds-stp-work-k { display: flex; align-items: center; gap: 10px; font-size: var(--ds-fs-5); font-weight: 650; color: var(--ds-ink); }
.ds-stp-work-k em { font-style: normal; font-weight: 500; color: var(--ds-label); font-variant-numeric: tabular-nums; margin-left: auto; }
.ds-stp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ds-blue); animation: ds-stp-breathe 1.6s var(--ds-ease) infinite; }
@keyframes ds-stp-breathe { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
.ds-stp-work ol { list-style: none; display: grid; gap: 2px; }
.ds-stp-work li { display: grid; gap: 2px; padding: 10px 0 10px 19px; border-top: 1px solid var(--ds-line-soft); opacity: 0; animation: ds-stp-in .6s var(--ds-ease) forwards; animation-delay: calc(var(--i) * 1.1s); }
.ds-stp-work li b { font-size: var(--ds-fs-4); font-weight: 600; color: var(--ds-ink); }
.ds-stp-work li span { font-size: var(--ds-fs-3); color: var(--ds-muted); }
@keyframes ds-stp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ds-stp-dot { animation: none; opacity: 1; } .ds-stp-work li { animation: none; opacity: 1; } }
body.ds-still .ds-stp-work li { animation: none; opacity: 1; }

/* the answer sheet carries the figure and the step's actions (the house verdict, as on every result page) */
.ds-stp-v .ds-stp-acts { border-top: 0; padding-top: 0; }
.ds-stp-v .ds-verdict-next > .ds-stp-away, .ds-stp-v .ds-verdict-next > .ds-stp-moveto { flex-basis: 100%; }
.ds-stp-v .ds-stp-fig { width: 100%; }
.ds-stp-v .ds-stp-fig .ds-rows { --rl: 9.5em !important; }
html[data-skin] body .ds-stp-share { width: 40px; padding: 0; display: inline-grid; place-items: center; }
.ds-stp-share svg { width: 16px; height: 16px; }

/* Oct 9: the trail's numbers read as a count, not a step label: a small square at the end of the item, tooltip on hover */
html[data-skin] body .ds-stp-cn { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 4px !important; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; background: var(--ds-raise); color: var(--ds-ink-soft, var(--ds-ink)); }
html[data-skin] body .ds-stp-cr.cur .ds-stp-cn { background: var(--ds-ink); color: var(--ds-paper); }
