/* pib-proof.css: case-study detail + partner quotes + earnings screenshots.
   Shared by /consulting (React: src/components/proof/*) and /facebook-consulting (static HTML generated by
   scripts/build-proof-html.py from src/data/proof/*.json). Uses the r2 brand tokens only. */
.r2-csl__port{margin:10px 0 0;font-size:15px;line-height:1.5;color:var(--t2)}

/* Partner quotes: orange featured panel, tinted dark cards and cream cards. Every card sets its own text colours so contrast holds on dark or cream sections (AA). */
.pq{--pq-ink:#0a0a0a;--pq-cream:#f5ecd6;--pq-amber:#e89b2a;display:grid;align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2vw,24px);margin-top:clamp(24px,3vw,40px)}
.pq__card{--pq-bg:linear-gradient(180deg,rgba(232,155,42,.16),rgba(232,155,42,.04) 62%),#181818;--pq-fg:#f5ecd6;--pq-bd:rgba(232,155,42,.28);--pq-bt:#e89b2a;--pq-stat:#e89b2a;--pq-chip:linear-gradient(135deg,#f7d89a,#e89b2a);--pq-idb:#e89b2a;position:relative;overflow:hidden;margin:0;display:flex;flex-direction:column;gap:14px;padding:clamp(22px,2.4vw,32px);border:1px solid var(--pq-bd);border-top:4px solid var(--pq-bt);border-radius:16px;background:var(--pq-bg);color:var(--pq-fg)}
.pq__card--c{--pq-bg:#f5ecd6;--pq-fg:#0a0a0a;--pq-bd:rgba(10,10,10,.12);--pq-bt:#c47a12;--pq-stat:#9a5a05;--pq-chip:linear-gradient(135deg,#e89b2a,#c47a12);--pq-idb:#7a4604}
.pq__card--feat{--pq-fg:#0a0a0a;--pq-idb:#0a0a0a}
.pq__card--feat{grid-column:1/-1!important;flex-direction:column;padding:clamp(26px,3.4vw,52px);padding-left:clamp(26px,3.4vw,52px);background:linear-gradient(135deg,#f0a53a,#e89b2a 55%,#d98b1c);border:0;border-radius:20px;color:var(--pq-ink);box-shadow:0 18px 50px -24px rgba(232,155,42,.55)}
.pq__mark{position:absolute;top:-.12em;right:.12em;font:700 clamp(110px,14vw,190px)/1 Georgia,"Times New Roman",serif;color:currentColor;opacity:.14;pointer-events:none;user-select:none}
.pq__card--feat .pq__mark{opacity:.2;font-size:clamp(150px,20vw,280px)}
.pq__card blockquote{position:relative;margin:0;padding:0;border:0}
.pq__card blockquote p{margin:0;font-size:17px;line-height:1.55;color:inherit}
.pq__card--feat blockquote p{font-size:clamp(18px,1.9vw,24px);line-height:1.5;font-weight:500;max-width:62ch;color:var(--pq-ink)}
.pq__stat{position:relative;margin:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;color:inherit}
.pq__stat b{font:800 clamp(36px,4vw,52px)/1 var(--display,inherit);letter-spacing:-.02em;color:var(--pq-stat)}

.pq__stat span{font:600 12px/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;opacity:.82}
.pq__who{position:relative;margin:auto 0 0;padding-top:6px;display:flex;align-items:center;gap:12px;color:inherit}
.pq__chip{flex:0 0 auto;display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--pq-chip);color:#0a0a0a;font:800 18px/1 var(--display,inherit)}

.pq__chip--logo{width:auto;height:42px;padding:0 14px;border-radius:999px;background:#0a0a0a}
.pq__chip--logo img{display:block;height:20px;width:auto}
.pq__id{display:flex;flex-direction:column;gap:2px;min-width:0}
.pq__id b{font:600 12px/1.4 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--pq-idb)}
.pq__id span{font-size:14px;line-height:1.4;opacity:.85}

.pq__card--feat .pq__id b{font:700 16px/1.3 var(--display,inherit);letter-spacing:0;text-transform:none;color:var(--pq-ink)}
.pq__card--feat .pq__id span{font-size:14px;opacity:1;color:#2b1a04}
.pq__shot{display:block;width:100%;height:auto;border-radius:10px;border:1px solid var(--line)}
/* Earnings screenshots: two labelled groups */
.es-group{margin-top:clamp(28px,3.4vw,48px)}
.es-group:first-of-type{margin-top:clamp(24px,3vw,40px)}
.es-group__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;padding-left:14px;border-left:4px solid var(--amber)}
.es-group__head h3{margin:0;font-size:clamp(20px,2.2vw,26px);line-height:1.2;letter-spacing:-.01em;color:var(--t1)}
.es-group__head p{margin:0;font-size:14px;line-height:1.5;color:var(--t3)}
.es{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,24px);margin-top:clamp(16px,2vw,24px);align-items:stretch}
.es__item{margin:0;display:flex;flex-direction:column;gap:10px}
.es__item img{display:block;width:100%;height:auto;aspect-ratio:var(--es-ar,4/3);object-fit:cover;object-position:top center;border-radius:12px;border:1px solid var(--line);background:#fff}
.es-group--website{--es-ar:1.6}.es-group--facebook{--es-ar:1.05}
.es__item figcaption{font-size:13px;line-height:1.5;color:var(--t3)}
.es__item figcaption b{display:block;font:600 11px/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--amber);margin-bottom:2px}
.pib-proof .r2-csl__typ{margin:clamp(24px,3vw,36px) 0 0;max-width:860px;font-size:13px;line-height:1.55;color:var(--t3)}
/* featured card plus an odd number of others (four quotes): the last card takes the full row instead of leaving a gap */
.pq__card--feat~.pq__card:last-child:nth-child(even){grid-column:1/-1}
@media (max-width:860px){.pq,.es{grid-template-columns:1fr}.pq__card--feat{grid-column:auto!important}.pq__card--c{--pq-bg:linear-gradient(180deg,rgba(232,155,42,.16),rgba(232,155,42,.04) 62%),#181818;--pq-fg:#f5ecd6;--pq-bd:rgba(232,155,42,.28);--pq-bt:#e89b2a;--pq-stat:#e89b2a;--pq-chip:linear-gradient(135deg,#f7d89a,#e89b2a);--pq-idb:#e89b2a}.pq__card--m{--pq-bg:#f5ecd6;--pq-fg:#0a0a0a;--pq-bd:rgba(10,10,10,.12);--pq-bt:#c47a12;--pq-stat:#9a5a05;--pq-chip:linear-gradient(135deg,#e89b2a,#c47a12);--pq-idb:#7a4604}.r2-csr__ms li{grid-template-columns:64px minmax(0,1fr)}}
/* The page-level trust line (.pib-trust) reuses the class name .pib-proof for a small flex line with 80% opacity and a dot separator. Neutralise that for these full sections. */
section.pib-proof{display:block;margin:0;opacity:1;font-size:inherit;line-height:inherit}
section.pib-proof span+span::before{content:none}

/* receipts then quotes: the two sections read as one flow, so use one moderate top padding instead of stacking two */
section.pib-proof#earnings-screenshots+section.pib-proof#partner-quotes{padding-top:clamp(48px,6vw,80px)}


/* Homepage quotes strip: home-v2.css has no brand tokens or .sec-head, so the strip carries its own. */
.hp-pq{--amber:#e89b2a;--t1:#f5ecd6;position:relative;padding:clamp(50px,6vw,88px) 0;color:var(--t1)}
.hp-pq .wrap{max-width:var(--wrap,1240px);margin:0 auto;padding:0 clamp(20px,3vw,40px)}
.hp-pq .eyebrow{margin:0 0 14px;font:600 11px/1.4 var(--mono);letter-spacing:.18em;text-transform:uppercase;color:var(--amber)}
.hp-pq .h2-sm{margin:0;font:800 clamp(30px,4vw,52px)/1.05 var(--display);letter-spacing:-.025em;color:var(--t1)}
.hp-pq .h2-sm em{font-style:italic;color:var(--amber)}

/* Homepage receipts (replaces the old 'Real publishers. Real numbers.' section; keeps the #results anchor the footer links to).
   home-v2.css has no .lead or head layout, so the receipts head matches the Facebook managed distribution page here. */
.hp-pq#results{scroll-margin-top:96px}
.hp-pq .sec-head{display:grid;gap:16px;max-width:760px;margin-bottom:clamp(28px,4vw,48px)}
.hp-pq .sec-head .lead{margin:0;max-width:62ch;font-size:clamp(16px,1.5vw,19px);line-height:1.55;color:var(--t2)}
section.pib-proof#results+section.pib-proof#partner-quotes{padding-top:clamp(32px,4vw,56px)}
