/* Blog: Zoho CRM sales pipeline (.pbsp-) */
.pbsp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.pbsp-hero__copy { min-width: 0; }
.pbsp-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 18px 0 0; font: 500 14px/1.4 var(--f-body); color: #64748B; }
.pbsp-meta span:not(:last-child)::after { content: "·"; margin: 0 10px; color: #94A3B8; }

/* hero: stage sheet */
.pbsp-sheet { position: relative; margin: 0; min-width: 0; padding: 18px 18px 14px; border-radius: 22px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 34px 64px -40px rgba(8,34,56,.6); overflow: hidden; }
.pbsp-sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #1D3F8F, #00A3D9, #00B2A9, #3FB97A); }
.pbsp-sheet__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 4px 2px 12px; border-bottom: 1px dashed #E2E8F0; font: 700 15px/1.3 var(--f-display); color: #082238; }
.pbsp-sheet__top span { font: 600 11.5px/1.6 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #64748B; }
.pbsp-sheet__rows { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.pbsp-sheet__rows li { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 42px 84px; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: #F8FAFC; font: 600 13.5px/1.3 var(--f-body); color: #082238; opacity: 0; transform: translateY(8px); animation: pbsp-in .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
.pbsp-sheet__n { min-width: 0; overflow-wrap: anywhere; }
.pbsp-sheet__bar { position: relative; height: 8px; border-radius: 99px; background: #E2E8F0; overflow: hidden; }
.pbsp-sheet__bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--sp) * 1%); border-radius: inherit; background: linear-gradient(90deg, #00A3D9, #00B2A9); transform-origin: left; transform: scaleX(0); animation: pbsp-grow .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 90ms + 350ms); }
.pbsp-sheet__pc { text-align: right; font: 700 13px/1 var(--f-display); color: #0A6FA8; }
.pbsp-cat { justify-self: start; padding: 4px 8px; border-radius: 999px; background: #E6F4FB; color: #0A5C8A; font: 700 11px/1 var(--f-body); white-space: nowrap; }
.pbsp-cat--c { background: #FFF1D0; color: #8A5A00; }
.pbsp-cat--w { background: #DDF4E6; color: #15803D; }
.pbsp-cat--l { background: #F1F5F9; color: #64748B; }
.pbsp-sheet__rows li.is-won { background: #F0FAF4; }
.pbsp-sheet__rows li.is-won .pbsp-sheet__bar i { background: #3FB97A; }
.pbsp-sheet__rows li.is-lost { background: #fff; border: 1px dashed #E2E8F0; color: #64748B; }
.pbsp-sheet__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #E2E8F0; font: 500 13px/1.45 var(--f-body); color: #475569; }
.pbsp-sheet__chip { padding: 5px 10px; border-radius: 999px; background: #082238; color: #FFB81C; font: 700 11px/1 var(--f-body); letter-spacing: .04em; }
@keyframes pbsp-in { to { opacity: 1; transform: none; } }
@keyframes pbsp-grow { to { transform: scaleX(1); } }

/* article */
.pbsp-art { padding-top: clamp(24px, 4vw, 48px); }
.pbsp-art__grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.pbsp-body { max-width: 74ch; font-size: 17.5px; line-height: 1.72; color: #334155; min-width: 0; }
.pbsp-body--wide { max-width: 980px; }
.pbsp-body--wide > p, .pbsp-body--wide > .pbsp-h2, .pbsp-body--wide > .pbsp-h3, .pbsp-body--wide > .pbsp-list { max-width: 74ch; }
.pbsp-art--2 .pbsp-body + .pbsp-deal { margin-top: 8px; margin-bottom: 8px; }
.pbsp-body > p { margin: 0 0 18px; }
.pbsp-body a { color: #0A6FA8; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pbsp-body b { color: #082238; }
.pbsp-h2 { margin: 56px 0 0; font: 700 clamp(25px, 1rem + 1.2vw, 33px)/1.25 var(--f-display); letter-spacing: -.02em; color: #082238; scroll-margin-top: 100px; text-wrap: balance; }
.pbsp-h2:first-child { margin-top: 0; }
.pbsp-h3 { margin: 32px 0 10px; font: 700 clamp(19px, .9rem + .5vw, 22px)/1.3 var(--f-display); letter-spacing: -.01em; color: #082238; padding-bottom: .08em; }
.pbsp-body .pbsp-answer { position: relative; max-width: 74ch; margin: 30px 0 22px; padding: 22px 20px 16px; border-radius: 14px; background: #fff; border: 1.5px solid #BFE3E0; font-weight: 500; color: #082238; }
.pbsp-answer::before { content: "Quick answer"; position: absolute; top: -11px; left: 16px; padding: 3px 10px; border-radius: 999px; background: #082238; color: #fff; font: 700 11px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; }

.pbsp-steps { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: st; }
.pbsp-steps li { counter-increment: st; position: relative; padding: 14px 16px 14px 62px; border-radius: 14px; background: #fff; border: 1px solid #E2E8F0; }
.pbsp-steps li::before { content: counter(st); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #082238; color: #FFB81C; font: 800 14px/1 var(--f-display); }
.pbsp-checks { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.pbsp-checks li { position: relative; padding: 14px 16px 14px 48px; border-radius: 14px; background: #F3FAF9; border: 1px solid #CDEBE8; }
.pbsp-checks li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 14px; height: 8px; border-left: 2.5px solid #00897F; border-bottom: 2.5px solid #00897F; transform: rotate(-45deg); }
.pbsp-list { margin: 0 0 20px; padding: 0 0 0 4px; list-style: none; display: grid; gap: 10px; }
.pbsp-list li { padding-left: 20px; position: relative; }
.pbsp-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: #00A3D9; transform: rotate(45deg); }

.pbsp-side { position: sticky; top: 100px; }
.pbsp-side__card { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid #E2E8F0; }
.pbsp-side__t { margin: 0 0 10px; font: 700 12px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #64748B; }
.pbsp-side ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: s; }
.pbsp-side li { counter-increment: s; }
.pbsp-side li a { display: flex; gap: 10px; padding: 7px 6px; border-radius: 9px; color: #082238; font: 600 14.5px/1.35 var(--f-body); text-decoration: none; }
.pbsp-side li a::before { content: counter(s, decimal-leading-zero); flex: none; font: 700 12px/1.6 var(--f-display); color: #00A3D9; }
.pbsp-side li a:hover, .pbsp-side li a:focus-visible { background: #F3F7F9; }

/* table */
.pbsp-tw { margin: 0 0 20px; overflow-x: auto; border-radius: 16px; border: 1px solid #E2E8F0; }
.pbsp-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; background: #fff; }
.pbsp-table th, .pbsp-table td { padding: 11px 13px; text-align: left; border-bottom: 1px solid #F1F5F9; vertical-align: top; }
.pbsp-table thead th { background: #082238; color: #fff; font: 600 12.5px/1.35 var(--f-body); }
.pbsp-table tbody th { font-weight: 700; color: #082238; white-space: nowrap; }
.pbsp-table tr.is-key { background: #F3FAF9; }
.pbsp-table tr.is-key td:nth-child(3), .pbsp-table tr.is-key td:nth-child(5) { font-weight: 700; color: #07605E; }

/* stage builder */
.pbsp-tool { margin-top: 28px; border-radius: 24px; background: #fff; border: 1px solid #E2E8F0; box-shadow: 0 30px 60px -46px rgba(8,34,56,.55); overflow: hidden; }
.pbsp-tool__pick { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px; background: #F3F7F9; border-bottom: 1px solid #E2E8F0; }
.pbsp-tool__pick button { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid #CBD5E1; background: #fff; color: #082238; font: 600 14.5px/1.2 var(--f-body); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.pbsp-tool__pick button:hover { border-color: #00A3D9; }
.pbsp-tool__pick button[aria-checked="true"] { background: #082238; border-color: #082238; color: #fff; }
.pbsp-tool__pick button:focus-visible, .pbsp-st__v input:focus-visible { outline: 3px solid #FFB81C; outline-offset: 2px; }
.pbsp-tool__body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.pbsp-tool__list { padding: 20px; min-width: 0; }
.pbsp-tool__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 12px; font: 700 16px/1.3 var(--f-display); color: #082238; }
.pbsp-tool__cap span { font: 600 12px/1.6 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: #64748B; }
.pbsp-tool__stages { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: sp; }
.pbsp-tool__stages li { counter-increment: sp; display: grid; grid-template-columns: 30px minmax(0, 1fr) 52px 130px; grid-template-areas: "c n p v" "c x p v"; align-items: center; column-gap: 12px; row-gap: 2px; padding: 11px 12px; border-radius: 14px; border: 1px solid #E2E8F0; background: #FBFDFE; animation: pbsp-in .35s ease forwards; opacity: 0; transform: translateY(6px); animation-delay: calc(var(--i, 0) * 50ms); }
.pbsp-tool__stages li::before { content: counter(sp); grid-area: c; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #E6F4FB; color: #0A5C8A; font: 800 13px/1 var(--f-display); }
.pbsp-st__n { grid-area: n; font: 700 15px/1.3 var(--f-display); color: #082238; }
.pbsp-st__x { grid-area: x; font: 400 13.5px/1.45 var(--f-body); color: #475569; }
.pbsp-st__p { grid-area: p; text-align: right; font: 800 15px/1 var(--f-display); color: #0A6FA8; }
.pbsp-st__v { grid-area: v; }
.pbsp-st__v input { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid #CBD5E1; background: #fff; font: 600 15px/1.2 var(--f-body); color: #082238; }
.pbsp-tool__out { padding: 24px 22px; background: #082238; color: #CBD5E1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pbsp-tool__k { margin: 8px 0 0; font: 600 12px/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; }
.pbsp-tool__big { margin: 0; font: 800 clamp(30px, 1.2rem + 1.6vw, 40px)/1.1 var(--f-display); color: #fff; letter-spacing: -.02em; overflow-wrap: anywhere; }
.pbsp-tool__big--w { color: #FFB81C; }
.pbsp-tool__meter { height: 10px; margin: 12px 0 4px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.pbsp-tool__meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #00B2A9, #FFB81C); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.pbsp-tool__note { margin: 8px 0 0; font: 400 14px/1.55 var(--f-body); color: #CBD5E1; }
.pbsp-tool__go { margin-top: auto; align-self: flex-start; }
.pbsp-tool__out .pbsp-tool__go { margin-top: 18px; }

@media (max-width: 1000px) {
  .pbsp-hero__grid, .pbsp-art__grid, .pbsp-tool__body { grid-template-columns: minmax(0, 1fr); }
  .pbsp-side { display: none; }
}
@media (max-width: 640px) {
  .pbsp-body { font-size: 16.5px; }
  .pbsp-sheet { padding: 16px 12px 12px; }
  .pbsp-sheet__rows li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n pc" "bar cat"; row-gap: 6px; }
  .pbsp-sheet__n { grid-area: n; } .pbsp-sheet__pc { grid-area: pc; } .pbsp-sheet__bar { grid-area: bar; align-self: center; } .pbsp-cat { grid-area: cat; justify-self: end; }
  .pbsp-tool__pick { padding: 14px; }
  .pbsp-tool__pick button { flex: 1 1 calc(50% - 8px); padding: 10px 12px; font-size: 14px; }
  .pbsp-tool__list { padding: 16px 12px; }
  .pbsp-tool__stages li { grid-template-columns: 28px minmax(0, 1fr) 46px; grid-template-areas: "c n p" "c x x" "v v v"; row-gap: 6px; }
  .pbsp-steps li { padding-left: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .pbsp-sheet__rows li, .pbsp-tool__stages li { animation: none; opacity: 1; transform: none; }
  .pbsp-sheet__bar i { animation: none; transform: none; }
  .pbsp-tool__meter i { transition: none; }
}
