/* Labeled step bar (stepbar.js; 13 steps since 10-24). Sizes follow the box it sits in (container queries), not the screen:
   under 560px the short names stagger over three rows; 560px+ one row; 1180px+ full step names. */
.sb { container-type: inline-size; margin: 10px 0 14px; color: #0d2438; }
.sb-title { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.sb-title strong { font-weight: 700; }
.sb-track { display: grid; grid-template-columns: repeat(var(--n, 13), minmax(0, 1fr)); gap: 3px; padding-top: 22px; align-items: center; }
.sb-seg { position: relative; height: 10px; border-radius: 5px; background: #e4dccb; }
.sb-seg.is-done { background: #b3894f; }
.sb-seg.is-now { height: 16px; border-radius: 6px; background: #0d2438; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0d2438; }
.sb-now { position: absolute; left: 50%; bottom: calc(100% + 7px); transform: translateX(-50%); background: #0d2438; color: #fff;
  font: 700 10px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 3px 5px; border-radius: 4px; white-space: nowrap; }
.sb-now::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: #0d2438; }
.sb-labels { list-style: none; margin: 3px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 13), minmax(0, 1fr)); column-gap: 3px; row-gap: 4px;
  font-size: 11.5px; line-height: 1.2; }
.sb-labels li { grid-column: var(--c); grid-row: 1; justify-self: center; text-align: center; width: max-content; max-width: 20cqi;
  color: #8d877b; position: relative; margin: 0; padding: 8px 0 0; }
.sb-labels li::before { content: none; }
/* every name hangs from its own segment on a thin line; on narrow boxes every other name sits a row lower */
.sb-labels li::after { content: ""; position: absolute; left: 50%; top: 0; height: 6px; border-left: 1px solid currentColor; opacity: .5; }
.sb-labels li:not(.sb-low):not(.sb-low2), .sb-labels li.sb-low { white-space: nowrap; max-width: none; }   /* top row stays one line so the lower row's lines reach the bar */
.sb-labels li.sb-low { grid-row: 2; }
.sb-labels li.sb-low::after { top: auto; bottom: calc(100% - 6px); height: 32px; }
.sb-labels li.sb-low2 { grid-row: 3; }
.sb-labels li.sb-low2::after { top: auto; bottom: calc(100% - 6px); height: 52px; }
.sb-labels li.is-done { color: #8a6430; }
.sb-labels li.is-now { color: #0d2438; font-weight: 700; }
.sb-labels li.is-now::after { opacity: 1; border-left-width: 2px; margin-left: -.5px; }
.sb-mark { font-weight: 700; margin-right: 2px; }
.sb-full, .sb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@container (min-width: 560px) {
  .sb-labels { font-size: 12px; }
  .sb-labels li, .sb-labels li.sb-low, .sb-labels li.sb-low2, .sb-labels li:not(.sb-low) { grid-row: 1; max-width: none; width: auto; padding-top: 6px; white-space: normal; }
  .sb-labels li::after, .sb-labels li.sb-low::after, .sb-labels li.sb-low2::after { content: none; }
}
@container (min-width: 1180px) {
  .sb-short { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sb-full { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .sb-labels { font-size: 12.5px; }
}
