/* Plant Logistics page (/solutions/plant-logistics/) — builds on platform-page.css, the section styles and widget kit (.dk-*)
   in platform-dashboards.css, and the Solutions patterns in solutions-production.css (.pe-*). Page-specific pieces are .lg-*. */
.lg-page .pe-tablet .dv-panes>*+*{margin-top:12px}
.lg-page .pe-cap-viz .dv-panes>.dk-w:first-child,.lg-page .pe-cap-viz .dv-panes>.lg-scale+.dk-w{margin-top:12px}

/* ---- hero: one vehicle's visit seen from above (_logistics-plant.php). data-phase 0–5 is the checkpoint the truck is heading
   to, data-at the one it last reached and .is-at says it is standing there; the script marks the cards up to it as done ---- */
.lg-viz{max-width:1120px;margin:44px auto 0;font-family:Manrope,Arial,sans-serif}
.pf-page .lg-status{display:grid;justify-content:center;margin:0 auto 6px;font-size:15px;font-weight:700;text-align:center}
.lg-st{grid-area:1/1;justify-self:center;align-self:center;padding:8px 16px;border-radius:40px;background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line);color:var(--pf-ink);white-space:nowrap;opacity:0;transition:opacity .4s}
.lg-st1{color:#866500}
.lg-st5{color:#1E9E5A}
.lg-viz[data-at="0"] .lg-st0,.lg-viz[data-at="1"] .lg-st1,.lg-viz[data-at="2"] .lg-st2,.lg-viz[data-at="3"] .lg-st3,.lg-viz[data-at="4"] .lg-st4,.lg-viz[data-at="5"] .lg-st5{opacity:1}
/* the scene fades out at its edges into the hero */
.lg-plant{position:relative;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(transparent,#000 6%,#000 88%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent),linear-gradient(transparent,#000 6%,#000 88%,transparent);mask-composite:intersect}
.lg-plant-in{position:relative}
.lg-plant svg{display:block;width:100%;height:auto}
.lg-paint text{font:800 8px Manrope,Arial,sans-serif;fill:#fff;text-anchor:middle;letter-spacing:.06em}
.lg-wall{font:800 9px Manrope,Arial,sans-serif;fill:#96A3C2;text-anchor:middle;letter-spacing:.1em}
.lg-wall.is-big{font-size:15px;fill:#AEB7C7}
.lg-bay{font:800 7px Manrope,Arial,sans-serif;fill:#5D6273;text-anchor:middle}
.lg-bay.is-3{fill:#fff}
.lg-kg{font:700 8px ui-monospace,Menlo,Consolas,monospace;fill:#7FD8B0;text-anchor:end}
.lg-fence{fill:rgb(150 163 194 / .14);stroke:#BCC4D3;stroke-width:1}
.lg-arm{fill:none;stroke:#EE8574;stroke-width:3;stroke-linecap:round;stroke-dasharray:5 4;transition:transform .6s ease}
.is-open-in .lg-arm-in{transform:rotate(-110deg)}
.is-open-out .lg-arm-out{transform:rotate(55deg)}
/* Bay 3: the door rolls up while the truck is there, and the pallets it brought stay on the dock afterwards */
.lg-glow{fill:#FFE2B8;opacity:0;transition:opacity .6s}
.lg-door3{transform-box:fill-box;transform-origin:50% 0;transition:transform .8s ease}
.lg-viz[data-phase="3"] .lg-door3{transform:scaleY(.12)}
.lg-viz[data-phase="3"] .lg-glow{opacity:.7}
.lg-pal{opacity:0}
.lg-viz[data-phase="4"] .lg-pal,.lg-viz[data-phase="5"] .lg-pal{opacity:1}
.lg-fork-pal{opacity:0}
/* the route to the next checkpoint, painted on the ground while the truck drives it, and a ring where it will stop */
.lg-route{fill:none;stroke:#FF5F2D;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:7 7;opacity:0;transition:opacity .3s}
.is-driving .lg-route{opacity:.85}
.lg-ring{fill:rgb(255 95 45 / .1);stroke:#FF5F2D;stroke-width:1.5;transform-box:fill-box;transform-origin:center}
.lg-halo{fill:rgb(255 95 45 / .08);stroke:rgb(255 95 45 / .55);stroke-width:1.2;stroke-dasharray:4 5;transform-box:fill-box;transform-origin:center}
.lg-iot{fill:#5B9BD5}
.lg-iot-ring{fill:none;stroke:#5B9BD5;stroke-width:1.2;opacity:0;transform-box:fill-box;transform-origin:center}
/* the truck: one sprite per heading */
.lg-mover>g[class]{display:none}
.lg-mover[data-dir="px"] .lg-tk-px,.lg-mover[data-dir="nx"] .lg-tk-nx,.lg-mover[data-dir="py"] .lg-tk-py,.lg-mover[data-dir="ny"] .lg-tk-ny{display:inline}
/* pins over the checkpoints (the one the truck is heading to is orange; it hands over to the tag once the truck is there)
   and the tag that rides above the truck */
.lg-pin,.lg-tag{position:absolute;z-index:1;transform:translate(-50%,-100%);pointer-events:none;white-space:nowrap}
.lg-pin{display:flex;flex-direction:column;align-items:center;transition:opacity .3s}
.lg-pin:after{content:"";width:2px;height:14px;background:linear-gradient(#96A3C2,rgb(150 163 194 / 0))}
.lg-pin b{padding:4px 10px;border-radius:20px;background:rgb(255 255 255 / .94);box-shadow:0 0 0 1px var(--pf-line),0 8px 18px -12px rgb(24 26 36 / .45);font-size:11.5px;font-weight:800;color:var(--pf-ink);transition:background-color .3s,color .3s}
.lg-pin.is-on b{background:var(--pf-orange);box-shadow:0 8px 18px -10px rgb(255 95 45 / .7);color:#fff}
.lg-pin.is-on:after{background:linear-gradient(var(--pf-orange),rgb(255 95 45 / 0))}
.lg-viz.is-at .lg-pin.is-on{opacity:0}
.lg-tag{z-index:2;display:grid;gap:1px;margin-top:-7px;padding:5px 11px 6px;border-radius:10px;background:#1B1E27;box-shadow:0 12px 24px -14px rgb(24 26 36 / .8);text-align:left}
.lg-tag:after{content:"";position:absolute;left:50%;top:100%;margin-left:-5px;border:5px solid transparent;border-top-color:#1B1E27}
.lg-tag b{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:.02em;color:#fff}
.lg-tag b:before{content:"";width:7px;height:7px;border-radius:50%;background:#5B9BD5;box-shadow:0 0 0 3px rgb(91 155 213 / .25)}
.lg-tag span{font-size:11px;font-weight:600;color:#C7CEE0;font-variant-numeric:tabular-nums}
.lg-viz.is-at .lg-tag b:before{background:#55C197;box-shadow:0 0 0 3px rgb(85 193 151 / .25)}
.lg-viz.is-at[data-at="1"] .lg-tag b:before{background:#EBC255;box-shadow:0 0 0 3px rgb(235 194 85 / .25)}
/* checkpoint cards under the scene */
.lg-stops{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:6px 0 0;padding:0;list-style:none}
.lg-stops>li{padding:0 6px}
.lg-card{display:grid;gap:3px;height:100%;padding:12px 14px 14px;border-radius:18px;background:#fff;box-shadow:0 0 0 1px var(--pf-line),0 16px 34px -28px rgb(24 26 36 / .45);text-align:left;transition:box-shadow .45s}
.lg-card>*{opacity:.35;transition:opacity .45s}
.lg-stops .is-done .lg-card>*{opacity:1}
.lg-stops .is-now .lg-card{box-shadow:0 0 0 2px var(--pf-orange),0 16px 34px -24px rgb(255 95 45 / .55)}
.pf-page .lg-card-h{display:flex;align-items:center;gap:7px;margin:0 0 6px}
.lg-card-ic{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--pf-surface);box-shadow:0 0 0 1px var(--pf-line)}
.lg-card-ic svg{width:15px;height:15px;fill:none;stroke:var(--pf-ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lg-card-h small{min-width:0;font-size:11.5px;font-weight:700;color:var(--pf-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-card-h time{margin-left:auto;font-size:11px;font-weight:700;color:#A3A8B6}
.lg-card b{font-size:15.5px;letter-spacing:-.02em;line-height:1.25;color:var(--pf-ink)}
.lg-card>span{font-size:12px;font-weight:600;line-height:1.4;color:#6D7283}
.lg-card .dk-pill{justify-self:start;margin-top:6px;padding:3px 9px;font-size:11px;opacity:0;transform:translateY(4px);transition:opacity .4s,transform .4s}
.lg-stops .is-done .dk-pill{opacity:1;transform:none}

/* ---- the challenge: pictures ---- */
.lg-pic-see svg{display:block;width:100%;height:100%}
.lg-ask text{font:800 14px Manrope,Arial,sans-serif;fill:#96A3C2;text-anchor:middle}
.lg-pic-see em,.lg-pic-calls em{position:absolute;right:12px;bottom:12px;padding:4px 10px;border-radius:12px;background:#FDF6DF;color:#866500;font-style:normal;font-size:11px;font-weight:700}
.lg-pic-calls{display:flex;flex-direction:column;justify-content:center;gap:6px;padding:0 18px 18px}
.pf-page .lg-msg{display:flex;flex-direction:column;align-items:flex-start;max-width:78%;margin:0}
.pf-page .lg-msg.is-them{align-self:flex-end;align-items:flex-end}
.lg-msg small{font-size:10px;font-weight:700;color:#858A9B}
.lg-msg span{padding:6px 11px;border-radius:12px 12px 12px 4px;background:#fff;box-shadow:0 8px 20px -16px rgb(24 26 36 / .5);font-size:12px;font-weight:700;color:#22252F}
.lg-msg.is-them span{border-radius:12px 12px 4px 12px;background:#EAF2FB;color:#2C68A8}
.lg-msg:nth-of-type(3) span{color:#BF4A33}
.lg-pic-calls em{background:#FDECE8;color:#BF4A33}

/* ---- how DelphEon helps: who holds the tablet (security officer, weighbridge operator, yard supervisor, logistics manager) ---- */
.lg-bg,.lg-wear{transition:opacity .4s ease}
.lg-bg1,.lg-bg2,.lg-bg3,.lg-wear-suit,.lg-wear-shirt,.lg-wear-op{opacity:0}
.pe-how-stage:not([data-step="0"]) :is(.lg-bg0,.lg-wear-guard){opacity:0}
.pe-how-stage[data-step="1"] :is(.lg-bg1,.lg-wear-shirt),.pe-how-stage[data-step="2"] :is(.lg-bg2,.lg-wear-op),.pe-how-stage[data-step="3"] :is(.lg-bg3,.lg-wear-suit){opacity:1}
.lg-fig-kg{font:800 17px Manrope,Arial,sans-serif;fill:#55C197;stroke:none;text-anchor:middle;letter-spacing:.04em}
.lg-fig-sign{font:800 11px Manrope,Arial,sans-serif;fill:#4F5B78;stroke:none;text-anchor:middle}

/* ---- screens ---- */
/* visit form: four fields and the document checks */
.lg-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.lg-form span{display:grid;gap:2px;padding:9px 11px;border-radius:12px;background:#F7F8FA}
.lg-form small{font-size:10.5px;font-weight:700;color:#858A9B}
.lg-form b{font-size:13px;color:#22252F;white-space:nowrap}
.pf-page .lg-docs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.lg-docs span{display:flex;align-items:center;gap:6px;padding:6px 11px 6px 6px;border-radius:20px;background:#E6F6EF;font-size:12px;font-weight:700;color:#257A55}
.lg-docs i i{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#55C197}
.lg-docs svg svg{width:11px;height:11px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
/* weight readout from the weighbridge indicator */
.lg-scale{display:grid;justify-items:center;padding:14px 16px 16px;border-radius:18px;background:#1B1E27;color:#fff}
.pf-page .lg-scale p{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%;margin:0}
.lg-scale .dk-live{color:#7FD8B0}
.lg-scale>b{margin:6px 0 2px;font-size:46px;font-weight:800;letter-spacing:.02em;line-height:1.05;color:#7FD8B0;font-variant-numeric:tabular-nums}
.lg-scale>b i{font-style:normal;font-size:18px;color:#A4E1C6}
.lg-scale small{font-size:12px;font-weight:600;color:#A3A8B6}
.lg-weights{display:grid;gap:2px;margin:0;padding:0;list-style:none}
.lg-weights li{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border-radius:10px;font-size:12.5px;font-weight:600;color:#5D6273}
.lg-weights li:nth-child(even){background:#F7F8FA}
.lg-weights b{font-size:14px;color:#22252F}
.lg-weights .dk-pill{font-size:11px}
/* bay board: four bays with what is in each and how far along it is */
.lg-bays{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.lg-bays li{position:relative;display:grid;gap:2px;padding:12px 12px 16px;border-radius:14px;background:#fff;box-shadow:inset 0 3px 0 var(--k),0 1px 2px rgb(24 26 36 / .05);overflow:hidden}
.lg-bays small{font-size:11px;font-weight:700;color:#858A9B}
.lg-bays b{font-size:14.5px;color:var(--kt)}
.lg-bays span{font-size:11px;font-weight:600;color:#5D6273;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-bays i{position:absolute;left:12px;right:12px;bottom:8px;height:4px;border-radius:2px;background:#EEF0F4;overflow:hidden}
.lg-bays i:after{content:"";position:absolute;inset:0 auto 0 0;width:var(--w);border-radius:2px;background:var(--k)}
.lg-bays .dk-m{box-shadow:inset 0 3px 0 var(--k),0 0 0 2px #A4E1C6}
/* vehicles inside: six checkpoint dots per vehicle */
.lg-veh,.lg-wt{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.lg-veh li{display:grid;grid-template-columns:minmax(0,1.25fr) 116px 70px 150px;gap:12px;align-items:center;padding:10px 12px;border-radius:13px;background:#fff}
.lg-veh .lg-veh-h,.lg-wt .lg-veh-h{padding-block:0;background:none;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#A3A8B6}

.lg-veh b{display:block;font-size:13px;color:#22252F}
.lg-veh small{display:block;font-size:11px;font-weight:600;color:#858A9B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-veh-t{font-size:12px;font-weight:700;color:#5D6273}
.lg-veh .dk-pill{justify-self:start;font-size:11px}
.lg-dots{display:flex;gap:4px}
.lg-dots i{flex:1;height:6px;border-radius:3px;background:#E6E8EE}
.lg-dots .on{background:#A9CBEF}
.lg-dots .now{background:var(--k);box-shadow:0 0 0 2px var(--kb)}
/* weighment transactions */
.lg-wt li{display:grid;grid-template-columns:76px minmax(0,1fr) 58px 54px 64px;gap:10px;align-items:center;padding:8px 10px;border-radius:10px;font-size:12px;font-weight:600;color:#5D6273}
.lg-wt li:nth-child(even){background:#F7F8FA}
.lg-wt b,.lg-wt strong{font-size:12.5px;color:#22252F}
.lg-wt strong{font-weight:800}
.lg-wt small{display:block;font-size:10.5px;color:#858A9B}
.lg-wt li>span:nth-child(n+3),.lg-wt li>strong{text-align:right;font-variant-numeric:tabular-nums}
/* visit workflow: done, now, still to come */
.lg-flow-cols{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
.lg-flow{display:grid;margin:0;padding:0;list-style:none}
.lg-flow li{position:relative;display:grid;padding:0 0 10px 26px}
.lg-flow li:not(:last-child):after{content:"";position:absolute;left:7px;top:18px;bottom:0;width:2px;background:#E6E8EE}
.lg-flow .is-done:not(:last-child):after{background:#A4E1C6}
.lg-flow i{position:absolute;left:0;top:1px;width:16px;height:16px;border-radius:50%;box-shadow:inset 0 0 0 2px #D3D6DE}
.lg-flow .is-done i{box-shadow:none;background:#55C197 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5'/%3E%3C/svg%3E") center/16px no-repeat}
.lg-flow .is-now i{box-shadow:inset 0 0 0 5px #EBC255}
.lg-flow b{font-size:12.5px;color:#22252F}
.lg-flow small{font-size:11px;font-weight:600;color:#858A9B}
.lg-flow .is-now small{color:#866500}
.lg-flow .is-todo b{color:#A3A8B6}
.lg-flow-cols .dk-events{margin-top:4px}
.lg-flow-cols .dk-events li{background:#F7F8FA}
/* one visit's time bar: each checkpoint as wide as the minutes spent there; the wait stands out */
.lg-tl-bar{display:flex;gap:3px}
.lg-tl-bar span{display:grid;gap:4px;min-width:0}
.lg-tl-bar span:before{content:"";height:14px;border-radius:4px;background:linear-gradient(90deg,var(--k),var(--k2))}
.lg-tl-bar b{font-size:11.5px;color:#22252F;white-space:nowrap}
.lg-tl-bar small{overflow:hidden;font-size:10.5px;font-weight:600;color:#858A9B;white-space:nowrap;text-overflow:ellipsis}
.lg-tl-bar .is-wait b{color:#BF4A33}
.lg-tl-bar .is-wait:before{background:repeating-linear-gradient(135deg,#EE8574 0 6px,#F7B6A6 6px 12px)}
/* the gate and weighment slices are too narrow for their names: they show minutes only */
.lg-tl-gate,.lg-tl-weigh{min-width:34px}
.lg-tl-gate small,.lg-tl-weigh small{visibility:hidden}
.pf-page .lg-tl-axis{display:flex;justify-content:space-between;margin:8px 0 0;font-size:10.5px;font-weight:700;color:#A3A8B6}
.lg-tl-axis span:nth-child(2){color:#22252F}
.lg-sum-cols .dk-card b{font-size:24px}

/* ---- key capabilities: the site map (hotspots and tabs from solutions-production.css) ---- */
.lg-map{max-width:1080px;margin:0 auto}
.lg-map-t{font:800 11px Manrope,Arial,sans-serif;letter-spacing:.12em;fill:#A3A8B6;text-anchor:middle}
.lg-map-s{font:700 9.5px Manrope,Arial,sans-serif;letter-spacing:.06em;fill:#858A9B;text-anchor:middle}
.lg-map-kg{font:800 10px Manrope,Arial,sans-serif;fill:#7FD8B0;text-anchor:middle}

/* ---- beyond vehicle tracking: one visit record beside what it holds ---- */
.lg-rec-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:center}
.lg-rec{margin:0;padding:24px;border-radius:32px;background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line),0 40px 70px -50px rgb(24 26 36 / .45);font-family:Manrope,Arial,sans-serif}
.lg-rec-top{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.lg-rec-truck{flex:none;width:64px}
.lg-rec-truck svg{display:block;width:100%;height:auto}
.lg-rec-top b{display:block;font-size:19px;letter-spacing:-.02em;color:var(--pf-ink)}
.lg-rec-top small{font-size:13px;font-weight:600;color:var(--pf-muted)}
.lg-rec-top .dk-pill{margin-left:auto}
.lg-rec-blocks{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.lg-rb{padding:14px 16px;border-radius:18px;background:var(--pf-surface);box-shadow:0 0 0 1px var(--pf-line);transition:opacity .25s,background-color .25s,box-shadow .25s}
.lg-rb>small{display:block;margin-bottom:8px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--pf-muted)}
.pf-page .lg-rb p{display:flex;justify-content:space-between;gap:10px;margin:0;padding:3px 0;font-size:13px}
.lg-rb p span{color:var(--pf-text)}
.lg-rb p b{color:var(--pf-ink);text-align:right}
.lg-rec .lg-tl{padding:14px 16px 12px;border-radius:18px;box-shadow:0 0 0 1px var(--pf-line)}
.lg-rec .lg-tl-bar span{transition:opacity .25s}
.lg-rec figcaption{margin:14px auto 0;text-align:center;font-size:12.5px;line-height:1.5;color:var(--pf-muted)}
.lg-qs{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.lg-qs li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;padding:18px 20px;border-radius:20px;transition:background-color .25s,box-shadow .25s}
.lg-qs li:hover{background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line)}
.lg-q-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--pf-white);box-shadow:0 0 0 1px var(--pf-line)}
.lg-q-ic svg{width:20px;height:20px;fill:none;stroke:var(--pf-ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pf-page .lg-qs h3{font-size:20px;letter-spacing:-.03em;margin-bottom:6px}
.pf-page .lg-qs p{font-size:15.5px;line-height:1.55}
/* hovering one of the four lights its block of the record and its stretch of the time bar */
.lg-rec-grid:has(.lg-qs>:is(:hover,.is-on)) :is(.lg-rb,.lg-tl-bar span){opacity:.4}
.lg-rec-grid:has(.lg-q-gate:is(:hover,.is-on)) :is(.lg-rb-gate,.lg-tl-gate),.lg-rec-grid:has(.lg-q-weigh:is(:hover,.is-on)) :is(.lg-rb-weigh,.lg-tl-weigh,.lg-tl-exit),
.lg-rec-grid:has(.lg-q-yard:is(:hover,.is-on)) :is(.lg-rb-yard,.lg-tl-yard),.lg-rec-grid:has(.lg-q-exit:is(:hover,.is-on)) :is(.lg-rb-exit,.lg-tl-bar span){opacity:1}
.lg-rec-grid:has(.lg-q-gate:is(:hover,.is-on)) .lg-rb-gate,.lg-rec-grid:has(.lg-q-weigh:is(:hover,.is-on)) .lg-rb-weigh,.lg-rec-grid:has(.lg-q-yard:is(:hover,.is-on)) .lg-rb-yard,.lg-rec-grid:has(.lg-q-exit:is(:hover,.is-on)) .lg-rb-exit{background:#FFF4EF;box-shadow:0 0 0 2px var(--pf-orange)}
.pf-page .lg-band{max-width:880px;margin:48px auto 0;padding:14px 22px;border-radius:16px;background:#FFF4EF;color:#B4612F;font-size:16px;font-weight:700;line-height:1.5;text-align:center}

/* ---- motion (paused while off screen via .dk-wait, like the rest of the kit) ---- */
@media(prefers-reduced-motion:no-preference){
 .lg-halo{animation:lg-pulse 2.4s ease-in-out infinite}
 .lg-ring{animation:lg-pulse 1.8s ease-in-out infinite}
 .lg-iot-ring{animation:lg-ping 2.6s ease-out infinite}
 .lg-route{animation:lg-flow .8s linear infinite}
 .lg-viz[data-phase="3"].is-at .lg-pal{animation:lg-pop .35s var(--d) both}
 .lg-viz[data-phase="3"].is-at .lg-fork{animation:lg-fork 1.6s ease-in-out 3}
 .lg-viz[data-phase="3"].is-at .lg-fork-pal{animation:lg-carry 1.6s step-end 3}
 .lg-ask{animation:lg-ask 3s ease-in-out infinite}
 .lg-ask:nth-of-type(2){animation-delay:.4s}.lg-ask:nth-of-type(3){animation-delay:.8s}.lg-ask:nth-of-type(4){animation-delay:1.2s}
 .lg-msg{animation:lg-msg 7s ease-out infinite both}
 .lg-msg:nth-of-type(2){animation-delay:.6s}.lg-msg:nth-of-type(3){animation-delay:1.2s}
 .lg-dots .now{animation:dk-blink 2s ease-in-out infinite}
 .lg-flow .is-now i{animation:lg-ring 2.4s ease-in-out infinite}
 .lg-scale>b{animation:lg-settle 6s ease-in-out infinite}
}
@keyframes lg-pulse{50%{transform:scale(1.12);opacity:.6}}
@keyframes lg-ping{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(3.4)}}
@keyframes lg-flow{to{stroke-dashoffset:-14}}
@keyframes lg-pop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes lg-fork{45%,55%{transform:translate(12.1px,7px)}}
@keyframes lg-carry{0%{opacity:1}50%{opacity:0}}
@keyframes lg-ask{50%{transform:translateY(-3px)}}
@keyframes lg-msg{0%{opacity:0;transform:translateY(6px)}8%,100%{opacity:1;transform:none}}
@keyframes lg-ring{50%{box-shadow:inset 0 0 0 5px #EBC255,0 0 0 5px rgb(235 194 85 / .22)}}
@keyframes lg-settle{0%,6%{opacity:.55}3%{opacity:.85}12%,100%{opacity:1}}

/* ---- responsive ---- */
@media(max-width:1100px){
 .lg-rec-grid{grid-template-columns:1fr;gap:36px}
 .lg-rec{max-width:720px}
 .lg-card{padding:10px 10px 12px}
 .lg-card b{font-size:14px}
 .lg-card-h time{display:none}
}
/* tablets: cards in two rows of three */
@media(max-width:900px){
 .lg-viz{margin-top:32px}
 .lg-stops{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 0}
 .lg-card-h time{display:block}
}
@media(max-width:800px){
 .lg-qs li{padding:16px 4px}
 .lg-qs li:hover{background:none;box-shadow:none}
 .pf-page .lg-qs h3{font-size:18px}
}
@media(max-width:700px){
 .pf-page .lg-status{font-size:12.5px}
 .lg-st{max-width:100%;white-space:normal}
 /* phones: crop the plant's empty edges so the route reads larger, show only the pin the truck is heading to, and one card
    at a time (the current one) */
 .lg-plant-in{width:127%;margin-left:-6%}
 .lg-pin:not(.is-on){opacity:0}
 .lg-pin b{padding:3px 8px;font-size:10px}
 .lg-tag{padding:4px 8px 5px;border-radius:8px}
 .lg-tag b,.lg-tag span{font-size:9.5px}
 .lg-stops{grid-template-columns:minmax(0,1fr)}
 .lg-stops>li{grid-area:1/1;padding:0;opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s}
 .lg-stops>li.is-now{opacity:1;visibility:visible}
 .lg-card{grid-template-columns:minmax(0,1fr) auto;column-gap:12px;padding:10px 14px}
 .pf-page .lg-card-h{grid-column:1/-1;margin-bottom:2px}
 .lg-card>span{grid-column:1}
 .lg-card .dk-pill{grid-column:2;grid-row:2/4;align-self:center;margin:0}
 .lg-rec{padding:16px;border-radius:24px}
 .lg-rec-blocks{grid-template-columns:1fr}
 .lg-rec-top b{font-size:16px}
 .lg-rec-top small{font-size:12px}
 .lg-tl-bar small{display:none}
 /* too narrow for minutes too: the gate and weighment slices keep only their colour */
 .lg-tl-gate,.lg-tl-weigh{min-width:14px}
 .lg-tl-gate b,.lg-tl-weigh b{visibility:hidden}
 .pf-page .lg-band{font-size:14.5px;padding:12px 16px}
}

/* phones: the capability tabs run in one row that scrolls sideways (the open tab is scrolled into view), and the visit
   record folds every block to its heading except the one the open swipe card lights */
@media(max-width:800px){
 .pf-page .lg-caps .pe-cap-nav{flex-wrap:nowrap;justify-content:flex-start;margin:0 -24px 8px;padding:4px 24px 6px;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 40px),transparent);mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 40px),transparent)}
 .lg-caps .pe-cap-nav::-webkit-scrollbar{display:none}
 .lg-caps .pe-cap-nav a{flex:none;white-space:nowrap}
 .lg-rb-in{display:grid;grid-template-rows:1fr;transition:grid-template-rows .35s}
 .lg-rb-in>div{min-height:0;overflow:hidden}
 .lg-rec-grid:has(.lg-qs.pe-swipe) .lg-rb-in{grid-template-rows:0fr}
 .lg-rec-grid:has(.lg-qs.pe-swipe) .lg-rb>small{margin-bottom:0;transition:margin-bottom .35s}
 .lg-rec-grid:has(.lg-q-gate.is-on) .lg-rb-gate .lg-rb-in,.lg-rec-grid:has(.lg-q-weigh.is-on) .lg-rb-weigh .lg-rb-in,
 .lg-rec-grid:has(.lg-q-yard.is-on) .lg-rb-yard .lg-rb-in,.lg-rec-grid:has(.lg-q-exit.is-on) .lg-rb-exit .lg-rb-in{grid-template-rows:1fr}
 .lg-rec-grid:has(.lg-q-gate.is-on) .lg-rb-gate>small,.lg-rec-grid:has(.lg-q-weigh.is-on) .lg-rb-weigh>small,
 .lg-rec-grid:has(.lg-q-yard.is-on) .lg-rb-yard>small,.lg-rec-grid:has(.lg-q-exit.is-on) .lg-rb-exit>small{margin-bottom:8px}
}

/* ---- key capabilities: the screen keeps a readable layout at every width. On desktop it takes the wider column; wherever
   its column is narrow (small laptops, phones) the tables fold into two-line rows and the bay board into two columns, so
   nothing is squeezed or cut off (container queries on .pe-cap-viz) ---- */
.lg-caps .pe-cap-viz{container-type:inline-size}
@media(min-width:1101px){
 .lg-caps.is-tabs .pe-cap,.lg-caps.is-tabs .pe-cap:nth-of-type(even){grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
}
/* vehicles inside: plate and time on top, checkpoint dots and status below */
@container (max-width:580px){
 .lg-veh .lg-veh-h{display:none}
 .lg-veh li{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}
 .lg-veh li>div{grid-area:1/1}
 .lg-veh .lg-veh-t{grid-area:1/2;justify-self:end;align-self:start}
 .lg-veh .lg-dots{grid-area:2/1}
 .lg-veh .dk-pill{grid-area:2/2;justify-self:end}
}
/* phones: the dots get the full width and the status sits under them */
@container (max-width:400px){
 .lg-veh .lg-dots{grid-area:2/1/3/3}
 .lg-veh .dk-pill{grid-area:3/1;justify-self:start}
}
/* weighments: vehicle and net weight on top, ticket, gross and tare below */
@container (max-width:500px){
 .lg-wt .lg-veh-h{display:none}
 .lg-wt li{grid-template-columns:auto auto auto;justify-content:space-between;gap:4px 10px;font-size:11.5px;white-space:nowrap}
 .lg-wt li>span:nth-child(2){grid-area:1/1/2/3;white-space:normal}
 .lg-wt li>strong{grid-area:1/3;align-self:start}
 .lg-wt li>strong:before,.lg-wt li>span:nth-child(n+3):before{font-size:10.5px;font-weight:600;color:#858A9B}
 .lg-wt li>strong:before{content:"Net "}
 .lg-wt li>span:nth-child(3):before{content:"Gross "}
 .lg-wt li>span:nth-child(4):before{content:"Tare "}
 .lg-wt li>b{grid-area:2/1;font-size:11px;color:#858A9B}
 .lg-wt li>span:nth-child(3){grid-area:2/2;text-align:left}
 .lg-wt li>span:nth-child(4){grid-area:2/3}
 .lg-bays{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* small phones: the ticket number steps out so gross and tare stay on one line */
@container (max-width:300px){
 .lg-wt li{grid-template-columns:auto auto}
 .lg-wt li>span:nth-child(2){grid-area:1/1}
 .lg-wt li>strong{grid-area:1/2}
 .lg-wt li>b{display:none}
 .lg-wt li>span:nth-child(3){grid-area:2/1}
 .lg-wt li>span:nth-child(4){grid-area:2/2}
}
