/* Community Badge: "450,000+ Canadian parents in our community", from community-badge-mockups.html.
   Rules are scoped under .cpcb so they outrank the Site Kit (.elementor-kit-N p / a / img). */
.cpcb { --cpcb-face: 30px; --cpcb-mist: var(--cp-hero-mist); display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0; font-family: var(--cp-font); font-size: 15px; font-weight: 400; line-height: 1.35; text-align: left; text-decoration: none; color: var(--cp-secondary); }
a.cpcb, a.cpcb:hover, a.cpcb:focus { color: var(--cp-secondary); text-decoration: none; }
a.cpcb:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 3px; }
.cpcb .cpcb__num { font-weight: 600; color: var(--cp-headline); }

/* A · Soft pill: white pill, hairline border, coral dot */
.cpcb--a { padding: 9px 18px 9px 14px; border-radius: 999px; background: var(--cp-white); box-shadow: 0 0 0 1px var(--cp-line), 0 10px 24px -18px #1a2b4c59; transition: box-shadow .3s var(--cp-ease); }
a.cpcb--a:hover { box-shadow: 0 0 0 1px var(--cp-line), 0 14px 28px -16px #1a2b4c59; }
.cpcb .cpcb__dot { position: relative; flex: none; width: 8px; height: 8px; margin-inline: 4px 2px; border-radius: 50%; background: var(--cp-accent); }
.cpcb--pulse .cpcb__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cp-accent); animation: cpcb-ping 2.4s var(--cp-ease) infinite; }
@keyframes cpcb-ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

/* B · Faces: mist pill, overlapping parent photos and a coral heart */
.cpcb--b { gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px; background: var(--cpcb-mist); }
.cpcb .cpcb__faces { display: flex; flex: none; }
.cpcb .cpcb__faces img, .cpcb .cpcb__icon { width: var(--cpcb-face); height: var(--cpcb-face); max-width: none; margin: 0; border: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--cpcb-mist); }
.cpcb .cpcb__faces img { object-fit: cover; }
.cpcb .cpcb__faces > * + * { margin-left: calc(var(--cpcb-face) * -.3); }
.cpcb .cpcb__icon { display: grid; place-items: center; background: var(--cp-accent); color: var(--cp-primary); font-size: calc(var(--cpcb-face) * .5); }
.cpcb .cpcb__icon i { font-size: inherit; color: inherit; }
.cpcb .cpcb__icon svg { width: 1em; height: 1em; fill: currentColor; }

/* Phones: one short line, "450,000+ Canadian parents" */
@media (max-width: 767px) {
  .cpcb { --cpcb-face: 26px; font-size: 14px; white-space: nowrap; }
  .cpcb .cpcb__more { display: none; }
  .cpcb .cpcb__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* very narrow screens: trim instead of overflowing */
  .cpcb--a { padding: 8px 16px 8px 12px; }
  .cpcb--b { gap: 10px; padding: 5px 16px 5px 5px; }
  .cpcb .cpcb__faces img:nth-of-type(n+3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cpcb--pulse .cpcb__dot::after { animation: none; } .cpcb--a { transition: none; } }
