/* Ministry Contact Card — Get Involved: Ministries (scb-kc.solutiosoftware.com) */
/* Icon is generated by ::before on .sc-contact-card itself (never empty — it always
   holds real text via .sc-contact-card-body) so TinyMCE cannot strip it as an empty
   element the way it does an inline <i class="fa-..."></i> icon tag on save.
   Label/name styling is positional (.sc-contact-card-body > p), not class-based, so
   a client can press Enter after a leader's name to add another leader — no class
   to add, no HTML to edit. The icon auto-switches to the "multiple people" glyph
   once a 2nd name paragraph is present, via :has() — also no class needed.
   WYSIWYG companion: /content/editor.css (keep both in sync). */

.sc-contact-card {
  position: relative;
  display: flex;
  align-items: center;
  margin: 20px 0;
  padding: 16px 20px 16px 76px;
  background: rgba(var(--secondary-color-rgb), 0.12);
  border-left: 4px solid rgba(var(--primary-color-rgb), 1);
  border-radius: 6px;
}

.sc-contact-card::before {
  content: "\f007";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb), 1);
  color: #fff;
  font-size: 18px;
}

/* Auto-detect multiple leaders: fires once a 3rd <p> exists in the card body
   (label + 2 names) — the client never has to add a class by hand. */
.sc-contact-card:has(.sc-contact-card-body > p:nth-of-type(n+3))::before {
  content: "\f0c0";
}

/* Manual modifier — for cards with no named leader (office contact, etc.) */
.sc-contact-card--office::before {
  content: "\f095";
  background: rgba(var(--secondary-color-rgb), 1);
}

.sc-contact-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

/* Positional, not class-based: the first paragraph is always the label, every
   paragraph after it is a name line. Pressing Enter after a name creates a new
   paragraph that is styled correctly automatically, whatever class (or none)
   TinyMCE gives it. */
.sc-contact-card-body > p:first-child {
  margin: 0 0 2px;
  font-family: var(--body-font-family), 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--primary-color-rgb), 1);
}

.sc-contact-card-body > p:not(:first-child) {
  margin: 2px 0 0;
  font-family: var(--body-font-family), 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: rgb(51, 51, 51);
}

@media (max-width: 576px) {
  .sc-contact-card { padding: 12px 14px 12px 62px; }
  .sc-contact-card::before { width: 36px; height: 36px; font-size: 15px; left: 14px; }
  .sc-contact-card-body > p:not(:first-child) { font-size: 15px; }
}
