/* Body Back-Up Practitioner Cards — stacked cards, scoped under .bbu-pc.
   Fonts are inherited from the theme; sizes use em. The grid adapts to the
   width of the column it is placed in (container queries), so it works inside
   any Salient / WPBakery column. To move these styles into the theme SCSS,
   empty this file and the plugin stops loading it. */

.bbu-pc{
	--pc-blue:#0b406a;--pc-blue-dk:#082f4f;--pc-red:#cc1235;--pc-line:#e7e3dd;--pc-muted:#6b7280;
	--pc-gap:28px;--pc-radius:20px;
	container:bbu-pc / inline-size;
}
.bbu-pc *,.bbu-pc *::before,.bbu-pc *::after{box-sizing:border-box;}

.bbu-pc .bbu-pc__grid{display:grid;gap:var(--pc-gap);}
.bbu-pc--cols-1 .bbu-pc__grid{grid-template-columns:minmax(0,1fr);max-width:440px;}
/* A single card stays ~440px wide; centred when the text is. Two or more fill the width equally. */
.bbu-pc--center.bbu-pc--cols-1 .bbu-pc__grid{margin-left:auto;margin-right:auto;}
.bbu-pc--cols-2 .bbu-pc__grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.bbu-pc--cols-3 .bbu-pc__grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.bbu-pc--cols-4 .bbu-pc__grid{grid-template-columns:repeat(4,minmax(0,1fr));}

/* Card */
.bbu-pc .bbu-pc__card{container:bbu-pc-card / inline-size;display:flex;flex-direction:column;height:100%;margin:0;padding:20px;background:#fff;border:1px solid var(--pc-line);border-radius:var(--pc-radius);box-shadow:0 10px 30px rgba(11,64,106,.07),0 2px 6px rgba(11,64,106,.04);}

/* Photo */
.bbu-pc .bbu-pc__photo{position:relative;display:block;overflow:hidden;border-radius:14px;background:#f2f0ec;aspect-ratio:4/5;}
.bbu-pc--square .bbu-pc__photo{aspect-ratio:1/1;}
.bbu-pc .bbu-pc__img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .35s ease;}
.bbu-pc .bbu-pc__photo:hover .bbu-pc__img{transform:scale(1.03);}
.bbu-pc .bbu-pc__badge{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);white-space:nowrap;background:var(--pc-red);color:#fff;font-size:.75em;font-weight:600;line-height:1;padding:.6em 1.1em;border-radius:100px;box-shadow:0 6px 16px rgba(204,18,53,.35);}

/* Text */
.bbu-pc .bbu-pc__body{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:22px 6px 4px;}
.bbu-pc .bbu-pc__text{max-width:100%;}
.bbu-pc--center .bbu-pc__body{align-items:center;text-align:center;}
.bbu-pc .bbu-pc__role{margin:0 0 .55em;font-size:.78em;font-weight:700;line-height:1.35;letter-spacing:.07em;text-transform:uppercase;color:var(--pc-red);}
.bbu-pc .bbu-pc__name{margin:0 0 .4em;padding:0;font-size:1.55em;font-weight:500;line-height:1.2;letter-spacing:0;color:var(--pc-blue);}
.bbu-pc .bbu-pc__creds{margin:0 0 1.3em;font-size:.95em;line-height:1.4;letter-spacing:.02em;color:var(--pc-muted);}

/* Button — pinned to the bottom so buttons line up across a row (when underneath) */
.bbu-pc .bbu-pc__btn{display:inline-flex;align-items:center;gap:.35em;margin-top:auto;padding:.85em 1.45em;border-radius:10px;background:var(--pc-blue);color:#fff;font-size:.95em;font-weight:600;line-height:1.2;text-decoration:none;transition:background .2s ease;}
.bbu-pc .bbu-pc__btn:hover,.bbu-pc .bbu-pc__btn:focus{background:var(--pc-blue-dk);color:#fff;text-decoration:none;}
.bbu-pc .bbu-pc__btn:focus-visible{outline:3px solid var(--pc-red);outline-offset:3px;}

/* Button beside the details — only when the card itself is wide enough
   (2 across in a wide row, or 1 card); narrower cards keep it underneath. */
@container bbu-pc-card (min-width:480px){
	.bbu-pc--btn-beside .bbu-pc__body{flex-direction:row;align-items:center;justify-content:space-between;gap:24px;text-align:left;}
	.bbu-pc--btn-beside .bbu-pc__text{flex:1 1 auto;min-width:0;}
	.bbu-pc--btn-beside .bbu-pc__creds{margin-bottom:0;}
	.bbu-pc--btn-beside .bbu-pc__btn{flex:0 0 auto;margin-top:0;white-space:nowrap;}
}

/* Fewer columns when the space is narrow (based on the column's own width) */
@container bbu-pc (max-width:963px){.bbu-pc--cols-4 .bbu-pc__grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@container bbu-pc (max-width:715px){.bbu-pc--cols-3 .bbu-pc__grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@container bbu-pc (max-width:467px){.bbu-pc .bbu-pc__grid{grid-template-columns:minmax(0,1fr);max-width:440px;}}

@media (prefers-reduced-motion:reduce){.bbu-pc .bbu-pc__img,.bbu-pc .bbu-pc__btn{transition:none;}.bbu-pc .bbu-pc__photo:hover .bbu-pc__img{transform:none;}}
