/* "Your change flow" (workspace-shell.js, journey-lib.js): the My work step bar as one row of six step buttons, each
   with its count and a brief line. Loaded after the shell's other style sheets; the selectors are long and the key
   declarations important because several earlier sheets style .workspace-step with !important. */
:is(body .workspace-shell, body #home-journey) .workspace-journey:has(ol.workspace-steps.has-counts) { display: flex; align-items: stretch; gap: 8px 12px; flex-wrap: nowrap; }
:is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts {
  flex: 1; min-width: 0; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px !important; margin: 0; padding: 0;
}
:is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts li { display: block; min-width: 0; }
:is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts li + li::before { display: none; content: none; }
:is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts a.workspace-step {
  display: grid !important; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: start; gap: 0;
  width: 100%; height: 100%; min-height: 60px; box-sizing: border-box; padding: 6px 10px !important;
  border: 1px solid var(--line, #d6dee3) !important; border-radius: 8px !important; background: var(--panel, #fff);
  color: var(--ink, #17212b); text-align: left; text-decoration: none; font-size: 12px !important; line-height: 16px; font-weight: 600; box-shadow: none;
}
:is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts a.workspace-step:hover {
  background: var(--brand-soft, #e3eff2) !important; border-color: var(--brand, #0f4c5c) !important; color: var(--ink, #17212b) !important;
}
:is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts a.workspace-step[aria-current] {
  background: var(--brand, #0f4c5c) !important; border-color: var(--brand, #0f4c5c) !important; color: var(--panel, #fff) !important;
}
:is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts a.workspace-step:focus-visible { outline: 3px solid var(--focus, #1d7fa0); outline-offset: 2px; }
:is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-label { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
:is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-count {
  all: unset; display: block; font: 700 20px/24px "Outfit", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: inherit;
}
:is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-count.none { color: var(--muted, #5b6774); font-weight: 600; }
:is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts a[aria-current] .workspace-step-count.none { color: inherit; opacity: .8; }
:is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-brief {
  display: block; max-width: 100%; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--muted, #5b6774);
  white-space: normal; overflow-wrap: anywhere;
}
:is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts a[aria-current] .workspace-step-brief { color: inherit; opacity: .9; }
:is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-extra { font-weight: 700; color: var(--ink, #17212b); }
:is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts a[aria-current] .workspace-step-extra { color: inherit; }
/* Overview stays a quiet link before the row. */
:is(body .workspace-shell, body #home-journey) .workspace-journey:has(ol.workspace-steps.has-counts) .workspace-overview { align-self: center; white-space: nowrap; }

/* Tablet: the brief line wraps instead of being cut. */
@media (max-width: 1100px) {
  :is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-brief { white-space: normal; }
}
/* Phone: still one row; each button shows its name (short name where one is set) and its count. The brief line is
   dropped; each button's accessible name still says it. */
@media (max-width: 760px) {
  :is(body .workspace-shell, body #home-journey) .workspace-journey:has(ol.workspace-steps.has-counts) { flex-direction: column; align-items: stretch; }
  :is(body .workspace-shell, body #home-journey) .workspace-journey:has(ol.workspace-steps.has-counts) .workspace-overview { align-self: flex-start; border: 0 !important; padding: 0 !important; }
  :is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts { gap: 4px !important; }
  :is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts a.workspace-step {
    min-height: 52px; padding: 6px 2px !important; justify-items: center; text-align: center; border-radius: 6px !important;
  }
  :is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-label { font-size: 11px; letter-spacing: 0; }
  :is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-label[data-short] { display: block; font-size: 0; line-height: 0; }
  :is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-label[data-short]::after { content: attr(data-short); display: block; font-size: 11px; line-height: 16px; }
  :is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-count { font-size: 18px; line-height: 22px; }
  :is(body .workspace-shell, body #home-journey) ol.workspace-steps.has-counts .workspace-step-brief { display: none; }
}

/* Home, signed in (home-journey.js): the flow buttons replace the step strip and Explore a medicine. */
body .home-hero.has-flow .hero-inner { grid-template-columns: minmax(0, 1fr); }
body #home-journey .hj-flow { display: block; margin: 0; padding: 0; border: 0; }
body #home-journey .hj-flow ol.workspace-steps.has-counts { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px !important; list-style: none; margin: 0; padding: 0; }
body #home-journey .hj-flow ol.workspace-steps.has-counts li { display: block; min-width: 0; }
@media (max-width: 760px) { body #home-journey .hj-flow ol.workspace-steps.has-counts { gap: 4px !important; } }

/* Dark mode: the rule beside Overview follows the theme's line colour. */
:is(body .workspace-shell, body #home-journey) .workspace-journey .workspace-overview { border-color: var(--line, #d6dee3); }
/* Home: Monitor is "you are here" in a quiet style, so it does not compete with Review latest updates. */
body #home-journey .workspace-journey ol.workspace-steps.has-counts a.workspace-step[aria-current] { background: var(--brand-soft, #e3eff2) !important; border-color: var(--brand, #0f4c5c) !important; color: var(--ink, #17212b) !important; }
body #home-journey ol.workspace-steps.has-counts a[aria-current] .workspace-step-brief { color: var(--muted, #5b6774); opacity: 1; }
body #home-journey ol.workspace-steps.has-counts a[aria-current] .workspace-step-count.none { color: var(--muted, #5b6774); }
@media (max-width: 360px) {
  :is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts { gap: 2px !important; }
  :is(body .workspace-shell, body #home-journey) .workspace-journey ol.workspace-steps.has-counts a.workspace-step { padding: 6px 0 !important; }
}
/* Phone Home: keep the update tabs high; the counts' source note is shown from tablet width up. */
@media (max-width: 760px) { body .home-hero.has-flow #hj-note { display: none; } }
/* Home, signed out: the step strip has six steps (Deliverables added) in one row. */
body.home-workspace #home-journey .hj-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 760px) {
  body.home-workspace #home-journey .hj-steps .hj-label[data-short] { font-size: 0; }
  body.home-workspace #home-journey .hj-steps .hj-label[data-short]::after { content: attr(data-short); font-size: 11px; }
}
/* Home order (Venkat, Nov 15): Your daily safety intelligence first, then the change flow, then Coming up. */
body.home-workspace .home-hero .home-journey { margin: 0 0 8px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Home, signed in, wider than a phone: Review latest updates and Open my work sit beside the title to save height (Venkat, 15 Nov). */
@media (min-width: 761px) {
  body .home-hero.has-flow .home-welcome { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; }
  body .home-hero.has-flow .home-welcome > :not(.home-actions) { grid-column: 1; }
  body .home-hero.has-flow .home-welcome .home-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; flex-wrap: nowrap; }
}
