/* ===== Process lines (segment pages) ===== */
.pl-ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-section + .pl-section { padding-top: 0; }
.pl-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.pl-head h2 { margin: 0; }
.pl-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--tint); }
.pl-tabs button { border: 0; background: transparent; padding: 10px 18px; font: 650 .9rem/1 var(--font); color: var(--ink-2); cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .16s var(--ease-out); }
.pl-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .pl-tabs button:not([aria-selected="true"]):hover { color: var(--ink); background: #fff; } }
.pl-tabs button:active { transform: scale(.97); }
.pl-intro { color: var(--on-machine-2); max-width: 70ch; margin: 0 0 30px; }

.pl { background: var(--machine); color: var(--on-machine); padding: clamp(22px, 3.5vw, 44px); position: relative; overflow: hidden; isolation: isolate; }

.pl-track { display: grid; grid-template-columns: 140px 1fr 140px; align-items: start; gap: 0 12px; position: relative; }
.pl-end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; position: relative; z-index: 1; }
.pl-end__badge { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--machine-2); border: 0; color: #fff; }
.pl-end__badge .pl-ico { width: 30px; height: 30px; }
.pl-end--out .pl-end__badge { background: var(--accent); border: 0; }
.pl-end__label { font-size: .9rem; line-height: 1.35; color: var(--on-machine); }
.pl-end__label small { display: block; font-size: .875rem; color: var(--on-machine-2); margin-bottom: 3px; }

.pl-rail { position: absolute; left: 70px; right: 70px; top: 36px; height: 4px; background: var(--machine-2); }
.pl-rail__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.pl-token { position: absolute; left: -9px; top: -7px; width: 18px; height: 18px; border-radius: 50%; background: #fff; outline: 5px solid var(--accent); opacity: 0; z-index: 2; }

.pl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; position: relative; z-index: 1; }
.pl-step { width: 100%; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font: inherit; }
.pl-step__node { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--machine-2); border: 2px solid var(--machine-2); color: var(--on-machine-2); transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out), transform .16s var(--ease-out); }
.pl-step__node .pl-ico { width: 30px; height: 30px; }
.pl-step.is-lit .pl-step__node { border-color: var(--accent); color: #fff; }
.pl-step.is-active .pl-step__node { background: #fff; border-color: #fff; color: var(--ink); }
.pl-step__label { font-size: .92rem; line-height: 1.3; font-weight: 600; color: var(--on-machine-2); max-width: 16ch; transition: color .2s var(--ease-out); }
.pl-step.is-active .pl-step__label { color: #fff; }
@media (hover: hover) and (pointer: fine) { .pl-step:hover .pl-step__node { border-color: #fff; color: #fff; } .pl-step.is-active:hover .pl-step__node { color: var(--ink); } }
.pl-step:active .pl-step__node { transform: scale(.95); }

.pl-detail { margin-top: 34px; padding-top: 30px; }
.pl-detail__step { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.pl-detail h3 { font-size: var(--step-2); font-stretch: 80%; margin: 8px 0 10px; color: #fff; }
.pl-detail p { color: var(--on-machine); margin: 0; }
.pl-machines { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pl-machine { margin: 0; background: #fff; color: var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.pl-machine__img { aspect-ratio: 4 / 3; background: var(--paper); display: grid; place-items: center; }
.pl-machine__img img { width: 100%; height: 100%; object-fit: contain; }
.pl-machine__img.is-empty { color: var(--ink-2); gap: 6px; align-content: center; justify-items: center; font-size: .875rem; }
.pl-machine__img.is-empty .pl-ico { width: 44px; height: 44px; }
.pl-machine figcaption { padding: 14px 16px 18px; display: grid; gap: 4px; }
.pl-machine strong { font-size: var(--step-1); font-weight: 750; line-height: 1.15; }
.pl-machine figcaption span { font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.pl-machine__video { justify-self: start; margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pl-machine__video::before { content: ""; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pl-machine__video:hover { filter: brightness(1.08); }

@media (max-width: 900px) {
  .pl-track { grid-template-columns: 1fr; gap: 16px; }
  .pl-end { flex-direction: row; text-align: left; }
  .pl-end__badge, .pl-step__node { width: 60px; height: 60px; flex: none; }
  .pl-rail { left: 28px; right: auto; top: 30px; bottom: 30px; width: 4px; height: auto; }
  .pl-rail__fill { background: var(--accent); transform: scaleY(0); transform-origin: top center; }
  .pl-token { left: -7px; top: -9px; }
  .pl-steps { grid-template-columns: 1fr; gap: 16px; }
  .pl-step { flex-direction: row; text-align: left; }
  .pl-step__label { max-width: none; }
  .pl-detail__step { grid-template-columns: 1fr; gap: 20px; }
}

[hidden] { display: none !important; }

/* Long lines scroll sideways instead of squeezing labels */
.pl-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; padding-bottom: 8px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; }
.pl-track { min-width: calc(280px + var(--n) * 116px); }
@media (max-width: 900px) { .pl-scroll { overflow: visible; margin: 0; padding: 0; } .pl-track { min-width: 0; } }
