/* === Pipeline "bulb chain" (shared _PipelineChain partial: staff event page + customer portal) ===
   Each step is a coloured bulb that tapers into its neighbours. The coloured shape is a fixed base;
   on hover only the white disc, icon and check pop up. */
.pc-chain { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(var(--pc-n, 8), minmax(0, 1fr)); }
.pc-step { position: relative; text-align: center; }
.pc-hit { display: block; color: inherit; text-decoration: none; outline: none; }
.pc-hit:hover { color: inherit; text-decoration: none; }
.pc-num { display: block; font-size: clamp(12px, 1.4vw, 19px); font-weight: 800; color: #9ca3af; margin-bottom: 2px; transition: color .25s, transform .3s cubic-bezier(.3,1.8,.5,1); }
.pc-blob { position: relative; display: block; container-type: inline-size; margin-right: -1px; }
.pc-base { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(4px 6px 5px rgba(0,0,0,.18)); transition: filter .3s; }
.pc-shape { fill: var(--c); }
.pc-shade { fill: rgba(0,0,0,.18); }
.pc-sock { fill: rgba(0,0,0,.16); transition: fill .3s; }
.pc-disc { position: absolute; left: 23.5%; top: 12.6%; width: 53%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; transition: transform .45s cubic-bezier(.2,1.5,.4,1), box-shadow .3s; }
.pc-icon { font-size: 22cqw; line-height: 1; color: #6b7280; display: inline-block; transition: transform .65s cubic-bezier(.3,1.6,.4,1), color .3s; }
.pc-badge { position: absolute; left: -2%; bottom: 0; width: 28%; aspect-ratio: 1; border-radius: 50%; border: max(2px, .8cqw) solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12cqw; line-height: 1; }
.pc-badge.ok { background: #16a34a; }
.pc-badge.no { background: #dc2626; }
.pc-ring { display: block; width: clamp(11px, 1.2vw, 17px); aspect-ratio: 1; margin: 8px auto 0; border-radius: 50%; border: 3px solid #2b2b2b; background: #fff; transition: all .3s cubic-bezier(.3,1.8,.5,1); }
.pc-lbl { display: inline-block; position: relative; margin-top: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(11px, 1.15vw, 15px); color: var(--c); transition: color .25s; }
.pc-lbl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; border-radius: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.pc-hint { display: block; margin-top: 4px; font-size: clamp(10.5px, .95vw, 12.5px); color: var(--text-muted, #6b7280); }
.pc-step.active .pc-hint { color: var(--c); font-weight: 700; }
.pc-gates { list-style: none; padding: 0; margin: 9px auto 0; display: inline-flex; flex-direction: column; gap: 3px; text-align: left; }
.pc-gates li { display: flex; align-items: center; gap: 5px; font-size: clamp(10px, .9vw, 12px); color: var(--text-secondary, #6b7280); white-space: nowrap; }
.pc-gates li a { display: flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; }
.pc-gates li a:hover span { text-decoration: underline; }
.pc-gates li.met { color: var(--text-primary, #111827); }
.pc-gates li.met i { color: #16a34a; }
.pc-gates li.open i { color: #c4c8d0; }

/* states */
.pc-step.pending .pc-base { filter: drop-shadow(4px 6px 5px rgba(0,0,0,.08)); }
.pc-step.pending .pc-shape { fill: #d4d7dd; }
.pc-step.pending:hover .pc-shape, .pc-step.pending:focus-within .pc-shape { fill: var(--c); }
.pc-step.pending .pc-lbl { color: #a3a8b2; }
.pc-step.pending:hover .pc-base, .pc-step.pending:focus-within .pc-base { filter: drop-shadow(4px 6px 5px rgba(0,0,0,.18)); }
.pc-step.pending:hover .pc-lbl, .pc-step.pending:focus-within .pc-lbl { color: var(--c); }
.pc-step.blocked .pc-base { filter: grayscale(.6) drop-shadow(4px 6px 5px rgba(220,38,38,.25)); }
.pc-step.active .pc-icon, .pc-step.inprogress .pc-icon, .pc-step.finale .pc-icon { color: var(--c); }
.pc-step.active .pc-num { visibility: hidden; }
.pc-here { position: absolute; top: -27px; left: 50%; transform: translateX(-50%); z-index: 3; background: #111827; color: #c6ff2e; font-size: 9.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; white-space: nowrap; box-shadow: 0 6px 14px rgba(0,0,0,.25); animation: pc-bob 1.6s ease-in-out infinite; }
@keyframes pc-bob { 50% { transform: translate(-50%, -5px); } }
.pc-pulse { position: absolute; left: 16.7%; top: 2.9%; width: 66.7%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; animation: pc-pulse 1.9s ease-out infinite; }
@keyframes pc-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); } 100% { box-shadow: 0 0 0 20px transparent; } }

/* hover / keyboard focus */
.pc-step:hover, .pc-step:focus-within { z-index: 6; }
.pc-step:hover .pc-disc, .pc-hit:focus-visible .pc-disc { transform: translateY(-9%) scale(1.14); box-shadow: 0 12px 10px -2px rgba(0,0,0,.4); }
.pc-step:hover .pc-icon, .pc-hit:focus-visible .pc-icon { transform: rotate(360deg) scale(1.1); color: var(--c); }
.pc-step:hover .pc-sock { fill: rgba(0,0,0,.34); }
.pc-step:hover .pc-num, .pc-hit:focus-visible .pc-num { color: var(--c); transform: translateY(-3px) scale(1.2); }
.pc-step:hover .pc-ring, .pc-hit:focus-visible .pc-ring { background: var(--c); border-color: var(--c); transform: scale(1.35); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 25%, transparent); }
.pc-step:hover .pc-lbl::after, .pc-hit:focus-visible .pc-lbl::after { transform: scaleX(1); }
.pc-step.finale:hover .pc-disc { transform: translateY(-10%) scale(1.18) rotate(-6deg); }

.pc-tip { position: absolute; left: 50%; top: calc(100% + 2px); width: 220px; background: #fff; border-radius: 12px; padding: 12px 14px; text-align: left; box-shadow: 0 18px 40px rgba(0,0,0,.28); border-top: 5px solid var(--c); opacity: 0; transform: translate(-50%, 12px) scale(.92); pointer-events: none; transition: opacity .22s, transform .3s cubic-bezier(.2,1.3,.4,1); z-index: 10; }
.pc-step:hover .pc-tip, .pc-step:focus-within .pc-tip { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.pc-step:first-child .pc-tip { left: 0; transform: translate(0, 12px) scale(.92); }
.pc-step:first-child:hover .pc-tip, .pc-step:first-child:focus-within .pc-tip { transform: none; }
.pc-step:last-child .pc-tip { left: auto; right: 0; transform: translate(0, 12px) scale(.92); }
.pc-step:last-child:hover .pc-tip, .pc-step:last-child:focus-within .pc-tip { transform: none; }
/* Hover card above the node (when a button sits just under the chain) */
.pc-step.tip-up .pc-tip { top: auto; bottom: calc(100% - 6px); transform: translate(-50%, -12px) scale(.92); }
.pc-step.tip-up:hover .pc-tip, .pc-step.tip-up:focus-within .pc-tip { transform: translate(-50%, 0) scale(1); }
.pc-step.tip-up:last-child .pc-tip { transform: translate(0, -12px) scale(.92); }
.pc-step.tip-up:last-child:hover .pc-tip, .pc-step.tip-up:last-child:focus-within .pc-tip { transform: none; }
.pc-tip b { display: block; color: var(--c); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.pc-st { font-size: 12.5px; color: var(--text-secondary, #6b7280); margin: 2px 0 4px; }
.pc-th { font-size: 13px; color: var(--text-primary, #111827); font-weight: 600; }
.pc-go { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--c); text-decoration: none; }
.pc-go:hover { text-decoration: underline; color: var(--c); }
.pc-progress { height: 8px; border-radius: 99px; background: #eef0f4; overflow: hidden; margin: 14px 22px 0; }
.pc-progress i { display: block; height: 100%; border-radius: 99px; transition: width .6s cubic-bezier(.2,.9,.3,1); }
@media (prefers-reduced-motion: reduce) { .pc-chain * { animation: none !important; transition: none !important; } }
@media (max-width: 640px) { .pc-gates { display: none; } .pc-tip { display: none; } }

/* Landing page: keep all eight steps and their checkpoints readable on small screens by letting the row scroll sideways. */
@media (max-width: 900px) {
    .pc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
    .pc-scroll .pc-chain { min-width: 860px; }
    .pc-scroll .pc-gates { display: inline-flex !important; }
}
