/* Process & Batch Monitoring, phones and tablets only (<=900px). Loaded last on /solutions/process-batch/.
   Desktop is untouched: every rule sits inside a max-width query.

   "Beyond process monitoring" board (.pb-cb) and its four points (.pb-qs, swipe cards on <=800px from _phone-motion.php) */

@media (max-width:900px){
 /* the board stays fully readable: on desktop hovering a point dims the rest of the board, but on a phone the cards sit
    below the board, so the dimming only made the stages and outcomes look disabled */
 .pb-cb-wrap:has(.pb-qs>:is(:hover,:focus-visible,.is-on)) :is(.pb-cb-chart,.pb-cb-hist,.pb-cb-out){opacity:1}
 .pb-cb-wrap:has(.pb-q-cond:is(:hover,:focus-visible,.is-on)) .pb-mark{opacity:1}
 .pb-cb-wrap:has(.pb-q-perf:is(:hover,:focus-visible,.is-on)) .pb-mark>b{background:var(--pf-ink)}
 .pb-cb-wrap:has(.pb-q-perf:is(:hover,:focus-visible,.is-on)) .pb-cb-plot svg .pb-ln{opacity:1}
 .pb-cb{margin-inline:auto}
 .pb-cb-wrap{gap:28px}
}

@media (max-width:700px){
 /* batch header: "Same recipe · Same reactor" on its own line, the two batches side by side under it */
 .pb-cb-head{grid-template-columns:1fr 1fr;grid-template-areas:"note note" "ref run";gap:8px;margin-bottom:18px}
 .pb-cb-head p{grid-area:note;display:flex;justify-content:center;flex-wrap:wrap;gap:4px 8px;font-size:12px}
 .pb-cb-head p span{display:inline}
 .pb-cb-head p span+span:before{content:"·";margin-right:8px}
 .pb-cb-batch.is-ref{grid-area:ref}
 .pb-cb-batch.is-run{grid-area:run;text-align:left}
 .pb-cb-batch{min-width:0;padding:10px 12px;border-radius:14px}
 .pb-cb-batch small{font-size:11px}
 .pb-cb-batch b{font-size:18px}
 .pb-cb-batch span{font-size:11.5px}

 /* chart: a touch taller, the limit label kept inside the card */
 .pb-cb-plot svg{height:180px}
 .pb-lim-t{font-size:11px}
 .pf-page .pb-cb-x{font-size:11px}
 .pb-cb-x span:nth-child(even){visibility:hidden}
 .pb-cb-notes{font-size:12.5px;line-height:1.35}
 .pb-cb-notes li{align-items:flex-start}

 /* stages: in-bar labels stay hidden (too narrow); the numbered notes above say which stages ran long */
 .pb-cb-hist{margin-top:20px}
 .pb-cb-row{grid-template-columns:56px minmax(0,1fr);gap:8px}
 .pb-cb-row>b{font-size:12px}
 .pb-cb-stages{height:22px}

 /* outcomes: two per row, values large enough to read at arm's length */
 .pb-cb-out{gap:8px;margin-top:18px}
 .pb-cb-out div{grid-template-rows:1fr auto auto;padding:10px 12px;border-radius:14px}
 .pb-cb-out dt{font-size:11.5px;line-height:1.3}
 .pb-cb-out dd{font-size:14px}
 .pb-cb figcaption{margin-top:14px;font-size:12px}

 /* the four points: full-width cards with a peek of the next one */
 .pf-page .pb-qs.pe-swipe>li,.pf-page .pb-qs.pe-swipe>li:is(:hover,:focus-visible){flex-basis:86%;padding:18px 18px 20px}
 .pf-page .pb-qs.pe-swipe>li>span:first-child{margin-bottom:10px}
 .pf-page .pb-qs h3{font-size:18px;margin-bottom:4px}
 .pf-page .pb-qs p{font-size:15px;line-height:1.5}
 .pf-page .pb-related{margin:18px 0 0;padding-top:16px;font-size:15px}
 .pb-related a{display:inline;line-height:1.9}
}

@media (max-width:380px){
 .pb-cb{padding-inline:12px}
 .pb-cb-batch{padding:9px 10px}
 .pb-cb-batch b{font-size:16px}
 .pb-cb-out dd{font-size:13px}
}
