/* Chapter 15, The machine's share and the human's share. Site tokens only; the kit's frame from /playbook/kit/kit.css.
   A station by hand is a hollow node; a machine station glows; a human check is a lamp-coloured ring round it. */

/* the still */
.mh-pipe .pb-still text{font-family:var(--font)}
.mh-s-person{fill:var(--ink)}
.mh-s-check{fill:none;stroke:var(--halo-lamp);stroke-width:1.5}
.mh-s-name text{fill:var(--ink);font-size:22px}
.mh-s-who text{fill:var(--muted);font-size:17px}
.mh-s-label{fill:var(--ink);font-size:20px}
.mh-s-value{fill:var(--ink);font-size:22px}
.mh-s-track{stroke:var(--rule);stroke-width:3}
.mh-s-fill{stroke:var(--ink);stroke-width:3}

/* live: the layer has its own height, so the still steps out of the way */
.js .mh-pipe .pb-stage > .pb-still{display:none}
.js .mh-pipe .pb-stage > .pb-layer{display:block}
.mh-pipe .pb-stage > .pb-layer{position:relative;inset:auto;height:auto;padding:1.5rem 1.75rem .5rem 0}
.mh-layer > canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.pb-chapter .mh-stations{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2.5rem 1.75rem;position:relative;z-index:2}
.mh-station{position:relative;border-top:1px solid var(--rule);padding:1.1rem 0 0 1.6rem}
.mh-node{position:absolute;left:1rem;top:0;width:.9rem;height:.9rem;border-radius:50%;transform:translate(-50%,-50%);background:var(--ground);border:1px solid var(--faint)}
@media (prefers-reduced-motion:no-preference){.mh-node{transition:background-color .5s var(--ease-draw),box-shadow .5s var(--ease-draw),border-color .5s var(--ease-draw)}}
.mh-station.is-machine .mh-node{background:var(--spark);border-color:var(--spark)}
.mh-station.is-checked .mh-node{box-shadow:0 0 0 5px var(--ground),0 0 0 6px var(--halo-lamp)}
.mh-name{font-size:1.25rem;line-height:1.25}
.pb-chapter .mh-share{margin-top:.35rem;color:var(--muted);font-size:var(--t-meta);line-height:1.4}
.pb-chapter .mh-who{margin-top:.5rem;color:var(--halo-lamp);font-size:var(--t-meta)}
.mh-toggles{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}
.mh-toggles .pb-toggle{padding:.45rem .75rem}
.mh-station:not(.is-machine) [data-check]{color:var(--muted)}
.mh-meters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));gap:1.25rem 3rem;margin-top:2.5rem;position:relative;z-index:2}
.mh-meter .pb-meter-value{font-size:1.125rem}
.mh-presets{max-width:46rem}
.mh-read{margin-top:1.25rem;max-width:var(--measure);margin-left:calc((var(--pb-stage-w) - 100cqw) / 2 + var(--pb-shift));line-height:1.5}
.mh-assume{max-width:50rem}
.pb-chapter .mh-assume-head,.mh-assume > .mh-weight{display:grid;grid-template-columns:7rem 6rem minmax(0,1fr) 4.5rem minmax(0,1fr);align-items:center;gap:.25rem .75rem;margin-top:.6rem}
.mh-assume-head{color:var(--muted);font-size:.8125rem;line-height:1.3}
.mh-assume-head span:nth-child(2),.mh-assume-head span:nth-child(3){grid-column:span 2}
.mh-weight-name{font-size:var(--t-meta)}
.mh-weight output{color:var(--muted);font-size:.875rem;font-variant-numeric:lining-nums tabular-nums;white-space:nowrap}
.mh-weight .pb-dial-line{width:100%}
.mh-pipe table.visually-hidden{top:0;left:0;white-space:normal}

/* how the meters work */
.pb-chapter .mh-rules{list-style:disc;padding-left:1.25rem;margin-top:1rem}
.mh-rules li{padding:.25rem 0;line-height:1.5}

/* the AI-tell check */
.mh-check{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,4vw,3rem);margin-top:1.5rem;max-width:62rem}
.mh-check .pb-label{display:block;margin-bottom:.5rem}
.mh-draft{display:block;width:100%;min-height:12rem;font:inherit;font-size:1.0625rem;line-height:1.55;color:var(--ink);background:var(--ground-raised);border:1px solid var(--faint);border-radius:0;padding:.85rem 1rem;resize:vertical}
.mh-draft:focus-visible{outline:1px solid var(--ink);outline-offset:3px}
.mh-marked{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.0625rem;line-height:1.75;color:var(--muted);border-left:1px solid var(--rule);padding-left:1rem}
.mh-tell{color:var(--spark);background:rgba(217,178,122,.16);padding:0 .1em}
.pb-chapter .mh-tells{margin-top:1rem;font-size:var(--t-meta);line-height:1.45}
.mh-tells li{padding:.4rem 0;border-top:1px solid var(--rule);color:var(--muted)}
.mh-tell-kind{color:var(--ink)}
.mh-tell-fix{color:var(--halo-lamp)}
.mh-clean{color:var(--ink)}
.js .mh-nojs{display:none}
.mh-nojs{color:var(--muted);font-size:var(--t-meta);margin-top:1rem}
html:not(.js) .mh-check,html:not(.js) .mh-presets,html:not(.js) .mh-assume,html:not(.js) .mh-read{display:none}

@media (max-width:64rem){
  .pb-chapter .mh-stations{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:52rem){
  .mh-check{grid-template-columns:minmax(0,1fr)}
  .pb-chapter .mh-assume-head{display:none}
  .mh-assume > .mh-weight{grid-template-columns:5.5rem minmax(0,1fr);margin-top:1rem}
  .mh-weight-name{grid-column:1 / -1}
}
@media (max-width:30rem){
  .pb-chapter .mh-stations{grid-template-columns:minmax(0,1fr);gap:2rem}
  .mh-pipe .pb-stage > .pb-layer{padding-right:.75rem}
}
