/* ProcurementVMS blog article layout.
   Loaded after style.css. Every selector is prefixed .pb- so nothing collides
   with the global .hero / .breadcrumb / .nav rules. */

.pb-page { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 72px; }
.pb-container { max-width: 1180px; }

.pb-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pb-breadcrumb a { color: var(--text-muted); }
.pb-breadcrumb a:hover { color: var(--accent); }
.pb-breadcrumb [aria-current] { color: var(--text-body); }

/* hero */
.pb-hero { max-width: 860px; padding-bottom: 36px; margin-bottom: 40px; border-bottom: 1px solid var(--border-subtle); }
.pb-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pb-pill { font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); background: var(--bg-overlay); color: var(--text-body); border: 1px solid var(--border-subtle); }
.pb-pill-accent { background: rgba(45,212,191,0.14); color: var(--accent); border-color: transparent; }
.pb-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -0.03em; color: var(--clr-white); }
.pb-dek { font-size: 1.15rem; color: var(--text-body); line-height: 1.65; margin: 18px 0 22px; max-width: 760px; }
.pb-byline { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.pb-byline strong { color: var(--text-body); font-weight: 600; }
.pb-byline-meta { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.pb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--clr-navy-950); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }

/* two-column layout */
.pb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.pb-article { min-width: 0; max-width: 760px; }
.pb-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 20px; }

/* article typography */
.pb-article h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.2; color: var(--clr-white); margin: 52px 0 16px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.pb-article h3 { font-size: 1.22rem; line-height: 1.3; color: var(--clr-white); margin: 32px 0 10px; letter-spacing: -0.015em; }
.pb-article p { font-size: 1.05rem; line-height: 1.8; color: var(--text-body); margin-bottom: 18px; }
.pb-article a:not(.btn):not(.pb-related-card) { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(45,212,191,0.4); text-underline-offset: 3px; }
.pb-article a:not(.btn):not(.pb-related-card):hover { text-decoration-color: var(--accent); }
.pb-article strong { color: var(--clr-white); }
.pb-article ul, .pb-article ol { margin: 0 0 22px 1.3rem; color: var(--text-body); }
.pb-article ul { list-style: disc; }
.pb-article ol { list-style: decimal; }
.pb-article li { font-size: 1.03rem; line-height: 1.75; margin-bottom: 10px; padding-left: 4px; }
.pb-article li::marker { color: var(--accent); }

.pb-callout { border-left: 3px solid var(--accent); background: var(--bg-raised); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 18px 22px; margin: 26px 0; color: var(--text-body); font-size: 1rem; line-height: 1.75; }
.pb-callout strong { color: var(--clr-white); }

.pb-table-wrap { overflow-x: auto; margin: 24px 0 28px; border: 1px solid var(--border-subtle); border-radius: var(--r-md); }
.pb-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.pb-table th { text-align: left; background: var(--bg-overlay); color: var(--clr-white); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--border-subtle); }
.pb-table td { padding: 12px 14px; color: var(--text-body); border-bottom: 1px solid var(--border-subtle); vertical-align: top; line-height: 1.6; }
.pb-table tr:last-child td { border-bottom: none; }
.pb-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* quick answer */
.pb-tldr { background: linear-gradient(160deg, rgba(45,212,191,0.10), var(--bg-raised) 70%); border: 1px solid var(--border-accent); border-radius: var(--r-lg); padding: 22px 26px; margin: 0 0 32px !important; }
.pb-tldr-label, .pb-takeaways-label, .pb-toc-label { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 8px !important; letter-spacing: 0.01em; }
.pb-tldr p:last-child { margin-bottom: 0; color: var(--clr-slate-100); }

/* table of contents */
.pb-toc { background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 20px 22px; }
.pb-toc ol, .pb-toc-mobile ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.pb-toc li, .pb-toc-mobile li { counter-increment: toc; font-size: 13.5px; line-height: 1.45; margin: 0 0 10px; padding: 0; display: flex; gap: 8px; }
.pb-toc li::before, .pb-toc-mobile li::before { content: counter(toc); color: var(--text-muted); font-size: 12px; min-width: 16px; padding-top: 1px; }
.pb-toc a, .pb-toc-mobile a { color: var(--text-body) !important; text-decoration: none !important; }
.pb-toc a:hover, .pb-toc-mobile a:hover { color: var(--accent) !important; }
.pb-toc-mobile { display: none; background: var(--bg-raised); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: 14px 18px; margin: 18px 0 0; }
.pb-toc-mobile summary { cursor: pointer; font-weight: 600; color: var(--clr-white); font-size: 14px; }
.pb-toc-mobile ol { margin-top: 12px; }

.pb-side-cta { border: 1px solid var(--border-accent); border-radius: var(--r-lg); padding: 20px 22px; background: var(--bg-raised); }
.pb-side-cta .pb-side-title { font-family: var(--ff-display); font-weight: 700; color: var(--clr-white); font-size: 1.05rem; line-height: 1.3; margin-bottom: 8px; }
.pb-side-cta p { font-size: 13.5px; color: var(--text-body); line-height: 1.6; margin-bottom: 14px; }

/* inline CTA */
.pb-cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--bg-raised); border: 1px solid var(--border-accent); border-radius: var(--r-lg); padding: 22px 24px; margin: 36px 0; }
.pb-cta-inline p { margin: 0 !important; }
.pb-cta-eyebrow { font-size: 13px !important; color: var(--accent) !important; font-weight: 600; }
.pb-cta-title { font-family: var(--ff-display); color: var(--clr-white) !important; font-size: 1.12rem !important; font-weight: 700; line-height: 1.35 !important; max-width: 460px; }

/* takeaways */
.pb-takeaways { margin: 48px 0 8px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--bg-raised); border: 1px solid var(--border-subtle); }
.pb-takeaways ul { margin-bottom: 0; }
.pb-takeaways li:last-child { margin-bottom: 0; }

/* FAQ spacing inside article */
.pb-faq .faq-wrap { max-width: none; }
.pb-faq .faq-btn { color: var(--clr-white); }

/* related */
.pb-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.pb-related-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--r-md); background: var(--bg-raised); border: 1px solid var(--border-subtle); transition: border-color var(--ease-fast); }
.pb-related-card:hover { border-color: var(--border-accent); }
.pb-rel-kicker { font-size: 12px; color: var(--text-muted); }
.pb-rel-title { font-family: var(--ff-display); font-weight: 600; color: var(--clr-white); font-size: 1rem; line-height: 1.35; }

/* end CTA */
.pb-endcta { margin-top: 56px; padding: 34px 32px; border-radius: var(--r-xl); background: linear-gradient(150deg, rgba(45,212,191,0.12), var(--bg-raised) 65%); border: 1px solid var(--border-accent); }
.pb-endcta h2 { margin-top: 0 !important; }
.pb-endcta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 1024px) {
  .pb-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pb-sidebar { display: none; }
  .pb-toc-mobile { display: block; }
  .pb-article { max-width: none; }
}
@media (max-width: 640px) {
  .pb-page { padding-top: calc(var(--nav-h) + 18px); }
  .pb-related-grid { grid-template-columns: 1fr; }
  .pb-article p { font-size: 1rem; }
  .pb-endcta { padding: 26px 20px; }
  .pb-cta-inline .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .pb-related-card { transition: none; } }

/* body overflow-x:hidden in style.css turns body into a scroll container and disables sticky; clip keeps the no-horizontal-scroll behavior without that side effect */
html, body { overflow-x: clip; }
.pb-sidebar { align-self: start; }
