/* Health check strip (assets/js/health-strip.js). Markup is
   partials/health-strip.html. Used in the Health Check card on offerings.html
   and in insight posts via <!-- EMBED:health-strip -->. A metric header, six
   stage cards, and on wide screens a conveyor belt and audit sweep under them.
   Placement (grid column, border, order) belongs to the host page. */
.hs { margin: 0; padding: 16px 36px 22px; background: var(--surface-2); }
.hs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hs-metric { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hs-num { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.hs-hours { font-family: var(--font-mono); font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--fg1); font-variant-numeric: tabular-nums; transition: color .3s; }
.hs-hours.is-better { color: var(--pine-700); }
.hs-unit { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg1); }
.hs-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: var(--radius-pill); background: var(--pine-50); color: var(--pine-700); font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; }
.hs-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pine-500); }
.hs-side { display: flex; align-items: center; gap: 12px; flex: none; }
.hs-note { font-size: 12.5px; font-style: italic; color: var(--fg3); white-space: nowrap; }
.hs-toggle { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--harbor-700); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hs-toggle:hover { border-color: var(--border-strong); color: var(--brand-bright); }
.hs-toggle:focus-visible { outline: 2px solid var(--focus-ring, var(--brand)); outline-offset: 2px; }
.hs-toggle svg { width: 13px; height: 13px; }
.hs-toggle .hs-ic-play, .hs-toggle.is-paused .hs-ic-pause { display: none; }
.hs-toggle.is-paused .hs-ic-play { display: block; }
.hs-track { position: relative; margin-top: 12px; }
.hs-flow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 22px; }
.hs-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hs-stages--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-stages--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-bracket { height: 6px; margin: 6px 1px 0; border: 1.5px solid var(--border-strong); border-top: 0; border-radius: 0 0 5px 5px; }
.hs-sub { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; min-height: 30px; margin-top: 5px; }
.hs-group + .hs-group .hs-sub { justify-content: space-between; }
.hs-glabel { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg3); white-space: nowrap; }
.hs-glabel b { font-weight: 600; color: var(--fg1); }
.hs-tot { margin-left: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--fg1); font-variant-numeric: tabular-nums; transition: color .3s; }
.hs-tot.is-better { color: var(--pine-700); }
.hs-stage.hs-stage--sub { position: relative; flex-direction: row; align-items: center; gap: 10px; }
.hs-stage--sub .hs-card { height: 30px; min-width: 124px; padding: 0 9px; gap: 10px; border-radius: 7px; }
.hs-stage--sub .hs-name { font-size: 12.5px; }
.hs-stage--sub .hs-min { font-size: 11.5px; }
.hs-stage--sub .hs-check { width: 14px; height: 14px; }
.hs-stage--sub .hs-area { transform: translateX(-4px); }
.hs-stage--sub .hs-area.is-on { transform: none; }
.hs-arrow { position: absolute; left: 40px; bottom: 100%; height: var(--hs-arrow, 22px); border-left: 1.5px dashed currentColor; color: var(--fg3); transition: color .25s; }
.hs-arrow-tag { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); padding: 1px 6px; border-radius: var(--radius-pill); background: var(--surface-2); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .25s; }
.hs-arrow-tag.is-on { opacity: 1; }
.hs-tag-s { display: none; }
.hs-stage--sub.is-issue .hs-arrow-tag { color: var(--beacon-700); }
.hs-stage--sub.is-fixed .hs-arrow-tag { color: var(--pine-700); }
.hs-arrow::before { content: ""; position: absolute; left: -5px; top: -1px; border: 4px solid transparent; border-bottom: 5px solid currentColor; border-top: 0; }
.hs-stage--sub.is-issue .hs-arrow { color: var(--beacon-400); }
.hs-stage--sub.is-fixed .hs-arrow { color: var(--pine-600); }
.hs-stage { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hs-area { height: 14px; overflow: hidden; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--beacon-700); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.hs-area b { font-weight: 500; }
.hs-area.is-on { opacity: 1; transform: none; }
.hs-stage.is-fixed .hs-area { color: var(--pine-700); }
.hs-card { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 44px; padding: 0 11px; box-sizing: border-box; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(12, 74, 90, .06), 0 2px 6px rgba(12, 74, 90, .06); transition: background-color .25s, border-color .25s, box-shadow .25s; }
.hs-stage.is-issue .hs-card { background: var(--beacon-50); border-color: var(--beacon-400); box-shadow: inset 0 0 0 1px var(--beacon-400); }
.hs-stage.is-fixed .hs-card { border-color: var(--pine-600); box-shadow: inset 0 0 0 1px var(--pine-600); }
.hs-name { font-size: 14px; font-weight: 600; color: var(--fg1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-meta { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.hs-min { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--fg2); font-variant-numeric: tabular-nums; }
.hs-stage.is-issue .hs-min { color: var(--beacon-700); }
.hs-stage.is-fixed .hs-min { color: var(--pine-700); }
.hs-check { display: none; width: 16px; height: 16px; padding: 3px; box-sizing: border-box; border-radius: 50%; background: var(--pine-600); color: #fff; }
.hs-stage.is-fixed .hs-check { display: block; }
.hs-belt { position: relative; height: 36px; margin-top: 8px; overflow: hidden; }
.hs-line { position: absolute; top: 27px; height: 2px; background: var(--border); }
.hs-cross { position: absolute; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: #C7613D; color: #fff; display: grid; place-items: center; font: 700 12px/1 var(--font-sans); box-shadow: 0 1px 2px rgba(12, 74, 90, .06), 0 2px 6px rgba(12, 74, 90, .06); }
.hs-sweep { position: absolute; left: -1px; top: -4px; bottom: 0; width: 2px; background: var(--beacon-400); box-shadow: 0 0 12px var(--beacon-400); opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .hs-flow { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .hs-belt, .hs-sweep { display: none; }
}
@media (max-width: 560px) {
  .hs { padding: 20px 22px 22px; }
  .hs-stages--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-stages--3 > :nth-child(3) { grid-column: 2; }
  .hs-group + .hs-group .hs-sub { justify-content: flex-start; }
  .hs-group + .hs-group .hs-glabel { order: -1; flex-basis: 100%; text-align: right; }
  .hs-hours { font-size: 22px; }
  .hs-tag-l { display: none; }
  .hs-tag-s { display: inline; }
  .hs-head { align-items: flex-start; }
  .hs-side { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
  .hs-stages { gap: 8px; }
  .hs-card { padding: 0 9px; gap: 4px; }
  .hs-name { font-size: 13.5px; }
  .hs-meta { gap: 4px; }
}
